# Optimal Clustering in Wireless Sensor Networks for the Internet of Things Based on Memetic Algorithm: memeWSN

Authors: Masood Ahmad; Babar Shah; Abrar Ullah; Fernando Moreira; Omar Alfandi; Gohar Ali; Abdul Hameed
Journal: Wireless Communications and Mobile Computing
 (2021)

---

## Abstract

In wireless sensor networks for the Internet of Things (WSN-IoT), the topology deviates very frequently because of the node mobility. The topology maintenance overhead is high in flat-based WSN-IoTs. WSN clustering is suggested to not only reduce the message overhead in WSN-IoT but also control the congestion and easy topology repairs. The partition of wireless mobile nodes (WMNs) into clusters is a multiobjective optimization problem in large-size WSN. Different evolutionary algorithms (EAs) are applied to divide the WSN-IoT into clusters but suffer from early convergence. In this paper, we propose WSN clustering based on the memetic algorithm (MemA) to decrease the probability of early convergence by utilizing local exploration techniques. Optimum clusters in WSN-IoT can be obtained using MemA to dynamically balance the load among clusters. The objective of this research is to find a cluster head set (CH-set) as early as possible once needed. The WMNs with high weight value are selected in lieu of new inhabitants in the subsequent generation. A crossover mechanism is applied to produce new-fangled chromosomes as soon as the two maternities have been nominated. The local search procedure is initiated to enhance the worth of individuals. The suggested method is matched with state-of-the-art methods like MobAC (Singh and Lohani, 2019), EPSO-C (Pathak, 2020), and PBC-CP (Vimalarani, et al. 2016). The proposed technique outperforms the state of the art clustering methods regarding control messages overhead, cluster count, reaffiliation rate, and cluster lifetime.


---

## Body

## 1. Introduction

Wireless sensor network-enabled Internet of Things (WSN-IoT) is the set of WMNs capable to share data with their neighbors. WSN-IoT can be used for managing different applications such as rescue, flood monitoring, monitoring a border between two states, managing a disaster, and communication in the battlefield among others. The clustering techniques commence awesome once the size of WSN-IoT turns into a massive network in comparison to flat WSN irrespective of routing structure implemented [1]. The scalability problem in flat WSN is a serious concern when a big total of mobile knots are moving in different directions. When the number of WMNs in WSN-IoT using a flat routing arrangement is x, then the complexity of proactive routing structure will be Ox2 [2]. While the number of WMNs in WSN-IoT grows, the routing overhead also increases with the ratio of the square the number of WMNs. The reactive routing algorithms similarly result in route setup delay once the number of WMNs in a WSN-IoT increases. Furthermore, the flooding route request packets fear may similarly rise which further slowdowns the network. Hence, to accomplish elementary performance assurance in sized WSN-IoT, a hierarchal structure is compulsory [3]. The common execution of a hierarchal strategy is the clustering organization. Cluster formation is a challenging task in designing the cluster-based routing schemes since the choice of optimal CH-set is an NP-hard problem [4].Planning a clustering structure to route QoS information is the main requirement of the WSN-IoT study. Clustering is the main prototype, and its significance can be listed in two ways. Primarily, WSN-IoT management can be accomplished meritoriously thru clustering structure. An ordinary WSN-IoT contains above a hundred or even a thousand WMNs. In flat WSN-IoT configuration, unneeded packets are transported from source to sink nodes [5]. The scalability problem may possibly rise with flat-based WSN when we want to increase the number of WMNs in WSN and may saturate the network. The WMNs in WSN-IoT may move, and controlling the scalability is extra stimulating in contrast to static networks. Hence, cluster-based routing can be used for the effective management of WSN-IoT. Moreover, clustering will help answer queries such as topology control, building a virtual network, and intrusion discovery [6].One of the arrogant design concerns of a cluster-based routing algorithm is finding an ideal CH-set that is supposed to shelter the whole WSN-IoT network area. Each time a WMN is associated with a cluster, however, it is not compulsory that all clusters have a CH. Since the presence of a CH in a cluster has the advantage of managing the WSN-IoT easily, the majority of the existing work assumes the presence of CHs in each cluster. The construction of clusters may be performed in a manner that should reduce the message overhead that occurred during the cluster formation phase. If not, the proposed cluster-based routing scheme will consume more energy as compared to the flat routing protocol. Discovering optimal CH-set may be carried out using optimization algorithms, i.e., evolutionary genetic algorithms (GA), neural networks, and particle swarm optimization (PSO) [7]. The particle swarm optimization (PSO) scheme is not suitable because PSO falls easily to optima when the space is high dimensional. PSO also has a low convergence rate in the iterative process. The bee colony optimization lacks the use of secondary information. It also needs novel fitness checks on new algorithm parameters. A higher number of objective function evaluation is essential in BCO. The algorithm may perform slowly in serial processing. The genetic algorithm is very slow and is not suitable for WSN where the resources are limited.In this article, the WSN-IoT is disseminated to multiple subgroups known as clusters with an evolutionary MemA. The research question of the clustering issue is assumed as a graph plus the suitability model is verified as per the need of WSN-IoT. In the suggested memeWSN, the algorithm chooses a CH-set. The CH-set indicates a chromosome (optimum elucidation). The worth of the optimal solution is enhanced using a confined search technique. Moreover, the CH-set outcome is estimated using a fitness function (FF). The paternities nominated are intended for the replica on the basis of fitness value (FV). Mutation in addition to crossover can be used to bring diversity in the population and to generate different offsprings. The new-fangled chromosomes are produced as well as verified till the ideal CH-set originate. The effectiveness of the clustering procedure is improved using MemA as exposed in simulation results. The experimental results prove that the advised technique devises prominent performance while matching with state of the art clustering schemes.The remaining article is structured as follows: in Section2, we argue the relevant research presented in recent years. Section 3 presents our proposed system designed on the basis of MemA. In Section 4, the formulation of WSN-IoT using MemA is presented. In Section 5, we conclude the article, and the future research directions are stated.


## 2. Literature Review

