• 文献检索
  • 文档翻译
  • 深度研究
  • 学术资讯
  • Suppr Zotero 插件Zotero 插件
  • 邀请有礼
  • 套餐&价格
  • 历史记录
应用&插件
Suppr Zotero 插件Zotero 插件浏览器插件Mac 客户端Windows 客户端微信小程序
定价
高级版会员购买积分包购买API积分包
服务
文献检索文档翻译深度研究API 文档MCP 服务
关于我们
关于 Suppr公司介绍联系我们用户协议隐私条款
关注我们

Suppr 超能文献

核心技术专利:CN118964589B侵权必究
粤ICP备2023148730 号-1Suppr @ 2026

文献检索

告别复杂PubMed语法,用中文像聊天一样搜索,搜遍4000万医学文献。AI智能推荐,让科研检索更轻松。

立即免费搜索

文件翻译

保留排版,准确专业,支持PDF/Word/PPT等文件格式,支持 12+语言互译。

免费翻译文档

深度研究

AI帮你快速写综述,25分钟生成高质量综述,智能提取关键信息,辅助科研写作。

立即免费体验

基于注意力机制的软件缺陷预测特征提取与融合

Features extraction and fusion by attention mechanism for software defect prediction.

作者信息

Qiu Shaoming, E Bicong, He Jingjie

机构信息

School of Information Engineering, Dalian University, Dalian, China.

出版信息

PLoS One. 2025 Apr 14;20(4):e0320808. doi: 10.1371/journal.pone.0320808. eCollection 2025.

DOI:10.1371/journal.pone.0320808
PMID:40228192
原文链接:https://pmc.ncbi.nlm.nih.gov/articles/PMC11996211/
Abstract

Software defect prediction is a technology that uses known software information to predict defects in the target software. Generally, models are built using features such as software metrics, semantic information, and software networks. However, due to the complex software structure and the small number of samples, without effective feature representation and feature extraction methods, it is impossible to fully utilize software features, which can easily lead to misjudgments and reduced performance. In addition, a single feature cannot fully characterize the software structure. Therefore, this research proposes a new method to efficiently and accurately represent the Abstract Syntax Tree(AST) and a model called MFA(Multi Features Attention) that uses a deformable attention mechanism to extract features and uses a self-attention mechanism to fuse semantic and network features. By selecting 21 Java projects and comparing them with multiple models for cross-version and cross-project experiments, the experiments show that the average ACC, F1, AUC of the proposed model in the cross-version scheme reach 0.7, 0.614 and 0.711. In the cross-project scheme, the average ACC, F1 and AUC are 0.687, 0.575 and 0.696. Up to 41% better than other models, and the results of fusion features are better than those of a single feature, showing that MFA using two features for extraction and fusion has greater advantages in prediction performance.

摘要

软件缺陷预测是一种利用已知软件信息来预测目标软件中缺陷的技术。一般来说,模型是使用软件度量、语义信息和软件网络等特征构建的。然而,由于软件结构复杂且样本数量少,在没有有效的特征表示和特征提取方法的情况下,无法充分利用软件特征,这很容易导致误判和性能下降。此外,单一特征不能完全表征软件结构。因此,本研究提出了一种高效准确地表示抽象语法树(AST)的新方法,以及一种名为MFA(多特征注意力)的模型,该模型使用可变形注意力机制提取特征,并使用自注意力机制融合语义和网络特征。通过选择21个Java项目并与多个模型进行跨版本和跨项目实验比较,实验表明,所提模型在跨版本方案中的平均ACC、F1、AUC分别达到0.7、0.614和0.711。在跨项目方案中,平均ACC、F1和AUC分别为0.687、0.575和0.696。比其他模型高出41%,且融合特征的结果优于单一特征,表明使用两种特征进行提取和融合的MFA在预测性能上具有更大优势。

