Energy Aware Clustering with Multihop Routing Algorithm forWireless Sensor Networks

The Internet of Things (IoT) and the Wireless Sensor Network (WSN) concepts are currently combined to improve data transmission based on sensors in near future applications. Since IoT devices exist in WSN with built-in batteries, power efficiency is a challenge that must be resolved. Clustering and routing are effectively treated as methods for reducing the dissipation of energy and maximising WSN IoT support life. This paper presents the new Energy Aware Adaptive Fuzzy neuro clustering with the WSN assisted IoT algorithm EAANFC-MR. EAANFC-MR is proposed for two main stages, clustering and multihop routing on the basis of EAANFCs. For selecting CHs with Residual Energy (RE) and Distance and Node degrees the EAANFC based cluster technique is used. The QOBFO algorithm, which is used as a Multihop Route Technique, is then used to select optimised roads to the destination. MATLAB is used to simulate the proposed EAANFC-MR model. The goodness of the EAANFC-MR model interspersed with various aspects was demonstrated through a series of experiments.


Introduction
The use of the internet has progressively evolved in daily life in recent decades. The principal objective of a global networking environment such as an intelligent communication system is to connect all entities in the environment. The Internet of Things (IoT) is used in the interest of modern society and is composed almost by wireless sensor knots and networks. It combines people and things. This kind of innovation leads to the development, by physical and virtual utilities, of new models and services. The IoT concept relies on previous models of communication. It is therefore impossible and highly challenging to develop a substantial and essential IoT system according to the necessary factors. For each sensor device and object, the efficiency of IoT is important to ensure the latest interoperability. In comparison to the IoT platform, Wireless Sensor Network (WSN) [1] plays an essential role, particularly in developing integrated circuits to support modification of sensory sensing devices, to determine the weather conditions and to collect the relevant data transmitted to users on the platform. The life span of a battery that has to be considered when designing the model [2] is an important factor at this point. A node of the sensor consists of minimum energy sources, which are not substituted. Therefore, the WSN nodes must be developed with power efficiency and the supremacy of the system must be increased. Furthermore, the clustering of the WSN represents an effective topological pattern and control mechanism to reduce WSN power consumption.
The clustering of nodes is used to extend the lifecycle of the network and also its status as power efficiency, reduced delay and increased scalability. Here, the cluster based routing of cluster head (CH) and routing of the CH was performed with 2 imperative steps [3]. Subsequently, CH processes power conservation where information is collected from the nodes and sends it to BS using CH. The correct selection of CH leads to lower power consumption and extends the duration of the WSN. In the clustering and cluster-reliant routing, in addition, massive developers concentrated on the CH election. The use of power [4] is therefore one of the key factors in the development and routing of clusters, with few developers focused on clustering to efficient routing. Clusters were first deployed on all space-based iterations between node and CH, while the nodes do not consider the components that affect the power and network life. The energy here is marked and at the election of the CH a node is supposed to have maximum power and minimum distances from members. A novel CH was selected with the application of a similar principle when the power is reduced in CH.
This article introduces an effective energy-available neurofuzzy clustering technique for WSN IoTassisted multihop routing (EAANFC-MR). Two major processes include EAANFC-MR clustering and multi-hop routing. The EAANFC-MR Protocol is proposed. The first is the concept of an adaptive fuse logo algorithm (ALFIS) and an adaptive neural fuse inference system (ANFIS) for the selection of an effective cluster head system. Firstly, EAANFC includes the concepts (CHs). After that, a multihop routing approach is used to select optimal destination routes by the quasi-oppositional bacterial foraging optimization Algorithm (QOBFO). MATLAB is used to simulate the suggested EAANFC-MR model and the results are examined in various ways.