The main goal of the proposed method is to reduce the energy depletion during the design of the cluster. In [8], a clustering procedure has been proposed which works in a distributed way termed distributed CH scheduling (DCHS) algorithm to enhance the lifetime of WSN. The key parameter of node mobility and a large number of neighbors are not considered in the scheme as well as in the selection of CH. Furthermore, the important parameters such as communication load, reputation, and trust are passed over as well in the paper. The authors in [9] selected CHs randomly in the first round where the criteria in the second round for CH selection is based on residual energy. However, the result of the arbitrary choice of CH-set in the 1st phase causes a derange partition. The movement and degree of MNs for the duration of the CH-set selection is also snubbed.The mobility of sensor nodes is key to consider during the selection of CHs to increase the lifetime of WSN-IoT. The node motion may be in random directions or may practice a different movement configuration. In leader-based group routing, the WMNs are assembled into a group under the umbrella of a leader [10]. Each group in the network assumes a different element to reduce the requests initiated for different resources. In this way, the throughput will increase, and routing overhead will reduce. The separate consignment of resources to each group is made to minimize the influence of group dissimilarities on the efficiency of WSN-IoT. In [11], the mobility of WMNs is considered major criteria to select the CHs. The distinguished feature of a WMN is its lower mobility and most suitable node to perform the CH role. A weighted cluster-based scheme is assumed to accomplish the determination of CHs and the association of their member nodes. The WMNs with minimum motion are the top contestants for the CH role. The proposed algorithm may not execute fine while the nodes in WSN are moving with fast speed. The WMNs with little speed will detach eventually, and the cluster formation method will initiate repeatedly which will decrease the lifetime of WSN. Correspondingly, the low mobility WMN selected as CH on the other hand with a dissimilar track than its neighbors may result in connectivity interruption to their sisters. The CHs are selected without considering the node degrees. We suggest consideration of some or all parameters such as residual energy, node neighbors, and comparative mobility during the cluster formation.The mobility of WMNs is predicted accurately to handle the topology changes due to the high mobility proposed in [12]. The scheme forms a cluster and maintains it based on predicting the future mobility of nodes instead of a fixed geographical partition. In contrast to other WMNs in MANET, the WMNs with low speed is the ideal candidate for the cluster head role. The movement pattern of long time neighbor WMNs is used to calculate the movement ratio of a WMN. The WMNs with high probability demonstrate that the WMN is moving alongside its neighbors at equal speed and pattern or is moving with slight motion. It illustrates that a WMN will assist its neighbors for an extended duration and is a better nominee to become a cluster head. The objective of the scheme is as follows: due to mobility, the clusters that are highly resistant to topological changes are formed with the right prediction of the WMN mobility. The prediction of mobility is made on the basis of the WMN location relative to their neighbors. The location is checked over different intervals, and therefore, no special hardware is required for the purpose. The accurate calculation is possible if we consider and check the correlation of WMNs moving in the vicinity. The WMNs with relative mobility and high degree are ideal candidates to form stable clusters. The performance of the protocol may degrade when the mobility model is random and may increase control messages overhead. It is difficult to predict the future mobility of WMNs in many scenarios. Neighbor’s quality is ignored. Local changes in topology may initiate the reclustering procedure but due to dynamic topology, the WMNs may not join the same cluster in the next round.In the dynamic genetic algorithm-based clustering, the load balance issue is initially modeled to a dynamic optimization problem [13]. Using various diverse dynamic GAs established for dynamic optimization is suggested to resolve the problem of balance cluster formation in a network. The capability of a CH set is evaluated on the load balance matrix, and each individual represents a clustering structure. To assist the population deal with variations in topology plus recommend closely related better solutions, several approaches are suggested. To handle the ecological dynamics, some multipopulation approaches, memory, immigrants, and the combination of all these are combined into SGA. The authors talk over several structures to tackle DLBP; however, it is not clear in the paper how the proposed schemes will be applied. The pseudocode stated in the paper is very basic. The proposal assumes the degree of a node to become a cluster head, and the performance may be unsatisfactory in several setups. If the WMNs are assigned the cluster head role on the basis of high mobility, it may perform poorly than flat routing protocols. The reclustering is initiated when the topology changes; it results worst if the topology does not change because the battery of the cluster head will quickly drain.The authors of [14] proposed an optimization algorithm which finds the optimal clusters in multiobjective fashion to efficiently manage the resources of the network. With optimal clusters in MANET, the energy efficiency will increase by efficiently organizing the resources and the CHs are assigned the task of intracluster and intercluster communication. As an alternative to allocating a weight value to all parameters, it deals straight with the DOP so as to find the Pareto optimal solutions. Less cluster heads will reduce the hop count besides packet delay in a cluster-based routing protocol. By minimizing the number of clusters, we can reduce the routing cost of a packet. The degree of WMNs is not taken into consideration during the cluster head selection process. The ideal candidates for the role of CHs are nodes having high broadcast power, and the CHs may be selected from one part of the network. In this scenario, the energy consumed on cluster formation will be wasted. The precomputation of WMN energy dissipation may not be practical; this parameter may be considered as the remaining energy of a node. The key parameters, i.e., node speed and mobility model, are not measured in the simulation.Mobility Aware Energy Efficient Clustering for Wireless Sensor Network (MobAC) is presented in [15]. The paper suggests a cluster-based routing algorithm to enhance the lifetime of WSN. The node distance, its lingering vitality, and mobility are assumed during the CH selection process. To further reduce the energy consumption, the paths that are energy-efficient, stable, and short are selected for packet forwarding. The degree and residual energy of nodes is not considered during the CH selection process. The CHs may be selected from one part of the network, and the reaffiliation rate may increase.A Proficient Bee Colony-Clustering Protocol to Prolong Lifetime of Wireless Sensor Networks (PBC-CP) is discussed in [16]. The nodes selected as CHs have more burden as compared to ordinary nodes in WSN. The CHs are selected based on the distance of a node from the base station, its degree, and energy. The energy-efficient paths are used to transmit data to other clusters and base stations. The mobility metric plays an important role in the selection of CHs. The PBC-CP ignores the mobility of nodes during the CH selection. The nodes selected as CHs with different mobility than their neighbors may cause reclustering more frequently. Calling the reclustering procedure more repeatedly may result in unstable clusters, and the network lifetime may decrease.An Enhanced PSO-Based Clustering Energy Optimization Algorithm for Wireless Sensor Network (EPSO-C) uses particle swarm optimization to select the CHs and minimize the energy consumption [17]. In this approach, the particles are optimized to get the most optimal CHs. The CHs are selected based on their location, and the CH-set will cover the whole network. The location of nodes is used to select the CHs in WSN. The static nodes are assumed, but in the current and future networks, most of the nodes will be mobile or even the nodes will fly. The suggested method may fail if the nodes deployed in the network move from one location to another. The node degree and energy are also ignored in this scheme.The strict nature of WMNs in WSN w.r.t energy and communication range make it challenging to communicate the identifying information on time with minimum delay. The routing problems in addition to small network time may also rise because of the WMN limited energy. The WMNs near the base station carry a substantial weight of information transmitted on behalf of other WMNs located nearby. The main goal of this proposal is to select the CHs from optimal sites, and the gateway WMNs will be chosen from all clusters based on their position. The presence of gateway nodes will reduce the burden on CHs. The gateway WMNs are responsible to transmit information intercluster and intracluster. This way, the load on the CHs will be balanced. The exposure of CHs will rise since the gateway WMNs transmit information with adjacent clusters on behalf of CHs.To overcome the issues found in the literature, the CHs in WSN-IoT are selected based on multiple parameters such as WMN current energy, degree, and mobility. The current energy consideration increases the cluster lifetime. The balanced clusters are obtained by considering the WMN degree. To reduce the riffle effect of reclustering, the mobility of WMNs is considered during the cluster formation. The MemA is also applied to obtain the optimal CHs. The issue of premature convergence will not arise due to the local search technique embedded in the MemA.


## 3. WSN-IoT Clustering Problem Formulation

