AI traffic camera view of a busy mixed-traffic junction with vehicle detection boxes for AI traffic violation detection

Case study · Video analytics and edge AI

AI traffic violation detection for smart cities

An Indian smart-city authority policed traffic violations with manual patrols, and hand-written challans full of errors kept turning into disputes. Brainy Neurals built an AI traffic monitoring system that detects violations at the roadside and reads number plates. Every case carries photo and video evidence and passes human review before a challan goes out.

10,000+Images annotated for training
8Violation types flagged automatically
24/7Counting by type, hour, and junction
Mitesh Patel, Founder & Director of Brainy Neurals

Mitesh Patel

Founder & Director · NVIDIA Certified AI Architect

He led this build end to end, from filming at street level to the first junctions going live under review. He also set the human-review rule that this page keeps returning to, after the first wrong challans.

Tell us what your junctions need to catch Book 30 minutes

Published August 2026 · Last updated August 2026 · 12 min read

Junctions like this one are where the system watches, counts, and flags violations through the day.

At a glance

What problem did this solve?

Manual traffic enforcement in a fast-growing Indian city missed violations and produced wrongly issued paper challans. Planners also had no reliable picture of how traffic actually moved through the city.

What did Brainy Neurals build?

Brainy Neurals built an AI traffic monitoring system for an Indian smart-city authority. Roadside units detect vehicles, flag eight violation types, read number plates, and feed a human review dashboard.

What changed after it went live?

Violations are caught on camera with photo and video evidence, and every challan passes human review. Traffic counts by vehicle type now drive the city’s road and enforcement planning.

Who else could use this?

Roadside AI monitoring fits operators of roads, parking, yards, and large sites. It suits anywhere cameras must catch events the moment they unfold.

IndustryGovernment and smart cities
Sub-verticalUrban traffic management
ClientIndian smart-city authority
EngagementAI traffic monitoring platform
TimelineNot disclosed
CapabilitiesComputer vision, edge AI, ANPR
Delivery modelProject-based delivery

Why did manual enforcement keep failing?

An Indian smart-city authority manages junctions where cars, buses, trucks, auto-rickshaws, and two-wheelers share one stretch of road. Enforcement depended on whichever officer happened to be watching that stretch at that hour. The city had cameras, but no video analytics behind them, so planning ran on complaint letters and occasional counts.

  • An officer could watch one corner of a busy junction, and the violation happened at the other three.
  • Challans were written out by hand, and a misread plate sent the fine to the wrong owner.
  • A dispute came down to word against word, because no evidence existed on either side.
  • Riders without helmets passed through freely whenever the nearest enforcement post happened to stand empty.
  • Planners choosing where a flyover or a one-way corridor should go had opinions, not counts.
Bird’s-eye view of a car double-parked in a live lane blocking traffic, unrecorded before automated enforcement
Before the build, catching a violation meant an officer seeing it, and proving it meant his word.

And none of it was small. Helmets cut a rider’s risk of death by roughly two fifths, so every unwatched junction carried a real cost [1].

What do cities usually try first?

Four routes, all reasonable. Each one stops somewhere specific, and the fourth route is the one we shipped.

RouteWhat it gets rightWhere it stopsWho it still suits
Manual patrolsHuman judgment on the spotOne pair of eyes per postRare, complex situations
Cloud video analyticsAny model size, central updatesBandwidth and latency per junctionA few cameras, strong links
Standalone smart camerasQuick to installFixed functions, closed firmware, siloed dataSingle-purpose pilots
Edge AI units, our routeReal-time detection, one city data poolWeeks of engineering per boardCities running cameras in volume

A 2016 survey of edge computing listed response time and bandwidth cost as reasons to process data at its source [2].

PATROLS CLOUD FEED SMART CAMERA EDGE UNIT COVERAGE BANDWIDTH FIXED RULES REAL TIME
Three common routes each stop at a wall the fourth one does not meet.

Tried one of these and hit the wall? Tell us where it stopped.

