Loading...
Please wait, while we are loading the content...
Similar Documents
Improving Ponzi Scheme Contract Detection Using Multi-Channel TextCNN and Transformer
| Content Provider | MDPI |
|---|---|
| Author | Chen, Yizhou Dai, Heng Yu, Xiao Hu, Wenhua Xie, Zhiwen Tan, Cheng |
| Copyright Year | 2021 |
| Description | With the development of blockchain technologies, many Ponzi schemes disguise themselves under the veil of smart contracts. The Ponzi scheme contracts cause serious financial losses, which has a bad effect on the blockchain. Existing Ponzi scheme contract detection studies have mainly focused on extracting hand-crafted features and training a machine learning classifier to detect Ponzi scheme contracts. However, the hand-crafted features cannot capture the structural and semantic feature of the source code. Therefore, in this study, we propose a Ponzi scheme contract detection method called MTCformer (Multi-channel Text Convolutional Neural Networks and Transofrmer). In order to reserve the structural information of the source code, the MTCformer first converts the Abstract Syntax Tree (AST) of the smart contract code to the specially formatted code token sequence via the Structure-Based Traversal (SBT) method. Then, the MTCformer uses multi-channel TextCNN (Text Convolutional Neural Networks) to learn local structural and semantic features from the code token sequence. Next, the MTCformer employs the Transformer to capture the long-range dependencies of code tokens. Finally, a fully connected neural network with a cost-sensitive loss function in the MTCformer is used for classification. The experimental results show that the MTCformer is superior to the state-of-the-art methods and its variants in Ponzi scheme contract detection. |
| Starting Page | 6417 |
| e-ISSN | 14248220 |
| DOI | 10.3390/s21196417 |
| Journal | Sensors |
| Issue Number | 19 |
| Volume Number | 21 |
| Language | English |
| Publisher | MDPI |
| Publisher Date | 2021-09-26 |
| Access Restriction | Open |
| Subject Keyword | Sensors Information and Library Science Blockchain Smart Contracts Ponzi Schemes Structured Sequences Deep Learning |
| Content Type | Text |
| Resource Type | Article |