Why Accuracy is Not Enough: The Need for Consistency in Object Detection

Caleb Tung, Abhinav Goel, Fischer Bordwell, Nick Eliopoulos, Xiao Hu, Yung-Hsiang Lu, George K. Thiruvathukal · DOI

Abstract

While modern object detectors achieve high Mean Average Precision (mAP), they often exhibit significant temporal instability, or "inconsistency," across consecutive video frames. This paper identifies this jitter as a critical flaw for safety-critical applications and introduces the Pairwise Consistency ($C_{i,j}$) metric to quantify it. We demonstrate that simple post-processing techniques, such as WEBP compression and unsharp masking, can improve consistency by up to 5.1% and accuracy by up to 3.2% mAP without requiring model retraining.

Introduction

In the field of computer vision, accuracy is the traditional gold standard, typically measured by Mean Average Precision (mAP). However, aggregate accuracy can mask a critical operational failure: inconsistency. A detector might be highly accurate on average but fluctuate wildly between frames—detecting a pedestrian in one frame and losing them in the next. This "jitter" poses a significant challenge for autonomous systems, such as self-driving cars, where stable predictions are essential for safe decision-making and object tracking.

Visualizing detection inconsistency: (e) shows a stable detection with a solid green box, while (f) illustrates the jitter or 'flicker' represented by a red dashed box in an inconsistent model.

Methodology

To address this gap, we propose a new metric: Pairwise Consistency ($C_{i,j}$). This metric evaluates the stability of a detector across time-series data by looking at ground-truth objects present in adjacent frames. Consistency is defined by the ratio of objects detected in both frames versus those detected in only one. A perfectly consistent detector scores 1.0, while a totally erratic one scores 0.

Our evaluation utilized four state-of-the-art (SOTA) architectures—Mask-RCNN, Faster-RCNN, RetinaNet, and SSD—tested on the Multi-Object Tracking (MOT) Challenge dataset. The MOT dataset provides high-frame-rate video sequences where adjacent frames are visually nearly identical, providing an ideal environment to test a model's sensitivity to minor pixel-level shifts.

Improvement Strategies

Rather than pursuing expensive model retraining, we investigated five "post-training" image corrections to stabilize inputs:

  • Gaussian Denoise: To mitigate sensor noise.
  • Horizontal Flip: Evaluated as a potential stabilization correction.
  • WEBP Compression: Using lossy compression to smooth out high-frequency micro-distortions.
  • Unsharp Masking: To sharpen edges that may be blurred by motion.
  • Gamma Correction: Adjusting brightness and contrast for better feature extraction.

Key Results and Insights

Our analysis revealed a significant "consistency gap," with SOTA detectors failing to remain consistent on approximately 17% of detections on average. We observed that "two-stage" detectors (like Faster-RCNN), which propose regions before classification, are generally more consistent and accurate than "single-shot" detectors (like SSD).

Comparison of detection stability across frames. (a) represents a consistent detection, whereas (b) highlights the variance in bounding box placement or presence.

Surprisingly, the combination of WEBP Compression and Unsharp Masking (WC+UM) yielded the most substantial improvements. WEBP compression acts as a high-frequency noise filter, preventing the neural network from overreacting to irrelevant pixel changes, while unsharp masking clarifies object boundaries. This approach improved consistency by up to 5.1% and accuracy by up to 3.2% mAP, proving that simple classical image processing can effectively stabilize deep learning models.

Conclusion

This research underscores that accuracy alone is an insufficient metric for evaluating object detectors in dynamic, real-world environments. By implementing straightforward post-processing steps, developers can significantly enhance the reliability of vision systems. Future work will focus on developing consistency-aware training loss functions to integrate temporal stability directly into the learning phase.

Summary updated

BibTeX
@article{tung2022why,
  author = {Caleb Tung and Abhinav Goel and Fischer Bordwell and Nick Eliopoulos and Xiao Hu and Yung-Hsiang Lu and George K. Thiruvathukal},
  title = {{Why Accuracy is Not Enough: The Need for Consistency in Object Detection}},
  journal = {IEEE Multim},
  year = {2022},
  doi = {10.1109/mmul.2022.3175239},
}
Figure