Introduction

Patient-reported outcomes (PROs) [1] represent a critical dimension of healthcare assessment, capturing health status, symptoms (e.g., pain intensity, fatigue levels, sleep disorders, mental health), functional status, quality of life, and treatment satisfaction directly from patients, without clinician interpretation [2]. These subjective insights, gathered via standardized instruments like SF-36 [3, 4], pain scales, or PHQ-9 [5], provide unique perspectives often missed by objective clinical measures and are vital for prioritizing the patient’s voice in care [6, 7]. Consequently, the precise forecasting of personalized short-term and long-term weekly PROs during therapies like radiotherapy is paramount. Accurate predictions enable real-time tracking of patient health status, assessment of treatment effectiveness, and timely adjustments to manage side effects [6]. However, generating reliable PRO forecasts faces significant challenges: missing data due to skipped questions, discomfort, or patient disengagement; inconsecutive reporting schedules (e.g., missed weekly reports during six-week radiotherapy or follow-ups), for example, most of the radiotherapy treatment planning for patients is six consecutive weeks with consistent and accurate delivery of fractional doses and with approximate six-month and/or one-year follow-up PRO reports; and data sparsity, which disproportionately impacts vulnerable populations (e.g., elderly, low-literacy patients) [8]. These multifaceted issues hinder data quality, reliability, and ultimately, the clinical utility of predictions [9].

Predicting weekly PROs using time-series models confronts substantial hurdles beyond data collection. Key challenges include: (i) Data Irregularities: Missing reports [10,11,12,13,14], subjective noise from patient variability [15], and sparse data streams. (ii) Temporal Complexities: Non-stationarity due to evolving health conditions and multi-scale trends (short-term fluctuations vs. long-term progression) [16]. (iii) Model Limitations: Feature selection gaps, overfitting risks, computational demands, and poor interpretability [9]. (iv) Patient-Specific Issues: Heterogeneous health trajectories [9, 17] and the “cold-start” problem for new patients. Current approaches often rely on single-patient models. Vector Autoregression (VAR) [18] struggles with the sparse, noisy nature of weekly PROs, its linearity assumptions fail to capture complex symptom interactions, and its static training requires full retraining for adaptation. Incremental VAR (VAR-Inc) addresses some limitations by dynamically integrating newly reported weekly PRO ground truth, enhancing adaptability to evolving health states and responsiveness to acute changes like side effects. However, key limitations persist:

  1. a)

    VAR and VAR-Inc remain constrained by linear assumptions, unable to model complex non-linear symptom dynamics.

  2. b)

    They operate in isolation, training solely on individual patient data, thus ignoring valuable population-level patterns and similarities that could contextualize individual trends and improve robustness.

  3. c)

    Crucially, VAR-Inc’s prediction quality is highly dependent on the consistent availability of follow-up ground truth PRO reports; missing reports significantly deteriorate performance.

  4. d)

    Neither approach establishes a generalizable predictive model, limiting applicability to new patients or those with incomplete histories.

To overcome these limitations, we propose and investigate Temporal Fusion Transformers (TFT) [19], a state-of-the-art multi-horizon forecasting model, for personalized short- and long-term weekly PRO prediction in radiotherapy. TFT offers a comprehensive solution by:

  1. 1)

    Leveraging Multi-Patient Data: Learning shared trends across diverse patients to contextualize individual trajectories and enhance robustness against sparse/noisy data, directly addressing the cold-start problem and reducing dependency on any single patient’s complete follow-up data.

  2. 2)

    Modeling Complex Dynamics: Capturing intricate non-linear interactions and temporal dependencies through its transformer-based architecture.

  3. 3)

    Integrating Diverse Inputs: Seamlessly combining static covariates (e.g., demographics), observed past data (historical PROs), and known future inputs (e.g., planned treatment weeks).

  4. 4)

    Ensuring Interpretability & Focus: Utilizing attention mechanisms to prioritize key temporal features and provide insights into globally significant variables and temporal patterns [20, 21].

  5. 5)

    Providing Uncertainty & Efficiency: Offering quantile forecasts for risk-aware decision-making and enabling efficient GPU-accelerated training and inference [19]. TFT has demonstrated superior accuracy, outperforming models like DeepAR [22] and standard Transformers [23] by 3–26% in quantile losses across domains [19].

