Cost Sensitive Machine Learning for Rare Failure Prediction: Balancing Missed Failures and False Maintenance Alarms
DOI:
https://doi.org/10.54536/ajsts.v5i2.8505Keywords:
Class Imbalance, Cost Sensitive Learning, False Negatives, False Positives, SHAPAbstract
Rare machine failures pose a difficult predictive-maintenance challenge because extreme class imbalance can result in deceptively high classification accuracy while disguising missed failures and the operational overhead of false alarms. The AI4I 2020 Predictive Maintenance Dataset is applied in this study to develop a leakage-controlled, maintenance-oriented computational learning framework that includes classifier comparison, imbalance correction, cost-sensitive threshold selection, and explainable artificial intelligence. Logistic Regression, Random Forest, XGBoost, and LightGBM were all tested on a stratified independent test set. Random Forest got the highest baseline precision (97.44%) and F1-score (84.44%), but XGBoost and LightGBM had higher failure recall (80.39%). LightGBM was employed as the probabilistic model in following analyzes. Random oversampling outperformed all other imbalance treatments, raising recall to 88.24%, lowering missed failures to six and false positives to five, and earning an F1-score of 89.11%. Cost-sensitive threshold optimization indicated a clear maintenance trade off. FN-to-FP cost ratios of 1:1 and 2:1 chose a threshold of 0.22, resulting in eight missed failures and nine false alarms, whereas a 10:1 ratio dropped the threshold to 0.01 and missed failures to five while increasing false alarms to 59. SHAP analysis revealed that tool wear, torque, and rotational speed were the most influential predictors. The data indicates that balancing class representation is not the same as balancing maintenance risk. As a result, the proposed framework moves rare-failure evaluation away from accuracy centered model selection and toward interpretable FN-FP operating points that explicitly link probabilistic predictions with maintenance priorities and provide a transparent basis for selecting deployment thresholds in industrial predictive maintenance applications with asymmetric operational consequences.
Downloads
References
Al Dosari, F. H. M., & Abouellail, S. I. A. D. (2023). Artificial intelligence (AI) techniques for intelligent control systems in mechanical engineering. American Journal of Smart Technology and Solutions, 2(2), 55–64. https://doi.org/10.54536/ajsts.v2i2.2188
Cummins, L., Sommers, A., Ramezani, S. B., Mittal, S., Jabour, J., Seale, M., & Rahimi, S. (2024). Explainable predictive maintenance: A survey of current methods, challenges and opportunities. IEEE Access, 12, 57574–57602. https://doi.org/10.1109/ACCESS.2024.3391130
de Giorgio, A., Cola, G., & Wang, L. (2023). Systematic review of class imbalance problems in manufacturing. Journal of Manufacturing Systems, 71, 620–644. https://doi.org/10.1016/j.jmsy.2023.10.014
Mahale, Y., Kolhar, S., & More, A. S. (2025). Enhancing predictive maintenance in automotive industry: Addressing class imbalance using advanced machine learning techniques. Discover Applied Sciences, 7, 340. https://doi.org/10.1007/s42452-025-06827-3
Nicola, A. A. (2026). AI-driven factory robot remote control monitoring equipment using machine learning and cloud-based system. American Journal of Smart Technology and Solutions, 5(2), 18–28. https://doi.org/10.54536/ajsts.v5i2.8114
Obeten, O., & Jimoh, A. (2026). Physics-informed, cost-aware fault classification with comparative explainability for predictive maintenance: A SHAP–LIME agreement analysis. Scientific Reports. https://doi.org/10.1038/s41598-026-64374-2
Owusu, D. K., Amuzuvi, C. K., & Attachie, J. C. (2026). Thermal fault analysis and optimisation of induction motors using current and temperature signals with artificial intelligence. American Journal of Data Science and Artificial Intelligence, 2(1), 33–43. https://doi.org/10.54536/ajdsai.v2i1.5278
Owusu, D. K., & Baidoo, C. E. (2026). AI-enabled prediction of power transformer remaining useful life using dissolved gas analysis and Random Forest regression. American Journal of Innovation in Science and Engineering, 5(1), 56–69. https://doi.org/10.54536/ajise.v5i1.6829
Qawqzeha, Y. (2025). Addressing class imbalance in IoT: A comparative analysis of resampling techniques. American Journal of Smart Technology and Solutions, 4(1), 16–24. https://doi.org/10.54536/ajsts.v4i1.2912
Shadi, M. R., Mirshekali, H., & Shaker, H. R. (2025). Explainable artificial intelligence for energy systems maintenance: A review on concepts, current techniques, challenges, and prospects. Renewable and Sustainable Energy Reviews, 216, 115668. https://doi.org/10.1016/j.rser.2025.115668
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Kaoutar Bizmour

This work is licensed under a Creative Commons Attribution 4.0 International License.