Downloads · 30 days
0
vadimbelsky/bert-esi-triage-v49
bert-esi-triage-v49 is a text classification model from vadimbelsky. Use it when you need a label for a piece of text. It is set up for pytorch. The card lists the license as apache-2.0.
A multi-head BiomedBERT model that predicts Emergency Severity Index (ESI) acuity 1–5 from emergency-department triage notes. Designed as a decision-support tool for triage nurses, not as an autonomous diagnostic system.
Downloads · 30 days
0
Access
Public
Updated May 31, 2026
Repo size
439 MB
Likes
1
Public
Click a slice to open those files.
.pt439 MB · 100%
From the Hugging Face model README
A multi-head BiomedBERT model that predicts Emergency Severity Index (ESI) acuity 1–5 from emergency-department triage notes. Designed as a decision-support tool for triage nurses, not as an autonomous diagnostic system.
Model card status: Pre-release research artifact. Independent clinical validation has not been performed. Not approved for clinical deployment.
Read this section in full before any evaluation or use.
A controlled probe found a ~30 percentage-point ESI 1–2 catch-rate gap on sickle-cell disease (SCD) presentations across racial mention patterns (n=4 templates per group; small-n caveat). Subsequent paraphrase testing on a varied phrasing set reduced the apparent gap to ~3–7 pp. Interpretation: SCD recognition appears phrasing-sensitive in a way that interacts with race-coded language. Implication: Any pre-deployment fairness audit must include race-stratified SCD evaluation; we have not ruled out a real but smaller bias.
"Homeless" and other unhoused-status mentions correlated with 9–36 pp under-triage on presentations matched for clinical severity. The model has not learned to ignore SES-coded vocabulary. Implication: Site-level monitoring of triage decisions stratified by SES proxy variables is required.
On atypical-presentation MI (fatigue, abdominal pain) the gender gap was ~3 pp under-triage for women, consistent with the published EM literature on under-recognition of female ACS. Implication: Atypical MI recognition remains incomplete.
Triage labels disagree between sites by up to 58 pp on identical-content chief complaints (e.g. chest pain ESI 1–2: MIMIC Boston 82% vs Stanford MC-MED 24%). The model is calibrated against MIMIC-IV-ED; predictions on other sites should be expected to differ by similar margins. Implication: Per-site calibration is required before deployment at any new site.
Pediatric records are 0.002% of training data. Pediatric ESI 5 recall lower bound: 0%. Implication: This model is not intended for pediatric triage. Adult patients only.
Controlled experiments demonstrate that telegraphic format alone shifts predictions toward ESI 1 by 71% in adversarial pair tests, even when clinical content is matched. Adding "mild" or "well-appearing" to a telegraphic note can increase ESI 1 confidence. Implication: Format-sensitive over-triage is a known failure mode; ensemble with deterministic ESI-handbook engine recommended for production.
Per-corpus, after per-dialect calibration (compact +1.0, narrative 0) and ESI 1 logit bias (validated Bayes-optimal cost-sensitive recipe; Elkan 2001).
| Eval corpus | n | Overall exact | ESI 1 recall |
|---|---|---|---|
| MIMIC-IV-ED holdout | 19,876 | 54.7% | 84.6% |
| MC-MED clean | 11,521 | 58.9% | 89.0% |
| MIETIC clean | 1,200 | 83.5% | 86.7% |
| Lukina v3 | 1,026 | 49.3% | 94.3% |
Headline framing — read with caution. MIMIC overall exact 54.7% reflects a recall-optimized calibration; F1 max is at bias = 0 (F1 ≈ 58.7%). The +1.0 bias trades 6 pp exact for 25–30 pp ESI 1 recall, a deliberate safety choice (see "Calibration rationale" below).
Macro per-class recall is provided in the associated metrics JSON. Calibration ECE per corpus: MC-MED 0.059 (best), pediatric/anaphylaxis 0.19–0.25 (poor). The +1.0 bias does not improve probability quality; applications requiring calibrated probabilities (not just argmax) should apply per-dialect temperature scaling.
19-head BiomedBERT (BiomedNLP-BiomedBERT-base-uncased-abstract-fulltext encoder, 110M parameters):
esi_head (5-way softmax over ESI 1–5)The model was trained jointly on all 19 heads with a weighted loss (esi=2.0, symptom=1.5, others 0.1–1.0), label smoothing 0.05 on the ESI head, and per-symptom positive weights from the v6 loss-weights configuration. Training corpus is documented under "Training data" below.
Production inference applies a +1.0 logit bias to the ESI 1 class on compact dialect inputs and 0 on narrative dialect inputs. This is a derived Bayes-optimal cost-sensitive decision rule (Elkan, 2001):
bias_k = log(C_FN_k / C_FP_k)
A +1.0 bias on ESI 1 corresponds to a 2.7× cost ratio for false-negative (missed critical) vs false-positive (over-triage) errors — a clinical trade-off appropriate for triage decision support. This is not an inference patch: it is a documented production calibration of the softmax decision boundary, applied post-training, without modifying the argmax probability ordering on inputs not subject to dialect routing.
Per-dialect application avoids the regression observed when applying a uniform bias to in-distribution narrative inputs (which do not benefit from the recall lift).
For safety-critical triage decision support, the recommended stack is three-layer:
min(BERT, deterministic ESI-handbook engine) ensemble — the
engine reproduces the AHRQ ESI v4 handbook Steps A/B1/B2/B3/C/D
deterministically and catches concept-grounded acute presentations
(e.g. cardiac arrest, septic shock) that BERT alone has been
observed to miss-classify (see "Format-as-signal failure" disclosure
above).The deterministic engine is provided in the training repository for reference but is not bundled with this model artifact.
The model expects a single English-language text input — the chief complaint plus any structured vital signs, history, or arrival mode, serialized to a string. Maximum input length is 512 BiomedBERT tokens (longer inputs are truncated; chief complaint should appear in the first 500 characters).
Primary: 5-way softmax over ESI 1–5 (after calibration). Auxiliary: 18 additional heads predicting symptoms, resources, vitals, flags, etc. (multi-label or class as appropriate per head).
The model was trained on a curated mixture of publicly-available and research-use clinical text. Training corpus distribution (approximate):
Training data is not redistributed with this model. Users requiring training data must obtain it through the original distributors with appropriate data use agreements (DUAs).
Apache 2.0 for the model weights and configuration.
Note: training data licenses are separate and apply to the original data distributors (PhysioNet, Stanford StaRR, etc.); this model does not redistribute training data.
If you use this model, please cite the associated technical report. Preprint forthcoming; please contact the model authors for current citation pending publication.
Model authors: see Hugging Face profile.
For deployment-related questions including site calibration, fairness-audit guidance, or the recommended three-layer inference stack, please contact prior to any clinical use.