This study conducts a comparative evaluation of single-patient models (VAR, VAR-Inc) and the multi-patient TFT model for personalized weekly PRO forecasting in radiotherapy. Our investigation yields the following key contributions and insights:

  1. 1)

    Critical Value of Incremental Updates: VAR-Inc demonstrates significantly superior performance (lower MAE/RMSE) compared to standard VAR, empirically confirming the importance of integrating incremental ground truth PRO updates when available.

  2. 2)

    TFT Superiority for Long-Term Forecasting: TFT, by effectively leveraging multi-patient information and modeling complex dynamics, achieves substantially enhanced accuracy for long-term PRO predictions compared to both VAR and VAR-Inc.

  3. 3)

    Effective Temporal Trend Capture: TFT demonstrates a strong capability to capture the underlying temporal trends and variations in weekly PRO predictions relative to the ground truth.

  4. 4)

    Robustness and Generalizability: TFT overcomes the fundamental limitations of single-patient models by establishing a stable, reliable predictive framework from heterogeneous patient data. This integration of population-level information mitigates the acute dependency on individual follow-up data observed in VAR-Inc and provides a generalizable model applicable to new patients or those with missing reports, ultimately fostering a more efficient, equitable, and proactive patient-centered healthcare system [10,11,12].

Materials and methods

Data

Our cohort initially comprised 985 prostate cancer patients treated with Intensity Modulated Proton Therapy (IMPT) or Stereotactic Body Radiation Therapy (SBRT). Through clinical consultation with radiation oncologists, we refined the cohort to 108 patients meeting strict selection criteria: intact prostate anatomy and IMRT treatment. Among these, 17 patients (15.7%) exhibited sufficient longitudinal data (> 8 total PRO records including 4–6 consecutive weekly entries) for modeling. These were partitioned into training (n = 12) and testing (n = 5) subsets. The remaining 91 patients (84.3%) were excluded due to inadequate PRO continuity (< 8 total records and ≤ 4 consecutive weeks of data), which precluded reliable time-series analysis. Data preprocessing comprised three critical steps: First, rows and columns exceeding 50% missing values (null/NaN) were excluded to maintain dataset integrity. Second, missing weekly entries were imputed using quadratic spline interpolation [24], with results rounded to the nearest integer to preserve the discrete nature of PRO scales. Finally, z-score normalization (μ = 0, σ = 1) was applied independently to each feature to mitigate scale variance across domains.

The prostate PRO dataset consists of 24 PRO instruments as shown in Fig. 1 based on a clinical tool (i.e., EPIC‐CP and IPSS to assess the health-related quality of life (HRQOL) and specifically prostate-related symptoms, respectively) to measure urinary, bowel, sexual and vitality/hormonal health. These prostate-related symptoms include urinary function, urinary control, urinary leakage, urinary dripping, pain, emptying, pain bowels, orgasm, erections, problem sexual function, hot flashes, depressed feelings, energy, ipss1, ipss2, ipss3, ipss4, ipss5, ipss6, ipss7, and ipss 8. The values from 0 to 4 or 5 or 6 or 7 are related to the patients’ responses such as"No problem","Very small problem","Small problem","Moderate problem", or"Big problem". We evaluated three forecasting models, including VAR, VAR-Inc and TFT, to perform multi-attributes forecasting in the prostate PRO dataset. This process aims to predict future symptom trajectories (e.g., pain, urinary function, etc.) and treatment-related toxicities across multiple time horizons, enabling proactive clinical interventions and personalized radiation therapy adjustments for prostate cancer patients.

Fig. 1
Fig. 1
Full size image

