4.1. Metrics
In the present work, multiple complementary metrics are employed to evaluate and rank model performance, as no single indicator is sufficient to fully characterize the quality of RUL predictions. The Mean Absolute Percentage Error (MAPE) is used as a scale-independent measure of average relative prediction accuracy, enabling comparison across different degradation stages and operating conditions. Denoting the number of samples
, the model prediction by
and the corresponding true RUL by
, the MAPE is defined as:
To incorporate prognostics-specific considerations, the PHM score is adopted as a risk-aware performance metric [
23]. The PHM score incorporates factors that reflect maintenance priorities and operational risk. First, the normalization term
scales the squared error by the true RUL, so that the error is evaluated on a relative basis. This prevents large absolute errors at long RUL from dominating the metric while emphasizing errors near the end of component life. For example, a prediction error of five hours is far more significant when only ten hours of life remain than when hundreds of hours remain. Second, the time-dependent weighting term
increases the penalty as the component approaches failure. Prediction errors made near the end of life have a greater impact on maintenance scheduling and system reliability, whereas errors occurring early in the degradation process are generally less critical because future observations can improve the prognosis before maintenance decisions are required. Finally, the asymmetric weighting term
assigns a larger penalty for overestimating RUL than for underestimating it. This reflects the different operational consequences of the two error types. Underestimating RUL may result in maintenance being performed earlier than necessary, increasing maintenance costs but maintaining a conservative safety margin. In contrast, overestimating RUL can delay maintenance beyond the actual failure point, increasing the likelihood of unplanned outages, equipment damage, or safety-related events. Penalizing overestimation more heavily, therefore, aligns the metric with the conservative maintenance philosophy commonly adopted in safety-critical applications such as nuclear power systems. By combining relative error normalization with temporal and asymmetric weighting, the PHM score offers a more representative assessment of prognostic performance than conventional metrics such as MAPE, placing greater emphasis on prediction errors that are both operationally significant and safety-relevant, making it particularly suitable for evaluating RUL prediction models in maintenance applications.
In addition, a tolerance-based accuracy metric, denoted as Prediction Within Bounds Accuracy (
is considered and defined as the fraction of predictions falling within ±20% of the true RUL, providing an intuitive measure of practical reliability. Together, these metrics capture average accuracy, risk-aware prediction quality, and decision-oriented reliability and are jointly used to rank the proposed models.
4.2. Model Performance Comparison
Table 6 and
Figure 6 provide a comprehensive comparison of the predictive performance in the two tests (ensembles 5 and 6) and the computational cost of the four evaluated models. In terms of accuracy, the proposed GNN–Transformer achieves the best overall performance, yielding the lowest MAPE (13.94%) and PHM score (1.21), together with the highest
value (87.29%), indicating both improved precision and robustness in RUL prediction. The LSTM model ranks second, substantially outperforming the baseline NN with a reduced MAPE and higher
, while the standalone GNN notably improves the PHM score by effectively modeling the system topology, despite a higher MAPE than the LSTM. As shown in
Figure 6, the GNN–Transformer clearly dominates both the PHM score and
, demonstrating the effectiveness of the proposed spatiotemporal architecture. Unlike conventional neural networks, the proposed GNN–Transformer exploits the physical characteristics of the degradation process. Condenser fouling progressively reduces heat-transfer performance, leading to an increase in condenser pressure that propagates through the coupled balance-of-plant components, including the circulating and condensate extraction pumps. Consequently, the degradation manifests as correlated changes across multiple subsystems rather than isolated variations in individual sensor signals. The graph neural network captures these physical interactions by constraining information exchange according to the plant topology, allowing degradation information to propagate only along physically meaningful connections. The Transformer complements this representation by modeling the gradual temporal evolution of these coupled responses over extended operating periods, enabling the network to recognize long-term degradation trends that precede the end-of-life condition. This combination contributes to the superior predictive performance of the proposed architecture by enabling the model to exploit the physical interactions among plant components and their long-term degradation behavior more effectively than models that consider only temporal information or independent sensor measurements. From a computational perspective, the GNN–Transformer achieves superior performance at a higher computational cost, as reflected in its substantially longer optimization time (4215.9 s) and increased inference latency (4.1 ms). It is important to note that the optimization and training times of sequence-based models, particularly the LSTM and GNN–Transformer, are strongly dependent on the input window size used to capture temporal dependencies, and therefore scale with the length of the historical sequence considered. In contrast, the NN and GNN models exhibit lower optimization overhead and very fast inference times. Despite these differences, the inference latency remains low for all evaluated models, indicating that each approach is suitable for real-time condition monitoring applications. Overall, these results highlight a trade-off between predictive accuracy and computational efficiency, with the GNN–Transformer offering the most accurate and robust predictions while requiring greater computational resources during training and optimization.
Figure 7 illustrates the predicted RUL versus the actual RUL for the four models evaluated on the two test datasets (Ensembles 5 and 6), together with the ideal prediction line and the ±20% error bounds. The baseline NN exhibits a clear bias, with large dispersion at higher RUL values and a significant number of predictions falling outside the ±20% bounds, consistent with its relatively poor PHM score. The LSTM improves the overall trend alignment and captures part of the temporal degradation behavior; however, its predictions show noticeable oscillations and abrupt changes in the high-RUL region, leading to increased variance and several violations of the error bounds. In contrast, the GNN produces smoother and more consistent predictions across the entire RUL range, with a substantial reduction in scatter and improved adherence to the ±20% bounds, demonstrating the benefit of explicitly modeling system topology. The proposed GNN–Transformer further refines this behavior, yielding predictions that closely follow the ideal diagonal over both test ensembles, with minimal dispersion and the highest concentration of points within the ±20% bounds. Overall, the figure highlights the progressive improvement in RUL estimation achieved by incorporating spatial dependencies through GNNs and long-term temporal modeling through the Transformer, particularly under unseen operating conditions.
To isolate the impact of temporal attention from that of explicit graph topology, a standalone Transformer baseline was also implemented. This model operates directly on standardized multivariate time windows without a preceding GNN stage. At each time step, the input sequence is first processed by a positional embedding layer that projects sensor measurements into a latent representation and adds learnable positional encodings. The resulting sequence is then passed through a single Transformer encoder block with multi-head self-attention and a position-wise feed-forward subnetwork, followed by global average pooling over time and two fully connected layers that map the aggregated representation to a scalar RUL prediction. Hyperparameters such as the number of attention heads, feed-forward dimension, learning rate, batch size, and number of training epochs are optimized with Optuna using the same search ranges summarized in
Table 5, ensuring that differences in performance between the standalone Transformer and the GNN–Transformer primarily reflect the presence or absence of explicit graph topology rather than unequal tuning effort. When evaluated on the test ensembles, the standalone Transformer achieved a
of 84.71% and a PHM score of 1.86, whereas the topology-aware GNN–Transformer achieved a
of 87.29% and a PHM score of 1.21. The improved performance demonstrates the benefit of incorporating topology-aware graph embeddings in addition to temporal attention for further reducing risk-weighted errors and increasing tolerance-based accuracy.
4.3. Metrics Uncertainty Quantification
Uncertainty quantification (UQ) plays a critical role in RUL prognostics, as machine learning–based models are inherently sensitive to the quantity, diversity, and representativeness of the available training data. In practical prognostic applications, RUL predictions are often required under extrapolative conditions and limited historical observations, where overconfident yet inaccurate estimates may lead to unsafe maintenance decisions. Therefore, beyond point-wise accuracy, it is essential to assess the confidence associated with model predictions and to explicitly quantify uncertainty in order to support reliable and risk-aware decision-making.
In the present work, predictive uncertainty is quantified using a deep ensembles approach [
24], which is particularly effective for capturing epistemic uncertainty arising from model approximation error and finite training data. The deep ensembles consist of training M independent instances of the same machine learning model, with M = 5 in this study. All ensemble members share the same optimal hyperparameters identified through Optuna-based hyperparameter optimization, ensuring that differences among ensemble predictions are driven solely by data resampling and stochastic training effects rather than suboptimal model configurations. Model diversity is introduced by varying both the random initialization seed and the composition of the training dataset through story-level bootstrap resampling.
Since the data used in this study are generated from a deterministic Simulink-based simulator, the inherent aleatoric uncertainty associated with measurement noise and stochastic system behavior is considered negligible. Consequently, the uncertainty estimated by the deep ensembles primarily reflects epistemic uncertainty, which is directly related to model confidence and is expected to decrease with additional training data or improved model expressiveness.
This uncertainty quantification framework is applied to two representative models: the baseline NN, which exhibited the weakest predictive performance in the deterministic evaluation, and the proposed GNN–Transformer model, which achieved the best overall accuracy. By analyzing both the least and most performant models, the proposed UQ analysis provides insight into how predictive uncertainty evolves with model complexity and representational capacity, and how confidence estimates correlate with predictive performance.
In this application, predictive performance under uncertainty is evaluated using both point accuracy and coverage-based reliability metrics. The MAPE, defined in Equation (5), is computed using the ensemble mean prediction as the point estimate, thereby reflecting the expected RUL prediction across multiple model realizations. While MAPE quantifies average relative accuracy, it does not provide information regarding the reliability of the associated uncertainty estimates. Therefore, the Prediction Interval Coverage Probability (PICP) is additionally employed to assess uncertainty calibration. Let
denote the ensemble mean prediction at sample iii and let
denote the corresponding ensemble-based predictive standard deviation. A symmetric prediction interval is constructed as
where the scaling factor is set to 2 in this work. This choice corresponds to a
interval, which under a Gaussian assumption provides a nominal coverage of approximately 95%, and is commonly adopted in prognostics and health management literature to balance interval sharpness and coverage reliability. The PICP is then defined as the fraction of true RUL values that fall within this interval:
where
denotes the indicator function, equal to 1 if the condition is satisfied and 0 otherwise, and
N is the number of data points.
Together, MAPE and PICP provide complementary insight into the accuracy and empirical coverage of ensemble-based RUL predictions. While PICP quantifies the empirical coverage of the prediction intervals, it does not indicate whether the prediction intervals are unnecessarily wide. Therefore, the Mean Prediction Interval Width (MPIW) [
25] is additionally evaluated to quantify interval sharpness. The MPIW is defined as:
where
and
denote the upper and lower prediction bounds for sample
i, respectively, and N is the total number of test samples. Lower MPIW values indicate sharper prediction intervals, although they should be interpreted together with PICP to avoid overly narrow intervals with poor empirical coverage. Furthermore, the Continuous Ranked Probability Score (CRPS) [
26] is additionally evaluated. Assuming a Gaussian predictive distribution, the CRPS is computed as
where
is the standardized prediction error,
is the total number of test samples,
is the true RUL,
is the ensemble mean prediction, and
is the corresponding predictive standard deviation estimated from the deep ensembles. Furthermore,
and
denote the probability density function (PDF) and cumulative distribution function (CDF) of the standard normal distribution, respectively. The standardized error
measures the deviation between the predicted mean and the true RUL relative to the predicted uncertainty. Consequently, CRPS evaluates the quality of the entire predictive distribution, simultaneously rewarding accurate predictions, well-calibrated uncertainty estimates, and sharp prediction intervals, while penalizing both overconfident predictions (intervals that are too narrow) and unnecessarily conservative predictions (intervals that are excessively wide). Lower CRPS values, therefore, indicate higher-quality probabilistic predictions.
The quantitative results summarized in
Table 7 and the uncertainty visualizations shown in
Figure 8 highlight a marked contrast between the baseline NN and the proposed GNN–Transformer in terms of both predictive accuracy and uncertainty calibration. The performance values reported in
Table 7 correspond to the metrics averaged over the two test ensembles (Ensembles 5 and 6). As reported in
Table 7, the NN exhibits a high average MAPE of 19.39%, together with a low average PICP of 40.50% and a relatively large average CRPS of 446.08. This indicates not only poor point-wise accuracy but also severely overconfident uncertainty estimates, with more than half of the true RUL values falling outside the predicted ±2σ intervals. The poor uncertainty calibration of the baseline NN can be attributed to its limited representational capability. Because the model processes each observation independently, without explicitly incorporating either the temporal evolution of the degradation process or the physical interactions among plant components, it exhibits larger systematic prediction errors and reduced diversity among ensemble members. As a result, the predicted uncertainty intervals are frequently too narrow to encompass the true RUL trajectory, leading to the observed low PICP despite the use of the same deep-ensemble uncertainty quantification strategy. This behavior is clearly reflected in
Figure 8, where the ensemble mean prediction deviates substantially from the ideal prediction line, and the uncertainty bands frequently fail to capture the true degradation trajectory, particularly in the early and mid-life regions.
In contrast, the GNN–Transformer achieves a substantially lower average MAPE of 10.92% while simultaneously attaining a high average PICP of 89.99%, demonstrating a significantly improved balance between accuracy and uncertainty reliability. This improvement is further supported by the uncertainty metrics reported in
Table 7. Although the GNN–Transformer exhibits a moderately larger average MPIW (1289.24) than the baseline NN (1089.01), indicating slightly wider prediction intervals, it simultaneously achieves a substantially higher PICP (89.99% versus 40.50%) while reducing the average CRPS from 446.08 to 222.63, representing approximately a 50% reduction. Whereas MPIW evaluates interval sharpness and PICP measures empirical coverage, CRPS assesses the quality of the entire predictive distribution by jointly evaluating prediction accuracy, calibration behavior, and interval sharpness. Consequently, the combination of higher PICP, moderately increased MPIW, and substantially lower CRPS indicates that the improved uncertainty performance is achieved through more reliable and better-calibrated probabilistic predictions rather than simply increasing the prediction interval width. As shown in
Figure 8, the ensemble mean predictions closely follow the ideal diagonal across both test ensembles, and the predicted uncertainty bands consistently enclose the true RUL trajectory throughout most of the degradation process. Notably, the uncertainty intervals of the GNN–Transformer remain well-calibrated without becoming excessively wide, indicating improved confidence estimation rather than conservative over-coverage. Overall, these results demonstrate that increased model expressiveness, achieved through the joint modeling of system topology and long-term temporal dependencies, leads not only to more accurate RUL predictions but also to substantially better-calibrated epistemic uncertainty estimates. The combined analysis of
Table 7 and
Figure 8 confirms that the proposed GNN–Transformer provides both reliable point predictions and trustworthy uncertainty quantification, which are essential requirements for safe and informed decision-making in prognostic applications.