Melola Discovery

← Melola Discovery

Open access Jurnal SINTA 1

A lightweight machine learning approach for denial-of-service attacks detection in wireless sensor networks

International Journal of Electrical and Computer Engineering (IJECE) · Vol. 15 No. 2 (2025)

DOI
10.11591/ijece.v15i2.pp2089-2097
ISSN
2722-2578, 2088-8708
Published
2025-04-01
Publisher
Institute of Advanced Engineering and Science
License
creativecommons.org/licenses/by-sa/4.0

Abstract

Wireless sensor networks (WSNs) are increasingly prevalent in the Internet of Things ecosystem and have been used in several fields such as environmental monitoring, military, and healthcare. However, their limited resources and distributed architecture remain two main challenges: energy and security. Furthermore, denial of service (DoS) attacks are one of the principal cyber threats to WSNs. This research proposes a lightweight machine learning (ML) approach based on the extreme gradient boosting (XGBoost) model to detect these attacks in WSNs. Through an extensive investigation, we evaluate four prominent ML algorithms: random forest (RF), k-nearest neighbor (KNN), stochastic gradient descent (SGD), and XGBoost, using the WSN-DS dataset. In addition, we implement and investigate several feature selection techniques in order to have an improved version of the original dataset. Moreover, we evaluate the performance using various performance metrics, which include accuracy, precision, recall, F1-score, and processing time. The latter is a crucial consideration in WSN environments. For validation, we have employed 5-fold cross-validation to ensure robust and reliable results. The proposed model has achieved good performance in all metrics, with a maximum accuracy of up to 99.73%, and a 68% lower processing time compared to the other investigated classifiers.

Collaboration network of the authors

2 authors · 1 co-authorship link

Hover or tap a name to highlight its co-authors. Double-click to open the author's page.

  • Sidi Mohamed Ben Abdellah University
  • Different organisations
  • Same organisation
  • Affiliation unknown
  • Thicker line = more joint articles · bigger circle = more articles
Show as table
Co-authorOrganisationJoint articles

Affiliations come from OpenAlex; journal OAI-PMH metadata carries none. Authors without an OpenAlex ID are matched by name, which can merge or split people.

This record comes from Crossref (what the publisher deposited), because the journal's own OAI-PMH endpoint could not be harvested.

Metadata source: Crossref API (cadangan, berdasarkan ISSN) https://api.crossref.org/journals/2088-8708/works, first harvested 27 Okt 2026, last seen 27 Okt 2026.
Metadata as oai_dc, converted from Crossref
<oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"><dc:title>A lightweight machine learning approach for denial-of-service attacks detection in wireless sensor networks</dc:title><dc:creator>Loughmari, Mohamed</dc:creator><dc:creator>El Affar, Anass</dc:creator><dc:description>&lt;jats:p&gt;Wireless sensor networks (WSNs) are increasingly prevalent in the Internet of Things ecosystem and have been used in several fields such as environmental monitoring, military, and healthcare. However, their limited resources and distributed architecture remain two main challenges: energy and security. Furthermore, denial of service (DoS) attacks are one of the principal cyber threats to WSNs. This research proposes a lightweight machine learning (ML) approach based on the extreme gradient boosting (XGBoost) model to detect these attacks in WSNs. Through an extensive investigation, we evaluate four prominent ML algorithms: random forest (RF), k-nearest neighbor (KNN), stochastic gradient descent (SGD), and XGBoost, using the WSN-DS dataset. In addition, we implement and investigate several feature selection techniques in order to have an improved version of the original dataset. Moreover, we evaluate the performance using various performance metrics, which include accuracy, precision, recall, F1-score, and processing time. The latter is a crucial consideration in WSN environments. For validation, we have employed 5-fold cross-validation to ensure robust and reliable results. The proposed model has achieved good performance in all metrics, with a maximum accuracy of up to 99.73%, and a 68% lower processing time compared to the other investigated classifiers.&lt;/jats:p&gt;</dc:description><dc:publisher>Institute of Advanced Engineering and Science</dc:publisher><dc:date>2025-04-01</dc:date><dc:type>info:eu-repo/semantics/article</dc:type><dc:format>application/pdf</dc:format><dc:identifier>https://doi.org/10.11591/ijece.v15i2.pp2089-2097</dc:identifier><dc:identifier>10.11591/ijece.v15i2.pp2089-2097</dc:identifier><dc:source>International Journal of Electrical and Computer Engineering (IJECE); Vol 15 No 2 (2025); 2089</dc:source><dc:source>2722-2578</dc:source><dc:source>2088-8708</dc:source><dc:relation>https://ijece.iaescore.com/index.php/IJECE/article/viewFile/37087/18127</dc:relation><dc:rights>http://creativecommons.org/licenses/by-sa/4.0</dc:rights></oai_dc:dc>