Bar chart shows the 24 PRO attributes and their corresponding scales in the prostate cancer dataset. Scales represent validated patient-reported outcome measures: (1) EPIC-CP: Assesses health-related quality of life (HRQOL) specific to prostate cancer. Scores for Urinary Function, Urinary Control, Urinary Leakage, Urinary Dripping, Bowel Pain (Pain Bowels), Sexual Orgasm, Sexual Erections, Sexual Problem (Problem Sexual Function), Hormonal Hot Flashes, Hormonal Depressed Feelings, and Hormonal Energy are reported on a transformed scale of 0–100, where higher scores indicate better function/fewer symptoms (e.g., less leakage, better erections, more energy, fewer hot flashes, less depressed feeling). (2) IPSS (International Prostate Symptom Score) [25]: Assesses the severity of urinary symptoms commonly associated with benign prostatic hyperplasia, but highly relevant in prostate cancer patients. Scores for IPSS1 (Incomplete Emptying), IPSS2 (Frequency), IPSS3 (Intermittency), IPSS4 (Urgency), IPSS5 (Weak Stream), IPSS6 (Straining), and IPSS7 (Nocturia—Getting up at night) are reported on a scale of 0–5 for each item, where higher scores indicate worse symptoms (e.g., more frequent urination, greater urgency, more nighttime awakenings). IPSS8 (Quality of Life due to urinary symptoms) is scored 0–7 (higher = worse), reflecting the frequency or impact of urinary symptoms such as urgency, weak stream, and nocturia

VAR for single-patient PRO predictions

Our study leverages time-series statistical models (VAR/VAR-Inc) to predict weekly PROs for prostate cancer patients undergoing radiotherapy, despite significant data challenges. The cohort limitations are substantial: only 17 of 108 patients had > 8 PRO records, all intact-prostate IMPT [26, 27] cases receiving 70 Gy in 28 fractions for a fair comparison. These patients exhibited distinct reporting patterns: intensive initial monitoring (4–8 consecutive weekly PROs during active treatment) followed by sparse follow-ups. This trajectory creates three core challenges: (1) Severe data scarcity—only 15.7% of patients met minimum longitudinal requirements; (2) Structural missingness—extended intervals between follow-ups generate discontinuous records; and (3) High clinical variability—visit frequency individualization (e.g., 4–5 weeks for responsive patients vs. 6–8 weeks for elderly/complex cases) compounds data irregularity. These constraints critically compromise the reliability of traditional time-series forecasting for PRO monitoring.

To address these challenges, we first try to use VAR [18], a simply static model to implement on prostate PRO Datasets. VAR is a statistical model widely utilized for analyzing multivariate time-series data. Consider a multi-label time series with \(k\) PROs. We let \({y}_{t}\) be a vector of \(k\) PROs (e.g. urinary function, pain) at time \(t\):

$${y}_{t}=\left[\begin{array}{c}{y}_{1, t}\\ {y}_{2,t}\\ \begin{array}{c}\vdots \\ {y}_{k,t}\end{array}\end{array}\right]$$

where \({y}_{i, t}\) represents the \(i\)-th PRO at time \(t\). \(p\) be the number of lags (historical time steps) included in the model. The VAR model is formulated as:

$$y_t=C+A_1y_{t-1}+A_2y_{t-2}+\dots+A_py_{t-p}+\mathcal{E}_t$$

where \(C\) is a \(k\times 1\) vector of constant terms. \({A}_{i}\) are \(k\times k\) coefficient matrices describing the relationships among PROs at different lags. \({\mathcal E}_t\) is a \(k\times 1\) vector of errors terms, assumed to be normally distributed with zero means. VAR captures linear interdependencies among multiple time-series variables by modeling each variable as a function of past values of itself (\({y}_{i,t-1}, {y}_{i,t-2}, \dots , {y}_{i,t-p}\)) and past values of other variables (\({y}_{j,t-1}, {y}_{j,t-2}, \dots , {y}_{j,t-p}\) for \(j\ne i\)) in the system. Specifically, each variable is represented as a linear combination of lagged observations, thereby enabling the capture of temporal dynamics across different variables simultaneously. In this study, VAR utilizes the initial 6–8 consecutive weeks of PRO data to forecast subsequent weeks, potentially extending predictions up until the weeks for which ground truth data from patients are available, thus offering a long-term predictive capability based purely on historical data.

VAR effectively addresses identified challenges through several strategies. Given the limited dataset size, VAR leverages each patient’s first several continuous weeks (first 4–8 weekly consecutive records \(\times\) 24 features) to predict future PROs, enabling meaningful analysis despite small sample size. In addition, VAR also mitigates missing data issues by estimating unrecorded weekly PROs with intervals, thereby maintaining continuity and completeness in longitudinal tracking (Fig. 2). Furthermore, VAR addresses high variability by providing individualized predictions for each prediction for each patient based on their initial data, thus accommodating diverse patient trajectories and improving prediction accuracy.

Fig. 2
Fig. 2
Full size image

Comparison of VAR and VAR-Inc

