File size: 2,147 Bytes
73baadf
6105db9
 
 
 
 
a2525bd
6105db9
73baadf
 
 
6105db9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
title: Engine Predictive Maintenance
emoji: πŸ”§
colorFrom: blue
colorTo: green
sdk: streamlit
sdk_version: 1.28.0
app_file: app.py
pinned: false
---

# Engine Predictive Maintenance

Predict engine failures before they happen using machine learning.

## 🎯 Features
- **Real-time Monitoring**: Enter sensor readings manually for instant predictions
- **Batch Processing**: Upload CSV files for bulk predictions
- **Risk Assessment**: Get risk level (Low/Medium/High) with confidence scores
- **Data Export**: Download predictions with timestamps for auditing

## πŸ“Š Model Performance
- **Algorithm**: Random Forest with SMOTE (handles class imbalance)
- **Accuracy**: 92%+
- **F2-Score**: 0.657 (optimized for recall - prioritizes catching failures)
- **Training Data**: 1000+ engine sensor readings

## πŸš€ Quick Start

### Manual Prediction
1. Enter 6 sensor readings (Lube Oil Pressure, Temperature, RPM, etc.)
2. Get instant failure probability and risk level
3. Review model confidence metrics

### Batch Prediction
1. Upload a CSV file with multiple engine readings
2. Get predictions for all rows
3. Download results with timestamps

## πŸ“ˆ Sensor Inputs
- Lube Oil Pressure
- Lube Oil Temperature
- Coolant Temperature
- Engine RPM
- Fuel Pressure
- Coolant Pressure

## βš™οΈ Technical Details
- **Model Format**: .joblib (scikit-learn native)
- **Data Processing**: Standardized features, engineered ratios
- **Inference**: <100ms per prediction
- **Deployment**: Hugging Face Spaces (auto-scaling)

## πŸ“ How It Works
1. Input sensors are standardized using training data statistics
2. Features are engineered (pressure ratios, temperature differences)
3. Random Forest classifier produces failure probability
4. F2-Score threshold (0.65) determines risk level classification

## πŸ”’ Privacy & Security
- All data processing happens in-browser
- No data is stored or logged
- Model weights are public and auditable
- Predictions are real-time only

## 🀝 Support
For issues or feedback, visit: https://github.com/your-org/predictive-engine-maintenance

---
*Built with scikit-learn, Streamlit, and Hugging Face Spaces*