TNI26165: Live camera-based density and queue estimation drives dynamic signal timing — replacing static fixed timers.
Fixed-time traffic signal plans are demand-blind. They allocate green duration without using real-time queue and density information, leading to unnecessary waiting and localized congestion.
Queue length, density, occupancy ratio, arrivals, and confidence trend per movement.
Before-vs-after KPI delta on Avg Wait, Throughput, and queue spillback risk.
Operational pipeline: camera observation → traffic condition understanding → adaptive timing decision → corridor synchronization → monitored execution → KPI review.
Signal duration adjusted to real queue pressure, while keeping fairness across all directions.
Nearby junctions synchronized so vehicles pass in sequence instead of repeatedly stopping.
Emergency vehicles receive controlled priority; system shifts to safe mode during failures.
Runs fully at one junction without depending on a control center. Used for standalone deployments and as a fail-safe when network links are unavailable.
Camera ingestion, YOLO detection/tracking, queue estimation, adaptive phase planning, direct signal actuation.
Bounded cycle limits, minimum service per approach, conservative fallback timing on low confidence or sensor degradation.
Adds corridor intelligence while preserving full local autonomy at each junction.
Real-time perception, local adaptive timing, emergency-safe transitions, guaranteed continuity even during link faults.
Corridor optimization, event aggregation, policy orchestration, control APIs, audit logging, and live monitoring.
| Aspect | Single-Tier | Two-Tier |
|---|---|---|
| Minimum dependency | No upstream dependency | Edge still independent; center adds coordination |
| Best use case | Isolated junction or link outage | Multi-junction corridors and city operations |
| Coordination | Local optimization only | Green-wave and cross-junction pressure balancing |
| Visibility | Local logs and on-site status | Central dashboard, alerts, and fleet-wide health |
| Failure behavior | Continues with safe local plan | Falls back to local autonomy if center/link fails |
The control-center core has seven responsibilities:
Realistic movement behavior at junctions, live traffic pattern generation, streams conditions back to the control layer.
Live health, queue conditions, decisions, and operational controls in one view — optimized for operational and public clarity.
| Traffic Light | Color | Pin | BCM GPIO |
|---|---|---|---|
| TL1 N-S | ● Red | 11 | GPIO17 |
| TL1 N-S | ● Yellow | 13 | GPIO27 |
| TL1 N-S | ● Green | 15 | GPIO22 |
| TL2 E-W | ● Red | 16 | GPIO23 |
| TL2 E-W | ● Yellow | 18 | GPIO24 |
| TL2 E-W | ● Green | 22 | GPIO25 |
These integrations are plug-and-play layers — enabled independently without redesigning the core adaptive signal engine.
| # | Module | Connects to | Function |
|---|---|---|---|
| 1 | E-Challan Engine | Violation event stream | Turns camera violations into verifiable enforcement records with evidence references. |
| 2 | Helmet / Triple-Ride | Violation rule extension | Adds rider safety enforcement on the same camera pipeline. |
| 3 | Smart Ambulance Priority | Emergency event stream | Accelerates emergency movement and notifies downstream junctions. |
| 4 | Incident & Risk Alerts | Incident alert stream | Flags stalled vehicles, high-risk patterns, and spillback before complete blockage. |
| 5 | Adaptive Corridor Mode+ | Inter-junction coordination | Shares pressure states across nearby signals for smoother flow. |
| 6 | Public-Service Priority | Policy scheduler | Supports bus windows, school safety windows, and protected crossings. |
| 7 | Compliance Integrity | Audit and evidence layer | Makes each enforcement/override action legally reviewable. |
| 8 | Congestion Forecast (15–30m) | Prediction side layer | Warns control-room before saturation and suggests proactive timing adjustments. |
| 9 | ANPR Blacklist Watch | Plate-monitor side layer | Generates silent escalation alerts for flagged vehicles. |
| 10 | No-Stopping Enforcement | Restricted-zone watcher | Detects prolonged stopping in critical no-stop/no-parking zones. |
This platform supports modular expansion without changing the core adaptive signal engine. Each module attaches through a standard integration contract and can be activated gradually by policy.
Consumes detections, tracks, lane-state summaries, and event streams from the live traffic pipeline.
Contributes scored recommendations or bounded override requests while respecting safety constraints.
Publishes structured alerts, compliance records, and control-center notifications in a consistent format.
Module failures do not stop base signal control; the controller continues with local adaptive behavior.
| Integration mode | How it behaves | When to use |
|---|---|---|
| Observe-only | Module runs silently and logs output without affecting control decisions. | Accuracy validation and policy approval stage. |
| Recommend-only | Module proposes actions to operators; final action remains human approved. | Pilot deployment with operational supervision. |
| Bounded auto-actuation | Module applies automatic actions within strict safety and timing boundaries. | Post-validation production rollout. |
The platform is organized into clear functional modules: control-center coordination, traffic optimization, emergency handling, synchronization safety, health observability, camera analytics, simulation runtime, dashboard operations, and verification suite.
Measurable KPI impact, technical justification, and clear scenario-based proof.
Avg Wait, P95 Wait, Throughput, Queue Spillback, Emergency Clearance Latency.
Run the same demand profile in Baseline Fixed mode and Adaptive mode, then compute deltas.
| KPI | Baseline (Fixed) | Adaptive | Result | Interpretation |
|---|---|---|---|---|
| Average waiting time | 74.0 s | 49.8 s | ▼ 32.7% | Directly matches expected problem outcome |
| P95 waiting time | 138 s | 96 s | ▼ 30.4% | Tail-delay risk reduced, not only average |
| Throughput | 27.4 veh/min | 33.9 veh/min | ▲ 23.7% | Flow optimization validated |
| Queue spillback events | 11 | 6 | ▼ 45.5% | Stability and intersection safety improved |
| Emergency clearance latency | 42 s | 19 s | ▼ 54.8% | High social value differentiator |
| Scenario | Demand Shape | Expected Adaptive Behavior | Success Criterion |
|---|---|---|---|
| Balanced flow | Uniform arrivals | Near-uniform split with mild correction | No starvation and stable wait |
| NS peak | North-South surge | NS phase extension within max bound | NS queue reduction without EW collapse |
| Event swell | Burst outbound traffic | Temporary cycle growth and tuned offsets | Faster queue discharge, less spillback |
| Emergency lane | Priority event | Controlled preemption then safe restore | Lower latency, no unsafe conflict |
| Network fault | Coordination link loss | Safe local autonomy fallback | Continuous operation maintained |
The ML layer is the live camera analytics stage: vehicle detection, tracking, lane mapping, and queue estimation. Its outputs are real-time traffic features used by the adaptive signal decision layer.
Primary perception uses a YOLO-family detector for fast multi-class vehicle detection, combined with multi-object tracking to maintain vehicle identity across frames and stabilize counts.
It gives the best balance of speed, edge deployability, and detection quality for junction scenes with mixed traffic. Real-time control needs low latency more than heavyweight offline accuracy.
Simple counting is noisy and unstable. Detection + tracking avoids double-counting, supports queue-length estimation, and produces direction-aware metrics required for dynamic phase control.
Traffic state is inferred from learned perception models on raw video frames. Rules operate after ML inference, but without the ML layer the adaptive logic does not receive reliable real-time traffic features.
Background-subtraction counting, radar/loop sensors, heavier transformer detectors, and segmentation-first pipelines. YOLO-style detection + tracking was selected for practicality on affordable edge hardware.
Confidence gating, time-of-day calibration profiles, and conservative fallbacks when perception confidence drops below operational thresholds.
Multi-frame confirmation, confidence thresholds by violation type, and staged rollout: observe-only → recommend-only → bounded auto-actuation where policy permits.
It uses live camera feeds to derive current density and queue pressure, updates timing each cycle dynamically, avoids fixed schedules, and demonstrates measurable waiting-time reduction.
Each movement receives a pressure score derived from queue length, arrivals, and delay trend; green allocation is optimized within strict minimum and maximum safety bounds.
Fairness constraints enforce minimum service windows so no approach can be ignored indefinitely, even under prolonged directional peaks.
Priority is never instant conflict switching. The controller clears conflicting flows, applies a safe transition, grants priority phase, and then returns to normal optimization.
A policy hierarchy resolves conflicts with bounded override duration and automatic return to adaptive mode after priority handling windows close.
Adjacent junctions exchange lightweight congestion pressure and timing intent to create green-wave behavior, while retaining local autonomy when links degrade.
Decision smoothing, bounded split changes, and rate-limited phase updates prevent aggressive cycle-to-cycle swings.
Yes. It is designed for camera + edge compute deployment per junction, with central monitoring optional rather than mandatory for local control continuity.
Junction control continues locally in safe adaptive mode. Corridor and control-center features degrade gracefully until connectivity returns.
Health monitoring flags degraded perception, switches to safe fallback behavior, and raises maintenance alerts instead of issuing unstable control decisions.
Onboarding includes camera placement validation, zone calibration, baseline capture, and controlled adaptive activation. No core architecture rewrite is required.
Yes. Modules connect through standardized event input, decision hooks, and output adapters, enabling supported integrations without changing core adaptive logic.
Start with shadow mode, move to recommend-only with operator review, then bounded automation after KPI and safety acceptance thresholds are met.
By reporting waiting-time reduction, throughput increase, spillback reduction, and emergency clearance gains with consistent baseline methodology.
Manual plans cannot react continuously to live conditions. This system updates decisions each cycle from current traffic state, including sudden spikes and incident conditions.
Only operationally necessary metadata is retained by policy, with controlled evidence access and retention windows aligned to enforcement and audit requirements.
Events are signed, checksummed, time-stamped, and replayable for audit, supporting tamper-evident governance and legal defensibility.
The perception and control stack is designed for heterogeneous flows including two-wheelers, buses, and varying lane discipline, with fairness and safety constraints kept active.
A layered platform: adaptive control core plus enforcement intelligence, emergency operations support, predictive alerts, and auditable governance from the same camera infrastructure.
ML converts raw camera video into real-time traffic state; without that learned perception layer, dynamic signal optimization cannot be reliable or scalable.
We track both average delay and tail-delay indicators, while enforcing minimum service constraints so low-volume approaches are not starved.
The platform uses short-horizon adaptation in real time and supports periodic recalibration profiles for seasonal, event, and weather-driven traffic shifts.
Yes. Authorized operators can apply bounded manual overrides with full audit logging and automatic return to adaptive mode after the override window.
A new feature can attach through standard input events, decision hooks, and output adapters without rewriting the core adaptive signal engine.
Yes. Modules are independently switchable and can run in observe-only, recommend-only, or bounded auto-actuation modes.
The base controller remains isolated from module internals. Non-critical modules run as side layers and degrade gracefully if unavailable.
Incident/risk alerts and no-stopping enforcement usually show fast operational gains because they directly reduce avoidable blockage near junction throats.
The same detection/tracking pipeline feeds rule-zone evaluation, evidence capture, plate reading, and structured violation event publishing.
Ambulance detection triggers bounded priority handling and timed restoration logic, so emergency benefit is achieved without long-lived corridor imbalance.
Watchlist hits are treated as silent, policy-controlled alerts with access controls and audited visibility instead of public display notifications.
Yes. Evidence integrity, signing, and audit timeline modules can run independently to strengthen trust, traceability, and governance readiness.
Forecast modules provide early saturation warnings, allowing pre-emptive split adjustments before spillback forms, instead of reacting after congestion peaks.
Start with observability modules, then incident and emergency support, then enforcement modules under recommend-only operation, and finally bounded automation after acceptance tests.
Absolutely. The adaptive control core operates independently; enforcement and compliance modules are optional policy extensions.
Each module is validated in shadow mode against replayed scenarios, then tested in controlled field windows with KPI and false-alert thresholds before full activation.