File size: 4,767 Bytes
7e2460a
 
 
 
 
 
3b9da2d
7e2460a
 
 
afca0d2
 
 
 
 
 
2b85e6b
afca0d2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2b85e6b
 
afca0d2
 
 
6c70fe6
afca0d2
 
 
6c70fe6
afca0d2
6c70fe6
afca0d2
 
6c70fe6
afca0d2
6c70fe6
afca0d2
6c70fe6
afca0d2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6c70fe6
 
afca0d2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
---
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.