The University of Western Ontario
Stateful File-Level Fault Proneness Prediction Framework Using Process and Source Code Metrics
Abstract
dc:description.abstractSoftware fault proneness prediction supports quality assurance in continuous software engineering by enabling early identification of fault prone components in DevOps and CI/CD environments. Existing approaches typically employ static snapshots of product or process metrics within black-box classifiers, which limit available temporal context, interpretability, and the capture of file-level evolutionary dynamics. This thesis develops Just-in-Time Stateful Filelevel Fault Proneness Prediction (JIT-SFPP), a framework that explicitly models each file Fj in commit Ci as a state S (FCi, j) defined by a three-facet vector: (i) process metrics (co-change count, churn), (ii) source-code metrics (cyclomatic complexity, fan-out), and (iii) differential metrics recording process and source code changes between consecutive commits. States are discretized into symbolic transitions (Up/Down/Steady) and tracked chronologically. Ground truth employs per-file look-ahead labelling over a horizon H, with fault-inducing commits identified via commit-message heuristics and the SZZ algorithm. The framework contributes five predictors: (1) a Historic Probability Forecasting (HPF) predictor; (2) Evolving Single Nucleotide Variation (E-SNV); (3) Combination Nucleotide Variation (CNV); (4) CNV with Logistic Regression (CNV-LR); and (5) the Fault Proneness Graph Predictor (FPGP). All predictors are evaluated on data extracted from open source software. We compare our results against a widely-used JIT defect prediction baseline reporting average F1 of 0.45. FPGP achieves an average F1 of 0.676. The file-level predictors (HPF, E-SNV, CNV, CNV-LR) achieve average F1 in the 0.36 to 0.44 range, which is comparable to the available baseline despite the finer analysis granularity. This comes in contrast with the F1-scores exceeding 80% achieved using all available file-history, as established by our version-level benchmark in Chapter 4. The thesis proposes transparent, evolution-aware fault proneness prediction techniques by introducing explicit file states and leveraging them within bio-inspired sequence analysis. We thus advance the state of the art by improving performance and increasing tractability. The introduction of graph sensitivity through FPGP further extends this contribution to the commit level providing a predictive framework where system structure, explicit or implicit, informs the predictive process. Limitations of the current framework are discussed, along with directions for future work.
Degree
thesis:*- Name thesis:degree_name
- Ph D
- Discipline thesis:degree_discipline
- Computer Science
- Grantor dc:publisher
- The University of Western Ontario
- Year dc:date.issued
- 2026
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Grigoriou, Marios Stavros
- Advisor dc:contributor.advisor
-
- Kontogiannis, Kostas
Subjects
dc:subject × 6Rights
dc:rights- Statement dc:rights
-
- Marios Stavros Grigoriou, 2026
- Licence dc:rights.uri
- Language dc:language.iso
- en_ca
Identifiers
dc:identifier.*- Handle dc:identifier.uri
- https://hdl.handle.net/20.500.14721/40107