While VAR is powerful for modeling linear interdependencies in multi-variate time-series data, it still has several critical limitations on PROs analytics and predictions. Firstly, VAR assumes linear relationships between each PROs feature. However, linearity assumption will cause an out-of-range issue. For many clinical phenomena (e.g. pain) exhibit non-linear dynamics. For example, a patient’s pain score may plateau after an intense weekly radiation therapy, which VAR cannot capture only depends on first 4–8 weekly consecutively true PROs data. If VAR observes the first 4–8 weeks, the patient’s pain score shows a slight increasing trend, it will always increase the pain score for the follow-up weeks. By contrast, if the urinary function suddenly worsens after reaching a cumulative radiation threshold, VAR’s linear coefficients will fail to model these abrupt changes. For either one of the issues mentioned above, it will cause predictions out of bound, and this will cause the VAR totally to violate clinical reality, rendering them unusable. Especially for abrupt changes, the clinicians cannot receive any information from the predictions, it is possible misprediction risk patient safety.

VAR-Inc for single-patient PRO predictions

Standard Vector Autoregression (VAR) [18] faces significant limitations in single-patient PRO forecasting: it struggles with sparse/noisy weekly data, linearity constraints that fail to capture complex symptom interactions, and static training requiring full retraining for adaptation. Incremental VAR (VAR-Inc) addresses these issues by dynamically integrating newly available weekly PRO ground truth—updating model parameters to refine subsequent predictions. This enables real-time adaptation to evolving health states, enhances responsiveness to acute changes (e.g., treatment side effects), and mitigates data sparsity through continuous learning. VAR-Inc initializes predictions using the first 6–8 consecutive PRO weeks, then incrementally updates forecasts upon receiving new patient data. While this approach improves reliability and personalization over static VAR, it remains constrained by linear assumptions (inadequate for complex symptom dynamics) and isolated training (ignoring informative population-level patterns).

The VAR-Inc model dynamically integrates incremental PRO data via weekly batch updates triggered by new ground truth reports. Upon receipt of each patient’s weekly PRO submission, the system: (1) appends new observations to the patient’s historical sequence; (2) re-estimates VAR coefficients; and (3) generates updated forecasts for subsequent weeks. This batch process—executed nightly via automated Python scripts—optimizes computational efficiency while ensuring clinical feasibility (aligning with typical PRO reporting cadence).

TFT for single-patient PRO predictions by incorporating multi-patient PROs

TFT [19] offers a comprehensive solution for multi-horizon time series forecasting by seamlessly integrating diverse inputs, static covariates (e.g., diverse patients), observed past data (e.g., historical PRO), and known future events (e.g., weekly PRO), while delivering state-of-the-art accuracy, outperforming models like DeepAR [22] and Transformers [23] with 3–26% lower quantile losses. Its architecture combines interpretability through attention-based insights into globally significant variables, persistent temporal patterns, and regime shifts, alongside adaptive components like gated residual networks (GRNs) [20, 21] and variable selection to suppress noise and prioritize relevant features. TFT provides uncertainty quantification via quantile forecasts, enhances efficiency with GPU-accelerated training and fast inference, and scales effortlessly across domains like retail, healthcare, and finance. By automating feature engineering, integrating static metadata, and dynamically adapting to changing conditions, TFT balances high performance with transparency, enabling actionable insights for risk-aware decision-making in complex, real-world scenarios. The input of TFT is to integrate static covariates (e.g., PRO week numbers), observed past inputs (e.g., historical PRO), and some known future inputs (e.g., patient weekly PRO symptoms). The core components of TFT include (1) self-attention mechanisms to capture long-term dependencies; (2) recurrent layers (e.g., LSTM) for local temporal processing; (3) gating mechanisms to skip irrelevant components, reducing complexity; (4) variable selection networks to prioritize impactful features at each timestep; and (5) static covariate encoders to condition forecasts on metadata. It also provides good interpretability to identify globally important variables (e.g., what are the important patients and which historical week PRO). Lastly, TFT provides quantile forecasts (e.g., 90%, 50%, 10%) for uncertainty estimation. TFT balances high accuracy with transparency, making it suitable for applications requiring actionable insights, such as inventory planning or healthcare PRO data analysis.

