Demo-ready edge/cloud reference implementation for heavy commercial vehicle predictive safety intelligence using onboard sensing, simulated cooperative V2X context, deterministic edge risk scoring, and cloud/fleet visibility.
- Normalizes GPS and camera-derived telemetry into stable service contracts.
- Accepts cooperative V2X context from reproducible simulation events.
- Computes deterministic, explainable risk scores and hazard classifications.
- Generates mitigation recommendations for driver and fleet workflows.
- Publishes events to a local cloud ingestion API.
- Visualizes event outcomes in a lightweight dashboard.
flowchart LR
GPS[GPS Service] --> TEL[Telemetry Service]
CAM[Camera Service] --> TEL
V2X[V2X Simulator] --> PIPE[Event Pipeline]
TEL --> PIPE
PIPE --> RISK[Risk Engine]
RISK --> API[Cloud API]
API --> DASH[Dashboard]
RISK --> OUT[Demo Output JSON]
.
├── README.md
├── CONTRIBUTING.md
├── SECURITY.md
├── CODE_OF_CONDUCT.md
├── requirements-dev.txt
├── scripts/
│ ├── run_all_tests.sh
│ ├── run_demo_end_to_end.py
│ └── run_demo_end_to_end.sh
├── docs/
│ ├── architecture/
│ ├── demo/
│ ├── development/
│ ├── operations/
│ └── patent-alignment/
├── services/
│ ├── camera-service/
│ ├── gps-service/
│ ├── telemetry-service/
│ ├── v2x-simulator/
│ ├── risk-engine/
│ ├── pipeline/
│ ├── cloud-api/
│ └── dashboard/
└── outputs/
services/gps-service: GNSS parsing with mock and serial-compatible data paths.services/camera-service: camera metadata, health state, and deterministic analytics proxies.services/telemetry-service: normalization of sensor/vehicle payloads to consistent telemetry events.services/v2x-simulator: reusable cooperative context events and mapping to risk context.services/risk-engine: deterministic and explainable risk scoring + mitigation outputs.services/pipeline: local orchestration from sensor input through risk event generation.services/cloud-api: ingest API server plus client adapter utilities.services/dashboard: Streamlit-based local review surface for event monitoring.
python -m venv .venvmacOS/Linux:
source .venv/bin/activateWindows:
.venv\Scripts\activatepip install -r requirements-dev.txt
bash scripts/run_all_tests.sh
python scripts/run_demo_end_to_end.pycd services/cloud-api/server
python -m uvicorn main:app --host 127.0.0.1 --port 8000streamlit run services/dashboard/app.pypython services/pipeline/src/pipeline_runner.py --no-external-context --v2x-event services/v2x-simulator/examples/v2i_curve_warning.jsonHCV V2X Predictive Risk Mitigation Demo
---------------------------------------
Vehicle ID: hcv-demo-001
Trip ID: demo-trip-001
Risk Score: 0.72
Severity: high
Hazard Type: speed_curve_environment
Driver Alert: Elevated risk - reduce speed and increase following distance.
Fleet Notification: true
Reason Codes: rule.speed_curve_no_confirmed_wet, v2x.v2i_curve_warning
Cloud Ingest: success
Output File: outputs/demo_run_20260429T120000Z.json
- Edge risk scoring with deterministic rules.
- GPS ingest and mock GPS support.
- Camera health and metadata capture.
- Telemetry normalization for service boundaries.
- V2X context simulation and context merging.
- Local pipeline orchestration and output artifact generation.
- Cloud event ingestion and retrieval.
- Dashboard-based event review.
- Testable modular services suitable for external contribution.
- V2X is simulated for demo purposes.
- Vehicle CAN input is represented by normalized sample telemetry.
- Camera intelligence uses lightweight heuristics unless real CV models are added.
- Cloud analytics currently focus on ingestion and review, not trained fleet-scale prediction.
- Production vehicle control integration is out of scope.
See CONTRIBUTING.md.
See SECURITY.md.
- Jetson live hardware validation.
- CAN/OBD-II integration.
- MQTT or C-V2X gateway adapter.
- Azure deployment patterns.
- Fleet analytics expansion.
- Model-based risk prediction.
- Authentication and device identity.
- Containerized deployment profiles.