Foundations to Frontier
Tests
K. Time Series and Sensor Data › K4 Prognostics and Health Management

Remaining useful life prediction

When a machine has many sensors but no single measured wear quantity, machine learning can predict its remaining useful life (RUL) directly from sensor histories. The standard benchmark is NASA's C-MAPSS turbofan engine simulation. This page builds a similar simulated fleet, computes window features, and compares linear and neural models trained on the raw RUL target and on the widely used piecewise-linear target capped at 125 cycles, scored by RMSE and the asymmetric NASA score.

Level 0: Foundation

★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.

How many flights are left?

An aircraft engine records temperatures, pressures and speeds on every flight. Early in its life these readings barely change; later, wear makes them drift. A model that has seen many engines run until failure can look at the recent readings of a new engine and estimate how many flights it has left. Predicting too late is dangerous, so late errors are punished more than early ones.

Prognostics lab
One test unit: true RUL (light), a line from the noisy health index to RUL fitted on 30 training units with raw targets (dark) and with targets capped at 60 (third colour). RMSE over the last 60 steps of life — raw: 8.1, capped: 6.0. Early in life the health index carries no information about RUL, so capping stops the model from chasing it.
Why engineers care

NASA’s C-MAPSS data set (2008) simulates turbofan engines run to failure and is the most used benchmark for RUL prediction.

📝 Quick check (Level 0)
0/3 answered
  1. 1. RUL means…
  2. 2. Early in life sensor readings…
  3. 3. Late RUL predictions are…

Level 1: Beginner

★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.

By hand

  • Run-to-failure training data: for every cycle of every training unit, the target is the number of cycles until that unit failed.
  • Piecewise-linear target: while a unit is healthy its RUL cannot be read from the sensors, so the target is capped (125–130 cycles is common on C-MAPSS) and only decreases once degradation is plausible.
  • Features: current sensor values, rolling means and slopes over a window, or learned features from CNNs, LSTMs and transformers on raw windows.
  • Normalisation by operating condition: in multi-condition data, sensors are standardised within each operating regime first.
  • Evaluation: RMSE at the last cycle of each test unit, and the PHM08 score Σ exp(−d/13) − 1 (early) or exp(d/10) − 1 (late), with d = predicted − true.
  • Alternatives: health-index construction plus extrapolation, similarity-based RUL (match the unit to training trajectories), and survival models.
📝 Quick check (Level 1)
0/3 answered
  1. 1. The target is capped because…
  2. 2. The PHM08 score penalises…
  3. 3. Window features typically include…

Level 2: Intermediate

★★★☆☆ Intermediate⏱ 25 minUndergraduate students and practising engineers.

A simulated engine fleet

Exercise 1.

  • Units with lives of 150–350 cycles; a health index that stays at zero until an onset at 30–60% of life and then rises quadratically to 1 at failure.
  • 14 sensors: 10 respond to the health index with different gains and signs, 4 are pure noise (sd 1).
  • RUL targets, 30-cycle window features (mean and slope per sensor), and the NASA score.

Practice.

  • Cap the target and tune the cap; it matters more than the model class on C-MAPSS-like data.
  • Drop sensors that carry no trend and normalise by operating condition.
  • Split by unit, never by cycle, so no unit appears in both training and test data.
  • Report RMSE and the NASA score, and check predictions on units near failure, where they matter most.
  • Tools: scikit-learn, PyTorch or Keras for CNN and LSTM models; the C-MAPSS and N-CMAPSS data sets; ProgPy (NASA) for physics-based prognostics.
import numpy as np

def rul_target(L, cap=125):
    r = np.arange(L - 1, -1, -1.0)
    return np.minimum(r, cap)
🐍 Exercise 1: engines, targets and scores
Simulate a fleet of engines with informative and noise sensors, build raw and capped RUL targets and window features, and implement the asymmetric NASA score.
📝 Quick check (Level 2)
0/3 answered
  1. 1. Training and test data should be split by…
  2. 2. Sensors without a trend should be…
  3. 3. NASA's Python library for prognostics:

Level 3: Advanced

★★★★☆ Advanced⏱ 25 minGraduate level, with full derivations and proofs.

Theory

Why capping helps. During the healthy phase the sensor distribution is the same whether 300 or 150 cycles remain, so the best possible prediction from the sensors is the average remaining life of healthy units. A model trained on the raw target must fit very different targets to identical inputs; with squared loss it is pulled towards their mean, which also distorts its fit near failure. Capping replaces the unpredictable part by a constant and lets the model concentrate on the degradation phase.

