Blog Post

Microsoft Foundry Blog
10 MIN READ

Chasing India's Highway Ghost Cars with AI

vrajakishore's avatar
vrajakishore
Icon for Microsoft rankMicrosoft
Dec 02, 2026

Can AI name a vehicle that hides its number plate? A working prototype on simulated toll data

At one toll plaza on India's NH-48, about one vehicle in ten now passes without being identified, The Indian Express reports. The plate is taped over or the FASTag is hidden, and a system built to charge tolls at 100 km/h has nobody to charge.

Watch The Indian Express video report, India's Highway Ghost Cars: How Vehicles Are Evading The New FASTag Toll System: India's Highway Ghost Cars: How Vehicles Are Evading The New FASTag Toll System | Express Special

A fix has been described: match the vehicle's make, model and colour against payments at a nearby boom-barrier plaza. Before building anything, I wanted to know two things. How often would that name the wrong vehicle? And can AI that looks at the camera frames do better?

So I built a small, working prototype and measured it. This post covers how it works, what the AI does, the first numbers and the limits. Everything runs on simulated data: a fictional corridor, fictional registrations and synthetic camera frames drawn by code. The AI parts run on Microsoft Foundry: a vision model that reads the frames and a prompt agent that explains the result.

The problem in four numbers

India's new barrier-less tolling is called multi-lane free flow (MLFF). A gantry reads the FASTag by radio and the number plate by camera. The toll is deducted only when the two match. The Indian Express reports that: 

  • At Shahjahanpur, about 2.6 lakh of 24 lakh crossings since 1 August were "unidentified". (One lakh is 100,000.)
  • At Manoharpura, 99,500 of about 31 lakh crossings between 1 July and 21 October were unidentified.
  • The methods are simple: tape or mud on the plate, a hidden tag, or a fake plate.
  • MLFF runs at seven plazas today and is planned for all four-lane and wider national highways by March 2029.

A vehicle that cannot be identified cannot be sent a notice. For freight, it also drops out of the FASTag trail that supports e-way bill checks.

The proposed method, and the question it leaves open

The report describes a "10-minute window" approach:

  1. The gantry camera still sees the make, model and colour of the ghost vehicle.
  2. Registered vehicles of that description are shortlisted.
  3. The system looks for one of them paying by FASTag at a nearby boom-barrier plaza, inside a time window set by the distance.

The same report raises the obvious question: model and colour are not unique. Two white Hyundai Cretas look the same. What tells them apart is the detail a person would notice: a sticker, a dent, a roof rack, a stripe. That is a vision task, and it is where AI belongs.

What I built

A local prototype packaged as one image and run as two services: a pipeline job and a web app.

PartWhat it does
SimulatorFour days of traffic on a fictional corridor: two boom-barrier plazas, three MLFF gantries, about 27,000 crossings a day at the busiest gantry, 3% ghosts. India-market makes and models, fictional registrations.
Synthetic cameraDraws a rear-view frame for any crossing: body, colour, tail lights, the vehicle's own marks, the plate condition, glare and noise. Small marks are missed in some frames, as a real camera would. No real photos.
Matching engineBuilds the line-up for every ghost: registered vehicles of the same description, seen at a boom-barrier plaza in the right direction and time window. It never sees the true identity.
AI vision matchA Microsoft Foundry vision model reads the ghost frame and every candidate frame. A fixed rule compares what it read and names a vehicle only when one candidate clearly agrees.
AI explanationA Foundry prompt agent explains the result in plain language for the reviewer.
EvaluationThe only part that knows the truth. It scores the engine and the AI against it.
Reviewer screensCase file, frames, AI result, evidence pack, and Confirm / Reject / Need more buttons with an audit log.

How the AI matches a vehicle

Here is one simulated case, step by step. A white Hyundai Verna crossed gantry M1 at 10:32 with a damaged plate. Four white Hyundai Vernas were identified at a boom-barrier plaza within the time window.

Step 1. Rules narrow the search (no AI). The engine keeps only registered vehicles of the same make, model, colour and body, seen in the same direction near the expected time. Here that leaves four. Description and time alone cannot choose between them.

