• 结合多元特征的软件缺陷预测

    Software defect prediction based on combining multiple features

    • 基于传统度量的软件缺陷预测模型因无法捕捉代码的语义与结构信息,导致性能受限。尽管深度学习技术能有效提取代码的深层特征以提升预测效果,但现有方法多依赖单一类型的特征,致使特征表征不全面,模型性能仍有待提高。针对这个问题,提出了一种结合多元特征的软件缺陷预测方法DP-CMF(Software Defect Prediction based on Combining Multiple Features),该方法使用基于注意力机制的Transformer模型和基于树的卷积神经网络(Tree-Based Convolutional Neural Network, TBCNN)分别提取源代码的语义特征和结构特征并进行特征融合,然后将融合后的特征与传统特征结合用于缺陷预测。在PROMISE存储库的7个公开数据集上进行了验证,实验结果表明,与现有的软件缺陷预测方法对比,DP-CMF方法获得了更高的F1值。

       

      Abstract: Traditional metric-based software defect prediction models suffer from performance limitations due to their inability to capture syntactic and structural information of source code. While deep learning techniques have demonstrated effectiveness in extracting deep-seated code features to enhance prediction accuracy, existing approaches predominantly rely on singular feature types, resulting in insufficient feature representation and suboptimal model performance. To address this issue, this paper proposes a software Defect Prediction method based on Combines Multiple Features(DP-CMF). The proposed method uses attention-based Transformer and Tree-Based Convolutional Neural Network(TBCNN) to extract and merge semantic and structural features of the source code respectively for feature fusion, then the fused features are combined with the traditional features for defect prediction. This paper is validated in 7 public datasets of PROMISE repository, and experimental results show that compared with existing software defect prediction methods, DP-CMF obtains higher F1-score.

       

    /

    返回文章
    返回