AI-driven adaptive traffic signal control for Izmir's Alsancak–Konak corridor: SUMO digital twin, PPO-based multi-agent RL, a 2-junction-ahead emergency green wave, YOLOv8 edge vision and LoRa/BLE V2I. FENG 497 capstone, Izmir University of Economics.
AI-Driven Adaptive Traffic Flow Optimization and Emergency Green-Corridor Management System Using Digital Twin Simulation and Edge V2I
Izmir Smart Corridor is a multidisciplinary capstone project (FENG 497, Izmir University of Economics). It builds an adaptive traffic-signal control system for the Alsancak–Konak arterial network in Izmir. Edge cameras estimate lane queues. Emergency vehicles request priority over authenticated V2I radio links. A SUMO digital twin of the corridor is used to train and validate multi-agent reinforcement-learning signal controllers and a proactive emergency green-corridor algorithm. Operators supervise the system through a web dashboard. All validation happens in simulation and in hardware-in-the-loop testbenches; the system never interferes with live municipal controllers.
Fixed-time signal plans on Izmir's central arteries react poorly to peak-hour demand, incidents and emergency vehicles. The project aims to:
Pilot area: bounding box 38.4150–38.4410 N, 27.1250–27.1550 E. Six multi-phase intersections: Alsancak Station, Lozan, Montrö, Basmane, Çankaya, Konak Pier. A 3 km pilot corridor is used for the emergency KPI. Bornova, Karşıyaka, Balçova and Buca are modelled only as secondary regions for macro routing.
Signal safety limits (all controllers): min green 10 s · max green 60 s · yellow 3 s · all-red 1 s.
flowchart LR
subgraph L1["1 · Edge sensing — edge/"]
CAM["Cameras<br/>1920×1080 → 640×640"] --> DET["YOLOv8-nano · TensorRT<br/>ROI lane queue estimation<br/>target under 85 ms"]
end
subgraph L2["2 · Communication & V2I — hardware/"]
EV["Emergency vehicle transponder<br/>RF/LoRa 433/868 MHz · BLE<br/>HMAC/AES"]
ESP["ESP32 relay driver<br/>HW green-conflict interlock (under 35 ms)<br/>1000 ms watchdog → flashing yellow"]
LAMP["Signal heads<br/>12 V DC logic → 220 V AC"]
end
subgraph L5["5 · Backend & dashboard — backend/, dashboard/"]
MQTT[("Mosquitto<br/>MQTT")]
API["FastAPI<br/>REST · WebSocket<br/>BPR routing service"]
DASH["Operator dashboard<br/>React / Next.js"]
MOB["Mobile app<br/>(TBD owner)"]
end
subgraph L4["4 · AI & optimisation — ai/, analysis/"]
MARL["MARL signal control<br/>PPO / DQN"]
EMG["Emergency green corridor"]
FCL["Forecasting +<br/>LLM decision support"]
ANA["Queueing · Webster ·<br/>BPR/DTA · CO₂ (analysis/)"]
end
subgraph L3["3 · Digital twin — simulation/"]
SUMO["SUMO network from OSM<br/>O/D from IZUM counts<br/>rush hour · accident · emergency"]
end
DET -->|queue_telemetry| MQTT
EV -->|emergency_request| MQTT
MQTT <--> API
API -->|telemetry, verified emergency_request| MARL
API -->|verified emergency_request| EMG
MARL <-->|TraCI| SUMO
EMG <-->|TraCI| SUMO
MARL -->|signal_command| API
EMG -->|signal_command| API
API -->|signal_command via MQTT| ESP
ESP --> LAMP
API <-->|WebSocket / REST| DASH
API <-->|routing, GPS telemetry| MOB
API -->|system_log_event| FCL
ANA -.->|baseline parameters| MARL
Message formats are defined in shared/contracts/ and summarised in docs/interfaces.md. More detail, including the team's deployment diagrams, is in docs/architecture/.
| KPI | Fixed-time baseline | Target |
|---|---|---|
| Average travel time (peak) | 24.5 min | 17.0 min |
| Intersection waiting time | 85 s | 55 s |
| Emergency transit time over 3 km | 12.0 min | 4.5 min |
| CO₂ emissions | 185 g/km | 148 g/km |
| Edge inference latency | — | under 85 ms |
| Fail-safe response | — | under 35 ms |
.
├── ai/ MARL signal control, emergency green corridor, forecasting, LLM decision support (Demir)
├── analysis/ Queueing models, Webster baseline, BPR/DTA formulation, CO₂ and CAPEX/OPEX (Ayça)
├── backend/ FastAPI + MQTT/Mosquitto + WebSocket/REST, BPR routing service (Ario)
├── dashboard/ React/Next.js operator dashboard (Ario)
├── edge/ Camera data pipeline, YOLOv8-nano/TensorRT, ROI queue estimation (Nihat)
├── hardware/ V2I radio + auth, ESP32 relay board, fail-safe interlock, watchdog (Tolga)
├── simulation/ OSM→SUMO network, TraCI integration, O/D matrices, scenarios (Öykü)
├── shared/contracts/ Cross-team interfaces: intersection ids, MQTT topics, JSON Schemas (DRAFT)
├── data/ Data source documentation; raw/ and processed/ are gitignored
├── docs/ Architecture, ADRs, interface summary, meeting-notes template
├── scripts/ Repo-wide helper scripts (contract validation, size checks)
└── .github/ CODEOWNERS, PR/issue templates, CI workflow
| Tool | Version | Notes |
|---|---|---|
| Python | 3.10+ (ASSUMPTION: minimum not yet tested) | Tested with Python 3.14.4 on macOS |
| SUMO | ≥ 1.18; tested with 1.28.0 | Supported install: the pip package eclipse-sumo (bundles sumo, sumo-gui, netconvert, netgenerate, and tools/), plus traci and sumolib |
| Node.js | current LTS | Dashboard only |
git clone https://github.com/Decuayer/feng497-smart-corridor.git
cd feng497-smart-corridor
python3 -m venv .venv
source .venv/bin/activate
pip install -r ai/prototype/requirements.txt # installs eclipse-sumo, traci, sumolib, torch, ...
# SUMO_HOME must point at the SUMO bundled inside the venv:
export SUMO_HOME="$(python -c 'import sumo; print(sumo.SUMO_HOME)')"
sumo --version
With the pip package, SUMO_HOME is <venv>/lib/python<X.Y>/site-packages/sumo. Activating the venv puts the sumo binaries on PATH. Do not point SUMO_HOME at a Homebrew or system SUMO path unless that install actually exists. To make this permanent, add the export line to .venv/bin/activate or to your shell profile.
| Module | Quick start | Status |
|---|---|---|
ai/ |
pip install -r ai/requirements-dev.txt && pip install -e ai --no-deps, then the one-line experiments in ai/README.md |
in progress |
simulation/ |
see simulation/README.md | planned |
backend/ |
see backend/README.md | planned |
dashboard/ |
see dashboard/README.md | planned |
edge/ |
python edge/prototypes/izum_live_detection.py (optional AGPL dependency; see edge/README.md) |
in progress |
hardware/ |
see hardware/README.md | planned |
analysis/ |
see analysis/README.md | planned |
| contracts | pip install jsonschema pyyaml && python scripts/validate_contracts.py |
draft |
Configuration is read from environment variables. Copy .env.example to .env and fill it in locally. .env is gitignored.
| Area | Owner | Folder |
|---|---|---|
| Digital twin: OSM→SUMO network, TraCI integration, O/D matrices, scenarios | Öykü Doğa Dabak (CE) | simulation/ |
| MARL signal control, emergency green corridor, traffic forecasting and LLM decision support | Demir Cücü (CE) | ai/ |
| Distributed backend (FastAPI, MQTT/Mosquitto, WebSocket, REST), BPR routing service | Ario Bashiri (CE) | backend/ |
| Web operator dashboard (React/Next.js) | Ario Bashiri (CE) | dashboard/ |
| Edge vision: IZUM camera data pipeline, synthetic images, YOLOv8-nano/TensorRT, ROI queue estimation | Nihat Efe Kargı (EEE) | edge/ |
| V2I (RF/LoRa/BLE, HMAC/AES), ESP32 relay board, fail-safe interlock, watchdog | Tolga Uçar (EEE) | hardware/ |
| Queueing models, Webster baseline, BPR/DTA formulation, fuel/CO₂ and CAPEX/OPEX analysis | Ayça Avcı (IE) | analysis/ |
| Mobile app (map and dynamic routing, crowd-sourced GPS telemetry) | TBD owner | — (no folder yet) |
Supervisor: Assoc. Prof. Dr. Mehmet Türkan.
See CONTRIBUTING.md for branching, commits, reviews and code style.
MIT. Copyright © 2026 FENG 497 Group 08 – Izmir University of Economics. See LICENSE and ADR 0001.
edge/ only. It is never bundled with or vendored into this repository, and model weights are not committed. Anyone distributing software that includes Ultralytics must meet AGPL-3.0 obligations or obtain an Ultralytics enterprise licence.ai/sim_fixtures/osm_alsancak_v0/ is derived from OpenStreetMap data.