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 条
  • [41] Energy-based features and bi-LSTM neural network for EEG-based music and voice classification
    Ariza, Isaac
    Barbancho, Ana M.
    Tardon, Lorenzo J.
    Barbancho, Isabel
    NEURAL COMPUTING & APPLICATIONS, 2023, 36 (2): : 791 - 802
  • [42] Fault classification of three phase induction motors using Bi-LSTM networks
    Jeevesh Vanga
    Durga Prabhu Ranimekhala
    Swathi Jonnala
    Jhansi Jamalapuram
    Balaji Gutta
    Srinivasa Rao Gampa
    Amarendra Alluri
    Journal of Electrical Systems and Information Technology, 10 (1)
  • [43] Continuous Human Activity Classification From FMCW Radar With Bi-LSTM Networks
    Shrestha, Aman
    Li, Haobo
    Le Kernec, Julien
    Fioranelli, Francesco
    IEEE SENSORS JOURNAL, 2020, 20 (22) : 13607 - 13619
  • [44] A Multi-Task Group Bi-LSTM Networks Application on Electrocardiogram Classification
    Lv, Qiu-Jie
    Chen, Hsin-Yi
    Zhong, Wei-Bin
    Wang, Ying-Ying
    Song, Jing-Yan
    Guo, Sai-Di
    Qi, Lian-Xin
    Chen, Calvin Yu-Chian
    IEEE JOURNAL OF TRANSLATIONAL ENGINEERING IN HEALTH AND MEDICINE, 2020, 8
  • [45] Classification and extraction of medical clinical trial screening standard texts based on Bi-LSTM and Attention mechanism
    Du, Lin
    Cao, Dong
    Li, Jinghua
    Ye, Hui
    2020 ASIA CONFERENCE ON GEOLOGICAL RESEARCH AND ENVIRONMENTAL TECHNOLOGY, 2021, 632
  • [46] Bluetooth Fingerprint based Indoor Localization using Bi-LSTM
    Hu, Senchun
    He, Kun
    Yang, Xi
    Peng, Shengliang
    2022 31ST WIRELESS AND OPTICAL COMMUNICATIONS CONFERENCE (WOCC), 2022, : 161 - 165
  • [47] Production prediction modeling of industrial processes based on Bi-LSTM
    Han, Yongming
    Zhou, Rundong
    Geng, Zhiqiang
    Chen, Kai
    Wang, Yajie
    Wei, Qin
    2019 34RD YOUTH ACADEMIC ANNUAL CONFERENCE OF CHINESE ASSOCIATION OF AUTOMATION (YAC), 2019, : 290 - 294
  • [48] A Robust License Plate Recognition Model Based on Bi-LSTM
    Zou, Yongjie
    Zhang, Yongjun
    Yan, Jun
    Jiang, Xiaoxu
    Huang, Tengjie
    Fan, Haisheng
    Cui, Zhongwei
    IEEE ACCESS, 2020, 8 : 211630 - 211641
  • [49] A graph attention network under probabilistic linguistic environment based on Bi-LSTM applied to film classification
    Yu, Bin
    Cai, Ruipeng
    Zhang, Jing
    Fu, Yu
    Xu, Zeshui
    INFORMATION SCIENCES, 2023, 649
  • [50] Walking Pattern Identification of FMCW Radar Data based on a Combined CNN and bi-LSTM Approach
    Nocera, Antonio
    Senigagliesi, Linda
    Ciatiaglia, Giaiduca
    Gambi, Ermio
    2023 IEEE 36TH INTERNATIONAL SYMPOSIUM ON COMPUTER-BASED MEDICAL SYSTEMS, CBMS, 2023, : 275 - 280