Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

FLOW — Neural Traffic Intelligence

Systems Development Using Neural Network Technologies Track
Spatio-temporal neural traffic flow prediction & intelligent congestion intervention.


1. Product Overview

FLOW is a neural-network-powered traffic intelligence command center designed to predict urban congestion before it occurs. Rather than reacting to traffic jams after gridlock has already formed, FLOW analyzes continuous telemetry streams, runs spatio-temporal deep learning inference across time horizons (+5 MIN, +10 MIN, +15 MIN, +30 MIN), pinpoints bottleneck propagation, and calculates optimal diversion interventions to restore steady traffic flow.

Designed with Apple-level visual restraint, typographic hierarchy, and fluid spring mechanics, FLOW demonstrates how advanced AI infrastructure can be presented with radical simplicity.


2. The Problem

Traditional Intelligent Transportation Systems (ITS) suffer from three critical bottlenecks:

  1. Reactive Management: Systems trigger alerts after severe queues have accumulated.
  2. Local Isolation: Intersections are treated independently, missing upstream and downstream spatio-temporal cascade effects.
  3. Cluttered Dashboards: Legacy traffic control interfaces flood operators with low-signal data and rainbow heatmaps, obscuring the primary operational question: "What is traffic going to look like next?"

3. The Solution

FLOW provides a closed-loop intelligence pipeline:

LIVE TRAFFIC SIMULATION
         ↓
NEURAL TELEMETRY ANALYSIS
         ↓
SPATIO-TEMPORAL FORECAST (+15 MIN)
         ↓
CONGESTION BOTTLENECK IDENTIFICATION
         ↓
DETERMINISTIC INTERVENTION VECTOR
         ↓
SIMULATED REROUTING & VERIFICATION (-27% CONGESTION)

4. Architecture

┌─────────────────────────────────────────────────────────────┐
│                 FLOW Frontend (Next.js 15)                  │
│  - React 19 + TypeScript + Tailwind CSS v4                  │
│  - Framer Motion Spring Physics + HTML5 Canvas Renderer     │
│  - Built-in Offline Fallback Simulation Engine             │
└──────────────────────────────┬──────────────────────────────┘
                               │ REST API (JSON)
┌──────────────────────────────▼──────────────────────────────┐
│                FLOW Backend (Python FastAPI)                │
│  - PyTorch 2.11 Temporal Spatio-Dense Neural Engine         │
│  - Synthetic Urban Network Simulation (Sector 7)            │
│  - Deterministic Flow Diversion Optimizer                   │
└─────────────────────────────────────────────────────────────┘

5. Neural Network Approach

The core forecasting engine uses a multi-layer perceptron with Layer Normalization and GELU activation functions, trained on spatio-temporal traffic sequences.

Input Layer (8 Telemetry Features)

  1. Vehicle Count ($N$): Current volume per node.
  2. Traffic Density ($\rho$): Normalized load ratio ($0.0 \dots 1.0$).
  3. Average Speed ($v_{avg}$): Vehicle velocity in km/h.
  4. Junction Load ($L_j$): Intersection queue ratio.
  5. Neighbor Load ($L_{nbr}$): Upstream/downstream flow balance.
  6. Historical Trend ($T_{hist}$): Temporal progression index.
  7. Spatial Time Encoding: $\sin(\omega t)$ temporal cycle.
  8. Inflow Rate ($\lambda$): Vehicles per minute entering link.

Output Heads

  1. Predicted Density ($\hat{\rho}_{t+\Delta t}$): Expected density percentage.
  2. Congestion Probability ($P_{cong}$): Risk score ($0 \dots 100%$).
  3. Expected Delay ($\Delta t_{delay}$): Predicted travel delay in minutes.

Benchmark Metrics (Honest Credibility Standard)

  • Framework: PyTorch 2.11
  • Parameter Count: 2,131 trainable weights
  • Inference Speed: <10 ms (Measured live: 8.4 ms)
  • Validation MAE: 0.034
  • Validation Accuracy: 94.2% ($\text{MAE} \le 0.05$)

6. Technology Stack

  • Frontend: Next.js 15 (App Router), TypeScript, Tailwind CSS v4, Framer Motion, HTML5 Canvas 2D.
  • Backend: Python 3.11, FastAPI, PyTorch 2.11, NumPy, Uvicorn.
  • Design System: Strict Grayscale palette (#000000, #FFFFFF, #F5F5F7, #E5E5E7, #86868B, #1D1D1F), SF Pro Typography, Apple Design guidelines.

7. How to Run

Prerequisites

  • Node.js v18+ and npm
  • Python 3.11+ with PyTorch and FastAPI

Quick Start (2 Commands)

1. Start Python Backend (Port 8000)

cd backend
python3 -m pip install -r requirements.txt
python3 -m uvicorn main:app --host 127.0.0.1 --port 8000

2. Start Next.js Frontend (Port 3000)

cd frontend
npm install
npm run dev

Open http://localhost:3000 in your browser.


8. Product Walkthrough (60–90 Seconds)

  1. Open FLOW: Observe the synthetic urban network (Junctions A–H) with vehicle particles moving in real time.
  2. Explain Concept: "FLOW uses a spatio-temporal neural network to forecast traffic congestion before gridlock forms."
  3. Click RUN FORECAST: The engine analyzes telemetry and computes predictions for the +15 MIN horizon.
  4. Inspect Bottleneck: Highlight Junction C (Central Plaza) — Congestion Probability: 91%, Expected Density: 86%, Delay: +8.4 MIN.
  5. Review Recommendation: FLOW RECOMMENDS: Redirect ~18% incoming traffic from Route B → C via Bypass Route D (Junction E).
  6. Click APPLY SIMULATED INTERVENTION: Watch the map animate vector rerouting and particle speeds balance out, dropping congestion from 91% to 64% (-27% improvement).
  7. Inspect Model View: Switch to the Model tab to show judges the PyTorch architecture, 8 input feature encoding meters, and live <10 ms latency stats.

9. Limitations & Scope

  • Synthetic Urban Network: Operates on a self-contained 8-node synthetic topology (Sector 7) for reproducible offline execution.
  • Deterministic Optimizer: Route diversions are calculated using graph capacity optimization layered on top of neural network forecasts.

About

Spatio-temporal neural traffic flow prediction & congestion intervention intelligence platform.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages