Hayat Ağı — 3-Head BERTurk Triage Model
Türkçe deprem mesajlarını sınıflandıran 3 başlı multi-task BERT modeli.
Mimari
- Backbone:
dbmdz/bert-base-turkish-cased - Head A: Mesaj tipi (3 sınıf) — SELF_REPORT / WITNESS_REPORT / INFO
- Head B: Aciliyet (4 sınıf) — CRITICAL / HIGH / MEDIUM / LOW
- Head C: Kategori (11 multi-label) — MEDICAL_RESCUE, FIRE, HAZMAT, ELECTRICAL, WATER, SECURITY, MISSING_PERSON, CHILD_UNACCOMPANIED, RESOURCE_REQUEST, SHELTER, GENERAL
Validation metrikleri (v5)
| Head | Metric | Değer |
|---|---|---|
| A (mesaj tipi) | macro_f1 | 0.92 |
| B (aciliyet) | macro_f1 | 0.77 |
| C (kategori) | macro_auprc | 0.82 |
v3 baseline'a kıyasla:
- A_f1: 0.88 → 0.92 (+%5)
- B_f1: 0.69 → 0.77 (+%11)
- C_auprc: 0.73 → 0.82 (+%12)
Kullanım
from huggingface_hub import hf_hub_download
import torch
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("dbmdz/bert-base-turkish-cased")
weights = hf_hub_download("arzu01koca/HayatAgi", filename="multitask_v5.pt")
state = torch.load(weights, map_location="cpu", weights_only=True)
# Model yapısı için: github.com/hayat-agi/ai/blob/main/hayat-agi-fusion/app/classifier.py
Eğitim verisi
4173 satır deprem mesajı:
- 2838 gerçek (2023 Kahramanmaraş depremi)
- 1335 sentetik (Qwen 2.5 üretilmiş, manuel düzeltilmiş)
Etiket düzeltmeleri (v3 → v5):
- Head B: 1130 satırda manuel inceleme + düzeltme
- Head C: 792 satır bulk düzeltme (SECURITY -226, MISSING_PERSON +112)
Lisans
Apache 2.0
Repo
Tam pipeline ve kod: https://github.com/hayat-agi/ai
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support
Model tree for arzu01koca/HayatAgi
Base model
dbmdz/bert-base-turkish-cased