Skip to main content
Sensors (Basel, Switzerland) logoLink to Sensors (Basel, Switzerland)
. 2019 Nov 30;19(23):5281. doi: 10.3390/s19235281

Energy-Efficient Cluster-Head Selection for Wireless Sensor Networks Using Sampling-Based Spider Monkey Optimization

Jin-Gu Lee 1, Seyha Chim 1, Ho-Hyun Park 1,*
PMCID: PMC6928726  PMID: 31801212

Abstract

Extending the lifetime and stability of wireless sensor networks (WSNs) through efficient energy consumption remains challenging. Though clustering has improved energy efficiency through cluster-head selection, its application is still complicated. In existing cluster-head selection methods, the locations where cluster-heads are desirable are first searched. Next, the nodes closest to these locations are selected as the cluster-heads. This location-based approach causes problems such as increased computation, poor selection accuracy, and the selection of duplicate nodes. To solve these problems, we propose the sampling-based spider monkey optimization (SMO) method. If the sampling population consists of nodes to select cluster-heads, the cluster-heads are selected among the nodes. Thus, the problems caused by different locations of nodes and cluster-heads are resolved. Consequently, we improve lifetime and stability of WSNs through sampling-based spider monkey optimization and energy-efficient cluster head selection (SSMOECHS). This study describes how the sampling method is used in basic SMO and how to select cluster-heads using sampling-based SMO. The experimental results are compared to similar protocols, namely low-energy adaptive clustering hierarchy centralized (LEACH-C), particle swarm optimization clustering protocol (PSO-C), and SMO based threshold-sensitive energy-efficient delay-aware routing protocol (SMOTECP), and the results are shown in both homogeneous and heterogeneous setups. In these setups, SSMOECHS improves network lifetime and stability periods by averages of 13.4%, 7.1%, 34.6%, and 1.8%, respectively.

Keywords: WSNs, sampling SMO, energy efficient CH selection, SSMOECHS, network lifetime, network stability

1. Introduction

Wireless sensor networks (WSNs) accumulate, analyze, and utilize data that are received wirelessly from sensor nodes, which have been used for various applications such as smart homes [1], air purifiers [2], and fire and disaster monitoring [3,4] due to their improved performance, ease of use, and low price. Sensor nodes are sometimes placed in hazardous environments, hindering the replacement of batteries or malfunctioning nodes. Furthermore, improving the battery performance of a node increases costs. Therefore, research has aimed to improve network lifetime and stability through a variety of network protocols [5].

The low-energy adaptive clustering hierarchy (LEACH) protocol improves energy efficiency via a clustering method [6]. When data are transmitted from a node to the base station (BS), energy consumption is affected by the distance between them. Clustering reduces the transmission distance of the nodes that are not cluster-heads (CHs), which are those that gather data from neighboring nodes for forwarding. Therefore, proper CH selection enables efficient energy consumption. In LEACH, nodes are evenly and probabilistically selected as CHs, disregarding the state and characteristics of the selected nodes, such as remaining energy, predicted energy consumption, and the number of neighboring nodes. The centralized use of information (e.g., battery status) from all nodes at the BS should be considered when selecting CHs. However, it is difficult to simultaneously acquire this information at the BS during transmission. In LEACH-C [7], to obtain the remaining energy information from nodes, the synchronization of node information is achieved by methods such as time-division multiple access. LEACH-C not only makes a variety of information available, it also enables higher computing power at the BS than that at the nodes. Thus, such a type of centralized operation can be leveraged to improve clustering.

Clustering based on swarm intelligence is a highly accurate approach that has been widely used for optimization protocols. This approach has been included in protocols based on particle swarm optimization (PSO) [8,9,10], bee colony optimization [11,12], ant colony optimization [13,14], among others. The recently proposed spider monkey optimization (SMO) mimics the behaviors of spider monkeys seeking food to quickly and accurately determine feasible solutions compared to other optimization algorithms based on swarm intelligence [15]. Therefore, various studies have used SMO for CH selection [16,17,18]. We modified the original SMO algorithm in this study to further improve CH selection.

In most existing studies using clustering for WSNs, the nearest nodes to the optimal location are defined as CHs during selection. Thus, clustering mainly locates CHs at the cluster center, and operation problems may arise when the optimal CH locations differ from the actual node positions. First, the calculation burden increases when determining the nearest nodes after defining the CHs, thus increasing energy consumption and shortening the network’s lifetime. Second, the divergence between the optimal CH location and actual CH node location may be large, and a node belonging to another cluster may be mistakenly used as CH. Finally, a node may be selected as CH for multiple clusters given its closeness to the optimal location in different clusters. Consequently, the number of CH nodes may be smaller than the number of clusters, leading to suboptimal operation. Therefore, clustering should be adapted to consider the characteristics of WSNs, including the actual node locations.

In this study, we modified SMO by using a sampling method for CH selection in WSNs. When sampling a population of nodes, their actual locations are always retrieved, thus preventing the abovementioned problems arising from the divergence between the optimal CH location and the actual node location. Moreover, multiple selections of nodes as CH among different clusters are prevented during sampling while avoiding complex computations. In fact, the modified SMO only provides optimal results from the best samples (i.e., actual node locations), as it only differs from the conventional SMO because its searching is constrained to samples. We first introduce the sampling-based SMO approach, and then we detail its application to WSNs by proposing the sampling-based SMO and energy-efficient CH selection (SSMOECHS). We also provide experimental results comparing SSMOECHS with existing protocols to illustrate CH selection and node energy efficiency over time. These results confirm that SSMOECHS improves the lifetime and stability of the WSN compared to similar protocols, namely LEACH-C [7], PSO-C [8], and SMOTECP [18].

