Next Article in Journal
Multi-Flow Complex Event Optimization in the Edge: A Smart Street Scenario
Previous Article in Journal
Lightweight Quantized XGBoost for Botnet Detection in Resource-Constrained IoT Networks
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Machine Learning Approach to Detect Denial of Sleep Attacks in Internet of Things (IoT)

by
Ishara Dissanayake
1,
Anuradhi Welhenge
2 and
Hesiri Dhammika Weerasinghe
3,*
1
Department of Computer Engineering, Faculty of Engineering, University of Sri Jayewardenepura, Nugegoda 10250, Sri Lanka
2
School of Electrical Engineering, Computing and Mathematical Sciences, Curtin University, Bentley, WA 6102, Australia
3
Department of Computer Systems Engineering, Faculty of Computing and Technology, University of Kelaniya, Kelaniya 11600, Sri Lanka
*
Author to whom correspondence should be addressed.
Submission received: 3 September 2025 / Revised: 9 November 2025 / Accepted: 15 November 2025 / Published: 20 November 2025

Abstract

The Internet of Things (IoT) has rapidly evolved into a central component of today’s technological landscape, enabling seamless connectivity and communication among a vast array of devices. It underpins automation, real-time monitoring, and smart infrastructure, serving as a foundation for Industry 4.0 and paving the way toward Industry 5.0. Despite the potential of IoT systems to transform industries, these systems face a number of challenges, most notably the lack of processing power, storage space, and battery life. Whereas cloud and fog computing help to relieve computational and storage constraints, energy limitations remain a severe impediment to long-term autonomous operation. Among the threats that exploit this weakness, the Denial-of-Sleep (DoSl) attack is particularly problematic because it prevents nodes from entering low-power states, leading to battery depletion and degraded network performance. This research investigates machine-learning (ML) and deep-learning (DL) methods for identifying such energy-wasting behaviors to protect IoT energy resources. A dataset was generated in a simulated IoT environment under multiple DoSl attack conditions to validate the proposed approach. Several ML and DL models were trained and tested on this data to discover distinctive power-consumption patterns related to the attacks. The experimental results confirm that the proposed models can effectively detect anomalous behaviors associated with DoSl activity, demonstrating their potential for energy-aware threat detection in IoT networks. Specifically, the Random Forest and Decision Tree classifiers achieved accuracies of 98.57% and 97.86%, respectively, on the held-out 25% test set, while the Long Short-Term Memory (LSTM) model reached 97.92% accuracy under a chronological split, confirming effective temporal generalization. All evaluations were conducted in a simulated environment, and the paper also outlines potential pathways for future physical testbed deployment.
Keywords: Internet of Things (IoT); Denial of Sleep attacks; COOJA simulator; Logistic Regression; Support Vector Machine; K-Nearest Neighbors (KNN); decision tree; Random Forest; Artificial Neural Networks (ANN); Recurrent Neural Network (RNN) Internet of Things (IoT); Denial of Sleep attacks; COOJA simulator; Logistic Regression; Support Vector Machine; K-Nearest Neighbors (KNN); decision tree; Random Forest; Artificial Neural Networks (ANN); Recurrent Neural Network (RNN)

Share and Cite

MDPI and ACS Style

Dissanayake, I.; Welhenge, A.; Weerasinghe, H.D. A Machine Learning Approach to Detect Denial of Sleep Attacks in Internet of Things (IoT). IoT 2025, 6, 71. https://doi.org/10.3390/iot6040071

AMA Style

Dissanayake I, Welhenge A, Weerasinghe HD. A Machine Learning Approach to Detect Denial of Sleep Attacks in Internet of Things (IoT). IoT. 2025; 6(4):71. https://doi.org/10.3390/iot6040071

Chicago/Turabian Style

Dissanayake, Ishara, Anuradhi Welhenge, and Hesiri Dhammika Weerasinghe. 2025. "A Machine Learning Approach to Detect Denial of Sleep Attacks in Internet of Things (IoT)" IoT 6, no. 4: 71. https://doi.org/10.3390/iot6040071

APA Style

Dissanayake, I., Welhenge, A., & Weerasinghe, H. D. (2025). A Machine Learning Approach to Detect Denial of Sleep Attacks in Internet of Things (IoT). IoT, 6(4), 71. https://doi.org/10.3390/iot6040071

Article Metrics

Back to TopTop