Traffic lights don’t think for themselves. Engineers program each intersection with timing rules, and a controller box beside the road carries them out. What changes from one light to the next is how much the program listens to traffic: some follow a fixed clock, many react to sensors in the road, and some are linked to city computers that rewrite the timing as cars arrive. The self-learning AI often promised for traffic lights is still mostly tested in computer simulations rather than on real streets.
Fixed Timers and Time of Day Plans
A pre-timed light runs green, yellow and red intervals of fixed length, so the order and the length of the whole sequence never change.1Traffic Signal Timing Manual. Traffic Signal Timing Manual Chapter 5 Basic Signal Timing Procedure and Controller Parameters The full trip through every direction’s turn is called the cycle length, and it is the same every time. Each direction gets a set share of each cycle as green. This approach works best where intersections sit close together and traffic is about the same from day to day, such as a downtown grid.1Traffic Signal Timing Manual. Traffic Signal Timing Manual Chapter 5 Basic Signal Timing Procedure and Controller Parameters
At a real intersection, a timer means you sometimes wait at red while the cross street sits empty, because the clock can’t tell that the cross street is empty. A light that holds you at red with no cross traffic is not necessarily broken. Downtown that is a fair price, since a predictable light helps neighboring lights line up.
Fixed-time systems usually hold several preset plans, each used for a set period such as the morning peak or off-peak hours.2Traffic Industry Products. Optimize Signal Timing to Reduce Traffic Congestion – Traffic Industry Products Engineers choose where one plan ends and the next begins by grouping traffic counts into similar periods, sometimes with computer clustering.3Proceedings. 2005 IEEE Intelligent Transportation Systems, 2005.. Using K-means clustering to identify time-of-day break points for traffic signal timing plans
All of this lives in the gray metal box at the corner. It holds the controller that stores the timing plans, and technicians can program it on site or remotely from a traffic center. The same box can run timer, sensor or coordinated modes depending on its settings.
Pedestrians usually get their crossing time every cycle, with no button needed, because the program assumes someone may be there. Modern controllers are built to respond to sensors, so a pure timer is created by forcing every green to run its maximum length.1Traffic Signal Timing Manual. Traffic Signal Timing Manual Chapter 5 Basic Signal Timing Procedure and Controller Parameters
How Lights Sense Waiting Cars
The most common sensor is the inductive loop: coils of wire buried in the pavement that carry a steady electromagnetic field.4Mid-Atlantic Entry Systems Virginia. How Vehicle Detection Loops Work and Why They Fail A vehicle passing or stopped over the loop changes the wire’s electrical behavior.5Federal Highway Administration. Traffic Detector Handbook: Third Edition—Volume I The detector reads that change as a vehicle and sends a signal to the controller.5Federal Highway Administration. Traffic Detector Handbook: Third Edition—Volume I The controller can then extend a green while cars keep coming, or skip a turn arrow nobody is waiting for.
You can often spot loops yourself. Rectangular or round saw-cut lines in the asphalt near the stop line, often filled with dark sealant, usually mark them. Small boxes mounted on the signal arm or a pole and aimed at the approach lanes are usually video or radar detectors. Cameras used only to detect waiting vehicles are generally separate from enforcement cameras, which are typically labeled or announced, though policies vary by city.
Where you stop matters with a loop, because it senses the metal above it. Stop well short of the loop and it may not register you, so the light may skip your turn. Stopping far past it can have the same effect, because no metal is left over the wire. Motorcycles, scooters and bicycles contain little metal and can fail to trigger a loop, especially if they sit off to one side of it.
Cameras and radar each have blind spots. Radar works in any weather but has trouble seeing stopped vehicles and telling what kind of object it sees.6Journal of Advanced Transportation. Traffic Incident Detection Based on mmWave Radar and Improvement Using Fusion with Camera Cameras see detail and direction well but judge distance and speed poorly and lose accuracy in bad weather.6Journal of Advanced Transportation. Traffic Incident Detection Based on mmWave Radar and Improvement Using Fusion with Camera So roadside systems increasingly combine radar and camera, each covering the other’s weakness.7PubMed Central. Robust Target Detection and Tracking Algorithm Based on Roadside Radar and Camera
How Green and Yellow Times Are Calculated
Engineers traditionally pick cycle length with Webster’s formula, which aims to keep total waiting as low as possible.8Transportation Research Interdisciplinary Perspectives. Computing optimum traffic signal cycle length considering vehicle delay and fuel consumption9Alexandria Engineering Journal. Estimating the minimum delay optimal cycle length based on a time-dependent delay formula Green time is then split so every direction is roughly equally close to its capacity.8Transportation Research Interdisciplinary Perspectives. Computing optimum traffic signal cycle length considering vehicle delay and fuel consumption The formula has a weakness: it tends to suggest cycles that are too long once traffic fills more than about half the road’s capacity.8Transportation Research Interdisciplinary Perspectives. Computing optimum traffic signal cycle length considering vehicle delay and fuel consumption
Each change of direction wastes a little time on the yellow and all-red moments, so a longer cycle wastes less of it and more cars can pass per hour. The cost is that every direction waits through a longer red. When roads are near capacity, a longer cycle is often chosen.
Yellow and the brief all-red that follows are set with an equation based on approach speed and how fast drivers can brake.10Transportation Research Record: Journal of the Transportation Research Board. Guidelines for Timing Yellow and Red Intervals at Signalized Intersections The goal is to avoid leaving a driver at a point where they can neither stop comfortably nor clear the intersection.11Virginia Tech Works. Development of a Framework for Evaluating Yellow Timing at Signalized Intersections Faster roads generally get longer yellows.
During the all-red, every direction shows red for usually a second or two, so a vehicle that entered late can finish clearing the intersection. That buffer is not permission to enter just after the light turns red.
Green Waves Along Busy Roads
A green wave tunes four settings across a string of intersections: cycle, order of phases, green shares and offset.12Journal of Highway and Transportation Research and Development (English Edition). Green Wave Coordinate Control Method for Arterial Traffic Based on Traffic Wave Theory The offset is the head start each light’s green gets over the previous one, matched to the driving time between them. Offsets are chosen to keep queues from forming at the next intersection downstream.12Journal of Highway and Transportation Research and Development (English Edition). Green Wave Coordinate Control Method for Arterial Traffic Based on Traffic Wave Theory Newer methods also reserve enough green for side streets and pedestrian crossing time.13Journal of Management Science and Engineering. An integrated arterial coordinated control model considering green wave on branch roads and pedestrian crossing time at intersections
To ride a wave, drive near the posted speed, since the offsets were calculated from the travel time at roughly that speed. Speed up and you typically reach the next light before its green begins, so you end up stopped anyway and gain little. Waves are usually tuned for the main direction of traffic, often the commuter direction at peak hours, which is why side streets often wait longer to protect the main road’s flow.
Waves also break down. Heavy traffic builds queues the timing didn’t expect, and a turning car or a stopping bus can push a group of cars off schedule. On two-way roads, a perfect wave in both directions isn’t always possible.
Computers That Adjust Timing in Real Time
Adaptive signal control continuously reviews cycle, green shares and offsets, changing them in small steps almost every cycle to match traffic measured by sensors.14Wikipedia. Sydney Coordinated Adaptive Traffic System The SCOOT system decides for each phase whether to change a few seconds earlier, later or on schedule.15Federal Highway Administration. Balancing Safety and Capacity in an Adaptive Signal Control System — Phase 1 SCATS, developed in Sydney, uses a regional computer to set targets for groups of intersections.14Wikipedia. Sydney Coordinated Adaptive Traffic System
This differs from a simple sensor-triggered light, which reacts only at its own corner, extending or skipping a phase based on the loops there. An adaptive system uses measurements from many intersections and a central or regional computer to change shared timing across a corridor. Each change is only a few seconds per cycle, so drivers seldom notice anything unusual while delay gradually falls.
The payoff can be large. Across China’s 100 most congested cities, big-data adaptive signals were estimated to cut peak trip times by 11% and off-peak by 8%.16PubMed Central. Big-data empowered traffic signal control could reduce urban carbon emission That was estimated to avoid about 31.7 million tonnes of CO2 a year.16PubMed Central. Big-data empowered traffic signal control could reduce urban carbon emission But adaptive systems cost much more than basic signals, and maintenance, software and data costs can equal the purchase price over time.17GSC Advanced Research and Reviews. Assessment of the effectiveness of adaptive traffic signal control systems in reducing pedestrian-vehicle conflicts at high-risk crossings
That is a big reason your town may not have one. The benefits are largest on busy corridors where traffic is unpredictable. A quiet road with steady traffic gains little over well-tuned sensor timing, so the extra expense is hard to justify there.
Where AI Fits In
In reinforcement learning, a program observes traffic, picks a signal action, and gets a reward score, learning over time what reduces delay.18Knowledge-Based Systems. Deep reinforcement learning for traffic signal control with consistent state and reward design approach19Neurocomputing. A distributed deep reinforcement learning method for traffic light control Results depend heavily on how designers define what the program sees and is rewarded for.18Knowledge-Based Systems. Deep reinforcement learning for traffic signal control with consistent state and reward design approach And when each intersection has its own learning agent, their changing behavior can destabilize neighboring lights.20Information Sciences. Multiple intersections traffic signal control based on cooperative multi-agent reinforcement learning So researchers add cooperation, such as shared knowledge or a regional “manager” agent giving goals to each light.21Transportation Research Part C: Emerging Technologies. Network-wide Traffic Signal Control Optimization Using a Multi-agent Deep Reinforcement Learning22Applied Sciences. Extensible Hierarchical Multi-Agent Reinforcement-Learning Algorithm in Traffic Signal Control
The difference from today’s adaptive systems is where the rules come from. Adaptive systems adjust timing within rules that engineers wrote ahead of time. A learning controller builds its own rules from experience, which is why designers must choose its rewards so carefully.
It hasn’t reached your street because agencies need proof that it is safe and reliable. A trial-and-error learner can’t safely experiment on live traffic, and results from simulation may not match messy real roads.
Bikes, Pedestrians and Emergency Vehicles
Bikes can be detected with loops, video, radar or push buttons.23ITE. Signal Detection for Bicycles A bike signal that isn’t on a fixed timer needs a detector, or waiting riders may never get a green.23ITE. Signal Detection for Bicycles Coordinated timing plans can also reserve minimum crossing time for pedestrians.13Journal of Management Science and Engineering. An integrated arterial coordinated control model considering green wave on branch roads and pedestrian crossing time at intersections
If you ride, place your wheels over the cut lines where the loop is. Many cities paint a bike symbol on the pavement to mark the best spot, so look for it before stopping. If a push button is provided for bikes, use it, since some signals will not respond otherwise. A light that never seems to detect bikes can be reported to the city’s traffic department so it can be adjusted.
For emergency vehicles, an approaching ambulance or fire truck sends a request, and the system interrupts normal timing to give it green.24Transportation Research Part C: Emerging Technologies. Control strategies of traffic signal timing transition for emergency vehicle preemption After it passes, the light returns to its regular program.24Transportation Research Part C: Emerging Technologies. Control strategies of traffic signal timing transition for emergency vehicle preemption Some systems plan the route ahead and clear each intersection before the vehicle arrives.25Arabian Journal for Science and Engineering. A Strategy for Emergency Vehicle Preemption and Route Selection
As a driver, you may see your green end early with no cars in sight. A white or blue light on the signal arm sometimes confirms that an emergency vehicle has taken over the signal. Pull over and let the vehicle pass, and normal timing resumes.
Safety Backstops and Hacking Risks
Each cabinet contains a separate monitoring unit that watches for conflicting signals.26Google Patents. Traffic control malfunction management unit with flashing don’t walk monitoring27Econolite. MMU 16E If it sees conflicting greens, it overrides the controller and switches the signals to flashing.26Google Patents. Traffic control malfunction management unit with flashing don’t walk monitoring
A flashing red is treated like a stop sign: stop, then go when it is safe and it is your turn. A flashing yellow means proceed with caution, not that you have the right of way over everything. A dark signal is treated as an all-way stop in most places, so each driver should stop and take turns. Malfunctioning signals should be reported to local police or the traffic department so crews can fix them.
Security is the other concern. Controllers, sensors, central software and network devices can be vulnerable through misconfiguration or missing security features.28Transportation Research Part A: Policy and Practice. Implications of traffic signal cybersecurity on potential deliberate traffic disruptions Security researchers have shown traffic lights can be compromised to disrupt traffic.29IET Cyber-Physical Systems: Theory & Applications. Assessing and mitigating cybersecurity risks of traffic light systems in smart cities Fake data from hacked sensors or connected-car units can also mislead sensor-driven and adaptive systems.30Transportation Research Board. Vulnerability of Traffic Control System under Cyber-Attacks Using Falsified Data
Some lights now broadcast their timing to equipped vehicles, which can then suggest a speed to arrive on green. Those same links are a reason security matters more.