Step 2. AI reads every frame. The app sends the ghost frame and the four candidate frames, each labelled in its corner, to a vision model deployed in Microsoft Foundry (gpt-5.4-mini) in one call. The model returns one fingerprint per frame as JSON: body, colour, plate condition and every visible mark, from a fixed list (sticker with colour and side, dent with side, roof rack, spare wheel, stripe with colour, bumper guard, tow hook). The answer is validated against a JSON schema. If it is malformed, misses a frame or uses penalty language, the app reports "unavailable" and the engine result stands.

Ghost frame (GHOST)Candidate named by the AI (CAND 2)

 

 

Step 3. A fixed rule compares what the AI read. For each candidate:

  • a mark read on both frames is evidence for a match;
  • the same kind of mark with a different colour or side is a conflict (a green stripe is not a yellow stripe);
  • a large feature (stripe, roof rack, spare wheel, bumper guard) on one frame only is a conflict, unless glare covers that part of the ghost frame;
  • a small mark (sticker, dent, tow hook) on one frame only costs a little, because cameras miss small things;
  • a mark read on every frame cannot tell the candidates apart, so it is ignored.

The AI names a vehicle only when one candidate scores at least 0.6 and leads the next by at least 0.25. Otherwise the case goes to a person as "several candidates" or stays unresolved.

In this run the AI read a green stripe and a mark on the left of the ghost. Candidate 2 had both. Candidate 3 had a yellow stripe, candidates 1 and 4 had no stripe. The AI named candidate 2, the same vehicle the engine named, and the simulation's truth confirms it. On a later run of the same case, the AI read the frames less cleanly and sent it to a person as "several candidates" instead.

Step 4. A person decides. The reviewer sees the frames, what the AI read on each one, why each candidate passed or failed, the engine's decision next to the AI's, and an optional plain-language explanation from a Foundry prompt agent. Then they confirm, reject or ask for more evidence. Every decision goes to an audit log.

Why the AI reads and code decides

My first version asked the model to look at all the frames and score every candidate in one judgement. On the first smoke cases it ranked the true vehicle first in only 3 of 6 valid answers, and it named one wrong vehicle.

When I asked the same model only to list the marks on each labelled frame, it read most of them correctly. So I split the job: the AI does perception, a short rule does the comparison. That was more accurate, and it is auditable. A reviewer can see that the AI read "green stripe" on the ghost and "yellow stripe" on candidate 3, and check it with their own eyes.

Three more lessons from building it:

  • The model read red tail lights as red stickers. Telling it what tail lights look like, keeping stickers off red, and ignoring any mark read on every frame fixed that.
  • The same case can give a different answer on a second run, including the case shown above. That is one more reason the AI recommends and a person decides.
  • The evaluation caught a bug in my own code: with more than eight candidates, the line-up was cut alphabetically and could drop the true vehicle. It now keeps the eight closest in time.

What the numbers say

The engine (deterministic rule), tested on 7,039 simulated ghost crossings:

MethodVehicles namedWrongNamed correctlyReachable ghosts resolved
Reported method: 10-minute window, same make, model and colour, nearest boom-barrier plaza2,5691,03459.8%32.0%
Full method: adds an image-similarity check, searches both plazas, 60-minute window4,2923899.11%74.3%
Full method at the pessimistic image-quality assumption4773093.71%7.8%

"Named" means exactly one candidate passed. "Reachable" means the vehicle was later identified at a boom-barrier plaza at all. In this simulation, description and time alone named the wrong vehicle about four times in ten. The engine's image-similarity score is an assumed number, not a measurement.

The AI vision match, on synthetic frames:

I scored the AI path on 30 test ghosts that each had two or more time-feasible look-alikes (one model call per ghost; docs/results/ai-vision-v0.md):

 Named a vehicleNamed correctlySeveral candidatesUnresolved
AI vision match86 of 8184
Engine on the same 30 ghosts1818 of 18111

