Bug Priority Change Prediction: An Exploratory Study on Apache Software

Guangzong Cai, Zengyang Li, Peng Liang, Ran Mo, Hui Liu, Yutao MaarXiv 2025 · DOI

Introduction

In software development, bug priority is a moving target. While a bug might be labeled "Major" when first reported, it might be downgraded to "Minor" once developers realize it only affects a niche edge case, or upgraded to "Blocker" if it’s found to stall a release. Managing these changes is currently a manual, subjective, and time-consuming process for project managers.

While extensive literature exists on predicting the initial priority of a bug, there is a significant gap in predicting priority dynamics. Static snapshots of a bug report are often insufficient; predicting a change requires looking at how the bug "lives" within the issue tracker—how it is discussed, who reported it, and how the project's overall workload shifts.

Comparison between initial priority prediction and priority change prediction.

The Two-Phase Framework

The authors propose a novel two-phase prediction method designed to capture the evolution of a bug from reporting through to resolution. This framework distinguishes between the static information available at creation and the dynamic data generated during the fixing process.

The two-phase bug lifecycle framework for priority change prediction.
  1. Phase I (Bug Reporting Phase): A binary classification model (using an ensemble of Random Forest, KNN, SVM, and XGBoost) that predicts at the moment of submission whether a bug will ever undergo a priority change.
  2. Phase II (Bug Fixing Phase): A multiclass model (using an Artificial Neural Network) that predicts the specific new priority level (Blocker, Critical, Major, Minor, Trivial) based on real-time data.

Evolutionary Features

The core innovation lies in Bug Fixing Evolution Features. Instead of relying solely on static descriptions, the model extracts:

  • Project Context: Current workload and average priority of unresolved bugs.
  • Reporter History: The track record of the person filing the bug (e.g., historical accuracy in priority estimation).
  • Comment Dynamics: Frequency and length of discussions.
  • Historical Change Items: Modifications to other fields like "Status" or "Assignee."

To address the extreme class imbalance (only ~8% of bugs change priority), the study employed K-means undersampling for Phase I and a Conditional Mixed Sampling strategy (combining SMOTE and random undersampling) for Phase II.

Experimental Setup and Results

The study utilized a massive dataset from 32 non-trivial Apache projects (e.g., Spark, Hadoop, Flink, Kafka), encompassing 223,355 bug reports across at least five years of history.

Key Findings

  • Predictive Performance: Phase I achieved an F1-score of 0.798, while Phase II reached an F1-weighted score of 0.712.
  • Temporal Signals: Traditional features are effective for initial triage, but temporal data—such as spikes in comment frequency—are much stronger predictors of impending priority shifts.
  • The "Reporter Effect": A reporter's history of priority adjustments is a significant predictor. Models learn to flag reports from users whose bugs are frequently adjusted as "unstable."
  • Ablation Results: Removing "Evolution Features" or class imbalance strategies caused F1-scores to plummet, validating their necessity for modeling rare events.

Conclusion and Future Directions

This research demonstrates that bug priority changes, though rare (8.3%), can be predicted with high accuracy by modeling the bug lifecycle. While specialized ML models currently outperform LLMs in this domain, future work could explore "time-to-event" analysis to predict when a change will occur, or incorporate sentiment analysis of developer comments to further refine predictions.

Summary updated

BibTeX
@misc{cai2025bug,
  author = {Guangzong Cai and Zengyang Li and Peng Liang and Ran Mo and Hui Liu and Yutao Ma},
  title = {{Bug Priority Change Prediction: An Exploratory Study on Apache Software}},
  year = {2025},
  eprint = {2512.09216},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.09216},
}
Figure