Sari la conținut
aiqbenchInformații despre AI & calcul cuantic
ȘtiriAnalizeBenchmark-uriSkill-uriÎntreabă AIÎnvațăDespre
...Se încarcă sesiunea
ȘtiriAnalizeBenchmark-uriSkill-uriÎntreabă AIÎnvațăDespre

Română · beta. Traducerea a fost făcută automat și este încă în curs de revizuire. Citește pagina în engleză

  1. Joburile viitorului
  2. ›
  3. Biomedical AI Specialist
  4. ›
  5. Lecția 5 din 8

Lecțiile acestui traseu sunt publicate deocamdată doar în engleză, așa că lecția de mai jos apare în engleză. Restul — module, quiz și materiale — funcționează la fel.

Clinical Language Models and EHR Data

Intermediar¶ Citire · 5 min⚑ Misiune · 40 min◆ Test · 5 întrebări✓ Verificată la 23 nov. 2026

Vei putea să:

You can explain how electronic health record data is structured (codes, notes, time-stamped events), what de-identification under HIPAA Safe Harbor does and does not protect, why label leakage is endemic in EHR prediction tasks, and how to judge a clinical LLM's answer for hallucination before it reaches a clinician.

What a health record actually looks like

Open the MIMIC-IV demo linked in this module and you will find a set of tables, not a chart. There are patients and admissions; diagnoses coded in ICD-10 (and older ICD-9) assigned at discharge for billing; procedures; lab events keyed by LOINC codes with time stamps; prescriptions; and, in the full database, free-text notes — admission notes, progress notes, radiology reports, discharge summaries. Each row is time-stamped, and the time stamps are where most of the trouble lives.

Three things to internalise. First, codes are not diagnoses. A discharge code reflects what was billable and documented, assigned by a coder after the stay ended. Second, events are intervals: a lab result has an order time, a collection time and a result time, and a model that uses the result time as if it were the order time is looking into the future. Third, the clinical story is in the notes. The structured tables are the shadow of the care; the text is the care.

De-identification: what it protects and what it does not

Under the US HIPAA Privacy Rule, data is de-identified through Safe Harbor — removing eighteen categories of identifiers (names, geographic units smaller than a state, all date elements except year, phone numbers, medical record numbers, and so on, with ages over 89 aggregated) — or through Expert Determination, where a qualified expert documents that re-identification risk is very small. MIMIC uses Safe Harbor plus a trick: every patient's dates are shifted into the future by a random per-patient offset, so intervals within a patient are preserved while calendar dates are meaningless.

Free text is the hard part. Names, dates and locations are embedded in sentences. Tools such as Philter, in this module's materials, combine rules and statistical models to strip them, and the paper is explicit that recall matters more than precision: an over-redacted word costs a little information; a leaked name is a breach. Even so, de-identification is not anonymisation. Rare conditions, unusual timelines and linkable external data create residual re-identification risk, which is why the full MIMIC requires credentialing and a data-use agreement, and why under the GDPR (Module 6) pseudonymised data is still personal data for anyone who can re-identify it.

Label leakage is the default, not the exception

Take the most common EHR task: predict in-hospital mortality at admission. The tables contain the discharge disposition ("died"), codes for comfort-measures-only, a death note, and vital signs that stop. A model given "everything in the record" will find these in seconds and report a near-perfect AUROC. Nothing was learned.

The discipline is a prediction-time contract: define the exact moment the prediction is made (say, 24 hours after admission); a feature window that ends at that moment, using order times not result times; a gap, if the outcome could already be known by then; and an outcome window. Then audit every feature against the contract. This is tedious, and it is the job.

Clinical language models

Large language models answer medical questions fluently. The Med-PaLM work in this module's materials assembled MultiMedQA, a set of question-answering benchmarks, and reported that Flan-PaLM reached 67.6% on USMLE-style MedQA questions; successor models have gone well higher. The same paper did something more important: it had clinicians rate long-form answers, and found gaps in correct reasoning, in evidence retrieval and in potential for harm that the multiple-choice score did not show. Instruction prompt tuning narrowed those gaps but did not close them.

The failure mode that matters in a hospital is hallucination with confidence: a plausible drug dose that is wrong, a citation to a trial that does not exist, a summary that states a finding the note never contained. Mitigations that work in practice are structural, not promptly-worded: ground the model on the actual chart with retrieval and show the source span for every claim; permit abstention; constrain the task to drafting and summarisation that a clinician signs; log every output. Wornow and colleagues have argued that EHR foundation models are mostly evaluated on benchmark tasks that do not measure clinical value, which is a fair description of the state of the field.

