📞 +91-7667918914 | ✉️ iarjset@gmail.com
International Advanced Research Journal in Science, Engineering and Technology
International Advanced Research Journal in Science, Engineering and Technology A Monthly Peer-Reviewed Multidisciplinary Journal
ISSN Online 2393-8021ISSN Print 2394-1588Since 2014
IARJSET aligns to the suggestive parameters by the latest University Grants Commission (UGC) for peer-reviewed journals, committed to promoting research excellence, ethical publishing practices, and a global scholarly impact.
← Back to VOLUME 13, ISSUE 11, NOVEMBER 2026

Machine Learning-Based Automated Software Failure Diagnosis and Root Cause Localization

Ananya Anand, S Poornima

👁 11 views📥 1 download
Share: 𝕏 f in ✈ ✉
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.

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)

Creative Commons License This work is licensed under a Creative Commons Attribution 4.0 International License.