Abstract
Background
Patient-reported outcomes (PROs) are direct reports from patients on health status, symptoms, quality of life, or treatment satisfaction, offering critical insights into subjective experiences that clinical metrics may overlook. Accurately predicting personalized short- and long-term weekly PROs during radiotherapy is essential for monitoring health status, optimizing treatment efficacy, and enabling timely interventions to manage side effects.
Methods
Based on the well-documented prostate cancer PRO dataset with 17 patients after pre-processing, this study evaluates single-patient time series models (i.e., vector autoregression (VAR) and VAR with incremental ground truth PRO data (VAR-Inc)) and a transformer-based multi-patient model (i.e., Temporal Fusion Transformer (TFT)) for short- and long-term weekly PRO prediction. VAR-Inc integrates follow-up PRO data to refine predictions, while TFT leverages multi-patient heterogeneous information to capture complex temporal patterns.
Results
Key experimental results on prostate cancer patients demonstrate that (1) VAR-Inc demonstrated superior performance (lower MAE/RMSE) over VAR, highlighting the importance of incremental PRO updates. (2) TFT significantly outperformed both VAR models in long-term prediction, with statistical significance, by utilizing multi-patient data. (3) TFT effectively captured weekly PRO trends and variations, aligning closely with ground truth. (4) Unlike single-patient models, TFT built robust predictive frameworks by integrating cross-patient similarities and complementary patients’ PRO information. VAR-Inc’s performance deteriorated with missing follow-up PROs, whereas TFT remained stable, overcoming this limitation. 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.
Conclusion
TFT emerges as a reliable approach for PRO prediction, excelling in long-term accuracy, trend capture, and resilience to data gaps by leveraging multi-patient information. Its ability to synthesize heterogeneous PRO data offers advantages over single-patient models, supporting personalized treatment adaptation and informed clinical decision-making. This underscores the potential of transformer-based models in enhancing PRO-driven radiotherapy management.
Similar content being viewed by others
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:
-
a)
VAR and VAR-Inc remain constrained by linear assumptions, unable to model complex non-linear symptom dynamics.
-
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.
-
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.
-
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)
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)
Modeling Complex Dynamics: Capturing intricate non-linear interactions and temporal dependencies through its transformer-based architecture.
-
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)
Ensuring Interpretability & Focus: Utilizing attention mechanisms to prioritize key temporal features and provide insights into globally significant variables and temporal patterns [20, 21].
-
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)
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)
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)
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)
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.
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\):
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:
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.
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:
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.
-
(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.
-
(b)
Self-Attention Layer (Interpretable Multi-Head Attention): The self-attention layer captures long-range dependencies across different time steps:
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:
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:
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:
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:
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.
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.
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.
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.
Plot for true PRO values vs. VAR predicted values (Accuracy: 37.5%; Patient MRN 9610839 with week 20 PRO)
Plot for true PRO values vs. VAR-Inc predicted values (Accuracy: 37.5%; Patient MRN 9610839 with week 20 PRO)
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.
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.
TFT train/validation 10% quantile loss (maximal iterations: 500 epochs)
TFT train/validation 50% quantile loss (maximal iterations: 500 epochs)
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.
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.
Data availability
No datasets were generated or analysed during the current study.
References
Johnston BC, Patrick DL, Devji T, Maxwell LJ, Bingham CO III, Beaton DE, Boers M, Briel M, Busse JW, Carrasco‐Labra A, Christensen R. Patient‐reported outcomes. In: Cochrane handbook for systematic reviews of interventions. 2019. p. 479–492.
Deshpande PR, Rajan S, Sudeepthi BL, Nazir CA. Patient-reported outcomes: a new era in clinical research. Perspect Clin Res. 2011;2(4):137–44.
Verma V, Simone CB, Mishra MV. Quality of life and patient-reported outcomes following proton radiation therapy: a systematic review. J Natil Cancer Institute. 2018;110(4):341–53.
Ware JE Jr. SF-36 health survey update. Spine. 2000;25(24):3130–9.
Wang L, Kroenke K, Stump TE, Monahan PO. Screening for perinatal depression with the patient health questionnaire depression scale (PHQ-9): a systematic review and meta-analysis. Gen Hosp Psychiatry. 2021;68:74–82.
Basch E. Patient-reported outcomes-harnessing patients’ voices to improve clinical care. N Engl J Med. 2017;376(2):105–8.
Weldring T, Smith SM. Article commentary: patient-reported outcomes (PROs) and patient-reported outcome measures (PROMs). Health Serv Insights. 2013;6:5998-6008.
Coste J, Quinquis L, Audureau E, Pouchot J. Non response, incomplete and inconsistent responses to self-administered health-related quality of life measures in the general population: patterns, determinants and impact on the validity of estimates—a population-based study in France using the MOS SF-36. Health Qual Life Outcomes. 2013;11:1–15.
Xie F, Yuan H, Ning Y, Ong MEH, Feng M, Hsu W, Chakraborty B, Liu N. Deep learning for temporal data representation in electronic health records: a systematic review of challenges and methodologies. J Biomed Inform. 2022;126: 103980.
Kord E, Flores JP, Posielski N, Koenig H, Ho O, Porter C. Patient reported outcomes and health related quality of life in localized prostate cancer: a review of current evidence. In: Urologic Oncology: Seminars and Original Investigations. 2022;40(7):304–14.
Hagan TL, Arida JA, Hughes SH, Donovan HS. Creating individualized symptom management goals and strategies for cancer-related fatigue for patients with recurrent ovarian cancer. Cancer Nurs. 2017;40(4):305–13.
Culvenor AG, Ruhdorfer A, Juhl C, Eckstein F, Øiestad BE. Knee extensor strength and risk of structural, symptomatic, and functional decline in knee osteoarthritis: a systematic review and meta-analysis. Arthritis Care Res. 2017;69(5):649–58.
Lipton ZC, Kale DC, Elkan C, Wetzel R. Learning to diagnose with LSTM recurrent neural networks. arXiv preprint arXiv:1511.03677. 2015.
Rajkomar A, Hardt M, Howell MD, Corrado G, Chin MH. Ensuring fairness in machine learning to advance health equity. Ann Intern Med. 2018;169(12):866–72.
Lycke M, Lefebvre T, Pottel L, Pottel H, Ketelaars L, Stellamans K, Van Eygen K, Vergauwe P, Werbrouck P, Cool L, Boterberg T. Subjective, but not objective, cognitive complaints impact long-term quality of life in cancer patients. J Psychosoc Oncol. 2019;37(4):427–40.
Patharkar A, Cai F, Al-Hindawi F, Wu T. Predictive modeling of biomedical temporal data in healthcare applications: review and future directions. Front Physiol. 2024;15: 1386760.
Cross JL, Choma MA, Onofrey JA. Bias in medical AI: implications for clinical decision-making. PLoS Digit Health. 2024;3(11): e0000651.
Abdullah LT. Forecasting time series using vector autoregressive model. Int J Nonlinear Anal Appl. 2022;13(1):499–511.
Lim B, Arık SÖ, Loeff N, Pfister T. Temporal fusion transformers for interpretable multi-horizon time series forecasting. Int J Forecast. 2021;37(4):1748–64.
Bresson X, Laurent T. Residual gated graph convnets. arXiv preprint arXiv:1711.07553. 2017.
He K, Zhang X, Ren S, Sun J. Deep residual learning for image recognition. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition. 2016. p. 770–778.
Salinas D, Flunkert V, Gasthaus J, Januschowski T. Deepar: probabilistic forecasting with autoregressive recurrent networks. Int J Forecast. 2020;36(3):1181–91.
Vaswani A, Shazeer N, Parmar N, Uszkoreit J, Jones L, Gomez AN, Kaiser Ł, Polosukhin I. Attention is all you need. Adv Neural Inform Process Syst. 2017;30:5998-6008.
Moghaddam BP, Mostaghim ZS, Pantelous AA, Machado JT. An integro quadratic spline-based scheme for solving nonlinear fractional stochastic differential equations with constant time delay. Commun Nonlinear Sci Numer Simulat. 2021;92:105475.
Barry MJ, Fowler FJ Jr., O’Leary MP, Bruskewitz RC, Holtgrewe HL, Mebust WK, Cockett AT. The American Urological Association symptom index for benign prostatic hyperplasia. J Urol. 1992;148(5):1549–57.
Kamran SC, Light JO, Efstathiou JA. Proton versus photon-based radiation therapy for prostate cancer: emerging evidence and considerations in the era of value-based cancer care. Prostate Cancer Prostatic Dis. 2019;22(4):509–21.
Kooy HM, Grassberger C. Intensity modulated proton therapy. Br J Radiol. 2015;88(1051): 20150195.
Clevert DA, Unterthiner T, Hochreiter S. Fast and accurate deep network learning by exponential linear units (elus). arXiv preprint arXiv:1511.07289. 2015.
Liu C, Zhen J, Shan W. Time series classification based on convolutional network with a gated linear units kernel. Eng Appl Artif Intell. 2023;123:106296.
Sherstinsky A. Fundamentals of recurrent neural network (RNN) and long short-term memory (LSTM) network. Physica D Nonlinear Phenom. 2020;404:132306.
Baldi P, Sadowski PJ. Understanding dropout. Adv Neural Inform Process Syst. 2013;26:2814.
Srivastava N, Hinton G, Krizhevsky A, Sutskever I, Salakhutdinov R. Dropout: a simple way to prevent neural networks from overfitting. J Mach Learn Res. 2014;15(1):1929–58.
Funding
This research is partially supported by NIH grants No. R37CA250921, R01CA261964, a KUCC physicist-scientist recruiting grant, and an IIN sustaining Illinois seed funding grant.
Author information
Authors and Affiliations
Contributions
YY and ZC designed the experiments with help from XS, RC, and HG. YY and ZC performed experiments. YY, ZC, and HG validated the findings. YY, ZC, and HG analyzed the data. ZC, YY, and HG wrote the paper. ZC, XS, and HG conceived and supervised this study. All authors read and approved of the final manuscript.
Corresponding authors
Ethics declarations
Ethics approval and consent to participate
Not applicable.
Competing interests
The authors declare no competing interests.
Additional information
Publisher’s Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
About this article
Cite this article
Yan, Y., Chen, Z., Shen, X. et al. Short- and long-term weekly patient-reported outcomes prediction undergoing radiotherapy: single-patient time series model vs. transformer-based multi-patient time series model. BioData Mining 18, 53 (2025). https://doi.org/10.1186/s13040-025-00464-7
Received:
Accepted:
Published:
Version of record:
DOI: https://doi.org/10.1186/s13040-025-00464-7












