AI-based anomaly detection and optimization framework for blockchain smart contracts
Hassen Louati, Ali Louati, Elham Kariri and Abdulla Almekhlaf
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.
Year of publication: |
2025
|
---|---|
Authors: | Louati, Hassen ; Louati, Ali ; Kariri, Elham ; Almekhlaf, Abdulla |
Published in: |
Administrative Sciences : open access journal. - Basel : MDPI, ISSN 2076-3387, ZDB-ID 2662651-2. - Vol. 15.2025, 5, Art.-No. 163, p. 1-19
|
Subject: | blockchain smart contracts | Neural Architecture Search (NAS) | transfer learning | model compression | anomaly detection | Blockchain | Theorie | Theory | Künstliche Intelligenz | Artificial intelligence |
Saved in:
Saved in favorites
Similar items by subject
-
Choices matter when training machine learning models for return prediction
Howard, Clint, (2024)
-
Stempel, Daniel, (2023)
-
The use of transfer learning with very deep convolutional neural network in quality management
Kłosowski, Grzegorz, (2021)
- More ...