Clinical temporal relation extraction with long-context transformers: a robustness study on MIMIC-III and MIMIC-IV.
Swetha V Padmavathi Polisetty, Deepthi Godavarthi
School of Computer Science and Engineering, VIT-AP University, Amaravati, Andhra Pradesh, India.
Key points
From the paper's conclusion- Long-context modeling was particularly useful for improving robustness to dataset shift and target-domain adaptation in clinical temporal relation extraction. However, the findings should be interpreted in the context of rule-derived silver labels.
Abstract
INTRODUCTION: Temporal relation extraction from electronic health records is important for patient timeline construction and longitudinal clinical analysis, yet remains challenging because temporally relevant evidence may be distributed across extended clinical narratives. METHODS: This study investigated whether long-context clinical transformers offer practical advantages for rule-based event-pair temporal relation classification across matched and transfer-oriented evaluation settings. Event-pair datasets were constructed from MIMIC-III and MIMIC-IV discharge summaries, with temporal labels assigned using a deterministic rule-based pipeline. The task was formulated as a four-class classification problem using BEFORE, AFTER, OVERLAP, and NONE labels. Clinical-Longformer and Clinical-BigBird were evaluated as primary long-context models, while BERT-base, BioBERT, Bio_ClinicalBERT and BiomedBERT served as standard-context baselines. To address GPU memory constraints during 4,096-token fine-tuning, a progressive two-stage strategy was used, in which long-context models were first fine-tuned at 1,024 tokens and then continued at 4,096 tokens. RESULTS: Experiments covered in-domain, zero-shot inter-dataset, and adaptation-based transfer settings. Clinical-BigBird achieved the best MIMIC-III in-domain macro-F1 of 93.85% and the strongest performance in both adaptation settings. Clinical-Longformer achieved the best MIMIC-IV in-domain macro-F1 of 97.32% and the strongest zero-shot MIMIC-IV-to-MIMIC-III macro-F1 of 92.36%. BERT-base and BioBERT reproduced the same directional transfer pattern, with stronger MIMIC-III-to-MIMIC-IV zero-shot results and improvements after adaptation. The 4,096-token continuation stage consistently outperformed 1,024-token training alone. Physician review confirmed 160 of 200 rule-derived labels as correct, corresponding to 80.0% agreement. Statistical testing supported selected improvements, although not all pairwise differences were significant. CONCLUSION: Long-context modeling was particularly useful for improving robustness to dataset shift and target-domain adaptation in clinical temporal relation extraction. However, the findings should be interpreted in the context of rule-derived silver labels.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Optimizing Clinical Temporal Relation Extraction With Large Language Models: Comparative Analysis.JMIR medical informatics · 2026
- Evaluating Pretrained Language Semantics for Structured EHR Prediction TasksarXiv · 2026
- Leveraging Generative Large Language Models for Temporal Relation Extraction From French Clinical Narratives: Prompt-Chaining Approach.Journal of medical Internet research · 2026
- Hierarchical temporal transformer for cancer grade prediction and cross cancer transfer learning from pathology reportsbioRxiv · 2026
- Evaluating retrieval-augmented generation versus long-context input for clinical reasoning over electronic health records.Journal of the American Medical Informatics Association : JAMIA · 2026
- TRACE: Tracking Multimodal Clinical Trajectories for Inpatient Risk PredictionarXiv · 2026