The main contributions of this work are as follows:

  • To the best of our knowledge, this is the first work that applies the sampling method to SMO to improve the lifetime and stability of wireless sensor nodes.

  • We propose the sampling-based SMO and energy-efficient CH selection (SSMOECHS).

  • We increase the lifetime and stability of the network through the proposed SSMOECHS.

  • To evaluate the performance of our protocol, we compare it with similar protocols, namely LEACH-C [7], PSO-C [8], and SMOTECP [18].

The remainder of this manuscript is organized as follows. Section 2 summarizes related work. Section 3 introduces the sampling-based SMO, followed by the proposed SSMOECHS protocol in Section 4. Section 5 reports the experimental results and compares SSMOECHS with similar protocols and provides a discussion. We finally draw conclusions in Section 6.

2. Related Work

In LEACH [6], clustered hierarchical networks are used to increase the energy efficiency of WSNs. The clustering method selects a place for data collection (i.e., CH) per cluster. In addition, a probabilistic approach is used for CH selection, but the information of the cluster nodes, such as remaining energy, is not considered. To utilize the information of other nodes, it should be transmitted, but sending and receiving such information on wireless networks is difficult. LEACH-C [7] uses time-division multiple access to address this problem. The BS informs each CH about the CH selection results and synchronizes transmission. The CHs also communicate with neighboring nodes and send schedules to eliminate data time lags. LEACH-C performs CH selection at other network components than the sensor nodes, which have limited computational resources. Because computations for CH selection are handled by the BS and other components, high computing power can be leveraged.

In recent years, protocols outperforming LEACH-C have been proposed, as CH selection that considers more data is feasible with improvements of computing power. In particular, swarm intelligence has been adopted in several protocols due to the high computing power currently available. PSO-C was the first protocol to utilize PSO in WSNs [8]. After finding the locations of the optimal CHs, the nodes closest to these locations are defined as CHs. As search using PSO can provide remarkable results, optimally locating the CH increases both energy efficiency and the lifetime of the WSN. However, PSO-C selects the CH without considering the distance to the BS, possibly reducing energy efficiency during CH–BS data transmission. A PSO based Energy efficient Cluster Head Selection (PSOECHS) [9] addresses this problem via an objective function that considers the CH–BS distance and extends the network lifetime by varying the way each node selects a CH, which allows for the control the number of nodes belonging to each cluster. Thus, energy consumption can be controlled during data reception from each CH. However, selecting a CH per sensor node demands high computational power and increases energy consumption, aspects disregarded during PSOECHS simulations.

In [19], the amount of received data and number of nodes were adjusted by considering the coverage area of each CH, assuming that most sensor nodes are evenly distributed in the WSN. Thus, if the coverage is similar across CHs, they receive data from a similar number of nodes. Therefore, even if a node does not select a CH, the amount of received data can be adjusted. PSO-EC calculates energy distribution by fixing the coverage area and selects the energy centers as CHs [10]. By selecting the node with the highest energy among surrounding nodes as CH, it improves energy efficiency. However, this method relies on energy distribution, undermining its performance at the initial state when node energy is evenly distributed.

SMO-C [16] is a protocol that adopts SMO [15], and like PSO-C, optimally locates the CH that is assigned to the nearest node. The objective function consists of two fitness values, namely node–CH distance and the energy consumed by nodes and CHs. However, energy consumption when sending data from a node to the CH is determined by the distance between adjacent nodes. Therefore, more calculations than in other protocols are required to obtain the fitness values, and the results have not shown a considerable improvement over similar protocols. In fact, the results in [16] showed that SMO-C is not much better than LEACH. Alternatively, SMOEC [17] has been shown to improve SMO-C by specifying the transmission protocol between CHs. Though the network lifetime is improved, stability remains an issue because certain nodes early deplete their energy.

When using clustering based on PSO and SMO, a specific location is first determined for a CH. Then, the node closest to this location is defined as CH. In SMOTECP [18], CH selection is directly optimized to avoid this unnecessary computation. Binary SMO is adopted by considering CH selection as a binary problem [20] where CH nodes are labeled as 1 and the others as 0 for optimization using Boolean operations. However, this method cannot control the number of CHs, because the Boolean operations retrieve a varying number of ones (i.e., CHs), which can in turn affect fitness values and undermine optimization. In addition, SMOTECP is difficult to apply in networks where the number of CHs is important.

Therefore, we addressed various important factors for CH selection in this study:

  • The objective function increases the energy efficiency by including the fitness value for energy consumption.

  • The objective function includes the fitness value for cover area to adjust the number of nodes covered by each CH.

  • The protocol can be used even when all nodes have the same energy (initial state).

  • Unnecessary operations are minimized by directly selecting nodes.

  • The number of CHs can be controlled and predicted.

3. Sampling-Based Spider Monkey Optimization

SMO [15] is an optimization method inspired by the behavior of spider monkey foraging. When spider monkeys run out of food, they start exploration, and all the monkeys belonging to the group are controlled by a global leader. The global leader divides the group into several local groups as needed, and every local group is controlled by a local leader. After one round of exploration, the group members share their exploration results, and the leader moves to the location with the most abundant food resources (i.e., optimal result). This way, the global leader moves to the best location in the overall exploration results, and the local leaders move to the best location from their local groups. Exploration with local groups speeds up foraging, and the location of other monkeys prevents location biasing. Thus, SMO quickly retrieves the optimal location while avoiding local maxima.