Related Works
In Mhemed et al. [5], the Fuzzy Logic (FL) application is used to build a cluster and three additional variables. One main drawback of this method is that the cluster size is not taken into account but it is one of the important elements to ensure that nodes in a system produce reduced power consumption. Followup in Izadi et al. [6] is a new model that combines the requested message and CH allows for the combination of the sensor node with CH. Some additional articles in this literature are also [7] carried out. These works have reduced the use of energy and presented models for efficient energy conservation. Therefore, most implementations have demerits by means of power improvement because of the instability in node movements. In Ari et al. [8], the implementation of the FL-related decision-making approach was a novel method for relay selection. Betzler et al. [9] predicted a round trip model IoT that was carried out by a back-off timer thinking the timeout rediffusion was the age factor. Most IoT networks have the complex nature. In order to quantify energy efficiency routing, developers have also focused in the clustering phase on clustering. In Logambigai et al. [10], the FL model was introduced to uniform clusters by researchers.
A routing technology has been introduced in Naranjo et al. [11] to achieve optimum stability in heterogenesis-assisted energy-constrained fog WSN. In this context, an alternative method for organising development nodes is used and CH elections are conducted in WSN. In this context the SEP (P-SEP) extension is based on standard 2 electricity stages and the latest node was used. P-SEP is suitable for calculating the election of CH among the hubs, which shows that every node has an equally similar chances of being a CH. In IoT supported WSN systems, Elappila et al. [12] planned survivable routing paths. It is run by means of various sources in networks with maximal traffic to simultaneously forward the packets to the destination for remote clinical services.
Han et al. [13] have described the WSNs' dynamic routing technique to social IoT. It sets out a dynamic teamwork model to report the problems in the source area, assuring transformation. Therefore, a complex management strategy extending the transmission time of the data. A random selection of the newly deployed model takes place. The packet then passes through the greedy path and is last coordinated before the BS. The newly deployed approach, hypothesised and exploratory results suggest that source territorial protection is guaranteed, as well as several security disclosure errors that do not influence device lifespan. In order to enhance IoT-assisted WSN power performance, Fouladlou et al. [14] have used an alternative routing system. The common genetic algorithm (GA) is used for clustered sensors and performs standard routing, extending the length of the network. In order to achieve energy efficiency at W Shen et al. [15], the IoT upgrades its model output predicted a new centroid based routing technology. Thus, EECRP consists of three parts, the new bunch improvement theory that triggers the autonomical relation of adjacent junctions, the alternate course of action to adjust groups [16] and the centre position of the energy pile between all sensor nodes that transform the group head and the alternative mechanism to minimise the essential use of long-range correspondence. In order to assess the role of EECRP, in particular, the enduring prospects are presumed in the EECRP. In addition, EECRP is an acceptable model with an extended life and BS is positioned properly. Although various models are provided in the literature [17][18][19][20][21], successful clustering and routing algorithms for WSN still need to be developed. Fig. 1 shows the EAANFC-MR model workflow. The figure shows that the model being submitted is deployed with nodes in the target field arbitrarily. The nodes are then initialised and information is shared. Followed by the three input parameters of the EAANFC technique, the optimum set of CHs is defined. The MR technique is then used to identify the shortest path of communication between the clusters using the QOBFO process. Finally, the process of data transfer will take place.

