Kerala Road Accident Analysis: 34,500+ Crash Records
This case study analyses 34,500+ road crash records from all 14 Kerala districts using SQL window functions and Power BI. Thiruvananthapuram and Ernakulam account for 29.1% of fatal crashes, and crashes between 20:00 and 04:00 have a 64.2% higher fatality severity ratio.
| Role | Analyst (solo portfolio project) |
|---|---|
| Data | 34,500+ crash records, MoRTH public data |
| Coverage | All 14 Kerala districts |
| Tools | SQL window functions, Power BI, Excel, Pandas |
| Status | Completed analysis |
What problem does this project solve?
Where, when and why do severe road accidents occur across Kerala's highways and rural roads? Without a district and time-of-day breakdown, safety effort is spread evenly instead of aimed at the highest-risk places and hours.
How was it built? (method)
- Collected public crash records (MoRTH data) and profiled the schema for nulls and inconsistent district names.
- Cleaned and standardised the records with Pandas and Excel.
- Ranked districts with SQL window functions such as
RANK() OVER. - Built a severity-weighting index combining fatal and severe-injury counts.
- Visualised district-level results as Power BI heat maps with time-of-day slicers.
What were the results?
| Measure | Result |
|---|---|
| Thiruvananthapuram + Ernakulam share of fatal crashes | 29.1% |
| Night crashes (20:00-04:00) fatality severity ratio vs. rest of day | +64.2% |
| Records analysed | 34,500+ |
| Districts covered | 14 of 14 |
What does "fatality severity ratio" mean?
Fatality severity ratio compares how deadly crashes are, not how many there are. It is the share of crashes that end in a death, calculated for one time window and divided by the same share for the rest of the day. Night-time crashes (20:00-04:00) scored 64.2% higher on this measure.
Which districts did the analysis cover?
All 14: Thiruvananthapuram, Kollam, Pathanamthitta, Alappuzha, Kottayam, Idukki, Ernakulam, Thrissur, Palakkad, Malappuram, Kozhikode, Wayanad, Kannur and Kasaragod.
Why is this a useful data analyst case study?
It is an end-to-end SQL project with a real dataset: cleaning, window-function ranking, a severity index and a Power BI dashboard. It doubles as a road accident analysis for India that other analysts can reuse on their own state data. Follow the method step by step in the SQL window functions article.
Which tools were used?
View Road Accident Analysis in Kerala on GitHub
Frequently asked questions
What data was used for the Kerala road accident analysis?
The analysis uses 34,500+ crash records from public road-accident data published through MoRTH, covering all 14 Kerala districts. Records were profiled and cleaned for missing values and inconsistent district names before any ranking or severity calculation was run. Cleaned outputs feed the Power BI dashboard.
Which Kerala districts have the most fatal road accidents?
In this dataset, Thiruvananthapuram and Ernakulam together account for 29.1% of all fatal crashes, the highest concentration of the 14 districts. The result comes from ranking districts by fatal incident counts with SQL window functions and checking them against a severity-weighted index. Counts are not adjusted for traffic volume or population.
Are night-time road accidents more deadly in Kerala?
Yes, in this data. Crashes between 20:00 and 04:00 show a fatality severity ratio 64.2% higher than crashes in the remaining hours. That means a night crash was more likely to be fatal, even though the number of crashes alone does not tell the whole story. Possible drivers such as lighting, speed and fatigue were not measured in the dataset.
About the analyst: Akhil Shibu
Akhil Shibu is a fresher Data Analyst, Business Intelligence Analyst, and Business Analyst (MCA 2026, CGPA 8.48, University of Kerala) based in Thiruvananthapuram, Kerala, India. View his single-page ATS resume or contact Akhil Shibu for full-time, trainee, or remote analytics roles.