Skip to main content
Have a personal or library account? Click to login
Real-Time Vehicle Classification and Directional Counting at Urban Roads Using YOLOv11 Under Heterogeneous Traffic Conditions Cover

Real-Time Vehicle Classification and Directional Counting at Urban Roads Using YOLOv11 Under Heterogeneous Traffic Conditions

Open Access
|Mar 2026

Abstract

Urban roads in developing countries face highly heterogeneous traffic, making manual data collection labour-intensive and error-prone. This study presents a deep learning-based approach for real-time vehicle classification and directional counting using the YOLOv11 framework. A custom dataset of 5,200 locally collected images, encompassing 11 vehicle classes defined by the Road Development Authority of Sri Lanka, was used to train two model variants: YOLOv11 medium and YOLOv11 small. To enable directional flow estimation, the system implements a line-pass-based tracking algorithm that distinguishes between up- and down-traffic streams. The system demonstrated high accuracy for common classes, such as cars (Upstream 98.8% and Downstream 96.8%), motorcycles (Upstream 88.8% and Downstream 97.6%), and three-wheelers (Upstream 85.8% and Downstream 98.4%). However, performance variations in other categories highlight the challenges of occlusion and visual ambiguity in mixed-traffic environments. The findings demonstrate that YOLOv11 models trained on locally representative datasets provide a reliable, scalable, and cost-effective alternative to manual survey methods. This approach provides a disaggregated data source to support traffic signal optimisation, intersection analysis, and urban transport planning under complex heterogeneous traffic conditions.

Language: English
Page range: 23 - 40
Published on: Mar 31, 2026
Published by: Sri Lanka Society of Transport and Logistics
In partnership with: Paradigm Publishing Services

© 2026 H. M. A. G. H. C. Abeyrathne, T. Sivakumar, published by Sri Lanka Society of Transport and Logistics
This work is licensed under the Creative Commons Attribution 4.0 License.