Apps

Phantom traffic jams

Why traffic stops when there is nothing in the way

Average speed0 km/h Cars stopped0% Flow0 Time0:00
Car colour = speed
stopped40 km/h
Red glow at the back: braking
Tip: click any car to make it brake for 2 seconds
position round road →
earliertime → now

About the model

This app began on London's M25 orbital motorway ("the road to hell"), after many hours of wondering why traffic suddenly stops with no accident in sight.

Jams without a cause

In 2008, Sugiyama and colleagues asked 22 drivers to drive steadily around a 230 m circular track in Japan. There were no junctions, lane changes or bottlenecks. Within minutes, a stop-and-go wave formed and travelled backwards round the track. The jam came from the drivers themselves: each one reacts a little late and brakes a little harder than the driver in front, so a small slowdown grows as it passes back along the line. Traffic scientists call this string instability. On real motorways these waves travel backwards at roughly 15 to 20 km/h.

The ring experiment mode recreates that set-up. The motorway mode is a 600 m, three-lane ring with lane changes, a mix of cars and lorries, and drivers whose preferred speeds vary by ±10%.

How each driver behaves

Every vehicle is an agent that follows the Intelligent Driver Model (IDM), a standard car-following model from traffic research. A driver accelerates towards their desired speed but brakes as they close on the vehicle in front, aiming to keep a safe distance that grows with speed. The model is written so that, with instant reactions, cars never collide.

Show the maths
dv/dt = a [ 1 − (v/v₀)⁴ − (s*/s)² ] s* = s₀ + max(0, v·T + v·Δv / (2√(ab)) )

v is the speed, s is the bumper-to-bumper gap to the vehicle in front, and Δv is the closing speed. v₀ is the desired speed, T is the preferred time gap, s₀ = 2 m is the minimum gap when stopped, a is the maximum acceleration (2 m/s² for cars, 1 m/s² for lorries) and b = 1.5 m/s² is the comfortable braking. Cars are 4.5 m long and lorries 12 m. The model steps forward 0.1 s at a time.

Reaction time: human drivers use the gap and speeds as they were one reaction time ago. Wobble: a slowly varying random acceleration (an Ornstein–Uhlenbeck process with a 2 s memory, size 0.5 × wobble m/s²). Emergency braking: if a driver is about to hit the vehicle in front using what is happening now, they brake as hard as needed, up to 9 m/s². Without this, long reaction times would cause crashes. All drivers decide from the same snapshot, then all move together. Braking a car (click it, or press Brake one car) forces that driver to brake at 4 m/s² for 2 s; after that it follows the normal rules again and is only highlighted so you can follow it.

Lane changes (motorway) follow the MOBIL rule. A driver changes lane if their own gain in acceleration, plus politeness × the change in acceleration of the drivers behind them in both lanes, is more than 0.2 m/s². They never change lane if it would force the new follower to brake harder than 4 m/s². Each driver considers changing lanes about twice a second, then waits at least 4 s before changing again.

The smooth driver

Stern and colleagues (2018) repeated the ring experiment with about 20 cars, one of which was automated. That car aimed for the average speed of the recent past instead of chasing the car in front. It left a large gap that soaked up the waves, and stop-and-go traffic largely disappeared. Our smooth driver uses a simplified version of that controller.

In our tests on the ring with 22 cars, the smooth driver dissolved an existing jam completely within about three minutes when there was no wobble. With wobble, waves kept re-forming, but the share of cars stopped roughly halved (from about 30% to 15%).

What these numbers mean

Flow is the number of vehicles passing a point per hour, per lane. It equals density × average speed. More cars means higher density, but beyond a critical density the flow falls, because jams waste road space. Measured in this model (10-minute runs, averaged over the final 5 minutes):

Ring, cars121416182226
Flow (veh/h)1,6901,7701,7601,040940620
Stopped0%0%0%22%29%47%

What the model leaves out

References

Rules and parameters

Every vehicle follows the rules below at every 0.1 s time step. Click a control name to jump to its slider. Values marked fixed are built in. Full equations and references are in About the model.

RuleWhat it does, and howControl