Open Access
ARTICLE
Clustering in Sensor Networks Using Regional Hierarchical Optimization: A Hybrid LEACH-ACO-GA Approach
1 LIMATI Laboratory, Polydisciplinary Faculty of Beni Mellal, University Sultan Moulay Slimane, Beni Mellal, Morocco
2 LAMRI Laboratory, Polydisciplinary Faculty of Khouribga, University Sultan Moulay Slimane, Khouribga, Morocco
* Corresponding Author: Maryem Lachgar. Email:
(This article belongs to the Special Issue: Advanced Bio-Inspired Optimization Algorithms and Applications)
Computers, Materials & Continua 2026, 88(1), 60 https://doi.org/10.32604/cmc.2026.075234
Received 28 October 2025; Accepted 23 March 2026; Issue published 08 May 2026
Abstract
This study introduces a hybrid routing protocol, Low Energy Adaptive Clustering Hierarchy—Ant Colony Optimization—Genetic Algorithm (LEACH-ACO-GA), for wireless sensor networks. It combines regional ant colony optimization for cluster head selection with inter-cluster routing based on a genetic algorithm. The proposed method reduces energy consumption from 6.9 J (LEACH Classic) to 5.6 J (LEACH-ACO-GA) and decreases latency from 460 to 390 ms, while maintaining a packet delivery ratio of 0.97. These values are averaged over 70 rounds based on 30 independent simulation runs conducted on networks with 50 and 200 nodes. The hybrid method extends network lifetime by up to 50% compared to traditional LEACH and improves performance robustness in dense network environments. The results indicate that two-level metaheuristic optimization is effective for scalable and energy-efficient wireless sensor networks in Internet of Things scenarios.Keywords
Wireless sensor networks (WSNs) have become a fundamental component of modern monitoring and control systems, enabling diverse applications such as energy optimization and environmental observation [1]. Nevertheless, the deployment of these networks is strongly limited by inherent resource constraints, notably restricted energy reserves, limited bandwidth, and modest processing capabilities at the sensor node level [2]. Among these constraints, energy availability remains the most critical issue, as sensor nodes usually rely on finite power sources, including batteries or renewable solutions such as solar energy. This limitation directly affects network lifetime and reliability [3,4].
Limited node energy, unbalanced cluster formation, and communication latency remain persistent challenges in WSNs. Although LEACH-based hierarchical protocols exhibit good scalability, empirical studies indicate that maintaining energy efficiency becomes challenging in dense and dynamically evolving network topologies. Current hybrid LEACH-based methodologies, such as LEACH-GA or LEACH-ACO, generally implement optimization at a singular level, concentrating either on cluster-head (CH) selection or inter-cluster routing, rather than simultaneously addressing both dimensions. This constraint leads to unstable routing, premature node failure, and uneven depletion of energy resources between regions. To address these challenges, a hierarchical clustering protocol known as Low Energy Adaptive Clustering Hierarchy (LEACH) was established to enhance energy efficiency via the periodic rotation of cluster leaders [5]. Notwithstanding its advantages, LEACH does have its limitations, particularly in its ability to provide scalability and flexibility in dynamic network topologies [6].
This study explores and compares the performance of various LEACH protocol variants for IoT networks, including LEACH Classic, LEACH-GA (Genetic Algorithm) [7], LEACH-ACO (Ant Colony Optimization) [8], and a LEACH Hybrid approach combining GA and ACO [9]. The analysis focuses on performance optimization across different network sizes (50 and 200 nodes), with particular attention to energy consumption, packet delivery ratio (PDR), and latency. The study analyzes how hybrid approaches improve the efficiency and reliability of wireless sensor networks by comparing the strengths and limitations of each strategy. Due to their dynamic nature and constrained resources, efficient routing and clustering remain essential for prolonging network lifetime and reducing energy consumption [10]. Combining metaheuristic algorithms with natural and biological behaviors has led to the development of flexible and reliable approaches for solving NP-hard routing and clustering problems in large-scale networks [11]. Algorithms like Ant Colony Optimization (ACO) and Genetic Algorithms (GA) have proven to be effective in discovering energy-efficient solutions while operating within limited computational constraints [12,13].
In contrast to existing LEACH-GA and LEACH-ACO, the proposed regional hierarchical hybrid LEACH-ACO-GA model features a two-level optimization structure, rather than applying GA and ACO independently or sequentially at the global level. This architecture employs ACO locally in each region to identify the most energy-efficient cluster heads (CHs), while GA is utilized globally to optimize inter-cluster routing to the base station. This area segmentation improves scalability and reduces computational complexity in concentrated deployments. A weighted multi-objective cost function (Eq. (8)) simultaneously optimizes energy consumption, latency, and load balancing. The cooperative interaction between ACO and GA improves energy distribution, reduces latency, and extends network lifetime by mitigating premature convergence compared to traditional hybrid methods. Table 1 summarizes the structural differences between the proposed approach and existing LEACH-based hybrid variants. These findings underscore the efficacy of hybrid metaheuristic methodologies in tackling critical wireless sensor network difficulties, including energy depletion, uneven load distribution, and scalability limitations in dense networks [14]. The proposed hybrid model significantly improves energy efficiency, network robustness, and communication performance, resulting in extended network lifetime and reduced latency compared to the classic LEACH model. This research establishes a basis for subsequent investigation into intelligent hybrid optimization methods, emphasizing real-time adaptability, machine learning upgrades, and dynamic clustering tactics to enhance IoT network resilience and performance.

