Data Scientist . AI & ML Engineer . Research Data Analyst
Road Accident Severity Prediction
A Streamlit-based predictive system that estimates road traffic accident severity from key accident and driver features,
delivering interpretable class probability insights and deployment-ready inference logic.
This project is a production-aware road traffic accident severity predictor. It uses structured accident metadata and a trained inference pipeline to classify severity as
Fatal injury, Serious Injury, or Slight Injury and displays confidence scores through a responsive Streamlit app.
Deployment-ready Streamlit UI for rapid evaluation and model demonstration
Structured input form aligned with the training pipeline feature contract
Probability visualization and severity risk messaging for non-technical users
Local model artifacts packaged for immediate deployment
Core Capabilities
Predict accident severity from 10 critical trip and driver attributes
Server-side inference built on a serialized scikit-learn pipeline
Interactive confidence metrics and probability distribution charts
Model diagnostics surfaced in a debug sidebar for transparency
Inputs
The app accepts concise accident details through form controls. The trained pipeline was built to preserve the same feature order and categories as the deployment inputs.
Collision type, driver age, gender, education, and vehicle service year
Day of the week and accident location context
Number of vehicles involved, casualties count, and hour of day
Preprocessed categorical features with consistent label encoding and one-hot transformation
Streamlit inference interface for road accident severity prediction.
Model Output
Predicted accident severity label with descriptive risk messaging
Confidence percentage displayed with same session interaction
Probability distribution chart for all severity classes
Modeled output positioned for decision support rather than operational response
Architecture
Streamlit app: `app.py` provides the UX and inference flow
Inference pipeline: `model_pipeline.joblib` contains preprocessing and the trained model
Label encoder and feature names persisted to guarantee deployment compatibility
Metrics JSON drives transparent performance reporting in the UI