A machine learning sentiment classification of factors that shape trust in smart contracts

Authors

Keywords:

Blockchain, Cybersecurity,, Machine learning, Smart contracts, Sentiment analysis, Trust

Abstract

Smart contracts have attracted significant attention within the blockchain ecosystem due to their ability to automate agreements when specific pre-defined conditions are met. However, concerns about the reliability of smart contracts persist due to potential vulnerabilities and unexpected outcomes. This study seeks to examine the perception of various stakeholders in the blockchain community, including developers, regulators, investors, researchers, auditors, and enthusiasts to understand the factors that influence trust in smart contracts. Data was gathered from 213 respondents through a survey administered across two blockchain communities. The responses were analyzed to identify key factors shaping trust in smart contracts within the blockchain space. The study identified five critical factors that significantly affect trust perceptions: Perceived Security Measures (PSM), Perceived Design Practices and Developer’s Reputation (PDR), User Experience (UX), Perceived Social and Psychological Influence (PSP), and Perceived Regulatory Compliance and Continuous Improvement (PRC). Additionally, machine learning algorithms namely Support Vector Machine, Decision Tree, Logistic Regression, and Naive Bayes were applied on open-ended responses to conduct sentiment analysis, providing deeper insights into the perceptions of trust in blockchain smart contracts. The results revealed that Logistic Regression classifier outperformed the other models in analyzing trust levels in smart contracts.

Dimensions

A. E. Ibor, E. B. Edim & A. A. Ojugo, “Secure health information system with blockchain technology”, Journal of the Nigerian Society of Physical Sciences 5 (2023) 992.https://doi.org/10.46481/jnsps.2023.992.

S. Siddamsetti & M. Srivenkatesh, “Efficient fraud detection in ethereum blockchain through machine learning and deep learning approaches”, International Journal on Recent and Innovation Trends in Computing and Communication 11 (2023) 71 . https://doi.org/10.17762/ijritcc.v11i11s.8072.

C. F. Torres, M. Baden, R. Norvill, B. B. F. Pontiveros, H. Jonker & S. Mauw, ÆGIS: shielding vulnerable smart contracts against attacks, Proceedings of the 15th ACM Asia Conference on Computer and Communications Security, 2020, pp. 584-597. https://doi.org/10.1145/3320269.3384756.

W. Wang, J. Song, G. Xu, Y. Li, H. Wang & C. Su, “ContractWard: automated vulnerability detection models for ethereum smart contracts”, IEEE Trans Netw Sci Eng 8 (2021) 1133. https://doi.org/10.1109/TNSE.2020.2968505.

D. Kundu, “Blockchain and trust in a smart city”, Environment and urbanization Asia 10 (2019) 31.https://doi.org/10.1177/0975425319832392.

S. Amani, M. Bortin, M. Bégel & M. Staples, Towards verifying Ethereum smart contract bytecode in Isabelle/HOL, CPP 2018 - Proceedings of the 7th ACM SIGPLAN International Conference on Certified Programs and Proofs, Co-located with POPL, Association for Computing Machinery, Inc, 2018, pp. 66-77. https://doi.org/10.1145/3167084.

T. Abdellatif & K. L. Brousmiche, Formal verification of smart contracts based on users and blockchain behaviours models, 2018 9th IFIP International Conference on New Technologies, Mobility and Security (NTMS), IEEE, February 2018, pp. 1-5. https://doi.org/10.1109/NTMS.2018.8328737.

S. Qian, H. Ning, Y. He & M. Chen, “Multi-Label vulnerability detection of smart contracts based on bi-lstm and attention mechanism”, Electronics (Switzerland) 11 (2022) 3260. https://doi.org/10.3390/electronics11193260.

C. F. Torres, J. Schütte & R. State, Osiris: hunting for integer bugs in ethereum smart contracts, 34th ACM International Conference Proceeding Series, Association for Computing Machinery, 2018, pp. 664?676.https://doi.org/10.1145/3274694.3274737.

N. Atzei, M. Bartoletti & T. Cimoli, A survey of attacks on Ethereum smart contracts, Principles of Security and Trust: 6th International Conference, POST 2017, Held as Part of the European Joint Conferences on Theory and Practice of Software, ETAPS 2017, Uppsala, Sweden, 2017, pp. 164-186. https://doi.org/10.1007/978-3-662-54455-6_8.

