Ai-assisted vehicle detection and traffic flow analysis from CCTV imagery using YOLO in the Bangkok metropolitan area
Rapid urban expansion and rising vehicle numbers in metropolitan areas have intensified traffic congestion and increased the risk of road traffic accidents. However, traditional traffic data collection methods remain limited in spatial coverage and temporal resolution, reducing their effectiveness for traffic management and road safety planning. Closed-circuit television (CCTV) systems continuously capture traffic conditions, yet their analytical potential has not been fully utilized. Advances in deep learning, particularly the You Only Look Once (YOLO) algorithm, provide strong capabilities for real-time object detection and classification from image data. This study aimed to evaluate the performance of YOLOv5m, YOLOv8m, and YOLOv12m in detecting and classifying vehicle types from CCTV video data collected from three major bridges in Bangkok, and to analyze traffic volume by time period and travel direction. The results showed that YOLOv12m demonstrated competitive overall detection performance compared with YOLOv5m and YOLOv8m. Temporal analysis revealed higher inbound traffic in the morning and greater outbound traffic in the evening, reflecting commuting patterns. In addition, the model supported traffic volume analysis across selected bridge corridors. These findings highlight the potential of integrating CCTV and YOLO for automated traffic monitoring, traffic volume analysis, road safety support, and smart transportation planning in Bangkok.
Authors
- Kunyaphat Thanakunwutthirot
- Nayot Kulpanich (ORCID: https://orcid.org/0000-0003-3222-989X)
- Morakot Worachairungreung (ORCID: https://orcid.org/0000-0002-9450-0473)
- Pornperm SAE-NGOW (ORCID: https://orcid.org/0000-0002-0911-187X)
- Sarawut Ninsawat (ORCID: https://orcid.org/0000-0002-8381-7942)
- Sila Doddacha
- Jarukiat Nilnarong
Institutions
- Asian Institute of Technology (TH)
- Suan Sunandha Rajabhat University (TH)
Publication Details
- Journal
- Transportation Research Interdisciplinary Perspectives
- Published
- 2026-06-09
- DOI
- https://doi.org/10.1016/j.trip.2026.102104
- Primary Topic
- Automated Road and Building Extraction
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Research Council of Thailand