Emotion-Aware Simulation-Based Testing of Medical LLM Chatbots

Authors: Meacham, S., Edwards, A.

Conference: 15th Computing Conference 2027

Dates: 08/07/2026

Publication Date: 08/07/2026

Abstract:

Patient-facing medical Large Language Models (LLMs) are difficult to validate using static benchmarks alone because their outputs are probabilistic and the course of a consultation depends on the in- teraction itself. This paper adapts SENSEI’s “simulate, then evaluate” approach to end-to-end testing of medical LLM chatbots. The frame- work models the simulated patient as a stateful, partially observable clinical environment using declarative YAML specifications that com- bine structured clinical context, staged fact disclosure, patient goals, dy- namic emotional state, and patient-driven termination. Conversations are evaluated separately using general conversational metrics, evidence- anchored medical checks, and behavioural safety assertions. The proto- type is implemented as a model-agnostic Python command-line applica- tion with CI/CD-compatible reporting. A proof-of-concept study com- prised eight SUT-focused runs and four dedicated simulator-conformance runs. Across six non-fault-injected SUT runs, no premature disclosures were observed in 129 opportunities; 59 of 69 authorised facts were re- alised (85.5%), and 27 of 29 relevant patient messages were goal-directed (93.1%). Mean emotional-state and health-literacy adherence across four dedicated conformance runs was 0.95. Both fault-injected runs resulted in patient-driven termination. These results demonstrate feasibility and interaction-level failure observability, but do not establish generalisabil- ity or clinical validity.

Source: Manual