All projects

UNSWINFS2822 group project

NSW road crash analytics in Python

Crash severity drivers by time, weather and place, modelled in Python

Supply chain problem

Transport planners need to know when and where crashes turn severe.

  • Transport safety
  • Route risk
  • Spatial patterns

Tech I used

pandas cleaning plus regression and decision-tree models of crash severity by time, weather and place

  • Python
  • pandas
  • seaborn
  • plotly

Result

Severity patterns turned into recommendations for the consulting brief (group coursework).

Animated overview of the steps below (an illustration, not recorded footage).

From raw crash data to recommendations

  1. 01Step 1 of 5, Python

    NSW crash data

    Crash data for a Transport for NSW consulting brief (group coursework).

  2. 02Step 2 of 5, pandas

    Cleaning

    Cleaned and prepared the records with pandas.

  3. 03Step 3 of 5, plotly

    Exploration

    seaborn and plotly charts: speed limits, weather, timing, seasonality, geography.

  4. 04Step 4 of 5

    Models

    Linear and logistic regression and decision trees on crash severity.

  5. 05Step 5 of 5

    Recommendations

    Findings framed as recommendations for the coursework consulting brief.

Tech stack in this project

  • PythonAnalysis language for the whole project
  • pandasCleaning and shaping the crash records
  • seabornStatistical charts of severity drivers
  • plotlyInteractive charts for exploration
  • Linear regression
  • Logistic regression
  • Decision trees

Why it matters for supply chain

  • Crash timing = safer delivery windows and schedules
  • Geography = spatial analytics for transport networks
  • Severity models = risk scoring for fleet routes
Read the full case study

Problem

Group coursework: analyse NSW crash data for a Transport for NSW consulting brief, around research questions on speed limits and weather versus crash severity, timing and seasonality, and geography.

Approach

  1. I cleaned and analysed NSW crash data in Python with pandas.
  2. I visualised patterns with seaborn and plotly.
  3. We modelled outcomes with linear and logistic regression and decision trees.