A Defect is Being Born: How Close Are We? A Time Sensitive Forecasting Approach
Mikel Robredo, Matteo Esposito, Fabio Palomba, Rafael Peñaloza, Valentina Lenarduzzi
TL;DR
This work tackles the problem of predicting defect proneness on a time scale, aiming to forecast defect density and signaling early indicators before defects arise. It compares Time Series Analysis, Bayesian inference, and Transformer-based models to provide probabilistic, time-aware estimates of defect occurrence, supported by a rigorous empirical design using the SQuaD dataset. By analyzing horizon-length effects and identifying the most informative software metrics, the study seeks to enhance proactive quality assurance and maintenance planning. The planned replication framework and ablation analyses further contribute to the robustness and practical relevance of time-sensitive defect forecasting in open-source software.
Abstract
Background. Defect prediction has been a highly active topic among researchers in the Empirical Software Engineering field. Previous literature has successfully achieved the most accurate prediction of an incoming fault and identified the features and anomalies that precede it through just-in-time prediction. As software systems evolve continuously, there is a growing need for time-sensitive methods capable of forecasting defects before they manifest. Aim. Our study seeks to explore the effectiveness of time-sensitive techniques for defect forecasting. Moreover, we aim to investigate the early indicators that precede the occurrence of a defect. Method. We will train multiple time-sensitive forecasting techniques to forecast the future bug density of a software project, as well as identify the early symptoms preceding the occurrence of a defect. Expected results. Our expected results are translated into empirical evidence on the effectiveness of our approach for early estimation of bug proneness.