Tell us where it stopped

How we designed the monitoring system

Brainy Neurals designed the system as a fleet of roadside units feeding one control room. Each unit runs object detection, multi-object tracking, and number plate reading on every stream it captures. Only events, counts, and the evidence bundles ever travel upstream.

DECISION 01

The first decision was where the intelligence in this system would actually live. Streaming every junction’s video to a data center would cost more in bandwidth than the hardware it replaced. So detection had to run at the roadside, on a low-cost embedded board with an AI accelerator.

DECISION 02

The second decision was who gets to issue a challan. The detector flags a violation and assembles its evidence, and a person approves or rejects the case. A wrong challan costs a city more trust than a missed violation ever will.

A wrong challan costs a city more trust than a missed violation ever will.

Operators shape the system themselves and draw restricted zones straight on each camera’s view. They attach a new stream by pasting its address, and detach one just as fast. When an uplink drops, the unit keeps working and syncs its cases when the network returns.

THE ROADSIDE UNIT CLOUD CONTROL ROOM IP CAMERAS STREAM MANAGER RTSP OR FILE HW DECODE DETECTOR TRACKER VIOLATION RULES PLATE READER ON READ HOTLIST ON VIOLATION EVIDENCE STORE EVENTS + EVIDENCE ALERT OUT CLOUD STORE SYNCED DOWN CASES REVIEW DESK CHALLAN OUT APPROVED ONLY AUTHORIZED QUERIES DATA CHAT
Detection, tracking, and plate reading run at the roadside, and only events, evidence, and alerts leave it.

The technology stack we used

Every layer had to survive a roadside cabinet on a public budget, which is the whole discipline of edge AI. The build ran as a pipeline: collect, annotate, train, validate, optimize, field test, deploy, operate.

1 COLLECT MULTIPLE CITIES 2 ANNOTATE 10,000+ IMAGES 3 TRAIN 4 VALIDATE 5 OPTIMIZE 6 FIELD TEST 7 DEPLOY 8 OPERATE
More than 10,000 annotated images moved through this pipeline before the first junction went live.
LayerWhat we usedWhyWhat we ruled out
The roadside unit
Cameras and streamsIP cameras or recorded videoReuse what junctions already haveProprietary camera lock-in
ComputeA low-cost embedded AI boardAffordable citywideIndustrial PCs
RuntimeThe board’s accelerated video pipelineNo frame copies, hardware decodeGeneric CPU processing
The models
DetectorA single-stage vehicle detectorOne pass per live frameTwo-stage detectors
TrackerA lightweight multi-object trackerOne vehicle stays oneFresh detection every frame
Plate readerANPR tuned on regional platesChallans need a plateCloud OCR services
Control room and cloud
Control room appA native C++ desktop applicationLive walls, playback, plate searchA browser-based video wall
Data storeSealed evidence and audit logsOne citywide, audit-ready pictureData siloed per junction
Data chatA language model over the dataPlain-language questions, authorized accessFixed report menus

How does one violation get caught?

One violation, start to finish. Here is the order the unit sees.

1 FRAME IN 2 DETECT + CLASSIFY 3 TRACK VEHICLE 4 RULE FIRES 5 PLATE + EVIDENCE 6 HUMAN REVIEW APPROVED CHALLAN REJECTED CLOSED
Every flag waits for a human decision, and only an approved case becomes a challan.
  1. A junction camera streams live video to the roadside unit, joining however many streams it already carries.
  2. The detector finds every vehicle in the frame and labels it car, bus, truck, auto-rickshaw, or two-wheeler.
  3. The tracker follows each vehicle across frames, so one vehicle stays one vehicle from its entry to its exit.
  4. A track breaking a drawn rule, a wrong-way run, or a rider without a helmet raises a flag.
  5. The unit reads the number plate, checks it against the watchlist, and saves stills and clip as evidence.
  6. The case then lands in an operator’s review queue, and only an approved case ever becomes a challan.

