Abstract
Longitudinal medical imaging is critical for monitoring chronic disease progression, yet computational modeling faces significant challenges due to high dimensionality, irregular sampling, and data sparsity. We present ImageFlowNet, a novel framework that forecasts future disease states directly from initial images by modeling progression as a continuous trajectory in a multiscale latent space. Utilizing position-parameterized Neural Ordinary Differential Equations (ODEs) and Stochastic Differential Equations (SDEs), ImageFlowNet learns a universal vector field of disease evolution. Our results across retinal and brain imaging datasets demonstrate that ImageFlowNet significantly outperforms traditional extrapolation and time-aware diffusion models in both structural similarity and clinical relevance.
Introduction: The Challenge of Longitudinal Forecasting
Monitoring chronic conditions like multiple sclerosis or macular degeneration requires analyzing scans taken over months or years. However, modeling this progression computationally is difficult for three primary reasons:
- High Dimensionality: Traditional models often reduce high-resolution images to a few hand-crafted features, losing critical spatial detail.
- Irregular Sampling: Clinical visits rarely follow a fixed schedule, leading to inconsistent time intervals between data points.
- Data Sparsity: Individual patients often have very few scans, making it difficult to learn complex temporal trajectories for any single individual.
Existing tools like standard UNets or Diffusion models are often "time-agnostic," failing to capture the temporal dynamics inherent in disease progression. They struggle to understand that a scan taken two years after onset should look fundamentally different from one taken two days after onset.
Methodology
ImageFlowNet treats disease progression as a trajectory in a joint representation space, moving away from discrete time-step predictions toward continuous flow modeling.
Multiscale Architecture
The framework employs a UNet backbone to extract features at multiple resolutions. Rather than evolving a single bottleneck vector, ImageFlowNet evolves representations at every level of the encoder. This multiscale approach allows the model to preserve global anatomy (like brain shape) while simultaneously forecasting fine-grained pathological changes (like lesion edges).
Position-Parameterized Dynamics
Unlike standard Neural ODEs that define derivatives as a function of time ($f(z_t, t)$), ImageFlowNet uses a position-only parameterization ($f(z_t)$). This allows the model to learn a universal "vector field" of disease progression. By mapping a patient's scan to a specific point in latent space, the model determines the direction of disease flow based on the state itself, effectively aggregating knowledge from the entire patient cohort into a cohesive map of disease states.
Stochastic Modeling and Regularization
An SDE variant incorporates Langevin dynamics to model multiple potential outcomes and estimate uncertainty. To ensure realistic trajectories, the model is trained with a four-part loss function including reconstruction (MSE), visual feature preservation (via a pretrained ConvNeXT encoder), contrastive organization (SimSiam), and smoothness regularization to prevent erratic jumps in the predicted trajectory.
Experimental Validation
The model was validated on three distinct longitudinal medical datasets:
- Retinal Images (METforMIN): 132 eyes tracked for Geographic Atrophy over 24 months.
- Brain MRI (LMSLS): 79 series monitoring Multiple Sclerosis lesions over approximately 5 years.
- Brain MRI (LUMIERE): 795 series tracking Glioblastoma (brain tumor) progression post-surgery.
Results and Discussion
ImageFlowNet consistently outperformed baselines, including linear/cubic extrapolation and time-aware diffusion models.
Quantitative Performance
On the retinal dataset, ImageFlowNet achieved significantly higher Structural Similarity Index Measure (SSIM) and lower Hausdorff Distance (measuring lesion boundary accuracy) compared to T-Diffusion and T-UNet. Across all three datasets, the SDE variant with full regularization (ImageFlowNet-SDE++) achieved the best overall rank.
Handling Disease Dynamics
The model proved particularly effective in cases of rapid atrophy growth, where simpler extrapolation methods failed to capture the accelerating nature of the disease. Residual maps indicated minimal error and an absence of the "ghosting" or blurring artifacts common in other forecasting methods.
Conclusion
ImageFlowNet provides a robust framework for forecasting disease progression directly from images, overcoming the limitations of irregular sampling and data sparsity. By leveraging multiscale dynamics and position-parameterized ODEs, it offers a more detailed and accurate prediction of future disease states than existing feature-based models. Future work will focus on scaling the architecture to high-resolution 3D volumes and integrating non-imaging clinical metadata such as genetic markers and lab results.
Summary updated