Skip to content
Senghak Rou
All projects

Machine Learning & Forecasting · Oct 2026

Predicting turbofan engine life

Predicts how many cycles a simulated jet engine has left from its recent sensor history, and tests when those predictions are reliable enough to raise a maintenance warning.

Status
CompletedResearch complete on simulated data; not a maintenance safety system.
Setting
Individual projectPersonal research project
My role
Sole author: experiments, models, evaluation, replay app and container deployment.
Methods and tools
Python · PyTorch · scikit-learn · MLflow · FastAPI · Streamlit · Docker · GitHub Actions · Azure

33.0 cycles

Development RMSE with 30-cycle means and slopes (HGB)

Against 38.1 from the latest readings alone

20.1 cycles

MAE on the official FD001 test, model frozen beforehand

Two severe overestimates dominate NASA's asymmetric score

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

Two ways to read the last 30 cycles of sensor data A simulated turbofan engine reports 17 informative sensor measurements per cycle. The last 30 cycles form the input window. One path feeds the raw window to an LSTM. The other compresses each sensor to its mean and slope, 34 numbers, used by a gradient-boosted tree (HGB, selected) or an MLP. All models predict the remaining useful life in cycles. Folds split by engine, and an illustrative warning rule fires after three consecutive predictions at or below 30 cycles. engine 17 sensors last 30 cycles cycles → LSTM reads the sequence mean + slope per sensor: 34 numbers HGB MLP RUL remaining life in cycles 5 folds split by engine: no engine in both training and validation illustrative warning: 3 predictions in a row at or below 30 cycles selected: within 0.5 cycle of the best model, and simpler
Figure 1 · SchematicThe two representations compared. Sensor traces are illustrative shapes; the 30-cycle window and the warning rule are the project's settings.

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

Horizontal bar chart of pooled RMSE in cycles for eleven HGB feature sets. Latest readings 38.06, means only 43.94, means and slopes 33.01, summaries with shuffled time order about 39.05.
Figure 2 · Experimental resultSlopes carry the signal: shuffling the time order inside each window, which preserves means but destroys trends, raises the error back to about 39 cycles.Source: Project figure (reports/figures/temporal_ablation.png, commit e698f9d); five development folds, 100 engines, 17,731 windows.
Development, 5 engine foldsPooled RMSEMAE per engineMAE near failure
HGB, latest readings38.125.57.3
HGB, means and slopes33.020.44.0
MLP, means and slopes32.520.26.5
LSTM, raw window38.425.15.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

Streamlit replay for held-out engine 4 at cycle 100: predicted remaining life 141.5 cycles, no warning, sensor history and the predictions made so far.
Full size screenshot 3 (opens in a new tab)
Figure 3 · ScreenshotThe replay shows only what was known at each cycle; the true remaining life is revealed separately.Source: Local replay of engine 4, using the Streamlit UI and frozen FastAPI predictor at e698f9d.

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

References

  1. Saxena, A. et al. (2008). Damage propagation modeling for aircraft engine run-to-failure simulation. PHM Conference.
  2. Hochreiter, S. and Schmidhuber, J. (1997). Long short-term memory. Neural Computation.
Aug – Sep 2026Completed

Forecasting French regional electricity demand

Hourly demand forecasts for 12 French regions, 1 to 24 hours ahead, evaluated under a strict information rule and a test year opened only once.

Machine Learning & Forecasting · Individual · Python, pandas, statsmodels

Nov 2026 – presentIn development

Data Science Lab

Follow a model from its equations to a working implementation. Four interactive labs connect mathematical lessons, browser experiments and real Python runs that expose intermediate values.

Scientific Computing & Software · Individual · TypeScript, Next.js, Three.js