Everything you need to know about the Smart Connected Vehicles system
Smart Connected Vehicles
An AI-powered road hazard detection platform that automatically identifies bumps and potholes
from vehicle sensor data. Upload a CSV from your vehicle's sensors and get instant, GPS-mapped predictions — no manual labelling needed.
Long Short-Term Memory captures long-range sequence dependencies
Fusion
Learned attention weights blend TCN, KAN and LSTM outputs for final prediction
💡 Tip: The model badge shown after uploading tells you exactly which model processed your data — blue for sensor_gis_weather, green for sensor_gis, orange for sensor_weather, purple for sensor.
How It Works
1. Upload Detection
When you upload a CSV the system instantly checks for the presence of weather and GIS columns in the header row — before any processing begins — and selects the correct model automatically.
2. Column Validation
The file is validated against the required column set for the chosen model. Missing critical sensor columns will produce a clear error listing exactly what's absent.
3. Preprocessing
GPS coordinates are extracted and stored separately for mapping
Non-feature columns (timestamps, labels, source file) are removed
Missing values are filled with zero
Raw sensor columns are padded or truncated to match the model's expected input
4. Feature Extraction
Each raw sensor reading is expanded into a rich feature vector:
Signal derivatives — first-order differences
Rolling statistics — windowed mean and variance
Energy features — local signal energy
Magnitude features — vector magnitudes and cross products
Frequency features — high-frequency and smoothed components
Statistical moments — local variance
5. Model Inference
The selected TCN-KAN-LSTM model outputs a probability over 3 classes (Normal, Bump, Pothole). The class with the highest probability is the prediction; its probability is the confidence score.
6. Results
Predictions are paired with GPS coordinates, saved to the database for hazards, and returned to the frontend where they are plotted on the interactive map and summarised in the analytics dashboard.
Getting Started
1
Choose your CSV type
Decide which data you have available. Use the Downloads page to get a ready-made sample,
or the Sample Generator to create synthetic data for any of the 4 types.
2
Upload your CSV
On the home page, click the upload area or drag-and-drop your file. The file info box will immediately
show which model will be used — based on the columns detected.
3
Click "Predict Road Conditions"
The server preprocesses your data, runs inference, and returns results in seconds.
A coloured badge confirms which model was used.
4
Explore results
Hazards are pinned on the map. Use the analytics section below the map for confidence charts,
prediction distribution, and a full results table.
5
Export or download
Export your results as CSV or JSON using the export button in the results table.
💡 Tip: Not sure which CSV to use? Start with predict_sensor_gis_weather.csv from the Downloads page — it works with the most complete model.
Video Tutorial
Watch the step-by-step walkthrough of the full system:
Topics Covered
✅ Understanding the 4 CSV types and which model each uses
✅ Downloading and generating sample data
✅ Uploading a CSV and reading the model badge
✅ Exploring the interactive map
✅ Reading the analytics dashboard
✅ Exporting results
Frequently Asked Questions
How does the system know which model to use?
It reads the CSV header row and checks for the 4 weather columns (Temperature (°C), Humidity (%), Cloud Cover (%), Wind Speed (km/h)) and GIS_Elevation. The combination determines the model: both present → sensor_gis_weather.pth, no weather → sensor_gis.pth, no GIS → sensor_weather.pth, neither → sensor.pth.
What do the coloured badges mean?
The badge in the file info box (before upload) and the result badge (after upload) both show which model was selected: 🔵 Blue = sensor_gis_weather, 🟢 Green = sensor_gis, 🟠 Orange = sensor_weather, 🟣 Purple = sensor.
Where can I get sample CSV files?
From the Downloads button in the navbar or the Download Sample CSV button in the left panel — both lead to the /downloads page which has all 4 files with descriptions. You can also generate synthetic data from Sample Data Generator.
How accurate are the models?
The top model (sensor_gis_weather.pth) achieves 97.68% validation accuracy. Accuracy may vary depending on sensor calibration and road conditions. The confidence score on each prediction indicates how certain the model is.
What does the confidence score mean?
A value from 0 to 1 representing the model's certainty. 0.95 means 95% confident. Predictions above 0.90 are generally very reliable; below 0.70 should be treated with caution.
Is my data stored on the server?
Uploaded CSV files are processed in memory and not saved. Only detected hazard coordinates and predictions are stored in the local SQLite database for the map and history views.
Can I generate sample data without real sensors?
Yes. The Sample Data Generator lets you create synthetic sensor readings for any of the 4 CSV types. You can control the number of samples, hazard percentage, bump/pothole ratio, location, and (for applicable types) weather values.
How do I export my results?
After running a prediction, scroll down to the Detailed Results table. Use the Export buttons to download results as CSV or JSON.
What datasets were used to train and validate the models?