In the world of computer vision, we often treat pedestrian detection as just another flavor of general object detection. We throw powerful Deep Neural Networks (DNNs) at the problem, and they do a great job. However, this "one-size-fits-all" approach ignores a crucial piece of prior knowledge: the geometry of the world.
A new paper titled "Mean Height Aided Post-Processing for Pedestrian Detection" argues that we can significantly boost accuracy by simply applying some common-sense geometric constraints to a detector's output.
TL;DR
The authors propose Mean Height Aided Suppression (MHAS), a "plug-and-play" post-processing module that uses perspective geometry to filter out false pedestrian detections. By rejecting bounding boxes that appear in impossible locations (like the sky) or have unrealistic heights for their position in the frame, they achieve state-of-the-art results on major benchmarks like Caltech and Citypersons.
What Problem Does This Paper Address?
Standard object detectors are great at finding patterns, but they lack an understanding of 3D space. In driving datasets, images are captured from a fixed camera on a vehicle. This creates a consistent perspective effect: parallel lines (like lane markings) converge at a vanishing point, and pedestrians appear smaller as they get closer to the horizon.
Current detectors often produce "hallucinations"—false positives that might look like a person in isolation but are geometrically impossible. For example, a detector might flag a vertical smudge on a building as a pedestrian, even if that "pedestrian" would have to be 10 feet tall or floating in mid-air based on the scene's horizon. The authors aim to use these under-explored unique characteristics of pedestrian datasets to "sanity check" detections.
Methods
The core contribution is the Mean Height Aided Suppression (MHAS) framework, which acts as a secondary filter after standard Non-Maximum Suppression (NMS). It consists of two main components:
- Existence Score Generator (ESG): This module predicts the likelihood of a pedestrian's feet being present at a specific vertical "level" (row) in the image. It uses a ResNet-50 backbone and a novel "Weighted Squeezer" to compress 2D features into a 1D vertical probability map.
- Mean Height Generator (MHG): This determines the expected height of a pedestrian at any given level. The authors propose two versions:
- Manual Approach: Simply calculates the average height per row across the entire training set.
- Perspective Coefficient Approach: A small network predicts coefficients ($a$ and $b$) for a linear perspective model ($h = am + b$), allowing the system to adapt to different camera tilts or mounting heights.
The Logic: A detection is kept only if its height is close to the predicted mean height for that row AND the ESG confirms that pedestrians are likely to exist at that level.
Datasets
The researchers evaluated their method on two gold-standard pedestrian detection datasets:
- Caltech Pedestrian Dataset: ~250k frames of 480x640 video taken from a vehicle in an urban setting.
- Citypersons Dataset: A more diverse and higher-resolution (1024x2048) dataset featuring 18 different cities and various weather conditions.
Key Insights and Ideas
- Perspective as a "Free" Prior: In autonomous driving, the camera setup is usually static relative to the ground. This means the relationship between an object's vertical position in the image and its physical size is highly predictable. MHAS exploits this "free" information without needing extra manual labels.
- The "Weighted Squeezer": Instead of simple global pooling, the ESG uses a weighted summation along the width dimension to create its 1D existence vector. This preserves spatial information about where pedestrians are likely to stand.
- Dual Verification: The authors found that using both height priors and existence scores is much more effective than using either alone. The existence score acts as a "horizon line" detector, preventing detections in the sky, while the height prior catches "giants" or "dwarfs" on the ground.
- Plug-and-Play: MHAS doesn't require retraining the base detector. It can be bolted onto almost any existing architecture (CSP, APD, Cascade R-CNN) during the inference phase.
Key Results
The results show consistent improvements across the board, particularly in reducing the log-average miss rate (MR⁻²):
- Caltech: When added to a Cascade R-CNN, MHAS reached a state-of-the-art 1.4% miss rate.
- Citypersons: On the "Reasonable" subset, the APD detector improved from 10.63% to 9.4% when MHAS was applied.
- Robustness: The method was particularly effective at cleaning up detections of "Small" pedestrians and those with "Heavy" occlusions, where visual features are often weak and prone to false positives.
Limitations and Future Work
The primary limitation is the "Flat World" assumption. MHAS assumes pedestrians are standing on the same ground plane as the vehicle. As the authors acknowledge, the system can struggle with:
- Hills and Slopes: If the road goes up or down, the linear perspective model breaks.
- Overpasses: Pedestrians on bridges appear "in the sky" relative to the road plane, leading MHAS to mistakenly suppress them.
Future work could involve integrating more sophisticated 3D scene understanding or depth estimation to handle non-flat terrains, making the geometric "sanity check" even more robust.
Reference: Yuan, J., Stathaki, T., & Ren, G. (2024). Mean Height Aided Post-Processing for Pedestrian Detection. arXiv:2408.13646v1 [cs.CV].
Summary updated