AI-Based Anomaly Detection and Optimization Framework for Blockchain Smart Contracts
Hassen Louati (),
Ali Louati (),
Elham Kariri and
Abdulla Almekhlafi
Additional contact information
Hassen Louati: College of Information Technology, Kingdom University, Riffa 40434, Bahrain
Ali Louati: Department of Information Systems, College of Computer Engineering and Sciences, Prince Sattam bin Abdulaziz University, Al-Kharj 11942, Saudi Arabia
Elham Kariri: Department of Information Systems, College of Computer Engineering and Sciences, Prince Sattam bin Abdulaziz University, Al-Kharj 11942, Saudi Arabia
Abdulla Almekhlafi: College of Law, Kingdom University, Riffa 40434, Bahrain
Administrative Sciences, 2025, vol. 15, issue 5, 1-19
Abstract:
Blockchain technology has transformed modern digital ecosystems by enabling secure, transparent, and automated transactions through smart contracts. However, the increasing complexity of these contracts introduces significant challenges, including high computational costs, scalability limitations, and difficulties in detecting anomalous behavior. In this study, we propose an AI-based optimization framework that enhances the efficiency and security of blockchain smart contracts. The framework integrates Neural Architecture Search (NAS) to automatically design optimal Convolutional Neural Network (CNN) architectures tailored to blockchain data, enabling effective anomaly detection. To address the challenge of limited labeled data, transfer learning is employed to adapt pre-trained CNN models to smart contract patterns, improving model generalization and reducing training time. Furthermore, Model Compression techniques, including filter pruning and quantization, are applied to minimize the computational load, making the framework suitable for deployment in resource-constrained blockchain environments. Experimental results on Ethereum transaction datasets demonstrate that the proposed method achieves significant improvements in anomaly detection accuracy and computational efficiency compared to conventional approaches, offering a practical and scalable solution for smart contract monitoring and optimization.
Keywords: blockchain smart contracts; Neural Architecture Search (NAS); transfer learning; model compression; anomaly detection (search for similar items in EconPapers)
JEL-codes: L M M0 M1 M10 M11 M12 M14 M15 M16 (search for similar items in EconPapers)
Date: 2025
References: Add references at CitEc
Citations:
Downloads: (external link)
https://www.mdpi.com/2076-3387/15/5/163/pdf (application/pdf)
https://www.mdpi.com/2076-3387/15/5/163/ (text/html)
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:gam:jadmsc:v:15:y:2025:i:5:p:163-:d:1643990
Access Statistics for this article
Administrative Sciences is currently edited by Ms. Nancy Ma
More articles in Administrative Sciences from MDPI
Bibliographic data for series maintained by MDPI Indexing Manager ().