Smart Contract Classification With a Bi-LSTM Based Approach

被引:25
|
作者
Tian, Gang [1 ]
Wang, Qibo [1 ]
Zhao, Yi [2 ]
Guo, Lantian [3 ]
Sun, Zhonglin [1 ]
Lv, Liangyu [1 ]
机构
[1] Shangdong Univ Sci & Technol, Sch Comp Sci & Engn, Qingdao 266590, Peoples R China
[2] Guangdong Ocean Univ, Sch Math & Comp Sci, Zhanjiang 524088, Peoples R China
[3] Qingdao Univ Sci & Technol, Sch Automat & Elect Engn, Qingdao 266044, Peoples R China
基金
中国博士后科学基金; 中国国家自然科学基金;
关键词
Smart contracts; Semantics; Feature extraction; Context modeling; Blockchain; Data models; Smart contract classification; Bi-LSTM; attention mechanism; Gaussian LDA; account information;
D O I
10.1109/ACCESS.2020.2977362
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
With the number of smart contracts growing rapidly, retrieving the relevant smart contracts quickly and accurately has become an important issue. A key step for recognizing the related smart contracts is able to classify them accurately. Different from traditional text, the smart contract is composed of several parts: source code, code comments and other useful information like account information. How to make good use of those different kinds of features for effective classification is a problem need to be solved. Inspired by this, we proposed a smart contract classification approach based on Bi-LSTM model and Gaussian LDA, which can use a variety of information as inputs of the model, including source code, comments, tags, account and other content information. Bi-LSTM is utilized to capture grammar rules and context information in source code, while Gaussian LDA model is employed to generate comments feature where the semantics of the comments are enriched by embeddings. We also use attention mechanism to focus on the more relevant features in smart contracts for tags and fuse account information to provide additional information for classification. The experimental results show that the classification performance of the proposed model is superior to other baseline models.
引用
收藏
页码:43806 / 43816
页数:11
相关论文
共 50 条
  • [21] Disease Phenotype Classification Model Based on Multi-channel Deep Supervised Bi-LSTM
    Wang, Decong
    Zou, Changyuan
    Wei, Ziqi
    Zhong, Zhaoqian
    2024 5TH INTERNATIONAL CONFERENCE ON COMPUTER ENGINEERING AND APPLICATION, ICCEA 2024, 2024, : 760 - 766
  • [22] Predicting Blood Glucose with an LSTM and Bi-LSTM Based Deep Neural Network
    Sun, Qingnan
    Jankovic, Marko V.
    Bally, Lia
    Mougiakakou, Stavroula G.
    2018 14TH SYMPOSIUM ON NEURAL NETWORKS AND APPLICATIONS (NEUREL), 2018,
  • [23] Optimizing Automatic Text Classification Approach in Adaptive Online Collaborative Discussion–A Perspective of Attention Mechanism-Based Bi-LSTM
    Zheng, Yafeng
    Gao, Zhanghao
    Shen, Jun
    Zhai, Xuesong
    IEEE TRANSACTIONS ON LEARNING TECHNOLOGIES, 2023, 16 (05): : 591 - 602
  • [24] Text Extraction with Optimal Bi-LSTM
    Nayef, Bahera H.
    Abdullah, Siti Norul Huda Sheikh
    Sulaiman, Rossilawati
    Saeed, Ashwaq Mukred
    CMC-COMPUTERS MATERIALS & CONTINUA, 2023, 76 (03): : 3548 - 3566
  • [25] Research on Chinese Sentiment Analysis Based on Bi-LSTM Networks
    Zhang, Taozheng
    Guo, Jiaqi
    2021 IEEE/ACIS 21ST INTERNATIONAL FALL CONFERENCE ON COMPUTER AND INFORMATION SCIENCE (ICIS 2021-FALL), 2021, : 198 - 203
  • [26] Pain Assessment based on fNIRS using Bi-LSTM RNNs
    Rojas, Raul Fernandez
    Romero, Julio
    Lopez-Aparicio, Jehu
    Ou, Keng-Liang
    2021 10TH INTERNATIONAL IEEE/EMBS CONFERENCE ON NEURAL ENGINEERING (NER), 2021, : 399 - 402
  • [27] Anaphora Resolution of Uyghur Personal Pronouns Based on Bi-LSTM
    Tian S.-W.
    Qin Y.
    Yu L.
    Ibrahim T.
    Feng G.-J.
    Yu, Long (yul_xju@163.com), 1691, Chinese Institute of Electronics (46): : 1691 - 1699
  • [28] Recognition method of voltage sag causes based on Bi-LSTM
    Zheng, Zhicong
    Qi, Linhai
    Wang, Hong
    Zhu, Manting
    Chen, Qian
    IEEJ TRANSACTIONS ON ELECTRICAL AND ELECTRONIC ENGINEERING, 2020, 15 (03) : 418 - 425
  • [29] Scalp EEG classification using deep Bi-LSTM network for seizure detection
    Hu, Xinmei
    Yuan, Shasha
    Xu, Fangzhou
    Leng, Yan
    Yuan, Kejiang
    Yuan, Qi
    Computers in Biology and Medicine, 2020, 124
  • [30] Research on Anomaly Detection in Vehicular CAN Based on Bi-LSTM
    Kan X.
    Zhou Z.
    Yao L.
    Zuo Y.
    Journal of Cyber Security and Mobility, 2023, 12 (05): : 629 - 652