MaHi-HF28/turbofan-predictive-maintenance
π©οΈ Turbofan Engine Predictive Maintenance System
   
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
π Results on FD001 Test Set
ποΈ 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.
