An Improved Kernel Density Estimation Approach for Moving Objects Detection

Bo Li, Yuhong Li, Han ZhouThe Open Automation and Control Systems Journal 2014

Abstract

Moving object detection based on monitoring video system is often a challenging problem. Specially to monitor traffic at both day and night, in different weather and illumination conditions and with changeable background. Kernel Density Estimation (KDE) model is an effective approach to judge background and foreground, however, typical KDE uses fixed parameters, such as bandwidths, threshold, etc. This paper proposes a detection algorithm based on an Improved Kernel Density Estimation (IKDE) model. The proper bandwidths, adaptive background sample learning array, and adaptive threshold, and an improved sample updating method for sample learning array are discussed as the fundamentals of the IKDE model. Furthermore, an algorithm for restraining light field disturbance at night in video scene is proposed. Video image series are evaluated through the algorithm, and moving object detection is conducted in three different scenes. Results show that the algorithm can help to achieve a promising high accuracy and robustness for detecting moving objects.

Introduction

Traffic monitoring systems require robust moving object detection that functions 24/7 across varying environmental conditions. Standard background subtraction techniques often struggle with dynamic backgrounds caused by shifting illumination, weather-induced low contrast (e.g., fog), and nighttime glare from headlights. While Kernel Density Estimation (KDE) offers a powerful non-parametric framework for background modeling, traditional implementations rely on fixed parameters that fail to adapt to rapid environmental changes. This paper introduces an Improved Kernel Density Estimation (IKDE) model designed to overcome these limitations through adaptive parameterization and specialized nighttime processing.

Methodology

The IKDE model enhances the standard KDE framework by introducing self-adaptive mechanisms for bandwidth, thresholding, and sample management.

Flowchart of the IKDE detection process.

Adaptive Bandwidths and Thresholds

Instead of static values, the kernel bandwidth is dynamically estimated for each color channel using the median absolute deviation of recent pixel samples. This allows the model to adjust its sensitivity based on local pixel volatility. Similarly, the detection threshold is made adaptive to maintain precision as scene conditions evolve.

DBF Initialization and Sample Learning

To ensure a "clean" initial background model, the system employs a Difference Between Frames (DBF) method. This approach selects video segments devoid of motion to populate the initial sample array, preventing foreground objects from being integrated into the background model at startup.

Mechanism for adaptive sample learning array establishment using Difference Between Frames (DBF).

Weighted Sample Updating

IKDE utilizes a weighted update strategy for the history buffer. Pixels classified as background receive higher weights (0.8–0.9), while foreground pixels are assigned lower weights (0.1–0.2). This prevents "background pollution" by transient moving objects. Furthermore, the length of the sample array itself is adaptive: if the background is changing rapidly, the model uses a shorter history to adapt quickly; if the scene is stable, it uses the full history for maximum precision.

Nighttime Light Field Restraint

A specialized "Night Mode" addresses the challenge of headlight glare. When triggered by low ambient light, the system applies grayscale stretching and logic filters to identify and suppress "Disturbance Light Fields"—high-luminance areas moving in front of vehicles—ensuring that only the vehicles themselves are detected.

Experimental Results

The algorithm was evaluated using real-world traffic footage from the Yangtze No. 2 Bridge in Wuhan (352 x 288 pixels) and supplementary high-resolution internet sources (768 x 576 pixels). Testing spanned three primary scenarios: Sunny Day, Night, and Foggy Day.

Scenario Method Precision Recall
Sunny Day BS / IKDE 93.7% / 95.4% 89.5% / 94.0%
Night BS / IKDE 83.3% / 91.3% 86.9% / 91.3%
Foggy BS / IKDE 83.3% / 91.7% 85.7% / 94.3%

The IKDE model demonstrated significant improvements in robustness, particularly in recall rates during challenging foggy and nighttime conditions. By effectively managing light interference and low contrast, the model successfully identified vehicles that baseline background subtraction (BS) methods missed.

Discussion and Conclusion

The IKDE approach provides a significant leap in detection accuracy for complex traffic environments. Key innovations such as adaptive history lengths and the surgical removal of glare allow for high precision without sacrificing responsiveness. To ensure real-time performance, the authors utilize pre-calculated lookup tables for kernel function values, mitigating the computational overhead typically associated with non-parametric models. While the initial thresholding still benefits from manual calibration, the overall system's self-learning capabilities make it a viable candidate for 24/7 traffic monitoring. Future work will explore incorporating more complex adaptive features to further enhance performance in even more chaotic environments.

Summary updated

BibTeX
@article{li2014improved,
  author = {Bo Li and Yuhong Li and Han Zhou},
  title = {{An Improved Kernel Density Estimation Approach for Moving Objects Detection}},
  journal = {The Open Automation and Control Systems Journal},
  year = {2014},
  doi = {10.2174/1874444301406010768},
}
Figure