Abstract
In this paper, we propose a hybrid background model that relies on edge and non-edge features of the image to produce the model. We encode these features into a coding scheme, that we called Local Hybrid Pattern (LHP), that selectively models edges and non-edges features of each pixel. Furthermore, we model each pixel with an adaptive code dictionary to represent the background dynamism, and update it by adding stable codes and discarding unstable ones. We weight each code in the dictionary to enhance its description of the pixel it models. The foreground is detected as the incoming codes that deviate from the dictionary. We can detect (as foreground or background) and classify (as edge or inner region) each pixel simultaneously. We tested our proposed method in existing databases with promising results.
Introduction
Background subtraction—the process of isolating moving objects from a static or semi-static scene—is a foundational task in computer vision. Traditional methods usually fall into two categories: pixel-based methods, which are effective at filling object interiors but sensitive to illumination changes, and edge-based methods, which are robust to lighting shifts but often produce "hollow" detections. This paper introduces a hybrid framework that bridges this gap by simultaneously detecting foreground objects and classifying their components using a novel feature set.
Methodology
The proposed system utilizes two primary components to achieve robust background subtraction.
Local Hybrid Pattern (LHP)
The LHP is an 8-bit encoding scheme that captures both structural and textural information. A flag bit determines if a pixel belongs to an edge or an inner region based on local gradients. Edge pixels store principal direction and quantized magnitude, while inner region pixels store quantized intensity. This allows the system to apply specialized logic to different image structures within a unified framework.
Adaptive Dictionary Model (ADM)
Each pixel is modeled by a dictionary of LHP codes that evolves over time. The system maintains stability by adding frequently occurring codes and discarding transient noise. Each code is weighted to reflect its reliability as a background representation. Foreground detection occurs when incoming LHP codes significantly deviate from the established dictionary.
Key Insights and Challenges
The model is designed to handle several complex scenarios common in real-world surveillance, including dynamic backgrounds (e.g., swaying trees), global and local illumination changes, and the "birth" or "death" of background objects.
A "birth" event occurs when a foreground object becomes stationary long enough to be incorporated into the background dictionary (e.g., a dropped bag). Conversely, a "death" event refers to the revelation of a previously occluded background area (e.g., a car leaving a parking spot).
Experimental Results
The ADM framework was evaluated on the ChangeDetection.net (CDnet) database, covering categories such as baseline surveillance, moving shadows, and intermittent object motion.
- Quantitative Performance: The method achieved an average F-measure of 0.822, increasing to 0.839 with post-processing.
- Shadow Robustness: In the "Bungalows" (BUN) dataset, the system achieved a precision of 0.980, demonstrating exceptional resistance to shadow-induced false positives.
- Ghosting Mitigation: In the "Winter Driveway" (WD) dataset, the adaptive dictionary quickly incorporated new background information, effectively preventing "ghosting" artifacts common in traditional algorithms.
Conclusion and Future Work
While the ADM model shows state-of-the-art performance, challenges remain regarding the absorption rate of stationary foreground objects. Future research will focus on intelligent tuning of the learning rate, potentially incorporating semantic information to distinguish between permanent background changes and temporary stationary foreground objects.
Summary updated