Urgent.News

What's breaking now, across thousands of outlets.

AI

Why Your ML Model Should Sometimes Say 'I Don't Know': Building Uncertainty-Aware Clinical AI

๐Ÿšจ Predictive models tell us what will happen. ๐Ÿง  Causal models tell us what happens IF we intervene . โ“ But neither tells us what we should DO . In healthcare, this gap is dangerous. I just finished building CausalSepsis-DI v2 , an end-to-end Healthcare Decision Intelligence system that bridges the gap between causal estimation and safe clinical action. ๐Ÿฅ The Clinical Question: Should weโ€ฆ

In healthcare, predictive models tell us what will happen, while causal models explain what happens if we intervene. However, neither addresses what actions we should take. This gap became evident when I developed CausalSepsis-DI v2, an end-to-end Healthcare Decision Intelligence system that connects the dots between causal analysis and safe clinical decisions.

The question was whether to administer early antibiotics to an ICU patient to shorten their stay. Traditional machine learning provided a predicted ICU length of stay, but that information was insufficient for clinicians.

The breakthrough came with a three-class decision policy. Instead of imposing binary treat or donโ€™t treat choices (which could be risky when uncertainty loomed), the system generated three options: treat, standard care, or defer to the clinician. This wasnโ€™t a limitation but a featureโ€” a trustworthy clinical AI should acknowledge when it lacks certainty.

The technical foundation included causal inference using LinearDML with cross-fitting for valid CATEs and confidence intervals, along with propensity diagnostics for initial checks. The decision policy was cost-sensitive, utility-based, and uncertainty-aware. Evaluation relied on Inverse Propensity Weighting with bootstrap confidence intervals for counterfactual estimation.

To address the lack of sufficient real-world data, I created a synthetic cohort of 1500 patients, complete with verified causal effects, varied treatment responses, and realistic propensity distributions. The entire pipeline is modular and can be seamlessly integrated with real Electronic Health Record data sources such as MIMIC-IV full, eICU, and hospital systems.

The results were impressive: 62.1% of patients were recommended for early antibiotics, 33.8% for standard care, and only 4.1% were directed to defer to a clinician (the uncertainty zone). Policy evaluation showed a 3.70-day reduction in mean ICU length of stay compared to current practices. The pipeline is fully adaptable and can be directly applied to real EHR data. For those interested in the full interactive notebook and architecture, itโ€™s available at https://www.kaggle.com/code/ahmadihossein/sepsisdecision-di.

I invite feedback from clinicians who work with decision support systems, causal inference experts, and MLOps engineers crafting production ML models. The biggest challenge in deploying clinical ML, as I see it, is ensuring trustworthy, uncertainty-aware systems that donโ€™t force unsafe binary decisions when the evidence is unclear.

Written by urgent.news from Dev.to's reporting โ€” not their text. Machine-written โ€” may contain errors; check the original before relying on it.

Read the original at dev.to โ†’

More in AI

Real Token Cost of MCP: 91K Tokens of JSON

255 MCP tools. 91,000 tokens of JSON schemas. Before you ask a single question. Here's what I found and how I fixed it. The experiment I connected Claude Code to 5 MCP servers.

More from Saturday 22 August โ†’