A Defect is Being Born: How Close Are We? A Time Sensitive Forecasting Approach

Mikel Robredo 1 , Matteo Esposito 1 , Fabio Palomba 2 , Rafael Peñaloza 3 , Valentina Lenarduzzi 4 1 · 2026

Read A Defect is Being Born: How Close Are We? A Time Sensitive Forecasting Approach by Mikel Robredo 1 , Matteo Esposito 1 , Fabio Palomba 2 , Rafael Peñaloza 3 , Valentina Lenarduzzi 4 1 (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2601-01921.txt.

Introduction

Software teams would rather hear about a defect before it lands than scramble after. Mikel Robredo and four co-authors set out to test time-sensitive forecasting methods. Their registered study plan targets a project's future bug density. That goes beyond merely flagging risky changes.

Just-in-time prediction already identifies which changes look fault-prone; the open question is how early and how reliably the rise toward a defect can be forecast, and which early symptoms precede it. The authors will train several forecasting techniques and compare their accuracy and lead time. The expected contribution is empirical evidence on early bug-proneness estimation, guiding teams toward intervention while a defect is still forming.

Catalog record

CREATORMikel Robredo 1 , Matteo Esposito 1 , Fabio Palomba 2 , Rafael Peñaloza 3 , Valentina Lenarduzzi 4 1
YEAR2026
COLLECTIONPAPERS
FORMATTXT
FILE SIZE34 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2601-01921

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

A Defect is Being Born: How Close Are We? A Time Sensitive Forecasting Approach Mikel Robredo 1 , Matteo Esposito 1 , Fabio Palomba 2 , Rafael Peñaloza 3 , Valentina Lenarduzzi 4 1 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 identifying 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 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. I Introduction Developers frequently modify the source code to introduce new features or rectify defects [ 34 ] during the software maintenance and evolution process. However, these modifications may inadvertently introduce new defects [ 31 ] , necessitating careful verification by developers to ensure that such changes do not introduce flaws in the code. This verification task typically occurs either directly during development (e.g., by running test cases) or during code reviews [ 4 ] . An effective strategy for allocating inspection and testing resources to the portions of the source code more likely to be defective is through defect prediction [ 19 ] . Defect prediction involves constructing statistical models to anticipate the defect-proneness of software artifacts, primarily by leveraging information related to the source code or the development process [ 50 ] . Over the past decade, the issue of defect prediction has garnered significant attention from researchers. They have endeavored to tackle this problem through two main approaches: (i) conducting empirical studies to identify factors that contribute to artifacts being more defect-prone and (ii) proposing innovative prediction models designed to accurately forecast the defect-proneness of source code. Recent defect prediction research has tried to address this challenge with multiple approaches based on Machine Learning and Deep Learning algorithms [ 74 ] and using supervised and unsupervised techniques [ 35 ] . These recent studies perform just-in-time (JIT) defect prediction using future binary classification. They chronologically order the training data and therefore perform online prediction based on past historical data [ 44 , 64 , 65 ] . Moreover, prior research has investigated potential model-agnostic explanation techniques for defect prediction [ 27 ] , as well as explored Deep-Learning enabled approaches to render software defect prediction more transparent and explainable [ 30 , 24 ] . Our study aims to follow the same path and investigate the early symptoms or software indicators that precede the occurrence of a bug before it happens. Although these studies have significantly advanced our understanding of defect prediction, they all focus on binary prediction over the occurrence of a defect. In parallel, already existing time-sensitive forecasting models have demonstrated promising results for probabilistically estimating the occurrence of an event, for instance, Time Series Analysis (TSA) techniques [ 60 ] , Bayesian techniques [ 21 ] , as well as novel techniques based on the Transformer architecture [ 53 ] . Consequently, we aim to explore the effectiveness of already existing time-sensitive forecasting approaches to estimate the occurrence of a defect probabilistically, and therefore support the results of already existing JIT prediction techniques with prior estimated knowledge. Furthermore, we aim to investigate the early indicators that precede the occurrence of a defect when employing the considered approaches. Therefore, in this registered report, we design an exploratory study design to explore the effectiveness of time-sensitive techniques for defect proneness estimation, and further inspect which are the early symptoms that precede the introduction of a defect. In this sense, we aim to provide three main contributions to the proposed study: • Supporting the current knowledge of fault/defect prediction by exploring the effectiveness of time-sensitive techniques for defect proneness estimation. • Exploring the impact of different time-windows on the defect-proneness estimation effectiveness. • A detailed identification of the indicators that the most descriptive independent variables in defect forecasting demonstrate early, before and during the introduction of the defect. Paper structure. Section II introduces the background and related work, while Section III describes the empirical study design. Section IV identifies some potential threats to validity and Section V draws the goals of the presented study and highlights some future work. II Background and Related Work In this section, we outline the theoretical background and discuss previous studies related to our empirical study. II-A Software Defect Prediction Software defect prediction is a long-standing research area in software engineering, with extensive literature exploring how to identify fault-prone components [ 35 ] . Traditional approaches estimate defect proneness at release time, whereas JIT prediction shifts the focus to commit-level granularity [ 16 , 46 ] . Building on these foundations, continuous defect prediction frameworks [ 41 ] and anomaly-based techniques [ 48 , 1 ] have enabled large-scale empirical analyses of software evolution. Both product metrics (e.g., McCabe’s complexity [ 43 ] , CK suite [ 10 ] ) and process metrics (e.g., code churn [ 37 ] , entropy [ 23 ] ) have proven to be reliable predictors of defect-proneness [ 6 , 18 , 51 ] . Subsequent work emphasized the importance of commit-level characteristics such as developer experience, commit size, and code entropy [ 63 ] , showing that large or complex commits are more likely to introduce defects. Recent machine and deep learning models further improved predictive accuracy and interpretability [ 29 , 50 , 40 , 24 ] , yet they remain inherently reactive, focused on detecting defects after they are introduced rather than understanding when they begin to emerge. Consequently, Jiarpakdee et al. [ 27 ] conducted a large-scale empirical study on model-agnostic explanation techniques in order to explore how instance-level explanation techniques are valuable for understanding why and then software components are predicted as defective. Building on these ideas, Khanan et al. [ 30 ] proposed JITBot, an explainable JIT defect prediction chatbot enabling not only the defect proneness of software components but also explaining the factors contributing to the occurrence of a bug. While traditional defect prediction studies mainly focus on classifying whether a change or file is defective, often at release or commit time, our study shifts the perspective toward a time-aware and evolutionary understanding of defects. Instead of treating a bug as a binary outcome, we model its temporal progression, aiming to anticipate when a defect is likely to emerge. Our temporal perspective enables us to identify the early symptoms of defect formation, capturing what emerges before a bug manifests. Hence, our approach provides a continuous probabilistic view of defect birth and evolution, thereby overcoming the static, post-hoc nature of state-of-the-art defect prediction models and offering a significant advantage for proactive quality assurance and preventive maintenance. II-B Retrospective inspection

Read the complete text