Abstract
Text-to-image generation has been increasingly applied in medical domains for various purposes such as data augmentation and education. Evaluating the quality and clinical reliability of these generated images is essential. However, existing methods mainly assess image realism or diversity, while failing to capture whether the generated images reflect the intended clinical semantics, such as anatomical location and pathology. In this study, we propose the Clinical Semantics Evaluator (CSEval), a framework that leverages language models to assess clinical semantic alignment between the generated images and their conditioning prompts. Our experiments show that CSEval identifies semantic inconsistencies overlooked by other metrics and correlates with expert judgment. CSEval provides a scalable and clinically meaningful complement to existing evaluation methods, supporting the safe adoption of generative models in healthcare.
Introduction
Text-to-Image (T2I) generation models, such as Latent Diffusion Models, are rapidly being adapted for the medical domain to support data augmentation and medical education. However, evaluating the quality of these synthetic medical images remains a significant challenge.
Standard computer vision metrics like Fréchet Inception Distance (FID) or MS-SSIM measure visual realism and diversity, while CLIP scores assess general text-image alignment. Unfortunately, these metrics are "clinically blind." They may confirm that an image resembles a realistic chest X-ray without verifying if it contains the specific clinical semantics requested—such as the correct disease, severity, or anatomical location. Deploying realistic but clinically inaccurate synthetic data poses severe risks in healthcare, necessitating evaluation metrics that understand medical context.
The CSEval Framework
To address these limitations, we introduce the Clinical Semantics Evaluator (CSEval). Rather than evaluating clinical accuracy in pixel space, CSEval reframes the evaluation as a text-matching problem by translating synthetic images back into structured reports.
The CSEval pipeline consists of four modular steps:
- Image Generation: A Latent Diffusion Model (LDM) generates a synthetic medical image based on a detailed user prompt.
- Report Generation: A grounded radiology report generation model (MAIRA-2) analyzes the synthetic image to produce a clinical description.
- Entity Extraction: A domain-specific NLP model (RadGraph-XL) extracts clinical entities (observations, anatomical structures) and their relationships from both the original prompt and the generated report.
- Scoring: The framework calculates a RadGraph-F1 score, measuring the overlap between the entity-relation graphs of the prompt and the report.
This approach effectively mimics the workflow of a radiologist, making the evaluation inherently more interpretable and clinically relevant.
Experimental Setup
The models within the CSEval pipeline (LDM, MAIRA-2, and RadGraph-XL) were trained on large-scale medical datasets, primarily MIMIC-CXR. For evaluation, a custom dataset of 310 synthetic chest X-ray images was generated using prompt templates that varied across four thoracic diseases (cardiomegaly, pleural effusion, opacification, pneumothorax), anatomical locations, and severity levels.
Key Results and Insights
Our evaluation demonstrates that CSEval provides a more accurate reflection of clinical quality than traditional metrics.
Alignment with Expert Judgment
CSEval's RadGraph-F1 score was the only metric whose rank ordering of pathologies aligned with expert radiologist assessments. It achieved a stronger Kendall’s $\tau$ rank correlation with expert scores ($\tau = 0.375$) compared to BioViL-T, a domain-specific medical CLIP model ($\tau = 0.291$).
Identifying Clinical Failures
Standard metrics often fail to distinguish between realistic-looking images and clinically accurate ones. For example, in the case of 'Pneumothorax', metrics like MS-SSIM and BioViL-T provided scores comparable to 'Opacification'. However, expert scores revealed a significant gap in clinical fidelity (0.144 for Pneumothorax vs. 0.920 for Opacification). CSEval successfully identified this failure, assigning Pneumothorax a score of 0.043 compared to 0.105 for Opacification.
Modularity and Interpretability
A key strength of CSEval is its modularity. As report generation or entity extraction models improve, they can be integrated into the pipeline to enhance accuracy. Furthermore, by operating in the text space, CSEval avoids the "black box" nature of latent space metrics, providing clear justifications for its scores based on specific clinical entities.
Limitations and Future Work
CSEval is currently limited by the performance of its underlying components. If the report generator (MAIRA-2) fails to detect a pathology present in the image, the evaluation score is unfairly penalized. Additionally, the RadGraph-F1 score can be influenced by textual artifacts like sentence length or formatting.
Future research will focus on developing more refined methodologies for calculating entity similarity to strip away textual noise and further enhance the precision of the CSEval framework.
Summary updated