What these numbers say, and what they do not:

  • The AI was cautious. It sent 18 of 30 ghosts to a person as "several candidates" rather than guess. In this design that is the safe failure.
  • Both wrong names had the same cause. In each, the true vehicle was not in the line-up, and a look-alike carried the same single mark. In one case the ghost had a roof rack and nothing else; another grey Hyundai i20 in the line-up also had only a roof rack. The AI read both frames correctly. The rule had no way to know the right vehicle was missing.
  • It found one the engine missed. In one case the engine stayed unresolved and the AI named the right vehicle.
  • The engine row is not a fair contest. The engine's image-similarity score is an assumed number generated from the simulation's truth. The AI reads pixels. The engine row shows what the method could do if image quality matched the assumption; the AI row is a first real measurement of an AI reading images, on easy synthetic ones.

6 of 8 is far below the 99% line I set for naming a vehicle. On this evidence the AI is a useful second opinion for a reviewer, not something to trust alone.

What I learned

1. The vehicle you are looking for is often not there. Only 35.4% of ghosts had their own vehicle inside the 10-minute window at the nearest boom-barrier plaza. When the right vehicle is absent, a look-alike that happens to be alone in the window gets named. A good matcher must be able to say "none of these".

2. Look-alikes are a vision problem. Every candidate in a line-up already has the same make, model and colour. Only marks tell them apart, so the useful AI is the one that looks at the frames.

3. AI is good at reading; a rule is better at deciding. Splitting perception from comparison made the AI more accurate and every result explainable.

4. A shared mark is weak evidence when the right vehicle may be absent. Both wrong AI names came from a look-alike with the same single mark. Requiring two independent marks, or a second sighting, is the next rule to test, on a fresh sample.

5. Real image quality still decides the result. Synthetic frames are clean compared to a gantry at night in the rain. The next step is to measure real footage, with consent and approvals, not to add features.

A person decides, every time

Neither the engine nor the AI issues a penalty. Each produces one of three outcomes: one named vehicle for review, several plausible vehicles, or unresolved. The AI result is shown next to the engine's decision and never replaces it. The model receives pixels and pipeline data only, never the simulated truth. A reviewer confirms or rejects, and the decision is logged.

The simulator also includes honest read failures, such as glare. The evidence summary says when the right outcome is an ordinary toll notice.

Limits

  1. All traffic, registration records and camera errors are simulated. The corridor is fictional.
  2. The camera frames are simple synthetic renders, not photos. Results on them show that the workflow and the decision rule work. They say nothing about accuracy on real gantry footage.
  3. The AI sample is 30 ghosts, and model answers vary between runs. The decision thresholds were set before the 30-case run and not tuned on it.
  4. Each simulated vehicle makes one trip. Repeat offenders and cloned plates are not modelled yet.
  5. I have no access to government data and I am not describing any deployed system.

Try it, read it, break it

The prototype runs on a laptop. The offline demo needs no cloud account; the AI buttons need a Foundry project and az login (keyless, Microsoft Entra ID).

podman compose up --build      # or: docker compose up --build. Open http://localhost:8080
# AI mode on the host, after az login:
# set MODEL_BASE_URL, MODEL_NAME and FOUNDRY_PROJECT_ENDPOINT, then
python -m services.pipeline && python -m services.api
python -m services.eval.vision_ai --n 30 # score the AI against simulated truth
  • Code: https://github.com/vrajakishore/ghosttrace
  • Read the numbers: the generated reports in docs/results/ list every assumption next to every result.
  • Break it: change config/corridor.json, or make the synthetic camera harder. If you know real values for camera error rates on tolled corridors, I would like to hear which assumption is most wrong.

Source for all real-world figures: The Indian Express, Express Special video "India's Highway Ghost Cars: How Vehicles Are Evading The New FASTag Toll System" (India's Highway Ghost Cars: How Vehicles Are Evading The New FASTag Toll System | Express Special), and reports by Dheeraj Mishra, 10 and 21 November 2026. This is an independent technical exploration on simulated data. It does not represent a Government of India position.

Published Dec 01, 2026
Version 1.0
No CommentsBe the first to comment