EAANFC based Clustering Process
In this section, the EAANFC technique performs the clustering process and elects the CHs using three input parameters namely Residual Energy (RE), DBS, and node density (ND). RE is an essential source that needs to be assumed in the IoT based WSN. Generally, the CHs exploit the maximum amount of energy compared to CMs due to aggregation, processing, and data transmission.
The formula to compute RE is given below.
where E0 and Ec denotes the initial energy and exploited node's energy. Next, the distance is another measure which needs to be minimum for effective CHs. The communication cost can be represented by where d avg denotes the average distance among the present and nearby nodes d 0 is the communication range of the particular node. The nodes which are closer to neighbors are considered as optimal ones.
ND is a measure used to utilize the count of nearby nodes in the network and is represented as where D i represents the nearby node count and D 0 denotes the optimum number of nearby nodes.
It is predicted here that the Adaptive Neuro-Fuzzy Algorithm (ANFCA) will be adapted. The properties of ALFIS are integrated in the ANFIS newly implemented model. ALFIS was used to carry out the ANFIS training data. As an input to ANFIS, the simulation results of ANFLIS are used in conjunction with a history of weight changes and membership function (MF). AFLIS is applied for information from the node of a sensor that must be selected as a CH during this approach [22]. As the input data set for next ANFIS the result of FIS is induced. In addition, AFLIS Mamdani engine was seen. The functioning of this system takes 3 steps, RE, ND as well as DBS, whether or not it can work as CH, to compute the node observation. The FIS adaptive model is used in 4 phases before the likelihood of the node to be selected as CH.
A. Fuzzification: 3 metrics as input are given as mysterious inputs in FIS, namely RE, ND and DBS. Then, for each metric known as the intersection point, a fuzzy inference scheme develops MFs.
b. Knowledge Base: consists of 27 rules which simultaneously enforce inputs and result in a chance measure. Several inputs are used here; selecting the lower MF values of the fuszy AND operator, however, is calculated. c. Aggregation: 27 FIS rules have multiple effects. In this context, the simulation result is collected with the assistance of a union fuzzy OR operating system that selects the higher rule estimate to produce a single fugitive output. d. Defuzzifier: whether or not a sensor is processed as a CH is determined at this point. Then, the model is aggregated as Eq in the defuzzification phase by fuzzy collection Eq. (4).
where l c ðzÞ estimates the value of MF of entity z inside a fuzzy set C, that is defined as C ¼ fðz; l P ðzÞÞ=zEZ, in which Z indicates the universe of discourse.
In the application of controlled learning techniques, ANFIS was developed via a 5-layer feed-forward neural network (FFNN). This layer is a floated, T-norm, normal, defuzzy and aggregated layer, which corresponds to the 1st, 2nd, 3rd, 4th, and 5th layers. The 5 layers of adaptive nodes comprise 1st and 4th layers and the balance layers of fixed nodes. In addition, three entries such as RE, NDBS, and ND and an output were applied: chance CH. In addition, 27 if-then rules for the Takagi-Sugeno FIS ANFIS were submitted. For the training of preceding and current variables, ANFIS applies ANFIS. The primary layer imitates a nonlinear premise vector in the adaptive node while the 4th layer consists of linear consequential attributes. At the initial phase, the GD or Back Propagation (BP) model was used as a learning technique. Application is needed. As contrasted with ANN with local minima, the convergence of the hybridised learning scheme is robust. ANFCA success is incorporated in 2 passes, both in front and back. The input signals proceed with the forward passage and continue until the 4th layer is reached. The data is connected to the original output until the result has been completed and the error value is determined. Then errors occurred in the backward pass because the contrast of the output is conveyed to the initial layer dynamical node. The MF has been upgraded according to the GD model in the meantime. The final measurements are predefined in this case. The newly developed method is therefore run in three phases: CH selection, cluster forming and data transfer. CH must first be chosen. After that, at the beginning of the radius clusters are formed. Finally, the added data is sent to BS by CH. The structural layout of ANFIS is shown in Fig. 2.

QOBFO Algorithm
The basic architecture of the BFO approach has been presented in this section [23]. In order to begin the initialization of conventional BFO technique, 2 significant portions are applied: Thus, the fitness of ith bacterium in an optimization space is illustrated as J i ða; b; cÞ, and referred as a function of the bacterium as given in the following: From Eq. (5), minimum scores of the function show maximum fitness. iimplies the ith bacterium, whereas a; b; andcrefer to the major performance of the BFO technique: chemotaxis, reproduction, and elimination and dispersal.

Chemotaxi
It is composed of higher swimming as well as flipping actions. In jth chemotaxis process, the trend of ith bacterium is exhibited as: where the swimming step length of ith bacteria is classified as swimming step size CðiÞ and count of swimming nas well as DðiÞ refers the direction vector of ith bacteria in p-dimension optimization space. Every element of DðiÞ is an arithmetical measure from½À1; 1; where initialization is a collection of random values inside the specified radius. If the ith bacterium identifies maximum fitness position which is suitable for jth chemotaxis, and it is followed in a similar direction that depends upon the time. Followed by, DðiÞ selects a novel and random direction.

