Predicting Defective Lines Using a Model-Agnostic Technique
Open accessThe DOI matches its Crossref record; 107 of the 109 references it cites were found in a registry or an index.
Abstract
Defect prediction models are proposed to help a team prioritize the areas of source code files that need Software Quality Assurance (SQA) based on the likelihood of having defects. However, developers may waste their unnecessary effort on the whole file while only a small fraction of its source code lines are defective. Indeed, we find that as little as 1-3 percent of lines of a file are defective. Hence, in this work, we propose a novel framework (calledLine-DP) to identify defective lines using a model-agnostic technique, i.e., an Explainable AI technique that provides information why the model makes such a prediction. Broadly speaking, ourLine-DPfirst builds a file-level defect model using code token features. Then, ourLine-DPuses a state-of-the-art model-agnostic technique (i.e., LIME) to identify risky tokens, i.e., code tokens that lead the file-level defect model to predict that the file will be defective. Then, the lines that contain risky tokens are predicted as defective lines. Through a case study of 32 releases of nine Java open source systems, our evaluation results show that ourLine-DPachieves an average recall of 0.61, a false alarm rate of 0.47, a top 20%LOC recall of 0.27, and an initial false alarm of 16, which are statistically better than six baseline approaches. Our evaluation shows that ourLine-DPrequires an average computation time of 10 seconds including model construction and defective line identification time. In addition, we find that 63 percent of defective lines that can be identified by ourLine-DPare related to common defects (e.g., argument change, condition change). These results suggest that ourLine-DPcan effectively identify defective lines that contain common defects while requiring a smaller amount of inspection effort and a manageable computation cost. The contribution of this paper builds an important step towards line-level defect prediction by leveraging a model-agnostic technique.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
In the citing paper
“Local approaches, like just-in-time defect prediction [158], line-level defect prediction to improve debugging [215], analysis of the quality of code [200], prediction of the retention of syntax knowledge [143, 199], and counterfactual explanations [43, 75] explain individual predictions.”
From A 2030 Roadmap for Software Engineering (2025) · cites this paper as [215]
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Breiman, L. (2001) · Machine Learning · doi:10.1023/a:1010933404324 · Cited by 133,538 · cited 1×
“Unlike the traditional model interpretation techniques (TMI) like variable importance for random forest [9] or the coefficients analysis for logistic regression models [27], the model-agnostic techniques can identify important features for a given file by estimating the contribution of each token…”
MethodStatistical power analysis for the behavioral sciences
(1990) · Computers, Environment and Urban Systems · doi:10.1016/0198-9715(90)90050-4 · Cited by 65,269
Statistical Power Analysis for the Behavioral Sciences
Cohen, J. (2013) · doi:10.4324/9780203771587 · Cited by 25,373
"Why Should I Trust You?": Explaining the Predictions of Any Classifier
Ribeiro, M. T., Singh, S., & Guestrin, C. (2016) · Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining · doi:10.1145/2939672.2939778 · Cited by 17,555
(2017) · Cited by 16,319
Harrell, F. E. (2001) · Springer Series in Statistics · doi:10.1007/978-1-4757-3462-1 · Cited by 9,195
(2005) · PubMed · Cited by 7,011
Harrell (2015) · Springer Series in Statistics · doi:10.1007/978-3-319-19425-7 · Cited by 6,878
“Why Should I Trust You?”: Explaining the Predictions of Any Classifier
Ribeiro, M., Singh, S., & Guestrin, C. (2016) · Proceedings of the 2016 Conference of the North American Chapter of the Association for Computational Linguistics: Demonstrations · doi:10.18653/v1/n16-3020 · Cited by 6,682
Extended static checking for Java
Flanagan, C., Leino, K. R. M., Lillibridge, M., Nelson, G., Saxe, J. B., & Stata, R. (2002) · Proceedings of the ACM SIGPLAN 2002 conference on Programming language design and implementation · doi:10.1145/512529.512558 · Cited by 1,340 · cited 1×
“ch as null pointer dereferencing and buffer overflows) at the line level. Various static analysis approaches are proposed including heuristic rule-based techniques (e.g., PMD [12]), complex algorithms [20], and hybrid approaches like FindBugs2 which incorporates the static data-flow analysis and the patternmatching anal…”
Method
Research works printed but not linked: 2
- T. Copeland, PMD Applied, vol. 10. Arexandria, VA, USA: Centen- nial Books, 2005.
- M. Tomczak and E. Tomczak, "The need to report effect size esti- mates revisited. An overview of some recommended measures of effect size," Trends Sport Sci., vol. 21, no. 1, pp. 19-25, 2014.
Cited by
LineVul: a transformer-based line-level vulnerability prediction
Fu, M., & Tantithamthavorn, C. (2022) · Proceedings of the 19th International Conference on Mining Software Repositories · doi:10.1145/3524842.3528452 · Cited by 384
“[60] proposed a machine learning-based approach with LIME model-agnostic technique (BoW+RF+LIME) to predict which lines are likely to be defective in the future.”
BackgroundMethodResultInfluentialSelf-citationSemi-Supervised Log-Based Anomaly Detection via Probabilistic Label Estimation
Yang, L., Chen, J., Wang, Z., Wang, W., Jiang, J., Dong, X., & Zhang, W. (2021) · 2021 IEEE/ACM 43rd International Conference on Software Engineering (ICSE) · doi:10.1109/icse43902.2021.00130 · Cited by 244
“Moreover, recent studies have presented that making software analytics models interpretable to software practitioners is as important as achieving accurate prediction [75]–[77].”
BackgroundLineVD: statement-level vulnerability detection using graph neural networks
Hin, D., Kan, A., Chen, H., & Babar, M. A. (2022) · Proceedings of the 19th International Conference on Mining Software Repositories · doi:10.1145/3524842.3527949 · Cited by 218
“Particularly, there have been works attempting to detecting lines-level information by leveraging explainable artificial intelligence for software engineering tasks, such as detecting source code lines for defect prediction [50, 58].”
BackgroundVulRepair: a T5-based automated software vulnerability repair
Fu, M., Tantithamthavorn, C., Le, T., Nguyen, V., & Phung, D. (2022) · Proceedings of the 30th ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering · doi:10.1145/3540250.3549098 · Cited by 207
Self-citationCode Prediction by Feeding Trees to Transformers
Kim, S., Zhao, J., Tian, Y., & Chandra, S. (2021) · 2021 IEEE/ACM 43rd International Conference on Software Engineering (ICSE) · doi:10.1109/icse43902.2021.00026 · Cited by 209
“For example, [43], [44] used LIME [45], a model-agnostic explainability method, to pinpoint the defective lines of code from defect detection models.”
MethodRefining ChatGPT-Generated Code: Characterizing and Mitigating Code Quality Issues
Liu, Y., Le-Cong, T., Widyasari, R., Tantithamthavorn, C., Li, L., Le, X.-B. D., & Lo, D. (2024) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3643674 · Cited by 149
Self-citationJITLine: A Simpler, Better, Faster, Finer-grained Just-In-Time Defect Prediction
Pornprasit, C., & Tantithamthavorn, C. K. (2021) · International Conference on Mining Software Repositories (MSR) · doi:10.1109/msr52588.2021.00049 · Cited by 185
Self-citationDeepLineDP: Towards a Deep Learning Approach for Line-Level Defect Prediction
Pornprasit, C., & Tantithamthavorn, C. K. (2022) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2022.3144348 · Cited by 168
“Wattanak-riengkrai et al. [73] leveraged LIME for line-level release-based defect prediction, helping developers better identify the location of software defects.”
BackgroundMethodResultInfluentialSelf-citationDeep Learning for Android Malware Defenses: A Systematic Literature Review
Liu, Y., Tantithamthavorn, C., Li, L., & Liu, Y. (2023) · ACM Computing Surveys · doi:10.1145/3544968 · Cited by 101
“Recently, researchers have focused on conducting empirical studies to highlight the need of explainable AI/ML models for software engineering [71] and developing novel approaches for explainable AI/ML models for software engineering [71, 81, 120, 120, 124, 128, 164].”
BackgroundSelf-citationExplainable AI for Software Engineering
Tantithamthavorn, C. K., & Jiarpakdee, J. (2021) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase51524.2021.9678580 · Cited by 102
“…an explainable defect prediction framework to achieve the following goals: 1) Generating fine-grained predictions in order to help developers localize which lines of code are the most risky so developers can allocate limited software quality assurance activities in a cost-effective manner [13].”
BackgroundSelf-citationNi, C., Wang, W., Yang, K., Xia, X., Liu, K., & Lo, D. (2022) · Proceedings of the 30th ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering · doi:10.1145/3540250.3549165 · Cited by 76
“[53] stated that a machine learning approach can achieve better performance than the N-gram approach.”
GPT2SP: A Transformer-Based Agile Story Point Estimation Approach
Fu, M., & Tantithamthavorn, C. (2023) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2022.3158252 · Cited by 71
“For example, recent works have shown some successful case studies to make defect prediction models more practical [15], [33], [34], [55], explainable [17], [20], and actionable [31], [35], [40].”
MethodResultSelf-citationPractitioners’ Perceptions of the Goals and Visual Explanations of Defect Prediction Models
Jiarpakdee, J., Tantithamthavorn, C. K., & Grundy, J. (2021) · International Conference on Mining Software Repositories (MSR) · doi:10.1109/msr52588.2021.00055 · Cited by 100
Self-citationDeepCVA: Automated Commit-level Vulnerability Assessment with Deep Multi-task Learning
Le, T. H. M., Hin, D., Croft, R., & Babar, M. A. (2021) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase51524.2021.9678622 · Cited by 108
“, [71], [72]) can pinpoint more precise locations (e.”
BackgroundPLELog: Semi-Supervised Log-Based Anomaly Detection via Probabilistic Label Estimation
Yang, L., Chen, J., Wang, Z., Wang, W., Jiang, J., Dong, X., & Zhang, W. (2021) · 2021 IEEE/ACM 43rd International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1109/icse-companion52605.2021.00106 · Cited by 66
PyExplainer: Explaining the Predictions of Just-In-Time Defect Models
Pornprasit, C., Tantithamthavorn, C. K., Jiarpakdee, J., Fu, M. C., & Thongtanunam, P. (2021) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase51524.2021.9678763 · Cited by 93
“We choose LIME as a baseline comparison, since LIME has been widely used in SE research [13, 29, 30, 49] Similar to PyExplainer, LIME produces three main components: (1) synthetic neighbors; (2) local models; and (3) explanations.”
BackgroundMethodSelf-citationSoftware defect prediction: future directions and challenges
Li, Z., Niu, J., & Jing, X. (2024) · Automated Software Engineering · doi:10.1007/s10515-024-00424-1 · Cited by 79
“Issue: In practice, practitioners are interested in identifying the specific lines of code that are defective (Wattanakriengkrai et al. 2022).”
AutoTransform: automated code transformation to support modern code review process
Thongtanunam, P., Pornprasit, C., & Tantithamthavorn, C. (2022) · Proceedings of the 44th International Conference on Software Engineering · doi:10.1145/3510003.3510067 · Cited by 59
“Thus, recent work leveraged machine learning techniques to support various activities throughout the code review process, for example, reviewer recommendation [13, 43, 46, 49, 56, 59], review task prioritization based on code change characteristics [23, 38, 58] and defect-proneness [30, 39, 44, 45, 65].”
BackgroundSelf-citationCommentFinder: a simpler, faster, more accurate code review comments recommendation
Hong, Y., Tantithamthavorn, C., Thongtanunam, P., & Aleti, A. (2022) · Proceedings of the 30th ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering · doi:10.1145/3540250.3549119 · Cited by 57
“, line level) may help developers better focus on the smaller scope of source code [22, 40, 64].”
BackgroundSelf-citationVulExplainer: A Transformer-Based Hierarchical Distillation for Explaining Vulnerability Types
Fu, M. C., Nguyen, V., Tantithamthavorn, C. K., Le, T., & Phung, D. (2023) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2023.3305244 · Cited by 79
“Recently, line-level software vulnerability prediction (SVP) methods [21], [28], [51], [57], [73] are proposed to detect vulnerable lines in source code that may save security analysts’ efforts to locate vulnerabilities among a large number of codes.”
BackgroundSelf-citationAI for DevSecOps: A Landscape and Future Opportunities
Fu, M. C., Pasuksmit, J., & Tantithamthavorn, C. K. (2025) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3712190 · Cited by 113
Self-citationAn Empirical Study of Static Analysis Tools for Secure Code Review
Charoenwet, W., Thongtanunam, P., Pham, V.-T., & Treude, C. (2024) · ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA) · doi:10.1145/3650212.3680313 · Cited by 79
Self-citationSQAPlanner: Generating Data-Informed Software Quality Improvement Plans
Rajapaksha, D., Tantithamthavorn, C. K., Jiarpakdee, J., Bergmeir, C., Grundy, J., & Buntine, W. (2021) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2021.3070559 · Cited by 55
Self-citationOn the use of evaluation measures for defect prediction studies
Moussa, R., & Sarro, F. (2022) · ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA) · doi:10.1145/3533767.3534405 · Cited by 60
“, within-project, cross-release and cross-project) widely investigated in the literature [26, 47] as opposed, for example, to more recent (and therefore less studied) ones such as effort-aware models [6, 34, 37, 53] or binary prediction at line level [49], method level [39] or commit/change level [15, 25, 38, 52].”
BackgroundSurvey of source code vulnerability analysis based on deep learning
Chen, L., Wei, Q., Du, J. Y., Wang, Y., & Jiang, Z. (2024) · Computers & Security · doi:10.1016/j.cose.2024.104098 · Cited by 57
Durrani, U. K., Akpınar, M., Adak, M. F., Kabakuş, A. T., Öztürk, M. M., & Saleh, M. (2024) · IEEE Access · doi:10.1109/access.2024.3488904 · Cited by 79
“In deployment and maintenance, it continues to be widely used to optimize decision-making and predict maintenance needs [65], [66], [67].”
Dealing with imbalanced data for interpretable defect prediction
Gao, Y., Zhu, Y., & Zhao, Y. (2022) · Information and Software Technology · doi:10.1016/j.infsof.2022.107016 · Cited by 45
Actionable Analytics: Stop Telling Me What It Is; Please Tell Me What To Do
Tantithamthavorn, C. K., Jiarpakdee, J., & Grundy, J. (2021) · IEEE Software · doi:10.1109/ms.2021.3072088 · Cited by 33
Self-citationThe need for more informative defect prediction: A systematic literature review
Grattan, N., da Costa, D. A., & Stanger, N. (2024) · Information and Software Technology · doi:10.1016/j.infsof.2024.107456 · Cited by 43
Evaluating network embedding techniques’ performances in software bug prediction
Qu, Y., & Yin, H. (2021) · Empirical Software Engineering · doi:10.1007/s10664-021-09965-5 · Cited by 27
“Such idea is similar to Wattanakriengkrai et al. (2020).”
BackgroundExplainable AI for SE: Challenges and Future Directions
Tantithamthavorn, C. K., Cito, J., Hemmati, H., & Chandra, S. (2023) · IEEE Software · doi:10.1109/ms.2023.3246686 · Cited by 37
Self-citationMethod-Level Bug Severity Prediction using Source Code Metrics and LLMs
Mashhadi, E., Ahmadvand, H., & Hemmati, H. (2023) · Proceedings/Proceedings - International Symposium on Software Reliability Engineering · doi:10.1109/issre59848.2023.00055 · Cited by 44
“Different granularity levels such as package/class level [32]–[34], method level [23], [24], [35]–[38], and line level [39] have been applied in previous research.”
MethodMethod-level Bug Prediction: Problems and Promises
Chowdhury, S., Uddin, G., Hemmati, H., & Holmes, R. (2024) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3640331 · Cited by 34
“Consider a dataset with 10 consecutive releases of a software project.”
Automatically Recommend Code Updates: Are We There Yet?
Liu, Y., Tantithamthavorn, C. K., Liu, Y., Thongtanunam, P., & Li, L. (2024) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3678167 · Cited by 32
“Additionally, our selection criteria, which required apps to be published on Google Play and have more than one commit message on GitHub, led to the exclusion of a large number of apps from the AndroZooOpen dataset.”
Self-citationLine-Level Defect Prediction by Capturing Code Contexts With Graph Convolutional Networks
Yin, S., Guo, S., Li, H., Li, C., Chen, R., Li, X., & Jiang, H. (2024) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2024.3503723 · Cited by 25
“Wattanakriengkrai et al. [22] utilized model-agnostic techniques to identify risky code tokens, thereby flagging potentially defective code lines.”
InfluentialSilent Vulnerable Dependency Alert Prediction with Vulnerability Key Aspect Explanation
Sun, J., Xing, Z., Lu, Q., Xu, X., Zhu, L., Hoang, T., & Zhao, D. (2023) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1109/icse48619.2023.00089 · Cited by 40
“There are many other works prove the necessity of XAI in the software domain [29], [30], [78].”
JIT-Smart: A Multi-task Learning Framework for Just-in-Time Defect Prediction and Localization
Chen, X., Xu, F., Huang, Y., Zhang, N., & Zheng, Z. (2024) · Proceedings of the ACM on software engineering. · doi:10.1145/3643727 · Cited by 30
Where Should I Look at? Recommending Lines that Reviewers Should Pay Attention To
Hong, Y., Tantithamthavorn, C. K., & Thongtanunam, P. (2022) · IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER) · doi:10.1109/saner53432.2022.00121 · Cited by 28
Self-citationCode-line-level Bugginess Identification: How Far have We Come, and How Far have We Yet to Go?
Guo, Z., Liu, S., Liu, X., Lai, W., Ma, M., Zhang, X., Ni, C., Yang, Y., Li, Y., Chen, L., et al. (2023) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3582572 · Cited by 23
“[73] proposed a state-of-the-art (SOTA) MIT based approach LineDP that leverages a model-agnostic technique LIME [62] as the core interpreter to identify buggy code lines.”
BackgroundMethodInfluentialDefectors: A Large, Diverse Python Dataset for Defect Prediction
Mahbub, P., Shuvo, O., & Rahman, M. M. (2023) · International Conference on Mining Software Repositories (MSR) · doi:10.1109/msr59073.2023.00085 · Cited by 16
LineFlowDP: A Deep Learning-Based Two-Phase Approach for Line-Level Defect Prediction
Yang, F., Zhong, F., Zeng, G., Xiao, P., & Zheng, W. (2024) · Empirical Software Engineering · doi:10.1007/s10664-023-10439-z · Cited by 21
“Flow’s median on the IFA metric is lower than Context, but this difference is small (only 3 LOC difference).”
InfluentialNguyen, V., Le, T., Tantithamthavorn, C. K., Grundy, J., & Phung, D. (2024) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3664602 · Cited by 22
“…from open source to commercial tools, and from manual to automatic methods [Cheng et al. 2019; Duan et al. 2019; Grieco et al. 2016; Li et al. 2018b; Neuhaus et al. 2007; Pornpra-sit and Tantithamthavorn 2021; Shin et al. 2011; Wattanakriengkrai et al. 2020] have been proposed and implemented.”
Self-citationPredicting Line-Level Defects by Capturing Code Contexts with Hierarchical Transformers
Mahbub, P., & Rahman, M. M. (2024) · IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER) · doi:10.1109/saner60148.2024.00038 · Cited by 26
“We evaluate Bugsplorer both as a classification and a retrieval technique using five appropriate performance metrics from the literature [7], [13], [29] as follows.”
BackgroundMethodInfluentialAn empirical study on bug severity estimation using source code metrics and static analysis
Mashhadi, E., Chowdhury, S., Modaberi, S., Hemmati, H., & Uddin, G. (2024) · Journal of Systems and Software · doi:10.1016/j.jss.2024.112179 · Cited by 27
XCoS: Explainable Code Search Based on Query Scoping and Knowledge Graph
Wang, C., Peng, X., Xing, Z., Zhang, Y., Liu, M., Luo, R., & Meng, X. (2023) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3593800 · Cited by 21
D-ACT: Towards Diff-Aware Code Transformation for Code Review Under a Time-Wise Evaluation
Pornprasit, C., Tantithamthavorn, C. K., Thongtanunam, P., & Chen, C. (2023) · IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER) · doi:10.1109/saner56733.2023.00036 · Cited by 24
“…were proposed to support code review activities (e.g., review prioritization [25, 26], just-in-time defect prediction [17, 27, 28] and localization [29–32], reviewer recommendation [33–37], AI-assisted code reviewer [38, 39]), such activities still require manual effort which can be time-consuming…”
BackgroundSelf-citationA 2030 Roadmap for Software Engineering
Pezzè, M., Abrahão, S., Penzenstadler, B., Poshyvanyk, D., Roychoudhury, A., & Yue, T. (2025) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3731559 · Cited by 13
Explaining Transformer-based Code Models: What Do They Learn? When They Do Not Work?
Mohammadkhani, A. H., Tantithamthavorn, C. K., & Hemmatif, H. (2023) · IEEE International Working Conference on Source Code Analysis and Manipulation (SCAM) · doi:10.1109/scam59687.2023.00020 · Cited by 43
“[14] and Pornprasit and Tantithamthavorn [15] employed modelagnostic techniques (e.”
MethodSelf-citationCan explainability and deep-learning be used for localizing vulnerabilities in source code?
Marchetto, A. (2024) · doi:10.1145/3644032.3644448 · Cited by 21
VulTR: Software vulnerability detection model based on multi-layer key feature enhancement
He, H., Wang, S., Wang, Y., Liu, K., & Yu, L. (2024) · Computers & Security · doi:10.1016/j.cose.2024.104139 · Cited by 14
Beyond Fidelity: Explaining Vulnerability Localization of Learning-Based Detectors
Cheng, B., Zhao, S., Wang, K., Wang, M., Bai, G., Feng, R., Guo, Y., Ma, L., & Wang, H. (2024) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3641543 · Cited by 22
Yang, M., Yang, S., & Wong, W. E. (2024) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2024.3421591 · Cited by 17
“The efforts of previous SDP studies can be summarized into the two following approaches: The fi rst approach is designing improved prediction models with enhanced learning capability [3], [4], and the second is extracting new features for more effective representation [5], [6].”
MethodCFG2AT: Control Flow Graph and Graph Attention Network-Based Software Defect Prediction
Liu, H., Li, Z., Zhang, H., Jing, X., & Liu, J. (2024) · IEEE Transactions on Reliability · doi:10.1109/tr.2024.3503688 · Cited by 14
“These datasets have previously been used in other SDP studies [56], [67], [68].”
Zhao, Y. D., Huang, Z., Gong, L., Zhu, Y., Yu, Q., & Gao, Y. (2023) · IET Software · doi:10.1049/2023/6293074 · Cited by 17
“Recently, MCC has also been widely used by the researchers [76 – 78].”
MethodA Formal Explainer for Just-In-Time Defect Predictions
Yu, J., Fu, M. C., Ignatiev, A., Tantithamthavorn, C. K., & Stuckey, P. J. (2024) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3664809 · Cited by 21
“For example, recent works have shown some successful case studies to make defect prediction models more practical [43, 61], explainable [24, 28], and actionable [44, 45].”
Self-citationMitigating Data Imbalance for Software Vulnerability Assessment: Does Data Augmentation Help?
Le, T. H. M., & Babar, M. A. (2024) · Proceedings of the ... ACM-IEEE International Symposium on Empirical Software Engineering and Measurement/International Symposium on Empirical Software Engineering and Measurement · doi:10.1145/3674805.3686674 · Cited by 20
Yang, X., Yu, H., Fan, G., Huang, Z., Yang, K., & Zhou, Z. (2021) · Lecture notes of the Institute for Computer Sciences, Social Informatics and Telecommunications Engineering · doi:10.1007/978-3-030-92635-9_25 · Cited by 13
A Method-Level Defect Prediction Approach Based on Structural Features of Method-Calling Network
Yang, F., Xu, H., Xiao, P., Zhong, F., & Zeng, G. (2023) · IEEE Access · doi:10.1109/access.2023.3239266 · Cited by 12
“In contrast, a more fine-grained defect prediction can ease the work of software quality assurance personnel and thereby reduce the time spent in locating defects and modifying them [7].”
BackgroundMethodInfluentialExplainable Software Defect Prediction: Are We There Yet?Preprint
Shin, J., Aleithan, R., Nam, J., Wang, J., & Wang, S. (2021) · arXiv (Cornell University) · doi:10.48550/arxiv.2111.10901 · Cited by 26
A framework for conditional statement technical debt identification and description
Alhefdhi, A., Dam, H. K., Nugroho, Y. S., Hata, H., Ishio, T., & Ghose, A. (2022) · Automated Software Engineering · doi:10.1007/s10515-022-00364-8 · Cited by 14
“Since conditional statements are said to be error-prone program elements [44–46], this study focuses on conditional statement and comment pairs.”
BackgroundSelf-citationIRJIT: A simple, online, information retrieval approach for just-in-time software defect prediction
Sahar, H., Bangash, A. A., Hindle, A., & Barbosa, D. (2024) · Empirical Software Engineering · doi:10.1007/s10664-024-10514-z · Cited by 10
“Wattanakriengkrai et al. [47] applied the same technique to explain a file level defect model.”
MethodNguyen, A. T., Le, T. H. M., & Babar, M. A. (2024) · Proceedings of the ... ACM-IEEE International Symposium on Empirical Software Engineering and Measurement/International Symposium on Empirical Software Engineering and Measurement · doi:10.1145/3674805.3686670 · Cited by 10
An Empirical Comparison of Model-Agnostic Techniques for Defect Prediction Models
Lee, G., & Lee, S. U.-J. (2023) · IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER) · doi:10.1109/saner56733.2023.00026 · Cited by 12
“Wattanakriengkrai et al. [6] proposed a LINE-DP framework which interprets the predictions of ML/AI models using LIME to indicate where the actual defective lines are in the class predicted to have a defect.”
BackgroundMethodInfluentialBessghaier, N., Sayagh, M., Ouni, A., & Mkaouer, M. W. (2023) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3607186 · Cited by 7
“• (Step 10) Model interpretability : Similarly to previous studies [29, 31, 73, 85], we identify which features are the most important for classifying a file to better understand the behavior of our models.”
BackgroundAn Empirical Study on Code Review Activity Prediction and Its Impact in Practice
Olewicki, D., Habchi, S., & Adams, B. (2024) · Proceedings of the ACM on software engineering. · doi:10.1145/3660806 · Cited by 19
A Systematic Literature Review on Explainability for ML/DL-based Software Engineering
Cao, S., Sun, X., Widyasari, R., Lo, D., Wu, X., Bo, L., Zhang, J., Li, B., Liu, W., Wu, D., et al. (2025) · ACM Computing Surveys · doi:10.1145/3763230 · Cited by 51
SyntaxLineDP: a Line-level Software Defect Prediction Model based on Extended Syntax Information
Zhu, J., Huang, Y., Chen, X., Wang, R., & Zheng, Z. (2023) · IEEE International Conference on Software Quality, Reliability and Security (QRS) · doi:10.1109/qrs60937.2023.00018 · Cited by 7
“…labeled as clean code lines in N-grams, and finally rank the lines in the test set by calculating their entropy values; Wattanakriengkrai et al. [24] used LIME [25] to calculate the LIME score for each token of the defective file, and taken tokens with positive LIME scores as risky tokens which…”
BackgroundMethodInfluentialAutomatic Data Labeling for Software Vulnerability Prediction Models: How Far Are We?
Le, T. H. M., & Babar, M. A. (2024) · Proceedings of the ... ACM-IEEE International Symposium on Empirical Software Engineering and Measurement/International Symposium on Empirical Software Engineering and Measurement · doi:10.1145/3674805.3686675 · Cited by 14
Ma, Q., Zhong, Y., Wang, Z., & Bukkapatnam, S. (2023) · Journal of Manufacturing Science and Engineering · doi:10.1115/1.4064039 · Cited by 5
BAFLineDP: Code Bilinear Attention Fusion Framework for Line- Level Defect Prediction
Qiu, S., Huang, H., Luo, J., Kuang, Y., & Luo, H. (2024) · IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER) · doi:10.1109/saner60148.2024.00036 · Cited by 13
“In recent years, some researchers have tried to utilize various approaches to predict defective code lines [9], [22]–[24].”
BackgroundMethodXu, L., An, B., Li, X., Zhao, D., Peng, H., Song, W., Tong, F., & Han, X. (2024) · IEEE Internet of Things Journal · doi:10.1109/jiot.2024.3459921 · Cited by 9
“Function-level vulnerability detection [8], [10], [12], [14], [15] and statement-level vulnerability detection [16], [17], [18], [19], [20], [21] are two distinct approaches to software code vulnerability detection.”
Cross Domain Few-Shot Line-Level Defect Prediction in Open Software Development via Meta Learning
Li, Z., Guo, S., Zhang, L., Li, H., Yang, Z., Qiao, N., & Ma, Q. (2025) · IEEE Transactions on Consumer Electronics · doi:10.1109/tce.2025.3572334 · Cited by 6
“1) Datasets: Our work conducts experiments using the benchmark line-level defect dataset (as shown in Table II) publicly released by Wattanakriengkrai et al. [48].”
Estimating Uncertainty in Line-Level Defect Prediction via Perceptual Borderline Oversampling
Wu, C., Guo, S., Li, H., Li, C., & Chen, R. (2025) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3746225 · Cited by 6
Tran, N.-Q., Nguyen, H.-C., Mach, B.-N., Nguyen, N. N., & Nguyen, T. Q. (2025) · Journal of Intelligent Manufacturing · doi:10.1007/s10845-025-02767-2 · Cited by 5
Enhanced Vulnerability Localization: Harmonizing Task-Specific Tuning and General LLM Prompting
Tian, W., Lin, Y., Gao, X., & Sun, H. (2025) · IEEE International Conference on Software Maintenance (ICSM) · doi:10.1109/icsme64153.2025.00020 · Cited by 5
MatsVD: Boosting Statement-Level Vulnerability Detection via Dependency-Based Attention
Weng, C., Qin, Y., Lin, B., Liu, P., & Chen, L. (2024) · Asia-Pacific Symposium on Internetware · doi:10.1145/3671016.3674807 · Cited by 9
Lee, G., & Lee, S. U.-J. (2023) · IEEE Software · doi:10.1109/ms.2023.3244204 · Cited by 4
Zhou, Y., Tang, H., Zhu, L., Ding, H., & Qian, J. (2025) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3707456 · Cited by 3
“The third category relies on model interpretation techniques (MITs) [32] to predict defective lines by interpreting token contributions within the context of coarse-grained defect prediction models.”
InfluentialOptimizing software defect prediction performance via call graph embedding and feature selection
Mehta, S., Misra, S., Kumar, L., & Patnaik, K. S. (2025) · Cluster Computing · doi:10.1007/s10586-025-05754-7 · Cited by 3
Can explainable artificial intelligence support software modelers in model comprehension?
Alcaide, F. J., Romero, J. R., & Ramírez, A. (2025) · Software & Systems Modeling · doi:10.1007/s10270-024-01251-4 · Cited by 6
“LINE-DP is another LIME-based model diagnostic method, but it operates at the line level [30].”
Du, X., Xue, Y., & Qiao, Z. (2025) · Engineering Applications of Artificial Intelligence · doi:10.1016/j.engappai.2025.110381 · Cited by 4
Unsupervised Software Defect Prediction Through Multiview Clustering
Li, Z., Zhang, H., Jing, X., Yu, W., & Liu, Y. (2025) · IEEE Transactions on Reliability · doi:10.1109/tr.2025.3548107 · Cited by 6
“These projects have been extensively utilized in previous defect prediction studies appeared in famous software engineering venues [29], [47], [67], [68].”
Enhancing line-level defect prediction using bilinear attention fusion and ranking optimization
Qiu, S., Huang, H., Kuang, Y., Luo, H., & Liu, X. (2025) · Empirical Software Engineering · doi:10.1007/s10664-025-10674-6 · Cited by 5
An Empirical Study on the Stability of Explainable Software Defect Prediction
Shin, J., Aleithan, R., Nam, J., Wang, J., Harzevili, N. S., & Wang, S. (2023) · Asia-Pacific Software Engineering Conference (APSEC) · doi:10.1109/apsec60848.2023.00024 · Cited by 10
“Details are as follows.”
BackgroundDoes the first response matter for future contributions? A study of first contributions
Assavakamhaenghan, N., Wattanakriengkrai, S., Shimada, N., Kula, R. G., Ishio, T., & Matsumoto, K. (2023) · Empirical Software Engineering · doi:10.1007/s10664-023-10299-7 · Cited by 6
“…solving or additional work. ex. looking at some of the examples at << url >> , i’m inclinded to think that, in this case, << script >> should be implemented as << script >> within the anchor (as much as i hate to add more spans) – Question to author: In this case, the reviewer asked a question…”
BackgroundMethodSelf-citationDeveloping Smarter Software Engineering Tools by Utilizing AI Assistance
Syyrilä, E., & Kasurinen, J. (2024) · International Convention on Information and Communication Technology, Electronics and Microelectronics · doi:10.1109/mipro60963.2024.10569365 · Cited by 2
Don’t forget to change these functions! recommending co-changed functions in modern code review
Hong, Y., Tantithamthavorn, C. K., Thongtanunam, P., & Aleti, A. (2024) · Information and Software Technology · doi:10.1016/j.infsof.2024.107547 · Cited by 3
Self-citationMalhotra, R., & Patidar, J. (2025) · Discover Computing · doi:10.1007/s10791-025-09552-y · Cited by 5
Boosting Code-line-level Defect Prediction with Spectrum Information and Causality Analysis
Sun, S., Li, Y., Chen, L., Zhou, Y., & Zhao, J. (2025) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1109/icse55347.2025.00240 · Cited by 2
“The main idea of existing code-line-level defect prediction (CLDP) approaches [9]–[12] is to convert the code line into a set of tokens and assume that lines containing higher suspicious tokens are potential defective lines.”
InfluentialNguyen, V., Nepal, ., Yuan, X., Wu, T., & Rudolph, C. (2025) · ACM Asia Conference on Computer and Communications Security (ASIA CCS) · doi:10.1145/3708821.3736208 · Cited by 3
CIV: Leveraging causal subgraphs of vulnerability for noise reduction in vulnerability detection
Gao, Z., Xiao, L., Du, X., & Xing, Y. (2025) · Expert Systems with Applications · doi:10.1016/j.eswa.2025.130392 · Cited by 2
OdegVul: An Approach for Statement-Level Defect Prediction
Yin, G., Wang, W., & Li, H. (2023) · International Journal of Software Engineering and Knowledge Engineering · doi:10.1142/s0218194023500614 · Cited by 2
Khanna, M., & Bansal, A. (2024) · Journal of Software Evolution and Process · doi:10.1002/smr.2660 · Cited by 2
“69 Moreover, it is not based on the statistics of Wilcoxon signed – rank test.”
A Just-in-time Software Defect Localization Method based on Code Graph Representation
Zhang, H., Min, W., Wei, Z., Kuang, L., Gao, H., & Miao, H. (2024) · IEEE International Conference on Program Comprehension (ICPC) · doi:10.1145/3643916.3644428 · Cited by 2
A Fine-Grained Defect Prediction Method Based on Drift-Immune Graph Neural Networks
Wei, X., Yang, F., Zhong, F., & Zeng, G. (2024) · Computers, materials & continua/Computers, materials & continua (Print) · doi:10.32604/cmc.2024.057697 · Cited by 2
“For statement-level defect prediction, we utilized the benchmark dataset compiled by Wattanakriengkrai et al. [14], which comprises 32 versions of nine open-source software systems.”
Durrani, U. K., Akpınar, M., Bektaş, H., & Saleh, M. (2025) · IEEE Access · doi:10.1109/access.2025.3574462 · Cited by 8
“…are: 1) adopting NLP-driven tools (e.g., Quality User Story [42]) for requirement automation; 2) integrating predictive models (e.g., LSTM-based estimators [25]) in planning; and 3) prioritizing AI-augmented testing tools (e.g., Cuckoo Search [46]) to balance automation with human oversight.”
A Line-Level Explainable Vulnerability Detection Approach for Java
Mosolygó, B., Vándor, N., Hegedűs, P., & Ferenć, R. (2022) · Lecture notes in computer science · doi:10.1007/978-3-031-10542-5_8 · Cited by 2
Khan, A., Ali, A., Khan, J., Ullah, F., & Khan, M. A. (2023) · Research Square · doi:10.21203/rs.3.rs-3209115/v1 · Cited by 4
Commit-Based Class-Level Defect Prediction for Python Projects
Khine Yin, M. O. N., Kondo, M., Choi, E., & Mizuno, O. (2023) · IEICE Transactions on Information and Systems · doi:10.1587/transinf.2022mpp0003 · Cited by 1
Validity Analysis of Software Defect Prediction Model for Mis-label Correction Based on CleanLab
Xu, A., Zhu, Y., Gao, Y., Yu, Q., & Hao, G. (2023) · International Conference on Dependable Systems and Their Applications (DSA) · doi:10.1109/dsa59317.2023.00036 · Cited by 2
Metadata
- Authors
- Wattanakriengkrai, S., Thongtanunam, P., Tantithamthavorn, C., Hata, H., & Matsumoto, K.
- Affiliations
- Nara Institute of Science and Technology (JP)
- The University of Melbourne (AU)
- Monash University (AU)
- ORCID
- Venue
- IEEE Transactions on Software Engineering
- Published
- 2022-05-01
- Volume
- 48
- Issue
- 5
- Pages
- 1480-1496
- ISSN
- 0098-5589 (ISSN-L)
- 1939-3520
- 2326-3881
- OpenAlex
- W3083954092
- Cited by
- 137
- References
- 109
- Citations by year
- 2026: 21 · 2025: 24 · 2024: 38 · 2023: 24 · 2022: 15
- FWCI
- 12.69
- Type
- journal article
- Language
- en
- Open access
- hybrid
- doi.org
- Locations
- IEEE Transactions on Software Engineering (publishedVersion, cc-by)
- Institutional Repositories DataBase (IRDB) (publishedVersion, cc-by)
- arXiv (Cornell University) (submittedVersion)
- Minerva Access (University of Melbourne) (submittedVersion, cc-by)
- Monash University Research Portal (Monash University) (submittedVersion, other-oa)
- NAIST Digital Library (Nara Institute of Science and Technology) (submittedVersion, cc-by-nc-nd)
- arXiv (Cornell University) (cc-by)
- Funders
- JSPS KAKENHI (16H05857, 20H05706)
- Australian Research Council (DE200100941, DE210101091)
- Monash-FIT Early Career Researcher
- Topics
- Physical Sciences › Computer Science › Information Systems › Software Engineering Research
- Physical Sciences › Computer Science › Software › Software Testing and Debugging Techniques
- Physical Sciences › Computer Science › Software › Software Reliability and Analysis Research
- Keywords
- model-agnostic explanation, lime, explainable AI, software defect prediction, software quality assurance
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.