A Comparative Study of Machine and Deep Learning Approaches for Smart Contract Vulnerability Detection
Technologies · 16.12.2025 · 13 (12) · 592
DOI: 10.3390/technologies13120592 ↗Kurz gefasst
Fachartikel in der Zeitschrift Technologies, online erschienen am 16.12.2025. Verfasst von Mohammed Yaseen Alhayani und 3 weiteren Autor:innen. Die Arbeit wurde bisher 2-mal zitiert (Crossref) und nennt 25 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0). Gefördert von: Junior Professor Chair (CPJ) of Franche Comte University.
Abstract (Originalsprache)
The increasing use of blockchain smart contracts has introduced new security challenges, as small coding errors can lead to major financial losses. While rule-based static analyzers remain the most common detection tools, their limited adaptability often results in false positives and outdated vulnerability patterns. This study presents a comprehensive comparative analysis of machine learning (ML) and deep learning (DL) methods for smart contract vulnerability detection using the BCCC-SCsVuls-2024 benchmark dataset. Six models (Random Forest, k-Nearest Neighbors, Simple and Deep Multilayer Perceptron, and Simple and Deep one-dimensional Convolutional Neural Networks) were evaluated under a unified experimental framework combining RobustScaler normalization and Principal Component Analysis (PCA) for dimensionality reduction. Our experimental results from a five-fold cross-validation show that the Random Forest classifier achieved the best overall performance with an accuracy of 89.44% and an F1-score of 93.20%, outperforming both traditional and neural models in stability and generalization. PCA-based feature analysis revealed that opcode-level features, particularly stack and memory manipulation instructions (PUSH, DUP, SWAP, and RETURNDATASIZE), were the most influential in defining contract behavior.
Förderung
- Junior Professor Chair (CPJ) of Franche Comte University
Zitieren
APA
Alhayani, M. Y., Gwad, W. H., Kareem, S. W., & Fayad, M. (2025). A Comparative Study of Machine and Deep Learning Approaches for Smart Contract Vulnerability Detection. Technologies, 13(12), 592. https://doi.org/10.3390/technologies13120592
Vancouver
Alhayani MY, Gwad WH, Kareem SW, Fayad M. A Comparative Study of Machine and Deep Learning Approaches for Smart Contract Vulnerability Detection. Technologies. 2025;13(12):592. doi:10.3390/technologies13120592
BibTeX
@article{Alhayani2025,
author = {Alhayani, Mohammed Yaseen and Gwad, Wisam Hazim and Kareem, Shahab Wahhab and Fayad, Moustafa},
title = {A Comparative Study of Machine and Deep Learning Approaches for Smart Contract Vulnerability Detection},
journal = {Technologies},
year = {2025},
volume = {13},
number = {12},
pages = {592},
doi = {10.3390/technologies13120592}
}
EUVIMED