Swarming
The swarming behavior of a bacterium is simplified by attraction as well as repulsion. The numerical associations are expressed as: where d att refers to the depth where the attracted material is provided by ith bacterium, whereas x att implies the width of similar material attracted. Likewise, 2 bacteria could not be accurate in a similar position, and repulsion is applied as h rep and x rep . Once the swarming process is completed, the fitness of ith bacterium is depicted as:

Reproduction
The bacteria are replicated while reaching an effective platform; else, it is considered as an expired one. Therefore, once the chemotaxis and swarming process are completed, the fitness of bacteria has been computed and arranged. Hence, the fitness of ith bacterium is illustrated as given below: The partial bacterial status is denoted S r ¼ ðS=2Þhas been elected for survival, whereas the alternate portion is expired. Then, survived bacteria reproduce into 2 colonies placed in a similar region, by retaining the position of bacteria S.

Elimination and Dispersal
Once the reproduction is completed, every bacterium is dispersed with the possibility of P ed , the however overall count of bacteria is retained as the same. After eliminating the bacterium, it is dispersed randomly to another position.
As illustrated in (6), elimination happens if r i , P ed : The actual place of ith bacterium P i is substituted by another one P 0 Finally, effective parameter m is upgraded into an arbitrary parameter m 0 which is resolved into optimization space.

Quasi Oppositional Based Learning (QOBL)
The definition of QOBL is introduced [24] to improve the convergence rate of the BFO model. The OBFO technology flow chart is shown in Fig. 3. OBL is a recent paradigm used to speed up the convergence rate of many optimization approaches. OBL concurrently treats the present and its competitors to achieve the best outcome. A number of studies have shown that the point of opposition contains an optimum chance of being nearer than the random outcome of the candidate. This learning protocol has been successfully implemented in many soft computing methods. Now, OBL shows the opposite number and opposite points. The opposite number is determined as the reflect point of the result from the midpoint of the search area and it can be mathematically defined as follows. When x be a real number among [a, b], its opposite number x 0 is determined as Next to that, opposition point in d-dimension area is provided here. When Pðx 1 ; x 2 ; . . . . . . x i ; . . . . . . x d Þ is a point in d-dimension search area, its opposite point OPðx 0 1 ; x 0 2 ; . . . . . . x 0 i ; . . . . . . x 0 d Þ may be defined as follows.
In similar logic is extended to the Quasi-opposite number x q0 and quasi-opposite point utilized in QOBL are defined as follows: The quasi opposite point QOPðx q0 where x q0 i is a random number uniformly distributed among c i and x 0 i .