To model the matter of allocating the WSN-IoT into clusters,k clusters and N number of WMNs in WSN-IoT are assumed. In the proposed memeWSN, the model is first demonstrated followed by the formulation of the dynamic and optimum clustering in WSN-IoT. The difficulty of stable cluster development of n WMNs is essentially resolved by discovering a set of WMNs (CH-set) which shows the division of n WMNs into k nonoverlapping clusters C1,C2,⋯,Ck. This can be achieved by modeling the WSN-IoT as a graph GV,E, where V represents the vertices of mobile nodes and E represents the edge of the communication links between the WMNs in the graph.A set of vertices (CHs) is selected optimally based on the FV of WMNs for the CHs role. The CH set with higher weighting values which covers most part of the WSN-IoT has a higher fitness value.The following equation (1) calculates the weighting factor (WF) value of a WMN i.
(1)Wnodei=WEnrNodei+WNghNodei+WMobNodei,Here,WEnrNodeiis the WF concerning the residual power of a WMN i calculated as:
(2)AENode=∑i=1nR.EnrNodein.R.EnrNodei is the remaining power of a WMN i, n is the total WMNs in WSN-IoT, plus AENode is the average power of WMNs at present time. The WF with regard to energy may be extracted as:
(3)ifR.EnrNodei>AENodethenWEnrNodei=1elseifR.EnrNodei≈AENodethenWEnrNodei=0elseWEnrNodei=−1The WF regarding energy will be 0 if the remaining energy of WMN “R.EnrNode” is nearly equal to the average energy (≈) “AEWSN−IoT” of WSN-IoT. WNghNodei represents the weight factor with respect to neighbors of a WMN. The weight value WNghNodei can be assigned based on the inner and outer degree of WMNs for instance:
(4)ANghNode=∑i=1nOuterDeg+InnerDegNodein,whereOuterDeg and InnerDeg are the inner and outer degree of WMN i, ANghNode is the typical neighbors in WSN-IoT. The WF w.r.t WMN neighbors can be allocated in the subsequent para as:
(5)ifOuterDeg+InnerDegNodei>ANghNode>thenWNghNodei=1elseifOuterDeg+InnerDegNodei≈ANghNodethenWNghNodei=0elseWNghNodei=−1Similarly, the WF of WMN regarding mobilityWMobNodei can be computed as follows keeping in mind that WMN is having relative movements; otherwise, the static WMNs are the best nominees for the role of CH.
(6)ifmobility≈relativeorstaticthenWMobNodei=1elseWMobNodei=−1k is the number of clusters would be calculated before selecting the CH-set through the equivalence in equation (7) for calculating the value of k:
(7)k=∑i=1nOuterDeg+InnerDegNodein+1.In the above equation (7), the total cluster in WSN-IoT is k, the total WMNs in WSN-IoT is represented by n, and the OuterDeg+InnerDegNodei represents the neighbor information of node i.The cluster head set covers WMNs as a minimum 3-hop away from another cluster head. Once the WFs of the whole WSN-IoT WMNs are calculated, the equation designated in equation (8) will be used to calculate the correctness of the CH-set.
(8)MinimizeFunW,AFV=∑i=1n∑j=1kRWeightijWnodei−AFVnodej2,Subjectto∑j=1kRWeightnodej=1=kforj=1,⋯,k,RWeightnodej=1or0,fori=1,⋯,nandj=1,⋯,k.The function stated using equation (8) is a minimization function where n is the total WMNs in WSN-IoT, k number of known or unknown (the number of clusters may not be known in advance) clusters will be designed, Wnodei (i=1,2,3,⋯,n) is the weight of nodei, and AFVj is the average fitness value of WMN to accomplish the CH role. Equation (9) below will compute the AFVj of a WMN i.
(9)AFVnodej=∑j=1kRWeightij×Wnodejk.The total WSN-IoT clusters designed arek solutions, RWeightij is the relationship weight of Nodei and cluster j, when the WMN i is allotted to the cluster j, and the value of RWeightij will be 1 or 0 otherwise.Once the entire FVs are calculated, the likelihood of choicePnodei in lieu of every single CH can be calculated using:
(10)Pnodei=Wnodei∑j=1kWnodej,wherek is equivalent to aggregate CHs and Wnodej is the WF of WMN j; local search is applied for optimal CH set in the region of nodej as:
(11)nodejx+1=nodejx+αij×z.αij is the association of WMN i with cluster j, and z is the randomized variable accepting value in the range [-1, 1] to calculate the FV by equation (11). Touching the outer range of the target WMN is not permitted in the next inhabitants.The WMNs are assigned to the CH-set vector on the basis of the FF described in equation (11). The neighbor WMNs join the nearby CHs to configure clusters. After the cluster formation, many WMNs change their state to sleep mode where other nodes in the cluster do schedule wake up to save energy. Consequently, periodic alterations will occur in the network topology. The objective of this research is finding a CH-set as early as possible once memeWSN encounters modifications in topology.


## 4. Memetic Algorithm for WSN Cluster Formation: memeWSN

The proposed MemA-based clustering known as memeWSN for WSN-IoT is demonstrated in this section. The CH-set is represented by a chromosome and is initially selected randomly. The CH-set is checked by a FF to get more optimum results. Thus, the proper individuals are elected for the succeeding peers to generate a new-fangled solution. The WMNs for the reconstruction of chromosomes (CH-set) are nominated from the populace analogous to the conventional genetic algorithm (GA). Subsequently, the choice of binary maternities in lieu of new-fangled populace, crossover in addition to the mutation will be used to make novel offsprings. The novel populace can be enhanced by calling a function designed for local search. In MemA, the indigenous search is applied to proficiently discover a less optimal solution and continue for global optimal.The proposed memeWSN initiates the aforementioned job through computing each WMN WFs. WMNs having greater weights are designated for the early populace. The FVs of the populace are computed, and WMNs to turn into the CHs are designated. Furthermore, the possibility of WMN election is considered, and local search is used. In the same way, the FV of WMN to stay alive in the populace is computed. The notations used in Algorithm1 are shown and defined in Table 1. The procedure for the formation of stable clusters using the evolutionary MemA is presented in Algorithm 1.Algorithm 1: Psuedo code of memeWSN.
1. Procedure memWSN_cluster2. Input:vn, n, k3. Output: WSN-IoT cluster head set4. Initialize all variables5. TotalDeg=0,i=1.6.whilei≤ndo7.TotalDeg=TotalDeg+Degi8.end while9.A=TotalDeg/n10.k=A,j=1(14)11.whilej≤kdo \\ initializes a random cluster head set permutationa.CHsj=randvnb.j++;12.end while13.pop=CHsk14.p_new=Local_Improver_WSN_IoTvn,pop,k15.pnew=callfunctionreplacep_new16.    .vp_new=calculatefitnessp_new17.  {iff.vP_new<f.vpop18.CHs=p_new}19.Return CHs20.end procedure memWSN_clusterTable 1
Notations in Algorithm1.
SymbolDefinitionNew−CHsNew CHsp_newNew populationpopPopulationDegiWMNi degreefvFV of CH-setvnWMN ID arrayTDTotal of WMN degreeAAverage of WMN degreekTotal clustersmTotal WMNs


