18 · Healthcare · Open weights

Every symptom, drug and lab value, pinpointed.

cbx-clinical-entity-extractor-68M

Finds symptoms, diseases, procedures, lab values, medications, doses and other clinical details in English case-report text, as 41 entity types.

CC BY-NC 4.0: non-commercial use only. Not a medical device.

Real inputs it was built for.

Open any example in the Playground to see the live output.

Abdominal pain

A 47-year-old woman presented with a 3-day history of fever and right upper quadrant pain. On examination she was jaundiced and tender over the right costal margin. Laboratory tests showed elevated white cell count and raised bilirubin. Abdominal ultrasound revealed gallstones and a dilated common bile duct. She was started on intravenous ceftriaxone 2 g daily and underwent endoscopic retrograde cholangiopancreatography.

Run it

Chest pain

A 62-year-old man with a history of hypertension presented with severe chest pain radiating to the left arm for two hours. Electrocardiography showed ST elevation in the anterior leads and troponin was elevated. He received aspirin 300 mg and underwent primary percutaneous coronary intervention of the left anterior descending artery.

Run it

Skin lesion

A 9-year-old boy was brought to clinic with a painless, 2 cm erythematous nodule on his left forearm that had enlarged over three weeks. Biopsy was performed and histology confirmed a pyogenic granuloma. The lesion was excised under local anaesthesia and had not recurred at six-month follow-up.

Run it

Benchmark

Measured against the alternative.

0.000

Exact-match F1 — MACCROBAT2020 test split, 41 clinical entity types

Full results ↗
  • cbx-clinical-entity-extractor-68M0.622
  • CRF (same training data)0.538
  • gpt-5.4-mini, zero-shot0.512
  • GLiNER-BioMed large, zero-shot0.319

From the model card

Extracts clinical entities from English clinical narrative text such as case reports: signs and symptoms, diseases, diagnostic and therapeutic procedures, lab values, medications and doses, anatomy, dates, durations and more: the 41 entity types of MACCROBAT2020. Fine-tuned from Ettin encoder 68m (68.2M parameters). 0.622 exact-match F1 and 0.757 overlap F1 on our MACCROBAT2020 test split; about 153 ms per ~700-token document on a CPU.

Current version: v0.1 (use revision="v0.1" to pin it). Also available in 17M.

Licence: CC BY-NC 4.0, non-commercial use only (see Licence). Not a medical device; not for diagnosis or treatment decisions (see Intended use and disclaimer).

Model

68M

Licence

CC BY-NC 4.0

Fine-tuned from

jhu-clsp/ettin-encoder-68m

Read the full model card ↗

Full results. Every number, from the card.

MACCROBAT2020 has no official split. We split its 200 documents into 140 train / 30 validation / 30 test documents (iterative stratification by label, seed 42) and report the test split (30 documents, 4,128 entities), scored once. Exact = start, end and label all match; overlap = same label and overlapping characters (one-to-one). All annotated entities are scored, including nested ones the model cannot output (a perfect flat tagger would reach about 0.985 exact F1).

ModelExact F1PrecisionRecallOverlap F1Macro F1 (labels with ≥ 10 test entities)
cbx-clinical-entity-extractor-68M (this model)0.6220.5850.6630.7570.540
cbx-clinical-entity-extractor-17M0.5470.5020.6010.6850.476
CRF (word features), trained by us on the same 140 documents0.5380.5710.5080.6640.482
gpt-5.4-mini, zero-shot (annotation guide, reasoning low)0.5120.5240.5000.6420.501
gpt-5.4-mini, few-shot (guide + 2 annotated training documents)0.5050.4990.5120.6510.479
GLiNER-BioMed large v1.0, zero-shot0.3190.3520.2910.4120.306
  • 95% bootstrap interval (by document) of this model's exact F1: 0.582–0.658. Validation split exact F1: 0.634.
  • The CRF, gpt-5.4-mini and GLiNER-BioMed rows were run by us on the same test split. gpt-5.4-mini was given an annotation guide with all 41 labels and MACCROBAT's span conventions, one call per document. GLiNER-BioMed was given the 41 labels as plain-English names; its threshold was chosen on the validation split.
  • Most remaining errors are span boundaries (overlap F1 is well above exact F1), and the long-modifier and history labels (Detailed_description, History, Family_history, Coreference).

Per-label exact F1 on the test split (labels with at least 10 test entities):

LabelTest entitiesExact F1
Diagnostic_procedure7720.72
Sign_symptom5620.67
Biological_structure5070.64
Lab_value4780.70
Detailed_description4490.41
Medication2000.77
Disease_disorder1990.50
Therapeutic_procedure1630.55
Date1330.66
Clinical_event880.66
History660.29
Dosage600.74
Severity590.62
Nonbiological_location510.75
Coreference440.11
Duration440.55
Age300.89
Sex280.98
Administration260.53
Distance210.48
Activity190.20
Family_history180.09
Time180.30
Subject150.41
Frequency120.25

Labels with fewer than 10 test entities (for example Mass, Height, Weight, Biological_attribute) are too rare in MACCROBAT to measure or learn reliably.

Speed

One document, median of 20 runs (tokenise + model + decode):

~700 tokens~1,840 tokens
CPU, 8 threads153 ms573 ms
GPU (NVIDIA TITAN RTX)14 ms22 ms

Know its limits. Before you ship it.

Limitations

  • Small training set (140 documents of one genre: published case reports). Expect lower accuracy on other clinical text such as EHR notes, discharge summaries, abbreviations-heavy notes or non-English text.
  • Flat output: one label per span, no nested or discontinuous spans, no relations, no negation or uncertainty attributes (in "no fever", "fever" is returned as Sign_symptom; the negation is not marked).
  • Tag one document per call. Predictions depend on the surrounding text: when we joined four unrelated documents into one input, about 20% of the predicted spans changed compared with tagging each document alone. Texts longer than 2,046 tokens are split into overlapping windows, which also shifts a few predictions.
  • Rare labels (fewer than about 30 training examples) are unreliable.
  • Not tested for fairness across patient groups; may reflect biases of the published case-report literature.

Training data

What it learned from.

01

Data

MACCROBAT2020 (Caufield, J. Harry (2019). MACCROBAT. figshare. Dataset. MACCROBAT2020 release (version 2). https://doi.org/10.6084/m9.figshare.9764942.v2; CC BY 4.0): 200 PubMed Central clinical case reports annotated by hand with 41 entity types. Training used the 140 training documents (17,113 entities). Overlapping annotations (1.8%) were reduced to the longest span for training; discontinuous ones were split into fragments.

02

Model

Ettin encoder with a linear BIO tagging layer (83 tags), whole documents up to 2,048 tokens, fp16 mixed precision; learning rate and checkpoint chosen on the validation split.

2 sizes. Smaller is faster, larger is more accurate.

Run it on your own data. In the CobuildX Console.

Sign in to the console to call this model live, compare sizes and create an API key.