SMO is useful for searching a specific location in a continuous environment. In WSNs, however, nodes have discrete locations. Therefore, if no node exists in some location at each round, exploration fails. Moreover, if the nearest node is selected as new destination to explore, additional operations are required to determine the nearest node. The proposed sampling-based SMO aims to find optimal feasible samples instead of locations. If the population to be sampled is composed of nodes, the results are node locations Therefore, the exploration failure problem caused by the absence of nodes in the optimized location is solved.

3.1. Sampling Probability

Samples are probabilistically extracted from the population with a sampling probability. This probability is important because we do not know the sampling results exactly, but we can infer the expected samples through the corresponding distribution. If the weight in SMO is used as sampling probability, the expected value may become zero or even negative. Therefore, the weight must be appropriately set to be used as the sampling probability in the proposed sampling-based SMO.

The sampling probability is necessary to update the samples for exploration in three phases, namely local leader, global leader, and local-leader decision phases. The local leader phase in [15] is defined as

SMinewSMi+Rand(0,1)×(LLSMi)+Rand(1,1)×(SMrSMi), i=(1,2,,N), (1)

where N is the number of spider monkeys, SMinew is the updated location of the i-th spider monkey, SMi is its current location, Rand(0,1) is a random number between 0 and 1, LL is the location of a local leader, and SMr is the location of a randomly selected spider monkey from the same group. If Equation (1) is expressed in terms of weights as

SMinew(1Rand(0,1)Rand(1,1))×SMi+Rand(0,1)×LL+Rand(1,1)×SMr, i=(1,2,,N), (2)

the weights of SMi, LL and SMr are respectively given by

  • wSMi=1Rand(0,1)Rand(1,1)

  • wLL=Rand(0,1)

  • wSMr=Rand(1,1)

Both wSMi and wSMr can take negative values, and wSMr may even make SMr disappear, as its expected value is 0. To prevent these problems, we used the logistic softmax function to randomize the weights. This function has been recently used in many studies for meaningful selections such as Boltzmann exploration [21], classification using neural networks [22], reinforcement learning, and classical statistical sampling [23]. The logistic softmax function consists of exponential functions, which effectively prevents negative or zero weights:

softmax(w1,w2,,wj,,wM)=(exp(w1)j=1Mexp(wj), , exp(wj)j=1Mexp(wj),,exp(wM)j=1Mexp(wj)), (3)

where M is the number of weights and Wj is the j-th weight. Hence, we consider the sampling probability as the softmax weights for use in Equation (2):

ProbLLP(P1,P2,P3)=softmax(wSMi,wLL,wSMr) (4)

Table 1 lists the expectation of weights (E[Weight]), the notation of sampling probability, and the expectation of sampling probability (E[Probability]) for each exploration phase. During each phase, different spider monkeys are selected, similar to the approach in [15]. The abbreviations shown in the weight column in Table 1 are as follows: SMi represents the i-th spider monkey, LL represents local leader, GL represents global leader, and SMr represents a randomly selected monkey from the same group that is either the same local group in the local leader phase or the global group in the global leader phase.

Table 1.

Sampling probability definitions according to sample update phase.

Phase Local Leader Phase Global Leader Phase Local-Leader Decision Phase
Weight wSMi wLL wSMr wSMi wGL wSMr wSMi wLL wGL
E[Weight] 0.5 0.5 0 0.5 0.5 0 0 0.5 0.5
Notation softmax(wSMi,wLL,wSMr) softmax(wSMi,wGL,wSMr) softmax(wSMi,wGL,wLL)
E[Probability] (0.3837,0.3837,0.2327) (0.3837,0.3837,0.2327) (0.2327,0.3837,0.3837)

We aim to select CHs, which are usually more than one. Therefore, the number of samples, NS, is above 1, and each spider monkey must have a probability for all these NS elements. Hence, each weight listed in Table 1 should be expressed as an array instead of a single variable:

WSMiNS=wSMi×VNS, where VNS=[111]NS, (5)

where WSMiNS is a weight array composed of NS copies of wSMi. The sampling probability in Equation (4) is modified as follows:

ProbLLP(P1,P2,,Pj,,PM)=softmax(WSMiNS,WLLNS,WSMrNS), (6)

where M is the number of sampling probabilities, and as each spider monkey has NS elements, M = NS×3.

3.2. Optimization Algorithm

In a sampling-based SMO, exploration is divided into seven phases, similar to a conventional SMO [15]: initialization, local leader, global leader, local-leader learning, global-leader learning, local-leader decision, and global-leader decision phases. Unlike a conventional SMO, sampling-based SMO updates the exploration samples along with the exploration location.

A sample is denoted as follows:

Sample(POP={Sj},NS,Prob=(Pj)), j=(1,2, ,M), (7)

where Sample indicates the sample, POP is the population (sampling candidate group), NS is the number of samples (i.e., the number of CHs in this manuscript), and Prob is the sampling probability array. As the elements of set POP have their own sampling probabilities, the size of both is M, and each element is indexed by j.

Figure 1 shows the overview of a sampling-based SMO. It can be seen that the sampling-based SMO consists of seven phases: initialization, local leader phase, global leader phase, local leader learning phase, global leader learning phase, and two decision phases (local leader decision phase and global leader decision phase). The subsections describe the operations performed in each of these phases.

Figure 1.

Figure 1

Flowchart of sampling-based spider monkey optimization (SMO).

3.2.1. Initialization

Exploration starts with initialization. Sampling is repeated N(Swarm Size) times in this phase to determine the initial samples per spider monkey:

SMi=Sample(U,NS,U(0,1)),i=(1,2,,N), (8)

