simnid commited on
Commit
7064099
·
verified ·
1 Parent(s): e0cd1c4

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +74 -12
README.md CHANGED
@@ -1,19 +1,81 @@
1
  ---
2
- title: Engine Predictive Maintenance
3
- emoji: 🚀
4
- colorFrom: red
5
- colorTo: red
6
  sdk: docker
7
- app_port: 8501
8
- tags:
9
- - streamlit
10
  pinned: false
11
- short_description: Streamlit template space
12
  ---
13
 
14
- # Welcome to Streamlit!
15
 
16
- Edit `/src/streamlit_app.py` to customize this app to your heart's desire. :heart:
 
17
 
18
- If you have any questions, checkout our [documentation](https://docs.streamlit.io) and [community
19
- forums](https://discuss.streamlit.io).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ title: Engine Predictive Maintenance App
3
+ emoji: "🛠️"
4
+ colorFrom: purple
5
+ colorTo: pink
6
  sdk: docker
 
 
 
7
  pinned: false
 
8
  ---
9
 
10
+ # 🛠️ Smart Engine Predictive Maintenance App
11
 
12
+ This interactive Streamlit application predicts whether an engine is likely to be **Faulty (1)** or **Normal (0)** using real-time sensor readings.
13
+ It is designed to support **preventive maintenance decision-making** by identifying engines at higher risk of failure before breakdown occurs.
14
 
15
+ ---
16
+
17
+ ## ✅ Key Features
18
+
19
+ - **Single Engine Prediction** using manual sensor inputs
20
+ - **Probability-based output** for Faulty / Normal (where supported by the model)
21
+ - **Feature engineering built-in** (the app automatically computes engineered features to match the training schema)
22
+ - **Download engineered input row** as CSV for traceability
23
+ - **Bulk CSV Prediction** (upload a CSV and generate batch predictions)
24
+ - **Download bulk predictions** directly from the UI
25
+
26
+ ---
27
+
28
+ ## 🧠 Model Details
29
+
30
+ - **Algorithm:** Gradient Boosting Classifier
31
+ - **Training Data:** Engine sensor telemetry dataset
32
+ - **Target Variable:** `Engine Condition`
33
+ - `0 = Normal`
34
+ - `1 = Faulty`
35
+
36
+ **Reference Metrics (from model evaluation):**
37
+ - Recall (Faulty): ~0.84
38
+ - ROC-AUC: ~0.70
39
+ - PR-AUC: ~0.80
40
+
41
+ ---
42
+
43
+ ## 🧾 Required Input Features (Single & Bulk)
44
+
45
+ Your CSV or manual inputs must include **only the raw sensor columns** below:
46
+
47
+ 1. `Engine rpm`
48
+ 2. `Lub oil pressure`
49
+ 3. `Fuel pressure`
50
+ 4. `Coolant pressure`
51
+ 5. `lub oil temp`
52
+ 6. `Coolant temp`
53
+
54
+ The app computes additional engineered features internally (ratios, indices, and warning flags) to align with the model training pipeline.
55
+
56
+ ---
57
+
58
+ ## 📦 Bulk Prediction Instructions
59
+
60
+ 1. Upload a CSV file with the 6 required raw sensor columns listed above.
61
+ 2. The app will generate:
62
+ - `Predicted_Class` (0/1)
63
+ - `Faulty_Probability` (if available)
64
+
65
+ 3. Download the results using the provided **Download Bulk Predictions CSV** button.
66
+
67
+ ---
68
+
69
+ ## 🚀 Deployment
70
+
71
+ This Space uses a Docker-based deployment with Streamlit running on port **8501**. Hugging Face automatically maps ports during deployment.
72
+
73
+ ---
74
+
75
+ ## 🔗 Project Links
76
+
77
+ - **Model Hub:** `simnid/predictive-maintenance-model`
78
+ - **Dataset Hub:** `simnid/predictive-engine-maintenance-dataset`
79
+ - **GitHub Repository:** *(add your repo link here once finalized)*
80
+
81
+ ---