Model Monitoring and Robustness of In-Use Machine Learning Models: Quantifying Data Distribution Shifts Using Population Stability Index

Aria Khademi, Michael Hopka, Devesh UpadhyayarXiv 2023 · DOI

Introduction

Machine learning models deployed in real-world environments, particularly in autonomous driving, frequently encounter a "deployment gap." While a model may perform optimally on curated laboratory test sets, it often struggles when faced with the unpredictable conditions of the physical world, such as lens flares, heavy fog, and sensor noise. This phenomenon is known as distribution shift—specifically "covariate shift"—where the input data distributions during deployment deviate significantly from those used during training. In safety-critical applications, these shifts can lead to catastrophic failures. This paper explores the use of the Population Stability Index (PSI) as a continuous monitoring tool to detect these shifts and provide an early warning system for AI robustness.

Methodology

The researchers propose utilizing the Population Stability Index (PSI), a metric traditionally used in the financial sector for credit scoring, to quantify the stability of image data distributions. PSI is a symmetric variant of the Kullback-Leibler (KL) divergence. The process involves "binning" numeric values—in this case, pixel intensities—and comparing the percentage of data falling into each bin between a baseline (source) population and a current (target) population.

In this study, PSI was applied to individual RGB channels of images. By monitoring channels separately, the system can potentially diagnose specific sensor or lighting issues that might affect one color spectrum more than others. The team systematically introduced various types of noise—Gaussian, speckle, and salt-and-pepper (S&P)—at varying intensities to evaluate the metric's sensitivity.

Experimental Setup

The study utilized the LISA Traffic Light Dataset, which contains over 21,000 day-time and night-time traffic video frames from San Diego, California. These images served as the baseline for establishing normal operational distributions. Noise was then synthetically added to simulate environmental degradation and sensor failure.

Analysis of PSI Sensitivity

The experiments demonstrated that PSI is highly sensitive to common environmental noise. As noise variance increases, the PSI scalar value increases predictably, providing a clear signal of distribution shift.

Figure 1: PSI sensitivity to Gaussian noise variance across RGB channels.

As shown in the figure above, even low-intensity Gaussian noise causes a sharp spike in PSI values, often exceeding 1.0, which indicates a significant shift. Interestingly, the response is not always uniform across color channels, supporting the researchers' hypothesis that channel-specific monitoring provides deeper diagnostic insight.

Furthermore, the metric's behavior varies by environmental context. For instance, PSI showed lower sensitivity to speckle noise in night-time images compared to day-time images, likely due to the more constrained pixel intensity distributions inherent in low-light environments. The researchers also explored complex noise patterns, such as varying proportions of salt-and-pepper noise.

Figure 2: 3D visualization of PSI values across various amounts and proportions of salt-and-pepper noise.

Limitations and Future Directions

While PSI proves to be a robust statistical tool for large-scale temporal data monitoring, several challenges remain:

  • Binning Dependency: PSI results are highly sensitive to the choice of bins. Currently, there is no standardized methodology for binning image data, complicating cross-application comparisons.
  • Lack of Spatial Locality: Because PSI aggregates data into bins, it loses spatial information. It can detect that a shift occurred, but not where in the visual field it happened.
  • Thresholding: While PSI increases with noise, established "safety thresholds" that correlate specific PSI values with model accuracy degradation have yet to be defined.

Future work aims to integrate spatial information into the PSI framework and link these monitoring metrics with Explainable AI (XAI) to provide real-time root-cause analysis for detected faults.

Summary updated

BibTeX
@misc{khademi2023model,
  author = {Aria Khademi and Michael Hopka and Devesh Upadhyay},
  title = {{Model Monitoring and Robustness of In-Use Machine Learning Models: Quantifying Data Distribution Shifts Using Population Stability Index}},
  year = {2023},
  eprint = {2302.00775},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2302.00775},
}
Figure