By leveraging attention mechanisms, TFT can model both long-term dependencies, and short-term fluctuations to enable the simultaneous prediction of multiple interdependent PROs (e.g. pain, urinary function). TFT architecture utilizes self-attention layers to recognize the temporal relationships across the input sequence and gating mechanisms to filter irrelevant noise. One of the key advantages of TFT is that it introduces interpretability to the time series prediction by multi-head attention mechanism. Each timestamp in the dataset is assigned with a learnable attention weight. These attention weights could provide clinicians with an insight into how historical data can influence future PROs predictions. To enhance the size of training inputs, we use spline interpolation to obtain more training batches, for example, weeks 1–5 PRO data, weeks 2–6 PRO data as input, and week 6, 7 PRO data as output, respectively.

Variable selection network

Mathematically, TFT combines attention mechanisms, gating, and specialized components for multi-horizon time series forecasting for the input PRO representations, including static variables \({s}_{i}\in {\mathbb{R}}^{{d}_{s}}\), historical observed PRO data w.r.t. \(t\), \({z}_{i,t}\in {\mathbb{R}}^{{d}_{z}}\), all PRO feature attributes, \({x}_{i,t}\in {\mathbb{R}}^{{d}_{x}}\), and target PRO values of different variables w.r.t. \(t\), \({y}_{i,t}\in {\mathbb{R}}\). For each input type (static, past, future), TFT uses a gated residual network (GRN) [20, 21] to select relevant variables via \({v}_{{z}_{t}}=Softmax\left({GRN}_{{v}_{\text{z}}}\left({\left[{\widetilde{z}}_{t}^{\left(1\right)},{\widetilde{z}}_{t}^{\left(2\right)},\dots ,{\widetilde{z}}_{t}^{\left({d}_{z}\right)}\right]}^{T},{c}_{s}\right)\right)\), where \({\widetilde{z}}_{t}^{\left(j\right)}\) (\(j=\text{1,2},\dots ,{d}_{z}\)) is a transformed feature such as entity embedding or linear projection, and \({c}_{s}\) is a static context vector. The weighted sum is \({\widetilde{z}}_{t}={\sum }_{j=1}^{{d}_{z}}{v}_{{z}_{t}}^{\left(j\right)}\bullet {GRN}_{{v}_{\text{z}}}\left({\widetilde{z}}_{t}^{\left(j\right)}\right)\).

Gated Residual Network (GRN)

The GRN is a key component used across the model for adaptive feature selection and transformation. Given an input \(a\) and optional context vector \(c\), the GRN is defined as:

$${\eta }_{1}={W}_{1}a+{b}_{1}$$
$${\eta }_{2}=ELU\left({W}_{2}{\eta }_{1}+{W}_{3}c+{b}_{2}\right)$$
$$GRN\left(a,c\right)=LayerNorm\left(a+GLU\left({\eta }_{2}\right)\right)$$

where \(ELU\left(\bullet \right)\) is the Exponential Linear Unit activation [28], GLU (Gated Linear Unit) [29] applies a gating mechanism, \(GLU\left(x\right)=\sigma \left({W}_{g}x+{b}_{g}\right)\odot \left({W}_{x}x+{b}_{x}\right)\), where \(\sigma \left(\bullet \right)\) is the sigmoid function, ensuring that only relevant components are passed through.

Temporal processing

TFT employs two mechanisms to handle short-term and long-term dependencies, i.e., local sequence processing and long-term temporal attention. Local sequence processing uses an LSTM encoder-decoder [30] to capture short-term dependencies. Long-term temporal attention uses a multi-head self-attention mechanism [23] for capturing long-range dependencies.

  1. (a)

    LSTM Encoder-Decoder: A bi-directional LSTM processes historical inputs, \({h}_{t}=LSTM\left({h}_{t-1},{\widetilde{z}}_{t}\right)\). The hidden state \({h}_{t}\) captures local dependencies within a fixed window.

  2. (b)

    Self-Attention Layer (Interpretable Multi-Head Attention): The self-attention layer captures long-range dependencies across different time steps:

$$Attention\left(Q,K,V\right)=A\left(Q,K\right)V$$

where \(A\left(Q,K\right)=Softmax\left(\frac{Q{K}^{T}}{\sqrt{{d}_{k}}}\right)\).

For multi-head attention, different heads learn different representations:

