Darrell S. Best Jr.

AI in Healthcare: Transforming Medical Diagnostics

Medical AI Article
Share

Half the Chart Looks Like a Typo, and That Is the Point

Open any clinical report at random and there is a good chance it reads like someone spilled abbreviations across the page: "pt w/ h/o CHF, SOB x3d, r/o PNA," followed by clipped notes, misspellings, and copy-pasted fragments from older visits.

That kind of report is exactly what makes automated medical coding so difficult -- and so necessary.

Across the healthcare industry, a growing wave of AI systems aim to map unstructured medical reports to ICD codes and predict likely conditions using machine learning that can handle how clinicians actually write. The global transition from ICD-10 to ICD-11 (now adopted by over 45 countries, with the WHO's 2025 edition adding FHIR API integration and NLP support) makes this work even more relevant. The U.S. still runs on ICD-10-CM, but the shift is coming and the coding landscape is only getting more complex. Understanding how these systems work, where they struggle, and why they matter is essential for anyone following the future of clinical AI.

The Messy Reality of Medical Text

Clinical text is not clean prose. It is fast, compressed communication written under time pressure.

Abbreviations change by specialty. Typos are routine. Formatting varies across hospitals, clinics, and even individual providers in the same unit.

A diagnosis might appear as a formal term in one report, a shorthand in another, and an implied statement in a third. "Type 2 diabetes mellitus" becomes "T2DM," "DM2," "diabetic," or just a medication list that implies the condition without ever naming it.

Any model that expects standardized language will fail quickly in this environment.

Why Keyword Matching Breaks

A lot of early systems relied on keyword rules. On paper that sounds efficient.

In practice, it breaks on context.

  • "rule out sepsis" is not the same as confirmed sepsis
  • "family history of stroke" is not current stroke
  • "denies chest pain" contains the words but flips the meaning
  • same condition can be expressed with dozens of surface-level variants

Keyword pipelines either miss too much or overfire and create noisy labels. For coding support, that noise is expensive -- driving claim denials, audit risk, and misallocated resources.

How Modern ICD Coding Pipelines Work

The most effective approaches treat automated ICD coding as a staged pipeline, where each part of the problem is explicit and independently measurable.

1) Ingest and normalize raw reports

Reports arrive in different templates and export formats. The first stage normalizes whitespace, section boundaries, and obvious artifacts while preserving clinically meaningful wording. Stripping too aggressively risks losing the very signals the downstream model needs.

2) Clinical text preprocessing

High-frequency abbreviations are expanded where confidence is high, uncertainty markers are retained, and negation cues are kept intact. The goal is not to "clean" the text into perfect English. The goal is to preserve medical meaning so the model can reason over it accurately.

3) Encode text with transformer-based models

For representation learning, many teams fine-tune transformer-based text encoders -- often using frameworks like Hugging Face -- to produce domain-adapted embeddings that capture clinical context far better than sparse token rules.

The task is typically framed as multilabel classification, because a single report can map to multiple ICD codes simultaneously.

4) Predict ICD codes and condition likelihoods

The model outputs ranked ICD candidates with confidence scores, plus condition-level predictions that can feed into downstream triage and review workflows.

5) Post-process and surface for human review

Threshold calibration is applied by code family, and low-confidence outputs are routed for manual validation. In healthcare, uncertain automation should escalate to a human reviewer, not pretend certainty.

Where Accuracy Gets Hard

Accuracy is not one number. It shifts by condition prevalence, writing style, and documentation quality.

Rare codes are the toughest. A system can have strong overall micro-F1 and still underperform badly on low-frequency but clinically important labels.

Negation and temporality are persistent failure modes. "history of" vs "active" and "possible" vs "confirmed" can flip coding decisions entirely.

Class imbalance also distorts confidence. Without careful loss design and calibration, models become overconfident on common diagnoses and hesitant on edge cases.

This is why rigorous evaluation demands per-code precision and recall, calibration error analysis, and confusion clustering rather than celebration of a single aggregate metric.

What This Work Is Actually For

AI-driven medical coding is not about replacing clinical judgment. It is about reducing the friction between messy narrative documentation and the structured coding systems that drive care operations, quality tracking, and research.

When these pipelines work well, coders and clinicians spend less time chasing documentation ambiguity and more time on patient-centered decisions.

That is the practical promise worth pursuing: grounded models, honest error analysis, and systems that respect how real clinical text is written rather than wishing it were something else.

Darrell S. Best Jr.
Written by

Darrell S. Best Jr.

Senior AI Research Engineer II, USC Information Sciences Institute

AI/ML engineer with 7+ years delivering production AI systems in defense, healthcare, and cybersecurity. Leads projects spanning multilingual LLMs, federated learning, and medical text classification.

Share
Back to Blog