Six steps. A person holds the last one. A watchlist hit also fires an instant alert, because a stolen vehicle cannot wait for a review queue.

Want this walked through for your junctions? Book 30 minutes with Mitesh Patel.

No pitch. If it is not a fit, you will know in five minutes.

The four problems that nearly stopped us

Four things went wrong, in order.

FAILURE 01

The first detection models simply broke on real Indian junctions. Five vehicle classes at every distance, overlapping and weaving, from angles no public dataset covers.

FAILURE 02

Number plates fought back next. Dirt, bent metal, non-standard fonts, and two-wheeler plates half the size of a car’s.

FAILURE 03

Then the board sank. A single unit had to carry several live streams, and every naive pipeline copied frames until the frame rate died.

FAILURE 04

And the very first automated challans included wrong ones. A wrong challan is worse than a missed violation, because the mistake now has a victim.

At four in the morning, the test junction belonged to street dogs and newspaper vans.

Dense peak-hour traffic in an AI detection view with overlapping vehicle boxes and a no-helmet flag
Five vehicle classes in one packed frame, which is exactly the condition the detector was trained for.

An embedded benchmark measured co-processor detection running roughly ten times faster than the same CPU models [3]. These are the weeks when a city’s integrator brings in specialist engineers.

How we fixed each of them

01FIX 1 · Detection

We collected footage across multiple Indian cities and annotated more than 10,000 images across five vehicle classes. The detector was retrained until live junctions stopped surprising it.

02FIX 2 · Plates

Automatic number plate recognition, or ANPR, needed its own discipline, starting with a reader tuned on regional plates. And we let the tracker vote across frames, because one clean read beats twenty blurry ones.

03FIX 3 · Streams

We moved the whole pipeline onto the board’s accelerated path, so frames decode, batch, and infer without copies. The unit now carries its full set of live streams, and a watchdog restarts any that die.

04FIX 4 · Wrong challans

We put a person in the loop: the system flags, attaches evidence, and waits. An operator approves or rejects every case, and nothing reaches a vehicle owner unreviewed. Duplicate flags collapse into one case, and every decision is logged.

This is what a proof of concept exists to surface.

What changed after go-live?

WhatBeforeAfter
Catching a violationAn officer had to see itA camera sees it, with evidence
Issuing a challanWritten by hand at the roadsideReviewed on a dashboard, evidence attached
Settling a disputeWord against wordPhoto and video on record
Counting trafficOccasional manual surveysContinuous, by type, hour, and junction
Finding one vehicleHours of scrubbing footageA plate or description query
The number we do not have

We have not published violation-volume or dispute-rate figures, though the client reports errors, effort, and disputes all fell. A number we have not measured is a number we will not print.

The counts now decide real things, like where a new bridge should split the load. The same counts decided which corridors should turn one-way, and where officers should stand at which hour.

Plate reads map journeys and corridor times across the whole network. That same vehicle mix now feeds the authority’s area-by-area pollution estimates.

What should your cameras be catching?

