Per-frame mAP Prediction for Continuous Performance Monitoring of Object Detection During Deployment

Quazi Marufur Rahman, Niko Sünderhauf, Feras DayoubarXiv 2020

TL;DR

This paper introduces an "introspection" framework that continuously monitors a deployed object detector's performance without requiring ground-truth labels. By extracting and pooling internal features from the detector's backbone network, a secondary binary classifier ("ALERT") successfully predicts when the per-frame mean Average Precision (mAP) drops below a critical safety threshold, allowing autonomous systems to safely hand over control or raise an alarm.

What Problem Does This Paper Address?

When deep learning-based object detectors are deployed in safety-critical systems like autonomous vehicles (AVs), they are typically evaluated on static, pre-collected datasets. However, the real world is dynamic. Factors like sudden weather changes, sensor degradation, or shifting environments introduce "dataset shift."

Under these conditions, a detector's performance can fluctuate wildly and fail silently—meaning it makes confident but incorrect predictions without any warning. Because ground-truth labels are unavailable during live deployment, standard metrics like mAP cannot be calculated directly to flag these drops. This paper tackles the challenge of predicting these silent performance drops in real-time using only the internal state of the object detector.

Example of object detection performance fluctuating during deployment.

Methods

The authors propose a two-part architecture consisting of the primary object detector (the basesys) and a secondary failure predictor (the ALERT system).

Instead of relying solely on final outputs like bounding box confidence scores, the ALERT system looks inside the "black box" of the detector. It extracts activation maps from the final convolutional layer of the detector's backbone network (e.g., Faster R-CNN with a ResNet backbone).

To compress these high-dimensional activation maps into a robust feature vector for failure prediction, the authors introduce an integrated feature pooling technique:

  1. Mean Pooling ($F_{mean}$): Captures the average spatial activation across the map.
  2. Max Pooling ($F_{max}$): Identifies the most prominent features or strongest signals.
  3. Statistics Pooling ($F_{std}$): Computes the standard deviation of the feature maps to capture spatial variance.

These three components are concatenated into a single vector ($F_{mean\_max\_std}$) and fed into a multi-layer fully connected binary classifier. This classifier is trained to output the probability that the current frame's mAP has dropped below a predefined critical threshold ($\lambda$).

Fig. 2: The architecture of our proposed basesys and alert system together. The last convolutional feature of the back- bone is pooled using the mean, max and statistical pooling layer to generate the feature for alert. Alert consists of a binary classifier that predict the performance drop of the basesys.

Datasets

The framework was evaluated using two prominent autonomous driving benchmarks:

  • KITTI: A widely used dataset for autonomous driving tasks containing real-world traffic scenarios.
  • BDD100K (Berkeley DeepDrive): A large-scale dataset featuring diverse driving conditions, including various weather types and times of day.

To rigorously test the system against real-world domain shifts, the authors evaluated it under two paradigms:

  • Similar Dataset Settings: Training and testing both the detector and ALERT on splits of the same dataset.
  • Cross-Dataset Settings: Training the models on one dataset (e.g., BDD100K) and testing them on the other (e.g., KITTI) to simulate unexpected environmental shifts during deployment.

Key Insights and Ideas

  • Looking Inside Beats Looking at Outputs: A common approach to uncertainty estimation is checking the final bounding box confidence scores. The authors demonstrate that these scores are often overly confident during failures. Looking at the internal convolutional features provides a much more reliable indicator of performance degradation.
  • The Power of Variance: Adding statistics pooling ($F_{std}$) to standard mean and max pooling significantly boosts the predictor's accuracy. The spatial variance of the feature maps changes noticeably when the network struggles with degraded images or unfamiliar domains.
  • Value in Cross-Dataset Scenarios: The ALERT system becomes more useful when the domain shift is severe. When the primary detector's accuracy drops due to an unfamiliar environment, the ALERT system's true warning rate actually increases, making it a highly effective safety net.

Key Results

  • Superior Failure Prediction: The proposed $F_{mean\_max\_std}$ feature consistently outperformed alternative methods—such as using bounding box confidence scores, proposal counts, or features from external networks (like ImageNet or Places365 classifiers).
  • High Reliability: In cross-dataset evaluations (ResNet50 trained on BDD, tested on KITTI), the ALERT system achieved an Area Under the Precision-Recall Curve (AUPRC) of 0.883 and an Area Under the ROC Curve (AUROC) of 0.856.
  • High True Warning Rate: The system successfully flagged up to 81.4% of the frames where the detector's performance dropped below the critical threshold in cross-dataset scenarios.
  • Risk Reduction: Using the Risk-Averse Metric (RAM), the authors proved that allowing the system to safely "abstain" from making a decision when ALERT raises an alarm significantly reduces the risk of catastrophic failures.
Fig. 3: Examples of alert prediction to identify basesys performance drop. Here the Green and Cyan bounding boxes show the false negative and false positive errors respectively made by an object detector. Alert prediction is showed at the upper right corner of each image. The first row shows samples from the kitti/kitti/50 experimental settings. The second, third and fourth row show samples from the bdd/bdd/18, kitti/bdd/18 and bdd/kitti/50 experiments.

Limitations and Future Work

  • Fixed, Application-Specific Thresholds: The critical performance threshold ($\lambda$) is currently fixed based on a chosen percentile of the evaluation dataset's mAP. In real-world applications, defining this threshold dynamically based on risk tolerance remains an open challenge.
  • Frozen Weights: The system assumes the object detector's weights remain frozen during deployment.
  • Future Directions: The authors suggest integrating this continuous performance monitoring framework directly into active domain adaptation loops, allowing the system to not only flag failures but also trigger online self-retraining.

Summary updated

BibTeX
@misc{rahman2020per,
  author = {Quazi Marufur Rahman and Niko Sünderhauf and Feras Dayoub},
  title = {{Per-frame mAP Prediction for Continuous Performance Monitoring of Object Detection During Deployment}},
  year = {2020},
  eprint = {2009.08650},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2009.08650},
}
Figure