### 4.1. Genetic Representation

The classical evolutionary schemes for the example GA fails to explore numerous results of the domain area due to its inborn feature of early convergence. A MemA applies local search to reach its last stop deprived of preventing local maxima. The main stair in memA is coding the chromosome.The set of cluster headsSCHi of WMNs are erratically nominated from all the WSN-IoT as CHs where i=1,2,⋯,k. Every elucidation to the issue is the set of SCHi obtained throughout the selection of CH nodes. In this way, the cluster headset produced using a random permutation of WMN-IDs and the chromosome can be represented by a random set of cluster head IDs. A chromosome is the combination of WMN-IDs without repetition. Furthermore, the gene of a chromosome can be represented by a single node ID. In a network of 8 WMNs, their IDs in the WSN-IoT would be in the range 1 to 8. In such a situation, the chromosome will represent a random combination of WMN-IDs, e.g., 54673128. Once the process of the chromosome is completed, the subsequent job is to extract CH-set. The new nodes/genes are replaced/added to the cluster headset (chromosome) based on their weights. At each step of adding WMNs to CH-set, the weights of CHs will update. The WMN bearing greater weight is substituted using lower weight WMN. The discarded node from the cluster headset is no more considered to be a CH in the existing round. Subsequent to encoding, the fitness of the solution is judged using a fitness function.


#### 4.1.1. Objective Function

Manipulating the FVs of WMNs considered for the CH role in the current round using standard deviation can tell us about the quality of a chromosome. The lower the FV, the best is the solution. The FV of a CH-set will be computed as:(12)Fchr=∑i=1n∑j=1kRWeightijWnodei−AFVj2.In our research, the main objective is to find the set of cluster head nodes in such a way to balance clusters by assigning the cluster head role to those nodes having the max degree, low mobility, and away from other cluster heads. The selection of chromosomes for the next population is carried out after the fitness evaluation. With decent choice, better quality children are conceded to the succeeding inhabitants for reproduction. The chromosome is nominated based on its fitness value. In this research, the mode of selection adopted is a pairwise tournament where nomination will happen without substitution. The tournament size (TS) is fixed, i.e.,TS=02. To prevent premature convergence, a local search procedure is called which mines better quality chromosomes from the population as in Algorithm 2.Algorithm 2: Pseudocode of procedure local-improver for WSN-IoT.
1. Procedure Local_Improver_WSN-IoT2. Input: vector[WMNs], CH-set, k3. Output: CH-set4. Initialize variablesi=x=1, n = vector length5. Whilei≤ndo6.  weighti=WMNi7. end while8. whilex≤ndo9.  fory=1;y≤k;y++10.   if (weightx>weighty) then11.    CH−sety=vectorx12.   end if13.  end for14. end while15. return CH-set16. end Local_Improver_WSN-IoT


#### 4.1.2. Local Improver

In this subsection, an indigenous search is used during the selection and evaluation of a chromosome. The weights of the genes in the population are calculated. The genes with greater weights are explored in the residents. The population is examined for the genes having greater weights and swapped with low-weight genes. Algorithm2 improves the solution locally.The significant memetic operators are crossover (which is the offspring generated from two predecessor chromosomes) and mutation (which is children produced from one chromosome by altering a gene). The features of the newly created chromosomes are inherited from all fragments of her maternities. The newly created chromosomes are located in the populace once crossover and mutation are performed. The chromosomes with good features are swapped by low-quality chromosomes.Algorithm 3: Pseudo code of procedure-replace for WSN-IoT.
1. Procedure Replace_WSN-IoT2. Input: populace, CH-set, k3. Output: CH-set, populace4. Initialize variablesj=p=15. whilej≤kdo6.  New_CH−setj=randvectorWMNs7. end while8. New_popj=new_CH−setj9. whilep≤kdo\∗ mutation and crossover ∗/10.    Temp=populacep11.    populacep=New_populacej12.    New_populacej=Temp13. end while14. z=k/215. New_populacez=populacez16. return new_populace, CH-set17.end procedure replace_WSN-IoTThe newly created inhabitants can be used for the additional execution of the procedure. The procedure is repeated till the ending criterion hits. The top solution is resumed after the final repetition of the memeWSN procedure.


## 4.1. Genetic Representation

The classical evolutionary schemes for the example GA fails to explore numerous results of the domain area due to its inborn feature of early convergence. A MemA applies local search to reach its last stop deprived of preventing local maxima. The main stair in memA is coding the chromosome.The set of cluster headsSCHi of WMNs are erratically nominated from all the WSN-IoT as CHs where i=1,2,⋯,k. Every elucidation to the issue is the set of SCHi obtained throughout the selection of CH nodes. In this way, the cluster headset produced using a random permutation of WMN-IDs and the chromosome can be represented by a random set of cluster head IDs. A chromosome is the combination of WMN-IDs without repetition. Furthermore, the gene of a chromosome can be represented by a single node ID. In a network of 8 WMNs, their IDs in the WSN-IoT would be in the range 1 to 8. In such a situation, the chromosome will represent a random combination of WMN-IDs, e.g., 54673128. Once the process of the chromosome is completed, the subsequent job is to extract CH-set. The new nodes/genes are replaced/added to the cluster headset (chromosome) based on their weights. At each step of adding WMNs to CH-set, the weights of CHs will update. The WMN bearing greater weight is substituted using lower weight WMN. The discarded node from the cluster headset is no more considered to be a CH in the existing round. Subsequent to encoding, the fitness of the solution is judged using a fitness function.


### 4.1.1. Objective Function

Manipulating the FVs of WMNs considered for the CH role in the current round using standard deviation can tell us about the quality of a chromosome. The lower the FV, the best is the solution. The FV of a CH-set will be computed as:(12)Fchr=∑i=1n∑j=1kRWeightijWnodei−AFVj2.In our research, the main objective is to find the set of cluster head nodes in such a way to balance clusters by assigning the cluster head role to those nodes having the max degree, low mobility, and away from other cluster heads. The selection of chromosomes for the next population is carried out after the fitness evaluation. With decent choice, better quality children are conceded to the succeeding inhabitants for reproduction. The chromosome is nominated based on its fitness value. In this research, the mode of selection adopted is a pairwise tournament where nomination will happen without substitution. The tournament size (TS) is fixed, i.e.,TS=02. To prevent premature convergence, a local search procedure is called which mines better quality chromosomes from the population as in Algorithm 2.Algorithm 2: Pseudocode of procedure local-improver for WSN-IoT.
1. Procedure Local_Improver_WSN-IoT2. Input: vector[WMNs], CH-set, k3. Output: CH-set4. Initialize variablesi=x=1, n = vector length5. Whilei≤ndo6.  weighti=WMNi7. end while8. whilex≤ndo9.  fory=1;y≤k;y++10.   if (weightx>weighty) then11.    CH−sety=vectorx12.   end if13.  end for14. end while15. return CH-set16. end Local_Improver_WSN-IoT


