Pedestrian flow counting at urban intersections using a retrained YOLOv8 model

  • Tam Vu Faculty of Transportation Engineering, Hanoi University of Civil Engineering, 55 Giai Phong road, Hai Ba Trung district, Hanoi, Vietnam
Keywords: computer vision;, intersections;, pedestrian flow counting

Abstract

This study addresses the limited application of computer vision techniques for counting pedestrians at urban intersections by developing an integrated deep learning-based framework. Three models are proposed: a detection model trained on a large, diverse pedestrian dataset; a tracking model incorporating a novel reference point on bounding boxes with an enhanced identity-switch handling algorithm; and a counting model tailored to pedestrian crossing behaviors with movement-specific algorithms. The framework was applied to a case study in Vietnam, where pedestrian flow is often complex due to mixed traffic environments. A comprehensive dataset comprising 22 video footages under both daytime and nighttime conditions yielded over 120,000 labeled pedestrian instances. The tracking model effectively captures pedestrian trajectories across crosswalks, while the counting model introduces a multi-line crossing technique to enhance accuracy at signalized intersections. Evaluation results show the counting model achieves over 98% accuracy compared to manual annotations across various time frames and pedestrian densities. These findings offer valuable tools for urban transport planners and policymakers in Vietnam and similar countries, enabling automated pedestrian data collection, improving intersection safety assessment, and supporting infrastructure design.

Downloads

Download data is not yet available.
Published
25-06-2025
How to Cite
Vu, T. (2025). Pedestrian flow counting at urban intersections using a retrained YOLOv8 model. Journal of Science and Technology in Civil Engineering (JSTCE) - HUCE, 19(2), 107-118. https://doi.org/10.31814/stce.huce2025-19(2)-08
Section
Research Papers