where U is the exploration universe (i.e., a set containing all elements that can be sampled); U(0,1) represents the uniform distribution between 0 and 1, indicating that all the elements have the same sampling probability; and SMi represents the samples of the i-th spider monkey. Each spider monkey explores the fitness value of samples. Then, it selects those with the highest fitness values as initial global and local leaders.

3.2.2. Local Leader Phase

In this phase, each spider monkey SMi updates its samples using the samples of local leader LL and random spider monkey SMr, all belonging to the same group:

SMinew{Sample({X|X=SMiLLSMr},NS,softmax(WSMiNS,WLLNS,WSMrNS)),  if pr>Rand(0,1)SMi,          otherwise (9)

where {X|X=SMiLLSMr} is the population; the softmax function provides the sampling probability, which is given by Equation (6); and pr is the perturbation rate that increases linearly from 0.1 to 0.4, increasing the search effort with the number of iterations. This is similar to that shown in [15] and is expressed as follows.

prC+1=prC+0.40.1Cmax, pr1=0.1, (10)

where C is the iteration counter and Cmax is the maximum number of iterations. Figure 2 illustrates the procedure for the local leader phase, where NS = 5 and the S1–S5 of each spider monkey (SMi, LL and SMr) represent samples. For this NS value, each spider monkey has 5 samples, and the population thus has 15 elements. As 5NS samples are taken from the local leader phase, the number of samples per spider monkey is also 5NS after this phase.

Figure 2.

Figure 2

Local leader phase in the sampling-based SMO.

3.2.3. Global Leader Phase

In this phase, each spider monkey updates its samples using samples global leader GL and randomly selected monkey SMr:

SMinew{Sample({X|X=SMiGLSMr},NS,softmax(WSMiNS,WGLNS,WSMrNS)),  if Pi>Rand(0,1)SMi,      otherwise. (11)

As shown in [15], each spider monkey decides whether to update its samples with probability Pi. The higher fitness value implies more similarity to the global leader, and the probability changes with the number of iterations as follows:

Pi=0.9×FitnessiMAX(Fitness)+0.1. (12)

where Fitnessi is the fitness value of the i-th spider monkey and MAX(Fitnees) is the maximum value of the overall fitness value.

3.2.4. Local-Leader Learning Phase

In this phase, each local leader updates its samples with the best samples among the exploration results of the local group members. If there is no change in the samples of a local leader, the local leader count, LLC, is increased by 1.

3.2.5. Global-Leader Learning Phase

In this phase, the global leader updates its samples with the best samples among the exploration results of all the members. If there is no change in the samples of a global leader, the global leader count, GLC, is increased by 1.

3.2.6. Local-Leader Decision Phase

When the LLC is above the local leader limit, LLL, local leaders change the samples of members within the local group. In addition, each member simultaneously considers the samples of the global and local leaders to construct new samples to explore or initialize samples using Equation (7):

SMinew{Sample({X|X=SMiGLLL},NS,softmax(WSMiNS,WGLNS,WLLNS)), if  pr>Rand(0,1)Initialization,      otherwise (13)

where pr is as defined in Equation (10). This phase allows local group members to explore more samples.

3.2.7. Global-Leader Decision Phase

When the GLC is above the global leader limit, GLL, the global leader divides the entire group into several local groups, all of which have corresponding local leaders. In a sampling-based SMO, the number of local groups, LG, is increased by 1 until reaching its maximum, MG.

4. Proposed CH Selection Protocol

The proposed protocol aims to improve the energy efficiency of WSNs through CH selection. Therefore, we considered several conditions that can affect energy efficiency. Then, we compared different protocols under the same conditions in terms of performance.

4.1. Network Model

Sensor nodes in the WSN were randomly generated inside a square area. The network model for measuring energy efficiency is defined as follows:

  1. All sensor nodes have a unique identifier (ID).

  2. There is one BS in the network located outside the square area of the WSN.

  3. All sensor nodes and the BS remain in fixed locations, which are known.

  4. The BS and sensor nodes announce their locations during initial communication. Hence, the BS knows the neighboring nodes (covered nodes) of each sensor node.

  5. The sensor nodes have their own batteries and cannot share or charge energy.

  6. If the available energy of the sensor nodes is exhausted, these sensor nodes are not used again.

  7. No factors that disturb data transmission or damage the nodes in the WSN are considered.

4.2. Energy Model

We considered the energy model from [7,8,18]. Energy is consumed when handling data in the WSN through three processes, namely data transmission, reception, and aggregation—the energy consumed is, respectively, denoted as data transmission energy ETX, reception energy ERX, and aggregation energy EDA. Unlike EDA, which remains fixed over time, the values of ETX and ERX vary depending on the situation. Specifically, ETX depends on distance d from the transmitting sensor node to the receiver, and different definitions are used depending on whether d is above or below threshold distance d0. If d < d0, the free-space model is used, and the multipath model is used otherwise:

ETX={l×Eelec+l×ϵfs×d2  , if d<d0l×Eelec+l×ϵmp×d4  , otherwise, (14)

where Eelec is the electric energy required to convert 1 bit of data into a signal, l is the data length, ϵfs and ϵmp are the power amounts used by the free-space and the multipath models, respectively, and they serve as criteria for determining d0 as follows:

d0=ϵfsϵmp. (15)

As reception energy, ERX is that required to convert a received signal into data, and energy Eelec is also consumed during this process; like for ETX, and ERX depends on the length of received data:

ERX=l×Eelec. (16)

4.3. Objective Function

Selecting the proper CHs in hierarchy clustering protocols is essential to increase the energy efficiency of WSNs. The first important consideration for the selection of CHs is their distribution, as CHs concentrated in one side make some distances from sensor nodes to the CHs become large. Thus, the gain from transmission distance that each node can obtain from the nearest CH is reduced. The CHs must be properly distributed to reduce transmission energy consumption at the nodes. A mathematical formalization is required to quantify the appropriate distribution of CHs. Similar to [10,19], we defined the coverage area of each CH, where a proper distribution of CHs should retrieve both similar coverage area across CHs and coverage for every node, as:

ACover=dfar2×πNS, (17)

where ACover is the coverage area and dfar2 is the squared distance to the farthest node from the midpoint of the nodes. Hence, all nodes are within dfar2π, the circular area from the midpoint of the nodes to dfar2, and any node inside the circle covered by a CH has a distance shorter than the radius to that CH. In addition, comparing distances is simpler than verifying whether a node is inside a circle:

RCover=ACoverπ=dfar2×πNS×π=dfar2NS, (18)

where RCover is the distance (radius) to determine whether a node is within coverage area ACover. The set of nodes covered by the k-th CH is expressed as

Coverk={NodeID|Distance(NodeID,CHk)<RCover},k=(1,2,,NS)   ID, (19)

where Distance(NodeID,CHk) is the distance from the node uniquely distinguished by ID to the k-th CH. Note that RCover considers that the entire coverage area is divided evenly. Thus, more nodes covered by the CHs implies a better distribution. Therefore, a fitness value can be expressed as

F1=|k=1NSCoverk|, (20)

where |  | denotes the cardinality of the set (i.e., number of elements) and the union prevents counting overlapping nodes covered by more than one CH.

Another consideration is the node energy, which is widely used for CH selection [7,8,9,10,11,12,13,14,15,16,17,18,19]. The node energy is divided into the transmission, reception, residual, and data aggregation energy, all of which we combine back again into the reserve energy (i.e., the energy consumed and left when a node becomes a CH). If a node with very low reserve energy is selected as CH, it can be depleted without receiving all the data from neighboring nodes, thus reducing network stability. Therefore, nodes with high reserve energy are preferred as CHs. The fitness value for the reserve energy is expressed as

F2=k=1NSRESk(|Coverk|×ERX+EDA+ETX), (21)

where RESk is the residual energy of the k-th CH and ETX, ERX, and EDA correspond to the energy for data transmission, reception, and aggregation mentioned in Section 4.2, respectively.

The objective function, Fobj, simultaneously considers F1 and F2 through their weighted sum for balancing their contribution during optimization. To establish the objective function, we used min–max normalization. As the number of covered nodes and the reserve energy are always greater than 0, the minimum of the two fitness values is 0. Therefore, the objective function normalizing the two fitness values is given by

Fobj=wF1×F1MAX(F1)+wF2×F2MAX(F2), (22)

where wF1 and wF2 are the weights of the corresponding fitness values (both set to 0.5 in this study). As higher values of F1 and F2 indicate better CH selection, the goal is:

Maximize(Fobj). (23)

4.4. CH Selection Protocol

In this subsection, we detail the proposed SSMOECHS protocol for CH selection.

Figure 3a shows the communication protocol between the BS and nodes. When a WSN is established, each sensor node sends initial data to the BS, including node ID and location. The BS selects CHs through sampling-based SMO by using the received information. The BS informs the CHs that they have been selected as CHs and transmits synchronization information. This process is shown in Figure 3a as a line joining the gray circle A. After CH selection, data transference proceeds similarly to LEACH-C [7] and SMOTECP [18]. As shown in Figure 3b, the CHs inform their covered nodes about the selection and wait for acknowledgment, an acknowledgement (ACK) signal. The CHs that receive the ACK signal send a schedule for time division multiple access to the covered nodes and collect data for some period, after which the CHs transmit the collected data to the next CH or BS. Here, the CHs that send data to other CHs are called outer CHs, and CHs that send data directly to the BS are called inner CHs. This distinction is determined by calculating the median of the distances (MD) between the CHs and the BS, shown in Figure 3b as the flowchart of gray circle B. Data collection using wireless sensor nodes at the BS is repeated until the energy of all nodes is exhausted.

Figure 3.

Figure 3

Figure 3

Flowchart of sampling-based spider monkey optimization and energy-efficient cluster head (SSMOECHS) protocol. (a) Communication between the base station (BS) and nodes and (b) communication between cluster heads (CHs) and nodes (SSMO: sampling-based SMO and TDMA: time division multiple access).

Figure 4 depicts inner CHs (yellow dots) and outer CHs (red dots), where the former are those relatively close to the BS and the latter are farther from the BS. Each CH collects the data of neighboring nodes (blue dots), and it then transmits them. Hence, inner CHs send data directly to the BS, whereas outer CHs determine and transmit data to their nearest inner CHs. As shown in Equation (14) that transmission energy is influenced by distance, and this transmission method can reduce energy consumption. The dataflow over the CHs is depicted with red lines in Figure 4.

Figure 4.

Figure 4

SSMOECHS network topology and CH distribution.

5. Results and Discussion

We compared the proposed SSMOECHS to centralized protocols including LEACH-C [7], PSO-C [8], and SMOTECP [18] through an implementation on Python 3.6 using relevant libraries, such as Networkx, Numpy, and Matplotlib. The experiment was conducted both in a homogeneous setup, where the initial energy of all nodes was the same, and in a heterogeneous setup, where the initial energy differed among nodes. The experimental results are reported as network topology, network lifetime, consumed energy, and energy efficiency.

5.1. Experimental Setup

The same experimental settings were used to fairly compare the energy efficiency of the evaluated protocols by adopting similar parameters to those from most studies [6,7,8,9,10,11,12,13,14,15,16,17]. The experimental parameters are summarized in Table 2.

Table 2.

Network parameters for the evaluation of CH selection protocols.

Parameter Value
Number of nodes 100
Network size 100 × 100 m
Location of the BS (50,150) m
Homogeneous initial energy (E0) 1 J
Heterogeneous initial energy (Ehete) Rand(0.5,1) J
Radio electronics energy (Eelec) 50 nJ/bit
Free-space channel parameter (ϵfs) 10 pJ/bit/m2
Multipath channel parameter (ϵmp) 0.0013 pJ/bit/m4
Data aggregation energy (EDA) 5 nJ/bit
CH selection probability (PCH) 5%
Length of the message sent from node to CH 2800 bits
Length of packets sent from CH to the BS 6400 bits

The other parameters were similar to those in literature, except for the BS location, which varied depending on the purpose of each analysis. For instance, it was set to (50,50) m in [6,18], (50,150) m in [16,24], and (50,175) m in [7,8,9]. The distance from the node varied depending on the BS location and determined the transmission model (Equation (14)). Calculating d0 using Equation (15) and the values of ϵfs and ϵmp in Table 2 retrieved a threshold of 87.706 m. When the BS was located at (50,50) m, the distance to the farthest node was 70.71 m. Therefore, all nodes sent data using the free-space model. When the BS was located at (50,175) m, the distance to every node ranged from 50 to 182 m, and hence most nodes used the multipath model. We located the BS at (50,150) m to have a ratio of 1:2 for using the free-space and multipath models, thus evaluating both models. In the SMOTECP [18] protocol, the location of the BS was set to (50,50) m. Thus, SMOTECP determined all CHs as external CHs when the location of the BS was (50,150) m. Therefore, the criteria for selecting inner CHs and outer CHs described in [18] should be changed. For a fair experimental environment, after selecting the CHs in the manner shown in [18], the inner and outer CHs were determined as shown in Figure 3b. SSMOECHS also requires swarm parameters for sampling-based SMO, and these parameters are listed in Table 3. These parameters were also used for PSO-C and SMOTECP.

Table 3.

Swarm parameters for optimization.

Parameter Value
Swarm size 40
Maximum number of iterations (Cmax) 100
Maximum number of groups 4
Global leader limit 10
Local leader limit 20

5.2. Performance Evaluation

Figure 5a shows the initial network topology when nodes were generated, whereas Figure 5b shows the network topologies after CH selection for the evaluated protocols. The network topology results show the transmission path and distance. As shown in Equation 14, since the transmission distance was related to the transmission energy, the energy consumption could be estimated from the network topology result. LEACH-C retrieved an unsuitable CHs distribution compared to the other protocols that used swarm intelligence. In fact, LEACH-C provided long distances for some node–CH transmission paths. The other protocols retrieved a relatively similar energy consumption at the nodes. The red lines in Figure 5b allowed for the estimation of the CH transmission energy, which mainly depended on the distance. SSMOECHS provided similar consumption compared to the other protocols, but with a more evenly distributed transmission energy. Therefore, SSMOECHS could properly distribute the energy consumption of the entire network to increase energy efficiency.

Figure 5.

Figure 5

Network topology results according to protocol. (a) Initial network topology and (b) results for every evaluated protocol. (Black lines, transmission node–CH; red lines, transmission CH–CH or CH–BS).

Figure 6 and Figure 7 show the simulation results under the homogeneous setup, in which the initial energy of all nodes in the WSN was 1 J. SSMOECHS had the latest first node dead compared to the other protocols, thus providing a more stable network for a longer period. Given that both half and last node dead withstand the longest, SSMOECHS also extended the network lifetime. In Figure 6, the last node dead of SSMOECHS occurred last, indicating the improved network lifetime. Figure 7 shows the total energy consumption per protocol. Again, SSMOECHS outperformed the other protocols by providing the most efficient energy consumption. The execution rounds at which first, half, and last node dead occurred under the homogeneous setup are listed in Table 4.

Figure 6.

Figure 6

Alive nodes according to protocol execution round under homogeneous setup.

Figure 7.

Figure 7

Energy consumption according to protocol execution round under homogeneous setup.

Table 4.

Alive nodes according to protocol execution round under homogeneous setup.

Alive Nodes [%] LEACH-C PSO-C SMOTECP SSMOECHS
99 (FND) 2100 2234 2348 2522
90 2230 2347 2413 2838
80 2301 2447 2444 2970
70 2344 2486 2464 3021
60 2396 2550 2490 3065
50 (HND) 2431 2662 2510 3076
40 2486 2725 2533 3085
30 2550 2851 2559 3094
20 2649 2905 2637 3103
10 2725 2922 2738 3107
0 (LND) 2771 2947 3008 3112

Values in bold indicate the best results. FND, first node dead; HND, half node dead; and LND, last node dead.

Figure 8 and Figure 9 show the simulation results under the heterogeneous setup, in which each node started with different energy levels between 0.5 and 1 J. Figure 8 shows that SSMOECHS retrieved the latest first, half, and last node dead. Comparing Figure 6 and Figure 8, it can be seen that the performance of SSMOECHS and SMOTECP was similar, but it was notably higher than PSO-C. After PSO-C determined the expected CH position, the nearest node was found, which seemed to undermine energy efficiency more notably under the heterogeneous than under the homogeneous setup. Figure 9 confirmed that SSMOECHS consumes energy more efficiently than the other protocols under the heterogeneous setup. The execution rounded at which first, half, and last node dead occurred under the heterogeneous setup are listed in Table 5.

Figure 8.

Figure 8

Alive nodes according to protocol execution round under heterogeneous setup.

Figure 9.

Figure 9

Energy consumption according to protocol execution round under heterogeneous setup.

Table 5.

Alive nodes according to protocol execution round under heterogeneous setup.

Alive Nodes [%] LEACH-C PSO-C SMOTECP SSMOECHS
99 (FND) 1294 1463 2027 2071
90 1515 1590 2101 2172
80 1633 1675 2109 2200
70 1695 1741 2119 2218
60 1754 1943 2126 2235
50 (HND) 1843 2068 2132 2242
40 1924 2147 2135 2248
30 1976 2174 2139 2250
20 2026 2195 2142 2254
10 2078 2206 2150 2255
0 (LND) 2201 2210 2243 2259

Values in bold indicate the best results. FND, first node dead; HND, half node dead; LND, last node dead.

Table 6 lists the network stable period, unstable period, and lifetime, where stability corresponds to all the sensor nodes being alive. Under the homogeneous setup, SSMOECHS improved the stability period by 20%, 12.9%, and 7.4% compared to LEACH-C, PSO-C, and SMOTECP, respectively. Likewise, the network lifetime was improved by 12.3%, 5.6%, and 3.5%. Under the heterogeneous setup, SSMOECHS improved the stability period by 60%, 41.6%, and 2.2% compared to LEACH-C, PSO-C, and SMOTECP, respectively. Moreover, the network lifetime was improved by 2.6%, 2.2%, and 0.7%, respectively. Overall, the results confirm that SSMOECHS improved both network stability and lifetime compared to other CH selection methods.

Table 6.

Network stable period and lifetime (in number of execution rounds) according to protocol and setup.

Homogeneous Setup
LEACH-C PSO-C SMOTECP SSMOECHS
Stable Period 2100 2234 2348 2522
Unstable Period 671 713 660 590
Lifetime 2771 2947 3008 3112
Heterogeneous Setup
LEACH-C PSO-C SMOTECP SSMOECHS
Stable Period 1294 1463 2027 2071
Unstable Period 907 747 216 188
Lifetime 2201 2210 2243 2259

Values in bold indicate the best results.

6. Conclusions

CH selection is essential to guarantee the energy efficiency in WSN protocols based on clustering. In many previous studies, the nearest nodes have been selected as CHs after finding the ideal CH location. We considered that the difference between the ideal CH location and actual CH node location can undermine energy efficiency. Therefore, we devised SSMOECHS, a CH selection method that considers actual node locations through sampling. The optimal CHs are obtained from sampling and optimized using a modified SMO algorithm, thus preventing the divergence between ideal CH location and actual CH node location and improving energy efficiency. To evaluate the proposed method, the experiment is divided into two setups: homogeneous setup and heterogeneous setup. In the homogeneous setup, SSMOECHS improved the network lifetime and stability by averages of 13.4% and 7.1%, respectively, compared to other similar protocols (LEACH-C, PSO-C, and SMOTECP). Likewise, in the heterogeneous setup, SSMOECHS improved the network lifetime and stability by averages of 34.6% and 1.8%, respectively. The superior performance of the proposed SSMOECHS was confirmed through experimental results, as it improved network lifetime and stability through efficient energy consumption. Consequently, the existing problems can be solved by changing the location-based CH selection method to the node-based CH selection method via SSMOECHS, and the network performance can be improved.

Author Contributions

The work presented here was completed in collaboration among all authors. Research conceptualization, J.-G.L.; methodology, J.-G.L. and S.C.; simulations, S.C.; formal analysis, J.-G.L.; experiment result analysis, J.-G.L. and S.C.; writing—original draft preparation, J.-G.L.; writing—review and editing, J.-G.L. and H.-H.P.; visualization, J.-G.L.; supervision, H.-H.P.; funding acquisition, H.-H.P.

Funding

This research was funded and conducted under the Chung-Ang University Graduate Research Scholarship in 2018, and the Competency Development Program for Industry Specialists of the Korean Ministry of Trade, Industry and Energy (MOTIE), operated by Korea Institute for Advancement of Technology (KIAT) (Project number: P0002397, Project name: HRD Program for Industrial Convergence of Wearable Smart Devices).

Conflicts of Interest

The authors declare no conflicts of interest.

References

  • 1.Alaiad A., Zhou L. Patients’ adoption of WSN-based smart home healthcare systems: An integrated model of facilitators and barriers. IEEE Tran. Prof. Commun. 2017;60:4–23. doi: 10.1109/TPC.2016.2632822. [DOI] [Google Scholar]
  • 2.Boubrima A., Bechkit W., Rivano H. Optimal WSN deployment models for air pollution monitoring. IEEE Trans. Wirel. Commun. 2017;16:2723–2735. doi: 10.1109/TWC.2017.2658601. [DOI] [Google Scholar]
  • 3.Kadri B., Bouyeddou B., Moussaoui D. Early Fire Detection System Using Wireless Sensor Networks; Proceedings of the 2018 International Conference on Applied Smart Systems (ICASS); Médéa, Algeria. 24–25 November 2018; pp. 1–4. [Google Scholar]
  • 4.Lule E., Bulega T.E. A Scalable Wireless Sensor Network (WSN) Based Architecture for Fire Disaster Monitoring in the Developing World. Int. J. Comput. Netw. Inf. Secur. 2015;2:45–49. doi: 10.5815/ijcnis.2015.02.05. [DOI] [Google Scholar]
  • 5.Guleria K., Verma A.K. Comprehensive review for energy efficient hierarchical routing protocols on wireless sensor networks. Wirel. Netw. 2019;25 doi: 10.1007/s11276-018-1696-1. [DOI] [Google Scholar]
  • 6.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. 4–7 January 2000; pp. 1–10. [Google Scholar]
  • 7.Heinzelman W., Chandrakasan A., Balakrishnan H. An Application-Specific Protocol Architecture for Wireless Microsensor Networks. IEEE Trans. Wirel. Commum. 2002;1:660–670. doi: 10.1109/TWC.2002.804190. [DOI] [Google Scholar]
  • 8.Abdul Latiff N.M., Tsimenidis C.C., Sharif B.S. Energy-Aware Clustering for Wireless Sensor Networks using Particle Swarm Optimization; Proceedings of the 2007 IEEE 18th International Symposium on Personal, Indoor and Mobile Radio Communications; Athens, Greece. 3–7 September 2007; pp. 1–5. [Google Scholar]
  • 9.Srinivasa Rao P.C., Prasanta K., JanaHaider B. A particle swarm optimization based energy efficient cluster head selection algorithm for wireless sensor networks. Wirel. Netw. 2017;23:2005–2020. doi: 10.1007/s11276-016-1270-7. [DOI] [Google Scholar]
  • 10.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 doi: 10.3390/s19030671. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 11.Zhang D.G., Wang X., Song X., Zhang T., Zhu Y. A new clustering routing method based on PECE for WSN. EURASIP J. Wirel. Commun. Netw. 2015;1:162. doi: 10.1186/s13638-015-0399-x. [DOI] [Google Scholar]
  • 12.Mann P.S., Singh S. Energy-Efficient Hierarchical Routing for Wireless Sensor Networks: A Swarm Intelligence Approach. Wirel. Pers. Commun. 2017;92:785–805. doi: 10.1007/s11277-016-3577-1. [DOI] [Google Scholar]
  • 13.Salehpour A.A., Mirmobin B., Kusha A.A., Mohammadi S. An energy efficient routing protocol for cluster-based wireless sensor networks using ant colony optimization; Proceedings of the 2008 International Conference on Innovations in Information Technology; Al Ain, UAE. 16–18 December 2008; pp. 455–459. [Google Scholar]
  • 14.Song M., ZHAO C. Unequal clustering algorithm for WSN based on fuzzy logic and improved ACO. The J. Chin. Univ. Posts Telecommun. 2011;18:89–97. doi: 10.1016/S1005-8885(10)60126-4. [DOI] [Google Scholar]
  • 15.Bansal J.C., Sharma H., Jadon S.S., Clerc M. Spider monkey optimization algorithm for numerical Optimization. Memetic Comput. 2014;6:31–47. doi: 10.1007/s12293-013-0128-0. [DOI] [Google Scholar]
  • 16.Gui T., Ma C., Wang F., Wilkins D.E. A novel cluster-based routing protocol wireless sensor networks using spider monkey optimization, in Industrial Electronics Society; Proceedings of the IECON 2016-42nd Annual Conference of the IEEE; Florence, Italy. 23–26 October 2016; pp. 5657–5662. [Google Scholar]
  • 17.Gui T., Ma C., Wang F., Wilkins D.E. On Cluster Head Selection in Monkey-Inspired Optimization based Routing Protocols for WSNs; Proceedings of the 2019 International Conference on Computing, Networking and Communications (ICNC); Honolulu, HI, USA. 18–21 February 2019; pp. 2325–2626. [Google Scholar]
  • 18.Mittal N., Singh U., Salgotra R., Sohi B.S. A boolean spider monkey optimization based energy efficient clustering approach for WSNs. Wirel. Netw. 2018;24:2093–2109. doi: 10.1007/s11276-017-1459-4. [DOI] [Google Scholar]
  • 19.Wang J., Ju C., Gao Y., Sangaiah A.K., Kim G.J. A PSO based energy efficient coverage control algorithm for wireless sensor networks. Tech Sci. Press. 2018;56:433–446. doi: 10.3970/cmc.2018.904.132. [DOI] [Google Scholar]
  • 20.Singh U., Salgotra R., Rattan M. A Novel Binary Spider Monkey Optimization Algorithm for Thinning of Concentric Circular Antenna Arrays. IETE J. Res. 2016;62:736–744. doi: 10.1080/03772063.2015.1135086. [DOI] [Google Scholar]
  • 21.Asadi K., Littman M.L. An alternative softmax operator for reinforcement learning; Proceedings of the ICML’17 Proceedings of the 34th International Conference on Machine Learning; Sydney, Australia. 7–9 August 2017; pp. 243–252. [Google Scholar]
  • 22.Memisevic R., Zach C., Pollefeys M., Hinton G. Gated Softmax Classification; Proceedings of the Advances in Neural Information Processing Systems 23 (NIPS 2010); Vancouver, BC, Canada. 6–9 December 2010. [Google Scholar]
  • 23.Gao B., Pavel L. On the Properties of the Softmax Function with Application in Game Theory and Reinforcement Learning. [(accessed on 3 April 2017)];arXiv. 2017 Available online: https://arxiv.org/pdf/1704.00805.pdf. [Google Scholar]
  • 24.Kumar S., Kusuma S. Clustering protocol for wireless sensor networks based on rhesus macaque (macaca mulatta) animal’s social behavior. Int. J. Comput. Appl. 2014;87:20–27. [Google Scholar]

Articles from Sensors (Basel, Switzerland) are provided here courtesy of Multidisciplinary Digital Publishing Institute (MDPI)

RESOURCES