An open API service indexing awesome lists of open source software.

https://github.com/0xnu/gb-road-casualties

An analysis of UK road accident statistics from the RAS91 dataset covering 2015-2024.
https://github.com/0xnu/gb-road-casualties

casualties dft great-britain road transport uk

Last synced: 9 months ago
JSON representation

An analysis of UK road accident statistics from the RAS91 dataset covering 2015-2024.

Awesome Lists containing this project

README

          

## gb-road-casualties

[![Release](https://img.shields.io/github/release/0xnu/gb-road-casualties.svg)](https://github.com/0xnu/gb-road-casualties/releases/latest)
[![License](https://img.shields.io/badge/License-Modified_MIT-f5de53?&color=f5de53)](/LICENSE)

An analysis of UK road accident statistics from the RAS91 dataset covering 2015-2024.

### What It Does

It analyzes UK road accident statistics from the RAS91 dataset covering 2015-2024. It provides:

+ Analysis of road casualties by various demographics
+ Trends and patterns in road accidents over time
+ Breakdown by road user type, severity, age, sex, and geographical regions
+ Statistical insights and visualizations of accident data

### Key Features

#### 📊 Data Extraction & Processing

+ Automated extraction from RAS91 ODS files to CSV format
+ Multiple datasets: Numbers, Age/Sex, Severity, Monthly, Local Authority, and Regional data
+ Data cleaning and preprocessing for analysis
+ Structured data organization for easy access

#### 🔍 Statistical Analysis

+ Year-over-year trend analysis (2015-2024)
+ Demographic breakdown by age groups and sex
+ Severity classification (Killed, KSI, All casualties)
+ Road user type analysis (Pedestrians, Cyclists, Motorists, etc.)
+ Geographical analysis by local authorities and regions

#### 📈 Data Visualization

+ Time series plots of accident trends
+ Demographic distribution charts
+ Severity comparison visualizations
+ Geographical heat maps and regional comparisons
+ Interactive plots using Matplotlib and Seaborn

#### 📋 Dataset Coverage

+ Numbers: 32 rows, 12 columns - Overall casualty statistics
+ Age/Sex: 384 rows, 14 columns - Demographic breakdown
+ Local Authority: 852 rows, 14 columns - Geographical analysis
+ Monthly: 440 rows, 15 columns - Temporal trends
+ Severity: 176 rows, 13 columns - Accident severity classification
+ Regional: 48 rows, 13 columns - Regional comparisons

### Install Dependencies

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install required libraries:

```sh
# Prerequisites
python3 -m venv .venv
source .venv/bin/activate
pip install pandas numpy matplotlib seaborn scikit-learn openpyxl odfpy jupyter
```

### Data Requirements

It requires the RAS91 ODS file from the UK Department for Transport to run the analysis.

+ File: `ras91.ods` (placed in the data/ folder)
+ Source: [Reported road casualties Great Britain, provisional results: 2024](https://www.gov.uk/government/statistics/reported-road-casualties-great-britain-provisional-results-2024)
+ The script automatically extracts and processes the data into CSV format

### Run the System

Click the `Run` button to run the individual cell of the [Jupyter Notebook](./road_casualties.ipynb).

### License

This project is licensed under the [Modified MIT License](./LICENSE).

### Copyright

(c) 2025 [Finbarrs Oketunji](https://finbarrs.eu). All Rights Reserved.