File size: 1,246 Bytes
363d1f0
 
 
 
 
 
 
 
 
 
 
 
c0af298
 
 
 
 
363d1f0
 
 
 
 
 
 
 
 
 
 
 
 
 
9861fb6
363d1f0
 
 
 
 
 
 
 
 
 
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

# Predictive Maintenance Model – RandomForest

This model predicts **Engine Condition** using multiple engine sensor parameters.

## Model Information
- **Best Model:** RandomForest
- **Algorithm:** Tuned RandomForest Classifier
- **Training Method:** GridSearchCV + Cross Validation
- **Task Type:** Classification

## Evaluation Metrics
|                  |   F1-Score |
|:-----------------|-----------:|
| RandomForest     |   0.963115 |
| GradientBoosting |   0.775914 |
| AdaBoost         |   0.76212  |

## Dataset
Dataset used is hosted in the Hugging Face dataset hub:
- https://huggingface.co/datasets/MohammedSohail/engine_maintenance_data

## How to Use

```python
from huggingface_hub import hf_hub_download
import joblib
import pandas as pd

model_path = hf_hub_download(
    repo_id="MohammedSohail/engine_maintenance_model",
    filename="models/best_model.pkl" 
)

model = joblib.load(model_path)

# new_data = pd.DataFrame([
#     [750, 3.5, 6.0, 2.5, 80.0, 75.0] # Example sensor values
# ], columns=['Engine rpm', 'Lub oil pressure', 'Fuel pressure', 'Coolant pressure', 'lub oil temp', 'Coolant temp'])
# prediction = model.predict(new_data)
# print(f"Predicted Engine Condition: {prediction[0]} (0=Normal, 1=Faulty)")
```