### 4.1.2. Local Improver

In this subsection, an indigenous search is used during the selection and evaluation of a chromosome. The weights of the genes in the population are calculated. The genes with greater weights are explored in the residents. The population is examined for the genes having greater weights and swapped with low-weight genes. Algorithm2 improves the solution locally.The significant memetic operators are crossover (which is the offspring generated from two predecessor chromosomes) and mutation (which is children produced from one chromosome by altering a gene). The features of the newly created chromosomes are inherited from all fragments of her maternities. The newly created chromosomes are located in the populace once crossover and mutation are performed. The chromosomes with good features are swapped by low-quality chromosomes.Algorithm 3: Pseudo code of procedure-replace for WSN-IoT.
1. Procedure Replace_WSN-IoT2. Input: populace, CH-set, k3. Output: CH-set, populace4. Initialize variablesj=p=15. whilej≤kdo6.  New_CH−setj=randvectorWMNs7. end while8. New_popj=new_CH−setj9. whilep≤kdo\∗ mutation and crossover ∗/10.    Temp=populacep11.    populacep=New_populacej12.    New_populacej=Temp13. end while14. z=k/215. New_populacez=populacez16. return new_populace, CH-set17.end procedure replace_WSN-IoTThe newly created inhabitants can be used for the additional execution of the procedure. The procedure is repeated till the ending criterion hits. The top solution is resumed after the final repetition of the memeWSN procedure.


## 4.1.1. Objective Function

Manipulating the FVs of WMNs considered for the CH role in the current round using standard deviation can tell us about the quality of a chromosome. The lower the FV, the best is the solution. The FV of a CH-set will be computed as:(12)Fchr=∑i=1n∑j=1kRWeightijWnodei−AFVj2.In our research, the main objective is to find the set of cluster head nodes in such a way to balance clusters by assigning the cluster head role to those nodes having the max degree, low mobility, and away from other cluster heads. The selection of chromosomes for the next population is carried out after the fitness evaluation. With decent choice, better quality children are conceded to the succeeding inhabitants for reproduction. The chromosome is nominated based on its fitness value. In this research, the mode of selection adopted is a pairwise tournament where nomination will happen without substitution. The tournament size (TS) is fixed, i.e.,TS=02. To prevent premature convergence, a local search procedure is called which mines better quality chromosomes from the population as in Algorithm 2.Algorithm 2: Pseudocode of procedure local-improver for WSN-IoT.
1. Procedure Local_Improver_WSN-IoT2. Input: vector[WMNs], CH-set, k3. Output: CH-set4. Initialize variablesi=x=1, n = vector length5. Whilei≤ndo6.  weighti=WMNi7. end while8. whilex≤ndo9.  fory=1;y≤k;y++10.   if (weightx>weighty) then11.    CH−sety=vectorx12.   end if13.  end for14. end while15. return CH-set16. end Local_Improver_WSN-IoT


## 4.1.2. Local Improver

In this subsection, an indigenous search is used during the selection and evaluation of a chromosome. The weights of the genes in the population are calculated. The genes with greater weights are explored in the residents. The population is examined for the genes having greater weights and swapped with low-weight genes. Algorithm2 improves the solution locally.The significant memetic operators are crossover (which is the offspring generated from two predecessor chromosomes) and mutation (which is children produced from one chromosome by altering a gene). The features of the newly created chromosomes are inherited from all fragments of her maternities. The newly created chromosomes are located in the populace once crossover and mutation are performed. The chromosomes with good features are swapped by low-quality chromosomes.Algorithm 3: Pseudo code of procedure-replace for WSN-IoT.
1. Procedure Replace_WSN-IoT2. Input: populace, CH-set, k3. Output: CH-set, populace4. Initialize variablesj=p=15. whilej≤kdo6.  New_CH−setj=randvectorWMNs7. end while8. New_popj=new_CH−setj9. whilep≤kdo\∗ mutation and crossover ∗/10.    Temp=populacep11.    populacep=New_populacej12.    New_populacej=Temp13. end while14. z=k/215. New_populacez=populacez16. return new_populace, CH-set17.end procedure replace_WSN-IoTThe newly created inhabitants can be used for the additional execution of the procedure. The procedure is repeated till the ending criterion hits. The top solution is resumed after the final repetition of the memeWSN procedure.


## 5. Experiment Evaluation

To evaluate the efficiency of the proposed memeWSN clustering scheme, numerous simulation experimentations have been carried out in EstiNet 9.0. In a1000m×1000m square simulation area, the WMNs (up to 500) are deployed in a random way. The simulation parameters are adopted from [17]. The speed of WMNs varies from 1 km/h to 80 km/h. Every WMN is equipped with a default omnidirectional antenna. The broadcast range of every antenna varies in the range between 100 m and 300 m. Each WMN has a storage (queue) for outgoing and incoming data and maintains the mobility statistics of their neighbors. The traffic sources are generated by a continuous bit rate mechanism. The maximum limit for the generation of traffic is set to twenty (20) packets/s. The simulations are executed for fifty (50) minutes. The average values of a hundred simulation rounds are demonstrated in the form of graphs. Table 2 shows the parameters used during the simulation as in [17].Table 2
Simulation parameters.
ParametersValueParametersValue3d beam width360 degreesSimulation time50 minPointing direction90 degreesMax (x)1000 mAngular speed0 degrees/secMax (y)1000 mLink bandwidth11 MbpsNode spaceFrequency channel3Number of nodes50-500Bit error rate0.0Data packet size1200 bytesFrequency (MHz)2400Mobility speed1, 5, 10 m/secTransmission power15 dbmShadowing standard deviation4.0Carrier sense threshold57 dbmClose in reference distance1.0 mAntenna gain1.0 dbiSystem loss1.0Fading variation10.0Antenna height1.5 mAverage building height10 mRicean factorK10.0 dbStreet width30 mMax queue length50 pktsPath loss exponent2.0RTS threshold3000 bytesThe performance of the memeWSN algorithm is compared with PBC-CP [16] and EPSO-C [17] for the performance measurement of control overhead and computation. Similarly, MobAC [15] for the performance evaluation of cluster lifetime and reaffiliation. To assess the efficiency of the proposed memeWSN, the metrics discussed below are measured.The number of clusters (NoC) or cluster count (CC): The WMNs are distributed to several simulated groups known as clusters in cluster-based WSN-IoTs. Here, the NoC or CC denotes the sum of virtual sets gained when executing the cluster foundation procedure. The fewer NoCs represent the stability of WSN-IoT clusters. The issues for instance channel access scheduling, reusing frequency, energy depletion, and latency may arise when the NoCs may increaseRe-affiliation rate (RR): The affiliation and deaffiliation of WMNs as CH or member throughout a certain interval of time represent reaffiliation rate. In cluster-based routing, a WMN links to the adjacent CH and vacates the former. A WMN may reaffiliate once its CH no more survives, and alternative WMN performs the role of a CH in the vicinity. The reaffiliation may also happen once the CH is not within the broadcast range of a WMN. The cluster lifetime will decrease when RR is high and vice versaControl overhead (CO): The number of packet exchanges to maintain the statistics of topology variations denotes the CO. Several control message (CM) exchanges happen throughout the cluster construction stage. To measure the CO metric, the CMs received/sent at some interval are computed


