Intelligent contract classification method based on keyword feature extraction and attention

A smart contract and feature extraction technology, applied in the field of service computing, can solve the problems of inability to classify features across domains, sparseness, etc., and achieve the effect of improving accuracy and good versatility

Active Publication Date: 2020-02-11
SHANDONG UNIV OF SCI & TECH
View PDF3 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Aiming at the problems of incapable of cross-domain classification and sparse features existing in the existing smart contract clas

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Intelligent contract classification method based on keyword feature extraction and attention
  • Intelligent contract classification method based on keyword feature extraction and attention
  • Intelligent contract classification method based on keyword feature extraction and attention

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0073] Below is the specific embodiment of the application of the present invention:

[0074] The method is validated using the dataset documentation of the DApps decentralized application and the dataset documentation of the smart contracts of the Ethereum website. The data set documents of DApps decentralized applications include 2100 smart contract codes, labels and corresponding keywords. The data set document of the smart contract of the Ethereum website contains 5000 smart contract codes.

[0075] Execute step 1, collect the dataset documents of the DApps decentralized application and the dataset document of the smart contract of the Ethereum website, and divide the label y in the dataset document of the DApps decentralized application with labels into 9 categories , respectively: 1 point, 2 points, 3 points, 4 points, 5 points, 6 points, 7 points, 8 points, 9 points, corresponding to games, lottery, finance, entertainment, tools, security , Currency, Information Manag...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides an intelligent contract classification method based on keyword feature extraction and attention, and the method comprises the steps: processing codes of intelligent contracts through a long-term and short-term memory network, carrying out the feature extraction of corresponding keywords, and combining with an attention mechanism, thereby achieving a purpose of classifying the intelligent contracts; training the intelligent contract into a content word vector by using a word-to-word vector model Word2Vec, and converting the keyword into a serialized vector by using a vectorized text tool Tokenizer; and putting the serialized vector into a long-term and short-term memory network, and connecting the final hidden state vector with each word vector of the intelligent contract; after the connected vectors are subjected to one-layer convolution operation and one-layer pooling operation, putting the operated vectors into a long-short-term memory neural network, and multiplying the final hidden state vector by a vector generated through attention; and putting the obtained sentence representation into a long-term and short-term memory neural network, and finally classifying the intelligent contracts by using a softmax classifier; and finally, evaluating the model on the data set of the Ethereum website by combining the DApps decentralization application program, and proving the effectiveness of the model by an experimental result. The training accuracy reaches 89.1%.

Description

technical field [0001] The invention relates to the technical field of service computing, in particular to a smart contract classification method based on keyword feature extraction and attention. Background technique [0002] With the increasing popularity of cryptocurrencies such as Bitcoin, as an innovative decentralized pole and distributed computing paradigm, [0003] Blockchain technology has risen rapidly and been applied to many fields. Among them, the application of blockchain technology in fields such as lotteries, bonds, and medical care has particularly shown exciting prospects. Blockchain technology uses POW, PBFT and other algorithms to reach a consensus in a decentralized environment, jointly maintain a distributed ledger, and partially solve the Byzantine general problem. [0004] In Bitcoin, in order to implement applications such as verification of public keys and signatures, Bitcoin implements a stack-based scripting programming language. But this progr...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06Q40/04G06F16/35G06N3/04G06N3/08
CPCG06Q40/04G06F16/35G06N3/08G06N3/044G06N3/045
Inventor 田刚王琦博
Owner SHANDONG UNIV OF SCI & TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products