Abstract
This paper addresses a problem of false positive detection filtering in surveillance video streams. We propose two methods. The first one is based on automatic hard negative mining from a video stream, which is then used for fine-tuning of the baseline detector. The second one is the detector output filtering by analyzing the frequency of detection of visually similar samples. We demonstrate the proposed methods on cascade-based detectors, but they can be applied to any detector that can be trained in a reasonable amount of time. Experimental results show that the proposed methods improve both the precision and recall rate, as well as reducing the computational time by 47%.
Introduction
Standard face detectors are often trained on high-quality, diverse datasets of still photographs. However, when deployed in the "wild" of CCTV and surveillance, they struggle due to lower resolution, fixed camera angles, and consistent background noise. This environmental mismatch leads to two major issues: frequent false positives from static background objects and reduced computational efficiency as the detector repeatedly processes these non-face regions.
Methodology
The proposed system implements a two-stage defense against false positives to bridge the gap between general-purpose training and scene-specific deployment.
Scene Adaptation via Hard Negative Mining
The system utilizes a background subtraction algorithm (ViBe) to identify static regions in the video stream. If the face detector triggers in a region where no motion is detected, the system automatically classifies this as a false positive. These "hard negatives" are collected and used to fine-tune the detector, teaching the model specifically what to ignore in that particular environment.
Post-filtering via Frequency Analysis
This method leverages temporal consistency. While real faces appear stably as people move through a frame, background noise often triggers "unstable" detections that flicker. By maintaining a buffer of visually similar regions and analyzing detection frequency, the algorithm flags and suppresses regions that appear only rarely despite visual consistency across frames.
Experimental Evaluation
The authors evaluated the methods using a custom dataset of 8,000 manually annotated surveillance frames, as existing public datasets were found to be unsuitable. A separate generalization test set of 8,000 internet images was used to ensure the scene-specific adaptation did not degrade general performance.
Results
The primary metric for evaluation was the Area Under the Curve (AUC) for precision-recall. The baseline detector achieved an AUC of 0.497. Incorporating background subtraction improved this to 0.506, while the full system (adaptation + post-filtering) reached 0.622 AUC.
Beyond accuracy, the adapted detector significantly improved throughput. By fine-tuning the cascade with scene-specific negatives, the early stages of the detector became more efficient at rejecting background patches. This "failing faster" mechanism reduced processing time from 0.135 seconds to 0.071 seconds per frame—a 47% reduction in computational overhead.
Conclusion
The proposed methods effectively turn the static nature of surveillance backgrounds into a training advantage. While the adaptation requires an initial learning period and assumes a relatively static background, it provides a model-agnostic framework for improving both accuracy and speed in fixed-camera environments. Future work could extend this approach to other object classes like vehicles or specialized equipment.
Summary updated