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.

科研通智能强力驱动
Strongly Powered by AbleSci AI
更新
PDF的下载单位、IP信息已删除 (2025-6-4)

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
小饼干发布了新的文献求助10
刚刚
啊棕完成签到,获得积分10
刚刚
落寞灵安发布了新的文献求助10
刚刚
1秒前
lcj2022发布了新的文献求助10
2秒前
传奇3应助付品聪采纳,获得10
3秒前
tender关注了科研通微信公众号
3秒前
3秒前
3秒前
Orange应助ronnie采纳,获得10
4秒前
5秒前
5秒前
小马甲应助嘟嘟采纳,获得10
5秒前
玩命的易绿应助嘟嘟采纳,获得20
5秒前
香蕉觅云应助嘟嘟采纳,获得10
6秒前
爆米花应助嘟嘟采纳,获得10
6秒前
小二郎应助嘟嘟采纳,获得10
6秒前
充电宝应助嘟嘟采纳,获得10
6秒前
顾矜应助嘟嘟采纳,获得10
6秒前
Lucas应助嘟嘟采纳,获得10
6秒前
kunny完成签到 ,获得积分10
6秒前
疯狂的雁荷完成签到,获得积分10
6秒前
6秒前
我儿大彬完成签到,获得积分10
7秒前
7秒前
ljydhr发布了新的文献求助30
7秒前
youasheng发布了新的文献求助10
7秒前
7秒前
平淡思雁完成签到,获得积分10
7秒前
满意的嵩完成签到,获得积分10
8秒前
8秒前
山语完成签到,获得积分20
8秒前
酷酷巧蟹发布了新的文献求助10
8秒前
8秒前
禾苗发布了新的文献求助10
9秒前
9秒前
我儿大彬发布了新的文献求助10
10秒前
三石呦423发布了新的文献求助10
10秒前
10秒前
舒服的踏歌完成签到,获得积分10
11秒前
高分求助中
Picture Books with Same-sex Parented Families: Unintentional Censorship 700
ACSM’s Guidelines for Exercise Testing and Prescription, 12th edition 500
Nucleophilic substitution in azasydnone-modified dinitroanisoles 500
不知道标题是什么 500
Indomethacinのヒトにおける経皮吸収 400
Phylogenetic study of the order Polydesmida (Myriapoda: Diplopoda) 370
Effective Learning and Mental Wellbeing 300
热门求助领域 (近24小时)
化学 材料科学 医学 生物 工程类 有机化学 生物化学 物理 内科学 纳米技术 计算机科学 化学工程 复合材料 遗传学 基因 物理化学 催化作用 冶金 细胞生物学 免疫学
热门帖子
关注 科研通微信公众号,转发送积分 3974463
求助须知:如何正确求助?哪些是违规求助? 3518823
关于积分的说明 11196212
捐赠科研通 3255008
什么是DOI,文献DOI怎么找? 1797655
邀请新用户注册赠送积分活动 877052
科研通“疑难数据库(出版商)”最低求助积分说明 806130