### 5.1. NoC or CC

Several tests have been carried out to compute the CC metric once we increase the number of nodes from 50 to 500. The incremental step 50 is adopted to increase WMNs in individual simulation experiments. The random waypoint mobility model is practiced in this set of experiments. The speed of WMNs varies in the range 1 kilometer/h to 80 kilometers/h, i.e., 1 kilometer/hour to 5 kilometers/hour (walking), 5 kilometers/hour to 20 kilometers/hour (running), and 20 kilometers/hour to 80 kilometers/hour (vehicle) drive. Similarly, the transmission range is 100–200 meters for various experiments. To measure the CC metric, the outcomes derived during the simulation are presented in the form of a graph in Figures1 and 2. The curves presented in Figures 1 and 2 show the NoCs for different size networks (i.e., up to 500 WMNs). The NoCs will increase with the increase in the number of WMNs as presented in Figure 1. The graph shows that memeWSN forms less number of clusters as compared to MobAC, PBC-CP, and EPSO-C. In memeWSN, the NoCs is computed based on node neighbors. The average degrees of WMNs are identified to compute the NoCs. Hence, the memeWSN has less NoCs, and the steadiness of clusters may also be ensured if node degree is in consideration. After memeWSN, PBC-CP performs glowing related to other protocols as presented in Figure 1. Analysing the curves demonstrated in Figure 1, we notice that EPSO-C performs pitiably, and the NoCs generated by MobAC is significantly fewer compared to EPSO-C. MobAC is emphasized on the steadiness of clusters by guessing the expected movement of WMNs throughout cluster creation. EPSO-C focuses on the optimum computations involved in the cluster creation process. The outcomes confirm that memeWSN leaves behind state-of-the-art cluster-based routing protocols w.r.t CC. PBC-CP performs well after memeWSN. To evaluate the performance of memeWSN in more detail, a sequence of simulation trials are conducted for another broadcast range, i.e., 200 meters. The outcomes of the succeeding trials are depicted in Figure 2. The arcs in Figure 2 indicate that the wireless broadcast ranges of WMNs affect the efficiency of cluster-based routing schemes. The CC metric drops greatly with high broadcast ranges. With a high broadcast range, the CH will cover a big region and the number of WMNs CH serve may grow hence results in less NoCs. The magnitude of backbone WSN-IoT will reduce when we rise the wireless broadcast span of WMNs. All protocols perform the same way as in Figure 1.Figure 1
Average clusters vs. WSN-IoT size (WMN broadcast range 100 m).Figure 2
Average clusters vs. WSN-IoT size (WMN broadcast range 200 m).


### 5.2. Cluster Lifetime

The effect of node speed on the lifetime of CHs is evaluated in this section. The WMNs with high motion may reduce the lifespan of CHs, deploying 100 WMNs in WSN-IoT to execute the simulation. The transmission range of each WMN is fixed to two hundred in the main experiment. The WMNs are moving at a speed varying from 1 kilometer/hour to 80 kilometers/hour where the mobility characteristics are adopted as in [17]. As shown in Figure 3, the proposed memeWSN clustering algorithm selects CHs for an extended period. Steady clusters are designed via a memeWSN clustering scheme because the comparative motion of WMNs and their neighbors is assumed for the duration of CHs choice. The proposed memeWSN outperforms PBC-CP, MobAC, and EPSO-C in terms of cluster steadiness. MobAC performs fine after memeWSN since it takes the future motion of WMNs throughout the cluster creation. The behavior of WMNs may not project genuinely in long term. In memeWSN, the cluster partners stay connected to the CH for an extended period. The comparative motion of WMNs is dignified throughout the CHs election, and a WMN with a higher degree and comparative movement is the top contender to be a CH.Figure 3
WMNs speed vs. cluster lifetime (WMN broadcast range 200 m).The evaluation of bars presented in Figure3 demonstrate that memeWSN create steady and long life clusters compared to MobAC. EPSO-C and PBC-CP choose unsteady CHs. The EPSO-C is better as compared to PBC-CP. Thus, PBC-CP selects unsteady CHs once the speed of WMNs increases. The movement of nodes is not taken into consideration throughout the cluster formation process. The wireless broadcast range of WMNs is amplified to 300 meters in the next test, and the outcomes are exposed in Figure 4. The chart demonstrates that the wireless broadcast range of WMNs influences considerably the efficiency of all clustering schemes assumed in this experiment comprising our recommended memeWSN scheme. More steady clusters are obtained when we increase the broadcast range of WMNs. The lifetime of the cluster and network may increase. The suggested memeWSN performs fine once we increase the transmission range. With more broadcast range, the WMNs reaffiliation drops and a CH will handle large-size WSN-IoT.Figure 4
WMNs speed vs. cluster lifetime (WMN broadcast range 300 m).


### 5.3. Reaffiliation Rate (RR)

To assess the efficiency of clustering schemes w.r.t reaffiliation rate for different WMN speed and wireless broadcast range, a series of simulation tests have been carried out in Figures5 and 6. Reaffiliation may occur if a WMN leaves its present CH and join an alternative cluster or a CH move beyond the radio broadcast range of a member WMN. The WMN is unable to stay linked to its CH to any further extent. With the rise in the speed of WMNs, the reaffiliation is more often as WMNs leave their CHs more frequently. The radio broadcast range of all nodes is fixed to 200 meters. A total of 100 nodes are deployed randomly in a 1000m×1000m simulation area initially.Figure 5
Reaffiliation rate vs. WMN speed.Figure 6
Reaffiliation rate vs. WMN wireless broadcast range.The nodes are moving at a speed between 1 kilometer/hour to 80 kilometers/hour. The outcomes are averaged for different experiments. The average reaffiliation rate for more than 100 dissimilar runs is presented in Figure5. As depicted in the graph, the rise in reaffiliation rate is noted in memeWSN, MobAC, PBC-CP, and EPSO-C when increasing the speed of WMNs. The efficiency of memeWSN is well as presented in the arcs because it has the lowermost RR as equated to other protocols under consideration. The lifetime of CHs is lengthy once the memeWSN cluster formation procedure is executed, and it indicates that the reaffiliation will be low as reclustering mechanism is initiated less repeatedly when the steady CHs are nominated. This is because the CHs are selected on the basis of WMN remaining energy, degree, and relative mobility. Therefore, the CHs lifetime will increase and the participants vacate the present cluster less frequently. The efficiency of MobAC is improved after memeWSN, since in MobAC, the WMN future mobility is taken into consideration throughout the CH election process. The efficiency of MobAC is better among all state of the art clustering algorithm under consideration because the neighbors of the selected CHs remain for a long time, and hence, the probability of reaffiliation decreases. The worst performance w.r.t reaffiliation is observed in PBC-CP compared to MobAC and EPSO-C. The mobility of nodes is not considered in PBC-CP during the cluster formation procedure. Hence, unstable clusters may result. The same simulation experimentations are repeated for a different size network, i.e., 50 WMNs to 500 WMNs. The results are presented in the form of a graph in Figure 6. Incremental step 50 was used to evaluate the performance of memeWSN with a diverse number of WMNs in WSN-IoT. The graph presented in Figure 6 shows the decrease in reaffiliation rate when the WSN-IoT size becomes large. In a large-scale network, the CHs serve a large number of nodes, and the changes in topology are communicated less frequently. The simulation area was the same as in the previous experiment. The curve at the bottom of the diagram in Figure 6 shows the decrease in memeWSN reaffiliation rate when the size of the network increases in line with other cluster-based routing algorithms. In memeWSN, the CHs are selected on the basis of relative mobility, remaining energy, and node degree, and steady clusters are achieved. The reaffiliation rate will be low when the number of steady clusters increases.


