Your new experience awaits. Try the new design now and help us make it even better

ORIGINAL RESEARCH article

Front. Commun. Netw.

Sec. Networks

Volume 6 - 2025 | doi: 10.3389/frcmn.2025.1665262

XGBoost-Driven Adaptive Spreading Factor Allocation for Energy-Efficient LoRaWAN Networks

Provisionally accepted
Farhan  NisarFarhan Nisar1*Muhammad  AmeenMuhammad Ameen2Muhammad  Touseef IrshadMuhammad Touseef Irshad2Hassan  HadiHassan Hadi3*Naveed  AhmadNaveed Ahmad3Mohamad  LadanMohamad Ladan3
  • 1Qurtuba University of Sciences and Information Technology - Peshawar Campus, Peshawar, Pakistan
  • 2National University of Modern Languages, Islamabad, Pakistan
  • 3Prince Sultan University, Riyadh, Saudi Arabia

The final, formatted version of the article will be published soon.

The pervasive growth of the Internet of Things (IoT) necessitates efficient communication 3 technologies, among which Long Range Wide Area Network (LoRaWAN) is prominent due to its 4 long-range, low-power characteristics. A significant challenge in dense LoRaWAN deployments is 5 the efficient management of resources, particularly Spreading Factor (SF) allocation. In this paper, 6 we propose a machine learning-based approach for optimal SF allocation to enhance network 7 performance. We developed a simulation-driven framework utilizing the ns-3 simulator to generate 8 a comprehensive dataset mapping network conditions, including RSSI, SNR, device coordinates, 9 and distance to the gateway, to optimal SF assignments determined through an energy-aware 10 optimization process. An XGBoost model was trained on this dataset to predict the optimal 11 SF based on real-time network parameters. Our methodology focuses on balancing packet 12 delivery ratio and energy consumption. The performance evaluation demonstrates that the trained 13 XGBoost model effectively classifies optimal SFs, exhibiting strong diagonal dominance in the 14 confusion matrix and achieving competitive accuracy with efficient computational characteristics, 15 making it suitable for resource-constrained LoRaWAN environments.

Keywords: LORA, LoRaWAN, Internet of Things (IoT), Machine Learning (ML), resource management, Spreading factor (SF), Transmission Power (TP)

Received: 13 Jul 2025; Accepted: 01 Sep 2025.

Copyright: © 2025 Nisar, Ameen, Touseef Irshad, Hadi, Ahmad and Ladan. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

* Correspondence:
Farhan Nisar, Qurtuba University of Sciences and Information Technology - Peshawar Campus, Peshawar, Pakistan
Hassan Hadi, Prince Sultan University, Riyadh, Saudi Arabia

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.