A Fail-Safe Layered Guardrail for Emergency Detection in LLM-Based Health Assistants

Large language model (LLM) assistants that answer health questions face an asymmetric error cost: failing to recognise a medical emergency can cause serious harm, whereas an unnecessary escalation costs only inconvenience. We present the safety layer of HealthSense AI, a multi-agent health information assistant, and describe a layered guardrail in which a deterministic keyword screen routes each input, an LLM classifier makes the final decision on every input, and the deterministic layer serves as a fail-safe floor whenever the classifier cannot run. A second, independent guardrail screens generated output. We evaluate the design on 87 cases across two test rounds: a 56-case red-team suite written alongside the guardrail, and a 31-case independent set written from how people actually describe emergencies — lay somatic language, apologetic hedging, non-native English. The final system achieves 100% emergency recall (46/46), zero false alarms on 28 safe inputs and outputs, and 100% recall on 13 unsafe outputs. We also report two failures found during development: a keyword whitelist that scored perfectly on the suite it was built against but wrongly blocked 6 of 10 safe questions on the independent set, and a silent regression in which the LLM classifier was disabled without raising an error. Both shaped the final design. All code and test cases are public.

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-09-04
DOI
https://doi.org/10.5281/zenodo.22301992
Primary Topic
Topic Modeling
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A Fail-Safe Layered Guardrail for Emergency Detection in LLM-Based Health Assistants

smita bagchi sanyal chaudhuri, smita bagchi sanyal chaudhuri
Zenodo (CERN European Organization for Nuclear Research)
Topic Modeling
article

A Fail-Safe Layered Guardrail for Emergency Detection in LLM-Based Health Assistants

smita bagchi sanyal chaudhuri, smita bagchi sanyal chaudhuri
article en

Abstract

Large language model (LLM) assistants that answer health questions face an asymmetric error cost: failing to recognise a medical emergency can cause serious harm, whereas an unnecessary escalation costs only inconvenience. We present the safety layer of HealthSense AI, a multi-agent health information assistant, and describe a layered guardrail in which a deterministic keyword screen routes each input, an LLM classifier makes the final decision on every input, and the deterministic layer serves as a fail-safe floor whenever the classifier cannot run. A second, independent guardrail screens generated output. We evaluate the design on 87 cases across two test rounds: a 56-case red-team suite written alongside the guardrail, and a 31-case independent set written from how people actually describe emergencies — lay somatic language, apologetic hedging, non-native English. The final system achieves 100% emergency recall (46/46), zero false alarms on 28 safe inputs and outputs, and 100% recall on 13 unsafe outputs. We also report two failures found during development: a keyword whitelist that scored perfectly on the suite it was built against but wrongly blocked 6 of 10 safe questions on the independent set, and a silent regression in which the LLM classifier was disabled without raising an error. Both shaped the final design. All code and test cases are public.

Zenodo (CERN European Organization for Nuclear Research)
Egyptian e-Learning University (EG)
Quality Education, Peace, Justice and strong institutions
Openalex Percentile: Top 8%
Topic Modeling
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.