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

Department of Computer Science, Abdul Wali Khan University, Pakistan College of Technological Innovation, Zayed University, Abu Dhabi, UAE Heriot-Watt University, UK Head of Science and Technology Department, Universidade Portucalense, Portugal Department of Information Systems and Technology, Sur University College, Oman Department of Computing and Technology, Iqra University, Islamabad, Pakistan


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 O ðx 2 Þ [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 experi-mental 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 Section 2, 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.

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 1 st 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 2 Wireless Communications and Mobile Computing 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 3 Wireless Communications and Mobile Computing 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.

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 G ðV, 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.
Here, WEnr Node i is the WF concerning the residual power of a WMN i calculated as: R:Enr Node i is the remaining power of a WMN i, n is the total WMNs in WSN-IoT, plus AE Node is the average power of WMNs at present time. The WF with regard to energy may be extracted as: if R:Enr Node i > AE Node then The WF regarding energy will be 0 if the remaining energy of WMN "R:Enr Node " is nearly equal to the average energy (≈) "AE WSN−IoT " of WSN-IoT. WNgh Node i represents the weight factor with respect to neighbors of a WMN. The weight value WNgh Node i can be assigned based on the inner and outer degree of WMNs for instance: where OuterDeg and InnerDeg are the inner and outer degree of WMN i, ANgh Node is the typical neighbors in WSN-IoT. The WF w.r.t WMN neighbors can be allocated in the subsequent para as: Similarly, the WF of WMN regarding mobility WMob Node i 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.
if mobility ≈ relative or static ð Þ then k 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: 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 + InnerDegÞ Node i 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 4 Wireless Communications and Mobile Computing CH-set.
RWeight node j = 1 or 0, for i = 1, ⋯, n and j = 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, W node i (i = 1,2,3, ⋯, n) is the weight of node i , and AFV j is the average fitness value of WMN to accomplish the CH role. Equation (9) below will compute the AFV j of a WMN i.
The total WSN-IoT clusters designed are k solutions, R Weight ij is the relationship weight of Node i and cluster j, when the WMN i is allotted to the cluster j, and the value of RWeight ij will be 1 or 0 otherwise.
Once the entire FVs are calculated, the likelihood of choice P node i in lieu of every single CH can be calculated using: where k is equivalent to aggregate CHs and W node j is the WF of WMN j; local search is applied for optimal CH set in the region of node j as: α 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.

Memetic Algorithm for WSN Cluster Formation: memeWSN
The proposed MemA-based clustering known as mem-eWSN 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 newfangled 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 Algorithm 1 are shown and defined in Table 1. The procedure for the formation of stable clusters using the evolutionary MemA is presented in Algorithm 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 heads S CHi 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 S CHi 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. The lower the FV, the best is the solution. The FV of a CH-set will be computed as: 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 inhab-itants 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.

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. Algorithm 2 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.
The 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.

Experiment Evaluation
To evaluate the efficiency of the proposed memeWSN clustering scheme, numerous simulation experimentations have been carried out in EstiNet 9.0. In a 1000 m × 1000 m square Return CHs 20. end procedure memWSN_cluster Algorithm 1: Psuedo code of memeWSN. 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]. The 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 increase Re-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 versa Control 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 weight ½i = WMN i 7. end while 8. whileðx ≤ nÞdo 9. forðy = 1 ; y ≤ k ; y++Þ 10.
CH − set½y = vector½x 12.  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 mem-eWSN 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 mem-eWSN 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.

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 mem-eWSN, 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.
The evaluation of bars presented in Figure 3 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.  Figures 5 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 reaf-filiation 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 1000 m × 1000 m simulation area initially. 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 Figure 5. As depicted   9 Wireless Communications and Mobile Computing in the graph, the rise in reaffiliation rate is noted in mem-eWSN, 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 mem-eWSN, since in MobAC, the WMN future mobility is taken      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

12
Wireless Communications and Mobile Computing clusters are achieved. The reaffiliation rate will be low when the number of steady clusters increases.

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 region 1000 m × 1000 m 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 mem-eWSN 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.

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.

Data Availability
Regarding data availability, no data were used to support this study. We discussed the results based on simulation which is already discussed in the paper in detail.

Conflicts of Interest
The authors declare that they have no conflicts of interest.