### 5.4. Control Message Overhead (CMO)

Numerous packets exchange is the essential part throughout the CH selection method in WSN-IoT. In this segment, the number of messages swapped during the course of the cluster creation and maintenance stage is noted and demonstrated. The efficiency of memeWSN is matched with MobAC, EPSO-C, and PBC-CP.In this set of simulation tests, fifty WMNs are deployed in a random way. The simulation region1000m×1000m is assumed. Random waypoint mobility was adopted in the simulation tests. The radio transmission range of WMNs is fixed to 200 meters. The WMNs are moving at a speed between 0-5 kilometers/h (walk), 5-20 kilometers/hour (running), and 20-80 kilometers/hour (car). The outcomes presented in the form of a line chart is depicted in Figure 7. The experiments are conducted for another transmission range of 300 meters, and the obtained results are presented in Figure 8. As exposed in the graph, the CMO of PBC-CP is low while the WMNs are moving with a gentle speed such as no more than 40 km/h plus becomes higher when the WMN movement is faster. GA hurts from a local maximum problem, and unsteady clusters may result once the WMN speed turns out to be high. The identical outcome can be seen in other protocols under consideration comprising memeWSN as the reclustering method is initiated frequently when the mobility is high. The CMO may decrease once we rise the radio broadcast range of WMNs. The high transmission range may drink extra energy throughout the WSN-IoT processes. The increase in WSN-IoT lifetime may not guarantee when the broadcast range of WMNs is high. More communication is required when finding optimal CHs, and the optimization techniques have great CMO values as shown in Figures 7 and 8. EPSO-C and MobAC offer consistent performance when the radio range of WMNs is 200 meters. When the broadcast range is high, EPSO-C and MobAC have the lowest CMO. Our proposed memeWSN algorithm requires more message exchanges for the duration of cluster creation. The parameters like WMN degree, its energy, and relative mobility are taken into consideration, and the accurate calculation may proliferate the number of control messages. The optimal CHs are computed on the cost of more overhead, but when the optimum CHs are identified, the reclustering method will initiate less frequently.Figure 7
WSN-IoT WMN speed vs. CMO (broadcast range 200 meters).Figure 8
WSN-IoT WMN speed vs. CMO (broadcast range 300 m).


## 5.1. NoC or CC

Several tests have been carried out to compute the CC metric once we increase the number of nodes from 50 to 500. The incremental step 50 is adopted to increase WMNs in individual simulation experiments. The random waypoint mobility model is practiced in this set of experiments. The speed of WMNs varies in the range 1 kilometer/h to 80 kilometers/h, i.e., 1 kilometer/hour to 5 kilometers/hour (walking), 5 kilometers/hour to 20 kilometers/hour (running), and 20 kilometers/hour to 80 kilometers/hour (vehicle) drive. Similarly, the transmission range is 100–200 meters for various experiments. To measure the CC metric, the outcomes derived during the simulation are presented in the form of a graph in Figures1 and 2. The curves presented in Figures 1 and 2 show the NoCs for different size networks (i.e., up to 500 WMNs). The NoCs will increase with the increase in the number of WMNs as presented in Figure 1. The graph shows that memeWSN forms less number of clusters as compared to MobAC, PBC-CP, and EPSO-C. In memeWSN, the NoCs is computed based on node neighbors. The average degrees of WMNs are identified to compute the NoCs. Hence, the memeWSN has less NoCs, and the steadiness of clusters may also be ensured if node degree is in consideration. After memeWSN, PBC-CP performs glowing related to other protocols as presented in Figure 1. Analysing the curves demonstrated in Figure 1, we notice that EPSO-C performs pitiably, and the NoCs generated by MobAC is significantly fewer compared to EPSO-C. MobAC is emphasized on the steadiness of clusters by guessing the expected movement of WMNs throughout cluster creation. EPSO-C focuses on the optimum computations involved in the cluster creation process. The outcomes confirm that memeWSN leaves behind state-of-the-art cluster-based routing protocols w.r.t CC. PBC-CP performs well after memeWSN. To evaluate the performance of memeWSN in more detail, a sequence of simulation trials are conducted for another broadcast range, i.e., 200 meters. The outcomes of the succeeding trials are depicted in Figure 2. The arcs in Figure 2 indicate that the wireless broadcast ranges of WMNs affect the efficiency of cluster-based routing schemes. The CC metric drops greatly with high broadcast ranges. With a high broadcast range, the CH will cover a big region and the number of WMNs CH serve may grow hence results in less NoCs. The magnitude of backbone WSN-IoT will reduce when we rise the wireless broadcast span of WMNs. All protocols perform the same way as in Figure 1.Figure 1
Average clusters vs. WSN-IoT size (WMN broadcast range 100 m).Figure 2
Average clusters vs. WSN-IoT size (WMN broadcast range 200 m).


## 5.2. Cluster Lifetime

The effect of node speed on the lifetime of CHs is evaluated in this section. The WMNs with high motion may reduce the lifespan of CHs, deploying 100 WMNs in WSN-IoT to execute the simulation. The transmission range of each WMN is fixed to two hundred in the main experiment. The WMNs are moving at a speed varying from 1 kilometer/hour to 80 kilometers/hour where the mobility characteristics are adopted as in [17]. As shown in Figure 3, the proposed memeWSN clustering algorithm selects CHs for an extended period. Steady clusters are designed via a memeWSN clustering scheme because the comparative motion of WMNs and their neighbors is assumed for the duration of CHs choice. The proposed memeWSN outperforms PBC-CP, MobAC, and EPSO-C in terms of cluster steadiness. MobAC performs fine after memeWSN since it takes the future motion of WMNs throughout the cluster creation. The behavior of WMNs may not project genuinely in long term. In memeWSN, the cluster partners stay connected to the CH for an extended period. The comparative motion of WMNs is dignified throughout the CHs election, and a WMN with a higher degree and comparative movement is the top contender to be a CH.Figure 3
WMNs speed vs. cluster lifetime (WMN broadcast range 200 m).The evaluation of bars presented in Figure3 demonstrate that memeWSN create steady and long life clusters compared to MobAC. EPSO-C and PBC-CP choose unsteady CHs. The EPSO-C is better as compared to PBC-CP. Thus, PBC-CP selects unsteady CHs once the speed of WMNs increases. The movement of nodes is not taken into consideration throughout the cluster formation process. The wireless broadcast range of WMNs is amplified to 300 meters in the next test, and the outcomes are exposed in Figure 4. The chart demonstrates that the wireless broadcast range of WMNs influences considerably the efficiency of all clustering schemes assumed in this experiment comprising our recommended memeWSN scheme. More steady clusters are obtained when we increase the broadcast range of WMNs. The lifetime of the cluster and network may increase. The suggested memeWSN performs fine once we increase the transmission range. With more broadcast range, the WMNs reaffiliation drops and a CH will handle large-size WSN-IoT.Figure 4
WMNs speed vs. cluster lifetime (WMN broadcast range 300 m).


