Abstract
Issue tracking systems are essential for software development, yet approximately 40% of issues are mislabeled by users. This study investigates the feasibility of using machine learning to automatically distinguish between "bugs" and "non-bugs." By evaluating various classifiers and data strategies, the research demonstrates that training models on massive amounts of noisy, unvalidated data can be surprisingly effective, achieving high recall for identifying bug-fixing commits and offering a path toward more reliable repository mining.
Introduction
In modern software engineering, issue trackers such as Jira or GitHub Issues serve as the primary source of truth for project progress. However, the "Type" field—intended to categorize reports as Bugs, Feature Requests, or Improvements—is notoriously unreliable. Users often report new feature requests as bugs, while developers may misclassify critical crashes as simple tasks.
This "label noise" creates significant challenges. For project managers, misclassified issues lead to inaccurate progress tracking and the implementation of "quality gates" that may block releases based on non-critical items. For researchers, many "Mining Software Repositories" (MSR) studies rely on these labels to build bug-prediction models; if the underlying data is 40% incorrect, the resulting research is fundamentally flawed. This paper explores whether automated text classification can serve as an effective "BS detector" for these labels.
Methodology and Datasets
The researchers evaluated several supervised learning approaches, introducing two primary innovations to improve classification accuracy:
- Structural Splitting: Rather than concatenating the issue title and description into a single block, the authors trained separate models for each. This approach accounts for the fact that titles are typically short and specific, while descriptions are often long and contain noisy data like stack traces or code snippets.
- The "Easy Subsets" Rule: The team tested whether hard-coding "a-priori" knowledge—such as flagging any issue mentioning "NullPointerException" as a bug—would improve performance.
To ensure robust results, the study utilized four distinct datasets:
- TEST: 7,297 manually validated issues from five major projects (e.g., Lucene, Tomcat).
- CV: 30,922 issues from 38 projects used for cross-validation.
- UNVALIDATED: A massive corpus of 607,636 issues from 1,198 projects, representing "noisy" real-world data.
- BUGFIXES: A dataset of validated links between commits and issues to test practical utility.
The primary classifiers compared included traditional pipelines (TF-IDF with Naive Bayes or Random Forests) and Facebook’s fastText, which utilizes n-grams and sub-word information to better understand technical text.
Key Insights and Results
The study yielded several surprising findings regarding the behavior of machine learning in software contexts:
- ML Outperforms Manual Rules: Hard-coding rules like "NPE = Bug" actually decreased performance. Modern ML models are already adept at identifying these patterns; manual constraints only restricted the model's ability to find optimal solutions.
- Data Quantity Over Quality: Models trained on the 607,636 unvalidated (noisy) issues performed comparably to those trained on small, clean datasets. This suggests that for researchers, the sheer volume of data can compensate for a lack of manual validation.
- Performance Metrics: The best-performing model, an autotuned fastText variant using structural splitting, achieved F1 scores of approximately 0.65 across all issues and 0.80 when focused on issues already labeled as bugs.
- Practical Utility: When applied to identifying bug-fixing commits, the automated approach captured 91.3% of actual bug fixes. While it introduced some false positives, it drastically reduced the manual effort required to clean repository data.
Deployment Scenarios and Future Work
While automated models are not yet perfect, they offer significant utility when integrated correctly into the development workflow. The authors propose several scenarios for how these models can be utilized, ranging from research data collection to real-time user assistance.
The researchers specifically recommend "passive recommendation" systems. Instead of an algorithm overriding a user's choice, the system suggests a type during the issue creation process, allowing the human to make the final decision based on the model's prompt. Future work will explore the use of deep learning architectures like BERT on the massive unvalidated datasets and the incorporation of project-specific metadata, such as reporter reputation and component history, to further refine prediction accuracy.
Summary updated