| Citation: | ZHANG Wei, CHEN Jing-sheng, YANG Wei-sen, MA Yu-fei. Intersection traffic flow statistics strategy based on deep learning[J]. Journal of Traffic and Transportation Engineering, 2026, 26(10): 211-223. doi: 10.19818/j.cnki.1671-1637.2026.125 |
To achieve synchronous statistical analysis of traffic flow at intersections, a traffic flow statistics strategy for monitoring traffic participants at intersections was proposed based on deep learning. The unmanned aerial vehicle (UAV) aerial videos were collected at five typical intersections in Xi'an to construct a dataset applicable for deep learning. Based on the original YOLOv8 network architecture, a small-target detection layer P2 was added to reduce the missed detection rate of small targets. The BiFPN structure was also integrated to enhance the recognition effectiveness for categories with small samples, thereby improving the detection model to achieve comprehensive detection of all traffic participants at intersections. Based on this, through dynamic adjustment of virtual detection lines, trigger functions were utilized to capture state changes of vehicles before and after crossing the lines to achieve counting. A mapping table was then established to determine the flow direction of vehicle targets. Meanwhile, considering the different movement characteristics of pedestrians compared to vehicles, additional pedestrian detection lines were set up by employing the same method to achieve counting and flow direction determination. Ultimately, an intersection traffic flow statistics method was proposed based on dynamic virtual detection lines. Research results demonstrate that compared to the original model, the improved model shows an 11.23% increase in mAP50 metrics, with significant improvements in both recall rate and precision for pedestrian detection. The recall rate for buses with limited samples in the dataset is also increased. After using the proposed traffic flow statistics method for experimental validation at another intersection in Xi'an, the verification results indicate that this method achieves an average statistical accuracy of 93.6% for intersection traffic flow, with a substantial reduction in duplicate counting rates compared to fixed detection lines. Compared to other methods, the detection speed rises to 24 FPS. The requirements for precise intersection traffic flow statistics can be met. The proposed method achieves high-precision synchronous detection of counting and flow direction for all traffic participants at intersections, applicable for optimizing signal timing, alleviating traffic congestion, and enhancing traffic safety.
| [1] |
SONG Lang, AN Shi, YU Shan-chuan, et al. Combination design method of tandem intersections with contraflow left-turn lane[J]. Journal of Traffic and Transportation Engineering, 2025, 25(1): 295-310. doi: 10.19818/j.cnki.1671-1637.2025.01.021
|
| [2] |
ZHAO Hong-xing, WANG Yu-jie, NIE Jiang-long, et al. Deep reinforcement learning signal continuous control of intersection based on cellular deduction multi-step decision mechanism[J]. Journal of Traffic and Transportation Engineering, 2025, 25(4): 296-310. doi: 10.19818/j.cnki.1671-1637.2025.04.021
|
| [3] |
ZHANG Yin-hui, JI Kai, HE Zi-fen, et al. Attention-guided multi-scale infrared real-time detection of pedestrian and vehicle[J]. Infrared and Laser Engineering, 2024, 53(5): 20240063.
|
| [4] |
DU K, GUO X P, LI L T, et al. Traffic prediction in time series, spatial temporal, and OD data: A systematic survey[J]. Journal of Traffic and Transportation Engineering (English Edition), 2025, 12(3): 666-700. doi: 10.1016/j.jtte.2025.03.001
|
| [5] |
XIE Z M, RAJAMANI R. Vehicle counting and maneuver classification with support vector machines using low-density flash lidar[J]. IEEE Transactions on Vehicular Technology, 2022, 71(1): 86-97. doi: 10.1109/TVT.2021.3125919
|
| [6] |
MANDELLOS N A, KERAMITSOGLOU I, KIRANOUDIS C T. A background subtraction algorithm for detecting and tracking vehicles[J]. Expert Systems with Applications, 2011, 38(3): 1619-1631. doi: 10.1016/j.eswa.2010.07.083
|
| [7] |
ZHOU Jing-mei, ZHAO Xiang-mo, CHENG Xin, et al. Optical flow-based optimization method of vehicle motion estimation[J]. Journal of Harbin Institute of Technology, 2016, 48(9): 65-69.
|
| [8] |
GIRSHICK R, DONAHUE J, DARRELL T, et al. Rich feature hierarchies for accurate object detection and semantic segmentation[C]//IEEE. 2014 IEEE Conference on Computer Vision and Pattern Recognition. New York: IEEE, 2014: 580-587.
|
| [9] |
REDMON J, DIVVALA S, GIRSHICK R, et al. You only look once: Unified, real-time object detection[C]//IEEE. 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR). New York: IEEE, 2016: 779-788.
|
| [10] |
GOMAA A, ABDELWAHAB M M, ABO-ZAHHAD M, et al. Robust vehicle detection and counting algorithm employing a convolution neural network and optical flow[J]. Sensors, 2019, 19(20): 4588. doi: 10.3390/s19204588
|
| [11] |
XIAO W J, LIU J F. Application of vision sensing technology in urban intelligent traffic control system[C]//IEEE. 2018 4th International Conference on Computer and Technology Applications (ICCTA). New York: IEEE, 2018: 74-77.
|
| [12] |
FEDOROV A, NIKOLSKAIA K, IVANOV S, et al. Traffic flow estimation with data from a video surveillance camera[J]. Journal of Big Data, 2019, 6(1): 73. doi: 10.1186/s40537-019-0234-z
|
| [13] |
KONG Fang-fang, SONG Bei-bei. Improved YOLOv3 panoramic traffic monitoring target detection[J]. Computer Engineering and Applications, 2020, 56(8): 20-25.
|
| [14] |
LAI Jian-hui, WANG Yang, LUO Tian-tian, et al. A YOLO_V3-based road-side video traffic volume counting method and verification[J]. Journal of Highway and Transportation Research and Development, 2021, 38(1): 135-142.
|
| [15] |
MA Yong-jie, MA Yun-ting, CHENG Shi-sheng, et al. Road vehicle detection method based on improved YOLOv3 model and Deep-SORT algorithm[J]. Journal of Traffic and Transportation Engineering, 2021, 21(2): 222-231. doi: 10.19818/j.cnki.1671-1637.2021.02.019
|
| [16] |
LI Yong-shang, MA Rong-gui, ZHANG Mei-yue. Traffic monitoring video vehicle volume statistics method based on improved YOLOv5s+DeepSORT[J]. Computer Engineering and Applications, 2022, 58(5): 271-279.
|
| [17] |
CHEN Ting, YAO Da-chun, GAO Tao, et al. A fused network based on PReNet and YOLOv4 for traffic object detection in rainy environment[J]. Journal of Traffic and Transportation Engineering, 2022, 22(3): 225-237. doi: 10.19818/j.cnki.1671-1637.2022.03.018
|
| [18] |
LIU Zhan-wei, HUANG He-fei, XU Guang-lu. Traffic flow detection method based on YOLOv8n+StrongSORT[J]. Computer Technology and Development, 2025, 35(9): 156-164.
|
| [19] |
LIU H L, MA Y J, JIANG H, et al. SPR-YOLO: A traffic flow detection algorithm for fuzzy scenarios[J]. Arabian Journal for Science and Engineering, 2025, 50(19): 15843-15856. doi: 10.1007/s13369-025-09997-9
|
| [20] |
XU S Z, CUI K D. YOLO-EFM: Efficient traffic flow monitoring algorithm with enhanced multi-level information fusion[J]. Results in Engineering, 2025, 26: 105545. doi: 10.1016/j.rineng.2025.105545
|
| [21] |
SHOKROLAH SHIRAZI M, MORRIS B T. Vision-based turning movement monitoring: count, speed & waiting time estimation[J]. IEEE Intelligent Transportation Systems Magazine, 2016, 8(1): 23-34. doi: 10.1109/MITS.2015.2477474
|
| [22] |
CHEN Xiu-feng, WU Yue-chen, BING Qi-chun, et al. A multi-direction traffic flow statistics algorithm based on anchor-like visual loops[J]. Journal of Transportation Systems Engineering and Information Technology, 2021, 21(2): 51-57.
|
| [23] |
YAN Xun. Research on traffic statistics algorithms at intersections in high-altitude scenes[D]. Yichang: China Three Gorges University, 2021: 3.
|
| [24] |
ZHANG Jing, ZHANG Lin, WANG Chang-wei. Research on statistical method of traffic flow at intersection based on aerial video[J]. Computer Simulation, 2020, 37(12): 117-121.
|
| [25] |
ZHANG Wei, LI Yong, LIU Tao, et al. Turning traffic flow detection method based on deep learning[J]. Science Technology and Engineering, 2025, 25(4): 1701-1710.
|
| [26] |
TAN M X, PANG R M, LE Q V. EfficientDet: scalable and efficient object detection[C]//IEEE. 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). New York: IEEE, 2020: 10778-10787.
|
| [27] |
LUO Rui-qi, ZHANG Xing-yu, LIU Yan. Study on pedestrian trajectory analysis and optimizing method for crossing overflow[J]. Modern Transportation Technology, 2020, 17(5): 52-56.
|
| [28] |
ZHANG Shuai-qi. Research on pedestrian trajectory prediction and vehicle path planning based on crosswalk pedestrian behavior[D]. Xi'an: Chang'an University, 2024: 9.
|
| [29] |
HOSSAIN M S, BETTS J M, PAPLINSKI A P. Dual focal loss to address class imbalance in semantic segmentation[J]. Neurocomputing, 2021, 462: 69-87. doi: 10.1016/j.neucom.2021.07.055
|
| [30] |
LIN T Y, GOYAL P, GIRSHICK R, et al. Focal loss for dense object detection[J]. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2020, 42(2): 318-327. doi: 10.1109/TPAMI.2018.2858826
|
| [31] |
ZHANG Y F, SUN P Z, JIANG Y, et al. ByteTrack: multi-object tracking by associating every detection box[C]//Springer. Computer Vision - ECCV 2022. Cham: Springer, 2022: 1-21.
|