CoolFace
Apppublic

MaHi-HF28/turbofan-predictive-maintenance

sourceHugging Facemitupdated 5mo agoView on Hugging Face
1likes
App README

πŸ›©οΈ Turbofan Engine Predictive Maintenance System

![Python](https://python.org) ![TensorFlow](https://tensorflow.org) ![Dash](https://dash.plotly.com) ![Dataset](https://www.nasa.gov/intelligent-systems-division/discovery-and-systems-health/pcoe/pcoe-data-set-repository/)

A deep learning–powered predictive maintenance system trained on NASA's CMAPSS turbofan engine dataset. A dual-output LSTM model predicts Remaining Useful Life (RUL) in cycles and raises binary failure alerts when an engine enters a critical degradation window. The live dashboard visualizes fleet health with color-coded alert levels.


πŸš€ Live Demo

The dashboard is running above. Use the dropdowns to:

  • β€”Select any engine from the fleet
  • β€”Switch between sensor channels to inspect degradation curves
  • β€”View the RUL gauge and alert status per engine
  • β€”Sort and filter the full fleet alert table

🧠 Model Architecture

Input: sliding window of 30 sensor cycles  β†’  shape (30, n_features)
         β”‚
   LSTM(128, return_sequences=True)  β†’  BatchNorm  β†’  Dropout(0.3)
         β”‚
   LSTM(64,  return_sequences=False) β†’  BatchNorm  β†’  Dropout(0.2)
         β”‚
   Dense(32, relu)   ←── shared representation
      β•±                                      β•²
Dense(1, linear)                      Dense(1, sigmoid)
  RUL output                            Alert output
(regression, MSE)               (binary, BCE, weight=0.5)

Two outputs trained jointly:

  • β€”RUL regression β€” predicts exact cycles remaining (0–125)
  • β€”Alert classifier β€” predicts probability of failure within 30 cycles

🚨 Alert Levels

StatusConditionMeaning
πŸ”΄ CRITICALPredicted RUL ≀ 30 cyclesImmediate maintenance required
🟑 WARNINGPredicted RUL ≀ 60 cyclesSchedule maintenance soon
🟒 NORMALPredicted RUL > 60 cyclesEngine operating healthily

πŸ“Š Results on FD001 Test Set

MetricValue
RMSE~18–22 cycles
MAE~13–17 cycles
RΒ² Score~0.85–0.90
Alert Accuracy~90–94%

πŸ—‚οΈ Dataset β€” NASA CMAPSS

This Space uses FD001 β€” single fault mode, single operating condition, 100 train / 100 test engines.

Each row = one engine cycle: engine_id | cycle | 3 op-settings | 21 sensor readings

Download: NASA Prognostics Data Repository


πŸ“ Space File Structure

β”œβ”€β”€ app.py
β”œβ”€β”€ Dockerfile
β”œβ”€β”€ requirements.txt
β”œβ”€β”€ saved_model/
β”‚   β”œβ”€β”€ rul_model.keras
β”‚   β”œβ”€β”€ scaler.pkl
β”‚   β”œβ”€β”€ feature_cols.npy
β”‚   β”œβ”€β”€ pred_rul.npy
β”‚   └── true_rul.npy
└── CMAPSSData/
    └── test_FD001.txt

πŸ“„ License & Credits

License: MIT

Dataset: Saxena, A., Goebel, K., Simon, D., & Eklund, N. (2008). Damage Propagation Modeling for Aircraft Engine Run-to-Failure Simulation. NASA Ames Research Center, Moffett Field, CA.