| --- |
| title: CMAPSS Time Series Evaluation |
| emoji: π |
| colorFrom: blue |
| colorTo: indigo |
| sdk: docker |
| app_port: 7860 |
| pinned: false |
| --- |
| |
| # βοΈ NASA Turbofan Engine Remaining Useful Life Prediction |
|
|
| <p align="center"> |
| π§ Predictive Maintenance | π Deep Learning (LSTM) | π€ FastAPI Dashboard |
| </p> |
|
|
| --- |
|
|
| ## π Project Overview |
|
|
| ### Background |
| Aircraft engines produce large volumes of sensor data during operation. These measurements contain valuable information about engine health and degradation patterns over time. As engines operate, they accumulate wear and tear, leading to gradual performance degradation. |
|
|
| ### Problem Statement |
| This project focuses on predicting the **Remaining Useful Life (RUL)** of turbofan engines using the NASA CMAPSS dataset. The goal is to estimate how many operational cycles remain before an engine reaches failure. |
|
|
| ### Why This Matters |
| Accurate prediction of RUL enables: |
| - β
**Predictive Maintenance** - Schedule maintenance before failures occur |
| - β
**Cost Reduction** - Optimize maintenance intervals and reduce unplanned downtime |
| - β
**Safety Improvement** - Prevent in-flight failures through early warning systems |
| - β
**Operational Efficiency** - Better planning for engine replacements and resource allocation |
|
|
| --- |
|
|
| ## π Live Production Deployment |
|
|
| This project has been fully containerized and deployed as an interactive predictive maintenance dashboard. |
|
|
| - **Hugging Face Space**: [NASA CMAPSS RUL Dashboard](https://huggingface.co/spaces/anujjj321/CMAPSS_Time_Series_evalutation) |
|
|
| --- |
|
|
| ## π Dataset |
|
|
| ### About the Dataset |
| The dataset used in this project is the **NASA CMAPSS Turbofan Engine Degradation Simulation Dataset**. This is a benchmark dataset widely used in prognostics and health management research. |
|
|
| Each engine unit begins with different levels of wear and gradually degrades over time. Sensor readings and operational settings are recorded at every operational cycle until the engine fails. |
|
|
| ### Dataset Characteristics |
|
|
| | Feature | Description | |
| |:--------|:------------| |
| | π **Engine Units** | 100+ engines in training set | |
| | β± **Data Type** | Cycle-based time series | |
| | β **Settings** | 3 operational conditions | |
| | π‘ **Sensors** | 21 comprehensive measurements | |
| | π **Degradation** | Progressive until failure | |
| | π **Lifespans** | Variable across engines | |
|
|
| --- |
|
|
| ## π¬ Project Architecture & Workflow |
|
|
| ### 1. Data Processing |
| - Extracted and normalized raw sensor telemetry. |
| - Engineered sequential rolling windows to capture long-term temporal degradation. |
| - Handled massive datasets using standard scaling and min-max normalization. |
|
|
| ### 2. Deep Learning (LSTM) |
| - Transitioned from baseline Random Forest models to a state-of-the-art **Long Short-Term Memory (LSTM)** neural network. |
| - Why LSTM? LSTMs natively retain memory of previous operational cycles, making them the industry standard for time-series degradation tracking. |
|
|
| ### 3. Production Backend (FastAPI) |
| - Developed a high-performance REST API using **FastAPI**. |
| - The API dynamically serves real-time inference data and operational fleet status to the front end. |
|
|
| ### 4. Interactive Dashboard |
| - Created a beautiful, responsive, glassmorphism-inspired web UI to act as the primary operational dashboard. |
| - Features real-time animated alerts and clear visual indicators for engine health status. |
|
|
| --- |
|
|
| ## π Repository Structure |
|
|
| ```text |
| Time-Series-Implementation-NASA/ |
| β |
| βββ CMAPSS_TimeSeries_Evaluation.py # Core analytics and pipeline |
| βββ cmapss_lstm.py # LSTM model definition and training script |
| βββ app.py # FastAPI production backend |
| βββ index.html # Front-end predictive maintenance dashboard |
| βββ lstm_model.pth # Saved PyTorch weights |
| βββ scaler.pkl # Data normalizer |
| βββ requirements.txt # Deployment dependencies |
| βββ Dockerfile # Containerization setup |
| βββ README.md # This file |
| ``` |
|
|
| --- |
|
|
| ## π Technologies Used |
|
|
| - π **Python** - Core language |
| - π₯ **PyTorch** - Deep Learning framework (LSTM) |
| - β‘ **FastAPI** - High-speed backend API |
| - π» **HTML/CSS/JS** - Frontend dashboard (Vanilla, Glassmorphism design) |
| - π³ **Docker** - Containerization |
| - π€ **Hugging Face Spaces** - Cloud deployment |
|
|
| --- |
|
|
| ## π¨βπ» Authors |
|
|
| **Arjun Vinod Patil & Anuj Dalvi** |
|
|
| *Machine Learning and Data Science Enthusiasts* |
|
|
| --- |
|
|
| ## π License |
|
|
| This project is for educational and research purposes. |
|
|
| --- |
|
|
| ## π Acknowledgments |
|
|
| Thanks to NASA for providing the CMAPSS dataset and to the open-source community for the tools used in this project. |
|
|