Add model documentation
Browse files
README.md
CHANGED
|
@@ -1,44 +1,52 @@
|
|
| 1 |
---
|
| 2 |
license: mit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
datasets:
|
| 4 |
-
-
|
| 5 |
metrics:
|
| 6 |
-
- accuracy
|
| 7 |
-
-
|
| 8 |
-
-
|
| 9 |
-
-
|
| 10 |
-
- roc_auc
|
| 11 |
-
task_ids:
|
| 12 |
-
- tabular-classification
|
| 13 |
---
|
| 14 |
|
| 15 |
# Engine Predictive Maintenance Model
|
| 16 |
|
| 17 |
-
## Model
|
|
|
|
| 18 |
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
### Model Details
|
| 22 |
-
|
| 23 |
-
- **Model Type**: Random Forest with SMOTE Pipeline
|
| 24 |
- **Framework**: scikit-learn, imbalanced-learn
|
| 25 |
- **Task**: Binary Classification (Engine Condition: Good/Failing)
|
| 26 |
-
- **Input Features**:
|
| 27 |
-
- **Output**: Probability of engine failure
|
| 28 |
|
| 29 |
## Model Performance
|
| 30 |
|
| 31 |
### Test Set Metrics
|
| 32 |
|
| 33 |
-
| Metric |
|
| 34 |
|--------|-------|
|
| 35 |
-
| Accuracy | 0.
|
| 36 |
-
| Precision | 0.
|
| 37 |
-
| Recall | 0.
|
| 38 |
-
| F1 Score | 0.
|
| 39 |
-
| F2 Score | 0.
|
| 40 |
-
|
|
| 41 |
-
| Brier Score | 0.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
|
| 43 |
## Intended Use
|
| 44 |
|
|
@@ -46,6 +54,7 @@ This model is designed for:
|
|
| 46 |
- **Predictive Maintenance**: Identify engines at risk of failure before breakdown
|
| 47 |
- **Condition Monitoring**: Support data-driven maintenance decision-making
|
| 48 |
- **Fleet Management**: Optimize maintenance scheduling and resource allocation
|
|
|
|
| 49 |
|
| 50 |
## Limitations
|
| 51 |
|
|
@@ -53,48 +62,51 @@ This model is designed for:
|
|
| 53 |
- Performance may vary with new sensor types or operating conditions
|
| 54 |
- Model requires regular retraining with updated failure data
|
| 55 |
- Does not capture temporal degradation patterns (time-series)
|
|
|
|
| 56 |
|
| 57 |
## Training Data
|
| 58 |
|
| 59 |
- **Dataset**: Engine Predictive Maintenance Dataset
|
| 60 |
-
- **Total Samples**:
|
| 61 |
-
- **Training Samples**:
|
| 62 |
-
- **Test Samples**:
|
| 63 |
-
- **Features**:
|
| 64 |
- **Class Distribution**: Imbalanced (Good: ~63%, Failure: ~37%)
|
| 65 |
|
| 66 |
## Training Procedure
|
| 67 |
|
| 68 |
1. Data preprocessing and feature engineering
|
| 69 |
2. Train-test split (70-20-10)
|
| 70 |
-
3. SMOTE oversampling on training data
|
| 71 |
-
4. Hyperparameter tuning via GridSearchCV
|
| 72 |
-
5.
|
| 73 |
-
|
| 74 |
-
## Evaluation Results
|
| 75 |
|
| 76 |
-
|
| 77 |
-
- **
|
| 78 |
-
- **
|
| 79 |
-
- **
|
|
|
|
|
|
|
| 80 |
|
| 81 |
## Recommendations
|
| 82 |
|
| 83 |
-
1. **Threshold Tuning**: Adjust decision threshold based on
|
| 84 |
-
2. **Continuous Monitoring**: Track model performance in production and retrain quarterly
|
| 85 |
-
3. **Feature Importance**: Use
|
| 86 |
-
4. **Ensemble Approaches**: Consider combining with other models for robust predictions
|
|
|
|
| 87 |
|
| 88 |
## Citation
|
| 89 |
|
| 90 |
If you use this model, please cite:
|
| 91 |
|
| 92 |
```
|
| 93 |
-
@
|
| 94 |
title={Engine Predictive Maintenance Model},
|
| 95 |
-
author={
|
| 96 |
year={2026},
|
| 97 |
-
|
|
|
|
| 98 |
}
|
| 99 |
```
|
| 100 |
|
|
@@ -102,6 +114,8 @@ If you use this model, please cite:
|
|
| 102 |
|
| 103 |
This model is released under the MIT License. See LICENSE file for details.
|
| 104 |
|
| 105 |
-
##
|
| 106 |
|
| 107 |
-
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
library_name: scikit-learn
|
| 6 |
+
tags:
|
| 7 |
+
- predictive-maintenance
|
| 8 |
+
- random-forest
|
| 9 |
+
- binary-classification
|
| 10 |
+
- engine-maintenance
|
| 11 |
datasets:
|
| 12 |
+
- nasa-cmapss
|
| 13 |
metrics:
|
| 14 |
+
- accuracy
|
| 15 |
+
- f1
|
| 16 |
+
- f2
|
| 17 |
+
- roc-auc
|
|
|
|
|
|
|
|
|
|
| 18 |
---
|
| 19 |
|
| 20 |
# Engine Predictive Maintenance Model
|
| 21 |
|
| 22 |
+
## Model Overview
|
| 23 |
+
This is a **Tuned Random Forest Classifier** trained for predictive engine maintenance with SMOTE oversampling to handle class imbalance and achieve high recall for failure detection.
|
| 24 |
|
| 25 |
+
## Model Details
|
| 26 |
+
- **Model Type**: Random Forest Classifier with SMOTE Pipeline
|
|
|
|
|
|
|
|
|
|
| 27 |
- **Framework**: scikit-learn, imbalanced-learn
|
| 28 |
- **Task**: Binary Classification (Engine Condition: Good/Failing)
|
| 29 |
+
- **Input Features**: 14 engineered sensor features (RPM, pressure, temperature, etc.)
|
| 30 |
+
- **Output**: Probability of engine failure (0-1)
|
| 31 |
|
| 32 |
## Model Performance
|
| 33 |
|
| 34 |
### Test Set Metrics
|
| 35 |
|
| 36 |
+
| Metric | Score |
|
| 37 |
|--------|-------|
|
| 38 |
+
| Accuracy | 0.6340 |
|
| 39 |
+
| Precision | 0.7456 |
|
| 40 |
+
| Recall | 0.6366 |
|
| 41 |
+
| F1 Score | 0.6868 |
|
| 42 |
+
| F2 Score | 0.6558 |
|
| 43 |
+
| ROC-AUC | 0.6893 |
|
| 44 |
+
| Brier Score | 0.2195 |
|
| 45 |
+
|
| 46 |
+
## Key Insights
|
| 47 |
+
- **High Recall (0.6366)**: Detects ~64% of actual failures
|
| 48 |
+
- **Competitive Precision (0.7456)**: ~75% of predictions are correct
|
| 49 |
+
- **Strong AUC (0.6893)**: Good discrimination between failure and non-failure cases
|
| 50 |
|
| 51 |
## Intended Use
|
| 52 |
|
|
|
|
| 54 |
- **Predictive Maintenance**: Identify engines at risk of failure before breakdown
|
| 55 |
- **Condition Monitoring**: Support data-driven maintenance decision-making
|
| 56 |
- **Fleet Management**: Optimize maintenance scheduling and resource allocation
|
| 57 |
+
- **Risk Assessment**: Provide failure probability scores for maintenance prioritization
|
| 58 |
|
| 59 |
## Limitations
|
| 60 |
|
|
|
|
| 62 |
- Performance may vary with new sensor types or operating conditions
|
| 63 |
- Model requires regular retraining with updated failure data
|
| 64 |
- Does not capture temporal degradation patterns (time-series)
|
| 65 |
+
- Assumes consistent sensor calibration and operating conditions
|
| 66 |
|
| 67 |
## Training Data
|
| 68 |
|
| 69 |
- **Dataset**: Engine Predictive Maintenance Dataset
|
| 70 |
+
- **Total Samples**: 19,581 engines
|
| 71 |
+
- **Training Samples**: 13,674 (70%)
|
| 72 |
+
- **Test Samples**: 3,907 (20%)
|
| 73 |
+
- **Features**: 14 engineered features (6 raw + 8 derived)
|
| 74 |
- **Class Distribution**: Imbalanced (Good: ~63%, Failure: ~37%)
|
| 75 |
|
| 76 |
## Training Procedure
|
| 77 |
|
| 78 |
1. Data preprocessing and feature engineering
|
| 79 |
2. Train-test split (70-20-10)
|
| 80 |
+
3. SMOTE oversampling on training data to handle class imbalance
|
| 81 |
+
4. Hyperparameter tuning via GridSearchCV with 5-fold cross-validation
|
| 82 |
+
5. Model evaluation on held-out test set
|
|
|
|
|
|
|
| 83 |
|
| 84 |
+
## Hyperparameters
|
| 85 |
+
- **n_estimators**: 400
|
| 86 |
+
- **max_depth**: 12
|
| 87 |
+
- **min_samples_leaf**: 4
|
| 88 |
+
- **SMOTE k_neighbors**: 5
|
| 89 |
+
- **Random state**: 42
|
| 90 |
|
| 91 |
## Recommendations
|
| 92 |
|
| 93 |
+
1. **Threshold Tuning**: Adjust decision threshold based on cost of false positives vs. false negatives
|
| 94 |
+
2. **Continuous Monitoring**: Track model performance in production and retrain quarterly with new data
|
| 95 |
+
3. **Feature Importance**: Use SHAP or feature importance analysis to identify critical sensors
|
| 96 |
+
4. **Ensemble Approaches**: Consider combining with other models (XGBoost, LightGBM) for robust predictions
|
| 97 |
+
5. **Domain Expertise**: Combine predictions with expert knowledge for final maintenance decisions
|
| 98 |
|
| 99 |
## Citation
|
| 100 |
|
| 101 |
If you use this model, please cite:
|
| 102 |
|
| 103 |
```
|
| 104 |
+
@misc{predictive-maintenance-model-2026,
|
| 105 |
title={Engine Predictive Maintenance Model},
|
| 106 |
+
author={GreatLearning Capstone Team},
|
| 107 |
year={2026},
|
| 108 |
+
howpublished={Hugging Face Hub},
|
| 109 |
+
url={https://huggingface.co/models/nilanjanadevc/engine-predictive-maintenance-model}
|
| 110 |
}
|
| 111 |
```
|
| 112 |
|
|
|
|
| 114 |
|
| 115 |
This model is released under the MIT License. See LICENSE file for details.
|
| 116 |
|
| 117 |
+
## Contact & Support
|
| 118 |
|
| 119 |
+
For questions or issues:
|
| 120 |
+
- GitHub: [Check repository](https://github.com/nilanjanadevc/predictive-engine-maintainence-mlops)
|
| 121 |
+
- Hugging Face: [@nilanjanadevc](https://huggingface.co/nilanjanadevc)
|