Stochastic Siamese MAE Pretraining for Longitudinal Medical Images
Taha Emre, Arunava Chakravarty, Thomas Pinetz, Dmitrii Lachinov, Martin J. Menten, Hendrik Scholl, Sobha Sivaprasad, Daniel Rueckert, Andrew Lotery, Stefan Sacu, Ursula Schmidt-Erfurth, Hrvoje Bogunović
TL;DR
STAMP tackles the challenge of learning temporally rich representations from longitudinal 3D medical images by introducing a time-conditioned, stochastic Siamese MAE. It combines a time difference encoding with a learned prior and a future-aware posterior to perform conditional variational inference, enabling robust forecasting of disease progression from a single baseline visit. Empirical results across OCT and MRI datasets show STAMP consistently outperforms prior MAE-based and foundation-model approaches on AMD, GA, and AD progression tasks, including scenarios with irregular visit intervals and domain shifts. The approach offers a scalable, label-efficient pathway for personalized prognosis in progressive diseases, with potential to inform follow-up scheduling and early interventions.
Abstract
Temporally aware image representations are crucial for capturing disease progression in 3D volumes of longitudinal medical datasets. However, recent state-of-the-art self-supervised learning approaches like Masked Autoencoding (MAE), despite their strong representation learning capabilities, lack temporal awareness. In this paper, we propose STAMP (Stochastic Temporal Autoencoder with Masked Pretraining), a Siamese MAE framework that encodes temporal information through a stochastic process by conditioning on the time difference between the 2 input volumes. Unlike deterministic Siamese approaches, which compare scans from different time points but fail to account for the inherent uncertainty in disease evolution, STAMP learns temporal dynamics stochastically by reframing the MAE reconstruction loss as a conditional variational inference objective. We evaluated STAMP on two OCT and one MRI datasets with multiple visits per patient. STAMP pretrained ViT models outperformed both existing temporal MAE methods and foundation models on different late stage Age-Related Macular Degeneration and Alzheimer's Disease progression prediction which require models to learn the underlying non-deterministic temporal dynamics of the diseases.
