Design Hallucination Detection for Generated Clinical Notes
Last updated: November 29, 2026
Quick Overview
Design an ML system that checks each sentence of an LLM-generated clinical note against the visit transcript and flags unsupported or contradicted claims before the clinician signs, with a precision and latency budget suited to production.
Abridge
November 29, 20260
0
0 solved
Design an ML system that checks each sentence of an LLM-generated clinical note against the visit transcript and flags unsupported or contradicted claims before the clinician signs, with a precision and latency budget suited to production.
Trust is Abridge's core product promise, which is why notes link each statement back to evidence. The interviewer wants to see claim-level verification, a labeling and evaluation plan built on clinician judgment, and sharp thinking about the cost of false negatives versus alert fatigue.
What the Interviewer Expects
- Decompose notes into atomic claims tied to sentences
- Retrieve candidate evidence spans from the transcript
- Classify support as entailed, contradicted, or not found
- Build labeled data with clinicians and define severity
- Set thresholds by clinical risk and measure alert fatigue
- Fit the check into the end-of-visit latency budget
Key Topics to Cover
How to Approach This
- Start by mapping the business objective to a concrete ML objective and metric.
- Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
- Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
- Address the serving latency budget and whether batch or real-time inference is needed.
- Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
- How do you handle claims that come from the chart rather than the conversation?
- How would you detect omissions, not just fabrications?
- How do you keep the verifier from sharing blind spots with the generator?
- How would you monitor this after launch?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice ML System Design ProblemsSample Answer
Requirements
Per note: label every claim as supported, contradicted, or unsupported, with evidence spans. Latency: under 5 seconds added to note generation. Priority: high recall on high-severity claims (medicatio...
High-Level Design
- Claim extraction: split sentences into atomic facts using a small fine-tuned model ("patient takes metformin 500 mg twice daily" becomes drug, dose, frequency claims). 2) Evidence retrieval: embed ...