How adidev-33/intelligent-vehicle-telemetry-driver-behaviour-analysis works
VTA turns vehicle and motion sensor readings into fused, classified telemetry, then serves it through a web dashboard and records journeys for post-trip analysis. Separate branches provide DTC diagnostics and trip-history/PDF exports. The README documents PDF exports and the Hugging Face report integration; source excerpts show the main polling, API, and trip-analysis calls. Some README-described internals, including the PDF builder and report aggregation details, are not separately sampled, so those links rely on the README.
Main entry points: obd_reader.py OBD Poller · main.py Flask Web App · routes.py API Routes · trip_recorder.py Trip Recorder
Components 22
Vehicle Inputs
- OBD Connection
src/obd/obd_connection.py - OBD Poller
src/obd/obd_reader.py - GPS Reader
src/sensors/gps_reader.py - IMU Reader
src/sensors/imu_reader.py - OBD CSV Log
src/obd/obd_logger.py
Telemetry Processing
- Sensor Fusion
src/fusion/sensor_fusion.py - Performance Metrics
src/analytics/performance_metrics.py - Feature Engineering
src/ai/feature_engineering.py - Behavior Inference
src/ai/inference.py - Driving Explanations
src/ai/explainability.py
Trips and Reports
- Trip Recorder
src/trips/trip_recorder.py - Trip Records
data
Web and Diagnostics
- Flask Web App
src/main.py - API Routes
src/api/routes.py - Dashboard UI
static/js/dashboard.js - DTC Manager
src/dtc/dtc_manager.py - DTC History
src/dtc/dtc_manager.py
Other components
- OBD-II Adapter
- GPS Module
- MPU6050 IMU
- Hugging Face Inference
- Driver Browser
Connections 30
- OBD-II Adapter → OBD Connection: connects via Bluetooth
README.md - OBD Connection → OBD Poller: provides connection
src/obd/obd_reader.py - GPS Module → GPS Reader: sends NMEA
README.md - MPU6050 IMU → IMU Reader: provides motion data
README.md - OBD Poller → GPS Reader: reads latest GPS
src/obd/obd_reader.py - OBD Poller → IMU Reader: reads latest IMU
src/obd/obd_reader.py - OBD Poller → OBD CSV Log: logs readings
src/obd/obd_reader.py - OBD Poller → Sensor Fusion: computes fused data
src/obd/obd_reader.py - Sensor Fusion → Performance Metrics: uses metrics
src/fusion/sensor_fusion.py - OBD Poller → Feature Engineering: extracts features
src/obd/obd_reader.py - OBD Poller → Behavior Inference: predicts behavior
src/obd/obd_reader.py - OBD Poller → Driving Explanations: generates reasons
src/obd/obd_reader.py - OBD Poller → Trip Recorder: feeds telemetry
src/obd/obd_reader.py - Trip Recorder → Trip Records: saves trip records
src/trips/trip_recorder.py - Trip Recorder → Hugging Face Inference: requests trip analysis
src/trips/trip_recorder.py - Flask Web App → API Routes: registers API
src/main.py - Flask Web App → OBD Connection: starts connection
src/main.py - Flask Web App → OBD Poller: starts poller
src/main.py - Flask Web App → GPS Reader: starts reader
src/main.py - Flask Web App → IMU Reader: starts reader
src/main.py - Flask Web App → Trip Recorder: retries pending trips
src/main.py - Driver Browser → Flask Web App: requests pages
src/main.py - Driver Browser → Dashboard UI: views telemetry
README.md - Dashboard UI → API Routes: opens telemetry stream
README.md - API Routes → OBD Poller: reads telemetry
src/api/routes.py - API Routes → OBD Connection: controls connection
src/api/routes.py - API Routes → DTC Manager: processes DTCs
src/api/routes.py - DTC Manager → DTC History: logs fault history
src/dtc/dtc_manager.py - API Routes → Trip Recorder: controls and lists trips
src/api/routes.py - API Routes → Driver Browser: returns PDF exports
src/api/routes.py