🤖 AI Summary
This study addresses the inefficiency of fault localization in industrial settings when relying solely on natural language defect reports, a task further hindered by the absence of practical approaches that operate without source code or execution traces. To tackle this challenge, the work formulates fault localization as a supervised text classification problem, leveraging only historical defect report texts to predict fault locations, thereby seamlessly integrating into existing maintenance workflows. Systematic experiments on five years of real-world data from ABB Robotics demonstrate that traditional machine learning models—such as logistic regression and random forests—combined with TF-IDF representations and data augmentation significantly outperform fine-tuned large language models like RoBERTa. These findings challenge the prevailing assumption that larger models inherently yield superior performance and substantiate the feasibility and effectiveness of a low-cost, scalable, purely text-driven AI solution for industrial fault localization.
📝 Abstract
Software quality assurance remains a major challenge in industrial environments, where large-scale and long-lived systems inevitably accumulate defects. Identifying the location of a fault is often time-consuming and costly, particularly during maintenance phases when developers must rely primarily on textual bug reports rather than complete runtime or code-level context. In this study, we investigated if artificial intelligence can support fault localization using only the natural-language content of bug reports. By relying only on textual information, our approach requires no access to source code, execution traces, or static analysis artifacts, making it directly deployable within existing industrial maintenance workflows. We framed fault localization as a supervised text classification problem and evaluated three traditional machine learning models (Logistic Regression, Support Vector Machine, and Random Forest) and two fine-tuned transformer-based language models (RoBERTa-Base and Distil-RoBERTa). Our evaluation used proprietary data from ABB Robotics in Sweden, comprising five years of resolved industrial bug reports, each linked to its verified code fix. This setting allowed us to assess model effectiveness under realistic industrial constraints.
Our results showed that traditional models using term frequency-inverse document features consistently outperformed the fine-tuned language models on this dataset, while data augmentation improved Random Forest performance. These findings challenge the assumption that transformer-based models universally outperform classical approaches in industrial contexts with domain-specific data. We demonstrated that historical bug reports can be systematically used for text-based, artificial intelligence-assisted fault localization, providing a scalable, low-cost, and empirically grounded complement to common debugging practices in industry.