Learning Optimized Risk Scores

Berk Ustun, Cynthia Rudin

Abstract

Risk scores are simple classification models that let users make quick risk predictions by adding and subtracting a few small numbers. These models are widely used in medicine and criminal justice, but are difficult to learn from data because they need to be calibrated, sparse, use small integer coefficients, and obey application-specific operational constraints. In this paper, we present a new machine learning approach to learn risk scores. We formulate the risk score problem as a mixed integer nonlinear program, and present a cutting plane algorithm for non-convex settings to efficiently recover its optimal solution. We improve our algorithm with specialized techniques to generate feasible solutions, narrow the optimality gap, and reduce data-related computation. Our approach can fit risk scores in a way that scales linearly in the number of samples, provides a certificate of optimality, and obeys real-world constraints without parameter tuning or post-processing. We benchmark the performance benefits of this approach through an extensive set of numerical experiments, comparing to risk scores built using heuristic approaches. We also discuss its practical benefits through a real-world application where we build a customized risk score for ICU seizure prediction in collaboration with the Massachusetts General Hospital.

Introduction

In high-stakes fields like medicine and criminal justice, decisions are often guided by risk scores. These are simple models where a human can calculate a probability just by adding or subtracting a few small integers. For example, a clinician might add points for age or pre-existing conditions to determine a patient's stroke risk.

Example of a traditional risk score structure, where integer points are assigned to specific risk factors.

While these models appear simple, building them optimally is a significant mathematical challenge. Traditionally, researchers have relied on "fit-and-round" heuristics—fitting a logistic regression model and then rounding the coefficients to the nearest integer. However, this approach often leads to sub-optimal accuracy, poor calibration, and a failure to satisfy complex operational constraints.

The RiskSLIM Framework

To address these issues, Berk Ustun and Cynthia Rudin introduced RiskSLIM (Risk-Supersparse Linear Integer Models). RiskSLIM moves risk score construction from manual heuristics into the realm of rigorous discrete optimization. It formulates the problem as a Mixed Integer Nonlinear Program (MINLP), minimizing logistic loss (for calibration) and an $\ell_0$-penalty (for sparsity) while constraining coefficients to small integers.

One of the most powerful features of RiskSLIM is its ability to incorporate diverse operational constraints directly into the model-building process. Unlike heuristic methods, RiskSLIM can handle logical requirements that are essential for real-world deployment.

Examples of operational constraints that RiskSLIM can incorporate, such as feature selection limits and logical structures.

Algorithmic Innovation: LCPA

Solving a non-convex MINLP is typically NP-hard. To make this practical, the authors developed the Lattice Cutting Plane Algorithm (LCPA). LCPA performs a branch-and-bound search, solving linear programming relaxations and adding "cuts"—linear constraints that tighten the approximation of the loss function—only when integer-feasible solutions are found.

Key enhancements include:

  • Discrete Coordinate Descent (DCD): A local search heuristic to quickly improve integer solutions.
  • Linear Scaling: While the optimization is complex, the data-heavy parts of the algorithm scale linearly with the number of samples ($n$), allowing it to process large datasets efficiently.
  • Optimality Certificate: RiskSLIM provides a mathematical proof (an optimality gap) of how close the current model is to the best possible model under the given constraints.

Results and Real-World Application

The authors benchmarked RiskSLIM against traditional rounding methods across several UCI datasets, finding that it consistently achieved better Area Under the Curve (AUC) and superior calibration.

A standout success is the 2HELPS2B score, developed for ICU seizure prediction in collaboration with Massachusetts General Hospital. By handling over 20 complex operational constraints, RiskSLIM produced a 4-item score that is now used in clinical practice. Despite the mathematical complexity, the optimized LCPA found near-optimal solutions in minutes, significantly outperforming commercial solvers.

Conclusion

RiskSLIM demonstrates that we do not need to sacrifice mathematical rigor for model simplicity. By treating risk score creation as a formal optimization problem, we can produce models that are not only easy for humans to use but are also certifiably optimal and tailored to the specific needs of the application domain.

Summary updated

Abstract

Risk scores are simple classification models that let users make quick risk predictions by adding and subtracting a few small numbers. These models are widely used in medicine and criminal justice, but are difficult to learn from data because they need to be calibrated, sparse, use small integer coefficients, and obey application-specific operational constraints. In this paper, we present a new machine learning approach to learn risk scores. We formulate the risk score problem as a mixed integer nonlinear program, and present a cutting plane algorithm for non-convex settings to efficiently recover its optimal solution. We improve our algorithm with specialized techniques to generate feasible solutions, narrow the optimality gap, and reduce data-related computation. Our approach can fit risk scores in a way that scales linearly in the number of samples, provides a certificate of optimality, and obeys real-world constraints without parameter tuning or post-processing. We benchmark the performance benefits of this approach through an extensive set of numerical experiments, comparing to risk scores built using heuristic approaches. We also discuss its practical benefits through a real-world application where we build a customized risk score for ICU seizure prediction in collaboration with the Massachusetts General Hospital.
BibTeX
@article{ustun2019learning,
  author = {Berk Ustun and Cynthia Rudin},
  title = {{Learning Optimized Risk Scores}},
  journal = {J. Mach. Learn. Res.},
  year = {2019},
  url = {https://openreview.net/forum?id=8z5LedpbPFQ},
}
Figure