QOBFO Algorithm Based Multi-hop Routing Process
In the case of routing, the dimension of every bacterium is the same as CHs and the additional location is included in the BS. Assume that, h i ¼ ðh i 1 ; h i 2 jh i pþ1 Þ be a i th bacterium, h i n i which indicates a real value among 0 and 1. Then, the presented mapping function is used for estimating the next-hop to BS. A mapping function is depicted in Eq. (15).
The key objective of this approach is to choose the best path between CHs and BS. This can be accomplished by using the fitness function by considering diverse objectives like RE, and Euclidean distance. Initially, the RE of subsequent hop is chosen as a relay to a BS. For communication purposes, the subsequent hop obtains and collects data and sends it to BS. Hence, the maximum RE for next-hop is highly preferred. Thus, first sub-objective interms of RE is f 1 which is upgraded as: Next, Euclidean distance is utilized for determining the distance among the CH to next-hop and BS. Energy reduction is directly proportional to a broadcast distance. When a distance is lower, afterward its lowest amount of energy is expended. Hence, the next goal is to reduce the distance among CH and BS. Finally, it enhances the network lifetime. Thus, the second sub-objective by means of distance is f 2 which is referred to as: 240 IASC, 2021, vol.29, no.1 The above-mentioned sub-objectives are diverse ranges which convert the similar range normalization function. Secondly, the weighted sum model is used for sub objective as well as converted as a single objective as illustrated in Eq. (18). In this approach, a 1 and a 2 means the weights allocated for all sub objectives.  that the TCBDGA model has been found to be ineffective by attaining maximum energy dissipation. Also, the FRLDG model has tried to show slightly better energy dissipation over the earlier method. Followed by, the MOBFO-EER model has depicted moderate results with the average energy dissipation over the earlier methods. Along with that, the FEEC-IIR and FF models have reached a near optimal energy dissipation under varying IoT node count. At last, the EAANFC-MR model has accomplished minimum energy dissipation over all the other compared methods. For instance, under the maximum node count of 500, the EAANFC-MR model has reached a lower energy dissipation of 114mJ whereas the FF, FEEC-IIR, MOBFO-EER, FRLDG, and TCBDGA models have obtained a higher energy consumption of 42mJ, 45mJ, 55mJ, 65mJ, and 135mJ respectively.     7 showcases the ETE delay analysis of the EAANFC-MR method with a group of earlier approaches. The figure implied that the TCBDGA approach has meant to be insignificant by reaching a higher ETE delay. Moreover, the FRLDG framework has attempted to display a moderate ETE delay when compared with the traditional framework. Besides, the MOBFO-EER technique has showcased better outcomes with the average ETE delay than the classical models. In line with this, the FEEC-IIR and FF methodologies have gained closer and identical ETE delay under various IoT node count. Simultaneously, the EAANFC-MR approach has achieved a low ETE delay than the traditional approaches. For sample, under the higher node count of 500, the EAANFC-MR scheme has obtained a minimum ETE delay of 4.2s while the FF, FEEC-IIR, MOBFO-EER, FRLDG, and TCBDGA frameworks have attained maximum ETE delay of 6s, 6.2s, 8.9s, 9.3s, and 9.4s correspondingly. technology has managed to reach slightly better throughput. Similarly, the FEEC-IIR and FF methods have accomplished better throughput. Therefore, the EEANFC-MR approach has illustrated qualified results with higher throughput. For illustration, under the node count of 500, the EAANFC-MR framework has achieved maximum throughput of 0.79Mbps and the FF, FEEC-IIR, MOBFO-EER, FRLDG, and TCBDGA technologies have accomplished low throughput of 0.65, 0.61, 0.53, 0.46, and 0.47 Mbps respectively. Fig. 9 illustrated the packet loss ratio analysis of the EAANFC-MR with a collection of classical approaches. The figure illustrated that the TCBDGA framework is referred to as worse by achieving a higher packet loss ratio. Moreover, the FRLDG technique has managed to demonstrate a considerable packet loss ratio over the compared model. Then, the MOBFO-EER scheme has showcased better results with the average packet loss ratio when compared with previous technologies. Along with that, the FEEC-IIR and FF approaches have attained closer optimal packet loss ratio under distinct IoT node count.  Consequently, the EAANFC-MR model has gained the least packet loss ratio over all the previous approaches. For example, under the higher node count of 500, the EAANFC-MR approach has achieved a minimal packet loss ratio of 2% whereas the FF, FEEC-IIR, MOBFO-EER, FRLDG, and TCBDGA models have accomplished maximum packet loss ratio of 4%, 5%, 6%, 8%, and 12% respectively.

Conclusion
Since IoT devices exist in WSN with built-in batteries, power efficiency is a problem that must be overcome. This paper has established a new routing protocol based on the IoT-assisted WSN cluster called the EAANFC-MR technique. The proposed EAANFC-MR is operated in two main phases: EAANFC-based and multihop. In order to determine the best set of CHs, the EAANFC technique with 3 input parameters is implemented. The MR technique is then implemented by QOBFO to detect the shortest path to contact between clusters. Finally, the method of data transfer will be performed. A comprehensive comparative analytical finding have ensured superior energy dissipation, lifespan, PDR, packet loss, transmission and delay efficiency in EAANFC-MR model. Using data aggregation techniques to improve the efficiency of the EAANFC MR model in the future.