No sales sequence. One reply, from the person who would architect it.







    What is running today

    The system runs in production across the authority’s junctions. Operators attach a stream by pasting its address and draw its violation zones. They search recorded footage by plate, vehicle type, or color.

    A watchlisted plate raises an alert the moment any camera reads it, a trail for stolen-vehicle cases. A dead stream restarts itself, and model updates roll out junction by junction.

    Since handover, the authority also questions its data in plain language, behind authorized access. It’s the same shape as our transportation work: decide at the camera, report upstream.

    Illustrative Brainy Neurals traffic operations dashboard with detection view, four camera tiles, review queue, and event feed
    One control room reviews every junction, and every case waits for a person.

    What would we do differently?

    LESSON 1Put the human review in on day one

    We added review after the first wrong challans went out, and we spent weeks earning that trust back. Human review should have shipped on day one, not after the first wrong challan.

    Human review should have shipped on day one, not after the first wrong challan.

    LESSON 2One city’s footage is not a dataset

    Our first training set came from too few angles, and the junctions punished it. So collect wide before you train anything at all.

    LESSON 3Give operators the zone pen early

    Every junction enforces its own local rules differently. Hard-coded zones meant a site visit for every change, and drawable zones ended that.

    LESSON 4Budget plates their own timeline

    Vehicle detection and plate reading feel like one problem and are two. Plates took their own tuning passes, and planning them separately would have saved us weeks.

    Where else does roadside detection fit?

    Roadside AI monitoring finds vehicles, people, and events in live video by running detection on hardware at the site itself. It belongs wherever an event must be caught the moment it happens, not minutes after the fact.

    IndustryThe equivalent problemWhat changes in the build
    Parking operatorsOccupancy and overstay, counted continuouslyRetrain on bays, add duration rules
    ConstructionHard hats and site safety at the gatesHelmet detection ports almost unchanged
    ManufacturingForklift lanes and PPE at machine cellsTighter timing, a signal to the line
    Logistics yardsGate check-in and dock counts on patchy networksMore pixels for plates on trucks
    Campuses and venuesEntry counting and incident flags across many camerasFewer vehicle classes, more people logic
    AI detection view at a construction gate checking workers for hard hats, the same roadside pattern ported
    The same roadside pattern watching a site gate, with hard hats standing in for helmets.

    Porting takes a retrained detector, redrawn zones, a synced watchlist, and a proper field test at the new site.

    Questions buyers usually ask

    How it works

    01How does an AI camera detect a traffic violation?

    A detector finds each vehicle in the frame, and a tracker follows it across frames. When a track breaks a rule drawn for that camera, such as a banned U-turn, the system flags it. It captures the stills and the clip in that moment.

    02Which violations can be caught automatically?

    This build flags eight violation types, each with a plate read and evidence behind it. Banned U-turns, wrong-way driving, signal jumps, missing helmets, triple riding, missing seatbelts, no-parking stops, and restricted corridors. New types take new zones or training data, not new hardware.

    03Does the video leave the roadside?

    Live streams are processed at the junction unit itself. Only cases, evidence clips, plate reads, and counts move to the cloud store, behind authorized access. Continuous video doesn’t stream to a data center.

    Time, cost, and rollout

    04What happens when the AI gets it wrong?

    Nothing reaches the public, by design. A flagged case waits in a review queue where an operator checks the evidence and approves or rejects it. A rejected case is closed, and no challan ever comes from it.

    05How long does a city pilot take?

    A working pilot at one or two junctions usually takes a few weeks once cameras and access exist. Detection quality, plate reading, and the review workflow each need a tuning pass. A citywide rollout follows the pilot’s evidence.

    06How much does an AI traffic monitoring system cost?

    Cost depends on the junctions, the camera estate, and what already exists. Brainy Neurals scopes it from a short call and a look at the sites, then quotes a fixed price. An AI readiness assessment tells you first whether your cameras and network can carry it.

    If your junctions have cameras and your challans have disputes, tell us what needs to change.

    Sources cited on this page

    1. [1]Liu BC, Ivers R, Norton R, Boufous S, Blows S, Lo SK. Helmets for preventing injury in motorcycle riders. Cochrane Database of Systematic Reviews. 2008;(1):CD004333. DOI 10.1002/14651858.CD004333.pub3. back
    2. [2]Shi W, Cao J, Zhang Q, Li Y, Xu L. Edge Computing: Vision and Challenges. IEEE Internet of Things Journal. 2016;3(5):637-646. DOI 10.1109/JIOT.2016.2579198. back
    3. [3]Cantero D, Esnaola-Gonzalez I, Miguel-Alonso J, Jauregi E. Benchmarking Object Detection Deep Learning Models in Embedded Devices. Sensors. 2022;22(11):4205. DOI 10.3390/s22114205. PMID 35684827. back
    Cite this case study

    Patel, M. (2026). AI traffic violation detection for smart cities. Brainy Neurals. Published August 2026. https://brainyneurals.com/case-studies/ai-traffic-violation-detection/