← Back to VOLUME 13, ISSUE 11, NOVEMBER 2026
This work is licensed under a Creative Commons Attribution 4.0 International License.
Machine Learning-Based Automated Software Failure Diagnosis and Root Cause Localization
Ananya Anand, S Poornima
Downloads: Download PDF
👁 11 views📥 1 download
Abstract: Diagnosing the root cause of a software failure is a time-consuming task that requires developers to correlate failure reports, stack traces, source code and change history. This paper presents FaultTrace, a machine learning framework that ranks candidate source files by their likelihood of containing the root cause of a failure. Using real bugs from the Defects4J benchmark, we label the files modified by a bug’s verified fix as weak positives and files modified by other bugs’ fixes as weak negatives, extract five lightweight features (file size in lines, method count, class count, import count and a stack-trace match flag) and rank candidates with a Random Forest under leave-one-bug-out cross- validation. Only the Lang and Math projects yielded candidates that resolved in their own buggy-revision checkouts, giving 480 usable rows and 149 evaluable bugs. Source-structure features alone reach a Mean Reciprocal Rank (MRR) of 0.923 and a Recall@1 of 0.866; adding the stack-trace flag raises these to 0.950 and 0.906. Ablation and permutation importance show that file-size features dominate, while lexical-overlap features reduce accuracy. Most errors are near misses at rank 2. We discuss the limits of the weak-label design and of the small project sample, and outline extensions with harder negatives, more projects and semantic features.
Keywords: Software fault localization, root cause analysis, machine learning, random forest, Defects4J, mean reciprocal rank.
Keywords: Software fault localization, root cause analysis, machine learning, random forest, Defects4J, mean reciprocal rank.
How to Cite:
[1] Ananya Anand, S Poornima, “Machine Learning-Based Automated Software Failure Diagnosis and Root Cause Localization,” International Advanced Research Journal in Science, Engineering and Technology (IARJSET)