https://cdn.ncbi.nlm.nih.gov/pmc/blobs/8121/11996211/174745f4abe7/pone.0320808.g011.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/8121/11996211/a3d51b7227f8/pone.0320808.g001.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/8121/11996211/3b34042915d1/pone.0320808.g002.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/8121/11996211/c1384baf997b/pone.0320808.g003.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/8121/11996211/2e3fd8d459ff/pone.0320808.g004.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/8121/11996211/60db742a3353/pone.0320808.g005.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/8121/11996211/b92eed778bb5/pone.0320808.g006.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/8121/11996211/60fc2dbe8695/pone.0320808.g007.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/8121/11996211/1f8b0a059957/pone.0320808.g008.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/8121/11996211/130cc30eea64/pone.0320808.g009.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/8121/11996211/28eabe7a2eaf/pone.0320808.g010.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/8121/11996211/174745f4abe7/pone.0320808.g011.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/8121/11996211/a3d51b7227f8/pone.0320808.g001.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/8121/11996211/3b34042915d1/pone.0320808.g002.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/8121/11996211/c1384baf997b/pone.0320808.g003.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/8121/11996211/2e3fd8d459ff/pone.0320808.g004.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/8121/11996211/60db742a3353/pone.0320808.g005.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/8121/11996211/b92eed778bb5/pone.0320808.g006.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/8121/11996211/60fc2dbe8695/pone.0320808.g007.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/8121/11996211/1f8b0a059957/pone.0320808.g008.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/8121/11996211/130cc30eea64/pone.0320808.g009.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/8121/11996211/28eabe7a2eaf/pone.0320808.g010.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/8121/11996211/174745f4abe7/pone.0320808.g011.jpg

相似文献

1
Features extraction and fusion by attention mechanism for software defect prediction.基于注意力机制的软件缺陷预测特征提取与融合
PLoS One. 2025 Apr 14;20(4):e0320808. doi: 10.1371/journal.pone.0320808. eCollection 2025.
2
Software defect prediction using hybrid model (CBIL) of convolutional neural network (CNN) and bidirectional long short-term memory (Bi-LSTM).使用卷积神经网络(CNN)和双向长短期记忆网络(Bi-LSTM)的混合模型(CBIL)进行软件缺陷预测。
PeerJ Comput Sci. 2021 Nov 16;7:e739. doi: 10.7717/peerj-cs.739. eCollection 2021.
3
Multi-view feature representation and fusion for drug-drug interactions prediction.多视图特征表示与融合在药物-药物相互作用预测中的应用。
BMC Bioinformatics. 2023 Mar 14;24(1):93. doi: 10.1186/s12859-023-05212-4.
4
Semantic and traditional feature fusion for software defect prediction using hybrid deep learning model.使用混合深度学习模型进行软件缺陷预测的语义与传统特征融合
Sci Rep. 2024 Jul 1;14(1):14771. doi: 10.1038/s41598-024-65639-4.
5
Attention based GRU-LSTM for software defect prediction.基于注意力机制的 GRU-LSTM 在软件缺陷预测中的应用。
PLoS One. 2021 Mar 4;16(3):e0247444. doi: 10.1371/journal.pone.0247444. eCollection 2021.
6
Construction and Research on Chinese Semantic Mapping Based on Linguistic Features and Sparse Self-Learning Neural Networks.基于语言特征和稀疏自学习神经网络的中文语义映射构建与研究。
Comput Intell Neurosci. 2022 Jun 20;2022:2315802. doi: 10.1155/2022/2315802. eCollection 2022.
7
Fine-Grained Software Defect Prediction Based on the Method-Call Sequence.基于方法调用序列的细粒度软件缺陷预测
Comput Intell Neurosci. 2022 Aug 3;2022:4311548. doi: 10.1155/2022/4311548. eCollection 2022.
8
Multi-semantic feature fusion attention network for binary code similarity detection.多语义特征融合注意力网络用于二进制代码相似度检测。
Sci Rep. 2023 Mar 12;13(1):4096. doi: 10.1038/s41598-023-31280-w.
9
MFEAFN: Multi-scale feature enhanced adaptive fusion network for image semantic segmentation.MFEAFN:用于图像语义分割的多尺度特征增强自适应融合网络。
PLoS One. 2022 Sep 30;17(9):e0274249. doi: 10.1371/journal.pone.0274249. eCollection 2022.
10
Semantic aware-based instruction embedding for binary code similarity detection.基于语义感知的指令嵌入的二进制代码相似性检测。
PLoS One. 2024 Jun 11;19(6):e0305299. doi: 10.1371/journal.pone.0305299. eCollection 2024.

本文引用的文献

1
Research of Software Defect Prediction Model Based on Complex Network and Graph Neural Network.基于复杂网络和图神经网络的软件缺陷预测模型研究
Entropy (Basel). 2022 Sep 27;24(10):1373. doi: 10.3390/e24101373.
2
Attention based GRU-LSTM for software defect prediction.基于注意力机制的 GRU-LSTM 在软件缺陷预测中的应用。
PLoS One. 2021 Mar 4;16(3):e0247444. doi: 10.1371/journal.pone.0247444. eCollection 2021.