$${H}_{h}=Attention\left(Q{W}_{Q}^{\left(h\right)},K{W}_{K}^{\left(h\right)},V{W}_{V}^{\left(h\right)}\right)$$
$$MultiHead\left(Q,K,V\right)=\sum_{h=1}^{H}{H}_{h}{W}_{H}$$

TFT modifies standard multi-head attention to make it interpretable by enforcing shared values across attention heads.

Static enrichment

Static covariates influence the sequence processing by encoding them into context vectors:

$${c}_{s}={GRN}_{s}\left(s\right)$$

These vectors influence variable selection, LSTM initialization, and attention computation.

Prediction and loss function

TFT outputs quantile forecasts rather than point estimates to quantify uncertainty. The final output is computed as:

$${\widehat{y}}_{t}^{\left(q\right)}={W}_{q}{\psi }_{t}+{Wb}_{q}$$

where \(q\) represents the quantile level (e.g., 10%, 50%, 90%), and \({\psi }_{t}\) is the processed feature representation.

TFT is trained using the quantile loss function:

$$\mathcal{L}\left(y,\widehat{y},q\right)=q{\left(y-\widehat{y}\right)}_{+}+\left(1-q\right){\left(\widehat{y}-y\right)}_{+}$$

where \({\left(x\right)}_{+}=max\left(0,x\right)\). This loss encourages proper estimation of prediction intervals. TFT effectively combines short-term recurrence (LSTMs) with long-term dependencies (self-attention) while maintaining interpretability through variable selection, gating mechanisms, and self-attention visualization.

Experimental settings

For prostate cancer PROs (Table 1), we selected 12 patients (with more than 8 weeks PRO record) as our training data, and 5 patients as our test data for TFT training and testing. The search ranges of all parameters during TFT training are listed in Table 1. The final TFT hyperparameters were selected through a comprehensive Bayesian optimization workflow using the Optuna framework (v3.3.0). For each combination in the predefined search space, we performed fivefold time-series cross-validation on the training cohort, evaluating mean absolute error (MAE) on the validation horizon. The optimal set was chosen by achieving the lowest mean MAE across all folds, ensuring robustness against overfitting while prioritizing clinical relevance through error minimization.

Table 1 Information on dataset and TFT hyperparameter settings

We evaluated all models using three established metrics: MAE, Root Mean Squared Error (RMSE), and Accuracy. MAE measures the average unsigned deviation between predicted and observed values, providing a clinically interpretable estimate of typical prediction error magnitude. RMSE calculates the root mean of squared errors, disproportionately penalizing large deviations—critical for safety-sensitive contexts where severe toxicity underestimation could impact clinical decisions. Accuracy quantifies the proportion of correct classifications when continuous PRO scores are discretized into clinically relevant bins (e.g., mild/moderate/severe toxicity), enabling categorical assessment of model reliability.

Experimental results

In the experiments, we report on the overall performance comparison (e.g., MAE, RMSE, Accuracy) of both single-patient and multi-patient PRO prediction models. Statistical analysis including paired t-test and corresponding p-values are summarized. Finally, we track the training and validation loss of TFT to avoid underfitting and overfitting during training and conduct parameter sensitivity studies of TFT.

Overall comparison

Table 2 demonstrates the comparative performance of TFT, VAR, and VAR-Inc across key metrics. VAR-Inc consistently outperformed standard VAR, with significantly lower MAE and RMSE values for both short- and long-term predictions (e.g., MRN 1135232 at weeks 11/21/35/47), confirming that incremental integration of follow-up PRO data substantially enhances prediction accuracy. TFT achieved competitive results against VAR-Inc (e.g., MRNs 1,135,232/2364148 at week 11) and surpassed both single-patient models for most patients (MRNs 0718747/9610839/1716822) across multiple timepoints. This superior performance stems from TFT's ability to leverage population-level patterns for precise personalized forecasting—critical for tracking health status, treatment efficacy, and side-effect management. Notably, VAR-Inc outperformed TFT for MRN 2364148, suggesting this patient’s unique symptom trajectory was poorly represented in cohort-level patterns, highlighting scenarios where personalized models retain clinical value. On average, TFT outperforms VAR and VAR-Inc by achieving a lowest MAE 0.7715, while the MAE of VAR and VAR-Inc are 1.1329 and 0.8089, respectively. Furthermore, TFT is superior to VAR and VAR-Inc by achieving a lowest RMSE 0.9586, while the RMSE of VAR and VAR-Inc are 1.4817 and 1.0693, respectively.

