Robust Real-Time Traffic Surveillance with Deep Learning

Computational Intelligence and Neuroscience, 2021

Jessica Fernández1,2, JoseMaria Cañas1,2, Vanessa Fernández1,2, Sergio Paniego1,2

1: URJC

2: JdeRobot

DOI: 10.1155/2021/4632353

Abstract

Real-time vehicle monitoring in highways, roads, and streets may provide useful data both for infrastructure planning and for traffic management in general. Even though it is a classic research area in computer vision, advances in neural networks for object detection and classification, especially in the last years, made this area even more appealing due to the effectiveness of these methods. This study presents TrafficSensor, a system that employs deep learning techniques for automatic vehicle tracking and classification on highways using a calibrated and fixed camera. A new traffic image dataset was created to train the models, which includes real traffic images in poor lightning or weather conditions and low-resolution images. The proposed system consists mainly of two modules, first one responsible of vehicle detection and classification and a second one for vehicle tracking. For the first module, several neural models were tested and objectively compared, and finally, the YOLOv3 and YOLOv4-based network trained on the new traffic dataset were selected. The second module combines a simple spatial association algorithm with a more sophisticated KLT (Kanade–Lucas–Tomasi) tracker to follow the vehicles on the road. Several experiments have been conducted on challenging traffic videos in order to validate the system with real data. Experimental results show that the proposed system is able to successfully detect, track, and classify vehicles traveling on a highway on real time.

Videos

High Quality Video

Low Quality and Unfavorable Weather Conditions Video

Materials

Citation

@article{cazorla2021robust,
  title={Robust Real-Time Traffic Surveillance with Deep Learning},
  author={Fernández, Jessica and Cañas, José M. and Fernández, Vanessa and Paniego, Sergio},
  journal={Computational Intelligence and Neuroscience},
  editor={Cazorla, Miguel},
  volume={2021},
  pages={4632353},
  year={2021},
  publisher={Hindawi},
  doi={10.1155/2021/4632353},
  url={https://doi.org/10.1155/2021/4632353},
  ISSN={1687-5265},
  abstract={Real-time vehicle monitoring in highways, roads, and streets may provide useful data both for infrastructure planning and for traffic management in general. Even though it is a classic research area in computer vision, advances in neural networks for object detection and classification, especially in the last years, made this area even more appealing due to the effectiveness of these methods. This study presents TrafficSensor, a system that employs deep learning techniques for automatic vehicle tracking and classification on highways using a calibrated and fixed camera. A new traffic image dataset was created to train the models, which includes real traffic images in poor lightning or weather conditions and low-resolution images. The proposed system consists mainly of two modules, first one responsible of vehicle detection and classification and a second one for vehicle tracking. For the first module, several neural models were tested and objectively compared, and finally, the YOLOv3 and YOLOv4-based network trained on the new traffic dataset were selected. The second module combines a simple spatial association algorithm with a more sophisticated KLT (Kanade–Lucas–Tomasi) tracker to follow the vehicles on the road. Several experiments have been conducted on challenging traffic videos in order to validate the system with real data. Experimental results show that the proposed system is able to successfully detect, track, and classify vehicles traveling on a highway on real time.},
  date={2021-12-27}
}