Machine Learning-Based Energy-Efficient Routing and Dynamic Reconfiguration Framework for Smart City IoT Networks
Abstract
Energy efficiency is critical in the sustainable operation of Internet of Things (IoT) networks, particularly in resource-constrained smart city environments. This paper delves into the challenges and opportunities for optimizing energy consumption in IoT routing protocols. We explore the limitations of traditional routing protocols and highlight the need for innovative approaches that can adapt to dynamic network conditions and device energy constraints. We propose a novel energy-efficient routing protocol that leverages advanced techniques such as machine learning and reinforcement learning to optimize routing decisions dynamically. Our protocol considers factors like node energy levels, link quality, and traffic load to select energy-efficient paths for data transmission. Additionally, we incorporate sleep scheduling mechanisms to minimize idle power consumption and prolong the network lifetime. Through rigorous simulations and evaluations, we demonstrate the significant energy savings and performance improvements achieved by our proposed protocol compared to existing solutions. Our findings provide valuable insights into designing and deploying energy-efficient IoT networks in smart cities, contributing to realizing sustainable and resilient urban environments.
Keywords:Internet of thingsSmart citiesEnergy efficiencyRouting protocolsMachine learning
1. Introduction
The Internet of Things (IoT) has revolutionized how we interact with our environment. By connecting billions of devices, IoT empowers smart cities to optimize resource utilization, enhance public safety, and improve the overall quality of life. However, the widespread deployment of IoT devices introduces significant challenges, particularly concerning energy efficiency. IoT devices are often battery-powered, so their limited energy supply can severely impact network lifetime and functionality [1].
This figure is shown in the PDF version of the article.
1.1 Energy Efficiency: A Critical Challenge
Energy efficiency is a paramount concern in IoT networks, directly affecting the network's scalability, reliability, and sustainability. Several factors contribute to energy consumption in IoT devices, including:
I. Radio transmission: the transmission of data over wireless channels consumes a significant amount of energy.
II. Sensing and processing: collecting and processing sensor data requires energy for both the sensing hardware and the processing unit.
III. Idle state power consumption: even when idle, IoT devices consume a certain amount of energy to maintain their functionality [2].
Table 1. Energy consumption breakdown in IoT devices.
This table is shown in the PDF version of the article.
Table 2. Energy consumption breakdown in IoT devices.
This table is shown in the PDF version of the article.
Energy constraints Limited battery capacity of IoT devices Scalability Handling a large number of devices and data traffic Security and privacy Protecting sensitive data from unauthorized access Reliability and fault tolerance Ensuring continuous operation in the presence of failures
Efficient energy management strategies are essential to address these challenges. One crucial aspect of energy-efficient IoT networks is the design of robust and energy-aware routing protocols. Routing protocols determine the optimal paths for data transmission, significantly impacting the overall energy consumption of the network.
2. Literature Review
Smart city IoT networks face unique challenges due to the high density of interconnected devices, the need for reliable data transmission, and minimal energy consumption. Energy-efficient routing is crucial as devices are often deployed in remote or urban settings with limited access to energy sources. Over the years, several routing protocols have been developed for Wireless Sensor Networks (WSNs), which also apply to IoT in smart cities, addressing these challenges to varying extents. This section reviews key protocols, analyzing their energy efficiency, performance, and suitability for smart city IoT applications [3].
2.1 Low-Energy Adaptive Clustering Hierarchy
Low-Energy Adaptive Clustering Hierarchy (LEACH), one of the pioneering energy-efficient protocols for WSNs, uses clustering to reduce energy consumption by rotating cluster heads (CHs) to distribute the energy load evenly. LEACH operates in rounds: during each round, sensor nodes elect CHs that aggregate and transmit data to the base station. The clustering and data aggregation techniques significantly reduce the frequency of direct communications to the base station, which conserves energy.
I. Strengths: LEACH improves network lifetime and balances energy consumption by clustering nodes. II. Limitations: its random CH selection may lead to uneven distribution of CHs, and its performance is limited in larger networks due to scalability issues [4].
Table 3. Key characteristics and limitations of the LEACH protocol.
This table is shown in the PDF version of the article.
2.2 Power-Efficient Gathering in Sensor Information System
Power-Efficient Gathering in Sensor Information System (PEGASIS) improves upon LEACH by creating a chain of nodes. Each node transmits data to its closest neighbor, and one node in the chain sends the aggregated data to the base station. This technique reduces the number of direct communications with the base station, thereby conserving energy. PEGASIS further reduces the number of transmissions by allowing only one node per round to communicate directly with the base station.
I. Strengths: high energy efficiency due to minimal transmission distances and data aggregation.
II. Limitations: the protocol introduces delays due to sequential transmissions along the chain, making it less suitable for time-sensitive applications in IoT networks.
Table 4. Key features and challenges of the PEGASIS protocol.
This table is shown in the PDF version of the article.
2.3 Threshold-sensitive Energy Efficient Network
Threshold-sensitive Energy Efficient Network (TEEN) is designed for time-critical applications, where energy efficiency is achieved through a threshold-based data transmission strategy. Nodes transmit data only when certain threshold conditions (such as temperature or humidity) are met. This method reduces unnecessary transmissions, thus conserving energy, which is essential in event-driven smart city IoT applications, such as emergency response systems.
I. Strengths: high energy efficiency in threshold-based, event-driven applications; reduces unnecessary transmissions.
II. Limitations: ineffective for applications requiring periodic updates, limiting its use in real-time smart city scenarios where constant monitoring is essential.
Table 5. Key characteristics and constraints of the TEEN protocol.
This table is shown in the PDF version of the article.
2.4 Adaptive Threshold-sensitive Energy Efficient Network
Adaptive Threshold-sensitive Energy Efficient Network (APTEEN) extends TEEN by providing periodic and threshold-based data reporting, making it suitable for hybrid smart city IoT applications requiring periodic updates and event-based reporting. APTEEN addresses some of its limitations by adapting to a broader range of applications, though it introduces additional overhead in managing hybrid thresholds.
I. Strengths: flexibility to support periodic and event-driven data, improving adaptability for smart city applications.
II. Limitations: increased complexity and overhead from managing adaptive thresholds and hybrid reporting methods [5].
2.5 Energy-aware Routing Protocol
Energy-aware Routing Protocol (EAR) is a protocol that focuses on routing based on the remaining energy of the nodes. Nodes with higher energy levels are preferred in routing decisions, prolonging the network's lifetime. This approach benefits IoT networks in smart cities where certain nodes may have more energy due to placement or usage patterns.
I. Strengths: increases network longevity by prioritizing high-energy nodes.
II. Limitations: this may lead to uneven energy consumption and potential isolation of low-energy nodes, especially in dynamic IoT networks [6].
Table 6. Key features and limitations of the EAR protocol.
This table is shown in the PDF version of the article.
3. Proposed Work
To address the limitations of existing routing protocols and enhance energy efficiency in IoT networks, we propose a novel energy-efficient routing protocol that leverages machine learning techniques [7]. Our proposed protocol integrates the following key features:
3.1 Energy-Aware Node Selection
3.1.1 Residual energy estimation
We employ machine learning techniques to accurately estimate each node's remaining energy based on historical data and current network conditions [8].
3.1.2 Node selection
The protocol selects nodes with higher residual energy to participate in data transmission, ensuring balanced energy consumption across the network [7].
3.2 Dynamic Routing Path Optimization
3.2.1 Real-time traffic analysis
We utilize machine learning algorithms to analyze real-time traffic patterns and identify congestion points [9].
3.2.2 Route adaptation
The protocol dynamically adjusts routing paths to avoid congested areas and select energy-efficient routes [10].
3.2.3 Link quality assessment
We consider link quality metrics, such as signal strength and interference, to optimize route selection and minimize retransmissions [7].
3.3 Sleep Scheduling
3.3.1 Intelligent sleep scheduling
We employ machine learning techniques to predict idle periods and schedule nodes to enter sleep mode to conserve energy [7].
3.3.2 Wake-up scheduling
We determine optimal wake-up times for nodes to minimize energy consumption while ensuring timely data transmission.
3.4 Data Aggregation
3.4.1 In-network data aggregation
We enable data aggregation at intermediate nodes to reduce redundant data transmission and save energy [7].
3.4.2 Data compression
We apply compression techniques to reduce the size of data packets, further minimizing energy consumption.
3.5 Machine Learning-Based Optimization
3.5.1 Reinforcement learning
We utilize reinforcement learning to train the protocol to make optimal routing decisions based on rewards and penalties [10].
3.5.2 Deep learning
We employ deep learning models to learn complex network dynamics and predict future traffic patterns [9].
4. Algorithm Used
Here are the core algorithms for the proposed energy-efficient routing protocol for IoT networks in smart cities, including clustering, CH selection, data aggregation with threshold-based transmission, and machine learning-based route optimization. Each algorithm plays a specific role in conserving energy and extending the network lifetime.
4.1 Cluster Formation Algorithm
This algorithm organizes nodes into clusters to reduce the number of direct transmissions to the base station, thereby conserving energy.
I. Input: set of sensor nodes N, maximum cluster radius R II. Output: clusters formed with designated CHs for each node i in N:
if i is not part of any cluster:
Create a new cluster C Add node i to cluster C For each node j in N:
if distance(i, j) ≤ R and j is not part of any cluster:
Add node j to cluster C Select the node with the highest residual energy in C as the CH end for This algorithm ensures that nodes within a specified radius are grouped into clusters, with one node in each cluster chosen as the CH [11].
4.2 Cluster Head Selection Algorithm
CH selection is based on residual energy to distribute energy consumption across nodes and extend network lifetime evenly.
I. Input: cluster C, residual energy of each node E(i) in C II. Output: selected CH Initialize CH = nullInitialize max_energy = 0 for each node i in C:
if E(i) > max_energy:
max_energy = E(i) CH = iend for III. Result: node CH is designated as the CH based on the highest residual energy, ensuring balanced energy depletion across the network [12].
4.3 Data Aggregation with Threshold-Based Transmission
This algorithm reduces energy consumption by transmitting data only when it meets a predefined threshold, conserving power for non-critical data.
I. Input: sensed data D, predefined threshold T II. Output: aggregated data sent to the base station if the threshold is met for each node i in cluster C:
if |D(i) - previous_D(i)| > T:
Aggregate data in C Send aggregated data from the Cluster Head to the base station else:
Skip transmissionend for This approach helps reduce unnecessary data transmissions, significantly conserving energy in event-driven smart city applications [9].
4.4 Machine Learning-Based Route Optimization Algorithm
A machine learning model predicts the optimal route by analyzing historical network data, including energy levels, network congestion, and latency, to find the most energy-efficient path for data transmission.
I. Input: network data D (e.g., energy levels, distance, congestion levels) II. Output: predicted optimal route R for data transmission Train ML model (e.g., Reinforcement Learning, Decision Tree) on historical network data D for each transmission request:
Input current state parameters (energy, distance to base, congestion) into the ML model Predict optimal route R based on model output Send data along route Rend for I. The machine learning model is pre-trained offline on historical data and periodically updated with new data to ensure adaptability to changing network conditions.
II. The model outputs a recommended route that optimally balances energy consumption and transmission efficiency [13].
4.5 Dynamic Reconfiguration for Energy Balancing
To prevent the rapid depletion of certain nodes, this algorithm redistributes tasks among nodes with higher energy, reconfiguring clusters as necessary.
I. Input: CH, residual energy of nodes E(i) II. Output: updated clusters with re-assigned roles for each CH:
if E(CH) < threshold:
Select a new CH with higher residual energy in the cluster Reconfigure the cluster to balance energy load end if end for This algorithm dynamically updates CHs and roles within the network to extend the network lifetime and maintain balanced energy consumption [14].
5. Results and Discussion
The proposed energy-efficient routing protocol for IoT networks in smart cities was evaluated in a simulated environment and compared to existing protocols, including LEACH, PEGASIS, and TEEN, using metrics like energy consumption, network lifetime, packet delivery ratio, and latency. Here’s a breakdown of the
findings
5.1 Energy Consumption
I. Observation: the proposed protocol reduced overall energy consumption compared to the other protocols, primarily due to clustering, threshold-based data transmission, and machine learning-based routing.
II. Result: energy consumption was reduced by approximately 30% compared to LEACH and by 20% compared to PEGASIS and TEEN.
Table 7. Network lifetime comparison across routing protocols.
This table is shown in the PDF version of the article.
5.2 Network Lifetime
I. Observation: the proposed protocol extended network lifetime significantly due to balanced energy consumption across nodes.
II. Result: network lifetime increased by about 40% compared to LEACH and 25% compared to PEGASIS and TEEN.
Table 8. Network lifetime comparison across routing protocols.
This table is shown in the PDF version of the article.
5.3 Packet Delivery Ratio
I. Observation: the packet delivery ratio remained consistently high, outperforming the other protocols. II. Result: the proposed protocol maintained a packet delivery ratio of about 95%, while LEACH, PEGASIS, and TEEN averaged around 88–90%.
Table 9. Packet delivery ratio comparison across routing protocols.
This table is shown in the PDF version of the article.
5.4 Latency
I. Observation: the protocol's latency was comparable to PEGASIS and TEEN and slightly higher than LEACH due to threshold-based data transmission.
II. Result: latency remained acceptable for smart city applications and was suitable for periodic and event-based data.
Table 10. Latency comparison across routing protocols.
This table is shown in the PDF version of the article.
6. Discussion
The results confirm that the proposed protocol enhances energy efficiency and network lifetime in smart city IoT networks. This is achieved through:
I. Energy optimization: clustering, adaptive thresholding, and machine learning-based routing minimize redundant transmissions, reduce energy use, and alleviate network congestion.
II. Scalability and reliability: the protocol scales well across different network sizes (100, 200, 500 nodes) and maintains a high packet delivery ratio, ensuring reliability in smart city applications.
These benefits make the protocol well-suited for energy-sensitive, large-scale smart city deployments, where network longevity and efficiency are crucial. Future work can enhance the protocol with cross-layer optimizations and additional real-time analytics
7. Conclusion
This study explored various energy-efficient routing protocols designed to address the unique challenges IoT networks face in smart city environments. These networks demand solutions that reduce energy consumption to extend network lifetime and maintain reliability and scalability to support the increasing density of interconnected devices. The review of protocols, including LEACH, PEGASIS, TEEN, APTEEN, and EAR, demonstrated existing strategies' advancements and limitations in energy efficiency, data aggregation, adaptive transmission, and handling of dynamic network topologies.
The analysis shows that while clustering and chain-based protocols (e.g., LEACH and PEGASIS) effectively reduce direct transmissions to the base station, they struggle with scalability and latency, which are crucial in smart city applications. Similarly, threshold-based protocols like TEEN and hybrid approaches such as APTEEN offer high energy efficiency for event-driven networks but lack the flexibility required for diverse IoT applications that demand real-time and periodic updates. Energy-aware routing protocols (e.g., EAR) improve network longevity by prioritizing nodes with higher residual energy, but can lead to uneven energy consumption patterns and potential isolation of nodes with low energy.
This paper proposes a novel energy-efficient routing approach that combines the strengths of these protocols, aiming to optimize energy utilization while maintaining a flexible and scalable architecture suitable for smart cities. Key features of the proposed protocol include adaptive clustering, dynamic threshold management, and integration of machine learning-based decision-making to predict optimal routes and minimize energy usage. Through simulation, the proposed protocol demonstrated improved network lifetime and reduced energy consumption compared to conventional methods, making it a promising solution for the future of smart city IoT deployments.
Future work will further refine the protocol's adaptability to varying network conditions, integrate real-time analytics for enhanced decision-making, and test its performance in large-scale urban IoT deployments. Additionally, exploring cross-layer optimizations and enhanced security mechanisms will be essential to ensure the protocol's effectiveness in real-world smart city applications.
This study contributes to advancing energy-efficient routing for IoT networks, highlighting the importance of adaptable, scalable, and intelligent routing mechanisms for sustainable smart city initiatives. Through continued research and development, energy-efficient IoT networks can become a cornerstone of smart city infrastructure, supporting various applications from environmental monitoring and traffic management to emergency response and resource conservation.
Funding
This research received no external funding.
Data Availability
The data used and analyzed during the current study are available from the corresponding author upon reasonable request.
Conflicts of Interest
The authors declare no conflicts of interest regarding the publication of this paper.
References
- [1] Bekal, P., Kumar, P., Mane, P. R., & Prabhu, G. (2024). A comprehensive review of energy efficient routing protocols for query driven wireless sensor networks. F1000Research, 12, 644. https://doi.org/10.12688/f1000research.133874.3
- [2] Anbullam, N. G., & Mary, J. P. P. (2023). A survey: Energy efficient routing protocols in internet of things (IoT). AIP conference proceedings (Vol. 2854, No. 1, p. 040002). AIP Publishing LLC. https://doi.org/10.1063/5.0163603
- [3] Aslam, M., Rasheed, M. B., Shah, T., Rahim, A., Khan, Z. A., Qasim, U., … & Javaid, N. (2013). Energy optimization and performance analysis of cluster based routing protocols extended from LEACH for WSNs. https://arxiv.org/abs/1309.4373
- [4] Arumugam, G. S., & Ponnuchamy, T. (2015). EE-LEACH: Development of energy-efficient LEACH Protocol for data gathering in WSN. EURASIP journal on wireless communications and networking, 2015(1),
- [76] https://doi.org/10.1186/s13638-015-0306-5
- [5] Zhang, B., Wang, S., & Wang, M. (2020). Area double cluster head APTEEN routing protocol-based particle swarm optimization for wireless sensor networks. EURASIP journal on wireless communications and networking, 2020(1), 155. https://doi.org/10.1186/s13638-020-01770-w
- [6] Liu, M., Cao, J., Chen, G., & Wang, X. (2009). An energy-aware routing protocol in wireless sensor networks. Sensors, 9(1), 445–462. https://doi.org/10.3390/s90100445
- [7] Ding, Q., Zhu, R., Liu, H., & Ma, M. (2021). An overview of machine learning-based energy-efficient routing algorithms in wireless sensor networks. Electronics, 10(13), 1539. https://doi.org/10.3390/electronics10131539
- [8] Alanazi, R., Obayya, M., Alghamdi, A. M., Nemri, N., Alshahrani, S., Alduaiji, N., … & Sorour, S. (2025). Machine learning-driven routing optimization for energy-efficient 6G-enabled wireless sensor networks. Alexandria engineering journal, 129, 877–888. https://doi.org/10.1016/j.aej.2025.07.032
- [9] Thakur, S., Sarkar, N. I., & Yongchareon, S. (2025). AI-driven energy-efficient routing in IoT based wireless sensor networks: A comprehensive review. https://www.preprints.org/manuscript/202510.1656
- [10] Priyadarshi, R., Kumar, R. R., Ranjan, R., & Kumar, P. V. (2025). AI-based routing algorithms improve energy efficiency, latency, and data reliability in wireless sensor networks. Scientific reports, 15(1), 22292. https://www.nature.com/articles/s41598-025-08677-w
- [11] Yang, L., Zhang, D., Li, L., & He, Q. (2024). Energy efficient cluster-based routing protocol for WSN using multi-strategy fusion snake optimizer and minimum spanning tree. Scientific reports, 14(1), 16786. https://www.nature.com/articles/s41598-024-66703-9
- [12] Del-Valle-Soto, C., Rodríguez, A., & Ascencio-Piña, C. R. (2023). A survey of energy-efficient clustering routing protocols for wireless sensor networks based on metaheuristic approaches. Artificial intelligence review, 56(9), 9699–9770. https://doi.org/10.1007/s10462-023-10402-w
- [13] Godfrey, D., Suh, B., Lim, B. H., Lee, K. C., & Kim, K. I. (2023). An energy-efficient routing protocol with reinforcement learning in software-defined wireless sensor networks. Sensors, 23(20), 8435. https://doi.org/10.3390/s23208435
- [14] Alzoubi, N. S., Kuraitby, S., & Almustafa, A. (2025). Investigation of traumatic ulcer locations and healing progression during denture adjustment periods in Syrian complete denture patients. Scientific reports, 15(1), 23890. https://www.nature.com/articles/s41598-025-08875-6