Project Report
Project Report
BACHELOR OF TECHNOLOGY
IN
CIVIL ENGINEERING
Submitted By
NIRAJ KUMAR (21024117)
NITIN ANAND (21024119)
RAHUL KUMAR VISHVAKARMA (21024124)
2024 - 2025
DEPARTMENT OF CIVIL ENGINEERING
SCHOOL OF STUDIES OF ENGINEERING AND
TECHNOLOGY,
GURU GHASIDAS VISWAVIDYALAYA, BILASPUR (C.G.)
(ACentralUniversityEstablishedbytheCentralUniversityAct2009No.25of2009)
DECLARATION
Sign……………………. Sign…………………….
NIRAJ KUMAR NITIN ANAND
Roll no. 21024117 Roll no. 21024119
Enrolment (GGV/21/01017) Enrolment (GGV/21/01019)
Sign…………………….
RAHUL KUMAR VISHVAKARMA
Roll no. 21024124
Enrolment (GGV/21/01024)
ii
DEPARTMENT OF CIVIL ENGINEERING
SCHOOL OF STUDIES OF ENGINEERING AND
TECHNOLOGY,
GURU GHASIDAS VISWAVIDYALAYA, BILASPUR (C.G.)
(ACentralUniversityEstablishedbytheCentralUniversityAct2009No.25of2009)
CERTIFICATE
Certified that the project report entitled “Smart Signal Timing for Urban
Intersections Using Real-Time Vehicle Detection and PCU Calculations”
submitted by NIRAJ KUMAR, NITIN ANAND, RAHUL KUMAR
VISHVAKARMA in partial fulfillment of the requirements for the award of the
degree of Bachelor of Technology in Civil Engineering, Department of Civil
Engineering, School of Studies in Engineering and Technology, Guru Ghasidas
Vishwavidyalaya, Bilaspur, is accorded to the student’s own work, carried out by
him in the Department of Civil Engineering during the session 2024–2025 under
my supervision and guidance.
Sign. ...........................
Prof. M.Chakradhara Rao
Head of Department
Civil Engineering Department,
School of Studies of Engineering and Technology
Guru GhasidasVishwavidyalaya
Bilaspur, Chhattisgarh
iii
AKNOWLEDGEMENT
I take this opportunity to express my sincere gratitude to all those who have
helped me throughout the completion of this project titled
“Smart Signal Timing for Urban Intersections Using Real-Time Vehicle Detection
and PCU Calculations.”
First and foremost, I would like to express my deep sense of gratitude to Dr.
Umank Mishra, Associate Professor, Department of Civil Engineering, for his
invaluable guidance, continuous encouragement, and constant support
throughout the course of this project. His expertise and timely suggestions played
a crucial role in shaping the project to its present form.
I would also like to thank the Department of Civil Engineering, School of Studies
in Engineering and Technology, Guru Ghasidas Vishwavidyalaya, for providing the
necessary infrastructure and academic environment to carry out this work.
My heartfelt thanks to all faculty members and staff of the department for their
encouragement and assistance. I also extend my gratitude to my fellow classmates
and friends for their constructive feedback and moral support.
Last but not the least, I am thankful to my family for their unwavering support
and motivation which kept me focused and determined during every phase of the
project.
iv
ABSTRACT
Managing traffic in busy city areas has become one of the biggest challenges due
to the rapid increase in the number of vehicles. Traditional traffic signals that
work on fixed time cycles often fail to adapt to real-time traffic conditions,
leading to unnecessary delays and congestion. This project, titled
“Smart Signal Timing for Urban Intersections Using Real-Time Vehicle Detection
and PCU Calculations,”
aims to provide a more responsive and practical solution to this problem.
The project is divided into two main parts. In the first part, we used video-based
vehicle detection techniques using YOLOv5 and the SORT tracking algorithm to
identify and count different types of vehicles passing through each lane. These
vehicles were then converted into standard traffic load units using Passenger Car
Units (PCU) to make the data more useful for traffic analysis.
In the second part, we designed a signal timing model that takes these PCU values
as input and calculates the green signal time for each lane dynamically. The
algorithm ensures that every lane gets a minimum signal time and that the total
cycle time adjusts based on overall traffic volume. This method not only improves
traffic flow but also keeps the system fair and efficient.
This work is a step toward smarter, more adaptive traffic management systems
and can be further developed to work with live traffic feeds in real-time
environments.
v
TABLE OF CONTENTS
TITLE I
DECLARATION II
CERTIFICATE III
ACKNOWLEDGEMENT IV
ABSTRACT V
LIST OF FIGURES IX
LIST OF TABLES X
CHAPTER 1 - INTRODUCTION 11
VI
2.2 Literature Review 16
CHAPTER 3 - METHODOLOGY 23
3.1 Overview 23
VII
4.1 Introduction To Results 34
4.6 Limitations 37
CHAPTER 5 - CONCLUSION 39
CHAPTER 6 - REFERENCES 40
VIII
LIST OF FIGURES
IX
LIST OF TABLES
Table
Description Of Table Page No.
No.
2 Survey Report 27
3 Survey Report 27
4 Survey Report 28
X
Chapter - 1
Introduction
Traffic congestion is one of the most pressing challenges faced by urban areas
across the globe. As cities expand and vehicle ownership continues to rise, the
existing traffic infrastructure, especially at intersections, struggles to keep up. In
many Indian cities, signal systems are still based on fixed cycles that operate
irrespective of the real-time traffic load. This leads to inefficient road usage,
unnecessary delays, increased fuel consumption, and avoidable air pollution. Even
during low traffic hours, vehicles often have to wait unnecessarily at red signals,
while high-traffic lanes suffer from insufficient green time.
To solve this problem, traffic management systems must evolve to become smarter
and more responsive. This project—"Smart Signal Timing for Urban Intersections
Using Real-Time Vehicle Detection and PCU Calculations"—proposes a hybrid
solution that blends artificial intelligence and traffic engineering principles. The
primary goal is to optimize signal timings dynamically, depending on the actual
number and type of vehicles approaching an intersection.
The system works in two phases. In the first phase, a real-time video feed from a
traffic camera is analyzed using a deep learning model (YOLOv5), which detects
and classifies each vehicle. The detected vehicles are then converted into their PCU
(Passenger Car Unit) values—a method widely used in traffic engineering to
quantify the space and impact of different vehicle types. For instance, a truck
impacts traffic differently than a motorcycle, and PCU values help standardize
this.
In the second phase, based on the total PCU per lane, the algorithm calculates
dynamic green times. A fixed minimum green time is ensured for each lane to
maintain fairness, and the remaining available cycle time is distributed
proportionally according to the detected traffic load. Furthermore, if the overall
traffic is light, the system intelligently reduces the total cycle time, avoiding
unnecessary delays.
This approach not only brings fairness and efficiency to traffic flow but also lays
the groundwork for future smart city integration. It can be further enhanced with
emergency vehicle detection, automatic input from surveillance systems, and
integration into urban traffic control centers.
In India and many developing countries, traffic signal systems typically operate on
fixed-time cycles, regardless of actual traffic flow. This outdated method results in
unnecessary wait times, longer fuel consumption, and increased emissions. Roads
11
that are congested often receive the same green signal time as those with minimal
traffic, leading to inefficient road utilization. Moreover, emergency situations or
unexpected traffic surges cannot be accommodated dynamically. These issues
collectively underline the urgent need for a smarter, data-driven traffic
management approach that adjusts itself based on real-world vehicle flow.
In the diverse and often congested traffic environments found in Indian cities,
simply counting the number of vehicles on a road isn’t enough to understand their
impact on traffic flow. Different types of vehicles—like bikes, buses, cars, and
trucks—occupy different amounts of space, move at different speeds, and behave
differently in traffic. This is where the concept of Passenger Car Unit (PCU)
becomes essential.
The PCU is a standard measure used to equate the impact of various types of
vehicles to that of a standard passenger car. This helps in designing traffic systems
that are fair and efficient by considering not just the number of vehicles but how
much space and time each type consumes on the road. For example, a truck
occupies more road space and moves slower than a car, so it contributes more to
congestion and thus has a higher PCU value.
The Indian Roads Congress (IRC:106-1990) provides recommended PCU values
for various vehicle types under mixed traffic conditions. These values are shown in
the table below:
12
Vehicle Type PCU Value
Passenger Car 1
Auto-Rickshaw 1.2
Auto-Rickshaw 3
Truck 3
Bicycle 0.5
Tractor 4
In this project, these PCU values are used to convert raw vehicle counts—obtained
from video-based real-time detection—into a standardized traffic load. This allows
for better decision-making while designing green signal timings, ensuring that
larger and slower vehicles are given the appropriate amount of time to clear
intersections safely. Ultimately, using PCU-based calculations helps improve traffic
efficiency and reduce unnecessary delays.
The rapid urbanization of cities has led to unpredictable traffic flows, making
manual monitoring and static traffic signal systems insufficient. To address this,
Artificial Intelligence (AI) is being increasingly used to automate the detection,
tracking, and classification of vehicles. In this project, we utilized deep learning-
based object detection models and tracking algorithms to enable real-time traffic
monitoring from video footage. The goal was to build a system that could
accurately identify different vehicle types and help in dynamic signal timing design
using PCU-based calculations.
13
Below are the key components of AI technologies applied in our project:
YOLO is one of the most popular real-time object detection models. Unlike older
methods that required separate stages for region proposal and classification,
YOLO does everything in a single neural network pass. This makes it extremely
fast and efficient—ideal for traffic applications where decisions need to be made in
real time.
In our project, we used YOLOv5s, a lightweight version of the YOLOv5 model. It
was pre-trained on the COCO dataset and capable of detecting 80 object classes,
including vehicles such as cars, buses, motorcycles, and trucks. We fine-tuned it for
our needs by filtering only vehicle classes relevant to Indian roads.
Advantages of using YOLO in our project:
Real-time speed with good accuracy
Single-shot detection: bounding box and class prediction done together
Well-documented and open-source, with PyTorch support
While YOLO detects objects frame-by-frame, it does not remember which vehicle
is which over time. This is where SORT comes into play. SORT is a fast and simple
tracking algorithm that links detections across video frames to assign unique IDs
to each vehicle.
We used SORT to:
Track the movement of each vehicle throughout the video
Avoid double-counting the same vehicle in multiple frames
Map vehicle types to unique IDs for PCU conversion
14
1.5.1 Fixed vs. Dynamic Timing
In fixed timing systems, each signal gets equal or pre-defined time regardless of
traffic load. In contrast, dynamic systems assess live input (like PCU) to assign
time based on demand. This increases efficiency and reduces idle time at
intersections.
We assume that in every cycle, at least 10 PCUs from each lane will clear during a
base green time (e.g., 10 seconds). This base time is reserved, and only the
remaining time is distributed based on the traffic proportion from each lane. This
ensures fairness and avoids extremely short durations.
Total signal cycle time isn’t static. If total detected PCUs are under 100, a shorter
cycle (e.g., 80 seconds) is used. If it exceeds, we go with 120 seconds. This
flexibility avoids unnecessary delays in low traffic and handles high traffic
efficiently.
Once the threshold-adjusted PCUs are calculated, we derive the ratio of each
lane's demand to the total and distribute remaining seconds accordingly. All
results are rounded off to whole seconds for practicality.
The main objective of this project, titled "Smart Signal Timing for Urban
Intersections Using Real-Time Vehicle Detection and PCU Calculations", is to
design an intelligent traffic signal management system that adapts to real-time
traffic conditions. The system aims to detect and classify vehicles using artificial
intelligence and compute Passenger Car Units (PCUs) to reflect actual traffic
density at intersections. Based on this data, the goal is to dynamically allocate
green signal time to each lane in a fair and optimized manner, ensuring smooth
vehicle movement, minimizing idle time, and reducing congestion. The study also
intends to make this system scalable for future integration, where video input can
automatically drive signal logic, enhancing traffic control efficiency, especially in
densely populated urban areas.
15
Chapter - 2
Literature Review
2.1 General Overview
16
Some IoT and machine learning models predicted traffic flow but did not
prioritize emergency vehicles effectively. Existing systems often assumed ideal
conditions, like lane discipline or widespread onboard units. This study stands out
by combining KNN-based traffic density estimation and YOLO-based emergency
vehicle detection, offering a dynamic, real-time solution suitable for smart cities
with high traffic congestion.
Recent studies on smart traffic management emphasize the integration of IoT, AI,
and RFID to address congestion and optimize urban mobility. Traditional traffic
systems based on fixed timings are inefficient in dense urban areas. Advanced
models use neural networks, video processing, and real-time sensors to estimate
traffic flow and adapt signal timings dynamically. Some works also include
emergency vehicle prioritization and environmental monitoring. These approaches
show potential in reducing congestion, improving safety, and enabling data-driven
urban planning.
17
Mohammed sarrab et al. (2020)
Several studies have explored IoT and AI for traffic management, mainly focusing
on highways and urban roads. Traditional systems rely heavily on smartphones
and vehicle sensors, limiting accessibility. Recent works have used ultrasonic,
magnetic, and video sensors for real-time traffic updates. However, limited
attention has been given to collector roads and non-smart environments. This
study addresses the gap by proposing an IoT-based system using magnetic sensors
and roadside message units to deliver real-time traffic information without
requiring user devices.
Several studies have addressed the limitations of fixed-time traffic systems using
technologies like inductive loops, ultrasonic, infrared, and acoustic sensors. Recent
advancements include image processing, RF detectors, fuzzy logic, IoT, and cloud-
based systems for dynamic traffic control. However, many rely on a single
technology. This study integrates ultrasonic sensors and image processing with
cloud storage via Raspberry Pi, offering real-time, reliable traffic density
estimation. The hybrid approach enhances accuracy and introduces fault tolerance
for sensor failures.
Mishra et al (2017)
Numerous studies have addressed the estimation of Passenger Car Unit (PCU)
values under heterogeneous traffic conditions using parameters such as speed,
density, and delay. However, these approaches often yield inconsistent results due
to varying roadway and traffic compositions. Static PCU values recommended by
the Indian Roads Congress (IRC:106-1990) are based on limited empirical data
and may not reflect real-world mixed-traffic dynamics. Microsimulation models
like VISSIM and HeteroSim have been employed to derive dynamic PCU values,
but speed-based methods often struggle under non-lane-disciplined traffic. In this
context, the concept of area occupancy, introduced by Mallikarjuna and Rao,
offers a more reliable and field-measurable parameter. It accounts for the actual
space occupied by vehicles, making it a promising basis for improved PCU
estimation.
18
2.3 Critical Observation
2.3.1Technological Integration
Most studies integrate AI models like Yolo for object recognition and LSTM for
traffic prediction. These systems demonstrate the possibility that AI can
adaptively manage traffic. However, integration into infrastructure remains
limited, and response to live real-time data needs to be further refined for robust
urban use.
IoT-based transport systems are based on sensors such as Raspberry PI, IR, and
RFID, and collect data such as vehicle number and type. These allow for dynamic
signal control and emergency vehicle prioritization. Nevertheless, their cover is
often limited to intersections, and syncing in urban networks is still
underdeveloped.
Many studies consider environmental benefits, such as reduced emissions and fuel
consumption due to optimized signaling and reduced idle times. Minimizing
unnecessary outages and delays contributes to sustainability. However, detailed
indicators to reduce pollution are rarely quantified, and long-term reviews of
environmental impacts are largely lacking.
Simulation environments such as Carla provide useful tests for intelligent traffic
systems. However, it cannot replicate actual complexity such as weather changes,
driver behavior, signal failures, and more. The real attempts to offer you are rare,
making it difficult to assess how the system works in a real city under traffic
conditions mixed with chaotic.
Papers like Mishra et al. Discuss unstructured traffic in India and attach a PCU
estimation model based on surface loads. These are more suitable for Indian roads
where lane truck discipline is not available. However, most AI models used
worldwide take on structured truck behavior that limits their effectiveness in
Indian or similarly chaotic urban environments.
19
2.3.6. Data Collection Gap
Many systems rely on static data records or APIs from third party providers, such
as Google Maps. This limits adaptability to dynamic conditions. Real-time multi-
source data integration is limited (for example, combining video, sensors, and V2X
inputs). Without accurate and comprehensive data, sophisticated algorithms
cannot consistently make optimal traffic decisions.
While simulation-based results are promising, few systems have undergone large-
scale, real-world validation. Challenges like sensor calibration, weather variability,
network latency, and infrastructure limitations remain untested. Without
deployment in diverse traffic conditions, including rural and highly congested
urban zones, it’s difficult to measure true effectiveness, reliability, and user
acceptance of these solutions.
Although some systems prioritize ambulances or fire trucks using RFID or object
detection, real-time dynamic rerouting and signal coordination for emergency
vehicles are still rudimentary. Systems often fail to simulate complex city scenarios
where multiple emergency vehicles must be prioritized simultaneously, especially
during peak traffic or in multi-intersection zones.
Most models are designed for motorized vehicles and overlook bicycles,
pedestrians, and informal transport (e.g., rickshaws). This omission limits accuracy
and inclusiveness, particularly in countries with mixed-traffic environments.
20
Systems must evolve to detect and predict interactions across all road users to
improve safety, signal accuracy, and fair space allocation.
Few studies address the cost of scaling traffic systems across entire cities or
regions. Resource-intensive models requiring high-end computing or expensive
sensors limit affordability. A research gap exists in developing lightweight, energy-
efficient, and low-cost systems that can be feasibly adopted by small municipalities
or developing urban centers with constrained budgets.
21
This will require object detection algorithms that can classify different road users
and adaptive signal strategies that prioritize safety and equity.
Developing countries require solutions that are both technically effective and
economically feasible. The scope includes designing energy-efficient, low-cost
sensor nodes, open-source platforms, and edge computing solutions that minimize
dependency on expensive cloud services. This would enable wider adoption of
smart traffic management in small towns and resource-constrained municipalities.
There is scope to create robust real-time data fusion frameworks that merge data
from sensors, GPS, cameras, social feeds, and vehicle telemetry. Such systems
would offer comprehensive situational awareness, allowing traffic controllers to
make accurate and timely decisions. Standardizing protocols and ensuring data
quality across sources will be critical for reliability.
22
Chapter - 3
Methodology
3.1 Overview
The project “Smart Signal Timing for Urban Intersections Using Real-Time
Vehicle Detection and PCU Calculations” adopts a practical and modular strategy
to improve traffic flow at signalized intersections. The approach combines modern
artificial intelligence (AI) techniques with established traffic engineering concepts,
aiming to create a smart system that can adapt to real-time road conditions
without requiring extensive hardware infrastructure.
At the core, the methodology is divided into two main stages. The first stage
involves detecting and classifying vehicles in a video feed using a deep learning
model called YOLOv5. These vehicles are tracked across frames with the help of a
lightweight and efficient algorithm known as SORT (Simple Online and Realtime
Tracking). Based on the class of each vehicle — such as two-wheeler, car, bus, or
truck — a standard PCU (Passenger Car Unit) value is assigned, and the total
PCU count for each lane is calculated over a fixed duration.
The second stage focuses on dynamically designing green signal durations based
on these PCU inputs. A logical formula is applied that ensures a base minimum
time is allocated to every lane, ensuring fairness. The remaining time in the traffic
signal cycle is distributed in proportion to the PCU load across lanes. To make the
system adaptive, the total cycle time is also varied based on the overall traffic
volume — shorter cycles for low traffic, and extended ones when congestion is
high.
This step-by-step logic forms the foundation of a system that doesn't just operate
on fixed timing but adapts intelligently, which is crucial for densely populated
urban settings in countries like India. The proposed solution also considers future
scalability, where real-time camera input can be fed directly into the system,
allowing for fully automated signal control.
To design a traffic signal system that truly reflects on-ground realities, it was
important to base the model on realistic traffic scenarios. For this reason, we used
a combination of self-recorded videos from nearby intersections and publicly
available traffic footage relevant to Indian road conditions. Videos showing foreign
traffic systems were specifically avoided, as lane discipline, vehicle types, and road
behaviors in those setups differ significantly from those seen in India. Using
Indian-context videos made the detection and logic more generalized and relatable
to real urban traffic in our country.
23
After video collection, preprocessing became essential to make the raw footage
compatible with the AI detection model. Each video was standardized in terms of
frame size and resolution, typically resized to either 640×480 or 1280×720 pixels.
This step ensured a good balance between image quality and computational
efficiency. Frame rates were also adjusted to allow near-real-time detection
performance.
To enhance accuracy, Regions of Interest (ROI) were manually defined in the
video frames. This helped focus the AI model only on areas where vehicle
movement occurred, filtering out irrelevant parts like sidewalks, buildings, or the
sky. Additionally, basic brightness and contrast adjustments were performed when
lighting inconsistencies or shadows affected visibility.
This careful curation and preprocessing of the video data ensured that the vehicle
detection and classification model (YOLOv5) received consistent, India-specific,
and clean inputs — laying a solid foundation for accurate PCU estimation and
signal timing in later stages.
24
By combining YOLOv5's fast detection with SORT’s tracking, our system achieves
reliable, real-time identification and classification of traffic—setting the stage for
intelligent signal timing based on actual road conditions.
An essential part of this project is the method used for dynamically allocating
green signal times based on real-time traffic load at an intersection. Unlike
conventional fixed-time signals, which assign equal or preset green durations
regardless of actual traffic, our system adjusts green times proportionally using
vehicle counts (converted to PCU) as input. This approach helps in minimizing
delays and improving traffic flow across all lanes.
25
3.5.1 Minimum Green Time Allocation
To ensure that no lane is neglected, each approach is first given a base minimum
green time. In our model, we allocate 10 seconds to each of the four directions,
accounting for 40 seconds of the total cycle time. This ensures that even lanes with
very few vehicles still get an opportunity to clear.
Once the minimum time is allocated, the remaining green time (i.e., 40 or 80
seconds depending on total cycle time) is distributed based on the remaining PCU.
We subtract 10 PCU per lane (assuming approx. 1 PCU clears per second during
the minimum time) from each lane’s total. Then, the remaining PCUs are used to
calculate the proportional ratio of traffic left to be cleared. This remaining time is
then divided among the lanes based on their respective PCU ratios, ensuring that
lanes with higher vehicle pressure get longer green time.
To make the system adaptable to overall traffic load, we used two fixed cycle time
settings:
80 seconds, when total PCU detected at the intersection is ≤100
120 seconds, when total PCU is >100
This dual-cycle system was implemented to ensure simplicity in design and
analysis. However, the same proportional time allocation logic could easily be
extended to a fully dynamic cycle time model, where the total cycle time changes
continuously based on real-time PCU load. This flexibility makes the system
scalable and suitable for future upgrades.
26
Green
PCU Crossed
Lane Signal
(Available) (PCU)
Time (sec)
A 38 30 30
B 14 30 14
C 12 30 12
D 35 30 28
Green
PCU Crossed
Lane Signal
(Available) (PCU)
Time
A 43 30 28
B 20 30 20
C 23 30 23
D 57 30 29
27
Green
PCU Crossed
Lane Signal
(Available) (PCU)
Time
A 84 30 30
B 35 30 28
C 26 30 26
D 102 30 29
Green
PCU Crossed
Lane Signal
(Available) (PCU)
Time
A 55 30 30
B 23 30 21
C 21 30 21
D 65 30 29
28
3.6.2 Calculation for Green Signal Time
Lane A: 55
Lane B: 23
Lane C: 21
Lane D: 65
Step 1
Total PCU = 55 + 23 + 21 + 65 = 16
Lane A 55 10 45
Lane B 23 10 13
Lane C 21 10 11
Lane D 65 10 55
29
Step 6: Dynamic Green Time Calculation
Green
PCU Crossed
Lane Signal
(Available) (PCU)
Time
A 55 39 39
B 23 18 18
C 21 17 17
D 65 45 45
119
Total 164 (Approx 119
120 sec.)
Table 6. Total no. Of PCU Crossed During Dynamic Green Signal Time
30
3.6.2 PCU-Based Throughput Comparison
31
Execution was performed through a Command Line Interface (CLI), allowing the
user to supply traffic video inputs and view output in real time. The project
utilized Python libraries including PyTorch, OpenCV, NumPy, and Matplotlib for
implementation.
This integrated setup demonstrates that the proposed model can adapt signal
timing based on current traffic demand, showing promise for practical deployment
at urban intersections.
Traffic video data was collected during three distinct time slots to represent
varying traffic conditions:
Sunday, 8:00 AM (Low Traffic)
Monday, 12:00 PM (Moderate Traffic)
Monday, 6:00 PM (Peak Traffic)
Lane-wise vehicle counts were converted to PCU values using the standard PCU
conversion factors defined by the Indian Roads Congress (IRC). This standardized
traffic flow data served as input for both the fixed-time model and the proposed
dynamic model.
32
3.8.3 Results and Observation
33
Chapter - 4
Result and Discussion
4.1. Introduction to Results
This chapter presents the results obtained from the implementation of our project
“Smart Signal Timing for Urban Intersections Using Real-Time Vehicle Detection
and PCU Calculations”, which utilizes real-time video-based vehicle detection,
PCU calculation, and dynamic traffic signal timing logic. The outcomes have been
analyzed using data collected through actual traffic video footage at a four-way
intersection. The primary goal is to evaluate how effectively the proposed model
improves lane-wise traffic flow compared to traditional fixed-time signal systems.
The results focus on two core metrics: first the total PCU throughput during a
standard 120-second signal cycle, and second the efficiency of green signal time
distribution among lanes based on traffic density. These parameters are crucial in
understanding the real-world performance of the model, especially under varying
traffic volumes recorded on different days and time slots (Sunday morning,
Monday afternoon, and Monday evening).
By comparing the number of vehicles (in terms of PCU) passing through each
lane under fixed versus dynamic signal allocation, this chapter provides clear, data-
driven evidence of the improvements achieved. Additionally, the analysis includes
how the dynamic model responded to real-time traffic variations and how it
allocated green time proportionally, ensuring fairness and increased throughput.
Overall, the findings in this chapter confirm that the PCU-based dynamic timing
strategy designed in this project leads to more efficient and responsive intersection
management, validating its potential for real-world application.
34
This increase in PCU throughput demonstrates the efficiency of allocating green
time based on actual traffic volume rather than assigning equal or arbitrary
durations. By identifying which lanes have higher traffic loads and adjusting signal
durations accordingly, the model effectively reduces idle time at low-traffic lanes
and prioritizes high-demand lanes, resulting in a smoother and more responsive
traffic flow.
Such results validate the core logic of the project and indicate that the proposed
system can significantly enhance the performance of urban intersections,
especially during peak and variable traffic conditions.
The efficiency of green signal time allocation plays a critical role in managing
urban traffic intersections. In conventional traffic systems, green time is either
distributed equally among all directions or assigned using fixed durations without
considering the actual traffic volume at each lane. This often leads to inefficient
signal usage—vehicles in less congested lanes wait unnecessarily, while high-
density lanes remain congested due to insufficient green time.
In the developed PCU-based model, green time is dynamically allocated based on
the real-time traffic load captured through vehicle detection and converted into
PCU values. A base green time is assigned to all lanes to ensure minimum passage,
and the remaining time from the 120-second cycle is proportionally distributed
among the lanes according to their PCU share. This results in a more logical and
need-based allocation of green durations.
For instance, during the analysis, it was observed that a lane with a significantly
higher PCU count received more green time compared to others, enabling it to
clear more vehicles without causing prolonged queues. On the other hand, lanes
with lower PCU values were given just enough green time to manage their flow
efficiently, thus preventing unnecessary wastage of signal duration.
This intelligent allocation ensures that every second of green time is utilized
effectively, maximizing throughput and minimizing delays. The green time is no
longer a fixed input but a calculated output driven by real-time traffic demands,
making the system more adaptable and fair compared to traditional method
To validate the real-world applicability of the proposed model, traffic surveys were
conducted at a four-way intersection using actual video recordings. The aim was to
analyze how the dynamic signal system responds to varying traffic patterns across
different days and time slots. For this purpose, data was collected during three
distinct periods: Sunday morning (low traffic), Monday noon (moderate traffic),
and Monday evening (peak traffic).
35
Each vehicle recorded in the videos was classified using the trained detection
model and converted to its equivalent PCU value. This data was then used to
simulate green time allocation using the dynamic model. By comparing the green
time assigned under dynamic conditions to the actual PCU distribution across
lanes, the adaptability of the system became evident.
During low-traffic hours on Sunday morning, the model provided a more balanced
green time across lanes since PCU values were nearly equal. However, in the
Monday evening slot, where traffic volume was heavily skewed toward one or two
lanes, the model successfully reallocated green time in favor of those lanes without
any manual intervention. This behavior showcases the system's strength in
adapting to real-time conditions instead of relying on static timing plans.
These survey-based validations clearly demonstrate that the system dynamically
reacts to changing traffic patterns throughout the day. Rather than treating all
lanes equally, it adjusts in response to the current demand, thereby improving
fairness, throughput, and responsiveness. The same intersection, with different
traffic conditions, resulted in different signal behavior—all automatically handled
by the model without pre-programmed schedules.
This flexibility and real-time adaptability form the core strength of the proposed
system and make it a viable solution for smart urban traffic control.
A key feature of the proposed traffic signal model is its ability to respond to live
traffic conditions in near real-time. Unlike conventional systems that rely on pre-
set schedules or manual adjustments, the developed system processes live video
input to detect and classify vehicles, convert them into PCU values, and calculate
optimal green signal durations accordingly—all in a short, efficient cycle.
In the current offline implementation phase, videos from actual traffic
intersections were used as input. The system, powered by YOLOv5 for detection
and SORT for tracking, was able to detect multiple vehicle classes per lane and
generate PCU counts within seconds. Once the lane-wise PCU data was available,
the algorithm computed the base green time and distributed the remaining cycle
time based on the PCU ratio of each lane.
In a test run using pre-recorded traffic footage, the entire process from video input
to signal time calculation was completed within 10–12 seconds. This indicates that,
when integrated with real-time traffic camera feeds and automated signal
controllers, the system has the potential to function in a live environment with
minimal delay.
36
This responsiveness ensures that the system reacts promptly to dynamic traffic
scenarios—such as sudden vehicle surges in one direction or a drop in volume in
another. Instead of waiting for the next scheduled update, the system recalculates
and redistributes green time based on current demand, helping prevent congestion
and idle green signals.
Although full real-time deployment (with continuous live feed and automated
signal switching) is yet to be implemented, the current setup confirms that the
system is technically capable of achieving real-time responsiveness once integrated
with the required infrastructure.
4.6. Limitations
While the proposed model has demonstrated significant improvements in signal
timing efficiency and throughput, several limitations must be acknowledged to
provide a balanced perspective and guide future enhancements.
1. Lighting and Weather Sensitivity:
The accuracy of vehicle detection using computer vision is highly dependent on
lighting conditions. Poor visibility during nighttime or extreme weather conditions
(like fog or heavy rain) may reduce detection accuracy, leading to incorrect PCU
calculations and suboptimal signal time distribution.
2. False Positives and Missed Detections:
Although YOLOv5 is a robust detection model, occasional false positives (e.g.,
mistaking shadows or parked objects for vehicles) and missed detections
(especially for small or partially occluded vehicles) can affect the reliability of PCU
estimates, and consequently, the fairness of green time allocation.
3. Limited Vehicle Class Categorization:
The system currently categorizes a limited number of vehicle types (e.g., cars,
bikes, buses, trucks, autos). More complex traffic environments with non-standard
vehicles (e.g., handcarts, cycle rickshaws) may not be adequately represented in the
PCU calculations, slightly reducing accuracy in such regions.
4. Offline Processing Only:
As of now, the entire analysis is performed using recorded video data processed
offline. Real-time implementation—where live camera feeds continuously update
signal timings—is not yet deployed due to hardware and integration constraints.
5. Intersection-Specific Calibration:
The model’s green time logic (base time, PCU thresholds, etc.) was tuned for a
specific intersection. To scale the system city-wide, individual calibration may be
necessary for different intersection geometries, vehicle flow patterns, and traffic
rules.
Despite these limitations, the project successfully demonstrates the core feasibility
and effectiveness of using real-time PCU data for dynamic signal control. With
further development—such as real-time integration, broader vehicle classification,
and lighting compensation—these limitations can be addressed for more robust
deployment.
37
4.7. Discussion Summary
The results and observations from the implementation and testing of this project
—Smart Signal Timing for Urban Intersections Using Real-Time Vehicle Detection
and PCU Calculations—highlight its potential to significantly enhance traffic
signal efficiency in urban environments.
Through direct comparison, the dynamic PCU-based model outperformed the
conventional fixed-time method, achieving a 17.82% increase in vehicle
throughput during a standard 120-second signal cycle. This improvement was
made possible by intelligently allocating green signal time based on real-time
traffic demand rather than relying on rigid, pre-assigned durations.
The model proved capable of adapting to different traffic conditions across
multiple time slots and days, as validated by actual survey data. It responded
effectively to variations in lane-wise vehicle density, distributing green time fairly
and efficiently in accordance with the PCU load. Even in its offline phase, the
system demonstrated near real-time responsiveness—completing detection,
classification, PCU calculation, and green time distribution within seconds.
At the same time, limitations such as offline processing, lighting sensitivity, and
restricted vehicle classification were identified. These areas provide a clear
direction for future enhancement and integration with live traffic systems.
In summary, this project achieved its primary goals of improving green time
utilization, enhancing intersection throughput, and ensuring fairness through
PCU-based logic. The findings indicate strong potential for real-world application,
especially if supported by appropriate infrastructure like live traffic feeds, smart
cameras, and automated signal controllers.
38
Chapter - 5
CONCLUSION
Urban traffic management has long been a challenge, with conventional fixed-time
signal systems often leading to inefficiencies, especially during periods of
fluctuating traffic flow. This project aimed to address these inefficiencies by
developing a smart traffic signal control system that dynamically allocates green
time based on real-time vehicle detection and PCU (Passenger Car Unit)
calculations. The system utilizes advanced computer vision techniques, such as
YOLOv5 for vehicle detection and SORT for tracking, alongside an innovative
green time allocation algorithm based on real-time traffic data.
The results of the project demonstrate significant improvements in traffic signal
efficiency. The dynamic model, which adapts to actual traffic conditions, achieved
a 17.82% improvement in vehicle throughput compared to conventional fixed-time
control methods. This improvement was achieved by allocating green time based
on the real-time density of vehicles, ensuring that high-traffic lanes received more
green time, thereby reducing delays and increasing overall intersection throughput.
One of the key strengths of this system is its adaptability to varying traffic
patterns. Validation through real-world traffic survey data confirmed that the
system efficiently adjusts its green time allocation across different time slots, from
low-demand periods to peak traffic hours. This adaptability ensures that the
system can handle a wide range of traffic conditions, making it a versatile solution
for urban intersections.
While the current implementation was tested offline, the model demonstrated
strong real-time responsiveness, processing vehicle detection, tracking, and green
time calculation within a short time frame. This indicates that the system is well-
suited for live deployment with minimal delay, provided it is integrated with
appropriate hardware and live video feeds.
Despite the promising results, the project also highlighted several limitations that
need to be addressed in future work. These include challenges such as lighting
conditions that may affect vehicle detection accuracy, occasional false positives or
missed detections, and limited vehicle class coverage. Additionally, the system’s
offline processing capability should be transitioned to a live setup, and further
enhancements, such as emergency vehicle prioritization, could be incorporated to
make the system more robust.
In conclusion, this project presents a novel and effective approach to improving
urban traffic management through intelligent, data-driven signal control. The
dynamic allocation of green time based on real-time vehicle detection and PCU
calculations not only enhances signal efficiency but also promises to contribute to
smoother traffic flow and reduced congestion in urban intersections. With the
potential for further refinement and integration into smart city infrastructure, this
system offers a significant step forward in the evolution of intelligent traffic signal
systems.
39
Chapter - 6
REFERENCES
Goenawan, C. R. (2024). ASTM :Autonomous Smart Traffic Management System
Using Artificial Intelligence CNN and LSTM. http://arxiv.org/abs/2410.10929
Sangeetha, R. G., Hemanth, C., Dipesh, R., Samriddhi, K., Venetha, S., Abbas
Alif, M., Arjun, S., & S, V. K. (2024). Density Based Real-time Smart Traffic
Management System along with Emergency Vehicle Detection for Smart Cities.
International Journal of Intelligent Transportation Systems Research, 22(2), 328–
338. https://doi.org/10.1007/s13177-024-00400-9
Sakhare, N., Hedau, M., Malpure, O., Shah, T., & Ingle, A. (n.d.). International
Journal of INTELLIGENT SYSTEMS AND APPLICATIONS IN
ENGINEERING Smart Traffic: Integrating Machine Learning, and YOLO for
Adaptive Traffic Management System. In Original Research Paper International
Journal of Intelligent Systems and Applications in Engineering IJISAE (Vol. 2024,
Issue 12s). www.ijisae.org
T, B. S., Kumar, R., & Rao, S. G. (2022). Smart Traffic Management System: A
Literature Review. International Journal of Innovative Research in Electrical,
Electronics, Instrumentation and Control Engineering Impact, 2.
https://doi.org/10.17148/IJIREEICE.2022.10201
Mishra, R., Kumar, P., Arkatkar, S. S., Sarkar, A. K., & Joshi, G. J. (2017). Novel
area occupancy–based method for passenger car unit estimation on multilane
urban roads under heterogeneous traffic scenario. Transportation Research
Record, 2615(1), 82–94. https://doi.org/10.3141/2615-10
40