Maximum profit mining and its application in software development

Charles X. Ling, Victor S. Sheng, Tilmann F. W. Bruckhaus, Nazim H. MadhavjiKDD 2006

Introduction

In enterprise software development, the release of products with known, lower-priority defects is a common necessity driven by tight deadlines. However, a small fraction of these defects can "escalate," causing severe business disruptions for customers and requiring high-cost interventions from senior engineering teams. This paper introduces an Escalation Prediction (EP) system designed to identify these rare but expensive events by reframing the problem as a cost-sensitive machine learning task focused on maximizing net profit.

The Misalignment of Standard Metrics

A critical challenge in industrial defect management is that standard machine learning objectives—such as maximizing accuracy or the Area Under the Curve (AUC)—do not align with business realities. In the context of software escalations, the cost of a False Negative (missing a critical escalation) is approximately seven times higher than the cost of a False Positive (fixing a bug that would not have escalated). Human experts often struggle to flag these risks reliably due to the subjective nature of the process.

Methodology: Profit-to-Cost Conversion

The researchers developed a framework to convert the "maximum net profit" objective into a "minimum total cost" problem. By deriving a linear formula for net profit based on the relative costs of fixing bugs before versus after release, the authors created a cost metric suitable for algorithmic optimization.

They evaluated five distinct cost-sensitive approaches:

  1. Undersampling: Rebalancing data to address the <1% minority class.
  2. Costing: Utilizing advanced rejection sampling.
  3. Relabeling (MetaCost): Adjusting training labels based on minimum expected cost.
  4. Weighting: Integrating costs as instance weights.
  5. CSTree: A specialized decision tree that uses the minimization of total misclassification cost as its primary split criterion, rather than traditional entropy.

Comparative Performance

The study utilized a real-world industrial dataset of approximately 165,000 defect reports. The performance of various algorithms was measured by "unit net profit," representing the average profit gained per record processed.

Performance comparison of cost-sensitive approaches across different bagging iterations.

As shown in the comparative data, the CSTree emerged as the superior model. Notably, while ensemble methods like bagging often improve performance for other algorithms, the CSTree achieved its peak performance ($14.72 unit profit) without bagging. This provides a significant advantage in industrial settings: the model remains a "white box," allowing engineers to inspect the decision logic and understand why specific bugs are flagged as high-risk.

Key Results and Economic Impact

The EP system demonstrated high efficacy in live deployment. Lift charts revealed that the system could capture 70% of actual escalations by flagging only the top 10% of high-risk candidates. By the 30th percentile, the system identified 90% of all escalations.

Ranking of cost-sensitive approaches by highest and average profit.

The economic implications are substantial. For a typical large-scale software vendor, the authors estimate that implementing this system could result in savings of approximately $12.5 million by preventing post-release crises and optimizing resource allocation.

Conclusion

By shifting the focus from statistical accuracy to business profit, the EP system provides a practical solution for managing high-risk software defects. While challenges remain—such as the time lag required to gather "ground truth" labels after a product release—the CSTree approach offers a transparent and highly profitable framework for industrial application. Future work will focus on refining statistical features and tracking long-term ROI across multiple product cycles.

Summary updated

BibTeX
@inproceedings{ling2006maximum,
  author = {Charles X. Ling and Victor S. Sheng and Tilmann F. W. Bruckhaus and Nazim H. Madhavji},
  title = {{Maximum profit mining and its application in software development}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2006},
  doi = {10.1145/1150402.1150530},
}
Figure