EUVIMEDEUVIMED entdecken
Open Access · CC BY 4.0

Features extraction and fusion by attention mechanism for software defect prediction

Shaoming Qiu, Bicong E iD, Jingjie He

PLOS ONE · 14.04.2025 · 20 (4) · e0320808

DOI: 10.1371/journal.pone.0320808 ↗

Kurz gefasst

Fachartikel in der Zeitschrift PLOS ONE, online erschienen am 14.04.2025. Verfasst von Shaoming Qiu und 2 weiteren Autor:innen. Beteiligte Einrichtung: School of Information Engineering, Dalian University, Dalian, China. Hauptthemen laut MEDLINE: Software. Die Arbeit wurde bisher 6-mal zitiert (Crossref) und nennt 25 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0).

AbstractSchlagwörterBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

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.

Schlagwörter

MeSH-Schlagwörter (MEDLINE)

SoftwareAlgorithmsSemantics

Autor:innen und Institutionen

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

ORCID-Profile: Bicong E

Zitieren

APA

Qiu, S., E, B., & He, J. (2025). Features extraction and fusion by attention mechanism for software defect prediction. PLOS ONE, 20(4), e0320808. https://doi.org/10.1371/journal.pone.0320808

Vancouver

Qiu S, E B, He J. Features extraction and fusion by attention mechanism for software defect prediction. PLOS ONE. 2025;20(4):e0320808. doi:10.1371/journal.pone.0320808

BibTeX
@article{Qiu2025,
  author = {Qiu, Shaoming and E, Bicong and He, Jingjie},
  title = {Features extraction and fusion by attention mechanism for software defect prediction},
  journal = {PLOS ONE},
  year = {2025},
  volume = {20},
  number = {4},
  pages = {e0320808},
  doi = {10.1371/journal.pone.0320808}
}
Kostenlos starten →