File size: 3,029 Bytes
d5a7c4c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | # ✈️ Zero Downtime: Predictive Maintenance for NASA Turbofan Engines



## 📌 Overview
This project develops a machine learning pipeline to predict the **Remaining Useful Life (RUL)** of turbofan engines using the NASA CMAPSS (Commercial Modular Aero-Propulsion System Simulation) dataset. By accurately forecasting engine degradation, this solution enables proactive maintenance, minimizing unexpected failures and reducing operational downtime.
Youtube : https://youtu.be/OZP12QLTFOI
The pipeline processes multivariate sensor data (subset FD001), extracts critical degradation signals, benchmarks multiple regression models, and culminates in a simulated "Digital Twin" for real-time engine monitoring.
## 📊 Dataset
* **Source:** NASA CMAPSS Dataset (FD001 Subset)
* **Features:** 21 sensor readings (temperature, pressure, fan speed, etc.) and 3 operational settings recorded per engine cycle.
* **Target Variable:** Remaining Useful Life (RUL) — the number of operational cycles remaining before engine failure.
## ⚙️ Methodology & Pipeline
### 1. Feature Engineering
* **Dead Sensor Removal:** Identified and dropped sensors with zero variance (`nunique() <= 1`) to eliminate noise and reduce dimensionality.
* **RUL Clipping:** Capped the maximum RUL at **125 cycles**. This is a crucial domain-specific step that prevents the model from over-penalizing early-stage predictions, forcing it to focus strictly on the physical degradation phase.
### 2. Exploratory Data Analysis (EDA)
* <img width="1127" height="453" alt="image" src="https://github.com/user-attachments/assets/a4fbdb62-2b5e-435e-9950-5222b26331ae" />
* **Correlation Analysis:** Identified the top 5 most informative sensors heavily correlated with engine failure.
* <img width="946" height="697" alt="image" src="https://github.com/user-attachments/assets/ec08ac1c-074b-4395-9e15-ca2a69167bf9" />
* **State Separation (KDE):** Visualized the divergence between healthy (early cycles) and failing (late cycles) sensor distributions.
* **PCA Trajectory:** Mapped high-dimensional sensor data into a 2D Principal Component space to visually track the degradation trajectory over time.
### 3. Model Benchmarking
Data was normalized using a `MinMaxScaler` (fitted strictly on the training set to prevent data leakage). We benchmarked four distinct regression models:
* **Linear Regression** (Baseline)
* **Random Forest**
* **XGBoost**
* **LightGBM**
<img width="1245" height="482" alt="image" src="https://github.com/user-attachments/assets/aed9e585-fc3b-4b0e-826e-693ce3483b79" />
### Digital Twin Simulation
The simulation reconstructs RUL trajectories for any test engine in real-time:
<img width="1203" height="526" alt="image" src="https://github.com/user-attachments/assets/1bd4803d-2cb9-410a-8257-dbf96e91c372" />
|