This work is arranged as follows: Section 2 presents related work, Section 3 describes the proposed method, Section 4 presents the dataset structure, Section 5 details the implementation, Section 6 presents the simulation results, Section 7 discusses the results, and Section 8 concludes the paper.
The many uses of wireless sensor networks in fields as diverse as the Internet of Things (IoT), smart cities, and environmental monitoring have prompted extensive research into these networks. LEACH is one of the most widely adopted low energy routing protocols, and it has been continuously enhanced and extended over time [15].
Various studies have focused on optimizing cluster head (CH) selection, improving security mechanisms, and integrating bio-inspired optimization techniques for better energy management. Hussain et al. [15] investigated LEACH successors extensively, classifying them according to CH selection optimization, hybrid clustering, and energy harvesting techniques. Their analysis highlights that optimizing the CH selection process can significantly improve network longevity and reduce communication overhead.
Kalra et al. [16] created the Energy-Effective Scalable Routing Algorithm (EESRA), which is an improved version of LEACH that is better suited for cognitive radio networks (CRNs). Their method combines hierarchical clustering with multi-hop communication, which extends network lifetime and reduces energy consumption.
Hybrid optimization methods have also become more popular for routing in WSNs. Kumar et al. [17] developed the Whale-Ant Optimization Algorithm (WAOA) by combining whale optimization to select the best CH and ant colony optimization (ACO) to find the best route. Their results showed that they were more energy-efficient than MOORP and AZEBR, with longer network lifetimes and better energy balance.
Abose et al. [18] focused on energy-efficient clustering by introducing Improved Residual Energy LEACH (IMP-RES-EL) and Energy-Efficient LEACH (EEL). Their simulations showed a 36% improvement in network longevity and a 44% increase in aggregated data transmission compared to traditional LEACH implementations.
Murugesan et al. [19] enhanced the lifetime of the network through a Modified Ant Colony Optimization (M-ACO) algorithm, which ensures a better energy distribution and reduces the early depletion of nodes. Their experiments validated that M-ACO achieves more stable network performance and lower latency.
Wang et al. [20] improved node energy consumption using an enhanced ant colony optimization (ACO) method that modifies the state transition formula to avoid premature stagnation. Their research shows that selecting paths with higher residual energy can extend the lifetime of a network by 52%.
El Khediri et al. [21] proposed a hybrid metaheuristic approach that integrates Artificial Bee Colony (ABC) and ACO for WSN routing. Their method showed a 40% improvement in network lifetime and a significant reduction in energy consumption between sensor nodes.
Badole and Thakare [22] explored the application of Genetic Algorithms (GA) in optimizing cluster-based multicast routing in VANETs, achieving improvements of up to 23.2% in throughput and 22% in network longevity compared to traditional routing protocols.
Suresh and Prasad [23] proposed an energy-efficient and secure routing framework using LEACH for IoT-based WSNs. Their rank-based CH selection strategy improved communication quality while optimizing energy conservation.
Recently, certain hybrid approaches that mix deterministic clustering with machine learning have been created to make WSNs use even less energy. Qamar and Munir [24] proposed an LEACH-D–ANN framework that integrates deterministic clustering with artificial neural networks and Bayesian regularization. Their model improves cluster-head selection and energy-aware routing compared to conventional LEACH and other clustering protocols, resulting in lower energy consumption and extended network lifetime. In a related study, the same authors [25] proposed a hybrid LEACH-D combined with ANN to improve the stability of the energy distribution and delay initial node failure in dense networks. These deterministic clustering models that utilize artificial neural networks (ANNs) illustrate the promise of data-driven optimization in wireless sensor networks. The regional LEACH-ACO-GA protocol introduced in this paper adopts a dual-level metaheuristic optimization technique that simultaneously enhances cluster-head selection and inter-cluster routing, focusing on energy efficiency, latency reduction, and load balancing objectives. This distinction illustrates that our approach is complementary to LEACH-D–ANN methods and contributes a metaheuristic alternative that aligns with current research trends. Similarly, learning self-growth maps and multi-view clustering approaches focus on data-centric problems such as imbalanced streaming data and imprecision across heterogeneous feature representations, while dynamic 3D CAD model clustering methods rely on inertial or geometric feature encoders to group complex shapes. Although these works share the general concept of clustering, they operate at a different abstraction level and do not consider network-level constraints such as energy consumption, routing efficiency, latency, or cluster-head selection in wireless sensor networks. Consequently, direct quantitative comparison with the proposed energy-aware hierarchical routing framework is not applicable.
Recent optimization studies have also been reported in other application domains, such as automotive radar systems in spectrally crowded V2I environments and high-precision space target localization using multi-sensor association. Although these works employ advanced optimization techniques, they address domain-specific sensing and estimation problems and do not consider network-level constraints such as energy efficiency, clustering, routing, or network lifetime in wireless sensor networks.
In [26], the authors examined the application of metaheuristic optimization methodologies for routing updates in WSNs. To improve the resilience and efficiency of wireless sensor networks, future research should focus on lightweight cryptography, adaptive clustering in real-time, blockchain security, and hybrid routing algorithms based on artificial intelligence [27].
The proposed methodology employs a hierarchical network architecture, segmented into many zones to enhance energy efficiency and scalability of the sensor network. In the proposed approach, the deployment area is spatially divided into a fixed number of regions using an equal-area grid-based partitioning strategy. The network field is segmented into rectangular regions of identical size, and sensor nodes are assigned to regions according to their geographical coordinates. All clustering and optimization operations are first performed locally within each region before global inter-cluster routing optimization is applied.
This hybrid methodology integrates two synergistic algorithms:
• Ant Colony Optimization (ACO) for the best selection of cluster heads (CHs), ensuring a balanced distribution of responsibilities and enhanced energy management [28,29].
• Genetic Algorithm (GA) for the efficient routing of data between Cluster Heads (CHs) and the Base Station (BS), aimed at minimizing communication expenses [30–32].
Initially, ACO dynamically identifies the ideal nodes as Cluster Heads (CHs). Subsequently, genetic algorithms are employed to determine the optimal communication pathways between the cluster heads and the base station.
At each round, ACO selects the cluster heads, and GA subsequently refines the solution, ensuring continuous joint optimization of clustering and inter-cluster communication. After the formation of clusters, the cluster heads communicate the gathered data to the base station via pathways optimized by genetic algorithms. An example of the resulting grid-based regional partitioning and the distribution of clusters generated by the hybrid LEACH-ACO-GA methodology is illustrated in Fig. 1. The proposed hybrid framework’s synergy between ACO and GA is based on the complementary character of their search mechanisms. ACO efficiently identifies local optima for cluster-head (CH) placement by performing exploration through pheromone-guided probabilistic decisions. Through mutation and crossover operations, GA guarantees the global refinement and exploitation of CH to BS routes. Thus, the proposed architecture accomplishes a balance between global optimization, thereby preventing premature convergence, a limitation of numerous conventional hybrids. In this work, the genetic algorithm optimizes the selection of cluster heads, while the resulting inter-cluster communication cost is implicitly evaluated through distance- and latency-based metrics rather than explicit CH-BS path encoding. This design choice allows routing efficiency to be captured within the multi-objective optimization framework without increasing algorithmic complexity.