## 5.3. Reaffiliation Rate (RR)

To assess the efficiency of clustering schemes w.r.t reaffiliation rate for different WMN speed and wireless broadcast range, a series of simulation tests have been carried out in Figures5 and 6. Reaffiliation may occur if a WMN leaves its present CH and join an alternative cluster or a CH move beyond the radio broadcast range of a member WMN. The WMN is unable to stay linked to its CH to any further extent. With the rise in the speed of WMNs, the reaffiliation is more often as WMNs leave their CHs more frequently. The radio broadcast range of all nodes is fixed to 200 meters. A total of 100 nodes are deployed randomly in a 1000m×1000m simulation area initially.Figure 5
Reaffiliation rate vs. WMN speed.Figure 6
Reaffiliation rate vs. WMN wireless broadcast range.The nodes are moving at a speed between 1 kilometer/hour to 80 kilometers/hour. The outcomes are averaged for different experiments. The average reaffiliation rate for more than 100 dissimilar runs is presented in Figure5. As depicted in the graph, the rise in reaffiliation rate is noted in memeWSN, MobAC, PBC-CP, and EPSO-C when increasing the speed of WMNs. The efficiency of memeWSN is well as presented in the arcs because it has the lowermost RR as equated to other protocols under consideration. The lifetime of CHs is lengthy once the memeWSN cluster formation procedure is executed, and it indicates that the reaffiliation will be low as reclustering mechanism is initiated less repeatedly when the steady CHs are nominated. This is because the CHs are selected on the basis of WMN remaining energy, degree, and relative mobility. Therefore, the CHs lifetime will increase and the participants vacate the present cluster less frequently. The efficiency of MobAC is improved after memeWSN, since in MobAC, the WMN future mobility is taken into consideration throughout the CH election process. The efficiency of MobAC is better among all state of the art clustering algorithm under consideration because the neighbors of the selected CHs remain for a long time, and hence, the probability of reaffiliation decreases. The worst performance w.r.t reaffiliation is observed in PBC-CP compared to MobAC and EPSO-C. The mobility of nodes is not considered in PBC-CP during the cluster formation procedure. Hence, unstable clusters may result. The same simulation experimentations are repeated for a different size network, i.e., 50 WMNs to 500 WMNs. The results are presented in the form of a graph in Figure 6. Incremental step 50 was used to evaluate the performance of memeWSN with a diverse number of WMNs in WSN-IoT. The graph presented in Figure 6 shows the decrease in reaffiliation rate when the WSN-IoT size becomes large. In a large-scale network, the CHs serve a large number of nodes, and the changes in topology are communicated less frequently. The simulation area was the same as in the previous experiment. The curve at the bottom of the diagram in Figure 6 shows the decrease in memeWSN reaffiliation rate when the size of the network increases in line with other cluster-based routing algorithms. In memeWSN, the CHs are selected on the basis of relative mobility, remaining energy, and node degree, and steady clusters are achieved. The reaffiliation rate will be low when the number of steady clusters increases.


## 5.4. Control Message Overhead (CMO)

Numerous packets exchange is the essential part throughout the CH selection method in WSN-IoT. In this segment, the number of messages swapped during the course of the cluster creation and maintenance stage is noted and demonstrated. The efficiency of memeWSN is matched with MobAC, EPSO-C, and PBC-CP.In this set of simulation tests, fifty WMNs are deployed in a random way. The simulation region1000m×1000m is assumed. Random waypoint mobility was adopted in the simulation tests. The radio transmission range of WMNs is fixed to 200 meters. The WMNs are moving at a speed between 0-5 kilometers/h (walk), 5-20 kilometers/hour (running), and 20-80 kilometers/hour (car). The outcomes presented in the form of a line chart is depicted in Figure 7. The experiments are conducted for another transmission range of 300 meters, and the obtained results are presented in Figure 8. As exposed in the graph, the CMO of PBC-CP is low while the WMNs are moving with a gentle speed such as no more than 40 km/h plus becomes higher when the WMN movement is faster. GA hurts from a local maximum problem, and unsteady clusters may result once the WMN speed turns out to be high. The identical outcome can be seen in other protocols under consideration comprising memeWSN as the reclustering method is initiated frequently when the mobility is high. The CMO may decrease once we rise the radio broadcast range of WMNs. The high transmission range may drink extra energy throughout the WSN-IoT processes. The increase in WSN-IoT lifetime may not guarantee when the broadcast range of WMNs is high. More communication is required when finding optimal CHs, and the optimization techniques have great CMO values as shown in Figures 7 and 8. EPSO-C and MobAC offer consistent performance when the radio range of WMNs is 200 meters. When the broadcast range is high, EPSO-C and MobAC have the lowest CMO. Our proposed memeWSN algorithm requires more message exchanges for the duration of cluster creation. The parameters like WMN degree, its energy, and relative mobility are taken into consideration, and the accurate calculation may proliferate the number of control messages. The optimal CHs are computed on the cost of more overhead, but when the optimum CHs are identified, the reclustering method will initiate less frequently.Figure 7
WSN-IoT WMN speed vs. CMO (broadcast range 200 meters).Figure 8
WSN-IoT WMN speed vs. CMO (broadcast range 300 m).


## 6. Conclusion and Future Work

In wireless sensor network-enabled Internet of Things, the resource limitation requires a handsome algorithm for cluster formation to route data with little resources in order to increase the lifetime of WSN-IoT. Optimization methods, for example, evolutionary algorithms, PSO, and linear programming, may be used to form stable and long life clusters. The stable and balanced clusters may be obtained when we consider parameters such as mobility, degree, and energy of WMNs. In this paper, the CH selection method is optimized using an evolutionary memetic algorithm. A minimization function is modeled to check the fitness of a solution. The CH-set represents a chromosome in the proposed scheme. The memetic algorithm has a built-in searching mechanism that prevents it from premature convergence. The proposed algorithm is validated through a series of simulation experiments. The simulation experiments demonstrate that the proposed algorithm outperforms the state-of-the-art clustering schemes in WSN.In the future, a modified version of the memetic algorithm can be used to form balanced clusters in high-speed networks such as vehicular ad hoc networks and flying ad hoc networks, i.e., unmanned aerial vehicles.



---

*Source: 8875950-2021-01-06.xml*