Evaluation metrics for temporal preservation in synthetic longitudinal patient data Katariina Perkonoja, Parisa Movahedi, Antti Airola, Kari Auranen, Joni Virta Abstract This study introduces a set of metrics for evaluating temporal preservation in synthetic longitudinal patient data, defined as artificially generated data that mimic real patients’ repeated measurements over time. The proposed metrics assess how synthetic data reproduces key temporal characteristics, categorized into marginal, covariance, individual-level and measurement structures. We show that strong marginal-level resemblance may conceal distortions in covariance and disruptions in individual-level trajectories. Temporal preservation is influenced by factors such as original data quality, measurement frequency, and preprocessing strategies, including binning, variable encoding and precision. Variables with sparse or highly irregular measurement times provide limited information for learning temporal dependencies, resulting in reduced resemblance between the synthetic and original data. No single metric adequately captures temporal preservation; instead, a multidimensional evaluation across all characteristics provides a more comprehensive assessment of synthetic data quality. Overall, the proposed metrics clarify how and why temporal structures are preserved or degraded, enabling more reliable evaluation and improvement of generative models and supporting the creation of temporally realistic synthetic longitudinal patient data. † † highlights: Novel metrics are proposed to assess temporal preservation in synthetic longitudinal data The metrics cover mean, covariance, subject-level, and measurement structures Multi-metric evaluation gives clearer insight into synthetic data quality Assessing only mean-level resemblance can mask loss of temporal dependencies Data quality, balance, and preprocessing strongly affect temporal preservation 1 Introduction Electronic health records (EHRs) serve as the primary repository for contemporary patient data, storing treatment-related information across various health information systems. EHRs include diverse data types such as clinical notes, laboratory results, vital signs, imaging, and signal data. Among the various types of EHR-derived data, longitudinal patient data (LPD), i.e., structured tabular data that combines both static variables (e.g., patient demographics) and time-varying variables (i.e., repeated within-patient measurements), holds a great potential by providing a time-sequenced view of patient health. While primarily used for patient care, EHR-derived data are increasinly leveraged by hospitals and healthcare providers for secondary purposes , such as research, development, and innovation, as well as education. This broader use of patient data has raised concerns about privacy and confidentiality, prompting stringent regulations. Consequently, there is growing interest in facilitating streamlined access to patient data. Synthetic data generation (SDG) has emerged as a strategy to enhance data accessibility and sharing while minimizing privacy risks. The goal of SDG is to produce synthetic data that closely resembles the original identifiable information, enabling similar use cases without compromising privacy. The increasing attention to synthetic data is evident in the growing variety of SDG methods documented in recent literature reviews [ 37 , 12 , 18 , 27 , 32 , 20 ] . Moreover, the significance of synthetic data is increasingly recognized at the policy level: for example, within the emerging European Health Data Space framework, synthetic data is envisioned as a key enabler for secure secondary use of health data [ 42 ] . Yet, evaluating SDG methods in terms of both data quality and privacy protection remains a nontrivial challenge. A common practice is to categorize the evaluation of synthetic data into three primary domains: resemblance (or fidelity) between synthetic and original data, utility of synthetic data, and privacy aspects [ 32 , 18 , 12 , 37 ] . Additionally, fairness or diversity , referring to the extent to which subgroups in the original data are proportionally represented in the synthetic data, has been proposed as a fourth domain [ 2 , 5 , 36 ] . In general, resemblance refers to the alignment of variable distributions in synthetic data with those in the original dataset, while utility refers to the ability to produce comparable inferential or predictive results to those obtained from the original data. These concepts exhibit partial overlap, as a good resemblance should imply high utility. Nevertheless, synthetic data may demonstrate high utility even in cases of moderate resemblance, provided that essential properties on which the utility measure relies are retained in synthetic data. Privacy considerations, while an important aspect of synthetic data evaluation, are outside the scope of this work and are therefore not addressed further; interested readers are referred to [ 34 ] . In this work, we develop resemblance evaluation for synthetic longitudinal patient data, with particular emphasis on unbalanced LPD. Here, unbalanced data refers to longitudinal datasets in which the number or timing of measurements vary across patients [ 8 ] . Unbalanced data is common in secondary-use settings as individualized treatment schedules result in irregular measurement times. Evaluating resemblance in this context is particularly challenging, owing not only to varying measurement times across patients but also to incomplete data from missed visits, dropouts (subjects who do not continue the treatment), or loss to follow-up (subjects researchers can no longer reach). Our objective is to propose metrics for evaluating temporal preservation , that is, the extent to which synthetic data reproduces the evolution of variables over time and the distribution of measurements (in both timing and frequency). These metrics capture multiple aspects of temporal behavior, including preservation of marginal and covariance structures, individual trajectories, and measurement patterns. Most of the proposed metrics are calculated as functions of time, while a few provide aggregate scores that summarize similarity across all time points. Despite its importance for analytical validity, temporal preservation is frequently overlooked: many SDG studies either ignore it or aggregate data over time, discarding the very dependencies that define LPD [ 37 ] . Existing evaluation frameworks also rarely include metrics that assess temporal preservation [ 17 , 7 , 48 , 43 , 4 ] . Our focus on temporal preservation highlights an overlooked dimension of resemblance evaluation in synthetic LPD. In this context, we make four main contributions: 1. A survey of existing metrics . We survey prior temporal evaluation metrics used in synthetic LPD research, identifying key limitations such as assumptions of balanced data, reliance on specific preprocessing or models, over-aggregation into single scores, and limited interpretability in practice. 2. A novel set of metrics for assessing temporal preservation . Motivated by the limitations identified in our survey, we introduce robust and adaptable metrics suited for real-world LPD that capture diverse temporal patterns using non-parametric estimators such as kernel smoothing, enabling flexible analysis and intuitive visualization of discrepancies between real and synthetic data. 3. Open-source implementation . We provide easy-to-use implementations of the proposed metrics in R , released under an open-source license, to support transparency, reproducibility and practical adoption. 4. Empirical illustration on real-world LPD . We demonstrate our proposed evaluation metrics using two synthetic datasets derived from MIMIC-III [ 23 , 22 ] , generated via HALO [ 40 ] and Health Gym GAN [ 26 ] . These examples highlight practical insights and help guide the interpretation of the metrics and SDG method behavior. This work is structured as follows. Section 2 introduces the preliminaries, including the notation used throughout the work and the formalization of the concept of univariate temporal preservation , which provides the basis for many of the proposed metrics. Section 3 reviews existing approaches to assessing temporal preservation in synthetic LPD. Section 4 details the proposed evaluation metrics and Section 5 illustrates the application of these metrics in practice. Section 6 concludes with a discussion of findings and practical implications. 2 Preliminaries This section introduces the notation and setup used throughout the paper, outlines the kernel smoothing techniques employed in the construction of the evaluation metrics, and defines the concept of univariate temporal preservation. 2.1 Notations Let i=1,\dots,n , index the subjects (individuals) and j=1,\ldots,p , index variables that have been measured over time. For subject i and variable j , let \textbf{t}_{ij}=(t_{ij1},\ldots,t_{ijn_{ij}})^{\prime},\quad n_{ij}\geq 2, denote the vector of ordered measurement times. When the measurement times differ between subjects or variables, a dataset is referred to as unbalanced , and when they are identical across all subjects and variables, the dataset is balanced . This notion of balance refers to the design of the measurement schedule and should be distinguished both from missing data, which occurs when a scheduled measurement did not result to observed data (e.g., a patient missed the visit, the measurement device failed, or the result was lost), and from other time-indexed variables that evolve naturally over time, such as age [ 8 ] . In the context of secondary data use, however, it is often difficult to distinguish true missingness from structural irregularities in measurement schedules. Consequently, in this work we do not attempt to differentiate missingness from unbalancedness. The corresponding observations for subject i and variable j are collected into the vector \textbf{x}_{ij}=(x_{ij1},\ldots,x_{ijn_{ij}})^{\prime} where x_{ijk} denotes the value of variable j for subject i at time t_{ijk} . Depending on the type of variable, the entries x_{ijk} may be continuous or discrete. In the latter case, they take values in a finite space \mathcal{C}_{j}=\{c_{j1},\dots,c_{jL}\} , which may differ across variables. For simplicity, we refer to these sets collectively as \mathcal{C} when the distinction is not essential. For each variable j , subject-specific observations are combined with their measurement times \mathbf{t}_{ij} into a data matrix \mathbf{X}_{j} of size \sum_{i}n_{ij}\times 2 . This type of representation is commonly referred to as the long format . An alternative is the wide format , in which the rows consist of transposed subject-specific vectors. For each variable j , we define the set of unique measurement times across all subjects as T_{j}=\bigcup_{i=1}^{n}\{\,t_{ijk}:k=1,\dots,n_{ij}\,\}. T_{j} thus collects all distinct time points at which variable j was measured. We also define a measurement indicator matrix \displaystyle\mathbf{I}_{j}=\bigl(I_{ijt}\bigr)_{i=1,\dots,n;\;t\in T_{j}}, (1) with entries I_{ijt}=\mathbf{1}\!\left\{\exists\,k\;:\;t_{ijk}=t\right\} , where \mathbf{1}\{\cdot\} denotes the indicator function. In other words, I_{ijt}=1 if subject i has at least one observed measurement of variable j at time t , and I_{ijt}=0 otherwise. For each subject i , the dropout point is defined as the earliest time t after which no further measurements were made: d_{ij}=\min\left\{\,t\in T_{j}\;\middle|\;I_{ijs}=0\;\;\forall s\in T_{j},s>t\right\}. Throughout this work, a tilde (e.g, \tilde{x}_{ijk} ) denotes the synthetic counterpart of the corresponding original notion. 2.2 Kernel smoothing Kernel smoothing offers a flexible tool for summarizing unbalanced longitudinal data [ 44 ] . By using non-parametric smoothing, arbitrary temporal patterns can be captured and values can be interpolated at unobserved time points. A key component of this approach is the use of normalized kernel weights, which assign relevance to observed time points when estimating values at a target time t . Since the time distributions of the original and synthetic data may differ, i.e., certain time points may only appear in one of them, we evaluate all metrics for a given variable j on a common regular time grid. T_{j}^{\ast}=\bigl\{\,t_{j}^{\min}+m\,\Delta_{j}\;:\;m=0,1,\dots,\big\lfloor(t_{j}^{\max}-t_{j}^{\min})/\Delta_{j}\big\rfloor\,\bigr\}, where t_{j}^{\min}=\min\bigl(T_{j}\cup\tilde{T}_{j}\bigr) , t_{j}^{\max}=\max\bigl(T_{j}\cup\tilde{T}_{j}\bigr) , and \Delta_{j}>0 is a fixed grid step (the unit of time for variable j ). This grid choice defines where kernel-based estimates are evaluated, and alternative choices can be used depending on the aspects of temporal behavior one wishes to emphasize, for example by restricting evaluation to the original time range. Definition 1 (Normalized kernel weights) . Let K_{h}(t,t^{\prime}) denote a kernel function, giving higher weights to (measurement) time points t^{\prime} that are closer to t\in T_{j}^{\ast} . For example, the Gaussian kernel is defined as K_{h}(t,t^{\prime})=\frac{1}{h}\exp\left(-\frac{(t-t^{\prime})^{2}}{2h^{2}}\right), where h>0 is the bandwidth controlling the degree of smoothing. The normalized kernel weights for the j th variable at time t\in T_{j}^{\ast} are \bar{\omega}_{ijk}(t)=\frac{K_{h}(t,t_{ijk})}{\sum_{i^{\prime}=1}^{n}\sum_{k^{\prime}=1}^{n_{i^{\prime}j}}K_{h}(t,t_{i^{\prime}jk^{\prime}})},\quad i=1,\ldots,n,\quad k=1,\ldots,n_{ij}. The weights \bar{\omega}_{ijk}(t) in Definition 1 represent how much influence each observed time point t_{ijk} has when estimating or smoothing a value at the target time t . The bandwidth h determines how quickly the weights decrease, effectively setting a window of nearby points that contribute significantly to the estimate. Normalizing ensures that all weights sum to one, letting us later use them to construct meaningful weighted averages at each time t . Definition 2 defines a weighted empirical cumulative distribution function used by some of the proposed metrics. Definition 2 (Weighted empirical cumulative distribution) . The weighted empirical cumulative distribution function of the j th variable at time t\in T_{j}^{\ast} is defined as F_{jz}^{(K)}(t)=\sum_{i=1}^{n}\sum_{k=1}^{n_{ij}}\bar{\omega}_{ijk}(t)\,\mathbf{1}(x_{ijk}\leq z), where \bar{\omega}_{ijk}(t) are the normalized kernel weights. Remark 1 (Choice of bandwdith h ) . Kernel methods are often sensitive to the choice of bandwidth h , but in the present context this sensitivity is not a drawback. Since the aim is to assess whether real and synthetic data behave similarly, any discrepancy between the two, regardless of the value of h , can be interpreted as evidence of a difference. Thus, the bandwidth serves more as a lens that highlights differences across various smoothing scales than as a tuning parameter to be optimized. Exploring several values of h may therefore provide a more nuanced comparison. Larger values of h emphasize population-level trends, whereas smaller values highlight local fluctuations and subject-specific variation. In principle, h could be chosen systematically, using a selection rule from the classical kernel smoothing literature, see [ 44 ] . However, for simplicity, in this work h was selected manually. 2.3 Univariate temporal preservation A central objective in this work is to evaluate how well synthetic data reproduces the temporal patterns observed in the original longitudinal data. Since variables may differ in their measurement schedules, frequencies, and temporal behaviors, it is natural to consider each variable separately. We refer to this aspect as univariate temporal preservation . The key idea is to summarize the temporal evolution of each variable j using a suitable metric M_{j}(\cdot) . By applying the same metric to both the original and synthetic datasets, we can assess whether the synthetic data preserves the temporal structure present in the original data. Definition 3 (Univariate temporal preservation) . For each variable j , consider the value–time pairs \{(x_{ijk},t_{ijk}):i=1,\dots,n;\;k=1,\dots,n_{ij}\}, and let M(\cdot) denote a metric that summarizes the evolution of variable j over time. Applying M_{j} to the original and synthetic data yields M_{j}=M\big((x_{ijk},t_{ijk})\big),\qquad\tilde{M}_{j}=M\big((\tilde{x}_{ijk},\tilde{t}_{ijk})\big). We say that the synthetic data exhibit univariate temporal preservation for variable j if \tilde{M}_{j}\approx M_{j} . Remark 2 (Goodness of approximation) . The goodness of approximation in Definition 3 is inherently data- and task-dependent. What constitutes sufficient preservation depends on the specific variable, the intended analyses, and the scale of variation in the data. In practice, similarity between M_{j} and \tilde{M}_{j} can be judged in different ways. One option is to quantify their difference numerically, e.g., by computing deviations relative to a tolerance threshold or by using statistics such as correlation coefficients. Another option is to evaluate similarity qualitatively, for example through different visualizations. In practice, these preservation metrics should be interpreted together with other resemblance and utility evaluations: a small discrepancy between M_{j} and \tilde{M}_{j} may not impair the analytical validity of the synthetic data, whereas a similar discrepancy in a different context could be critical. Conversely, a large difference between M_{j} and \tilde{M}_{j} is typically indicative of reduced utility. 3 Survey of existing metrics To identify gaps in existing approaches and to avoid duplicating prior efforts, we reviewed different metrics used to evaluate temporal preservation in the SDG literature. The metrics were identified from a recent review of methods for generating and evaluating synthetic longitudinal data [ 37 ] . We classified the identified approaches in seven distinct categories: marginal summary statistics, correlation statistics, transition probabilities, conditional dependency metrics, trend-residual decomposition, latent space representations and measurement time reconstruction error. Marginal summary statistics , applied in [ 49 , 29 , 15 , 1 , 45 , 40 , 33 ] , capture univariate temporal preservation of means, variances, proportions, and frequencies. While these statistics are useful for comparing original and synthetic data, prior implementations often assumed balanced datasets, imputed missing values, normalized variables, or aggregated metrics into single scores, limiting interpretability and applicability to unbalanced data. To address these limitations, we apply kernel smoothing (Sections 4.1 , 4.2 ) to pool information across uneven measurement schedules. Marginal statistics have also been used to compare distributions of measurement times, but summarizing them with a single value obscures important distributional details. To overcome this, we introduce metrics that offer more intuitive and informative comparisons (Section 4.4 ). Correlation statistics capture dependencies either within a subject’s consecutive measurements (autocorrelation) or between subjects at the same time point (cross-correlation). Prior works have used autocorrelation functions and Pearson pairwise correlation (PPC) [ 29 , 21 ] . When such measures are reported as a single summary measure, however, they provide only a limited view of the dependency structure. Moreover, both approaches typically assume balanced data, and PPC further assumes linearity. To address these limitations, we provide a metric that accommodates unbalanced data, captures non-linear dependencies and provides intuitive visualizations that enhance understanding of the underlying correlation structure (Section 4.2 ). Transition probabilities , used in [ 31 , 40 , 38 , 39 , 35 , 33 ] , describe the sequential dependence between discrete states by quantifying the conditional likelihood of moving from one state to another. While intuitive, reducing the probabilities to secondary summaries loses important structure, and higher-order transitions are often sparse and difficult to interpret. Existing approaches also assume balanced data. We introduce a smoothed first-order transition probability metric that accommodates unbalanced data and can be visualized intuitively (Section 4.2 ). Conditional dependency metrics , applied in [ 46 , 16 ] , extend the idea of transition probabilities to a continuous setting, evaluating sequential dependence by conditioning each observation on its prior history. While these metrics are valid and informative, they require fitting a pre-chosen parametric model on the data, limiting their usefulness. To keep the approach fully non-parametric and assumption-free, we do not consider such metrics in this work. Trend-residual decomposition , utilized in [ 26 , 25 ] , fits a subject-specific model where the fitted curve captures the overall trend and the residuals represent short-term deviations. These metrics suffer the same model selection issue as the conditional dependency metrics: they may be too simplistic and may not handle unbalanced data. Interpretation also poses challenges: aggregating results into a single measure can obscure important heterogeneity, such as subgroup effects. In this work, we do not include model-based resemblance metrics, although they remain valid options when carefully applied in specific use cases. Latent space representations , applied in [ 49 , 1 ] , embed repeated measurements into a lower-dimensional space. These approaches can capture complex dependencies that are difficult to summarize with simple statistics of the original data. However, their interpretability is limited. Latent factors are often abstract and may not clearly reflect patterns in the original measurement space. In addition, some commonly used methods, such as principal component analysis, assume linearity and require balanced data. More flexible methods (e.g., non-linear embeddings) can relax these assumptions, but at the cost of further reducing transparency and complicating validation. In this work, we do not pursue resemblance metrics based on latent representations, as their abstraction makes them difficult to interpret in the context of LPD. Measurement time reconstruction error proposed by [ 35 ] assesses how well chronological structure is preserved by comparing the original measurement times with their model reconstructions. Unlike marginal summary statistics derived from the measurement time distribution, this comparison specifically captures the model’s information loss when mapping continuous time into discrete classes, such as tokens in language models. Consequently, this metric is restricted to a particular SDG model and is not considered here, albeit relevant when generating synthetic data with language models. Although we identified several valid approaches for measuring temporal preservation, our key concern in the literature is, besides the above limitations, that many studies rely on a single metric. This can prevent obtaining a clear understanding of whether the temporal structure is genuinely preserved. As we show in Section 5 , a variable may retain, for example, marginal data patterns yet completely losing covariance structures. Therefore, when assessing temporal preservation, we emphasize the importance of a comprehensive evaluation, for which we present a range of metrics in the following section. 4 Metrics for assessing temporal preservation Our approach to evaluating temporal preservation in synthetic longitudinal patient data is grounded in explanatory data analysis (EDA) [ 9 ] . In general, EDA aims to reveal important patterns in observed data that can then guide the development of more formal analysis models. Similar methods can be used to assess how closely synthetic data resembles the original data. In our approach, we organize the key characteristics of longitudinal data into four principal categories. The first three categories are concerned with preserving temporal structure, while the fourth describes the distribution of measurement times: I. Marginal structure describes population-level behavior, representing how the overall mean and quantiles of a continuous variable or the class proportions of a discrete variable change over time. This includes broad trends (linear or nonlinear) and potential periodicity (recurring patterns). II. Covariance structure reflects how repeated measures are related over time, capturing both the between-subject variability and temporal within-subject correlation patterns. For continuous variables, covariance structure includes variance, autocorrelation, and the stability of individuals’ relative rankings (rank-order stability). For discrete variables, it covers transition probabilities between states, their consistency across time (time homogeneity), and persistence within the same state (class stability). III. Individual structure focuses on subject-specific trajectories, which complement population-level summaries. IV. Measurement structure concerns the timing and frequency of measurements, including missing data, dropouts or loss to follow-up. Given the inherent complexity and variability of LPD, where subject-specific trajectories may exhibit highly diverse and irregular forms, visual representations play a central role in evaluation. Unlike scalar summary measures, visualizations enable a more intuitive assessment of shapes and temporal patterns, facilitating easy detection of trends, anomalies, and structures that might otherwise remain obscured. This justifies the emphasis on graphical methods in our evaluation framework, where visual tools are prioritized over numerical metrics to better capture the resemblance of synthetic and original data. Figure 1 presents the metrics proposed in this study, which are further discussed in detail in the following subsections and illustrated in Section 5 . All metrics presented in this work can also be computed separately within appropriate subsets (strata) of the data. Figure 1 : Evaluation metrics proposed in this work for assessing univariate temporal preservation in synthetic LPD. Some metrics are only applicable to either continuous or discrete variables. 4.1 Metrics to assess the marginal structure Different summary statistics offer practical tools to assess temporal preservation and resemblance between synthetic and original LPD. For each variable, we begin by examining its temporal profile , defined as the evolution of cross-sectional distributions over time. For a numerical variable, this metric involves tracking the mean and quantiles, while for a categorical variable we consider class probabilities. The kernel-smoothed mean profile provides a basic summary by describing the average value of a variable at each time point. This smoothed mean curve not only captures the overall trend but also reveals underlying periodic patterns at the population level. Metric 1 . The kernel-smoothed mean profile of variable j at time t\in T_{j}^{\ast} is \displaystyle\mu_{j}^{(K)}(t) \displaystyle=\sum_{i=1}^{n}\sum_{k=1}^{n_{ij}}\bar{\omega}_{ijk}(t)x_{ijk},\quad t\in T_{j}^{\ast}. While the smoothed mean profile effectively captures the central tendency, it does not provide information about the variability or other distributional characteristics. Kernel-smoothed quantile profiles overcome this by capturing the distribution’s shape across quantiles, providing a fuller view of the variable’s temporal evolution. Metric 2 . The kernel-smoothed quantile profile of variable j at time t\in T_{j}^{\ast} is Q_{jq}^{(K)}(t):=\left\{F_{jq}^{(K)}\right\}^{-1}(t),\quad t\in T_{j}^{\ast}, where F_{jq}^{(K)} is the weighted empirical CDF and q is the quantile level of interest. Mean and quantile profiles can be visualized using line charts (see Section 5.1 ). These plots can be enhanced by overlaying observations outside the defined quantile range. Such visualizations are particularly useful since the mean profile and outer quantiles are sensitive to outliers, and plotting them can help explain deviations in the observed metrics and assess how well synthetic data capture outlier behavior. For discrete variables, the kernel-smoothed class profile represents the proportion of each class c_{j\ell}\in\mathcal{C}_{j} , capturing how class distributions evolve over time. These profiles can be visualized, for example, with area charts (see Section 5.3 ). Metric 3 . The kernel-smoothed class profile at time t\in T_{j}^{\ast} is the L -dimensional vector \bigl(p_{j1}^{(K)}(t),\dots,p_{jL}^{(K)}(t)\bigr) where p_{j\ell}^{(K)}(t)=\sum_{i=1}^{n}\sum_{k=1}^{n_{ij}}\bar{\omega}_{ijk}(t)\,\mathbf{1}(x_{ijk}=c_{j\ell}),\quad\ell=1,\dots,L. 4.2 Metrics to assess the covariance structure Assessing the marginal structure is a fundamental step in evaluating synthetic data because it provides valuable insight into whether the data captures even the simplest underlying patterns. However, this alone is not enough, especially when dealing with longitudinal data as these metrics do not directly account for variability or time-dependent relationships within a subject. Additionally, in longitudinal data analysis, covariance structure is often of great importance as it plays a crucial role in guiding the selection of the appropriate model. A natural entry point for examining the covariance structure is the total variance of each variable. To this end, we use the kernel-smoothed variance profile , which depicts how the total variance evolves over time. Metric 4 . The kernel-smoothed variance profile of variable j at time t\in T_{j}^{\ast} is \sigma_{j}^{2(K)}(t)=\sum_{i=1}^{n}\sum_{k=1}^{n_{ij}}\bar{\omega}_{ijk}(t)\left(r_{ijk}^{(K)}(t)\right)^{2}, where the time-specific residuals are r_{ijk}^{(K)}(t)=x_{ijk}-\mu_{j}^{(K)}(t) . The variance profile reveals two important aspects: how much individual observations deviate from the variable’s mean profile (Metric 1 ) and the temporal shape of the variance, including stationarity (variance remains constant over time). Similarly to the mean and quantile profiles, the variance profile can be visualized using line charts (see Section 5.1 ). In the context of LPD, repeated measurements introduce dependencies that necessitate a more detailed analysis of temporal structures, requiring tools capable of capturing autocorrelation. One such tool is the variogram (sometimes referred to as the semivariogram ) [ 9 , 10 , 14 ] , which we also estimate using kernel smoothing. The variogram measures variability through weighted squared differences between pairs of kernel-smoothed residuals separated by a time lag of u time units. Metric 5 . The kernel-smoothed variogram is calculated as \gamma_{j}^{(K)}(u)=\frac{1}{2}\sum_{i=1}^{n}\sum_{k=1}^{n_{ij}-1}\sum_{l=k+1}^{n_{ij}}{(r_{ijk}^{(K)}(t_{ijk})-r_{ijl}^{(K)}(t_{ijl}))}^{2}\bar{w}_{j}^{(K)}(u,t_{ijl}-t_{ijk}),~u>0, where the weights are \bar{w}_{j}^{(K)}(u,t_{ijl}-t_{ijk})=\frac{K_{h}(u,t_{ijl}-t_{ijk})}{\sum_{i^{\prime}=1}^{n}\sum_{k\prime=1}^{n_{i^{\prime}j}-1}\sum_{l^{\prime}=k^{\prime}+1}^{n_{i^{\prime}j}}K_{h}(u,t_{i^{\prime}jl^{\prime}}-t_{i^{\prime}jk^{\prime}}).} Assuming the total variance (Metric 4 ) is stationary, the variogram can be used to separate different sources of variation (Figure 2 ), as it is directly related to the autocorrelation function [ 9 ] . Under stationarity, the gap between the total variance and the variogram corresponds to between-subject variability , the unexplained component at baseline ( t=0 ) represents random measurement error , also referred to as nugget , and the remaining part reflects temporal within-subject variability ( serial correlation , i.e., autocorrelation). 0 1 2 3 4 5 6 7 8 9 10 0 0.5 1 1.5 \tau^{2} \sigma^{2} \nu^{2} Lag (u) Variability Total Variance Variogram (Exponential) Variogram (Gaussian) Figure 2 : Schematic (theoretical) variograms with exponential and Gaussian correlation under stationarity. The variance decomposes into measurement error ( \tau^{2} ), a serially correlated (autocorrelated) component ( \sigma^{2} ), and, if present, the variance of a random intercept representing between-subject variability ( \nu^{2} ). The shape of the variogram conveys the strength of autocorrelation. A sharp increase near the origin indicates strong short-range dependence, whereas a more gradual rise suggests longer-range correlation. As the lag increases, the variogram typically approaches a plateau, known as the sill , which corresponds to the total variance of the process when no between-subject variability is present. Under stationarity, a variogram that exceeds the total variance generally indicates the presence of a trend in the data. For clarity, our illustrations in Section 5 display both the kernel-smoothed variance profile and the variogram side by side as in Figure 2 . When the variable is non-stationary, the precise analytical interpretation of the variogram is less relevant for our purpose as the primary goal is that the metrics resemble one another, even if the figure itself does not carry the same interpretative meaning. In addition to the variance profile and the variogram, it is also useful to examine whether subjects preserve their relative ordering over time. This property, called rank-order stability , reflects how consistently repeated measurements maintain their positions, with high stability linked to strong autocorrelation and low stability to volatile patterns. To measure this, we propose kernel-smoothed rank-order variability . Metric 6 . Let \mathcal{Q}=\{q_{1},\dots,q_{Q}\} be a set of quantile levels, and let Q_{jq}^{(K)}(t),\;q\in\mathcal{Q}, denote the kernel-smoothed quantile profile of variable j at time t (see Metric 2 ). The kernel-smoothed rank-order variability for subject i and variable j is \mathcal{R}_{ij}=\frac{1}{Q}\cdot\frac{1}{n_{ij}-1}\sum_{k=1}^{n_{ij}-1}\big(R_{ij(k+1)}^{(K)}-R_{ijk}^{(K)}\big), where R_{ijk}^{(K)}\in\{1,\dots,Q+1\} is the quantile-bin index of x_{ijk} defined by R_{ijk}^{(K)}=\ell\quad\text{if}\quad Q_{jq_{\ell-1}}^{(K)}(t)0 to all probability masses before normalization. of dropout points \{d_{ij}\}_{i=1}^{n} in the original data and synthetic data, respectively. The dropout divergence is the Kullback–Leibler divergence between P_{j}(t) and \tilde{P}_{j}(t) : \mathcal{D}_{j}(P_{j}\,\|\,\tilde{P}_{j})=\sum_{t\in T_{j}^{\ast}}P_{j}\log\left(\frac{P_{j}(t)}{\tilde{P}_{j}(t)}\right). Both measurement-structure metrics rely on finding an optimal permutation and therefore require the corresponding measurement matrices to have identical dimensions, in contrast to other metrics that do not impose this requirement. Accordingly, if the number of synthetic subjects differs from that of the original data, random subsampling of an equal number of rows from both matrices can be used to ensure dimensional compatibility. This subsampling approach is also useful when the Hungarian algorithm becomes computationally expensive for large sample sizes. The procedure should be repeated multiple times, with the resulting scores averaged, to reduce variability introduced by random sampling, as described in Section 5 . Furthermore, the numerical scores obtained from the original and synthetic data are seldom identical, raising the question of what defines a “good" score. In practice, these metrics can be computed on a hold-out subset or a resampled version of the original data, as done in Section 5 , enabling comparisons between original-to-synthetic and original-to-original samples, with the aim that the former closely matches the latter. 5 Empirical illustration This section illustrates the evaluation metrics introduced in Section 4 using synthetic longitudinal patient data generated by two distinct SDG methods, HALO [ 40 ] and Health Gym GAN (HGG) [ 26 ] . HALO, based on the GPT-2 language model, represents a relatively novel approach, whereas HGG employs a generative adversarial network (GAN), a more established SDG technique. Both methods support unbalanced longitudinal data with mixed continuous and categorical variables and are available through publicly released implementations [ 37 ] . Their handling of unbalanced data differs, however: HALO can generate such data directly, whereas HGG requires prior imputation and the use of indicator variables, with unbalancedness reintroduced after generation. Both HALO and HGG have been earlier evaluated using autocorrelation-based metrics. The author’s of HALO reported that the method outperformed approaches such as EVA [ 6 ] and SynTEG [ 49 ] , whereas HGG demonstrated strong performance in a recent comparative study [ 21 ] . We generated synthetic data following the codebases released by the respective authors of HALO and HGG, including dataset selection (MIMIC-III [ 23 , 22 ] ), cohort definitions (HALO: 32,060 subjects, 17 variables; HGG: 3,910 subjects, 13 clinical variables and 7 missingness indicator variables), and preprocessing procedures. The results presented here are intended to illustrate the proposed metrics rather than to enable a direct comparison between the methods, as such a comparison would require, at a minimum, training on identical datasets. To harmonize the illustrative examples between the methods, we applied additional post-processing to the synthetic data generated by HALO by converting time from measurement intervals to a continuous hourly scale and restricting the analysis to the first 48 hours. This choice was also motivated by data sparsity: depending on the variable, only 25–50% of subjects in the HALO implementation had measurements at 48 hours, with coverage declining rapidly thereafter, while the acute hypotension subset [ 13 ] used for HGG is inherently limited to a 48-hour window. Additionally, bandwidth h=6 was used in all experiments. Metrics 9 and 10 (measurement similarity and drop-out divergence), together with the Frobenius norms of the measurement indicator matrices ( 1 ), were computed using random samples of 2,000 subjects and repeated over 100 iterations to accommodate the computational complexity of the Hungarian algorithm. Reported values correspond to averages across iterations, with reference values shown in parentheses and obtained from separate random samples of the original measurement matrix. To aid interpretation, Table 1 summarizes the illustrative examples presented in this section. Although the analyses were conducted for all variables, the examples shown were selected to highlight different observed phenomena, while variables not included here exhibited results similar to those presented. The following subsections provide a detailed discussion of each case. Table 1 : Overview of illustrative examples used to demonstrate the proposed evaluation metrics. Variable Method Illustration focus Main observation Systolic blood pressure HALO Moderate temporal preservation Autocorrelation and profiles preserved; mild outlier inflation Weight HALO Covariance structure failure Loss of between-subject heterogeneity despite correct marginals Respiratory rate HALO Covariance structure failure Autocorrelation preserved but variance and outliers exaggerated Aspartate aminotransferase HGG Covariance structure failure Suppressed extremes and reduced variance GCS score HGG Transition probability preservation Minority-class transitions unreliable GCS Eye opening assessment HALO Class proportion distortion Extra class introduced in the synthetic data FiO 2 HGG Class proportion distortion One class not reproduced in the synthetic data 5.1 Moderate temporal preservation We begin by examining systolic blood pressure generated by HALO, which demonstrates moderate temporal preservation according to our evaluation metrics. Figure 3 shows that the kernel-smoothed mean profile (Metric 1 ) and quantile profiles (Metric 2 ) of synthetic data closely match those of the original data. The main deviation occurs at the 95th percentile, which is higher in the synthetic data, indicating slightly deviating outlier patterns. No clear trends or periodic patterns emerge. As data sparsity can influence synthetic data generation, the bottom panels of Figure 3 also show the proportions of patients under follow-up over time. The original data shows a sharp drop in the number of patients just before 48 hours, whereas the synthetic data exhibit a more gradual decline. Figure 3 : Kernel-smoothed mean (Metric 1 ) and quantile profiles (Metric 2 ) of systolic blood pressure for the original data (left) and HALO-generated synthetic data (right). The relatively stable variance profile (Metric 4 , Figure 4 , upper curve) suggests a stationary process that is reasonably preserved in the synthetic data. The variogram (Metric 5 , Figure 4 , lower curve) further indicates gradually declining autocorrelation and, because it does not reach the variance profile, the presence of between-subject variability, both of which are well preserved in the synthetic data. Figure 4 : Kernel-smoothed variance profile (Metric 4 , blue) and variogram (Metric 5 , orange) of systolic blood pressure for the original data (left) and synthetic data generated by HALO (right). To further examine the covariance structure of systolic blood pressure, we analyzed the kernel-smoothed rank-order variability (Metric 6 , Figure 5 ). In both datasets, profiles are centered near zero, indicating that individuals generally maintain stable rankings relative to baseline, consistent with the autocorrelation observed in the variogram. Figure 5 : Boxplot (left) and density plot (right) showing the kernel-smoothed rank-order variability (Metric 6 ) of systolic blood pressure for original (blue) and HALO-generated synthetic data (orange) Subject-level trajectories (Section 4.3 ) can offer deeper insights into population-level metrics. For HALO, the raw unsmoothed trajectories (Figure 6 ), presented in six baseline quantile-defined percentile classes [0,5] , (5,25] , (25,50] , (50,75] , (75,95] , (95,100] , resemble the original data overall, with slightly more variation in groups 1 and 6. These patterns are directly connected to the increased variance in Figure 4 and the elevated 95th percentile in Figure 3 . Figure 6 : Subject-specific systolic blood pressure trajectories by baseline group for the original (top) and HALO-generated synthetic data (bottom). Figure 7 shows the measurement density (Metric 8 ) for both datasets. In the synthetic data, observations are more frequent at earlier time points but become more sparse after about 18 hours, whereas in the original data, measurements increase rapidly up to 6 hours and then gradually decrease, with a sharp drop after 42 hours. The synthetic series also displays strong fluctuations between adjacent time points, forming a zigzag pattern that suggests a periodic artifact of the data generating mechanism. Figure 7 : Measurement density (Metric 8 ) of systolic blood pressure for the original data (blue) and HALO-generated synthetic data (orange). The mean Frobenius norm (smaller is better) between the original and synthetic measurement matrices was 173.42 (reference 67.09). The mean measurement similarity score (Metric 9 , larger is better) was 0.69 (reference 0.95), and the mean drop-out divergence (Metric 10 , smaller is better) was 0.31 (reference 0.03). Compared to the natural variation within the real data, the synthetic data shows noticeably larger differences in measurement structure, as indicated by the higher Frobenius norm and drop-out divergence. Nevertheless, the measurement similarity remains comparatively high, aligning with the patterns identified through the other metrics. 5.2 Problems in preserving the covariance structure In this section, we illustrate different failure modes of covariance structure preservation using weight and respiratory rate generated by HALO and aspartate aminotransferase (AST) generated by HGG as examples. The results illustrate that closely matching numerical scores and marginal behavior can still coincide with substantial differences in covariance structure in the synthetic data. Changes in variability decomposition Figure 8(a) shows the mean and quantile profiles of the variable weight generated by HALO, which appear remarkably similar between the original and synthetic datasets. However, the variance profile and variogram in Figure 8(b) reveal critical differences. While the variance profiles largely agree, the variograms differ substantially. The low and flat variogram in the left panel appropriately captures the fact that individual weight remains stable during the 48-hour follow-up, with almost all variability in weight following from between-subject variability. In contrast, the synthetic data show a markedly different decomposition of variability, with reduced between-subject heterogeneity and a large contribution from measurement error. This change in covariance structure is also evident in the failure to reproduce rank-order variability (Figure 8(c) ). (a) (b) (c) Figure 8 : Panel (a) shows the kernel-smoothed mean and quantile profiles, panel (b) the variance profile and variogram (in squared units), and panel (c) the distribution of rank-order variability of weight for the original data (left) and HALO-generated synthetic data (right). The subject-specific trajectories shown in Figure 9 provide further insight into the differences in covariance structure. In the synthetic data, measurements exhibit pronounced short-term fluctuations and appear largely as random noise, with little evidence of consistent temporal patterns within individuals. The synthetic data also contains a larger number of subjects with only a single observation, visible as isolated points in Figure 9 . Importantly, these differences are not driven by outliers as the overall distribution of values is well preserved (Supplemental Figure S1 ). Figure 9 : Subject-specific weight (kg) trajectories by baseline group for the original (top) and HALO-generated synthetic data (bottom). The measurement density closely matches the original distribution (Supplemental Figure S2 ), although the synthetic data show a tendency toward more frequent measurements early on. The mean Frobenius norm between the original and synthetic measurement matrices was 35.21 (reference 30.63), the mean measurement similarity score was 0.99 (reference 0.99), and the mean drop-out divergence was 0.14 (reference 0.02). Overall, aside from a slightly higher dropout divergence, these numerical scores closely match the reference values. Inflated variance due to outliers Figure 10(a) shows the mean-quantile profiles of the respiratory rate generated by HALO. The relative positions of quantiles appear largely consistent between the original and synthetic datasets. However, the synthetic data displays a slightly higher mean and a noticeably lower 5th percentile, which deviates from the stable trend seen in the original data. (a) (b) (c) Figure 10 : Panel (a) shows the kernel-smoothed mean and quantile profiles, panel (b) the variance profile and variogram (in squared units), and panel (c) the distribution of rank-order variability of respiratory rate for the original data and HALO-generated synthetic data. Figure 10(b) reveals that the variance profile in the HALO-generated synthetic data is substantially inflated. Yet, the rank-order variability (Figure 10(c) ) suggest that individual rankings are largely preserved, i.e., autocorrelation structure is reasonably maintained. Indeed, the shape of the variogram relative to the variance scale is adequately preserved in the synthetic data (Supplemental Figure S3 ). An examination of subject-specific trajectories (Figure 11(a) ) shows that while some synthetic subjects follow patterns resembling those in the original data, many exhibit abrupt or erratic changes. This supports the earlier conclusion that the SDG method has preserved some degree of autocorrelation. (a) (b) Figure 11 : Panel (a) shows subject-specific respiratory rate trajectories by baseline group for the original and HALO-generated synthetic data, while panel (b) presents the mean–quantile profiles from Figure 10(a) augmented with observations below the 5th percentile and above the 95th percentile. When the mean-quantile profiles presented in Figure 10(a) are supplemented by plotting observations below the 5th and above the 95th percentiles (Figure 11(b) ), we see that the synthetic data contains outliers across a much wider range. This helps explain the exaggerated variance profile and abrupt changes in the subject-specific trajectories. Moreover, the distribution of these outliers appears almost uniformly random, in contrast to the behavior seen in the original data. The measurement density for respiratory rate generated by HALO (not shown) closely matches that of systolic blood pressure depicted in Figure 7 . The mean Frobenius norm between the original and synthetic measurement matrices was 166.87 (reference 61.32), the mean measurement similarity score was 0.71 (reference 0.96), and the mean drop-out divergence was 0.28 (reference 0.03). These indicate non-negligible deviations in the measurement structure relative to the reference. Deflated variance due to data sparsity Figure 12 shows that the 95th percentile of aspartate aminotransferase generated by HGG is strongly suppressed and lacks the increasing trend present in the original data. Figure 12 : Kernel-smoothed mean and quantile profiles of aspartate aminotransferase for the original data and HGG-generated synthetic data. The variance profile in Figure 13(a) is substantially deflated (see Supplemental Figure S4 for a free y-axis scale). The variogram of the original data increases rapidly with lag and exceeds the total variance, indicating the presence of a temporal trend. This is not reproduced by the synthetic data. Moreover, the rank-order variability in Figure 13(b) shows opposing behavior: values in the original data tend to decrease over time (variability skewed toward negative values), whereas those in the synthetic data increase. (a) (b) Figure 13 : Panel (a) shows the variance profile and variogram (in squared units), and panel (b) the distribution of rank-order variability of aspartate aminotrasferase for the original data and HGG-generated synthetic data. The subject-specific trajectories shown in Figure 14(a) confirm greater variability among individuals above the 95th percentile (group 6) in the original data. Although trajectories are generally stable over time, individuals in this group often exhibit decreasing trends, consistent with the rank-order variability, where the median remains close to zero but the distribution is skewed toward negative values. This pattern is largely absent in the synthetic data. (a) (b) Figure 14 : Panel (a) shows subject-specific aspartate aminotrasferase trajectories by baseline group for the original and HGG-generated synthetic data, while panel (b) presents the mean–quantile profiles from Figure 12 augmented with observations below the 5th percentile and above the 95th percentile. The mean–quantile plot with outliers (Figure 14(b) ) further shows that the synthetic data contains fewer extreme values than the original data, in contrast to the behavior observed for the HALO-generated respiratory rate (Figure 11(b) ). Together with the suppressed 95th percentile, this reduction in outliers explains the deflation of total variance. The synthetic data reproduced similar measurement density (Supplemental Figure S5 ). The mean Frobenius norm between the original and synthetic measurement matrices was 42.66 (reference 24.13), the mean measurement similarity score was 0.98 (reference 0.99), and the mean drop-out divergence was 0.07 (reference 0.01), suggesting minor deviations in terms of measurement structure. 5.3 Discrepancies between class proportions and transition probabilities Finally, we illustrate the proposed metrics for discrete variables using the Glasgow Coma Scale (GCS) score and FiO 2 generated by HGG, as well as the Glasgow Coma Scale Eye Opening assessment generated by HALO as examples. The results illustrate that synthetic data can exhibit discrepancies in both class proportions and transition probabilities, with rare classes being particularly difficult to reproduce reliably. The class profiles (Metric 3 ) of GCS score generated by HGG shown in Figure 15 are largely preserved despite the presence of 13 distinct classes. Deviations are more pronounced for less frequent classes in the synthetic data, which reflects their limited representation in the training set. Figure 15 : Kernel-smoothed class profiles (Metric 3 ) of Glasgow Coma Scale score for the original data (left) and HGG-generated synthetic data (right). (a) (b) Figure 16 : Panel (a) displays the kernel-smoothed transition probabilities (Metric 7 ) of the Glasgow Coma Scale score from class R-15, while panel (b) shows the transition probabilities from class R-12, for the original data (left) and the HGG-generated synthetic data (right). Transition probabilities (Metric 7 ) are reasonably well captured for the majority class “R-15” (Figure 16(a) ), whereas the probabilities of minority classes are not learned reliably (Figure 16(b) ). This behavior was consistent across all discrete variables (see additional examples in Supplemental Figure S6 ). HALO exhibited similar limitations and showed greater difficulty in preserving overall class proportions (Supplemental Figure S7 ). (a) (b) Figure 17 : Kernel-smoothed class profiles of (a) the Glasgow Coma Scale Eye Opening assessment generated by HALO and (b) FiO 2 generated by HGG, shown for the original data and the synthetic data. The mean Frobenius norm of HHG-generated GCS score between the original and synthetic measurement matrices was 121.64 (reference 62.82), the mean measurement similarity score was 0.85 (reference 0.96), and the mean drop-out divergence was 0.12 (reference 0.02). These results indicate moderate discrepancy in the measurement structure. More pronounced discrepancies were observed in the treatment of rare categories. The GCS Eye Opening assessment generated by HALO included an additional class, “none,” that was absent from the training data (Figure 17(a) , right panel), whereas the FiO 2 variable generated by HGG failed to reproduce the class “Range-0.0” (Figure 17(b) , right panel). 6 Discussion We introduced a comprehensive set of metrics designed for evaluating temporal preservation in synthetic longitudinal patient data. While recent advances in generative modeling enable increasingly realistic synthetic datasets, existing evaluation frameworks largely focus on cross-sectional similarity and overlook temporal dependencies essential to LPD. Our proposed metrics address this gap by providing tools to quantify how well synthetic data reproduces key longitudinal characteristics, including marginal, covariance and individual structures as well as measurement patterns. Our illustrations reveal that even when marginal summaries such as means or quantile profiles appear consistent with the original data, the covariance structure may be distorted or lost. For example, the HALO-generated weight variable appeared well aligned at the marginal level, yet the variogram analysis and subject-specific trajectories revealed disrupted covariance and irregular individual patterns. These findings highlight that marginal-level agreement alone can be misleading and underscore the need for multiple complementary metrics to comprehensively assess synthetic data quality. Evaluating results jointly across multiple domains offers a more complete picture of temporal preservation and helps identify why certain aspects of the underlying temporal structure may fail. An integrated approach is essential for understanding both how well a given SDG method retains the original longitudinal characteristics and where improvements are needed. Applying a full range of metrics revealed several factors that critically influence the temporal fidelity of synthetic LPD. A key determinant of achieving high quality synthetic data is the quality of the original data itself, which highlights the familiar “garbage in, garbage out” principle. Several of the issues observed can be traced to how variables were represented and preprocessed for SDG. Outliers and implausible values, such as negative measurement times present in the original datasets, were reproduced either with exaggerated or diminished magnitude in synthetic data, thereby distorting the covariance structure. These results suggest that systematic data cleaning is essential before applying SDG methods, unless the downstream tasks specifically depend on extreme or atypical values. In most longitudinal applications, however, the primary goal is to model overall disease behavior or predict patient outcomes, rendering such outliers rather noise than signal. Beyond data quality, modeling choices and preprocessing decisions further shape temporal preservation. Many existing SDG methods, including HALO, require discretizing continuous variables and reconstruct them by sampling uniformly within predefined bins. However, if the bins are excessively wide or if binning produces very small classes, these choices can introduce artifacts and amplify data imbalance. For instance, in our examples HALO generated outliers from an overly wide uniformly distributed bin (Figure 11(b) ). Severe class imbalance may also lead to mode collapse [ 25 ] , whereby dominant classes are reproduced while the smallest minority classes fail to be generated, as observed in Figure 17(b) , and may further limit the ability of the methods to learn reliable transition probabilities (Figure 16(b) ). More adaptive and data-driven preprocessing strategies, such as density-based binning [ 3 ] , could mitigate these issues by adapting bin boundaries to the empirical data distribution, thus ensuring a more balanced representation of rare values while preserving important local variations. Another major determinant of model performance was measurement density. Variables measured less frequently or inconsistently likely provided insufficient information for the SDG methods to learn the underlying distribution. This illustrates a key challenge in unbalanced LPD: while temporal patterns can be learned well for frequently measured variables, such as systolic blood pressure depicted in Figure 3 , those with sparse or irregular sampling (e.g., aspartate aminotransferase; Figure 14(b) , observed at only 1.5% of time points) or small class representation remain difficult to model accurately. Uneven measurement density and irregular measurement schedules can therefore lead to variable-specific discrepancies in temporal preservation, highlighting the need for SDG methods that explicitly account for unbalancedness in LPD. In addition to differences in measurement density across variables, discrepancies also arose from how temporal information itself was represented and generated. In the original HALO training data, 99.7% of measurements occurred at full-hour intervals (integers), whereas in the corresponding synthetic data this proportion dropped to 13.1%. Such discrepancies may arise when the method generates time as real-valued (floats) even though the underlying distribution is predominantly integer-based, or when severe unbalancedness in the training data biases the learning process. When these real-valued synthetic times are transformed back into the original scale, as was done in our illustrations, overlapping or alternating time points can appear, producing the zigzag pattern observed in the measurement density plots. This issue is less pronounced in HGG because the model uses a fixed 48-step time structure. These findings emphasize that preserving temporal structure in LPD requires careful alignment between how time is encoded and modeled. Finally, model-specific assumptions introduce additional challenges. In language model–based generators such as HALO, defining a fixed vocabulary over the entire dataset can lead to artifacts when certain classes are so rare that they never appear in the training data; these unseen classes remain valid tokens and may still be generated, despite the model lacking evidence to calibrate their frequency or transitions (Figure 17(a) ). A potential remedy is to adopt dynamic vocabulary construction [ 47 ] . In contrast, GAN-based architectures such as HGG are sensitive to missing data handling. Forward-fill or mean imputation combined with sparse observations may cause training trajectories to be dominated by imputed values, producing overly smooth patterns with reduced variability in the synthetic data, as observed for aspartate aminotransferase (Figure 12 ). More advanced imputation strategies [ 19 ] could better preserve the original data distribution and variability. 6.1 Limitations The present study has several limitations. First, it is important to note that our goal was not to compare specific SDG methods but to demonstrate the utility of the proposed resemblance metrics. Although we initially considered comparing different SDG approaches for generating LPD, a fair comparison proved infeasible because each method requires distinct preprocessing pipelines, preventing the use of a common training set for benchmarking. Furthermore, the continuous-variable version of HALO used here was only briefly described in the original publication [ 40 ] and may still be under development, which could account for the coarse binning and limited data cleaning resulting to the outlier issues. For both HALO and HGG, only a single generator was trained, whereas a thorough performance assessment would have required multiple training runs across different datasets and hyperparameter settings, an approach beyond the scope of this study. Second, we did not include metrics assessing logical consistency, such as monotonicity, where certain values are expected to change only in one direction over time, or non-recurrence, where specific events are expected to occur only once. This was primarily because our data did not contain variables for which such metrics could have been meaningfully illustrated. Nevertheless, these types of constraints represent important aspects of realistic temporal behavior and should be considered when assessing the plausibility of synthetic LPD. Third, our evaluation focused exclusively on univariate resemblance metrics. Multivariate comparisons, while relevant for understanding relationships between variables, are often difficult to interpret and visualize in a temporal context. Moreover, we argue that if univariate resemblance metrics already reveal substantial deviations, assessing multivariate preservation may add limited additional insight. Developing interpretable and informative multivariate temporal preservation metrics remains an important direction for future research. Fourth, we did not distinguish between true missingness and structural unbalancedness. Future research could build on established methods for characterizing and handling missing data to better disentangle the two. Descriptive diagnostics such as visualization of missing data patterns or Little’s MCAR test [ 30 , 28 ] could help assess whether missingness is plausibly random, while logistic regression or random forest models predicting the probability of missingness from observed variables could aid in distinguishing missing at random from missing not at random. Extending and adapting these approaches to secondary real-world patient data, where the boundaries between missingness and unbalancedness are often blurred, represents a promising direction for methodological development. Finally, we did not assess privacy protection or the analytical utility of synthetic data. While our metrics quantify structural differences between synthetic and original datasets, such differences may not directly correspond to performance gaps in downstream tasks such as prediction or classification. However, from a privacy perspective, larger deviations from the original data may indicate stronger protection against re-identification or attribute disclosure. Conversely, parametric modeling and statistical inference are often more sensitive to distributional deviations, which may have a greater impact on analytical utility. Future work should therefore complement structural resemblance assessments with joint evaluation of privacy and utility to better characterize the trade-offs between data protection and performance. 6.2 Conclusion In this study, we introduced a comprehensive set of resemblance metrics for evaluating univariate temporal preservation in synthetic longitudinal patient data, addressing a key limitation of existing evaluation frameworks that largely focus on cross-sectional similarity. Through illustrative examples, we showed that agreement at the marginal level alone can be misleading as synthetic data may exhibit substantial distortions in covariance structure, individual structure, and measurement patterns. Our results indicate that temporal fidelity is strongly influenced by data quality, preprocessing choices, and modeling assumptions, with sparse measurements, imbalanced class distributions, and differences between generated time values and the original measurement schedule posing particular challenges across different generative paradigms. The proposed metrics provide a structured and interpretable framework for diagnosing these issues, offering insight into where and why temporal structure is preserved or lost. Together, these findings underscore the importance of rigorous temporal evaluation as a prerequisite for the responsible use of synthetic longitudinal patient data and motivate future work integrating temporal resemblance with assessments of multivariate structure, privacy protection and analytical utility. 7