L. Luu, D. H. Chu, H. Olickel, P. Saxena & A. Hobor, Making smart contracts smarter, Proceedings of the ACM Conference on Computer and Communications Security, Association for Computing Machinery, 2016, pp. 254-269. https://doi.org/10.1145/2976749.2978309.

T. Hu, X. Liu, T. Chen, X. Zhang, X. Huang, W. Niu, J. Lu, K. Zhou & Y. Liu , “Transaction-based classification and detection approach for Ethereum smart contract”, Information Processing and Management 58 (2021) 102462. https://doi.org/10.1016/j.ipm.2020.102462.

Y. Xu, G. Hu, L. You & C. Cao, “A Novel machine learning-based analysis model for smart contract vulnerability”, Security and Communication Networks 2021 (2021) 5798033. https://doi.org/10.1155/2021/5798033.

N. B. Truong & G. M. Lee, “A reputation and knowledge-based trust service platform for trustworthy social internet of things”. [Online]. Accessed: 9 March 2024. http://researchonline.ljmu.ac.uk/id/eprint/2599.

T. S. H. Teo & J. Liu, “Consumer trust in e-commerce in the United States, Singapore and China”, Omega (Westport) 35 (2007) 22. https://doi.org/10.1016/j.omega.2005.02.001.

D. Pienta, H. Sun & J. B. Thatcher, “Habitual and misplaced trust: the role of the dark side of trust between individual users and cybersecurity systems research-in-progress”. [Online]. Accessed: 23 February 2024. https://aisel.aisnet.org/icis2016/ISSecurity/Presentations/11.

M. Söllner, A. Hoffmann, H. Hoffmann, A. Wacker & J. M. Leimeister, “Understanding the formation of trust”, in Socio-Technical Design of Ubiquitous Computing Systems, Springer International Publishing, 2014. https://doi.org/10.1007/978-3-319-05044-7_3.

C. Loebbecke, L. Lueneborg & D. Niederle , “Blockchain Technology Impacting the Role of Trust in Transactions: Reflections in the Case of Trading Diamonds”, Research-in-Progress Papers 68 (2018) 1. https://aisel.aisnet.org/ecis2018_rip/68.

K. Werbach, “Trust, but verify”, Technology Law Journal 33 (2018) 487. https://doi.org/10.15779/Z38H41JM9N.

M. Fleischmann & B. S. Ivens, “Exploring the role of trust in blockchain adoption: an inductive approach”, 2019. [Online]. http://hdl.handle.net/10125/60120.

D. Shin & W. T. Bianco, “In blockchain we trust: does blockchain itself generate trust?”, Social Science Quarterly 101 (2020) 2522.https://doi.org/10.1111/ssqu.12917.

D. D. H. Shin, “Blockchain: The emerging technology of digital trust”, Telematics and Informatics 45 (2019) 101278. https://doi.org/10.1016/j.tele.2019.101278.

V. Sadhya, H. Sadhya, R. Hirschheim & E. Watson, “Exploring technology trust in bitcoin: The blockchain exemplar”, Research papers 5 (2018) 1. https://core.ac.uk/download/pdf/301378498.pdf.

N. Ostern, “Do you trust a trust-free technology? Toward a trust framework model for blockchain technology”, 2018. http://tubiblio.ulb.tu-darmstadt.de/110885.

M. Tavakol & A. Wetzel, “Factor analysis: a means for theory and instrument development in support of construct validity”, International Journal of medical education 11 (2020) 245. https://doi.org/10.5116%2Fijme.5f96.0f4a.

N. Shrestha, “Factor analysis as a tool for survey analysis”, American Journal of Applied Mathematics and Statistics 9 (2011) 4. https://doi.org/10.12691/ajams-9-1-2.

R. D. Ledesma, P. Valero-Mora & G. Macbeth, “The scree test and the number of factors: a dynamic graphics approach”, The Spanish Journal of psychology 18 (2015) E11. https://doi.org/10.1017/sjp.2015.13.

