Next Article in Journal
eWoT: A Semantic Interoperability Approach for Heterogeneous IoT Ecosystems Based on the Web of Things
Previous Article in Journal
Fluorescence Sensing of Caffeine in Tea Beverages with 3,5-diaminobenzoic Acid
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Routing Protocol for Heterogeneous Wireless Sensor Networks Based on a Modified Grey Wolf Optimizer

1
School of Communication and Information Engineering, Xi’an University of Posts and Telecommunications, Xi’an 710121, China
2
Shaanxi Key Laboratory of Information Communication Network and Security, Xi’an University of Posts and Telecommunications, Xi’an 710121, China
3
College of Mechanical and Electronic Engineering, Northwest Agriculture and Forestry University, Yangling 712100, China
*
Author to whom correspondence should be addressed.
Sensors 2020, 20(3), 820; https://doi.org/10.3390/s20030820
Submission received: 16 October 2019 / Revised: 29 January 2020 / Accepted: 31 January 2020 / Published: 4 February 2020
(This article belongs to the Section Sensor Networks)

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.

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.

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
X t + 1 = X p t A × D .
A = 2 × α × r 1 α .
where X t + 1 is the wolf’s position in the ( t + 1 ) t h iteration, and X p t is the prey’s position at the t t h iteration. A is the convergence factor. α linearly decreases from 2 to 0 over the course of iterations, and r 1 is a random vector in the range [0,1]. D is the distance from the wolves to the prey, and is calculated as follows:
D = | C × X p t X t | .
C = 2 × r 2 ,
where X p t and X t are, respectively, the prey’s position and the wolf’s position in the t t h iteration, C is the coefficient vectors calculated in (4), and r 2 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
X p t + 1 = ( X α t + 1 + X β t + 1 + X δ t + 1 ) / 3 ,
where X α t + 1 , X β t + 1 , and X δ t + 1 are the positions of the α wolves, the β wolves and the δ wolves in the ( t + 1 ) t h 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 X i ( i = 1 , 2 , , n ) ;
2: Initialize a , A , and C ;
3: Calculate the fitness value for each grey wolf;
4: X α 0 = the initial position of the leader wolf;
5: X β 0 = the initial position of the second-best wolf;
6: X δ 0 = the initial position of the third-best wolf;
7: Calculate the initial position of prey ( X P 0 ) 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 a , A , and C ;
13: Calculate the fitness value for each grey wolf;
14: Update X α t , X β t , and X δ t ;
15: Calculate the position of prey ( X P t ) according to Equation (5);
16: t = t + 1 ;
17: End while
18: return X α t .
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 ( m b i t )-long data packet over the distance d , the required energy is
E T X ( m , d ) = { m × E e l e c + m × ε f s × d 2 ,   i f   d d c r o s s o v e r m × E e l e c + m × ε m p × d 4 ,   i f   d > d c r o s s o v e r ,
where E T X is the energy consumed when the node transmits data, E e l e c is the energy dissipation of the process of transmitting 1 bit of data and the process of receiving 1 bit of data, ε f s is the coefficient of energy dissipation in the free-space model, ε m p is the coefficient of energy dissipation in the multi-path attenuation model, and d c r o s s o v e r is the threshold of the transmission distance, which is calculated as
d c r o s s o v e r = ε f s / ε m p .
However, the energy consumption required by the receiving node to receive an m bit data packet is calculated as follows
E R X ( m ) = m × E e l e c .
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:
E C H = E R X ( m ) × C M n u m + m × E D A × ( C M n u m + 1 ) + E T X ( m , d )
where C M n u m is the number of member nodes in the cluster and E D A is 1 bit of data aggregation energy cost; m 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:
E n o n C H = E T X ( m , d )
The total residual energy in the r t h round is calculated as follows:
E t o t R ( r ) = E t o t R ( r 1 ) ( i = 1 C H n u m ( r ) E C H ( i ) + j = 1 N a l i v e ( r ) C H n u m ( r ) E n o n C H ( j ) )
where E t o t R ( r 1 ) is the total residual energy in the ( r 1 ) t h round, C H n u m ( r ) represents the number of CHs in the r t h round, N a l i v e ( r ) represents the number of alive nodes in the network in the r t h round, E C H ( i ) is the energy consumed by the i t h CH, and E n o n C H ( j ) is the energy consumed by the j t h 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 m ( m is the number of desired clusters, which equals N / p , where N is the number of sensor nodes, and p 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:
F 1 = { a 1 × E r E i + ( 1 a 1 ) × ( d M A X B S d t o B S d M A X B S d M I N B S ) ,   E r > 0   and   the   node   is   the   normal   node ( 1 a 1 ) × E r E i + a 1 × ( d M A X B S d t o B S d M A X B S d M I N B S ) ,   E r > 0   and   the   node   is   the   advanced   node 0   ,   E r 0   ,
where a 1 is the weight, E i is the initial energy of the node, E r is the residual energy of the node, d t o B S is the distance from the node to the BS, and d M A X B S and d M I N B S 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
X p 0 = ω I α X α 0 + ω I β X β 0 + ω I δ X δ 0 ,
ω I α = F α / ( F α + F β + F δ ) ω I β = F β / ( F α + F β + F δ ) ω I δ = F δ / ( F α + F β + F δ )   ,
where ω I α , ω I β , and ω I δ represent the initial weights of the α wolf, the β wolf, and the δ wolf, respectively. F α , F β , and F δ 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 D and A . D is the distance between the wolf and its prey, and A is the coefficient vector. D and A are calculated according to Equations (2) and (3). At the ( t + 1 ) t h iteration, the location of the prey and the weight updating formula are expressed as
X p t + 1 = ω α t + 1 X α t + 1 + ω β t + 1 X β t + 1 + ω δ t + 1 X δ t + 1 ,
ω α t + 1 = ( D α t + 1 × A α t + 1 ) / ( D α t + 1 × A α t + 1 + D β t + 1 × A β t + 1 + D δ t + 1 × A δ t + 1 ) ω β t + 1 = ( D β t + 1 × A β t + 1 ) / ( D α t + 1 × A α t + 1 + D β t + 1 × A β t + 1 + D δ t + 1 × A δ t + 1 ) . ω δ t + 1 = ( D δ t + 1 × A δ t + 1 ) / ( D α t + 1 × A α t + 1 + D β t + 1 × A β t + 1 + D δ t + 1 × A δ t + 1 )
where X α t + 1 , X β t + 1 and X δ t + 1 are the positions of the α wolf, β wolf, and δ wolf in the ( t + 1 ) t h iteration, respectively. X α t + 1 , X β t + 1 and X δ t + 1 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:
F 2 = { a 2 × E M A X E r E M A X E M I N + ( 1 a 2 ) × ( d M A X P d t o P d M A X P d M I N P ) ,   E r > 0   and   the   node   is   the   normal   node ( 1 a 2 ) × E M A X E r E M A X E M I N + a 2 × ( d M A X P d t o P d M A X P d M I N P ) ,   E r > 0   and   the   node   is   the   advanced   node 0   ,   E r 0   ,
where a 2 is the weight; E r is the residual energy of the node; E M A X and E M I N are the maximum and the minimum residual energy in the cluster, respectively; d t o P is the distance from the node to the prey; and d M A X P and d M I N P 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
F 3 = a 3 × d T C H + ( 1 a 3 ) × d T B S .
where a 3 is the weight, d T C H is the total intra-cluster communication distance, and d T B S 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:
N = number of alive nodes
K = number of desired clusters
Output:
A set of K 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 ( F o p t );
25: While t t m a x do
26: For all current optimal clusters
27: If (the number of cluster members 3 )
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 ( F n e w );
36: If ( F n e w < F o p t )
37: Current optimal cluster set = new cluster set;
38: F o p t   =   F n e w ;
39: Else If ( r a n d ( ) > p r o b a b i l i t y )
40: Current optimal cluster set = new cluster set;
41: F o p t   =   F n e w ;
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.
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:
    p t ( r ) = E t o t R ( r ) / j = 1 N E i ( j )
    where p t ( r ) is the percentage of the total residual energy in the r t h round; E t o t R ( r ) is the total residual energy in the r t h round; and j = 1 N E i ( j ) is the sum of the initial energies of all the nodes.
  • 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 r t h round is calculated as follows:
    D R ( r ) = E M a x R ( r ) E M i n R ( r )
    where E M a x R ( r ) and E M i n R ( r ) are the maximum and the minimum residual energy of the node in the network the r t h round. However, to facilitate the analysis of the simulation results, the residual energy deviation is compared in percentage units.
  • 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 α = 0.1 , 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 α = 0.2 , 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 α = 0.1 , 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 α = 0.2 , 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 ( F 1 ) to select the initial CHs. The fitness function ( F 1 ) 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 ( F 2 ), 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. In 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. [Google Scholar] [CrossRef]
  3. Prasad, P. Recent trend in wireless sensor network and its applications: A survey. Sens. Rev. 2015, 35, 229–236. [Google Scholar] [CrossRef]
  4. Ransing, R.S.; Rajput, M. Smart home for elderly care, based on Wireless Sensor Network. In 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. [Google Scholar] [CrossRef]
  6. Akyildiz, I.F.; Su, W.; Sankarasubramaniam, Y.; Cayirci, E. A survey on sensor networks. IEEE Commun. Mag. 2002, 40, 102–114. [Google Scholar] [CrossRef] [Green Version]
  7. Yick, J.; Mukherjee, B.; Ghosal, D. Wireless sensor network survey. Comput. Netw. 2008, 52, 2292–2330. [Google Scholar] [CrossRef]
  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. [Google Scholar] [CrossRef]
  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. [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. [Google Scholar] [CrossRef] [Green Version]
  11. Hosen, A.; Gi, C. An Energy Centric Cluster-Based Routing Protocol for Wireless Sensor Networks. Sensors 2018, 18, 1520. [Google Scholar] [CrossRef] [Green Version]
  12. Liu, X. A Survey on Clustering Routing Protocols in Wireless Sensor Networks. Sensors 2012, 12, 11113. [Google Scholar] [CrossRef]
  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. [Google Scholar] [CrossRef] [Green Version]
  14. Heinzelman, W.R.; Chandrakasan, A.; Balakrishnan, H. Energy-Efficient Communication Protocol for Wireless Microsensor Networks. In 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. In 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. [Google Scholar] [CrossRef] [Green Version]
  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. In 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. [Google Scholar] [CrossRef]
  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. [Google Scholar] [CrossRef] [Green Version]
  21. Smaragdakis, G.; Matta, I.; Bestavros, A. SEP: A stable election protocol for clustered heterogeneous wireless sensor networks. In 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. In 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. [Google Scholar] [CrossRef]
  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. [Google Scholar] [CrossRef] [Green Version]
  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. [Google Scholar] [CrossRef]
  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. [Google Scholar] [CrossRef]
  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. In 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. [Google Scholar] [CrossRef]
  29. Mazumdar, N.; Roy, S.; Nayak, S. A Survey on Clustering Approaches for Wireless Sensor Networks. In 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. In 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. [Google Scholar] [CrossRef]
  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. In 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. In 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. [Google Scholar] [CrossRef]
  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. [Google Scholar] [CrossRef]
  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. [Google Scholar] [CrossRef]
  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. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  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. [Google Scholar] [CrossRef]
  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. [Google Scholar] [CrossRef]
  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. [Google Scholar] [CrossRef]
  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. [Google Scholar] [CrossRef]
  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. [Google Scholar] [CrossRef] [Green Version]
  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. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  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. [Google Scholar] [CrossRef]
  48. Al-Aboody, N.A.; Al-Raweshidy, H.S. Grey wolf optimization-based energy-efficient routing protocol for heterogeneous wireless sensor networks. In Proceedings of the 2016 4th International Symposium on Computational and Business Intelligence (ISCBI), Olten, Switzerland, 5–7 September 2016; pp. 101–107. [Google Scholar] [CrossRef]
  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. [Google Scholar] [CrossRef] [Green Version]
  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. [Google Scholar] [CrossRef] [Green Version]
Figure 1. Grey wolf social hierarchy.
Figure 1. Grey wolf social hierarchy.
Sensors 20 00820 g001
Figure 2. Network stability period with respect to the number of rounds. (a) The ratio of the advanced node is 0.1, and the HMGWO network stability period is compared with SEP, DEEC, M-SEP, and FIGWO; (b) The ratio of the advanced node is 0.2, and the network stability period of HMGWO relative to SEP, DEEC, M-SEP, and FIGWO.
Figure 2. Network stability period with respect to the number of rounds. (a) The ratio of the advanced node is 0.1, and the HMGWO network stability period is compared with SEP, DEEC, M-SEP, and FIGWO; (b) The ratio of the advanced node is 0.2, and the network stability period of HMGWO relative to SEP, DEEC, M-SEP, and FIGWO.
Sensors 20 00820 g002
Figure 3. Network lifetime with respect to the number of rounds. (a) The network lifetimes of HMGWO, SEP, DEEC, M-SEP, and FIGWO when α is 0.1; (b) The network lifetimes of the HMGWO, SEP, DEEC, M-SEP, and FIGWO when α is 0.2.
Figure 3. Network lifetime with respect to the number of rounds. (a) The network lifetimes of HMGWO, SEP, DEEC, M-SEP, and FIGWO when α is 0.1; (b) The network lifetimes of the HMGWO, SEP, DEEC, M-SEP, and FIGWO when α is 0.2.
Sensors 20 00820 g003
Figure 4. Number of data packets received by the base station. (a) The throughput of HMGWO against SEP, DEEC, M-SEP and FIGWO when α is equal to 0.1; (b) The throughput of HMGWO is compared to SEP, DEEC, M-SEP and FIGWO when α is equal to 0.2.
Figure 4. Number of data packets received by the base station. (a) The throughput of HMGWO against SEP, DEEC, M-SEP and FIGWO when α is equal to 0.1; (b) The throughput of HMGWO is compared to SEP, DEEC, M-SEP and FIGWO when α is equal to 0.2.
Sensors 20 00820 g004
Figure 5. Residual energy relative to the number of rounds. (a) Total residual energy of HMGWO against SEP, DEEC, M-SEP, and FIGWO when the ratio of advanced nodes is α = 0.1 ; (b) Total residual energy of HMGWO relative to SEP, DEEC, M-SEP, and FIGWO the ratio of advanced nodes is α = 0.2 ; (c) The residual energy deviation of HMGWO is compared with SEP, DEEC, M-SEP, and FIGWO when the ratio of advanced node is 0.1; (d) The residual energy deviation of HMGWO is compared with SEP, DEEC, M-SEP, and FIGWO when the ratio of advanced node is 0.2.
Figure 5. Residual energy relative to the number of rounds. (a) Total residual energy of HMGWO against SEP, DEEC, M-SEP, and FIGWO when the ratio of advanced nodes is α = 0.1 ; (b) Total residual energy of HMGWO relative to SEP, DEEC, M-SEP, and FIGWO the ratio of advanced nodes is α = 0.2 ; (c) The residual energy deviation of HMGWO is compared with SEP, DEEC, M-SEP, and FIGWO when the ratio of advanced node is 0.1; (d) The residual energy deviation of HMGWO is compared with SEP, DEEC, M-SEP, and FIGWO when the ratio of advanced node is 0.2.
Sensors 20 00820 g005
Table 1. Abbreviations used in this paper.
Table 1. Abbreviations used in this paper.
AbbreviationsExplanation
WSNWireless Sensor Network
HWSNHeterogeneous Wireless Sensor Network
CHCluster Head
BSBase Station
GWOGrey Wolf Optimizer
MGWOModified Grey Wolf Optimizer
LEACHLow Energy Adaptive Clustering Hierarchy Protocol
SEPStable Election Protocol
DEECDistributed Energy-Efficient Clustering Algorithm
M-SEPModified Stable Election Protocol
FIGWOFitness-Value-Based Improved Grey Wolf Optimizer
HMGWOA Routing Protocol for Heterogeneous Wireless Sensor Network Based on the Modified Grey Wolf Optimizer
Table 2. Simulation parameters.
Table 2. Simulation parameters.
ParameterValue
The area of the sensing region, Number of Sensor Nodes 100 2 ( m 2 ) ,   N   =   100
Portion of cluster heads p = 0.1
Packet Size l = 4000   bits
Data Aggregation Energy Cost E D A = 5   nJ / bit
Energy Cost of Transmitter/Receiver E e l e c = 50   nJ / bit
Transmission Coefficient of Amplifier (free space) ε f s = 10   pJ / bit / m 2
Transmission Coefficient of Amplifier (multi-path space) ε m p = 0.0013   pJ / bit / m 4
Initial energy of normal node 0.5   J
Ratio of Advanced Node α = 0.1 ,   α = 0.2
Weight of Fitness Function a 1 = a 2 = a 3 = 0.2
Ratio of Initial Energy of the Advanced Node to that of the Normal Node β = 2

Share and Cite

MDPI and ACS Style

Zhao, X.; Ren, S.; Quan, H.; Gao, Q. Routing Protocol for Heterogeneous Wireless Sensor Networks Based on a Modified Grey Wolf Optimizer. Sensors 2020, 20, 820. https://doi.org/10.3390/s20030820

AMA Style

Zhao X, Ren S, Quan H, Gao Q. Routing Protocol for Heterogeneous Wireless Sensor Networks Based on a Modified Grey Wolf Optimizer. Sensors. 2020; 20(3):820. https://doi.org/10.3390/s20030820

Chicago/Turabian Style

Zhao, Xiaoqiang, Shaoya Ren, Heng Quan, and Qiang Gao. 2020. "Routing Protocol for Heterogeneous Wireless Sensor Networks Based on a Modified Grey Wolf Optimizer" Sensors 20, no. 3: 820. https://doi.org/10.3390/s20030820

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop