Facebook pixel tracking

The Science and Information (SAI) Organization publishes open-access peer-reviewed journals in computer science and artificial intelligence.

Contact Info
Website thesai.org
Follow Us
Contact Info
Follow Us
Research Article | Open Access |

HETRA: A Real-Time Traffic Detection and Directional Counting System Using YOLOv8 and DeepSORT

Author 1: Kuldeep Kumar Shukla Author 2: Ajai Kumar Singh
International Journal of Advanced Computer Science and Applications (IJACSA) · Vol. 17, No. 7 · Published 2026

DOI: https://doi.org/10.14569/IJACSA.2026.0170725

Abstract

Rapid urbanization and economic growth in developing countries such as India have increased the demand for automated traffic analysis systems. However, heterogeneous traffic conditions present significant challenges to automated traffic analysis. This study proposes HETRA (HEterogeneous TRaffic Analysis), a real- time traffic monitoring framework that integrates YOLOv8 and DeepSORT for multi-class detection, tracking, and counting. For this, a custom traffic dataset was developed using real-world recorded traffic videos. The dataset consists of more than eight thousand annotated frames representing the fourteen traffic classes (motorized, non-motorized, and pedestrians). The proposed model leverages YOLOv8 for class identification and localization, while DeepSORT is used for multi-class tracking and directional traffic counting. The custom traffic dataset was used to train and assess the proposed HETRA model. The model achieved precision, recall, and mean average precision values of 71.15%, 65.51%, and 61.9%, respectively. The qualitative assessment of the model demonstrated its effectiveness under varying traffic scenarios and lighting conditions. Furthermore, it obtained an overall counting accuracy of 90%. These findings demonstrate the potential of the proposed framework for real-time traffic analysis and intelligent transportation systems.

Keywords

How to Cite this Article

Shukla, K. K., & Singh, A. K. (2026). HETRA: A Real-Time Traffic Detection and Directional Counting System Using YOLOv8 and DeepSORT. International Journal of Advanced Computer Science and Applications, 17(7). https://doi.org/10.14569/IJACSA.2026.0170725

Shukla, Kuldeep Kumar, and Ajai Kumar Singh. "HETRA: A Real-Time Traffic Detection and Directional Counting System Using YOLOv8 and DeepSORT." International Journal of Advanced Computer Science and Applications, vol. 17, no. 7, 2026, https://doi.org/10.14569/IJACSA.2026.0170725.

@article{Shukla2026,
  title     = {HETRA: A Real-Time Traffic Detection and Directional Counting System Using YOLOv8 and DeepSORT},
  journal   = {International Journal of Advanced Computer Science and Applications},
  volume    = {17},
  number    = {7},
  year      = {2026},
  publisher = {The Science and Information Organization},
  author    = {Kuldeep Kumar Shukla and Ajai Kumar Singh},
  doi       = {10.14569/IJACSA.2026.0170725},
  url       = {https://doi.org/10.14569/IJACSA.2026.0170725}
}

Open Access — licensed under a Creative Commons Attribution 4.0 International License. Unrestricted use, distribution, and reproduction in any medium, even commercially, as long as the original work is properly cited.