BEM: Training-Free Background Embedding Memory for False-Positive Suppression in Real-Time Fixed-Background Camera
Organizations: Department of Computer Science and Engineering, Incheon National University, Incheon, Republic of Korea · Army Artificial Intelligence Center, Republic of Korea Army, Gyeryong, Republic of Korea · Department of Computer Science, Texas Tech University, Lubbock, TX, USA
Abstract
Pretrained detectors perform well on benchmarks but often suffer performance degradation in real-world deployments due to distribution gaps between training data and target environments. COCO-like benchmarks emphasize category diversity rather than instance density, causing detectors trained under per-class sparsity to struggle in dense, single- or few-class scenes such as surveillance and traffic monitoring. In fixed-camera environments, the quasi-static background provides a stable, label-free prior that can be exploited at inference to suppress spurious detections. To address the issue, we propose Background Embedding Memory (BEM), a lightweight, training-free, weight-frozen module that can be attached to pretrained detectors during inference. BEM estimates clean background embeddings, maintains a prototype memory, and re-scores detection logits with an inverse-similarity, rank-weighted penalty, effectively reducing false positives while maintaining recall. Empirically, background-frame cosine similarity correlates negatively with object count and positively with Precision-Confidence AUC (P-AUC), motivating its use as a training-free control signal. Across YOLO and RT-DETR families on LLVIP and simulated surveillance streams, BEM consistently reduces false positives while preserving real-time performance. Our code is available at https://github.com/Leo-Park1214/Background-Embedding-Memory.git
Figures & tables
| P-AUC | [email protected] | |||
| Model (Variant) | Base | BEM | Base | BEM |
| YOLO v11m (COCO) | 89.82 | 92.87 (±0.034) | 80.49 | 80.99 (±0.001) |
| YOLO v8s (COCO) | 88.44 | 91.63 (±0.017) | 75.34 | 75.90 (±0.028) |
| RT-DETR-L (COCO) | 77.60 | 82.85 (±0.030) | 79.26 | 79.59 (±0.022) |
| YOLO v11m (COCO VOC) | 93.39 | 94.24 (±0.004) | 68.71 | 69.51 (±0.012) |
| YOLO v8s (COCO VOC) | 92.67 | 93.51 (±0.013) | 66.17 | 66.88 (±0.021) |
| Symbol | Range | Role | Description |
| [0.0,1.0] | Penalty scale | Controls suppression strength in logit space | |
| (0.0,1.0] | Temperature | Normalizes penalty magnitude (sharpness) | |
| - | Temporal window | Number of frames for background averaging | |
| - | Prototype count | Number of frames aggregated for one prototype |
Object Detection
Object detection locates and classifies objects in images or video, balancing localization accuracy, robustness, and inference speed.
See all 624 papers