K-Nearest neighbor smart contract classification with semantic feature enhancement

计算机科学 分类器(UML) k-最近邻算法 嵌入 数据库事务 人工智能 语义学(计算机科学) 语义特征 特征向量 数据挖掘 特征(语言学) 班级(哲学) 模式识别(心理学) 特征提取 机器学习 数据库 哲学 程序设计语言 语言学
作者
Gang Tian,Guangxin Zhao,Rui Wang,Jiachang Wang,Cheng He
出处
期刊:The Computer Journal [Oxford University Press]
卷期号:67 (11): 3067-3079
标识
DOI:10.1093/comjnl/bxae070
摘要

Abstract How to quickly and accurately retrieve relevant smart contracts from a huge amount of smart contracts has become an urgent need for users. The classification of smart contracts offers a solution by narrowing down the search space. Existing smart contract classification methods suffer from incomplete semantic feature extraction and a lack of consideration of the existence of rich semantics in existing smart contracts of the same class. To address the above problems, we propose a contrast learning and semantic feature embedding approach to enhance K-Nearest Neighbor (CL-SFE-IKNN). Our method fuses local features, global features, and account transaction features of the smart contract source code to perfect the semantics of the contract. Our method adopts KNN to retrieve multiple instances of contracts in the same class and assigns weights to the model output based on their labels. Meanwhile, we introduce contrastive learning and semantic feature embedding to enhance KNN retrieval to high-quality nearest neighbors of the same class. Experimental results show that by combining a KNN classifier with a traditional linear classifier, our model achieves the best performance compared with other baseline models.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
刚刚
2秒前
Joseph0209发布了新的文献求助30
3秒前
丽莫莫完成签到,获得积分10
3秒前
Akim应助哈哈哈采纳,获得10
4秒前
响什么捏完成签到,获得积分10
4秒前
洁净方盒发布了新的文献求助10
5秒前
LIMO完成签到,获得积分10
5秒前
5秒前
5秒前
6秒前
寻悦发布了新的文献求助10
7秒前
8秒前
9秒前
安子完成签到 ,获得积分10
9秒前
朝闻道完成签到,获得积分10
9秒前
9秒前
10秒前
朴实的问雁完成签到 ,获得积分10
10秒前
10秒前
Mmmmarys完成签到,获得积分10
10秒前
初九上六发布了新的文献求助10
10秒前
11秒前
北海发布了新的文献求助10
12秒前
魏翠林发布了新的文献求助10
12秒前
wohawohaa发布了新的文献求助10
12秒前
juphen2发布了新的文献求助10
12秒前
PINO完成签到 ,获得积分10
13秒前
科目三应助Don采纳,获得10
14秒前
思源应助六月雪采纳,获得10
14秒前
andy完成签到,获得积分10
14秒前
14秒前
14秒前
哈哈哈发布了新的文献求助10
17秒前
中中完成签到,获得积分10
17秒前
暗栀发布了新的文献求助10
18秒前
爱吃汉堡包的金鲤鱼完成签到,获得积分10
19秒前
寻悦发布了新的文献求助10
19秒前
六月雪完成签到,获得积分10
19秒前
只吃7分饱完成签到,获得积分10
20秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
2026年中国辛酸癸酸聚乙二醇甘油酯行业市场规模及竞争格局分析报告 1000
48V Low-voltage Power Distribution Network (PDN) Architecture Industry Report, 2024 800
Fundamentals of Pharmaceutical and Biologics Regulations: A Global Perspective, Second Edition 700
Matrix Methods in Data Mining and Pattern Recognition Second Edition 510
适配Micro-LED色转换的高兼容性量子点负性光刻胶制备与工艺研究 500
Vander's Renal Physiology第10版 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7315044
求助须知:如何正确求助?哪些是违规求助? 8931237
关于积分的说明 18931002
捐赠科研通 6975209
什么是DOI,文献DOI怎么找? 3213794
关于科研通互助平台的介绍 2381819
邀请新用户注册赠送积分活动 2192227