Research project · Purdue University · 2025 – present

Work Zone Risk Prediction

A roadside system that watches traffic approaching a highway lane closure and predicts, a few seconds ahead, which vehicles are about to cut into the work zone — in real time, on an edge computer next to the road.

Roadside radar Trajectory prediction Edge computing Field tests

My role: I designed and built the two-stage risk-prediction system and its real-time runtime. Lane estimation and camera–radar fusion come from teammates.

24 s of real radar tracks from an Indiana work zone, replayed in real time at true scale. Cars in the closing lane are outlined in cyan with their 4-second reach drawn ahead of them; when the reach crosses the closure front, the car turns red and is handed to Stage 2. Track fragments of the same vehicle are joined and lateral radar jitter is smoothed; the drum layout is reconstructed from where traffic actually drove.
6field datasets from work zones in Indiana and Texas
≈ 11 msper prediction, Stage 1 + Stage 2, on a GPU
≤ 0.3%of passing cars rated high risk by Stage 2 in field tests
4 stime-to-collision gate, grounded in stopping distance
The problem

Late mergers are the danger at a lane closure

A highway work zone closes one or more lanes and puts crews on foot a few feet from live traffic. Most drivers merge out of the closed lane early. The ones who don't — who stay in the closing lane at speed, or swerve back into it — are the ones who end up inside the closure.

Roadside sensors can see those vehicles coming. The hard part is deciding, a few seconds ahead and at highway speed, which of thousands of passing vehicles is actually a threat, without raising so many alarms that drivers and workers stop listening.

How it works

Sense, screen, predict

ON THE ROADSIDE EDGE COMPUTER Roadside sensingradar at ~10 Hz+ camera Fusion & lanestracks, vehicle type,lane of each vehicle Stage 1 · screentime to the closure≤ 4 s ? Stage 2 · predict2 s history → 4 s path;crosses the closure? Risk levelLow · Medium · High,with predicted path Digital twinof the work zone,every vehicle's risk

From the digital twin, warnings travel to drivers over C-V2X — that part is its own project: Connected Vehicles →

Stage 1 · physics

A cheap, explainable screen

Every tracked vehicle in the closing lane gets a time-to-collision with the closure front, from its distance, speed and acceleration. Only vehicles under the threshold go on to Stage 2, so the expensive model runs on a small fraction of traffic.

Trucks that weave across lanes near the closure (two or more lane changes) are escalated directly.

Stage 2 · learning

Where will it be in four seconds?

A spatio-temporal attention LSTM reads the last 2 s (20 radar frames) of a vehicle's track and predicts the next 4 s (40 steps). If the predicted path crosses the closure front inside the closed lane, the vehicle is flagged high risk; otherwise medium.

A Monte Carlo variant samples many futures and warns when more than half of them end in the work zone.

A vehicle's history and predicted trajectory crossing into the shaded work-zone area; label COLLISION @ 2.8s
Stage 2 in action: the predicted trajectory of one vehicle reaches the shaded work-zone area 2.8 s ahead.
How it got here

From a statistical screen to a physical one

The first Stage 1 (autumn 2025) was statistical: a Gaussian copula over each vehicle's distance, speed and acceleration, flagging the tail of the joint distribution, with conjugate-prior (Normal–Inverse-Gamma) updates so a model built in Indianapolis could adapt to a new site — it converged on Dallas data within fewer than 50 samples. It worked, but a percentile is hard to explain to a traffic engineer. In June 2026 I replaced it with the time-to-collision gate: the same job, in seconds anyone can check.

Choosing the threshold

Why four seconds

A driver needs about 1.5 s to react (AASHTO designs for 2.5 s) and brakes comfortably at roughly 0.35 g. With 4 s left, only a driver going about 38 mph or slower can still stop comfortably; at 65 mph it takes 6–7 s. So the gate flags exactly the vehicles that are running out of room. Calibrating a threshold per site gave values between 0.5 s and 2.6 s across six sites — all below 4 s — so one fixed threshold works everywhere.

Congestion takes care of itself: in slower traffic fewer vehicles cross the gate, so the system does not need a separate congestion mode.

Time needed to stop comfortably versus speed, with lines at TTC 4, 6 and 6.8 seconds
Time needed to stop comfortably vs. speed; the 4 s line crosses at 38 mph.
Per-site calibrated TTC thresholds between 0.52 and 2.60 seconds, all below the recommended fixed 4 seconds
Per-site calibrated thresholds would all be shorter than a human reaction; the fixed 4 s gate sits above all six.
Field results

Three field tests, spring 2026

The system was trained and evaluated on radar data recorded at live Indiana work zones. Prediction error is in feet over the 40-step horizon; trigger rates count cars on the work-zone lane and trucks on all lanes.

Trajectory prediction error

Field testADE (ft)FDE (ft)
Kokomo, Apr 2211.9823.94
Indianapolis, Apr 296.8812.61
Indianapolis, May 86.0410.93

ADE: average displacement error; FDE: error at the 40th predicted frame. Kokomo's radar reports frames less often, so its 40 steps cover a longer time (≈ 5.6 s vs 4.3 s).

Share of vehicles flagged

KokomoIndy 4/29Indy 5/8
Stage 1, cars2.49%1.08%1.36%
Stage 1, trucks4.06%1.13%0.96%
Stage 2, cars0.27%0%0.12%
Stage 2, trucks4.06%1.13%0.96%

Trucks that pass Stage 1 go straight to high risk, so their two rows match.

Engineering

Built to run unattended on the roadside

Runtime

Real time at the edge

Reads live radar and camera–radar fusion streams over UDP and runs on an on-site computer with a handful of dependencies; every vehicle is re-evaluated about once a second.

Reliability

Fails safe

A state machine (boot → calibration → operation → failsafe) and a watchdog that notices when sensor data stops arriving.

Portability

A new site is a config file

Lane layout, closure position and sensor placement live in one YAML file per site; six closure layouts (flush, setback, taper, left or right) are supported.

Traceability

Black-box logging

Raw packets, features and decisions are logged at three levels, so any warning can be replayed and explained after the fact.

Speed

Fast offline replay

Recorded field days replay through the full pipeline at about a million radar frames in 10–25 s, which makes threshold studies cheap.

Operations

An engineer's dashboard

A React dashboard on a FastAPI and WebSocket backend for monitoring sessions, alerts and individual vehicles.

Timeline

One year, step by step

Sep 2025
Two-stage warning design. Statistical Stage 1 on Indianapolis radar data; kinematic collision check.
Oct 2025
Adapting to a new site. Conjugate-prior updates move the Indianapolis model to Dallas data.
Nov 2025
Learned Stage 2. Attention-LSTM trajectory predictor: a few seconds of history in, 4 s of trajectory out.
Dec 2025
Uncertainty and interfaces. Monte Carlo rollouts; outputs (risk level, probability, predicted path) defined for the digital twin.
Jan 2026
A real-time system. Four modules with control modes and a watchdog; live radar data received end to end.
Apr – May 2026
Field tests. Kokomo and two Indianapolis work zones; models retrained on field data; latency measured.
Jun 2026
A physical Stage 1. The statistical screen replaced by the 4 s time-to-collision gate.
Aug – Sep 2026
Second Kokomo site and a threshold study. One fixed 4 s gate validated across six sites: no per-site calibration, no congestion mode.
Context

Part of a larger smart-work-zone effort

This work is part of the Integrated Smart Work Zone project with INDOT at Purdue University, which brings together roadside sensing, a work-zone digital twin, worker alerts and connected vehicles. I work on it in Prof. Yiheng Feng's CART Lab.