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 条
  • [31] Energy-based features and bi-LSTM neural network for EEG-based music and voice classification
    Isaac Ariza
    Ana M. Barbancho
    Lorenzo J. Tardón
    Isabel Barbancho
    Neural Computing and Applications, 2024, 36 : 791 - 802
  • [32] Bump feature detection of the road surface based on the Bi-LSTM
    Lyu, Haiyang
    Xu, Ke
    Jiao, Donglai
    Zhong, Qiqi
    OPEN GEOSCIENCES, 2023, 15 (01)
  • [33] Trajectory outlier detection algorithm based on Bi-LSTM model
    Han Z.
    Huang T.
    Ren W.
    Xu G.
    Journal of Radars, 2019, 8 (01) : 36 - 43
  • [34] Hierarchical Bi-LSTM based emotion analysis of textual data
    Mahto, Dashrath
    Yadav, Subhash Chandra
    BULLETIN OF THE POLISH ACADEMY OF SCIENCES-TECHNICAL SCIENCES, 2022, 70 (03)
  • [35] Entity Relationship Extraction Based on Bi-LSTM and Attention Mechanism
    Wei, Ming
    Xu, Zhipeng
    Hu, Jiwei
    PROCEEDINGS OF 2021 2ND INTERNATIONAL CONFERENCE ON ARTIFICIAL INTELLIGENCE AND INFORMATION SYSTEMS (ICAIIS '21), 2021,
  • [36] Ship Trajectory Prediction Model Based on Improved Bi-LSTM
    Li, Weifeng
    Lian, Yifan
    Liu, Yaochen
    Shi, Guoyou
    ASCE-ASME JOURNAL OF RISK AND UNCERTAINTY IN ENGINEERING SYSTEMS PART A-CIVIL ENGINEERING, 2024, 10 (03):
  • [37] A Novel Wireless Propagation Model Based on Bi-LSTM Algorithm
    Yang, Yu Lu
    Wan, Guo Chun
    Tong, Mei Song
    IEEE ACCESS, 2022, 10 : 43837 - 43847
  • [38] Attention Based Graph Bi-LSTM Networks for Traffic Forecasting
    Zhao, Han
    Yang, Huan
    Wang, Yu
    Wang, Danwei
    Su, Rong
    2020 IEEE 23RD INTERNATIONAL CONFERENCE ON INTELLIGENT TRANSPORTATION SYSTEMS (ITSC), 2020,
  • [39] A hybrid Bi-LSTM and RBM approach for advanced underwater object detection
    Manimurugan, S.
    Karthikeyan, P.
    Narmatha, C.
    Aborokbah, Majed M.
    Paul, Anand
    Ganesan, Subramaniam
    Rajendran, T.
    Ammad-Uddin, Mohammad
    PLOS ONE, 2024, 19 (11):
  • [40] Optimized Bi-LSTM: a novel approach for attack detection in industrial IoT
    Alassafi, Madini O.
    Hasan, Syed Humaid
    Badri, Sahar
    Hasan, Syed Hamid
    SIGNAL IMAGE AND VIDEO PROCESSING, 2024, 18 (05) : 4903 - 4913