Software Defects Identification: Results Using Machine Learning and Explainable Artificial Intelligence Techniques

被引:8
作者
Begum, Momotaz [1 ]
Shuvo, Mehedi Hasan [1 ]
Ashraf, Imran [2 ]
Al Mamun, Abdullah
Uddin, Jia [3 ]
Samad, Md Abdus [2 ]
机构
[1] Dhaka Univ Engn & Technol DUET, Dept Comp Sci & Engn, Gazipur 1707, Bangladesh
[2] Yeungnam Univ, Dept Informat & Commun Engn, Gyongsan 38541, Gyeongsangbuk D, South Korea
[3] Woosong Univ, Endicott Coll, AI & Big Data Dept, Daejeon 34606, South Korea
关键词
Software reliability; Fault diagnosis; Artificial intelligence; Unified modeling language; Random forests; Predictive models; Software defect prediction; features selection; software reliability; software fault diagnosis; explainable AI; SHAP; LIME; TIME;
D O I
10.1109/ACCESS.2023.3329051
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
The rising deployment of software in automation and the cognitive skills of machines indicate a machine revolution in modern human civilization. Thus, diagnosing and predicting software faults is crucial to software reliability. In this paper, we first preprocessed four real datasets offered by National Aeronautics and Space Administration with twenty-one features using the Synthetic Minority Oversampling Technique and Label Encoding techniques. Subsequently, we experimented with thirteen software fault diagnosis Machine Learning (ML) models, i.e., Random Forest Regression, Linear Regression, Naive Bayes, Decision Tree Classifier, Logistic Regression, KNeighbors Classifier, AdaBoost, Gradient Boosting Classifier, Gradient Boosting Regression, XGBR Regressor, XGBoost Classifier, Extra Trees Classifier and Support Vectors Machine after that, we compared each ML Model to select the best diagnostic model. Among them, XGBR outperformed, considering the accuracy, mean square error, and R2 score. We also used Explainable Artificial Intelligence (XAI), Local Interpretable Model (LIME), and SHapley Additive exPlanations (SHAP) to determine software fault features. We observed that Number of static invocations (nosi), Depth Inheritance Tree (dit), and Coupling Between Objects (cbo) features are the most affected software faults feature from datasets. For LIME, the average True positive of nosi is 40%, dit is 15%, and cbo is 20%; on the other hand, the SHAP average true positive value of nosi is 36%, cbo is 15%, and the norm true negative value of dit is 5%. Thus, LIME can afford the greatest impact on the model outcomes to identify features that are the most significant reasons for software defects.
引用
收藏
页码:132750 / 132765
页数:16
相关论文
共 40 条
[1]   An object-oriented high-level design-based class cohesion metric [J].
Al Dallal, Jehad ;
Briand, Lionel C. .
INFORMATION AND SOFTWARE TECHNOLOGY, 2010, 52 (12) :1346-1361
[2]  
Begum M., 2017, J. Softw. Eng. Appl, V10, P288, DOI [10.4236/jsea.2017.103017, DOI 10.4236/JSEA.2017.103017]
[3]  
Begum M., 2021, Engineering Letters, V29, P44
[4]  
Begum M., 2016, P 7 AS PAC INT S ADV, P17
[5]  
Begum M., 2023, J. Inf. Syst. Telecomm. (JIST), V11, P1, DOI DOI 10.61186/JIST.36585.11.43.222
[6]   Optimal Release Time Estimation of Software System using Box-Cox Transformation and Neural Network [J].
Begum, Momotaz ;
Dohi, Tadashi .
INTERNATIONAL JOURNAL OF MATHEMATICAL ENGINEERING AND MANAGEMENT SCIENCES, 2018, 3 (02) :177-194
[7]   Optimal stopping time of software system test via artificial neural network with fault count data [J].
Begum, Momotaz ;
Dohi, Tadashi .
JOURNAL OF QUALITY IN MAINTENANCE ENGINEERING, 2018, 24 (01) :22-36
[8]   SMOTE: Synthetic minority over-sampling technique [J].
Chawla, Nitesh V. ;
Bowyer, Kevin W. ;
Hall, Lawrence O. ;
Kegelmeyer, W. Philip .
2002, American Association for Artificial Intelligence (16)
[9]   A machine learning approximation of the 2015 Portuguese high school student grades: A hybrid approach [J].
Costa-Mendes, Ricardo ;
Oliveira, Tiago ;
Castelli, Mauro ;
Cruz-Jesus, Frederico .
EDUCATION AND INFORMATION TECHNOLOGIES, 2021, 26 (02) :1527-1547
[10]   Mean Absolute Percentage Error for regression models [J].
de Myttenaere, Arnaud ;
Golden, Boris ;
Le Grand, Benedicte ;
Rossi, Fabrice .
NEUROCOMPUTING, 2016, 192 :38-48