Asymmetric scoring. The NASA score grows exponentially in the error, with time constants 13 cycles for early and 10 for late predictions. One prediction 50 cycles late adds exp(5) − 1 ≈ 147, more than a hundred small errors. Average scores are therefore dominated by the worst late predictions.

Fusing sensors. Each sensor reads gain × health + noise. Projecting all sensors onto the gain vector gives the least-squares health estimate, whose noise sd is 1/‖g‖ instead of 1/|g_j| for one sensor. In p4 the fused index reached correlation 0.93 with the true health, against 0.72 for the best single sensor.

📝 Quick check (Level 3)
0/3 answered
  1. 1. During the healthy phase the sensors…
  2. 2. One prediction 50 cycles late adds to the NASA score about…
  3. 3. Fusing sensors with gains g reduces the noise sd to…

Level 4: Expert

★★★★★ Expert⏱ 30 minResearchers: original papers and open problems.

On simulated engines, how much do window features, a nonlinear model and a capped target each improve RUL prediction at the last cycle of test units?

History.

  • A. Saxena, K. Goebel, D. Simon and N. Eklund (2008) released C-MAPSS and the PHM08 challenge with its asymmetric score.
  • E. Ramasso and A. Saxena (2014) reviewed approaches on these data; the piecewise-linear target became standard.
  • G. S. Babu et al. (2016) used CNNs and S. Zheng et al. (2017) LSTMs; M. Arias Chao et al. (2021) released N-CMAPSS with realistic flight conditions.

Exercise 2.

  • 100 training units run to failure; 100 test units cut at a random cycle so that the true RUL is 5–150.
  • Models: ridge on the current 14 sensor values; ridge on 30-cycle window features (28); a one-hidden-layer MLP (32 ReLU units) on window features.
  • Each trained on the raw RUL and on the RUL capped at 125; predictions clipped at 0.

Seed 0:

model RMSE, raw target RMSE, capped NASA score, raw NASA score, capped
ridge, current sensors 44.2 22.6 242,899 1,475
ridge, window features 45.0 21.7 80,925 1,094
MLP, window features 39.3 19.5 321,835 1,187
  • Capping the target roughly halved the RMSE for every model and cut the NASA score by a factor of 70 to 270; the raw-target models made some very late predictions on long-lived units.
  • With the capped target, the MLP on window features had the lowest RMSE (19.5); window features helped the ridge model a little.
  • The NASA score did not rank the capped models the same way as RMSE in seed 0 (ridge on window features scored best), because a few late errors dominate it.
  • Seeds 1 and 2: capped RMSE for the MLP 19.7 and 18.3, for ridge on window features 22.5 and 22.4, for ridge on current sensors 24.8 and 27.1; raw-target RMSE 43–57 for all models.
🐍 Exercise 2 (research): on simulated engines, how much do window features, a nonlinear model and a capped target each improve RUL prediction at the last cycle of test units?
Simulate a fleet of engines with 14 sensors, and compare ridge and MLP models on current values and window features, with raw and capped RUL targets, by RMSE and NASA score on 100 test units.

RUL prediction in practice

  • Data: real fleets rarely run to failure; preventive maintenance censors lives, so survival methods and physics-based simulators supplement data.
  • Uncertainty: maintenance decisions need RUL distributions, not just points; ensembles, quantile models and Bayesian methods provide them.
  • Domain shift: engines in different climates or duty cycles degrade differently; condition normalisation and transfer learning help.
  • Next topic: turning RUL predictions into maintenance decisions.

References

  1. A. Saxena, K. Goebel, D. Simon and N. Eklund (2008). “Damage propagation modeling for aircraft engine run-to-failure simulation.” International Conference on Prognostics and Health Management.
  2. E. Ramasso and A. Saxena (2014). “Performance benchmarking and analysis of prognostic methods for CMAPSS datasets.” International Journal of Prognostics and Health Management.
  3. G. S. Babu, P. Zhao and X.-L. Li (2016). “Deep convolutional neural network based regression approach for estimation of remaining useful life.” DASFAA.
  4. S. Zheng, K. Ristovski, A. Farahat and C. Gupta (2017). “Long short-term memory network for remaining useful life estimation.” IEEE ICPHM.
  5. M. Arias Chao, C. Kulkarni, K. Goebel and O. Fink (2021). “Aircraft engine run-to-failure dataset under real flight conditions for prognostics and diagnostics.” Data.