Introduction
In clinical radiology, a single medical image rarely tells the complete story. When interpreting a chest X-ray, radiologists meticulously compare current findings with a patient’s historical scans to determine if a condition—such as a tumor, pleural effusion, or pneumonia—is improving, stable, or worsening. This longitudinal context is essential for accurate diagnosis and treatment planning.
Despite this, most automated radiology report generation systems operate as "single-timestamp" models. They analyze one image in isolation, failing to capture the temporal nuances that define clinical progression. While some attempts have been made to incorporate history, they often struggle with the "messiness" of real-world clinical data, such as varying time gaps between visits and a fluctuating number of past scans. HERGen (History Enhanced Radiology Report Generation) is a novel framework designed to bridge this gap, mimicking the comparative workflow of human radiologists.
Methodology
HERGen introduces a specialized architecture designed to process sequences of images and their corresponding temporal metadata. The framework is built upon four primary innovations:
1. Group Causal Transformer
Standard transformers treat all input tokens as a flat sequence. HERGen introduces a "grouping" mechanism where all visual tokens from a single image are processed together. The "causal" component ensures that when the model generates a report for a specific visit, it can attend to all tokens from that visit and all previous visits, while strictly preventing the model from "cheating" by looking at future scans.
2. Sequential Date-aware Embeddings
Medical visits do not occur at fixed intervals; a patient might return after two weeks or two years. HERGen incorporates study dates to calculate the actual time elapsed between scans. By using date-aware embeddings rather than simple positional encodings (1, 2, 3...), the model learns to weigh the relevance of a prior scan based on its temporal proximity to the current study.
3. Auxiliary Contrastive Alignment
To ensure that visual features are effectively synchronized with the narrative reports, the model employs a contrastive loss function. Similar to the CLIP architecture, this aligns the latent spaces of image sequences and their corresponding text, ensuring the model "understands" which visual changes correspond to specific descriptive phrases.
4. Curriculum Training Strategy
Training a complex temporal model from scratch is computationally difficult. The authors utilize a three-stage curriculum:
- Base Training: Training a standard image-to-report model.
- Alignment: Refining the connection between images and text using the contrastive module.
- Temporal Integration: Integrating the full longitudinal history and training the complete framework to handle sequences.
Experimental Evaluation
The model was evaluated using three primary datasets: the standard MIMIC-CXR, a curated Longitudinal MIMIC-CXR subset (patients with at least two consecutive visits), and MS-CXR-T, which focuses on disease progression classification.
Key Results
HERGen demonstrated superior performance over state-of-the-art (SOTA) models across multiple dimensions:
- Report Accuracy: On the MIMIC-CXR dataset, HERGen achieved a 5.9% improvement in average Natural Language Generation (NLG) metrics (including BLEU and ROUGE-L) compared to previous benchmarks.
- Longitudinal Performance: On the specific longitudinal subset, the model saw a 6.5% boost over baseline systems.
- Clinical Accuracy: Using the CheXbert labeler to evaluate clinical correctness, HERGen improved the F1 score by 3.6%.
- Disease Progression: On the MS-CXR-T task, HERGen outperformed other models in predicting the progression of four out of five major thoracic diseases: Consolidation, Pleural Effusion, Pneumonia, and Pneumothorax.
Discussion and Insights
The primary breakthrough of HERGen is that historical context does more than just provide extra data; it fundamentally changes the nature of the generated text. By providing the model with a patient's history, it begins to generate comparative language—such as "appear stable" or "unchanged"—which is critical for clinical utility but often absent in single-image models.
Furthermore, the "grouping" approach allows the model to be highly flexible. Whether a patient has two visits or ten, the architecture handles the variable history length seamlessly. The inclusion of metadata like the "StudyDate" ensures that the model treats a change over a short period differently than a change over a long period, reflecting the reality of disease pathology.
Limitations and Future Work
While HERGen represents a significant step forward, it currently operates primarily in the embedding space. It does not yet explicitly account for anatomical consistency—the ability to recognize that a specific nodule in a specific lung lobe is the exact same physical object across multiple years. Future research will focus on expanding HERGen into a more comprehensive representation learning model that could support a wider variety of downstream clinical tasks beyond report generation, such as automated lesion tracking.
Summary updated