Smart contracts are autonomous systems that execute agreements using code. Their efficiency generated attention from a range of industries. The basis of traditional vulnerability detection techniques, opcode analysis, has limitations in detecting complex vulnerabilities. Our research aims to address these difficulties by developing an automated framework for vulnerability detection, mitigation, and patch deployment. Initially, smart contract data will be collected, followed by a preprocessing step to remove any unnecessary information using lexical analysis and Bidirectional Encoder Representations from Transformers (BERT). Then, the preprocessed data is used to identify the features that are relevant are selected. Following the features being selected, an intellectual engine is used to identify flaws. The intellectual engine that integrates the convolutional neural networks (CNN) and long short-term memory (LSTM) analyzes a subset of preprocessed data for vulnerabilities, with explainable artificial intelligence (XAI) evaluating the importance of each feature to predictions. Our method produces exceptional outcomes with a 99.25% precision, 99.76% accuracy, 99.60% F1-score, and 99.36% recall. Smart contract vulnerability identification, mitigation, and patch generation are improved by the proposed Beluga Crayfish Optimization Algorithm (BCOA) and Crayfish Secretary Bird Optimization Algorithm (CSBOA) together with graph neural networks (GNN). In addition to producing the required fixes, this method offers efficient mitigation techniques. Therefore, it greatly enhances smart contract security and efficiency. In the end, smart contract programs that use this integrated approach are more secure.
Raju et al. (Wed,) studied this question.