Skip to main content
QUICK REVIEW

[Paper Review] A Comparison between Background Modelling Methods for Vehicle Segmentation in Highway Traffic Videos

Leandro Arab Marcomini, André Luiz Cunha|arXiv (Cornell University)|Oct 5, 2018
Video Surveillance and Tracking MethodsComputer Science19 references15 citations
TL;DR

This paper evaluates three OpenCV-implemented background modeling algorithms—Gaussian Mixture Model (GMM), Background/Foreground Segmentation (KNN), and MOG2—for vehicle segmentation in highway traffic videos. Using 35 ground-truth images across seven videos (2 hours total), it compares performance via accuracy, precision, and processing time, finding all methods achieved >90% precision and ~80% accuracy, with MOG2 offering the lowest computational load at 60 FPS.

ABSTRACT

The objective of this paper is to compare the performance of three background-modeling algorithms in segmenting and detecting vehicles in highway traffic videos. All algorithms are available in OpenCV and were all coded in Python. We analyzed seven videos, totaling 2 hours of recording. To compare the algorithms, we created 35 ground-truth images, five from each video, and we used three different metrics: accuracy rate, precision rate, and processing time. By using accuracy and precision, we aim to identify how well the algorithms perform in detection and segmentation, while using the processing time to evaluate the impact on the computational system. Results indicate that all three algorithms had more than 90% of precision rate, while obtaining an average of 80% on accuracy. The algorithm with the lowest impact on processing time allowed the computation of 60 frames per second.

Motivation & Objective

  • To evaluate and compare the performance of three background modeling algorithms in segmenting vehicles from highway traffic videos.
  • To assess the trade-offs between detection accuracy, precision, and computational efficiency in real-time traffic monitoring.
  • To provide empirical benchmarks using ground-truth annotations across diverse highway video sequences.
  • To determine which algorithm offers the best balance of accuracy, precision, and processing speed for real-time deployment.

Proposed method

  • Three background modeling algorithms—Gaussian Mixture Model (GMM), KNN-based background subtraction, and MOG2—were implemented in Python using OpenCV.
  • Seven highway traffic videos totaling 2 hours of footage were analyzed, with 35 ground-truth images manually created (five per video) for evaluation.
  • Performance was quantified using three metrics: accuracy rate, precision rate, and processing time per frame.
  • Ground-truth images were used to compute pixel-wise segmentation accuracy and precision against algorithm outputs.
  • Processing time was measured to evaluate real-time feasibility, with frame rates reported for each algorithm.
  • All algorithms were tested under identical conditions to ensure fair comparison across the same video sequences and ground-truth data.

Experimental results

Research questions

  • RQ1Which background modeling algorithm achieves the highest accuracy in segmenting vehicles from highway traffic videos?
  • RQ2How do the three algorithms compare in terms of precision for vehicle detection across diverse traffic conditions?
  • RQ3What is the computational efficiency of each algorithm, measured by processing time and frame rate?
  • RQ4Does any algorithm maintain high accuracy and precision while minimizing processing overhead for real-time deployment?
  • RQ5How consistent are the performance metrics across different highway video sequences?

Key findings

  • All three algorithms achieved a precision rate of over 90%, indicating strong vehicle detection reliability.
  • The average accuracy rate across all algorithms was approximately 80%, suggesting moderate segmentation performance.
  • The MOG2 algorithm demonstrated the lowest computational impact, enabling real-time processing at 60 frames per second.
  • Despite high precision, accuracy remained below 85%, indicating room for improvement in segmentation boundary accuracy.
  • The KNN-based method showed slightly higher processing time compared to MOG2, though still within acceptable real-time limits.
  • No significant performance degradation was observed across different video sequences, indicating robustness to varying traffic and lighting conditions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.