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 条
  • [1] Research on Question Classification Based on Bi-LSTM
    Zhang, Qian
    Mu, Lingling
    Zhang, Kunli
    Zan, Hongying
    Li, Yadi
    CHINESE LEXICAL SEMANTICS, CLSW 2018, 2018, 11173 : 519 - 531
  • [2] Web Services Classification Based on Wide & Bi-LSTM Model
    Ye, Hongfan
    Cao, Buqing
    Peng, Zhenlian
    Chen, Ting
    Wen, Yiping
    Liu, Jianxun
    IEEE ACCESS, 2019, 7 : 43697 - 43706
  • [3] The Category Emotion Classification of Chinese Comments Based on BI-LSTM
    Wang, Fugang
    Wang, Xingkai
    Gong, Xueliang
    Liu, Xuan
    Chen, Yu
    Chang, Zirun
    Liu, Zirui
    PROCEEDINGS OF INTERNATIONAL CONFERENCE ON MODELING, NATURAL LANGUAGE PROCESSING AND MACHINE LEARNING, CMNM 2024, 2024, : 98 - 102
  • [4] Forecasting Smart Grid Stability Using a Hybrid CNN Bi-LSTM Approach
    Singhal D.
    Ahuja L.
    Seth A.
    SN Computer Science, 5 (5)
  • [5] Cloud Service Recommendation with Bi-LSTM and GLDA Based Approach
    Zhang, Hongming
    Guo, Lantian
    Ye, Chen
    Qin, Haohua
    Zhang, Naizhe
    INTEGRATED FERROELECTRICS, 2024, 240 (8-9) : 1093 - 1108
  • [6] Attention-Based Bi-LSTM Model for Arabic Depression Classification
    Almars, Abdulqader M.
    CMC-COMPUTERS MATERIALS & CONTINUA, 2022, 71 (02): : 3091 - 3106
  • [7] Adverse Drug Reaction Posts Detection with a Bi-LSTM based approach
    Lee, Chung-Chun
    Lee, Seunghee
    Song, Mi Hwa
    Lee, Suehyun
    2023 IEEE INTERNATIONAL CONFERENCE ON BIG DATA AND SMART COMPUTING, BIGCOMP, 2023, : 322 - 323
  • [8] Hybrid Malware Detection Based on Bi-LSTM and SPP-Net for Smart IoT
    Jeon, Jueun
    Jeong, Byeonghui
    Baek, Seungyeon
    Jeong, Young-Sik
    IEEE TRANSACTIONS ON INDUSTRIAL INFORMATICS, 2022, 18 (07) : 4830 - 4837
  • [9] Chinese Sentiment Classification Method with Bi-LSTM and Grammar Rules
    Lu Q.
    Zhu Z.
    Xu F.
    Guo Q.
    Data Analysis and Knowledge Discovery, 2019, 3 (11) : 99 - 107
  • [10] Extraction and Classification of TCM Medical Records Based on BERT and Bi-LSTM With Attention Mechanism
    Hui, Ye
    Du, Lin
    Lin, Shuyuan
    Qu, Yiqian
    Cao, Dong
    2020 IEEE INTERNATIONAL CONFERENCE ON BIOINFORMATICS AND BIOMEDICINE, 2020, : 1626 - 1631