[Paper Review] Comparing Background Subtraction Algorithms and Method of Car Counting
This paper evaluates background subtraction algorithms for vehicle counting in real-world traffic webcam images, using a large-scale dataset of 125 million images from 10 global cities. It proposes a Gaussian mixture model-based background subtraction method with spatial weighting to handle perspective distortion, achieving high accuracy in car counting despite challenges like occlusion, low frame rates, and camera variability.
In this paper, we compare various image background subtraction algorithms with the ground truth of cars counted. We have given a sample of thousand images, which are the snap shots of current traffic as records at various intersections and highways. We have also counted an approximate number of cars that are visible in these images. In order to ascertain the accuracy of algorithms to be used for the processing of million images, we compare them on many metrics that includes (i) Scalability (ii) Accuracy (iii) Processing time.
Motivation & Objective
- To evaluate the performance of background subtraction algorithms in real-world traffic monitoring using large-scale webcam data.
- To address challenges such as vehicle occlusion, low frame rates, camera motion, and varying lighting and weather conditions.
- To develop a scalable and accurate method for automated car counting from still images captured by fixed traffic webcams.
- To establish ground truth for car counts across diverse urban environments to benchmark algorithm performance.
- To assess the impact of spatial weighting and temporal modeling on improving detection accuracy in perspective-transformed images.
Proposed method
- Uses the Gaussian Mixture Model (GMM) background subtraction algorithm from Stauffer and Grimson (1999), modeling each pixel with K Gaussian distributions.
- Applies a spatial weighting function that increases from the bottom to the top of the image to account for perspective effects, where distant vehicles appear smaller and higher in the frame.
- Processes the resulting foreground binary map through morphological operations to remove noise and small blobs below a threshold size.
- Employs a probabilistic temporal model to represent background variations across different times of day, improving robustness to lighting changes.
- Uses hand-labeled car counts as ground truth for validation, collected from a sample of 1,000 images across multiple cities.
- Applies frame-level temporal correlation to handle low frame rates, enabling detection of vehicles visible in only 2–3 frames.
Experimental results
Research questions
- RQ1How do different background subtraction algorithms perform in terms of accuracy, scalability, and processing time when applied to real-world traffic webcam images?
- RQ2To what extent does spatial weighting improve car detection accuracy in perspective-transformed traffic images?
- RQ3How effective is the Gaussian Mixture Model (GMM) approach in handling low frame rates and transient vehicle appearances?
- RQ4What is the impact of temporal modeling (e.g., time-of-day variation) on background subtraction robustness?
- RQ5Can a scalable pipeline be built to process millions of traffic images with high accuracy using only still-image analysis?
Key findings
- The GMM-based background subtraction method with spatial weighting achieved the highest accuracy in car counting among the evaluated algorithms.
- Processing time was within acceptable limits for large-scale deployment, with the method scaling efficiently across the 125 million image dataset.
- The algorithm demonstrated robustness to low frame rates, successfully detecting vehicles visible in only 2–3 frames.
- Spatial weighting significantly improved detection accuracy by compensating for perspective distortion, especially for distant vehicles.
- Morphological filtering effectively reduced false positives from noise and small artifacts, improving foreground map quality.
- The ground truth data showed strong correlation between empirical traffic density and actual car counts, validating the reliability of the labeling process.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.