Ensemble learning for real-time anomaly detection and predictive maintenance in smart factories
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
Issue
Section
License
Copyright (c) 2025 Engineering Review

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
Engineering review uses the Creative Commons Attribution-NonCommercial-NoDerivatives (CC-BY-NC-ND) 4.0 International License, which governs the use, publishing and distribution of articles by authors, publishers and the wider general public.
The authors are allowed to post a digital file of the published article, or the link to the published article (Enginering Review web page) may be made publicly available on websites or repositories, such as the Author’s personal website, preprint servers, university networks or primary employer’s institutional websites, third party institutional or subject-based repositories, and conference websites that feature presentations by the Author(s) based on the published article, under the condition that the article is posted in its unaltered Engineering Review form, exclusively for non-commercial purposes.
The journal Engineering Review’s publishing procedure is performed in accordance with the publishing ethics statements, defined within the Publishing Ethics Resource Kit. The Ethics statement is available in the document Ethics Policies.