arXiv:2611.01851cs.LGNov 2026

Manuscript Offprint

arXiv:2611.01851

Missingness-Aware Prior-Data Fitted Network for Irregular Clinical Time-Series

Hadi Mehdizavareh, Gabriele Santangelo, Giovanna Nicora, Pietro Bosoni, Simon Lebech Cichosz, Arianna Dagliati, Arijit Khan, Riccardo Bellazzi

Abstract

Clinical time series are irregularly observed with laboratory measurements recorded at uneven intervals and observation patterns often reflecting patient state, clinical concern, and site-specific practice. Consequently, missingness is not merely a nuisance factor but an informative signal for prediction. We propose a Missingness-Aware Prior-Data Fitted Network (MA-PFN) for irregular clinical time-series prediction. MA-PFN first learns a diffusion-based prior over joint laboratory value and observation-mask trajectories from source-domain electronic health records, capturing both physiological dynamics and measurement processes. Synthetic trajectories sampled from this prior are then transformed into context-query tasks to train a PFN-style conditional predictor. Once trained, the model performs prediction for new admissions in a single forward pass, requiring neither retraining nor parameter adaptation on target datasets. The framework naturally supports both imputation and forecasting through different context-query constructions. We conduct internal validation on a held-out MIMIC-III test set and external validation on eICU, evaluating both imputation and forecasting and assessing cross-domain generalization under shifts in patient populations, clinical practices, and observation mechanisms. MA-PFN achieves the best performance across all evaluated settings, with Overall/Macro nRMSD ranging from 0.193/0.186 for internal imputation to 0.297/0.297 for external forecasting, without target-domain adaptation. These results demonstrate that learning missingness-aware task priors enables accurate and transferable clinical time-series prediction under informative missingness.

1 Introduction

Electronic health records (EHRs) contain rich longitudinal information about patient state, but they rarely appear as clean, regularly sampled time series (Xiao, Choi, and Sun 2018; Labach et al. 2023). Laboratory measurements are ordered in response to evolving clinical circumstances rather than according to a fixed data-collection schedule. During the same admission, creatinine may be repeated because of suspected renal deterioration, potassium may be monitored after treatment, and hemoglobin may be measured following concerns about bleeding, while many other variables remain unobserved for extended periods. Consequently, clinical trajectories are characterized by asynchronous measurements across variables and irregular intervals between observations, as illustrated in Fig. 1(a). When such observations

Figure

Figure 1: Irregular clinical laboratory observations and their value-mask representation. (a) Three laboratory variables measured asynchronously over time. (b) Alignment to a common time grid produces a sparse value-mask matrix, where missing entries reflect unobserved measurements and may contain information about the underlying clinical observation process.

are aligned to a common temporal grid, the result is a sparse value-mask representation like the one shown in Fig. 1(b).

Importantly, the resulting missing values are not merely a consequence of incomplete data collection. In clinical practice, the decision to order a laboratory test is itself informative. Repeated testing can reflect concern or active monitoring, whereas the absence of an order may reflect perceived stability, clinical priorities, or site-specific practice (Li et al. 2021; Tan et al. 2023). Effective prediction models must account not only for observed measurements, but also for the observation mechanisms that generated them.

A large body of work has addressed irregular clinical time series through discretization and imputation pipelines, continuous-time latent dynamics, set-based event representations, graph-based architectures, or attention over time and variables (Horn et al. 2020; Tipirneni and Reddy 2022;

Kazemi et al. 2019; Labach et al. 2023; Lee et al. 2025). Recent self-supervised approaches further exploit observation patterns, measurement presence, and naturally occurring missingness to learn stronger representations from EHR data (Labach et al. 2023; Xiang et al. 2025). These methods substantially improve the encoding of irregular clinical trajectories, yet they largely focus on learning task-specific predictors from finite collections of admissions within a particular dataset. Missingness is typically incorporated as an input feature, reconstruction target, or auxiliary signal; the joint process that produces both laboratory values and their observation patterns is not learned as a reusable prior for prediction. This distinction is important across hospitals, where patient populations, laboratory distributions, and test-ordering policies can all change.

More recently, large-scale EHR foundation models pre-train reusable representations or generative patient models across clinical tasks (Steinberg et al. 2024; Kraljevic et al. 2024; Fallahpour et al. 2025), but existing approaches largely target coded events, risk outcomes, or general patient trajectories and require downstream adaptation rather than directly supporting missingness-aware continuous laboratory imputation and forecasting. A complementary line of work trains generative models for EHR time series. Mixed diffusion models synthesize continuous measurements alongside discrete variables or missingness indicators (Tian et al. 2024), but they are mainly assessed as data generators for fidelity, privacy, or augmentation rather than as priors for conditional inference. Prior-data fitted networks (PFNs) instead learn an inference procedure from synthetic tasks and answer new queries in one forward pass (Müller et al. 2022; Hollmann et al. 2022); however, current PFNs rely on generic or hand-crafted priors and fail to capture asynchronous clinical trajectories or informative observation processes.

These developments suggest an opportunity to connect generative modeling and amortized inference. Rather than treating synthetic data generation and clinical prediction as separate objectives, one can learn a clinically grounded prior over laboratory values and observation patterns, and then use that prior to train a reusable inference procedure. Such a strategy would allow prediction models to learn not only from observed admissions but also from a broader distribution of clinically plausible trajectories that capture both physiological evolution and measurement behavior.

We address this gap with the missingness-aware prior-data fitted network (MA-PFN), a framework for irregular clinical time-series prediction. First, a mixed diffusion model learns the source-domain distribution of laboratory value-mask trajectories and generates synthetic admissions that preserve their coupling. Second, these trajectories are converted into context-query tasks used to train a PFN-style conditional predictor. Imputation and forecasting can use the same framework and differ only in which observed values form the context and which locations are queried. After prior fitting, prediction on a real admission requires a single forward pass and no parameter adaptation to the external dataset. To provide an intuitive overview of our framework, Figure 2 illustrates the complete MA-PFN pipeline.

MA-PFN differs from prior work in two key ways. First, it treats informative missingness as part of the learned prior rather than only an input feature or auxiliary signal. Second, synthetic trajectories serve not as outputs but as a means to generate large numbers of prediction tasks that train an amortized inference model. Together, these choices enable transferring an inference procedure across domains while preserving clinically meaningful observation patterns.

Contributions. We (i) formulate irregular clinical imputation and forecasting through a unified context-query prediction framework that explicitly retains informative missingness; (ii) introduce a missingness-aware clinical prior that jointly models laboratory values and observation masks through diffusion-based generation; (iii) show how learned clinical priors can be used to train PFN-style amortized predictors via synthetic task generation; (iv) evaluate both internal and cross-domain generalization on MIMIC-III and eICU, demonstrating the effectiveness of missingness-aware priors for clinical time-series prediction.

References (94)