Ensemble learning for real-time anomaly detection and predictive maintenance in smart factories

Authors

  • Lahcen Idouglid Faculty of Sciences, Computer Sciences Research Laboratory, Ibn Tofail University, Kenitra, Morocco
  • Said Tkatek Faculty of Sciences, Computer Sciences Research Laboratory, Ibn Tofail University, Kenitra, Morocco
  • Khalid Elfayq Faculty of Sciences, Computer Sciences Research Laboratory, Ibn Tofail University, Kenitra, Morocco
  • Toufik Mzili LAROSERI Lab, Faculty of Sciences, Chouaib Doukkali University, El Jadida, Morocco

Abstract

This paper explores the use of several ensemble learning algorithms Gradient Boosting, XGBoost, LightGBM, Bagging, AdaBoost, and Voting Classifier on the CICIoT2023 dataset within the framework of Industrial Internet of Things (IIoT) and Intrusion Detection Systems (IDS). The main goal is to improve anomaly detection and predictive maintenance in smart manufacturing environments. The models' performance was assessed using key metrics such as precision, recall, accuracy, F1 score, and ROC AUC score, in addition to evaluating their training and prediction times. Results show that Bagging and Voting Classifiers achieved the highest accuracy and ROC AUC scores, making them highly effective for complex detection tasks. However, XGBoost and LightGBM demonstrated superior computational efficiency, making them suitable for real-time systems requiring fast prediction times. The findings indicate that ensemble learning techniques can significantly improve both the accuracy and speed of anomaly detection in IIoT systems, providing a robust framework for enhancing cybersecurity and operational efficiency in smart factories.

Additional Files

Published

2025-12-29

How to Cite

Ensemble learning for real-time anomaly detection and predictive maintenance in smart factories. (2025). Engineering Review, 45(3). https://engineeringreview.org/index.php/ER/article/view/2633