Worked procedure: the MIMIC demo in pandas

  1. Download the demo (open access, about a hundred patients) and load admissions.csv and diagnoses_icd.csv.
  2. Compute length of stay as discharge time minus admission time; group by admission type and take the median.
  3. Count ICD codes and list the ten most frequent; note that they are discharge codes.
  4. Now play adversary: list every column in those two tables that would leak in-hospital mortality to a model predicting it at admission. Discharge location, discharge time, death time and any hospice-related code are the obvious ones.
  5. Write the prediction-time contract that removes each leak.

What is still unsettled

Whether LLM-drafted notes and summaries reduce or increase documentation errors is being measured now, not known. Ambient "scribe" tools are spreading faster than their evaluation. And the legal position of a clinician who signs a model-drafted note is not settled anywhere.

What to remember

  • Codes are for billing; notes hold the story; time stamps decide what is legitimately knowable.
  • Safe Harbor removes eighteen identifier types; de-identified is not anonymous, and text is the weak point.
  • Define the prediction time first, then audit every feature against it; leakage is the default.
  • Multiple-choice scores for clinical LLMs overstate safety; grounded retrieval, abstention and human sign-off are the real controls.

Materiale selectate

1.9h

Munca de profunzime se întâmplă aici — lecția este briefingul tău.

  • MIMIC-IV Clinical Database Demo (PhysioNet, open access)Documentație· 30 min
  • Large Language Models Encode Clinical Knowledge — Med-PaLM (Singhal et al.)Lucrare· 50 min
  • Protected Health Information Filter (Philter): Accurately and Securely De-identifying Free-Text Clinical Notes (Norgeot et al., npj Digital Medicine)Lucrare· 35 min

În direct pe aiqbench

Subiectul acestei lecții în restul site-ului, astăzi.

În știri, ultimele 30 de zile

  • Can Registry Revision Histories Improve Point-in-Time Forecasts of Clinical Trial Progression?arXiv · 4 dec.
  • Implementation Variability Makes Sepsis-3 an Inconsistent Measuring Model for Early AI Prediction on Clinical DataarXiv · 4 dec.
  • Spectral Parameterization Reveals a Dissociation Between Chronological Age Prediction and Clinical Discrimination in EEG Brain-Age ModelingarXiv · 4 dec.
Mai multe știri pe acest subiect →

Mergi mai departe

  • Fișele benchmarkurilorCe măsoară fiecare benchmark și unde nu ajunge.
  • Întreabă AI despre această lecțieDeschide Întreabă AI cu o întrebare despre această lecție, cu răspuns din arhiva de știri, cu surse.

Testează-ți cunoștințele

5 întrebări în 100 de secunde, pe o pagină separată. Citește mai întâi tot ce este mai sus.

Testează-ți cunoștințele →

Misiunea modulului

35–45 min

Download the MIMIC-IV Clinical Database Demo from PhysioNet (open access, ~100 patients, no credentialing). Load admissions and diagnoses_icd with pandas. Compute median length of stay by admission type and the ten most frequent ICD codes. Then write half a page listing three fields or timing artefacts in these tables that would leak the label into a naive in-hospital-mortality model, and how you would redesign the feature window to remove each leak.

Se încarcă lucrarea ta…

← Lecția anterioară4. Medical Imaging and Clinical MLLecția următoare →6. Validation, Bias and Regulation
aiqbench
Informații despre AI & calcul cuantic© aiqbench. Toate drepturile rezervate.

Fluxuri:RSS·JSON Feed

LimbăEnglish·Românăbeta
ȘtiriAI & tehnologieCuanticAnalize
ExploreazăBenchmark-uriÎnvață
CompanieDespreÎncredereInformații legaleTermeni și condițiiPolitica de confidențialitateNotificări privind drepturile de autorȘtergerea datelorRaportează conținut

Perspectiva aiqbench, analizele, rezumatul zilnic și răspunsurile din Întreabă sunt scrise de modele AI din sursele afișate, fără revizuire editorială înainte de publicare. Pot conține erori — verifică sursa. Cum este folosit modelul →

  • Știri
  • Analize
  • Întreabă
  • Topuri
  • Cont