Figure 1: Spatial clustering obtained using the proposed LEACH–ACO–GA framework, illustrating the equal-area grid-based regional partitioning of the network field.
The objective function (Eq. (8)) incorporates normalized metrics of energy, latency, and average distance with adaptive weights
To optimize clustering, the network is divided into several regions, each grouping a certain number of nodes while respecting various constraints.
Each node has a limited energy capacity Ei, while cluster heads (CHs) consume more energy due to their additional functions. Eq. (1) represents the total residual energy of the network at a given round and serves as a as global indicator of network lifetime. The proposed protocol aims to preserve this residual energy over time by optimizing cluster head (CH) selection, reducing transmission distances, and adopting rotation mechanisms to balance the energy load.
A node can only join a cluster whose cluster head (CH) is situated at a maximum acceptable distance dmax. To optimize energy consumption, the distance between the CH and its members must be reduced, which is expressed by
where
•
• M is the total number of nodes in the cluster.
•
All cluster heads (CHs) must be connected to the base station (BS) either directly or via other CHs. A CH can only relay data if it has sufficient remaining power, i.e.:
where:
•
•
This constraint ensures network stability by preventing a depleted CH from becoming a point of failure while ensuring efficient transmission to the base station.
A cluster head (CH) can only manage a maximum number of nodes, noted as
where
• N is the total number of nodes in the network.
• K is the total number of clusters.
•
This constraint aims to avoid overloading the CHs by guaranteeing a balanced distribution of nodes within the network. The following Table 2 groups the constraints we have defined.

Latency: the total latency of a sensor network is the time between a sensor sending a packet and the base station (BS) receiving it, measured in milliseconds.
In this work, latency is considered an aggregate network-level metric that reflects transmission and routing delays within the clustering process during each simulation round. It is used to evaluate the impact of cluster-head selection and routing efficiency on packet delivery time. The queuing delay, the physical propagation delay, and the node processing delay are not explicitly modeled.
Where N is the total number of active nodes transmitting data.
A high latency can slow packet transmission, which is especially problematic for real-time applications.
Energy: sensor networks use energy to transmit data from sensors to their Cluster Head (CH), aggregate data at the CH, and send CH data to the base station.
(Eqs. (1) and (6)) operate at different abstraction levels. Eq. (6) quantifies the energy consumed during each round, while Eq. (1) represents the total residual energy of the network used to assess network lifetime.
This metric quantifies the energy consumed per round and is expressed in joules (J),
where
• N is the total number of nodes,
•
•
•
High energy consumption reduces network lifespan and efficiency.
Packet Delivery Ratio (PDR): compares the number of successful packets to the total number of packets sent to determine packet transmission efficiency. If
In the simulation, packet reception is modeled probabilistically as a function of communication distance. For each transmitted packet, the reception outcome is determined according to a distance-dependent loss probability, which increases with the hop distance between the transmitting node and its cluster head and is bounded to avoid unrealistic loss values. The number of successfully received packets used in Eq. (7) is obtained by aggregating these probabilistic transmission outcomes over all nodes and rounds.
A high PDR ensures reliable communication and better service, whereas a low PDR causes data loss, which is critical for sensitive applications that need precise and fast data transmission.
Multiple performance measures, including energy consumption, latency, load balance, and average distance, are aggregated into a single score using a weighted sum technique, where a lower score denotes improved performance by means of cost reduction across several dimensions.
We use equal weights that are standardized in this work:
this ensures that no single criterion takes priority over optimization. This choice was made to maintain a neutral and fair compromise between the performance measures considered and to facilitate consistent comparison with other LEACH-based approaches. Preliminary observations with small variations in weightings showed no significant impact on the relative performance ranking of the evaluated protocols, indicating that the proposed optimization is not overly sensitive to moderate change in weighting.
4 Dataset Structure for Simulations
Metaheuristic algorithms like ACO, GA, and Hybrid LEACH-ACO-GA in WSNs require a well-defined dataset configuration. The following Table 3 organizes simulation parameters for network topology, energy models, communication settings, and optimization. These settings accurately assess clustering efficiency, energy use, and network performance.