Table 2 MAE/RMSE Comparison for TFT vs. VAR/VAR-Inc

To more accurately evaluate the prediction performance, we use the round number of predicted PRO values from the regression models, either single-patient or multi-patient based, to obtain integer vectors compared to ground truth PRO integer vectors. After that, we further report the corresponding prediction accuracy of each model and summarize the results in Table 3 and Fig. 3. It’s interesting to note that lower MAE or RMSE will lead to higher prediction accuracy, however, there also are some exceptions, for example, VAR-Inc achieves lowest MAE and RMSE compared to TFT and VAR for the patient with MRN 1716822 week 76th PRO, however, TFT achieves the highest prediction accuracy compared to VAR-Inc and VAR for the patient with MRN 1716822 week 76th PRO. Averagely, the prediction accuracy of TFT, VAR-Inc and VAR are 44.58%, 43.13%, and 41.66%, respectively. Also, TFT is able to achieve the lowest standard deviation (SD, 12.47%) compared with VAR-Inc (SD, 17.07%) and VAR (SD, 13.98%), indicating that TFT is able to establish reliable prediction models considering multiple heterogeneous patient information, while VAR and VAR-Inc do not build a specific predictive model and only works for a single patient, ignoring patients’ similarity and the underlying complementary or correlation information among different patients even with the same type of cancer.

Table 3 PRO prediction accuracy comparison for TFT vs. VAR/VAR-Inc
Fig. 3
Fig. 3
Full size image

Boxplot of prediction accuracy using TFT, VAR-Inc, and VAR, respectively

As shown in Figs. 4, 5, and 6, for the same patient with the same week PRO, we observe that both VAR and VAR-Inc achieve a relatively low prediction accuracy (solid lines), where the ground truth 24 PRO measurements are presented as dosh dots. For example, the pain score, the number of emptying, and bowels pain are largely overestimated while the depression feelings are underestimated by VAR and VAR-Inc for this patient. However, in most cases, our TFT model can precisely predict the PRO symptoms very well except with erections slightly overestimated, ipss4 slightly underestimated, and ipss8 significantly overestimated as TFT has tracked the increasing trend from ipss5 to ipss8. In addition, from the perspective of prediction accuracy, 9 of 24 PRO measurements are correctly predicted by VAR-Inc and VAR, while 14 of 24 PRO measurements are correctly predicted by TFT. Overall, TFT that incorporates multiple patient PRO information, is able to capture the trend in terms of variations with respect to the ground truth PRO per the weekly PRO prediction.

Fig. 4
Fig. 4
Full size image

Plot for true PRO values vs. VAR predicted values (Accuracy: 37.5%; Patient MRN 9610839 with week 20 PRO)

Fig. 5
Fig. 5
Full size image

Plot for true PRO values vs. VAR-Inc predicted values (Accuracy: 37.5%; Patient MRN 9610839 with week 20 PRO)

Fig. 6
Fig. 6
Full size image

Plot for true PRO values vs. TFT predicted values with a 90% quantile loss (Accuracy: 58.3%; Patient MRN 9610839 with week 20 PRO)

Statistical analysis

Here we investigate the statistical significance considering the predication discrepancies between single patient models (VAR and VAR-Inc) and the ground truth PRO reports as well as multi-patient model (TFT) and the ground truth PRO reports. Table 4 presents p-values using the one-sided paired t-test for comparing the discrepancies of TFT with three different percentiles, VAR, and VAR-Inc with ground truth PRO. For the 20 different ground truth weeks from five patients, we found that (i) 14 of 20 have a significant prediction difference compared the gaps of TFT_0.1-GT and VAR-Inc-GT while 17 of 20 have a significant prediction difference compared the gaps of TFT_0.1-GT and VAR-Inc-GT; (ii) 14 of 20 have a significant prediction difference compared the gaps of TFT_0.5-GT and VAR-Inc-GT while 16 of 20 have a significant prediction difference compared the gaps of TFT_0.5-GT and VAR-Inc-GT; (iii) 15 of 20 have a significant prediction difference compared the gaps of TFT_0.9-GT and VAR-Inc-GT while 16 of 20 have a significant prediction difference compared the gaps of TFT_0.9-GT and VAR-Inc-GT.

