File size: 1,485 Bytes
3d6ec8f
f755af7
 
 
 
 
 
 
 
 
 
 
 
3d6ec8f
 
f755af7
3d6ec8f
f755af7
3d6ec8f
f755af7
3d6ec8f
f755af7
3d6ec8f
f755af7
 
3d6ec8f
f755af7
 
 
3d6ec8f
f755af7
 
 
 
3d6ec8f
f755af7
 
 
3d6ec8f
f755af7
 
3d6ec8f
f755af7
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
base_model: bert-base-multilingual-cased
tags:
- persian-nlp
- text-classification
- traffic-crash-detection
- bert
- information-extraction
license: apache-2.0
language:
- fa
pipeline_tag: text-classification
inference: false
---

# BERT-Crash-nonCrash-Classification

**Fine-tuned BERT for detecting crash-related Persian social media texts.**

📄 **Paper:** [Extracting traffic crash information from social media: an LLM-based approach](https://doi.org/10.1080/19427867.2026.2681104) – *Transportation Letters* (2026)

---

## 🎯 What it does
Binary classifier to determine whether a given Persian social media text is related to a **traffic crash** or not.

## ⚙️ Fine-tuning
- **Base Model:** `bert-base-multilingual-cased`
- **Data:** Proprietary Persian social media crash dataset (Damavand County, Iran)

## 📊 Performance
| Task | Metric | Score |
|------|--------|-------|
| Crash Detection (Binary) | Accuracy | **91.1%** |

## 🚀 Quick Start
```python
from transformers import AutoModelForSequenceClassification, AutoTokenizer

model = AutoModelForSequenceClassification.from_pretrained("crash-information-extraction/BERT-Crash-nonCrash-Classification")
tokenizer = AutoTokenizer.from_pretrained("crash-information-extraction/BERT-Crash-nonCrash-Classification")

text = "تصادف در خیابان آزادی ۲ کشته داشت"
inputs = tokenizer(text, return_tensors="pt")
outputs = model(**inputs)
predicted_class = outputs.logits.argmax().item()