On the Calibration of Human Pose Estimation

Kerui Gu, Rongyu Chen, Angela Yao

Abstract

While 2D human pose estimation (HPE) has achieved significant accuracy gains, the confidence scores produced by state-of-the-art models are often poorly calibrated. These scores frequently fail to reflect the actual probability of a prediction being correct, leading to a "miscalibration gap" that degrades performance in metrics like Average Precision (AP). We introduce Calibrated ConfidenceNet (CCNet), a lightweight, post-hoc module that aligns confidence scores with actual accuracy. CCNet consistently boosts AP by up to 1.4% across various architectures and improves downstream tasks such as 3D human mesh recovery.

The Problem: The Miscalibration Gap

In HPE, confidence scores are critical for ranking predictions and calculating AP. However, most models rely on simple heuristics—such as the maximum value of a heatmap or the variance of a distribution—to estimate confidence. These heuristics often ignore Object Keypoint Similarity (OKS), the ground-truth metric for correctness. OKS accounts for instance size and the inherent difficulty of labeling specific joints (e.g., hips vs. eyes), factors that standard heuristics overlook.

Precision-Recall curves showing the gap between standard heuristics and calibrated confidence.

This discrepancy leads to "misordered ranking," where low-quality poses receive high confidence scores, dragging down overall performance. As shown in the figure above, there is a significant gap between current methods and the theoretical maximum performance achievable with perfect confidence (mAR).

Methods: Calibrated ConfidenceNet (CCNet)

To bridge this gap, we propose CCNet, a tiny, plug-and-play neural network designed to be added to the end of any existing, frozen pose estimator.

The CCNet architecture as a post-hoc module for both detection and regression-based HPE models.

CCNet takes the "penultimate features" from the base model and learns to predict a calibrated confidence score and a visibility score. It is trained using a simple Mean Squared Error (MSE) loss to match the actual OKS of the predicted pose. Because it is a post-hoc addition, it requires no retraining of the heavy backbone model and adds negligible computational overhead.

Key Results and Insights

  • Universal AP Gains: CCNet consistently improved AP across all tested architectures, including HRNet, ViTPose, and RLE. For instance, it improved a ResNet-50 RLE model by 1.4% AP and a ViTPose-Base model by 0.8% AP.
  • Instance Size Sensitivity: A primary source of miscalibration is the failure to scale error by person size. CCNet effectively learns this relationship, which standard heuristics miss.
  • Whole-Body Performance: On the COCO-WholeBody dataset, CCNet improved the "Whole" AP by 2.3%, demonstrating its effectiveness across diverse keypoint types like face and hand joints.
  • Downstream Impact: In 3D mesh recovery (using the SPIN framework), replacing standard 2D confidence with CCNet-calibrated scores led to a 1.0mm decrease in 3D keypoint error (MPJPE), proving that better 2D calibration directly benefits expert systems relying on these inputs.

Conclusion

CCNet addresses a fundamental but often overlooked aspect of human pose estimation: the reliability of confidence scores. By aligning these scores with the OKS metric through a lightweight post-hoc module, we achieve significant and universal improvements in model evaluation and downstream utility without the need for expensive retraining of base architectures.

Summary updated

BibTeX
@inproceedings{gu2024calibration,
  author = {Kerui Gu and Rongyu Chen and Angela Yao},
  title = {{On the Calibration of Human Pose Estimation}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=0THUA66D8Z},
}
Figure