CalQNet -- Detection of Calibration Quality for Life-Long Stereo Camera Setups

Jiapeng Zhong, Zheyu Ye, Andrei Cramariuc, Florian Tschopp, Jen Jen Chung, Roland Siegwart, Cesar CadenaarXiv 2021

TL;DR

CalQNet is a data-driven framework that detects when a stereo camera setup has drifted out of calibration using just a single pair of images. By introducing a smooth, analytical metric called Weighted Overall Disturbance Effect (WODE), the system can accurately predict whether downstream tasks like visual odometry are at risk of failing before catastrophic errors occur.

What Problem Does This Paper Address?

For autonomous robots, self-driving cars, and micro aerial vehicles (MAVs), stereo vision is crucial for depth perception, obstacle detection, and state estimation. While these systems receive highly accurate "factory calibrations" before deployment, physical reality eventually interferes. Mechanical shocks, thermal expansion, and general wear-and-tear cause the relative position and orientation (the extrinsics) between the two cameras to drift over time.

When calibration degrades, downstream algorithms like Simultaneous Localization and Mapping (SLAM) begin to fail or diverge completely. Existing online target-less recalibration methods are computationally heavy and often require extra sensors. Furthermore, traditional ways to check calibration quality rely on feature matching across images to measure distance to epipolar lines. When a system is severely miscalibrated, feature matching fails entirely, making it impossible to reliably diagnose the issue.

Methods

The authors tackle this challenge with a deep learning approach called CalQNet, which frames calibration quality assessment as a regression problem.

  1. Semi-Synthetic Data Generation: To train the network without manually miscalibrating physical hardware thousands of times, the authors take perfectly calibrated real-world image pairs and apply random 6-degree-of-freedom (6-DoF) disturbances to the extrinsic parameters. They then re-rectify the images, crop them to a valid rectangular region to maintain the aspect ratio, and resize them back to the original input size.
  2. A Novel Metric (WODE): Instead of relying on fragile feature-matching metrics, the authors introduce the Weighted Overall Disturbance Effect (WODE). WODE analytically calculates how much the image rectification planes rotate away from the true calibration for each degree of freedom, providing a smooth, continuous ground-truth score for training.
Fig. 2: Examples of stereo rectifications with the same amount of disturbance. For different degrees of freedom (DoFs), the disturbance affects image rectification differently. Left: disturbance of 0.1 m in x, y, and z, respectively. Right: disturbance of 0.1 rad in α, β, and γ, respectively.
  1. Siamese Network Architecture: CalQNet utilizes a Siamese neural network backbone where the left and right rectified images pass through identical, weight-sharing convolutional layers. The extracted features are concatenated and passed through dense layers to output a single predicted WODE value.
Fig. 3: Network architecture of CalQNet to predict WODE. The input is a pair of rectified stereo images which are first processed in a Siamese network and then concatenated through fully connected layers to predict the calibration quality.

Datasets

The framework was trained and evaluated using two popular, publicly available robotics benchmarks:

  • KITTI Dataset: Represents autonomous driving scenarios with large-scale outdoor environments.
  • EuRoC MAV Dataset: Represents micro aerial vehicle indoor flights, featuring significant agile motion and illumination changes.

Key Insights and Ideas

  • The Failure of Feature-Based Metrics: Traditional epipolar error metrics become highly discontinuous and unreliable under severe miscalibration because algorithms like SIFT can no longer find matching points between the left and right images. WODE solves this by being entirely analytical.
  • Geometric Artifacts are Learnable: Even though human eyes might struggle to notice slight rectification errors in a single frame, a relatively simple convolutional network can learn to detect the subtle geometric distortions and artifacts introduced by incorrect calibration parameters.
  • Application-Informed Thresholds: By mapping the WODE metric directly to the failure rates of a state-of-the-art SLAM system (ORB-SLAM2), the network's output becomes highly interpretable, acting as an early warning system for algorithmic failure.

Key Results

The authors tested CalQNet's ability to predict whether ORB-SLAM2 would diverge or experience severe trajectory drift based on the predicted calibration quality of a single frame:

  • High Precision, Low False Positives: On the KITTI dataset, CalQNet achieved a precision of 99% (with 62% accuracy). On the EuRoC dataset, it achieved a precision of 97% (with 86% accuracy). This exceptionally high precision means the system is highly unlikely to trigger a false alarm, ensuring that expensive recalibration procedures are only requested when truly necessary.
  • Stronger Correlation to Performance: Statistical analysis (Spearman's rank correlation) confirmed that the proposed WODE metric correlates significantly better with actual SLAM trajectory errors (RMSE) than standard epipolar distance metrics.

Limitations and Future Work

While CalQNet demonstrates strong performance, the authors note a few areas for improvement:

  • Single-Frame Inconsistency: Because the network evaluates frames individually, predictions can occasionally fluctuate from one frame to the next. Incorporating temporal sequence data (e.g., via Recurrent Neural Networks or LSTMs) could smooth out these predictions.
  • Extreme Miscalibration Drop-off: The network's prediction accuracy degrades slightly at exceptionally high disturbance levels, partly due to the uniform distribution of training data and the image degradation caused by aggressive cropping and resizing.
  • Unmodeled Dynamics: Environmental factors like motion blur and rolling shutter distortions are not explicitly modeled in the current pipeline, which can slightly pollute the calibration quality estimation.

Summary updated

BibTeX
@misc{zhong2021calqnet,
  author = {Jiapeng Zhong and Zheyu Ye and Andrei Cramariuc and Florian Tschopp and Jen Jen Chung and Roland Siegwart and Cesar Cadena},
  title = {{CalQNet -- Detection of Calibration Quality for Life-Long Stereo Camera Setups}},
  year = {2021},
  eprint = {2104.04837},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2104.04837},
}
Figure