Downloads · 30 days
0
Mattysmittttt/crashrisk-qld-severity
crashrisk-qld-severity is a tabular classification model from Mattysmittttt. Use it for the tabular classification task on the model card, and read the license before you ship it in a product. It is set up for lightgbm. The card lists the license as cc-by-4.0.
LightGBM classifier predicting the severity of a Queensland road crash given pre-/at-crash conditions. Classes: fatal, hospitalisation, medical treatment, minor injury.
Downloads · 30 days
0
Access
Public
Updated Apr 30, 2026
Repo size
179 MB
Likes
0
Public
Click a slice to open those files.
.txt172 MB · 96%
From the Hugging Face model README
LightGBM classifier predicting the severity of a Queensland road crash
given pre-/at-crash conditions. Classes: fatal, hospitalisation, medical treatment, minor injury.
© State of Queensland (Department of Transport and Main Roads) 2026. Licensed CC-BY 4.0. Source: data.qld.gov.au, dataset 'Crash data from Queensland roads', version rqC45037 (2025-06), retrieved 2026-04-30.
Disclaimer. This is a population-level statistical model trained on publicly reported crash data. It is NOT suitable for individual driver risk assessment, insurance underwriting, pre-incident law enforcement targeting, or any decision with legal or financial consequence to an individual. Use it for research, road-safety analysis, and education.
from huggingface_hub import hf_hub_download
import joblib, lightgbm as lgb, json
REPO = "Mattysmittttt/crashrisk-qld-severity"
booster = lgb.Booster(model_file=hf_hub_download(REPO, "model.txt"))
pre = joblib.load(hf_hub_download(REPO, "preprocessor.joblib"))
classes = json.loads(open(hf_hub_download(REPO, "label_classes.json")).read())
# `pre` is a fitted sklearn ColumnTransformer; pass a DataFrame whose
# columns match the dataset's ✅ feature columns. See dataset card for
# the schema, and feature_importance.csv for the names this model uses.
See the dataset card for full provenance, cleaning, schema, and split definition.
multiclass objective, multi_logloss metricsklearn.utils.class_weight.compute_sample_weight('balanced', y)){
"num_leaves": 227,
"learning_rate": 0.010205401359666888,
"feature_fraction": 0.7235023898845259,
"bagging_fraction": 0.6068744601075835,
"bagging_freq": 6,
"min_data_in_leaf": 76,
"lambda_l1": 1.4239280268649237e-08,
"lambda_l2": 1.2540363726263013e-08
}
| class | precision | recall | f1 | support |
|---|---|---|---|---|
| fatal | 0.077 | 0.117 | 0.093 | 273 |
| hospitalisation | 0.609 | 0.580 | 0.594 | 7,051 |
| medical treatment | 0.402 | 0.225 | 0.288 | 4,409 |
| minor injury | 0.255 | 0.462 | 0.328 | 2,625 |
Rows = actual, columns = predicted.
| — | pred fatal | pred hospitalisation | pred medical treatment | pred minor injury |
|---|---|---|---|---|
| actual fatal | 32 | 198 | 11 | 32 |
| actual hospitalisation | 269 | 4088 | 949 | 1745 |
| actual medical treatment | 79 | 1565 | 990 | 1775 |
| actual minor injury | 34 | 866 | 512 | 1213 |
loc_suburb_0 (gain = 1574725)loc_suburb_3 (gain = 574071)crash_hour (gain = 562661)loc_abs_statistical_area_2_0 (gain = 468933)count_unit_car (gain = 466195)crash_year (gain = 464291)loc_suburb_2 (gain = 403835)loc_suburb_1 (gain = 391710)crash_longitude (gain = 367704)crash_latitude (gain = 332986)loc_abs_statistical_area_2_3 (gain = 300528)loc_post_code_0 (gain = 260922)crash_speed_limit (gain = 254960)loc_post_code_3 (gain = 242106)loc_abs_statistical_area_2_2 (gain = 240559)loc_abs_statistical_area_2_1 (gain = 235112)loc_post_code_2 (gain = 199437)loc_post_code_1 (gain = 194552)loc_state_electorate_3 (gain = 183491)loc_state_electorate_0 (gain = 183178)Global and local SHAP plots for this model are in the
reports/shap_severity/ folder of the source repository:
summary_bar.png — mean |SHAP| across the test samplesummary_beeswarm.png — per-feature SHAP distributiondependence_*.png — top-6 featuresforce_plot_examples.png — TP / TN / FP local explanations for the
fatal classvalues.parquet — raw SHAP values, reproduciblePer-LGA mean predicted P(fatal) under a fixed condition grid (wet/dry ×
day/night × intersection/no-feature × 60 km/h vs 110 km/h) is published in
reports/maps/ of the source repository as both interactive HTML and
static PNG.
@software{crashrisk_qld_severity_2026,
title = {CrashRisk-QLD severity classifier},
author = {Mattysmittttt},
year = {2026},
url = {https://huggingface.co/Mattysmittttt/crashrisk-qld-severity},
note = {Trained on Mattysmittttt/qld-traffic-crashes-clean; source data CC-BY 4.0 © State of Queensland (Department of Transport and Main Roads).}
}
Released under CC-BY 4.0. Attribution must be preserved.