Table 4 Paired t-test and p-values for comparing TFT with three different percentiles (10%, 50%, and 90%), VAR, and VAR-Inc with ground truth PRO (with a significance level 0.05)

Training and validation loss of TFT

To evaluate the training processing of TFT with three different percentiles, we track the loss suffered during the training and validation stages (80% of training data for training, 20% of the training data for validation). Figures 7, 8, and 9 present the detailed results. For example, with a 10% percentile, we observe that the TFT model suffers significant underfitting with large fluctuations at the very early training stages when the number of epochs is less than 100, then enjoys a very stable performance of training and validation loss when the number of epochs is in the range of 100–400, and finally either slightly overfits or underfits the training data. Hence choosing the epochs between 300 and 400 could benefit the training of TFT. Similar observations are also obtained by TFT with a 90% percentile, which may suggest the best epochs in the range of 400–500. However, with a 50% percentile, TFT suffers a significant underfitting issue from the data as the validation loss is consecutively lower than the training loss as well as frequent fluctuations when the number of epochs is increasing.

Fig. 7
Fig. 7
Full size image

TFT train/validation 10% quantile loss (maximal iterations: 500 epochs)

Fig. 8
Fig. 8
Full size image

TFT train/validation 50% quantile loss (maximal iterations: 500 epochs)

Fig. 9
Fig. 9
Full size image

TFT train/validation 90% quantile loss (maximal iterations: 500 epochs)

Parameter sensitivity studies of TFT

We conduct the parameter sensitivity of TFT including dropout rate, batch size, state size, number of heads, and learning rate (Fig. 10). Dropout [31, 32] is a widely used regularization technique in deep learning that randomly deactivates a subset of neurons during training. The range of dropout rates is [0.0, 0.01, 0.1, 0.3, 0.5], we can conclude that TFT with a Dropout regularization strategy will significantly decrease MAE and RMSE compared to TFT with a dropout rate equals to zero. The reason is that by randomly dropping neurons during TFT’s training, dropout prevents the network from relying too heavily on specific neurons, forcing it to learn robust, generalized features. This reduces overfitting, especially in deep networks with many parameters.

Fig. 10
Fig. 10
Full size image

Parameter sensitivity studies of TFT

The range of batch sizes is [4, 8, 16, 32, 64]. We found that the predicted performance of TFT is quite stable as the fluctuations in MAE or RMASE are relatively narrative. Similar observations are also held for varying the state size from [20, 40, 80, 160, 240] of LSTM encoder and decoder, and learning rate ranges from [0.0001, 0.0005, 0.001, 0.005, 0.01]. This indicates that TFT is relatively robust to these parameter settings including batch size, state size, and learning rate. When setting the number of heads from 1, 2, 4, 8, to 16 in the attention layer, we found that the MAE and RMSE of TFT is relatively low when the number of heads is 2 or 8, indicating that a suitable number of heads in TFT will promote its prediction performance. The optimal number of heads in TFT (2 or 8) reflects a trade-off between expressiveness and simplicity. This balance ensures the TFT model captures diverse temporal relationships critical for accurate forecasting weekly PRO while avoiding overfitting or redundancy. A possible reason for improved MAE/RMSE by TFT with suitable heads is that the heads synergistically decode complex time-series structures.

Conclusion

This study demonstrates that Temporal Fusion Transformers (TFT) outperform single-patient models (VAR/VAR-Inc) for personalized PRO forecasting in radiotherapy, particularly in long-term horizons where population-level learning mitigates VAR-Inc’s critical dependency on complete follow-up data. Key findings confirm: (1) incremental PRO integration substantially enhances VAR accuracy but falters with missing reports; (2) TFT achieves superior long-term prediction by leveraging cross-patient patterns while preserving personalization; and (3) TFT robustly captures longitudinal trends despite sparse inputs. However, limitations include sample bias (n = 17 train/test patients from a single institution, limiting generalizability); algorithmic inequity risk (underrepresentation of elderly/low-literacy groups in PRO reporting); and interpretability constraints (TFT’s attention mechanisms lack clinical causality insights). Future work will address these through multi-center validation, explicit bias testing across demographic strata, and hybrid architectures integrating clinical decision rules with TFT’s framework—transitioning from predictive accuracy to clinically actionable, equitable toxicity management.