Automated Generation of Accurate & Fluent Medical X-ray Reports

Hoang T. N. Nguyen, Dong Nie, Taivanbat Badamdorj, Yujie Liu, Yingying Zhu, Jason Truong, Li Cheng

Introduction

The interpretation of medical imaging, particularly chest X-rays, is a cornerstone of diagnostic medicine. However, the manual generation of radiology reports represents a significant bottleneck in healthcare workflows. A radiologist typically spends five to ten minutes per report, a process that is not only time-consuming but also susceptible to human error under high-volume conditions.

While artificial intelligence has demonstrated remarkable success in general image captioning, medical report generation presents unique challenges. Standard models often prioritize linguistic fluency—producing grammatically correct and natural-sounding text—at the expense of clinical accuracy. In a medical context, a fluent but factually incorrect report (e.g., missing a subtle pneumonia diagnosis) is worse than no report at all. Furthermore, most existing AI models analyze X-ray images in isolation, ignoring the critical contextual information—such as patient clinical history and multi-view perspectives—that human radiologists rely upon.

To address these issues, researchers have developed a novel "categorize-generate-interpret" framework. This system integrates multi-view image data with clinical history and employs a differentiable "interpreter" to ensure medical consistency, achieving state-of-the-art performance in both fluency and clinical precision.

Methodology: The Categorize-Generate-Interpret Pipeline

The proposed framework mimics the professional workflow of a radiologist through a three-module pipeline:

  1. The Classifier: This module processes multi-view X-ray images using a DenseNet-121 backbone and the patient’s clinical history using a Transformer encoder. It produces an enriched disease embedding, which serves as a structured digital checklist of potential diseases, their states (positive, negative, or uncertain), and their relative severity.
  2. The Generator: A Transformer-based module receives this enriched embedding and translates the structured "checklist" into a fluent, natural-language medical report. Unlike generic text generators, this module is explicitly conditioned on the identified disease states.
  3. The Interpreter: This is the framework's most innovative component. Functioning as an internal fact-checker, the interpreter is a differentiable module that "reads" the generated report to extract disease labels. By comparing these extracted labels against the original findings from the Classifier, the system calculates a consistency loss. This feedback loop forces the Generator to remain factually grounded, penalizing contradictions during training.
Figure 1: Overview of the proposed categorize-generate-interpret framework, showing the integration of multi-view images and clinical history through the Classifier, Generator, and Interpreter modules.

Key Insights: Context and Consistency

The research highlights several critical factors for successful automated reporting:

  • Clinical History as a Prior: Incorporating the "doctor’s indication" (the reason for the scan) significantly enhances the model's focus. By understanding the patient's symptoms (e.g., "cough and shortness of breath"), the model can prioritize relevant abnormalities, much like a human expert.
  • Differentiable Fact-Checking: The use of a differentiable interpreter allows "medical errors" to be backpropagated directly. If the Generator produces a report stating "no pleural effusion" when the Classifier detected one, the interpreter identifies this discrepancy, and the model is adjusted to prevent such hallucinations.
  • State-Aware Embeddings: By explicitly encoding the state of a disease (e.g., "negative" or "positive"), the model avoids the common pitfall of generating words simply because they are frequent in the training data, ensuring that the presence or absence of a condition is accurately reflected in the text.

Results and Performance

The framework demonstrated superior performance over several competitive baselines, including KERP and HRG-Transformer, across both linguistic and clinical metrics. Evaluation was conducted on the MIMIC-CXR and Open-I datasets.

Figure 3: Performance comparison on Open-I and MIMIC datasets. The "Ours (MV+T+I)" variant, which includes multi-view images, clinical text, and the interpreter, consistently achieves the highest scores across BLEU, METEOR, and ROUGE-L metrics.

Key findings include:

  • Improved Fluency: On the Open-I dataset, the full model achieved a BLEU-4 score of 0.235, a substantial improvement over previous state-of-the-art methods that typically reached around 0.162.
  • Clinical Accuracy: Using the CheXpert labeler to compare generated reports against ground truth, the "MV+T+I" (Multi-view + Text + Interpreter) configuration achieved the highest F1 and AUC scores. This confirms that the interpreter effectively reduces factual contradictions.
  • Human Validation: In a blind review by an experienced medical doctor of 97 test samples, the model's most comprehensive version received an average score of 8.03/10. This significantly outperformed the single-view version (7.0/10), validating the importance of multi-view and contextual data.

Limitations and Future Directions

Despite these advancements, several challenges remain. The current model does not explicitly track directionality (e.g., left vs. right lung) or perform temporal comparisons with previous scans—a common requirement in clinical practice to monitor disease progression. Additionally, while the interpreter reduces errors, the model occasionally confuses similar-looking conditions, such as pneumonia and pulmonary edema.

Future work will focus on extending the architecture to more complex 3D modalities like CT and MRI scans and integrating broader clinical data, such as vital signs and laboratory results, into the input stream.

Summary updated

BibTeX
@inproceedings{nguyen2021automated,
  author = {Hoang T. N. Nguyen and Dong Nie and Taivanbat Badamdorj and Yujie Liu and Yingying Zhu and Jason Truong and Li Cheng},
  title = {{Automated Generation of Accurate \& Fluent Medical X-ray Reports}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.emnlp-main.288},
}
Figure