A. Alshammari, “A novel security framework to mitigate and avoid unexpected security threats in saudi arabia”, Engineering, Technology and Applied Science Research 13 (2023) 11445. https://doi.org/10.48084/etasr.6091.

Z. Wan, X. Xia, D. Lo, J. Chen, X. Luo & X. Yang, Smart contract security: a practitioners? perspective, IEEE/ACM 43rd International Conference on Software Engineering (ICSE), 2021, pp. 1410-1422. https://doi.org/10.1109/ICSE43902.2021.00127.

F. Al Khalil, T. Butler, L. O?Brien & M. Ceci, Trust in smart contracts is a process, as well, Financial Cryptography and Data Security: FC 2017 International Workshops, Malta, 2017, Revised Selected Papers 21, Springer International Publishing, pp. 510-519. https://doi.org/10.1007/978-3-319-70278-0_32.

M. R. R. Rana, A. Nawaz, T. Ali, A. M. El-Sherbeeny & W. Ali, “A BiLSTM-CF and BiGRU-based Deep sentiment analysis model to explore customer reviews for effective recommendations”, Engineering, Technology and Applied Science Research 13 (2023) 11739. https://doi.org/10.48084/etasr.6278.

W. M. S. Yafooz, E. A. Hezzam & W. Alromema, “Arabic sentiment analysis on chewing khat leaves using machine learning and ensemble methods”, Engineering, Technology and Applied Science Research 11 (2021) 6845. https://doi.org/10.48084/etasr.4026.

J. Hao & T. K. Ho, “Machine learning made easy: a review of scikit-learn package in python programming language”, Journal of Educational and Behavioral Statistics 44 (2019) 348. https://doi.org/10.3102/1076998619832248.

H. Alamoudi, N. Aljojo, A. Munshi, A. Alghoson, A. Banjar, A. Tashkandi, A. Al-Tirawi & I. Alsaleh, “Arabic sentiment analysis for student evaluation using machine learning and the arabert transformer”, Engineering, Technology and Applied Science Research 13 (2023) 11945. https://doi.org/10.48084/etasr.6347.

S. Swamy & S. Hegde. “Exploring sentiment analysis in kannada language: a comprehensive study on COVID-19 data using machine learning and ensemble algorithms”, International Journal of Intelligent Systems and Applications in Engineering 12 (2024) 21. https://www.ijisae.org/.

T. Jain, V. K. Verma, A. K. Sharma, B. Saini, N. P. Bhavika, H. Mahdin, M. Ahmad, R. Darman, S. C. Haw, S. M. Shaharudin & M. S. Arshad, “Sentiment analysis on COVID-19 vaccine tweets using machine learning and deep learning algorithms”, International Journal of Advanced Computer Science and Applications (IJACSA) 14 (2023) 5. http://dx.doi.org/10.14569/IJACSA.2023.0140504.

M. Dandotiya, D. K. Bandil, K. Sankhla, P. Yadav & M. Kumari, “An implementation of computerized valuation of descriptive answers: a machine learning approach”, International Journal on Recent and Innovation Trends in Computing and Communication 11 (2023) 40. https://www.ijritcc.org/.

P. Parisha, G. K. Srivastava & S. Kumar, “Automated heart syndrome forecast model exploiting machine learning approaches”, International Journal on Recent and Innovation Trends in Computing and Communication 11 (2023) 319. https://doi.org/10.17762/ijritcc.v11i11s.8158.

M. A. Kausar, S. O. Fageeri & A. Soosaimanickam, “Sentiment classification based on machine learning approaches in Amazon product reviews”, Engineering, Technology and Applied Science Research 13 (2023) 10849. https://doi.org/10.48084/etasr.5854.

Published

2025-02-01

How to Cite

A machine learning sentiment classification of factors that shape trust in smart contracts. (2025). Journal of the Nigerian Society of Physical Sciences, 7(1), 2177. https://doi.org/10.46481/jnsps.2025.2177

How to Cite

A machine learning sentiment classification of factors that shape trust in smart contracts. (2025). Journal of the Nigerian Society of Physical Sciences, 7(1), 2177. https://doi.org/10.46481/jnsps.2025.2177