Sarah Rain
๐ Just wrapped up a machine learning project focused on predicting ๐๐๐ข๐ฅ๐ฎ๐ซ๐๐ฌ ๐ข๐ง ๐ ๐ก๐ฒ๐๐ซ๐๐ฎ๐ฅ๐ข๐ ๐ฌ๐ฒ๐ฌ๐ญ๐๐ฆ using real-world sensor data collected from industrial equipment!
--------------------------
Over the course of this project, I tackled a complex, high-dimensional dataset derived from 17 industrial sensors, each capturing multiple metrics at a high sampling rate.
==> This resulted in over 400,000 raw cycle-based features per sample! posing significant challenges in data processing and model scalability.
๐ So Sarah What did YOU do ?
I brought up the BIG GUNS ๐ซ
1. ๐๐ข๐ฆ๐-๐๐๐ซ๐ข๐๐ฌ ๐ ๐๐๐ญ๐ฎ๐ซ๐ ๐๐ง๐ ๐ข๐ง๐๐๐ซ๐ข๐ง๐ โจ Extracted ๐ด๐ต๐ข๐ต๐ช๐ด๐ต๐ช๐ค๐ข๐ญ ๐ข๐ฏ๐ฅ ๐ง๐ณ๐ฆ๐ฒ๐ถ๐ฆ๐ฏ๐ค๐บ-๐ฅ๐ฐ๐ฎ๐ข๐ช๐ฏ ๐ง๐ฆ๐ข๐ต๐ถ๐ณ๐ฆ๐ด (mean, median, skewness, kurtosis, entropy, etc.) from each sensor signal to summarize patterns over time.
2. ๐๐ข๐ฆ๐๐ง๐ฌ๐ข๐จ๐ง๐๐ฅ๐ข๐ญ๐ฒ ๐๐๐๐ฎ๐๐ญ๐ข๐จ๐ง Applied #StandardScaler followed by #PCA to reduce the feature set from 400K+ to just 19 components, while preserving >95% variance.
3. ๐๐๐ซ๐ ๐๐ญ ๐๐จ๐๐๐ฅ๐ข๐ง๐ : Focused on predicting internal pump leakage, a key indicator of system degradation. The target had 3 classes (normal, minor leakage, critical leakage).
4. ๐๐จ๐๐๐ฅ๐ข๐ง๐ ๐๐ฉ๐ฉ๐ซ๐จ๐๐๐ก: Trained an XGBoost classifier, optimized using GridSearchCV, achieving an accuracy of over 90%, with an F1-score of 0.93+ and clear performance across all classes.
5. ๐๐๐ฉ๐ฅ๐จ๐ฒ๐ฆ๐๐ง๐ญ: Built a Streamlit web app for real-time predictions, allowing users to enter new sensor readings and instantly receive a leakage status classification.
๐ง Key Learnings:
Tackled data imbalance using stratified sampling and robust evaluation metrics (macro and weighted F1-scores).
Learned to navigate highly correlated features, overfitting risks, and domain-specific engineering constraints.
Focused on explainability and deployment-readiness, ensuring the solution can be extended to other failure modes or future datasets.
โ Project Impact:
This kind of predictive maintenance tool can help prevent costly machine breakdowns, reduce downtime, and ensure safety in heavy industrial settings. Early detection of internal pump leakage enables engineers to take preventive action before failure escalates.
๐ง Tools: #pandas, #numpy, #scikit-learn, #XGBoost, #Streamlit, #matplotlib, #seaborn
๐Key Skills:
- Feature extraction from time-series data
- PCA for dimensionality reduction
- XGBoost optimization
- Model deployment using Streamlit
- End-to-end ML pipelines
----------------------------------------------------------------
the pdf is a sample of the important parts of the project, you can find the full notebook on Kaggle, GitHub and check other projects on my #portfolio (comment section)
---------------------
Let me know if you're working on similar use cases in predictive maintenance or industrial analytics—I'd love to connect!
#MachineLearning #PredictiveMaintenance #DataScience #FeatureEngineering #PCA #XGBoost #MLDeployment #Streamlit #SmartManufacturing #DataDriven
Hydraulic System Failure Prediction Using XGBoost + PCA - sarah6mabrouk/Hydraulic-System-Failure-Prediction-Using-XGBoost-andPCA
https://github.com/sarah6mabrouk/Hydraulic-System-Failure-Prediction-Using-XGBoost-andPCA