Keeping Track in Traffic: Counting Vehicles with YOLO and a Kalman Filter

Counting vehicles sounds easy until the road fills up. A system that watches traffic has to find each vehicle, follow it from frame to frame, and still keep track when another vehicle passes in front of it. If it loses a vehicle or counts the same one twice, the numbers that traffic managers depend on become unreliable.

This study combines the YOLO object detector with a Kalman Filter. YOLO generates bounding boxes and class labels for several vehicle types, so the system knows what is on the road and where. The Kalman Filter then keeps each track stable across frames. It works by predicting where a vehicle should be in the next frame based on how it has been moving, so the track can continue even when detections are interrupted or a vehicle is temporarily hidden behind another one.

Counting is done in a simple way: a vehicle is counted when it crosses a set detection line. Because each vehicle keeps a stable identity as it moves, it is counted once as it crosses and not repeatedly.

On real-world traffic videos the system reached a mean Average Precision of 96.7% after 200 training epochs and counted vehicles with few errors, especially larger vehicles such as cars and trucks. It processed about 25 frames per second, which meets real-time requirements. Dense traffic and heavy vehicle overlap reduced tracking accuracy. For the future, the authors suggest retraining on localized datasets, adding sensors such as LIDAR, and optimizing the system for embedded devices.

This work connects to Sustainable Development Goal 11 (SDG 11): Sustainable Cities and Communities. Reliable vehicle counting supports traffic flow analysis, violation detection, and data-driven management in smart city infrastructure.

Ultimately, this study shows that pairing a strong detector with a smart way of predicting movement is what makes it possible to follow vehicles through a busy road, one frame at a time.

Metadata:
Judul article: Vehicle Detection and Tracking Techniques Using Yolo Detection and Kalman Filter Optimization
Nama jurnal: International Conference on Advancement in Data Science, E-learning and Information System (ICADEIS)
Penerbit: IEEE
Tanggal publish: February 2025
Tautan / Link: https://doi.org/10.1109/icadeis65852.2025.10933380

Contact:
Prof. Dr. Ir. Indrabayu, S.T., M.T., M.Bus.Sys., IPM., ASEAN.Eng
0811447755
indrabayu@unhas.ac.id

sdg11
Prof. (Dr.) Kailash Chandra Bandhu

Prof. (Dr.) Kailash Chandra Bandhu

Professor and Head of Department Computer Science and Engineering Medicaps University, Indore, India

Elly Warni, S.T., M.T.

198202162008122001

Data Mining and Software Engineering

Fitriani

Doctoral Student

Andi Muh. Valdi Ramadhan B.S.

Bachelor Student

Herlina Anwar

Muhammad Abdillah Rahmat

Dr. Misita Anwar

Swinburne University of Technology

A. Ais Prayogi Alimuddin, S.T., M.Eng.

198305102014041001

Artificial Intelligence, Data Management, Mobile Programming

Ir. Anugrayani Bustamin, S.T., M.T.

199012012018074001

Natural Language Processing, Artificial Intelligence , Data Mining, Multimedia Analitics

Prof. Dr. Eng. Intan Sari Areni., ST., MT.

197502032000122002

Telecommunications and Multimedia

Haryanti Rivai, ST., MT., Ph.D

197902252002122001

Maritime Safety and Ship Electrical