Abstract
Wireless sensor network (WSN) nodes are devices with limited power, and rational utilization of node energy and prolonging the network lifetime are the main objectives of the WSN’s routing protocol. However, irrational considerations of heterogeneity of node energy will lead to an energy imbalance between nodes in heterogeneous WSNs (HWSNs). Therefore, in this paper, a routing protocol for HWSNs based on the modified grey wolf optimizer (HMGWO) is proposed. First, the protocol selects the appropriate initial clusters by defining different fitness functions for heterogeneous energy nodes; the nodes’ fitness values are then calculated and treated as initial weights in the GWO. At the same time, the weights are dynamically updated according to the distance between the wolves and their prey and coefficient vectors to improve the GWO’s optimization ability and ensure the selection of the optimal cluster heads (CHs). The experimental results indicate that the network lifecycle of the HMGWO protocol improves by 55.7%, 31.9%, 46.3%, and 27.0%, respectively, compared with the stable election protocol (SEP), distributed energy-efficient clustering algorithm (DEEC), modified SEP (M-SEP), and fitness-value-based improved GWO (FIGWO) protocols. In terms of the power consumption and network throughput, the HMGWO is also superior to other protocols.
Keywords: heterogeneous wireless sensor networks, grey wolf optimizer, network lifecycle, energy consumption
1. Introduction
In recent years, with the development of low-power digital circuits and wireless communication technology, wireless sensor networks (WSNs) have been widely used in many fields, such as military reconnaissance, medical aid, urban management, smart home and target tracking [1,2,3,4,5]. WSNs are mainly composed of a base station (BS) and a large number of randomly distributed sensor nodes. The energy of the sensor node is mainly powered by the battery. However, the battery power is very limited, and when the sensor nodes are placed in a complex or harsh environment, it is very difficult to charge or replace the battery [6,7]. Therefore, energy efficiency is the most important and critical task to lengthen the network lifetime in the design of WSN routing protocols [8,9,10,11].
In the routing protocol of WSNs, the most effective way to save the energy of the sensor nodes and lengthen the network life cycle is to design a routing protocol based on clustering [12,13]. The idea of a clustering algorithm is to divide sensor nodes into multiple regions; a region is also called a cluster. A sensor node is selected as a leader in each cluster, which is also known as the cluster head (CH), and the remaining sensor nodes are selected as members of the cluster to send their perceived data information to the nearest CH, which will conduct data information fusion and send data to the BS. The CH will transmit data packets to the BS according to single-hop and multi-hop modes, and the transmission mode is mainly determined by the distance from the CH to the BS.
Many routing protocols based on clustering have been proposed to extend the network life cycle, such as Low-Energy Adaptive Clustering Hierarchy (LEACH) [14], Threshold Sensitive Energy Efficient Sensor Network Protocol (TEEN) [15], Hybrid Energy-Efficient Distributed Clustering (HEED) [16], LEACH-centralized (LEACH-C) [17], a novel Battery-Level Aware Clustering family of schemes (BLAC) [18], etc. However, most clustering routing protocols of WSNs have been mostly based on homogeneous networks [19,20]. Owing to the changes in node resources and network topology, heterogeneous wireless sensor networks (HWSNs) are now more widely used in practice. The HWSNs mainly consider the heterogeneity of energy. The HWSNs routing protocols with heterogeneity of nodes energy such as Stable Election Protocol (SEP) [21], Modified SEP (M-SEP) [22], Prolong-SEP (P-SEP) [23], an Improved version of the Energy Aware Distributed Unequal Clustering Protocol (improved-EADUC) [24], and Distributed Energy-Efficient Clustering Algorithm (DEEC) [25] have been proposed. However, how to more properly utilize the heterogeneity of nodes’ energy to lengthen the network life cycle and increase the network throughput is one of the main problems of the HWSN routing protocol [26,27].
In this paper, we propose a routing protocol for HWSN based on a modified grey wolf optimizer (HMGWO) that further extends the life cycle and balances the energy consumption of the network. Several techniques are used in HMGWO for the selection of CHs as follows. (1) HMGWO defines fitness functions with different weights to select initial clusters according to the heterogeneity of sensor nodes in HWSN. (2) In each initial cluster, HMGWO considers the fitness value of the sensor node as the initial weight in the GWO and dynamically updates the GWO’s weight according to the distance between the wolves and the prey and the coefficient vector so that the selection of CHs is more reasonable. (3) Compared with previously proposed algorithms, the Euclidean distance is used to select the final CHs. HMGWO considers the distance and residual energy in the selection of the final CHs. (4) HMGWO tries to receive the bad cluster set with a certain probability as the initial cluster set in the next iteration; thus, the final selected cluster set is globally optimal in the whole network. As a result, the network lifespan is improved, and the network energy consumption is balanced through the above methods.
The rest of this paper is organized as follows. We describe the related work in Section 2. The GWO is introduced in Section 3. Section 4 gives the details of the proposed algorithm. Section 5 presents the simulation results of the proposed algorithm compared with other algorithms. The results of Section 5 are discussed and analyzed in Section 6. We conclude the paper in Section 7. In addition, the abbreviations used in this paper are listed in Table 1.
Table 1.
Abbreviations | Explanation |
---|---|
WSN | Wireless Sensor Network |
HWSN | Heterogeneous Wireless Sensor Network |
CH | Cluster Head |
BS | Base Station |
GWO | Grey Wolf Optimizer |
MGWO | Modified Grey Wolf Optimizer |
LEACH | Low Energy Adaptive Clustering Hierarchy Protocol |
SEP | Stable Election Protocol |
DEEC | Distributed Energy-Efficient Clustering Algorithm |
M-SEP | Modified Stable Election Protocol |
FIGWO | Fitness-Value-Based Improved Grey Wolf Optimizer |
HMGWO | A Routing Protocol for Heterogeneous Wireless Sensor Network Based on the Modified Grey Wolf Optimizer |
2. Related Work
With the rapid evolution and development of sensor networks, the routing protocols of WSNs have attracted the attention of many scholars. However, the clustering routing protocol is a more efficient way to reduce the energy consumption of sensor nodes and lengthen the life cycle of networks relative to other typical routing protocols [28,29]. The most famous clustering routing protocol among homogeneous WSNs is the LEACH protocol [14]. In LEACH, the CHs are randomly selected, and the sensor nodes are periodically rotated into CHs. The network energy consumption is evenly allocated to each sensor node to lengthen the network life cycle and enhance the network throughput. However, many improved protocols based on LEACH have been proposed, such as LEACH-B [30], LEACH-C [17], CL-LEACH [31], H-LEACH [32], O-LEACH [33], etc. Vice-CH-enabled centralized cluster-based routing protocol (VCH-ECCR) [19] is a routing algorithm. The VCH-ECCR reduces the clustering frequency by selecting two-stage vice CHs, thereby reducing the overhead caused by clustering. The number of CHs is updated according to the number of surviving nodes in each round in the network. The experimental results illustrate that the protocol is better than that of traditional routing protocols. A fuzzy logic-based energy-efficient clustering for WSNs based on minimum separation distance enforcement between CHs (FL-EEC/D) [20] was proposed. In FL-EEC/D, a fuzzy logic model is proposed for the selection of CHs. When using this model for CH selection, the residual energy, compaction, density, position suitability, and distance from the BS are used as the main parameters to select a better node as the CH. The life cycle of the FL-EEC/D is raised relative to LEACH. The above protocol performs well in homogeneous WSN, but it performs poorly in HWSNs.
On the basis of the above routing protocols of homogeneous WSNs, many routing protocols of HWSNs have been proposed to further lengthen the life cycle of the network [34,35]. A SEP [21] for the HWSNs was proposed by Smaragdakis et al. The different initial energy levels of nodes indicate that this network is a multi-level HWSN. A two-level HWSN is defined by the SEP; namely, advanced nodes and normal nodes. The SEP protocol has different threshold formulas for advanced nodes and normal nodes. Compared with normal nodes, advanced nodes have a higher probability of becoming CHs, which reduces the remaining energy deviation between ordinary nodes and advanced nodes, thus better lengthening the life cycle of the network. An M-SEP [22] for HWSNs was proposed in 2015. The residual energy of the current node and the average energy of the network are considered in the M-SEP protocol, so that nodes with high residual energy have a higher probability of becoming the CH. The transmission rate of packets and the lifetime of the network are improved through this technique. A P-SEP [23] was proposed in 2017. In the selection of CHs of each round, the protocol controls the inherent randomness and deploys the threshold of heterogeneous energy to prevent low-energy nodes from becoming CHs in the next round. This approach results in improved performance in the network’s lifetime. Hosen et al. proposed an energy-centric cluster-based routing protocol (ECCR) [11]. In this protocol, a predefined static cluster is proposed, whose purpose is to reduce the control information overhead in the cluster formation problem. Next, a gatekeeper is introduced, which carries the rank information of nodes with local data. The future cluster director is transferred to the role of the former cluster director of the previous round. This reduces the cost of CH elections over the entire network life cycle, thus extending the network life cycle.
In [25], a DEEC for HWSNs was designed. This protocol is a multi-level heterogeneous network protocol. DEEC chooses the CHs by defining a threshold formula, which is influenced by the remaining energy of the node and the average remaining energy of the network. The period taken for the node to become CH varies according to the remaining energy, so the probability of a high-energy node becoming a CH is higher than that of a low-energy node, which lowers the energy consumption between nodes and lengthens the stable transmission period of the network. An energy efficient clustering protocol to enhance the performance of the HWSN, EECPEP-HWSN [36], was proposed. EECPEP-HWSN was designed as a three-level HWSN, namely including ordinary nodes, advanced nodes, and super nodes. In the process of CH selection, the initial energy of the sensor nodes, hops and residual energy of the sensor nodes during operation are considered. This protocol improves the energy efficiency and stability of HWSN.
In recent years, heuristic and metaheuristic algorithms have been applied to WSNs for theoretical research [37,38,39]. However, many of the above algorithms have also been applied to clustering routing protocols to optimize the selection process of cluster heads, thus improving the network’s life cycle [40,41,42,43,44,45]. Wang et al. proposed a special clustering method called energy centers searching using particle swarm optimization (EC-PSO) [46]. First, the protocol selects CHs by dividing node positions according to geometric methods. Then, the particle swarm optimization (PSO) algorithm is used to search the energy center of the network, and the nearest node to the energy center is selected as the CH. Finally, in order to avoid weak nodes becoming relay nodes, the algorithm proposes a protection mechanism with low energy consumption. By combining the above method, the protocol can effectively lengthen the network lifespan. A Genetic-Algorithm-Based Energy-Efficient Clustering (GAEEC) [47] was proposed. The genetic algorithm (GA) is used twice in the protocol. First, in order to evenly select the number of CHs, the protocol uses GA to divide the network into static clusters by distance. Second, the GA is used in the phase of CH selection. However, the selection of CHs is based on the remaining energy of the current node and the total transmission cost, so that nodes with a larger remaining energy have a higher probability of becoming the CH. Thus, the protocol effectively enhances the performance of the network lifespan. A multilayer hierarchical routing protocol (MLHP) [48] was presented. The algorithm divides the sensor nodes into three levels (normal nodes, advanced nodes, and super nodes). At the level of normal nodes, a centralized selection is proposed in which the BS plays an important role in CH selection. In the area of advanced nodes, a GWO route is presented for data transmission, and a distributed clustering algorithm based on cost function is presented for the level of super nodes. The above algorithm makes the MLHP have a longer network life cycle. In [49], an energy-efficient routing protocol for WSNs based on an improved grey wolf optimizer (FIGWO) was proposed. FIGWO improves the searching ability of the GWO optimal solution by considering the fitness value, and a better distribution and more balanced clustering structure of CHs are guaranteed. The transmission distance of the sensor node is recalculated according to the distance from CH and BS, thus reducing the network energy consumption and prolonging the network lifespan.
3. Grey Wolf Optimizer
The GWO algorithm is designed from the social hierarchy and hunting behavior of grey wolf groups [50]. Grey wolves are gregarious animals with an average population of five to 12. Wolves are classified into four categories: leader wolves (), the second-best wolves (), the third-best wolves (), and other wolves (), as shown in Figure 1. Among them, wolves make decisions about their daily activities, such as how to hunt, when to rest, when to wake up and how to distribute food. The main task of wolves are not only to assist wolves in making decisions on the daily behavior of the wolves, but also to report the performance of other wolves to wolves. wolves are the followers of and wolves, mainly following the orders of and wolves, but can command the lower wolves. wolves mainly obey the orders of the higher wolves.
During hunting, the location of the prey is assessed by , , and wolves, and the remaining wolves calculate the distance between themselves and the prey; then, the wolves encircle the prey. The following is the calculational formula of the wolf’s position
(1) |
(2) |
where is the wolf’s position in the iteration, and is the prey’s position at the iteration. is the convergence factor. linearly decreases from 2 to 0 over the course of iterations, and is a random vector in the range [0,1]. is the distance from the wolves to the prey, and is calculated as follows:
(3) |
(4) |
where and are, respectively, the prey’s position and the wolf’s position in the iteration, is the coefficient vectors calculated in (4), and is a random vector between 0 and 1.
In GWO, the , , and wolves are thought to be closest to the prey. They also have the most extensive hunting experience, and thus can determine where the prey is located. Therefore, the prey’s location can be calculated as follows
(5) |
where , , and are the positions of the wolves, the wolves and the wolves in the iteration, respectively. They are all calculated according to Equation (1). In addition, other wolves will update their positions around the prey, according to Formula (1). At the end of the iteration times, wolves have the highest fitness value. Therefore, wolves are considered as the optimal solution of the function. Algorithm 1 describes the GWO pseudo-code.
Algorithm 1 GWO pseudo-code |
1: Initialize the grey wolf population ; 2: Initialize , , and ; 3: Calculate the fitness value for each grey wolf; 4: the initial position of the leader wolf; 5: the initial position of the second-best wolf; 6: the initial position of the third-best wolf; 7: Calculate the initial position of prey () according to Equation (5); 8: While (t Max number of iterations) 9: For each grey wolf 10: Update the position of current grey wolf by Equation (1); 11: end For 12: Update , , and ; 13: Calculate the fitness value for each grey wolf; 14: Update , , and ; 15: Calculate the position of prey () according to Equation (5); 16: ; 17: End while 18: return . |
In GWO, the end of the iteration indicates the best time for the wolves to capture their prey, and that all wolves are closest to their prey. In the routing protocol of the clustering algorithm, the node with the smallest distance in the cluster should be selected as the CH. Therefore, in the proposed algorithm, we assume that the sensor nodes are wolves and the CH is prey.
4. Proposed Algorithm
In this section, the routing protocol for HWSN based on the GWO is presented in detail. Lengthening the network life cycle and enhancing the network throughput are the main objectives of the proposed study.
4.1. Network Model and Assumptions
In the network model, the following assumptions are made:
All nodes are randomly distributed in the two-dimensional geographical area. Once the location is determined, no matter what happens, the location of the nodes will not change;
In HWSNs, all sensor nodes are assigned different initial energy levels;
The BS is located in the center of the sensing area, and its power is externally supplied;
The energy of the sensor node is limited, and the battery cannot be charged;
When the sensor node power is exhausted, the node will be considered dead.
4.2. Energy Consumption Model
In this paper, the energy consumption model is similar to that used in [51]. In WSNs, nodes are randomly deployed, and the locations of the nodes are not pre-designed. Most of the energy of a node is dissipated due to communication between nodes, depending on the distance between the nodes. Both data transmission and reception consume energy. Therefore, to transmit an ()-long data packet over the distance , the required energy is
(6) |
where is the energy consumed when the node transmits data, is the energy dissipation of the process of transmitting 1 bit of data and the process of receiving 1 bit of data, is the coefficient of energy dissipation in the free-space model, is the coefficient of energy dissipation in the multi-path attenuation model, and is the threshold of the transmission distance, which is calculated as
(7) |
However, the energy consumption required by the receiving node to receive an bit data packet is calculated as follows
(8) |
The energy consumption of CH can be calculated by the above model. The energy consumption of CH mainly includes three aspects: the energy consumption of receiving data packets of member nodes, fusing data and transmitting fusing data to the base station. The calculation formula is as follows:
(9) |
where is the number of member nodes in the cluster and is 1 bit of data aggregation energy cost; is the packet length.
The energy consumption of the non-CH node is only the energy consumption of sending data to the CH, and its mathematical expression is as follows:
(10) |
The total residual energy in the round is calculated as follows:
(11) |
where is the total residual energy in the round, represents the number of CHs in the round, represents the number of alive nodes in the network in the round, is the energy consumed by the CH, and is the energy consumed by the non-CH.
4.3. Proposed Algorithm
In order to avoid the randomness of the CH selection, a centralized clustering routing protocol is proposed. The stage of CH selection is calculated centrally by BS through the modified grey wolf optimizer (MGWO), and then the result of CH selection is notified to all sensor nodes in the network in the form of broadcast. The phases at which the cluster member joins the cluster and steady-state are the same as in the LEACH [14] protocol. In the first stage of CH establishment, the sensor nodes first send the location and initial energy to the BS, which receives the information and saves it. The BS is given the initial energy of the nodes, and the node’s position is fixed. The energy consumption of the node can be estimated by clustering information of each round, and the energy information of the node in each round can be obtained. Therefore, the nodes do not need to send position and energy information to the BS in each round.
4.3.1. Selection of Initial Clusters
The protocol uses the energy of the node and the distance from the node to the BS as parameters to select the initial clusters of the network, thereby fixing and limiting the number of CHs in each round, so that the number of CHs in each round is even. The use of the distance parameter makes the distribution of CHs in the network more uniform. The following are the rules used for selecting the initial clusters. The set of alive sensor nodes is divided into ( is the number of desired clusters, which equals , where is the number of sensor nodes, and is the portion of CHs) equal subsets according to the ascending result of the fitness value of the sensor nodes. In each subset, the sensor node that is closest to the middle point is selected as the initial CH. Finally, each node is added to the nearest CH according to the Euclidean distance to form the initial cluster. The node’s fitness value is calculated according to the distance from the node to the BS and residual energy:
(12) |
where is the weight, is the initial energy of the node, is the residual energy of the node, is the distance from the node to the BS, and and are, respectively, the maximum and minimum distances between a sensor node and the BS.
4.3.2. Modified Grey Wolf Optimizer
The MGWO is used to select the CHs. In the original GWO [50], the prey’s position was calculated based on the average weight of the , , and wolves. Considering the difference between the residual energy of the node and the distance between the node and the BS, the fitness value of the node is taken as the initial weight in the GWO, which is calculated by Equation (12). Consequently, based on the GWO and formula (12), the initial position of prey is computed as
(13) |
(14) |
where , , and represent the initial weights of the wolf, the wolf, and the wolf, respectively. , , and are the first, the second, and the third best fitness values, respectively, which are calculated through Formula (12). The , , and wolves are the respective nodes corresponding to the three best fitness values.
When the GWO is implemented in the proposed protocol, the fitness value of the node is changed after completing one data transmission, so the weight of the GWO will not change. In order to further improve the global search capability of the GWO, the weights are dynamically updated by vectors and . is the distance between the wolf and its prey, and is the coefficient vector. and are calculated according to Equations (2) and (3). At the iteration, the location of the prey and the weight updating formula are expressed as
(15) |
(16) |
where , and are the positions of the wolf, wolf, and wolf in the iteration, respectively. , and can be obtained by Equation (1).
At the end of the iteration, the node closest to the prey is generally selected as the CH. However, the residual energy of the node may not be able to complete the task of the CH, causing the node to die prematurely. Therefore, the nodes that are close to the prey and have more residual energy should be selected as the CH. Here, it is proposed to use the remaining energy of the node and the distance between the node and the prey as parameters of the fitness function to select the CH. The node with the smaller fitness value is more likely to become the CH. The fitness function is as follows:
(17) |
where is the weight; is the residual energy of the node; and are the maximum and the minimum residual energy in the cluster, respectively; is the distance from the node to the prey; and and are the maximum and minimum distance, respectively, between a sensor node and the prey in the cluster.
4.3.3. Selection of the Optimal Cluster Set
According to the clustering algorithm, a network can be divided into multiple clusters, and multiple clusters in the network are called a cluster set. In this study, the selected initial clusters are referred to as the initial cluster set, which is taken as the current optimal cluster set, and the objective function value of the current optimal cluster set is calculated. Each cluster in the current optimal cluster set is randomly changed by the MGWO to generate a new cluster, and a plurality of the new clusters forms a new cluster set; the objective function value of the new cluster set is then calculated. When the value of the objective function of the current optimal cluster set is greater than that of the new one, the new cluster set is accepted as the current optimal cluster set; otherwise, the new cluster set is accepted as the current optimal cluster set in a probabilistic manner. At the end of the iteration, the optimal cluster set is formed. The objective function is defined as
(18) |
where is the weight, is the total intra-cluster communication distance, and is the total communication distance from the CH to the BS. The objective function is designed based on the total inter-cluster communication distance and the total communication distance from the CH to the BS. A smaller objective function value indicates that the CH selection is more reasonable, the CH is optimal in the cluster, and the CH set is also optimal relative to the whole network. The HMGWO pseudo-code is described in Algorithm 2.
Algorithm 2 HMGWO pseudo-code |
Input: = number of alive nodes = number of desired clusters Output: A set of clusters Steps: 19: Initialization; 20: Initial CHs selection (described above); 21: Each of the remaining nodes decides to join its nearest CH according to the Euclidean distance; 22: Form the initial clusters; 23: Current optimal cluster set = initial cluster set; 24: Calculate the objective function value of the current optimal cluster set (); 25: While do 26: For all current optimal clusters 27: If (the number of cluster members ) 28: Implement the MGWO algorithm (presented above) to select the CHs in each current optimal cluster; 29: Else 30: All the nodes are regarded as normal nodes; 31: End if 32: End for 33: Each of the remaining nodes decides to join its nearest CH according to the Euclidean distance; 34: Form the new clusters; 35: Calculate the objective function value of the new cluster set (); 36: If () 37: Current optimal cluster set = new cluster set; 38: ; 39: Else If () 40: Current optimal cluster set = new cluster set; 41: ; 42: End if 43: End while |
5. Simulation Results
To verify its performance, MATLAB software (MathWorks, USA) was used to simulate the HMGWO algorithm. Under the same experimental conditions, the HMGWO algorithm was compared with the SEP, DEEC, M-SEP, and FIGWO algorithms. The main simulation parameters are shown in Table 2.
Table 2.
Parameter | Value |
---|---|
The area of the sensing region, Number of Sensor Nodes | |
Portion of cluster heads | |
Packet Size | |
Data Aggregation Energy Cost | |
Energy Cost of Transmitter/Receiver | |
Transmission Coefficient of Amplifier (free space) | |
Transmission Coefficient of Amplifier (multi-path space) | |
Initial energy of normal node | |
Ratio of Advanced Node | |
Weight of Fitness Function | |
Ratio of Initial Energy of the Advanced Node to that of the Normal Node |
At the beginning of each round, the BS selects CHs using the algorithm proposed in this article, and each round last for 1 s. In this paper, we used the network lifetime, residual energy and the number of packets received by the BS as the evaluation indexes of the algorithm performance. However, since the HMGWO, SEP, DEEC, M-SEP, and FIGWO protocols are all single-hop routing protocols, the end-to-end delay was not taken into account in the indicator evaluation. The following is an explanation of indicators and nouns.
Network lifetime: The period of time between the beginning of the network operation and the death of the first node, which is also known as the network stability period.
Network instability period: The time duration between the death of the first node and the death of all nodes.
- Total residual energy: The sum of the remaining energy of all survival nodes. To facilitate the comparison of the total residual energy, the percentage of the total residual energy is used to represent the total residual energy [10,20], which is calculated as follows:
where is the percentage of the total residual energy in the round; is the total residual energy in the round; and is the sum of the initial energies of all the nodes.(19) - Residual energy deviation: The deviation between the node with the most residual energy and the node with the least residual energy [46]. The residual energy deviation in the round is calculated as follows:
where and are the maximum and the minimum residual energy of the node in the network the round. However, to facilitate the analysis of the simulation results, the residual energy deviation is compared in percentage units.(20) Throughput: The number of data packets received by the BS.
5.1. Network Lifetime
Figure 2 shows that the HMGWO was superior to other protocols in terms of its network lifespan for different proportions of advanced nodes obtained from the simulation. When the ratio of advanced nodes is , it can be seen in Figure 2a that the network lifespan of the HMGWO increased by 55.7%, 31.9%, 46.3%, and 27.0%, respectively, relative to SEP, DEEC, M-SEP, and FIGWO. When the ratio of advanced nodes is , it can be seen in Figure 2b that the network lifespan of the proposed algorithm is increased by 51.2%, 32.0%, 24.6%, and 32.8%, respectively, relative to SEP, DEEC, M-SEP, and FIGWO. The main reason for the above results is that the nodes with low residual energies have a low probability of becoming the CH, which avoids the phenomenon of rapid death of the node with low residual energy, thus extending the life cycle of the network.
The simulation results of the network life cycle for when the first node died, 50% of the nodes died and all nodes died are shown in Figure 3 at different proportions of advanced nodes. As can be seen from Figure 3, the death time of the first node was later than that of other protocols. When the number of death nodes reached 50%, the network lifetime of HGWO was significantly extended compared to that of the SEP, FIGWO, DEEC, and M-SEP protocols. However, as can be seen in Figure 3a,b, when all nodes died, the lifetimes of SEP and FIGWO were greater than that of the algorithm proposed in this paper. It can be clearly seen in Figure 3 that the network instability period of the HMGWO was shorter than that of other protocols. The main reason for this is that the HMGWO considers the heterogeneity of nodes and the global optimization ability, such that the energy consumption between nodes is relatively balanced, and the network instability period of the HMGWO is shorter. The specific reasons are discussed in detail in Section 6.
5.2. Number of Packets Received by the BS
Figure 4a,b show the number of data packets received by the BS. When the ratio of advanced nodes is , it can be seen from Figure 4a that the network throughput of HMGWO increased by 150.4%, 142.5%, 70.5%, and 17.6%, respectively, relative to SEP, DEEC, M-SEP, and FIGWO. When the ratio of advanced nodes is , it can be seen in Figure 4b that the network throughput of the proposed algorithm improved by 142.7%, 124.8%, 70.9%, and 32.8%, respectively, relative to SEP, DEEC, M-SEP and FIGWO. This is because the HMGWO algorithm adopts a more reasonable CH selection mechanism, and the nodes have a longer survival time. When the number of rounds is the same, the number of surviving nodes in the network is higher than that of other algorithms, so more data groups are generated, and the number of data packets received by the BS also increases.
5.3. Residual Energy
Figure 5a,b show the total residual energy of the network, from which it is obvious that the HMGWO had a higher total residual energy, which means that the network could survive for a longer period of time. As can be seen in Figure 5c,d, the HMGWO effectively reduced the residual energy deviation compared with other algorithms. In HMGWO, the nodes with more remaining energy were selected as the CH more frequently than the nodes with less remaining energy, so the residual energy deviation was more balanced relative to other protocols. The percentage of the total residual energy and the residual energy difference can be calculated by Equations (19) and (20), respectively.
6. Discussion
The HMGWO protocol outperformed the SEP, DEEC, M-SEP, and FIGWO protocols in terms of the network lifecycle, power consumption, and throughput. The reasons are proved and summarized as follows.
The SEP, DEEC, and M-SEP protocols are the routing protocols of HWSNs that do not consider the distance from node to BS when selecting CHs, and they just define the different threshold formulas of CH selection relative to the advanced nodes and normal nodes. In SEP, the selection of CHs in the whole network is inherently random. This makes the distribution of CHs in each round uneven, which will lead to unbalanced energy consumption among nodes and to the premature death of some nodes. Although the high-energy node in SEP has a higher probability of becoming the CH than the ordinary node, due to the random selection of the CHs, the frequency of some high-energy nodes becoming CHs may be small. This results in the slow death rate of the high-energy node, which extends the network instability period and the energy consumption among the nodes is not balanced. When the DEEC protocol selects the CH, the residual energy and the average energy of the network node are taken into account in the weighted election probability. That is to say, when the residual energy of the node is larger than the average energy, the average probability of the node being selected as the CH is higher than that of the node whose residual energy is smaller than the average energy; thus, the energy consumption between advanced nodes and ordinary nodes is reduced, and the life cycle of the network is extended, compared with SEP. In the model of CH selection, compared with DEEC, M-SEP applies the residual energy of nodes and the average energy of network nodes to the threshold formula. However, the weighted election probability does not change. When the residual energy is greater than the average energy, the threshold value of the node is relatively large, but there is still some randomness when the node is selected as the CH. The network lifetime is improved relative to the SEP protocol, but it is not optimized compared to DEEC in terms of residual energy deviation. On the contrary, our algorithm uses the fitness function () to select the initial CHs. The fitness function ( takes into account the residual energy of the node and the distance from the node to the BS, so that the initial CHs are more evenly distributed in the network, and overcomes the randomness of the selected CHs. However, the selection of the initial cluster further fixes and limits the number of CHs, and provides the search range of the MGWO algorithm, thereby reducing the energy consumption in unnecessary clustering, saving network energy consumption, and prolonging the network life cycle.
The GWO is used to select the CHs in FIGWO. When using the GWO algorithm for the selection of CHs, the selection of the final CHs is carried out according to the Euclidean distance (at the end of the iteration, the algorithm can estimate the prey’s position (here, the prey is called a virtual CH), and all nodes will calculate the distance to the virtual CH; the node with the smallest distance will be selected as the CH). In the algorithm proposed in this paper, the final CHs are selected by the fitness function (), which is designed by the energy of the node and the distance from the node to the virtual CH. The node with high residual energy and nearest distance have a greater probability as the final CH, thereby avoiding the node with low remaining energy to become the final CH, and further reducing the energy consumption deviation of the network. For FIGWO, the GWO is used to select the final CH within each initial cluster, and the selected CH is only optimal in the cluster; however, the set of final CHs may not be optimal throughout the whole network. The FIGWO algorithm only solves the local optimal problem of CHs but does not consider the optimal problem of CHs in the whole network. However, the HMGWO adds a new algorithm to the outer layer of MGWO. The outer layer algorithm selects the bad set of CHs with a certain probability as the initial cluster set of the next iteration, so that the selected CH set is not only the best in the cluster, but also, the final CH set is the best in the whole network. HMGWO makes rational use of the heterogeneity of nodes, solves the randomness of CHs, and considers the global optimality of CHs. Therefore, HMGWO is superior to the SEP, DEEC, M-SEP, and FIGWO protocols in terms of the energy consumption, network life cycle, and throughput.
7. Conclusions
In this study, we proposed a routing protocol for HWSNs based on a modified grey wolf optimizer. By defining different fitness functions for both advanced nodes and normal nodes and modifying the GWO, this algorithm can ensure that advanced nodes in the cluster are more likely to be selected as CHs. Consequently, the burden of low-energy nodes being selected as CHs can be reduced, and the network lifetime can be extended. The simulation results show that, compared with traditional SEP, DEEC, M-SEP, and FIGWO protocols, the energy consumption, lifetime, and throughput of the network are significantly improved. In the future, the proposed HMGWO will be extended to larger sensor networks to consider multi-hop communication between CHs, thus reducing energy consumption between a remote BS and CHs. However, when the CHs are selected, how to reasonably reduce the extra energy consumed by all sensor nodes to transmit their positions and energy to the base station, thus reducing the unnecessary energy consumption, will also be a focus of further study.
Author Contributions
X.Z.: Conceptualization, Investigation, Methodology, Project administration, Supervision, Writing—original draft. S.R.: Conceptualization, Data curation, Formal analysis, Investigation, Methodology, Software, Validation, Visualization, Writing—original draft, Writing—review & editing. H.Q.: Investigation, Project administration, Software, Visualization. Q.G.: Formal analysis, Methodology, Project administration, Writing—review & editing. All authors have read and agreed to the published version of the manuscript.
Funding
This work was supported by the National Natural Science Foundation of China under Grant No. U1965102, the Science and Technology Innovation Team for Talent Promotion Plan of Shaanxi Province under Grant No. 2019TD-028, the Special Planned Project for Serving Local Areas of Education Department of Shaanxi Provincial Government under Grant No. 18JC029, and the Science and Technology Program of Xi’an under Grant No. 201806117YF05NC13-2.
Conflicts of Interest
The authors declare no conflict of interest.
References
- 1.Ramson S.R.J., Moni D.J. Applications of wireless sensor networks—A survey; Proceedings of the 2017 International Conference on Innovations in Electrical, Electronics, Instrumentation and Media Technology (ICEEIMT); Coimbatore, India. 3–4 February 2017; pp. 325–329. [Google Scholar]
- 2.Rashid B., Rehmani M.H. Applications of wireless sensor networks for urban areas: A survey. J. Netw. Comput. Appl. 2016;60:192–219. doi: 10.1016/j.jnca.2015.09.008. [DOI] [Google Scholar]
- 3.Prasad P. Recent trend in wireless sensor network and its applications: A survey. Sens. Rev. 2015;35:229–236. doi: 10.1108/SR-08-2014-683. [DOI] [Google Scholar]
- 4.Ransing R.S., Rajput M. Smart home for elderly care, based on Wireless Sensor Network; Proceedings of the 2015 International Conference on Nascent Technologies in the Engineering Field (ICNTE); Navi Mumbai, India. 9–10 January 2015; pp. 1–5. [Google Scholar]
- 5.Ojha T., Misra S., Raghuwanshi N.S. Wireless sensor networks for agriculture: The state-of-the-art in practice and future challenges. Comput. Electron. Agric. 2015;118:66–84. doi: 10.1016/j.compag.2015.08.011. [DOI] [Google Scholar]
- 6.Akyildiz I.F., Su W., Sankarasubramaniam Y., Cayirci E. A survey on sensor networks. IEEE Commun. Mag. 2002;40:102–114. doi: 10.1109/MCOM.2002.1024422. [DOI] [Google Scholar]
- 7.Yick J., Mukherjee B., Ghosal D. Wireless sensor network survey. Comput. Netw. 2008;52:2292–2330. doi: 10.1016/j.comnet.2008.04.002. [DOI] [Google Scholar]
- 8.Mohamed R.E., Saleh A.I., Abdelrazzak1 M., Samra1 A.S. Survey on Wireless Sensor Network Applications and Energy Efficient Routing Protocols. Wireless Pers. Commun. 2018;101:1019–1055. doi: 10.1007/s11277-018-5747-9. [DOI] [Google Scholar]
- 9.Olayinka O.O., Attahiru S.A. A Survey on an Energy-Efficient and Energy-Balanced Routing Protocol for Wireless Sensor Networks. Sensors. 2017;17:1084. doi: 10.3390/s17051084. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 10.Zhao Z., Xu K., Hui G., Hu L. An Energy-Efficient Clustering Routing Protocol for Wireless Sensor Networks Based on AGNES with Balanced Energy Consumption Optimization. Sensors. 2018;18:3938. doi: 10.3390/s18113938. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 11.Hosen A., Gi C. An Energy Centric Cluster-Based Routing Protocol for Wireless Sensor Networks. Sensors. 2018;18:1520. doi: 10.3390/s18051520. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 12.Liu X. A Survey on Clustering Routing Protocols in Wireless Sensor Networks. Sensors. 2012;12:11113. doi: 10.3390/s120811113. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 13.Singh S.P., Sharma S.C. A Survey on Cluster Based Routing Protocols in Wireless Sensor Networks. Procedia Comput. Sci. 2015;45:687–695. doi: 10.1016/j.procs.2015.03.133. [DOI] [Google Scholar]
- 14.Heinzelman W.R., Chandrakasan A., Balakrishnan H. Energy-Efficient Communication Protocol for Wireless Microsensor Networks; Proceedings of the 33rd Annual Hawaii International Conference on System Sciences; Maui, HI, USA. 7 January 2000; pp. 1–10. [Google Scholar]
- 15.Manjeshwar A., Agrawal D.P. TEEN: A Routing Protocol for Enhanced Efficiency in Wireless Sensor Networks; Proceedings of the 15th International Parallel and Distributed Processing Symposium; San Francisco, CA, USA. 23–27 April 2001; pp. 2009–2015. [Google Scholar]
- 16.Younis O., Fahmy S. HEED: A hybrid, energy-efficient, distributed clustering approach for ad hoc sensor networks. IEEE Trans. Mob. Comput. 2004;3:366–379. doi: 10.1109/TMC.2004.41. [DOI] [Google Scholar]
- 17.Geetha V., Kallapur P.V., Tellajeera S. Clustering in wireless sensor networks: Performance comparison of LEACH & LEACH-C protocols using ns2. Procedia Technol. 2012;4:163–170. [Google Scholar]
- 18.Ducrocq T., Mitton N., Hauspie M. Energy-based clustering for wireless sensor network lifetime optimization; Proceedings of the 2013 IEEE Wireless Communications and Networking Conference (WCNC); Shanghai, China. 7–10 April 2013; pp. 968–973. [Google Scholar]
- 19.Rohit P., Deepti S. VCH-ECCR: A Centralized Routing Protocol for Wireless Sensor Networks. J. Sens. 2017;1:1–10. doi: 10.1155/2017/8946576. [DOI] [Google Scholar]
- 20.Hamzah A., Shurman M., Al-Jarrah O., Taqieddin E. Energy-Efficient Fuzzy-Logic-Based Clustering Technique for Hierarchical Routing Protocols in Wireless Sensor Networks. Sensors. 2019;19:561. doi: 10.3390/s19030561. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 21.Smaragdakis G., Matta I., Bestavros A. SEP: A stable election protocol for clustered heterogeneous wireless sensor networks; Proceedings of the 2nd International Workshop on Sensor and Actor Network Protocols and Applications; Boston, MA, USA. 22 August 2004; pp. 1–11. [Google Scholar]
- 22.Singh D., Panda C.K. Performance analysis of Modified Stable Election Protocol in heterogeneous WSN; Proceedings of the 2015 International Conference on Electrical, Electronics, Signals, Communication and Optimization (EESCO); Visakhapatnam, India. 24–25 January 2015; pp. 1–5. [Google Scholar]
- 23.Naranjo P.G.V., Shojafar M., Mostafaei H., Pooranian Z., Baccarelli E. P-SEP: A prolong stable election routing algorithm for energy-limited heterogeneous fog-supported wireless sensor networks. J. Supercomput. 2017;73:733–755. doi: 10.1007/s11227-016-1785-9. [DOI] [Google Scholar]
- 24.Gupta V., Pandey R. An improved energy aware distributed unequal clustering protocol for heterogeneous wireless sensor networks. Eng. Sci. Technol. Int. J. 2016;19:1050–1058. doi: 10.1016/j.jestch.2015.12.015. [DOI] [Google Scholar]
- 25.Qing L., Zhu Q., Wang M. Design of a distributed energy-efficient clustering algorithm for heterogeneous wireless sensor network. Comput. Commun. 2006;29:2230–2237. doi: 10.1016/j.comcom.2006.02.017. [DOI] [Google Scholar]
- 26.Yang L., Lu Y.Z., Zhong Y.C. An unequal cluster-based routing scheme for multi-level heterogeneous wireless sensor networks. Telecommun. Syst. 2018;68:11–26. doi: 10.1007/s11235-017-0372-6. [DOI] [Google Scholar]
- 27.Bhushan S., Pal R., Antoshchuk S.G. Energy Efficient Clustering Protocol for Heterogeneous Wireless Sensor Network: A Hybrid Approach Using GA and K-means; Proceedings of the 2018 IEEE Second International Conference on Data Stream Mining & Processing (DSMP); Lviv, Ukraine. 21–25 August 2018; pp. 381–385. [Google Scholar]
- 28.Gherbi C., Aliouat Z., Benmohammed M. A survey on clustering routing protocols in wireless sensor networks. Sens. Rev. 2017;37:12–25. doi: 10.1108/SR-06-2016-0104. [DOI] [Google Scholar]
- 29.Mazumdar N., Roy S., Nayak S. A Survey on Clustering Approaches for Wireless Sensor Networks; Proceedings of the 2018 2nd International Conference on Data Science and Business Analytics (ICDSBA); Changsha, China. 21–23 September 2018; pp. 236–240. [Google Scholar]
- 30.Tong M., Tang M. LEACH-B: An Improved LEACH Protocol for Wireless Sensor Network; Proceedings of the 2010 6th International Conference on Wireless Communications Networking and Mobile Computing (WiCOM); Chengdu, China. 23–25 September 2010; pp. 1–4. [Google Scholar]
- 31.Marappan P., Rodrigues P. An energy efficient routing protocol for correlated data using CL-LEACH in WSN. Wirel. Netw. 2015;22:1415–1423. doi: 10.1007/s11276-015-1063-4. [DOI] [Google Scholar]
- 32.Razaque A., Mudigulam S., Gavini K., Amsaad F., Abdulgader M., Krishna G.S. H-LEACH: Hybrid-low energy adaptive clustering hierarchy for wireless sensor networks; Proceedings of the 2016 IEEE Long Island Systems, Applications and Technology Conference (LISAT); Farmingdale, NY, USA. 29–29 April 2016; pp. 1–4. [Google Scholar]
- 33.Jerbi W., Guermazi A., Trabelsi H. O-LEACH of Routing Protocol for Wireless Sensor Networks; Proceedings of the 2016 13th International Conference on Computer Graphics, Imaging and Visualization (CGiV); Beni Mellal, Morocco. 29 March–1 April 2016; pp. 399–404. [Google Scholar]
- 34.Osamy W., Salim A., Khedr A.M. An information entropy based-clustering algorithm for heterogeneous wireless sensor networks. Wirel. Netw. 2018;12:1–18. doi: 10.1007/s11276-018-1877-y. [DOI] [Google Scholar]
- 35.Dutt S., Agrawal S., Vig R. Cluster-Head Restricted Energy Efficient Protocol (CREEP) for Routing in Heterogeneous Wireless Sensor Networks. Wirel. Pers. Commun. 2018;100:1477–1497. doi: 10.1007/s11277-018-5649-x. [DOI] [Google Scholar]
- 36.Purkar S.V., Deshpande R.S. Energy Efficient Clustering Protocol to Enhance Performance of Heterogeneous Wireless Sensor Network: EECPEP-HWSN. J. Comput. Netw. Commun. 2018;2018:2078627. doi: 10.1155/2018/2078627. [DOI] [Google Scholar]
- 37.Zhao X., Cui Y., Guo Z., Hao Z. An Energy-Efficient Coverage Enhancement Strategy for Wireless Sensor Networks Based on a Dynamic Partition Algorithm for Cellular Grids and an Improved Vampire Bat Optimizer. Sensors. 2020;20:619. doi: 10.3390/s20030619. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 38.Zhao X.Q., Cui Y.P., Gao C.Y., Guo Z., Gao Q. Energy-efficient Coverage Enhancement Strategy for Three-dimensional Wireless Sensor Networks Based on a Vampire Bat Optimizer. IEEE Internet Things J. 2020;7:325–338. doi: 10.1109/JIOT.2019.2952718. [DOI] [Google Scholar]
- 39.Nimisha G., Indrajit B., Sherratt R.S. On-demand fuzzy clustering and ant-colony optimisation based mobile data collection in wireless sensor network. Wirel. Netw. 2017;8:1–17. [Google Scholar]
- 40.Kong L., Pan J.S., Snášel V. An energy-aware routing protocol for wireless sensor network based on genetic algorithm. Telecommun. Syst. 2018;67:451–463. doi: 10.1007/s11235-017-0348-6. [DOI] [Google Scholar]
- 41.Sweta P., Shankar T., Rajesh A. Lifetime Improvement in Wireless Sensor Networks using Hybrid Differential Evolution and Simulated Annealing (DESA) Ain Shams Eng. J. 2018;9:655–663. [Google Scholar]
- 42.Mekonnen M.T., Rao K.N. Cluster Optimization Based on Metaheuristic Algorithms in Wireless Sensor Networks. Wirel. Pers. Commun. 2017;97:2633–2647. doi: 10.1007/s11277-017-4627-z. [DOI] [Google Scholar]
- 43.Mohammadi R., Hossein B.N. SAT: Simulated Annealing and Tabu Search Based Routing Algorithm for Wireless Sensor Networks. Int. J. Comput. Netw. Commun. Secur. 2016;4:286–293. [Google Scholar]
- 44.Fang J. Clustering and Path Planning for Wireless Sensor Networks Based on Improved Ant Colony Algorithm. Int. J. Online Biomed. Eng. 2019;15:129–142. doi: 10.3991/ijoe.v15i01.9784. [DOI] [Google Scholar]
- 45.Zhang H.T., Zhang S.W., Bu W.S. A Clustering Routing Protocol for Energy Balance of Wireless Sensor Network based on Simulated Annealing and Genetic Algorithm. Int. J. Hybrid Inf. Technol. 2014;7:71–82. doi: 10.14257/ijhit.2014.7.2.08. [DOI] [Google Scholar]
- 46.Wang J., Gao Y., Liu W., Sangaiah A.K., Kim H.J. An Improved Routing Schema with Special Clustering Using PSO Algorithm for Heterogeneous Wireless Sensor Network. Sensors. 2019;19:671. doi: 10.3390/s19030671. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 47.Singh S.P., Sharma S.C. Genetic-Algorithm-Based Energy-Efficient Clustering (GAEEC) for Homogenous Wireless Sensor Networks. IETE J. Res. 2017;64:1–12. doi: 10.1080/03772063.2017.1364981. [DOI] [Google Scholar]
- 48.Al-Aboody N.A., Al-Raweshidy H.S. Grey wolf optimization-based energy-efficient routing protocol for heterogeneous wireless sensor networks; Proceedings of the 2016 4th International Symposium on Computational and Business Intelligence (ISCBI); Olten, Switzerland. 5–7 September 2016; pp. 101–107. [DOI] [Google Scholar]
- 49.Zhao X.Q., Zhu H., Aleksic S., Gao Q. Energy-Efficient Routing Protocol for Wireless Sensor Networks Based on Improved Grey Wolf Optimizer. KSII T. Internet Inf. 2018;12:2644–2657. [Google Scholar]
- 50.Mirjalili S., Mirjalili S.M., Lewis A. Grey Wolf Optimizer. Adv. Eng. Softw. 2014;69:46–61. doi: 10.1016/j.advengsoft.2013.12.007. [DOI] [Google Scholar]
- 51.Heinzelman W.B., Chandrakasan A.P., Balakrishnan H. An application-specific protocol architecturefor wireless microsensor networks. IEEE Trans. Wirel. Commun. 2002;1:660–670. doi: 10.1109/TWC.2002.804190. [DOI] [Google Scholar]