The number of clusters was fixed to k = 5 for all protocols to ensure a fair and consistent comparison under identical simulation conditions. This setting follows common practice in LEACH-based studies, and the investigation of adaptive cluster count selection is left for future work.
The Anaconda environment was employed to conduct all simulations in Python 3.11 using Jupyter Notebook. The experiments were conducted on a computer that was equiped with a Windows 10 (64 bit) operating system, 16 GB of RAM, and an Intel Core i7-8665U (1.9 GHz) CPU. Three GA configurations (population = 30–70, generations = 50, mutation = 0.1) were tested, and each protocol was evaluated for 50 to 200 cycles. In order to attain convergence stability, the ACO parameters (
5 Implementation of Algorithms
5.1 Algorithm 1: Cluster Head Selection Using Ant Colony Optimization (ACO)
In Algorithm 1,

This method (Algorithm 1) improves LEACH by using the Ant Colony Optimization (ACO) algorithm to choose Cluster Heads (CHs) and optimize routing operations in wireless sensor networks. Optimizing cluster head selection and data routing enhances energy efficiency and extends network lifetime. Wireless sensor networks increase energy efficiency and extend network lifespan. The procedure begins with sensor initialization and the configuration of ACO parameters, including pheromones, evaporation rate, and influencing factors. In each cycle, ACO assigns CHs based on numerous criteria. Selection is probabilistic based on pheromone concentration and residual energy. After clustering, sensors send data to their Cluster Head (CH), which forwards the aggregated data to the Base Station (BS) directly or via ACO-optimized multi-hop routing. After each transmission, the pheromones disperse to avoid biased learning and enhance the most efficient pathways based on energy consumption, latency, load balance, and the average distance between sensors and the cluster head. The technique continues until insufficient remaining energy or the maximum number of rounds is reached.
It is important to note that pheromone updates are applied exclusively during the cluster head selection phase within each region. Routing decisions between cluster heads and the base station are optimized independently by the genetic algorithm and are not influenced by ACO pheromone information.
5.2 Algorithm 2: Cluster Head Selection Using Genetic Algorithm (GA)
The evolutionary Algorithm 2 enhances the selection of Cluster Heads (CHs) to augment energy efficiency and communication inside a wireless sensor network. Following startup, during which sensors are randomly distributed and settings established, an initial population of solutions is created. Then, each solution is evaluated based on a bunch of criteria: distance between CH and BS, delay, load balancing, energy consumption, and average distance between the sensor and CH, which makes it easier to give a weighted score. The progression of the genetic algorithm happens through selection, crossover, and mutation, improving the solutions over several generations. then, each sensor connects to its nearest Cluster Head (CH), facilitating data transfer from the sensor to the CHs, and then to the base station, accompanied by an update on the energy expended. The method terminates when energy is inadequate or after reaching a predetermined maximum number of generations, and the optimal solution identified is returned for clustering purposes.

5.3 Algorithm 3: Cluster Head Selection Using Hybrid Algorithm (LEACH+ACO+GA)
The approach (Algorithm 3) enhances sensor clustering and routing in a wireless sensor network by employing Ant Colony Optimization (ACO) for Cluster Head (CH) selection and a Genetic approach (GA) for route optimization. The process starts with initialization, the specification of network settings, the random deployment of sensors, and the placement of the base station (BS). The network is later divided into regions, with each sensor assigned to a certain region. Multiple constraints are imposed, including a minimum energy threshold, a maximum permissible distance to the base station, and the requirement of at least one cluster head per region.

ACO algorithm identifies cluster heads by systematically assessing energy levels and distance to the base station, while updating pheromones to strengthen optimal selections. If no genuine CH is identified, the sensor with the greatest energy is selected. The genetic algorithm subsequently enhances routing by developing a population of potential CH to BS pathways throughout several generations, assessing solutions based on distance, and employing crossover and mutation to improve the optimal routes. The method finishes by providing the ideal Cluster Head selection and the most effective routing strategy to reduce energy consumption and improve network performance. Fig. 2 shows the general procedure of the suggested approach.

Figure 2: Flowchart of the proposed methodology.
In order to evaluate the effectiveness of the proposed clustering and routing methods, comprehensive simulations were performed to assess the influence of various LEACH-based protocols, including LEACH Classic, LEACH-GA, LEACH-ACO, and the hybrid LEACH-ACO-GA approach, on critical network performance indicators such as energy consumption, packet delivery rate (PDR), latency, and network longevity. The simulations were designed to accurately represent real wireless sensor networks, in which sensor nodes operate with limited energy resources and fluctuating communication constraints.
The performance analysis across various network sizes seeks to illustrate the advantages of hybrid methodologies in prolonging network longevity and enhancing overall efficiency. This section delineates the simulation structure, assessment measures, and outcomes analysis. All simulations were conducted under a static wireless sensor network assumption, which is consistent with the original LEACH design. This setting enables a controlled evaluation of the proposed clustering and routing strategies. Extending the proposed approach to dynamic scenarios involving node mobility or unexpected node failures is considered an important direction for future work.
A. Convergence of the Classic LEACH Algorithm
The development of a Low-Energy Adaptive Clustering Hierarchy (LEACH) score is shown in Fig. 3. The score represents how energy consumption and network delay are balanced. A gradual decrease is observed over iterations, indicating ideal cluster head selection and better load balancing to reduce energy consumption while maintaining effective communication. The generally consistent convergence of the protocol demonstrates its effectiveness in the network structure; however, some variations reflect the influence of random variables such as node energy distribution and communication distance. The method operates in cycles of cluster selection and leader node rotation, therefore equilibrating energy consumption across sensors. This figure highlights LEACH’s effectiveness in extending network lifetime while suggesting possible improvements. Optimal cluster selection or integration with other enhancement methodologies, as illustrated in the following figures, can achieve these improvements.

Figure 3: Convergence of the classic LEACH.
B. Convergence of the Genetic Algorithm
The evolution of the genetic algorithm (GA) through generations for three different configurations is depicted in Fig. 4. Each curve illustrates the progression of the optimal score achieved over the iterations, with a lower score indicating a more effective solution in terms of optimization.

Figure 4: Convergence of genetic algorithm.
In all configurations, there is a consistent downward trend in scores, which means that the algorithm consistently identifies the best-performing options. The variations between the curves illustrate the influence of crossover (cx_prob) and mutation (mut_prob) factors on the velocity and stability of convergence. An increased crossover rate promotes rapid convergence toward an optimal solution, while a reduced mutation probability decreases genetic diversity and can lead to trapping in local optima. A greater mutation probability promotes the discovery of novel solutions, however may impede convergence to a stable solution.
This research underscores the significance of parameter selection in reconciling the utilization of known solutions with the investigation of novel alternatives to prevent local optima.
C. Convergence of the Ant Colony Optimisation (ACO) Algorithm
Figs. 5 and 6 illustrate the convergence behavior of the ACO algorithm under different configurations. Fig. 5 shows the evolution of the optimal score over iterations, while Fig. 6 presents the average convergence performance across configurations. This algorithm employs pheromones to explore the solution space and choose the optimal alternatives, inspired by ants. The algorithm’s capacity to adapt to pheromones is shown by the curves’ score increases.

Figure 5: ACO algorithm convergence.

Figure 6: Average convergence of ACO algorithm.
The influence of parameters is very noticeable. Exploration-exploitation balance depends on pheromone evaporation rate (rho). A quick evaporation rate reduces pheromone concentration on a single solution, promoting exploration, whereas a lesser rate encourages exploitation of recognized solutions. Number of ants (num_ants) affects exploration quality, with more ants allowing more solutions to be investigated in parallel and boosting search resilience. Certain configurations converge quicker, emphasizing the significance of parameter selection in algorithm optimization. This graphic shows how pheromones affect collective learning and how exploration and exploitation lead to an ideal solution.
D. Convergence of the Hybrid Approach (ACO-GA)
Fig. 7 shows how population size (pop_size), crossover rate (cx_prob), mutation rate (mut_prob), and ACO algorithm parameters (alpha, beta, rho, num_ants) affect optimization and the hybrid ACO-GA approach’s convergence for different genetic algorithm configurations. All configurations improve in score, proving that ACO for cluster-head selection and GA for global optimization refine solutions. A bigger population (pop_size = 50) and high crossover rate (cx_prob = 0.9) accelerate convergence to an optimal solution, while a lower mutation (mut_prob = 0.1) reduces variability and stabilizes the solution rapidly. ACO works best with a balanced pheromone intensity (alpha = 1.0), a moderate distance impact (beta = 1.0), an optimal evaporation rate (rho = 0.3) in order to prevent losing accumulated information too quickly, and enough ants (num_ants = 30) to efficiently explore the solution space. Pop_size = 50, cx_prob = 0.9, mut_prob = 0.1, alpha = 1.0, beta =1.0, rho = 0.3, and num_ants = 30 appear to be the optimal combination for speedy and efficient convergence to an optimized solution.

Figure 7: Convergence of the hybrid approach.
In this work, network lifetime is evaluated based on the evolution of the number of alive nodes over simulation rounds. In particular, the first node death (FND) is used as a primary reference point for lifetime comparison, and all protocols are assessed using the same criterion for consistency.
6.1 Simulation Results for 50 Nodes
The results of Figs. 8–14 confirm that, for a 50-node network, LEACH Hybrid (GA + ACO) consistently outperforms the other variants. It achieves the lowest energy consumption and preserves a higher number of active nodes over time, reflecting superior energy management. Classical LEACH exhibits the fastest degradation, whereas LEACH+GA and LEACH+ACO partially mitigate early node depletion. Latency remains more stable for GA- and ACO-based methods, with the hybrid protocol achieving the lowest and least fluctuating delay. At first, all protocols keep a high PDR, but LEACH drops it earlier as nodes go down. In contrast, the hybrid method sustains a stable delivery rate throughout the simulation. Overall, with 50 nodes, LEACH Hybrid proves to be the most resilient and efficient solution across energy, latency, and reliability metrics. All results are averaged over 30 independent simulation runs, and the error bars shown in the figures represent the standard deviation. Since the evaluated performance metrics evolve over simulation rounds and exhibit consistent trends across all independent runs, standard deviation was considered sufficient to assess result variability, and formal hypothesis testing was not applied, as the analysis focuses on long-term protocol behavior rather than point-wise statistical significance.

Figure 8: Comparison of energy consumption (50 nodes).

Figure 9: Average energy consumption over all rounds (50 nodes); error bars indicate standard deviation over 30 runs.

Figure 10: Comparison of latency (50 nodes).

Figure 11: Average latency over all rounds (50 nodes), error bars indicate standard deviation over 30 runs.

Figure 12: Comparison of packet delivery ratio (PDR) for 50 nodes.

Figure 13: Average PDR over all rounds for 50 nodes; error bars indicate standard deviation over 30 runs.

Figure 14: Comparison of lifetime of 50 nodes.
6.2 Simulation Results for 200 Nodes
Figs. 15–21 present the comparative performance results for the 200-node network in terms of energy consumption, latency, packet delivery ratio (PDR), and network lifetime.

Figure 15: Comparison of energy consumption for 200 nodes.

Figure 16: Average energy consumption over all rounds for 200 nodes; error bars indicate standard deviation over 30 runs.

Figure 17: Comparison of latency for 200 nodes.

Figure 18: Average latency over all rounds for 200 nodes; error bars indicate standard deviation over 30 runs.

Figure 19: Packet delivery ratio (PDR) for 200 nodes.

Figure 20: Average PDR over all rounds for 200 nodes; error bars indicate standard deviation over 30 runs.

Figure 21: Comparison of lifetime of 200 nodes.
In a 200-node network evaluated over 70 rounds, LEACH Hybrid provides the best overall performance across energy consumption, latency, and packet delivery ratio. LEACH Classic uses the most energy and depletes nodes first, while GA and ACO improve moderately. Efficiency in cluster head selection and improved routing give the hybrid system the lowest energy consumption and longest network lifetime. In contrast to LEACH, GA, and ACO, the Hybrid approach consistently achieves lower and more stable latency. All protocols maintain a high PDR (0.97), but LEACH Classic shows larger fluctuations as nodes begin to fail. Increasing the network size from 50 to 200 nodes improves overall stability and prolongs network longevity, with LEACH Hybrid remaining the most robust and efficient configuration. Table 4 summarizes the comparative performance, highlighting the clear advantages of GA-based, ACO-based, and especially hybrid optimization over classical LEACH.

These results represent the average of 30 independent simulation runs, with standard deviation bars used to illustrate performance variability across rounds
Although the simulation environment does not explicitly model low-level MAC collisions or interference patterns, packet loss is implicitly considered through a probabilistic delivery model dependent on the communication distance. This abstraction ensures a fair comparison of routing and clustering strategies while keeping the simulation scalable.
6.3 Computational Time Comparison
To assess execution time, each algorithm was executed five times under identical conditions, and the average execution time was recorded for networks with 50 and 200 nodes. Table 5 provides a summary of the findings.

The dominant operations of the proposed methods primarily drive their computational complexity. LEACH has a linear complexity that depends on the number of nodes. On the other hand, LEACH-ACO has extra costs that depend on the number of ants and iterations. The hybrid LEACH-ACO-GA further increases complexity due to population-based GA operations such as fitness evaluation, crossover, and mutation. Although computationally more demanding, these operations are executed at the base station and justify themselves with substantial improvements in energy efficiency, latency, and network lifetime. This behavior can also be explained from a theoretical complexity perspective.
As anticipated, the time required for the computation increases with the size of the network and the complexity of the algorithm. The classic LEACH protocol is the fastest due to its simple cluster leader selection procedure. The LEACH + GA and LEACH + ACO methodologies incorporate supplementary optimization procedures that prolong the execution time. The LEACH-ACO-GA hybrid model that has been proposed necessitates the most computation time due to its implementation of two-level optimization, which is performed both locally (ACO) and globally (GA). However, the significant improvements in energy efficiency, latency, and network lifetime shown in the previous sections make this processing burden acceptable.
Although the hybrid LEACH-ACO-GA approach incurs a higher computational cost, this overhead is handled at the base station rather than at the sensor nodes. As a result, the energy-constrained sensors are not burdened by the optimization process, making the performance gains in network lifetime and energy efficiency acceptable for dense and long-term WSN deployments.
Note that the reported execution times correspond to centralization optimization performed at the base station and are not intended for real-time execution. In practical deployments, the proposed ACO- and GA-based optimizations are assumed to operate in an offline or semi-offline manner, where clustering and routing decisions are updated periodically rather than continuously. This assumption makes the proposed framework suitable for long-term and energy-constrained WSN applications while avoiding real-time computational requirements at sensor nodes.
From a theoretical perspective, the computational complexity of the evaluated protocols can be approximated as follows. Classical LEACH exhibits a per-round complexity
The simulations evaluated the efficacy of several variations of the LEACH protocol (LEACH Classic, LEACH-GA, LEACH-ACO and hybrid LEACH-ACO-GA) in terms of energy consumption, packet delivery rate (PDR), latency, and network stability. The comparison of LEACH Classic, LEACH-GA, LEACH-ACO and hybrid LEACH-ACO-GA underscores the benefits of metaheuristic optimization in enhancing network performance and scalability.
The hybrid approach achieves the lowest and most stable energy consumption across all rounds and network sizes. Compared to LEACH, LEACH-ACO, and LEACH-GA, the two stage optimization reduces variance by producing balanced clusters and effective routing. These results confirm the robustness of the hybrid approach, especially when scaling from 50 to 200 nodes.
7.2 Packet Delivery Ratio (PDR)
The LEACH-ACO-GA hybrid protocol has the highest and most stable PDR on both network scales (50 and 200 nodes). LEACH Classic shows a lot of variation and sometimes gets worse over cycles, while LEACH-GA and LEACH-ACO improve things a bit. The hybrid technique always maintains the PDR above 0.97 with less variation, demonstrating that it is more reliable and performs better for sending data.
The LEACH-ACO-GA hybrid protocol consistently exhibits the lowest latency on both network sizes (50 and 200 nodes), setting it apart from other methods. LEACH, LEACH-GA, and LEACH-ACO are always grouped together with higher latency values, but the hybrid approach benefits from the best of both worlds: efficient cluster head selection and improved inter-cluster routing. Two-level optimization reduces routing overhead and pheromone convergence delays, making end-to-end transmission faster and more stable. The advantage becomes much more noticeable as the network grows larger.
7.4 Overall Comparison and Performance Evaluation
The overall performance stabilizes when the network size is increased from 50 to 200 nodes, especially for the hybrid LEACH-ACO-GA protocol. In the 200-node network, the hybrid method maintains lower energy consumption, reduced latency, and a longer operational lifetime across all simulation rounds. Combining ACO to improve cluster heads and GA to manage traffic between clusters makes sure that energy use is balanced and that nodes don’t lose power too fast. These findings confirm that the proposed hybrid metaheuristic is scalable and well-suited for dense IoT deployments. Across both network sizes, LEACH-ACO-GA consistently outperforms LEACH, LEACH-GA, and LEACH-ACO. Dual-level optimization improves cluster formation and routing stability, improving energy management and network durability.
7.5 Ablation Analysis of Components
An ablation study was performed to evaluate LEACH, LEACH-GA, and LEACH-ACO-GA, aiming to quantify the contribution of each optimization component. The average results of 70 rounds for 200 nodes are displayed in Table 6.

All ablation study results are averaged over 30 independent simulation runs, and the corresponding standard deviations are computed to assess the robustness of each component across stochastic executions.
The little improvements confirm that ACO makes local CH selection more efficient, GA makes global routing more efficient, and their combination yields the best possible overall trade-off between latency and energy.
Limitation Note: It is important to note that all simulations in this work are conducted under a static WSN assumption, where sensor nodes remain fixed after deployment. As a result, random node failures independent of energy depletion and highly dynamic mobility conditions are not explicitly modeled. In such scenarios, the additional optimization overhead of the hybrid LEACH-ACO-GA framework may outweigh its performance gains, particularly in very small or highly dynamic networks. Extending the proposed approach to handle dynamic node behavior and failure scenarios constitutes a potential direction for future work.
It should be noted that the scalability analysis in this study is limited to networks of up to 200 sensor nodes. While this scale is representative of many practical WSN and IoT scenarios, the computational overhead of the proposed LEACH-ACO-GA framework may increase significantly in very dense deployments. Consequently, the proposed approach is best suited for moderate-scale networks, and its extension to larger-scale scenarios is left for future work.
This study presents a hybrid clustering and routing approach for WSNs, integrating Ant Colony Optimization and Genetic Algorithms with the LEACH protocol. The proposed hybrid LEACH-ACO-GA method improves packet delivery ratio (PDR), latency, energy efficiency, and network durability compared to classic LEACH and its independent metaheuristic upgrades (LEACH-GA and LEACH-ACO).
The results corroborate that the proposed regional hybrid LEACH-ACO-GA scheme significantly improves energy utilization, minimizes latency, and extends network lifetime in comparison to current LEACH-based protocols.
The novelty is in the integration of region-based ACO-driven cluster-head selection with GA-based inter-cluster routing within a unified multi-objective formulation. This dual-level optimization framework is well-suited for dense and large-scale IoT WSN deployments, as it guarantees both global stability and local adaptability.
In order to enhance the scalability and robustness of heterogeneous IoT environments, future research will investigate the use of real time reinforcement-learning-based control and dynamic weight adaptation in the objective function. Although the simulations were conducted in a static WSN environment, which aligns with traditional LEACH-based deployments, real networks may experience mobility and intermittent link failures. Extending the hybrid protocol to incorporate mobility-aware clustering and fault-tolerant mechanisms represents a promising direction for future work.
Acknowledgement: The authors express their gratitude to the LIMATI Laboratory, Polydisciplinary Faculty of Beni Mellal, for their computational assistance.
Funding Statement: No particular grant from a public, private, or nonprofit funding organization was received for this study.
Author Contributions: The methodology and manuscript were developed by Maryem Lachgar and Mansour Lmkaiti, while the simulations were executed by Ibtissam Larhlimi and Hicham Ouchitachen. The final version was reviewed and validated by Imad Aattouri and Hicham Mouncif. All authors reviewed and approved the final version of the manuscript.
Availability of Data and Materials: The corresponding author is able to provide simulation data and codes upon a reasonable request.
Ethics Approval: Not applicable.
Conflicts of Interest: The authors declare no conflict of interest.
References
1. Zanella A, Bui N, Castellani A, Vangelista L, Zorzi M. Internet of Things for smart cities. IEEE Internet Things J. 2014;1(1):22–32. doi:10.1109/jiot.2014.2306328. [Google Scholar] [CrossRef]
2. Atzori L, Iera A, Morabito G. The Internet of Things: a survey. Comput Netw. 2010;54(15):2787–805. doi:10.1016/j.comnet.2010.05.010. [Google Scholar] [CrossRef]
3. Larhlimi I, Lachgar M, Ouchitachen H, Darif A, Mouncif H. Maximization of lifetime in wireless sensor networks using pattern search algorithm. In: Artificial Intelligence and Green Computing (ICAIGC 2023). Cham, Switzerland: Springer; 2023. p. 138–48. [Google Scholar]
4. Akyildiz IF, Su W, Sankarasubramaniam Y, Cayirci E. A survey on sensor networks. IEEE Commun Mag. 2002;40(8):102–14. doi:10.1109/mcom.2002.1024422. [Google Scholar] [CrossRef]
5. Sharma A, Babba H, Rani S, Sah DK, Sehar S, Gianini G. MHSEER: a meta-heuristic secure and energy-efficient routing protocol for wireless sensor network-based industrial IoT. Energies. 2023;16(10):4198. [Google Scholar]
6. Jaleel KA, Al-Raweshidy HS, Sabir AK. An energy-efficient hybrid LEACH protocol that enhances the lifetime of wireless sensor networks. Eng Technol Appl Sci Res. 2025;15(1):19364–9. doi:10.48084/etasr.8458. [Google Scholar] [CrossRef]
7. Sakib N, Kim J. Genetic algorithm-based energy-efficient clustering and routing scheme for wireless sensor networks. Sensors. 2019;19(10):2343. doi:10.3390/s19102343. [Google Scholar] [CrossRef]
8. Singh D, Lobiyal DK. A novel energy-aware cluster head selection based on particle swarm optimization for wireless sensor networks. Hum Centric Comput Inf Sci. 2012;2(1):13. doi:10.1186/2192-1962-2-13. [Google Scholar] [CrossRef]
9. Garg S, Verma OP, Shukla KK. Hybrid GA-ACO based energy efficient clustering and routing in wireless sensor networks. J King Saud Univ Comput Inf Sci. 2022;34(8):5677–88. doi:10.1016/j.jksuci.2020.04.010. [Google Scholar] [CrossRef]
10. Yick J, Mukherjee B, Ghosal D. Wireless sensor network survey. Comput Netw. 2008;52(12):2292–330. doi:10.1016/j.comnet.2008.04.002. [Google Scholar] [CrossRef]
11. Heinzelman WB, Chandrakasan AP, Balakrishnan H. Energy-efficient communication protocol for wireless microsensor networks. In: Proceedings of the 33rd Annual Hawaii International Conference on System Sciences (HICSS); 2000 Jan 4–7; Maui, HI, USA. p. 1–10. doi:10.1109/HICSS.2000.926982. [Google Scholar] [CrossRef]
12. Larhlimi I, Lachgar M, Ouchitachen H, Darif A, Mouncif H. A genetic algorithm approach applied to the cover set scheduling problem for maximizing wireless sensor networks lifetime. In: The 3rd International Conference on Artificial Intelligence and Computer Vision (AICV 2023). Cham, Switzerland: Springer; 2023. p. 129–37. [Google Scholar]
13. Khan MA, Rehmani MH. Metaheuristic algorithms and their applications in wireless sensor networks: a comprehensive survey. Cluster Comput. 2024;27(10):13643–73. doi:10.1007/s10586-024-04619-9. [Google Scholar] [CrossRef]
14. Lakshmanna K, Subramani N, Alotaibi Y, Alghamdi S, Khalaf OI, Nanda AK. Improved metaheuristic-driven energy-aware cluster-based routing scheme for IoT-assisted wireless sensor networks. Sustainability. 2022;14(13):7712. doi:10.3390/su14137712. [Google Scholar] [CrossRef]
15. Hussain MHA, Mokhtar B, Rizk MRM. A comparative survey on LEACH successors clustering algorithms for energy-efficient longevity WSNs. Egypt Inform J. 2024;26(8):100477. doi:10.1016/j.eij.2024.100477. [Google Scholar] [CrossRef]
16. Kalra M, Vohra A, Marriwala N. LEACH-based hybrid energy-efficient routing algorithm for dynamic cognitive radio networks. Meas Sens. 2022;24(2):100419. doi:10.1016/j.measen.2022.100419. [Google Scholar] [CrossRef]
17. Kumar N, Singh K, Lloret J. WAOA: a hybrid whale-ant optimization algorithm for energy-efficient routing in wireless sensor networks. Comput Netw. 2024;254:110845. [Google Scholar]
18. Abose TA, Tekulapally V, Megersa KT, Kejela DC, Daka ST, Jember KA. Improving wireless sensor network lifespan with optimized clustering probabilities, improved residual energy LEACH and energy efficient LEACH for corner-positioned base stations. Heliyon. 2024;10(14):e34382. doi:10.1016/j.heliyon.2024.e34382. [Google Scholar] [PubMed] [CrossRef]
19. Murugesan M, Kanimozhi R, Dharani KG, Devi D. Enhancing network lifetime of WSNs through the implementation of a modified ant colony optimization algorithm. Procedia Comput Sci. 2023;230(6):368–76. doi:10.1016/j.procs.2023.12.092. [Google Scholar] [CrossRef]
20. Wang L, Luo Y, Yan H. Optimization analysis of node energy consumption in wireless sensor networks based on improved ant colony algorithm. Sustain Energy Technol Assess. 2024;64(1):103680. doi:10.1016/j.seta.2024.103680. [Google Scholar] [CrossRef]
21. Khediri SEl, Selmi A, Khan RU, Moulahi T, Lorenz P. Energy efficient cluster routing protocol for wireless sensor networks using hybrid metaheuristic approaches. Ad Hoc Netw. 2024;158(8):103473. doi:10.1016/j.adhoc.2024.103473. [Google Scholar] [CrossRef]
22. Badole MH, Thakare AD. Cluster-based multicast optimized routing in VANETs using elite knowledge-based genetic algorithm. Knowl Based Syst. 2024;294(2):111773. doi:10.1016/j.knosys.2024.111773. [Google Scholar] [CrossRef]
23. Suresh B, Prasad GSC. An energy efficient secure routing scheme using LEACH protocol in WSN for IoT networks. Meas Sens. 2023;30:100883. [Google Scholar]
24. Qamar M, Munir M. A hybrid framework integrating deterministic clustering, neural networks, and energy-aware routing for enhanced efficiency and longevity in wireless sensor network. Comput Mater Contin. 2025;84(3):5463–85. doi:10.32604/cmc.2025.064442. [Google Scholar] [CrossRef]
25. Qamar M, Haq I, Munir M, Roslee MB, Awan AA, Waseem A. Enhancing energy efficiency in WSNs with hybrid LEACH-D and ANN. In: 2024 Multimedia University Engineering Conference (MECON); 2024 Jul 23–25; Cyberjaya, Malaysia. p. 1–6. doi:10.1109/MECON62796.2024.10776481. [Google Scholar] [CrossRef]
26. Lmkaiti M, Mouncif H. Comparative analysis of physical layer network coding-based random access techniques in WSN communications. In: Proceedings of the 14th International Conference on Intelligent Systems: Theories and Applications (SITA); 2023 Nov 22–23; Casablanca, Morocco. p. 1–6. doi:10.1109/SITA60746.2023.10373740. [Google Scholar] [CrossRef]
27. Lmkaiti M, Larhlimi I, Lachgar M, Moudni H, Mouncif H. Advanced optimization of RPL-IoT protocol using ML algorithms. Int J Adv Comput Sci Appl. 2025;16(2):1372–81. doi:10.14569/ijacsa.2025.01602135. [Google Scholar] [CrossRef]
28. Chen A, Tan H, Zhu Y. Ant colony optimization algorithm and its application. In: 2nd International Conference on Applied Mathematics, Modelling, and Intelligent Computing (CAMMIC 2022); 2022 Mar 25–27; Kunming, China. [Google Scholar]
29. Adubi SA, Misra S. A comparative study on the ant colony optimization algorithms. In: Proceedings of the 11th International Conference on Electronics, Computer and Computation, ICECCO 2014; 2014 Sep 29–Oct 1; Abuja, Nigeria. p. 1–4. [Google Scholar]
30. Larhlimi I, Lmkaiti M, Lachgar M, Ouchitachen H, Darif A, Mouncif H. Genetic algorithm-driven cover set scheduling for longevity in wireless sensor networks. Int J Adv Comput Sci Appl. 2025;16(3):1104–12. doi:10.14569/IJACSA.2025.01603106. [Google Scholar] [CrossRef]
31. Larhlimi I, Lachgar M, Ouchitachen H, Darif A, Mouncif H. Contribution to solving the cover set scheduling problem and maximizing wireless sensor networks lifetime using an adapted genetic algorithm. In: Artificial intelligence and industrial applications. Vol. 772. Cham, Switzerland: Springer; 2023. p. 123–33. [Google Scholar]
32. Raj A, Kumar A, Sharma V, Singh T. Applications of genetic algorithm with integrated machine learning. In: Proceedings of 2023 3rd International Conference on Innovative Practices in Technology and Management, ICIPTM 2023; 2023 Feb 22–24; Uttar Pradesh, India. p. 1–6. [Google Scholar]
Cite This Article
Copyright © 2026 The Author(s). Published by Tech Science Press.This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.


Submit a Paper
Propose a Special lssue
View Full Text
Download PDF
Downloads
Citation Tools