Objective

This project aimed to model and predict the severity of traffic crashes across 22 local areas in Mazandaran province, Iran. The goal was to improve understanding of spatial crash patterns and inform safer traffic policies by applying Bayesian spatial models to injury severity data.

Tools and Technologies Used

**Statistical Tools:** R (INLA, MCMCpack), Bayesian hierarchical modeling

**Models:** Structured Additive Regression (STAR), Multinomial Logit

Techniques: Multinomial-Poisson Transformation, Conditional Autoregressive (CAR) spatial effects

Process and Methodology

Analyzed crash data from 2016–2018 categorized into **three severity levels**: no injury, minor injury, and serious injury.

Selected **speed, driver age, and time of day** as covariates.

frequency1.JPG

Built a **Bayesian STAR multinomial model** to capture:

 Non-linear effects (e.g. of driver age)

 Spatial dependencies across 22 regions

Applied **INLA** as a faster alternative to MCMC for approximate Bayesian inference.

Addressed the identifiability problem in multinomial models by comparing:

   **Corner-point constraint** (fixing one category as baseline)

  **Sum-to-zero constraint** (treating categories symmetrically)

   Compared model performance against the **fractional split multinomial model**.

Key Results & Insights

  The **sum-to-zero constraint** produced more stable and interpretable estimates than the corner-point constraint.