Metamorphic Testing for Clinical ML Models: A Framework Proposal and Pilot Study
Jie JW Wu, Feiyu E, Bo Chen
Abstract
Machine learning models for clinical prediction tasks, such as in-hospital mortality and sepsis onset, routinely achieve high AUROC scores. However, AUROC measures ranking performance rather than clinical sensibility. A model may rank patients correctly overall while predicting a lower mortality risk when a patient's SOFA score worsens, contradicting established medical knowledge. This paper proposes applying metamorphic testing (MT) to clinical machine learning models to evaluate behavioral correctness without requiring ground-truth labels for individual predictions. We design a catalog of 12 candidate metamorphic relations (MRs) for three ICU prediction tasks using the MIMIC-III and MIMIC-IV datasets, with each MR grounded in an authoritative clinical guideline. We further propose a five-layer validation strategy to ensure that MRs are clinically sound before deployment. As a feasibility study, we evaluate the approach on the UCI Heart Disease dataset. Although the three clinical models achieve strong predictive performance (AUROC = 0.849-0.900), they exhibit MT violation rates ranging from 27% to 87% across five pilot MRs. An injected-fault experiment further shows that a sign-negation error in a blood pressure feature remains undetected by AUROC but increases the MT violation rate by 31-67 percentage points. These findings suggest that metamorphic testing provides a valuable complement to conventional performance metrics for assessing the behavioral correctness of clinical prediction models.
Create a lesson
Related papers
When Knowledge Changes: Metamorphic Testing of RAG Systems with Mutations
Shared title terminology · Jinhan Kim, Samuele Pasini, Paolo Tonella
MultiFixer: A Coordinator-Proposer Based Multi-Agent Framework For Fixing Multi-Hunk Bugs
Shared title terminology · Haichuan Hu, Chunrong Fang, Ye Shang et al.
Input Relation Prompting for Metamorphic Testing on Query-Based Systems
Shared title terminology · Eng-Shen Tu, Shin-Jie Lee
Simulation-Based Testing of RCM-Constrained Robotic Software via Task Manifolds
Shared title terminology · Zhenyu Jiang, Yanlin Li, Rongjie Yan et al.
Testing Settlement Flags after Late Evidence and Process Restart
Shared title terminology · Zengjian Liu, Tommy He, ELE Zhao et al.
Before the Choice: An Evidential Framework for Studying Prospective Representations in Language Models
Shared title terminology · Sion Israel Sion