SHAP enhanced transformer GWO boosting model for transparent and robust anomaly detection in IIoT environments

The rapid adoption of the Industrial Internet of Things (IIoT) has transformed factory operations by enabling real-time monitoring and automation, but it has also exposed production environments to frequent anomalies and cyber-physical risks. Traditional machine learning approaches such as Random Forests, Support Vector Machines, and ensemble boosting methods have demonstrated strong performance, yet they often face limitations when dealing with data imbalance, temporal dependencies, and concept drift in evolving sensor streams. In this study, we propose a hybrid framework that integrates a temporal transformer encoder with a Logistic Boosting classifier, enhanced through bio-inspired feature optimization using the Grey Wolf Optimizer. The transformer component captures sequential patterns in sensor data, while the optimization layer refines feature selection to improve generalization. Logistic Boosting then provides robust classification, balancing sensitivity and precision under imbalanced conditions. Experiments were conducted on a real-world six-month dataset of 15,000 sensor readings collected from a smart manufacturing facility. The proposed model achieved an accuracy of 98.2%, with 96.7% precision, 97.1% recall, an F1-score of 0.969, and an AUC of 0.996, outperforming the baseline Logistic Boosting model (96.6% accuracy, AUC 0.992). In addition to superior predictive performance, the framework demonstrated resilience under data drift scenarios and maintained low inference latency suitable for edge deployment. In addition to high predictive accuracy, the framework provides explainable outputs using SHAP analysis, ensuring that anomaly alerts are transparent and interpretable for industrial operators. These findings highlight the effectiveness of combining temporal transformers, boosting ensembles, and metaheuristic optimization for accurate detection of unusual events in IoT-enabled factories, offering a framework that can be applied across different factories or scaled to larger datasets without major redesign towards secure and adaptive industrial systems.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2025-11-20
DOI
https://doi.org/10.1038/s41598-025-25033-0
Primary Topic
Data Stream Mining Techniques
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

SHAP enhanced transformer GWO boosting model for transparent and robust anomaly detection in IIoT environments

Mohammed Aly, Naif M. Alotaibi
Scientific Reports
Data Stream Mining Techniques
article

SHAP enhanced transformer GWO boosting model for transparent and robust anomaly detection in IIoT environments

Mohammed Aly, Naif M. Alotaibi
article en

Abstract

The rapid adoption of the Industrial Internet of Things (IIoT) has transformed factory operations by enabling real-time monitoring and automation, but it has also exposed production environments to frequent anomalies and cyber-physical risks. Traditional machine learning approaches such as Random Forests, Support Vector Machines, and ensemble boosting methods have demonstrated strong performance, yet they often face limitations when dealing with data imbalance, temporal dependencies, and concept drift in evolving sensor streams. In this study, we propose a hybrid framework that integrates a temporal transformer encoder with a Logistic Boosting classifier, enhanced through bio-inspired feature optimization using the Grey Wolf Optimizer. The transformer component captures sequential patterns in sensor data, while the optimization layer refines feature selection to improve generalization. Logistic Boosting then provides robust classification, balancing sensitivity and precision under imbalanced conditions. Experiments were conducted on a real-world six-month dataset of 15,000 sensor readings collected from a smart manufacturing facility. The proposed model achieved an accuracy of 98.2%, with 96.7% precision, 97.1% recall, an F1-score of 0.969, and an AUC of 0.996, outperforming the baseline Logistic Boosting model (96.6% accuracy, AUC 0.992). In addition to superior predictive performance, the framework demonstrated resilience under data drift scenarios and maintained low inference latency suitable for edge deployment. In addition to high predictive accuracy, the framework provides explainable outputs using SHAP analysis, ensuring that anomaly alerts are transparent and interpretable for industrial operators. These findings highlight the effectiveness of combining temporal transformers, boosting ensembles, and metaheuristic optimization for accurate detection of unusual events in IoT-enabled factories, offering a framework that can be applied across different factories or scaled to larger datasets without major redesign towards secure and adaptive industrial systems.

Scientific ReportsVol. 15(1)
Shaqra University (SA), Egyptian Russian University (EG)
Science and Technology Development Fund
Openalex Percentile: Top 81%
Data Stream Mining Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.