Skip to main content

Model Output Accuracy

Accuracy evaluators measure how well the AI’s decisions match ground truth or expert consensus. This is the foundation of clinical AI evaluation.

Triage Accuracy Evaluator

Assesses whether the AI assigned the correct urgency level to patient cases. Supports multi-class classification with configurable severity levels.
triage_accuracy.py
Asymmetric Weighting: The severity_weights configuration reflects clinical reality: under-triaging a heart attack is far worse than over-triaging a minor complaint. Configure weights based on your clinical risk tolerance.

Diagnosis Accuracy Evaluator

Evaluates AI-suggested diagnoses against confirmed diagnoses or expert consensus. Supports differential diagnosis ranking and ICD-10 code matching.

Clinical Safety

Safety evaluators detect potentially dangerous AI behaviors, missed red flags, inappropriate advice, or failure to escalate critical cases.

Red Flag Detection Evaluator

Checks whether the AI correctly identified clinical red flags that require immediate attention.
red_flag_evaluator.py
Critical Safety Metric: Red flag detection is often the most important safety metric. A missed red flag can result in delayed treatment for conditions like MI, stroke, or sepsis. Configure with zero tolerance for critical protocols.

Escalation Appropriateness Evaluator

Evaluates whether the AI appropriately escalated or de-escalated care based on clinical presentation.

Hallucination Detection

Healthcare AI must never fabricate medical information. The hallucination detector identifies invented medications, non-existent procedures, fabricated studies, or unsupported claims.
hallucination_evaluator.py

Common Hallucination Patterns

Completeness & Coverage

Ensures the AI captured all clinically relevant information and addressed necessary concerns.
completeness_evaluator.py

Custom Evaluators

For specialized use cases, you can define custom evaluators with your own scoring logic:
custom_evaluator.py

Combining Evaluators

Most production evaluations use multiple evaluators to get a comprehensive view:
Fail Conditions: Use fail_conditions to define hard gates. An evaluation that misses critical red flags should fail regardless of other scores.