Robust vehicle detection and counting algorithm employing a convolution neural network and optical flow

Ahmed Gomaa, Moataz M. Abdelwahab, Mohammed Abo-Zahhad, Tsubasa Minematsu, Rin Ichiro Taniguchi

Research output: Contribution to journalArticlepeer-review

50 Citations (Scopus)


Automatic vehicle detection and counting are considered vital in improving traffic control and management. This work presents an effective algorithm for vehicle detection and counting in complex traffic scenes by combining both convolution neural network (CNN) and the optical flow feature tracking-based methods. In this algorithm, both the detection and tracking procedures have been linked together to get robust feature points that are updated regularly every fixed number of frames. The proposed algorithm detects moving vehicles based on a background subtraction method using CNN. Then, the vehicle’s robust features are refined and clustered by motion feature points analysis using a combined technique between KLT tracker and K-means clustering. Finally, an efficient strategy is presented using the detected and tracked points information to assign each vehicle label with its corresponding one in the vehicle’s trajectories and truly counted it. The proposed method is evaluated on videos representing challenging environments, and the experimental results showed an average detection and counting precision of 96.3% and 96.8%, respectively, which outperforms other existing approaches.

Original languageEnglish
Article number4588
JournalSensors (Switzerland)
Issue number20
Publication statusPublished - Oct 2 2019

All Science Journal Classification (ASJC) codes

  • Analytical Chemistry
  • Information Systems
  • Instrumentation
  • Atomic and Molecular Physics, and Optics
  • Electrical and Electronic Engineering
  • Biochemistry


Dive into the research topics of 'Robust vehicle detection and counting algorithm employing a convolution neural network and optical flow'. Together they form a unique fingerprint.

Cite this