Overview
Predictive maintenance aims to service a machine before it fails, but not too early. This project uses NASA's simulated C-MAPSS turbofan data (FD001: 100 engines run to failure) to ask two questions: how much of an engine's degradation can a few summary numbers capture, and when is a remaining-life prediction reliable enough to support a warning? Everything is measured in operating cycles, and nothing here is evidence about real aircraft.
Approach
Engines are split into five folds, so that no engine appears in both training and validation, and neural models choose their training length on inner engines only. Remaining life is not capped, which keeps the long-horizon difficulty visible.
Results

| Development, 5 engine folds | Pooled RMSE | MAE per engine | MAE near failure |
|---|---|---|---|
| HGB, latest readings | 38.1 | 25.5 | 7.3 |
| HGB, means and slopes | 33.0 | 20.4 | 4.0 |
| MLP, means and slopes | 32.5 | 20.2 | 6.5 |
| LSTM, raw window | 38.4 | 25.1 | 5.7 |
Errors are in cycles; "near failure" means 30 or fewer cycles left. The MLP was marginally better on average, but a tolerance fixed in advance (0.5 cycle) selected the simpler, faster-to-train tree, which is also more accurate near failure.
Reliability
Average accuracy hides the hard cases. Engines with more than 100 cycles left make up 43 % of windows but 80 % of the squared error. A nominal 90 % trajectory band covered 19 of 20 engines but was 315 cycles wide, so the app shows no interval. The illustrative warning rule fired 17–36 cycles before failure on all 20 replayed engines, a sample far too small to establish safety. On the official test, run once after freezing, MAE was 20.1 cycles, but two large overestimates produced 99 % of NASA's asymmetric score.
Application

The Streamlit replay sends each observed history to FastAPI, which serves the frozen predictor. GitHub Actions checks the two Docker images, publishes them to GHCR and includes an Azure Container Apps deployment workflow. On 2 December the API health check succeeded and the public replay returned HTTP 404.
The optional MLflow workflow imports archived comparisons and logs a fresh diagnostic training run with its own configuration and artifacts. It leaves the frozen official-test procedure separate.
Follow-up and limitations
- Longer history helps. On matched windows, 50 cycles instead of 30 cut the per-engine MAE from 15.1 to 12.8 cycles; a fixed replication on FD003 confirmed a smaller gain (−1.3 cycles, 95 % CI [−2.1, −0.5]). The deployed model keeps the frozen 30-cycle setting.
- Simulated data only. Reliability, savings or safety on real machines are not established.
- Reused engines. The development engines informed many choices, so their scores are not fresh confirmation.
Individual contribution
I designed the experiments, implemented the models, evaluation and replay app, and set up the container build and deployment.
References
- Saxena, A. et al. (2008). Damage propagation modeling for aircraft engine run-to-failure simulation. PHM Conference.
- Hochreiter, S. and Schmidhuber, J. (1997). Long short-term memory. Neural Computation.