A Multiobjective, Lion Mating Optimization Inspired Routing Protocol for Wireless Body Area Sensor Network Based Healthcare Applications

The importance of body area sensor networks (BASNs) is increasing day by day because of their increasing use in Internet of things (IoT)-enabled healthcare application services. They help humans in improving their quality of life by continuously monitoring various vital signs through biosensors strategically placed on the human body. However, BASNs face serious challenges, in terms of the short life span of their batteries and unreliable data transmission, because of the highly unstable and unpredictable channel conditions of tiny biosensors located on the human body. These factors may result in poor data gathering quality in BASNs. Therefore, a more reliable data transmission mechanism is greatly needed in order to gather quality data in BASN-based healthcare applications. Therefore, this study proposes a novel, multiobjective, lion mating optimization inspired routing protocol, called self-organizing multiobjective routing protocol (SARP), for BASN-based IoT healthcare applications. The proposed routing scheme significantly reduces local search problems and finds the best dynamic cluster-based routing solutions between the source and destination in BASNs. Thus, it significantly improves the overall packet delivery rate, residual energy, and throughput with reduced latency and packet error rates in BASNs. Extensive simulation results validate the performance of our proposed SARP scheme against the existing routing protocols in terms of the packet delivery ratio, latency, packet error rate, throughput, and energy efficiency for BASN-based health monitoring applications.


Introduction
The ratio of the aged population is increasing globally. Aged persons are at higher risk of diseases. Especially, there are some chronic, life-threatening diseases such as diabetes and cardiac arrest that require continuous monitoring of patients. On the other hand, healthcare expenditures head node) among themselves. The cluster leader is mainly a powerful node compared to elementary sensors that are in charge of performing data aggregation and communication to the terminal base station. Inspired by the above-mentioned ideas, the work in [23] discusses a cluster-based routing protocol for BASNs. In the proposed protocol, the biosensors are partitioned into groups called clusters. Each cluster has several member nodes, and the main coordinator (referred to as a cluster head) is responsible for collecting periodic or streamed data about the phenomenon of interest from the member nodes. The cluster heads aggregate the collected data and send it directly to the terminal base station or they use multihop communications. Similarly, the study in [24] proposes a dual sink clustering routing protocol for reliable packet transmission in BASNs. However, the use of a dual sink increases the overall network deployment cost and network complexity. Also, the ratio of the number of incorrectly conveyed data packets increases, and the total number of invalid transmi ed packets increases. Therefore, this coexistence problem increases the retransmissions and latency of packets. Hence, it is essential to implement predictive mechanisms that allow avoiding and minimizing the impact of a channel coexistence problem for reliable packet delivery in BASNs.
Nevertheless, to the best of our knowledge, few bio-inspired research efforts have been exploited to improve routing performances using distributed communication methods. For example, the research in [25] proposes a bio-inspired, multi-objective routing protocol to optimize the routing performance in BASNs. The proposed scheme achieves packet transmissions with no excessive collision, which successfully ensures both low energy consumption and high data transmission rates in the network. However, the memory required of the proposed scheme to store node topology information and to schedule neighbor information is large. Similarly, the work in study [26] also presented a bio-inspired routing protocol to find the optimal routing path for reliable data delivery to the sink. However, the proposed protocol does not consider a complete collision avoidance mechanism in BASNs. Table 1 shows the comparison of different routing schemes developed for BASNs.

Challenges and Research Motivations
In BASNs, the biosensors need to be extremely tiny in order to be wearable and implantable. Large on-body or in-body biosensors will heavily impact the daily lives, or even body functions, of patients. This size requirement imposes strict limitations on the ba ery size of the nodes. However, these nodes are expected to continuously work for several days. So, the biosensor nodes need to be extremely energy efficient. The main functions in which the energy of a sensor node is consumed are data collection from the body, data processing, and data transmission. In typical biomedical applications, energy consumption is dominated by the biosensors' radio units during data transmission, which is highly dependent on communication links between nodes [27]. So, data need to be transmi ed with extreme reliability, in terms of latency, packet error rates, and packet delivery rates, and the energy efficiency requirements need to be managed wisely since the signal collected and transmi ed can be life-critical. The data collected in dynamic and frequently changing environments are mostly time-dependent and have temporal validity, within which the information should be transmi ed to remote command centers with acceptable loss rates and in time to ensure effective and timely decision making. Thus, data freshness is one of the key issues that should be provided since collections are made in discrete points in time. Therefore, timely delivery is a crucial requirement since the data generated by the body sensors must be delivered in real-time to the destination in order to be processed and analyzed before the deadline; otherwise, the packet will no longer be useful [28]. To this end, the design of a BASN system requires coping with fast-changing environments in a responsive and real-time manner in healthcare applications, which generates heterogeneous traffic in the network. In addition, because of the relatively small antennas and simple energy-efficient designs, the receivers' sensitivity level is not high either. If severe a enuation occurs around or within the human body, it may cause transmission outages due to poor link quality. Moreover, the received signal strength is mostly affected by unpredictable user body movements, which effects the wireless signals and leads to excessive rerouting due to poor links between nodes in the network.
Furthermore, because of the broadcast nature of the wireless medium and the limited radio spectrum, co-located BASNs may temporarily be exposed to a significant amount of interference in the network. Also, interference occurs when multiple body sensors come close together at distinct locations. In these cases, the coordination strategy designed may fail or reduce the communication performance of the entire system, which leads to low packet delivery rates in the network. To tackle these issues, several routing protocols have been proposed for BASNs in the literature (see Section 2 for details). The main purpose of the existing research work is to achieve reliable and energy-efficient wireless communications among the body sensors and to prolong the network's lifetime. Some of these designs serve as a foundation for the BASNs, such as the idea of an energy-efficient packet forwarding mechanism [29]. However, most BASN studies face common issues, such as they do not consider the link quality, which results in excessive packet losses in the network. In addition, BASN nodes always prefer to choose the shortest path during packet forwarding, which may balance energy consumption at the individual node but degrades the overall energy consumption performance of the network. Moreover, intermi ent network connectivity over the shortest paths may delay the transmission of critical and urgent data, leading to the loss of sensor readings and an increased number of fatalities faced by groups of users in harsh environments, and it may, in consequence, hamper communication efficiency. Furthermore, if the load balance is not considered, the nodes located in the center of the body and closer to the sink will face congestion issues. Besides, these schemes, because of a lack of multiobjective features, can only achieve one objective at the expense of others in the given time. Thus, these schemes cannot maximize the performance and solve the challenges associated with monitoring the human body; thus, they are quite vulnerable to body channel fluctuations in BASNs. Hence, a novel routing protocol is greatly needed for BASN-based health monitoring applications.
All aforesaid facts motivated our research to develop a novel, multiobjective, lion mating optimization inspired, clustering-based routing protocol that simultaneously supports various Quality of Service (QoS) requirements for BASN-based IoT health monitoring applications. In the proposed scheme, the entire routing problem has been modeled using mixed-integer linear programming (MILP). This research has the following main contributions: • A novel, multiobjective lion mating optimization algorithm is proposed to avoid local search problems during tackling the various objectives in the given problem search space. • A multiobjective, lion mating optimization based routing mechanism is proposed to provide robust, reliable, and energy-efficient delivery of patient data to the medical data center in dynamic situations, where doctors or autodiagnostic systems can react to abnormal situations.

•
Extensive simulation studies are performed using MATLAB 9.5 (R2018b) to validate the performance of the proposed scheme against the existing routing protocols designed for BASN-based health monitoring applications.

Proposed SARP Routing Protocol for BASNs
The protocol design details are given in the following sections.

Network Model and Assumptions
An illustration of the proposed wireless body area sensor network model for healthcare monitoring systems is given in Figure 1a,b. It can be seen from Figure 1b that a mobile body is in the standing position with arms hanging along the side, and there are various types of biosensors, such as electromyography sensors (nodes 6, 18, and 22), electroencephalogram sensors (nodes 1, 2, and 3), Arduino pulse sensors (7, 8, 9, and 10), temperature sensors (nodes 4, 11, 12, and 13 ), pressure sensors (16, 23, 24, and 25), osteoporosis sensors (nodes 14, 15, 17, and 19), motion sensors (nodes 5, 20, and 21), and one coordinator (node 26), on the surface of the human body. Different colors show the various types of biosensors located on the patient's body. The coordinator is located at the left hip pocket, and the sensors are located at the head, shoulder, chest pocket, abdomen, left wrist, right wrist, right ankle, knees, calf, and so on. These biosensors continuously capture large quantities of life signals from the human body and transmit the information directly, or via relay nodes, to the sink. The role of the coordinator, which acts as a sink node for the biosensors, also acts as a gateway for communicating with the outside world. Thus, it is responsible for controlling the network, collecting all sensor data from the elementary sensors, and then relaying it to its destination in a prompt and reliable way. The coordinator role is of a personal digital assistant that communicates with the medical care center through wireless networks, such as a cellular network or a local area network connected to the wide-area network. All aforesaid facts motivated our research to develop a novel, multiobjective, lion mating optimization inspired, clustering-based routing protocol that simultaneously supports various Quality of Service (QoS) requirements for BASN-based IoT health monitoring applications. In the proposed scheme, the entire routing problem has been modeled using mixed-integer linear programming (MILP). This research has the following main contributions: • A novel, multiobjective lion mating optimization algorithm is proposed to avoid local search problems during tackling the various objectives in the given problem search space. • A multiobjective, lion mating optimization based routing mechanism is proposed to provide robust, reliable, and energy-efficient delivery of patient data to the medical data center in dynamic situations, where doctors or autodiagnostic systems can react to abnormal situations.

•
Extensive simulation studies are performed using MATLAB 9.5 (R2018b) to validate the performance of the proposed scheme against the existing routing protocols designed for BASNbased health monitoring applications.

Proposed SARP Routing Protocol for BASNs.
The protocol design details are given in the following sections.

Network Model and Assumptions
An illustration of the proposed wireless body area sensor network model for healthcare monitoring systems is given in Figure 1a,b. It can be seen from Figure 1b that a mobile body is in the standing position with arms hanging along the side, and there are various types of biosensors, such as electromyography sensors (nodes 6, 18, and 22), electroencephalogram sensors (nodes 1, 2, and 3), Arduino pulse sensors (7, 8, 9, and 10), temperature sensors (nodes 4, 11, 12, and 13 ), pressure sensors (16, 23, 24, and 25), osteoporosis sensors (nodes 14, 15, 17, and 19), motion sensors (nodes 5, 20, and 21), and one coordinator (node 26), on the surface of the human body. Different colors show the various types of biosensors located on the patient's body. The coordinator is located at the left hip pocket, and the sensors are located at the head, shoulder, chest pocket, abdomen, left wrist, right wrist, right ankle, knees, calf, and so on. These biosensors continuously capture large quantities of life signals from the human body and transmit the information directly, or via relay nodes, to the sink. The role of the coordinator, which acts as a sink node for the biosensors, also acts as a gateway for communicating with the outside world. Thus, it is responsible for controlling the network, collecting all sensor data from the elementary sensors, and then relaying it to its destination in a prompt and reliable way. The coordinator role is of a personal digital assistant that communicates with the medical care center through wireless networks, such as a cellular network or a local area network connected to the wide-area network.
(a) In the monitoring process, the end nodes located far away employ intermediate nodes to act as relay nodes to convey information to the sink. The relay nodes fulfill the functions of collecting and monitoring data as well. Once the coordinator collects the data from the sensors, the collected information is forwarded through the internet-enabled sink to the medical data center, where doctors or auto-diagnostic systems react to abnormal situations. The nodes in the wireless body area sensor network have short-range communication capabilities and are equipped with limited power, processing, and storage units. In sum, the body area sensor network is composed of three types of nodes, namely, biosensors, sink, and the relays. In simulation studies, we assumed the following: The deployed biosensor nodes on the human body are associated with a unique identifier by which they can be distinguished from others. Since the sensors are deployed deterministically, they have a fixed location and distance with the neighboring nodes along the surface of the human body in spite of body gestures. Thus, each node knows its location and are neighbors only if they are in the communication range of each other. The deployed sensors are equipped with equal initial power, memory, computation, and communication capabilities. The packet collision avoidance mechanism, called time division multiple access (TDMA), is used for collision-free channel access in BASNs. Finally, a remote user can access, monitor, and reconfigure the biosensors located on the human body via one of the communication technologies such as 4G, Ethernet, or WiFi.

Bio-Inspired Computing and Optimization Problems
Optimization is a procedure to find the most appropriate solution to the given problem of interest. There exist two main categories of optimization problems, namely, the combinatorial optimization problem and continuous optimization problem. The combinatorial optimization problem usually employs discrete variables, while the continuous optimization problem includes continuous variables of a problem. On the other hand, deterministic and stochastic algorithms are two main optimization methods. The deterministic algorithms require a small number of iterations to provide good efficiencies for certain problems. However, they face the problem of being trapped in local optima. On the contrary, stochastic algorithms can escape from the local optima by employing randomness in their strategies to search more regions on a global scale. Therefore, this technique offers a set of alternative solutions from the same initial points for each individual involved in the In the monitoring process, the end nodes located far away employ intermediate nodes to act as relay nodes to convey information to the sink. The relay nodes fulfill the functions of collecting and monitoring data as well. Once the coordinator collects the data from the sensors, the collected information is forwarded through the internet-enabled sink to the medical data center, where doctors or auto-diagnostic systems react to abnormal situations. The nodes in the wireless body area sensor network have short-range communication capabilities and are equipped with limited power, processing, and storage units. In sum, the body area sensor network is composed of three types of nodes, namely, biosensors, sink, and the relays. In simulation studies, we assumed the following: The deployed biosensor nodes on the human body are associated with a unique identifier by which they can be distinguished from others. Since the sensors are deployed deterministically, they have a fixed location and distance with the neighboring nodes along the surface of the human body in spite of body gestures. Thus, each node knows its location and are neighbors only if they are in the communication range of each other. The deployed sensors are equipped with equal initial power, memory, computation, and communication capabilities. The packet collision avoidance mechanism, called time division multiple access (TDMA), is used for collision-free channel access in BASNs. Finally, a remote user can access, monitor, and reconfigure the biosensors located on the human body via one of the communication technologies such as 4G, Ethernet, or WiFi.

Bio-Inspired Computing and Optimization Problems
Optimization is a procedure to find the most appropriate solution to the given problem of interest. There exist two main categories of optimization problems, namely, the combinatorial optimization problem and continuous optimization problem. The combinatorial optimization problem usually employs discrete variables, while the continuous optimization problem includes continuous variables of a problem. On the other hand, deterministic and stochastic algorithms are two main optimization methods. The deterministic algorithms require a small number of iterations to provide good efficiencies for certain problems. However, they face the problem of being trapped in local optima. On the contrary, stochastic algorithms can escape from the local optima by employing randomness in their strategies to search more regions on a global scale. Therefore, this technique offers a set of alternative solutions from the same initial points for each individual involved in the optimization process. The local search improves a candidate solution until advances are identified, while randomization avoids the solution being trapped into local optima. Exploration and exploitation are two major components in each metaheuristic algorithm search process. Some of the most popular metaheuristic algorithms include the genetic algorithm (GA) [30], animal migration optimization (AMO) [31], grey wolf optimization (GWO) [32], lion optimization algorithm (LOA) [33], and many others. In GAs, natural selection is simulated by a stochastic selection procedure. Each solution is allowed to regenerate based on its "fitness". The variation process imitates the natural capability to create new generations by employing crossover and mutation. Here, crossover operates on various portions of chromosomes through the process of switching over. Mutations are accomplished by flipping a single, randomly selected gene within a chromosome. The main advantages of these algorithms include the low probability of entrapment into local modes and faster convergence due to appropriate information-sharing during optimization.

Multiobjective Problems (MOPs)
Many different applications in engineering, science, and industry have a considerable degree of complexity, and sometimes this complexity might be based on the existence of various conflicting objective functions, which must be simultaneously optimized. These kinds of problems are the so-called multiobjective optimization problems (MOPs). However, in everyday life, most optimization problems are not static in nature and usually have at least one objective that can change over time. Most researches focus on either static, multiobjective optimization or dynamic, single-objective optimization. However, the literature reveals that not much research has been done on dynamic multiobjective optimization (DMO) [34]. There are only a few studies on multiobjective optimization algorithms in different areas of study, such as in transportation, manufacturing, scheduling, systems engineering, and so on, because of their ability to successfully capture different and possibly conflicting goals of decision-makers [35]. However, some of the above-mentioned mechanisms when designed for multiobjective optimization problems have several limitations, and this introduces diversity during the optimization process, which usually depends on the ability of the optimization algorithm. Sometimes, such algorithms present difficulties in tracking the new positions on the Pareto optimal front. Furthermore, they may not efficiently work when the changes in the problem are severe or fast. The use of multiple populations in the design of existing multiobjective schemes can affect the performance of the optimization algorithm. Approaches based on prediction mechanisms depend on how well the predictors are trained. The use of memory-less approaches has the disadvantage of generating abundant information and may not necessarily promote diversity. Besides, these optimization algorithms are mostly designed to achieve a single objective as a trade-off with others and, therefore, cannot be directly implemented to achieve a set of objectives in the given problem search space instantaneously. Moreover, there are several mathematical programming methods that have shown to be effective for solving MOPs. However, there are cases where these methods cannot guarantee that the solution obtained is optimal. Also, some mathematical programming methods can be inefficient or even inapplicable for particular problems. Furthermore, one of the most important features that should be considered for the design of dynamic optimization algorithms is that such algorithms must present not only a fast convergence level but also a good mechanism to promote diversity.

Multiobjective Lion Mating Optimization Algorithm (MLOA)
The traditional LOA is inspired by social behaviors of lions in a habitat. Lions are social cats belonging to the family Felidae living in open savanna. Lions are primarily nocturnal or crepuscular with two classes of social organization, namely, residents and nomads. The resident type includes several generations of females and their cubs and a few males who live in a group called pride. In the nomad types, lions and lionesses who leave out their maternal pride live either in pairs or singularly. Thus, a lion or lioness may change their lifestyle between residents and nomads. In the habitat, each pride has a well-defined territory where the lions proclaim their territory by roaring and strictly defend against intruding lions entering their territory. In a pride, the lionesses are the main hunters who work in a group together to hunt for food [36]. They spread out and surround potential prey from different directions and take down prey with an instant a ack. The lions also hunt prey together with lionesses in some areas; however, the main job is to protect the pride. Successful coordination among lions and lionesses in a hunting group can lead to a high probability of triumph in lion hunts. The lions and lionesses become tired after running short distances and pay no a ention to the wind direction during hunting the prey. However, the wind may carry their scent to their prey, which lets the prey run away from the hunters, and also slows down their running speed during hunting. The lions spend most of their time resting in their pride for various reasons such as a lack of prey, to avoid the heat, and to conserve energy for the hunting day.
During periods of rest, the lions and lionesses have several opportunities for social behavior such as chafing their heads together, playing, and sleeping in groups, which are important for fortifying their social relationships. During the mating period, lionesses may mate with multiple lions several times. In the evolution process, nomad lions may try to take over a pride and kill all the new cubs to avoid competition and to mate with the lionesses to produce their cubs [37]. The survived male cubs, when they reach maturity, become a nomad and have less influence than the resident males in a pride. However, if a strong nomad young male succeeds to drive out the resident male, then it becomes the resident lion of the pride. These nomad cats move randomly to find a be er place in the habitat and also to hunt the prey, similarly to resident cats. Lionesses may switch their lifestyles between residents and nomads and migrate from one pride to another pride. Consequently, the weakest lion will die or be killed in a case of competition or lack of food in the pride. This entire process repeats their whole life until they die. However, the LOA cannot be directly applied for the MOPs in BASNs. To make it suitable for MOPs in BASNs, the basic LOA requires critical modifications at different protocol stack levels to make it suitable for MOPs in BASNs. Therefore, some necessary modifications-such as a Pareto search; a dynamic mating model; prey hunting location information, speed, and direction of hunting; search boundary limitations; and survival of the best to avoid local search problems-have been made in the basic LOA to adapt it to the BASN-based MOPs in in the proposed scheme.
Because of the aforesaid reasons, the use of metaheuristics in LMOA is a promising solution to solve MOPs in WBASNs. The LMOA is a kind of stochastic, nature-inspired, metaheuristic method that uses a kind of randomization to search a set of solutions. The proposed multiobjective LMOA provides the best solution among the available that contains a set of objectives to achieve a target in BASNs. In the proposed scheme, the fitness function and previous history prevents the algorithm from being trapped in a local search space during optimizing the given multiple problems. In LMOA, maintaining population diversity is a very important task. If the population diversity is lost prematurely, then tracking new, optimal positions in the environment becomes more difficult. In the LMOA, various GA selection operators, such as crossover and mutation operators, enhance the algorithm's population diversity and the good performance of the scheme, as algorithm optimization promotes good convergence in the BASNs. Also, the survival selection mechanism plays an important role to determine the quality of the solutions that can survive through the optimization process. Different survival selection mechanisms have been proposed as being the most popular Pareto-based selection mechanism. It can break the tie among different objectives by generating the precise Pareto front to solve various problems in BASNs. However, if the problem is combinatorial, generating precise Pareto fronts can be challenging. In this study, we focused on a multiobjective set, covering problem using a decomposition method [38] for generating the precise Pareto front. Particularly, the decomposition method first divides the problem into a set of subproblems, then it generates the exact Pareto fronts of these subproblems, and, finally, it uses the subproblem Pareto fronts to acquire the frontier of the original problem.
The rationale behind this decomposition approach is mainly two-fold. First, the decomposition method requires solving single-objective combinatorial problems to determine a Pareto efficient solution.
The decomposition method requires generating Pareto efficient solutions for the decomposed subproblems, which have significantly smaller feasible regions than the feasible region of the main problem. Therefore, solving the single-objective problems for generating a Pareto efficient solution of a decomposed subproblem is relatively easier than solving the single-objective problem for generating a Pareto efficient solution of the main problem. Therefore, generating all of the Pareto efficient solutions of a subproblem is relatively easier than generating all of the Pareto efficient solutions of the main problem. Consequently, making these single-objective problems easier can improve the computational time. Secondly, the single-objective combinatorial problems that need to be solved become more difficult to solve after generating each Pareto efficient solution, as most of the exact methods need to iteratively ensure that a different Pareto efficient solution is generated. This, in turn, adds more variables and/or constraints to the single-objective combinatorial problem to be solved at each iteration and, therefore, increases the computational time, especially when the Pareto front is large. The decomposed problems with the decomposition approach might tend to have smaller Pareto fronts; therefore, generating all of the Pareto efficient solutions of a subproblem is relatively easier than generating all of the Pareto efficient solutions of the main problem. In this study, we focused on generating alternative solutions, particularly, Pareto efficient solutions for the problem of interest. A solution is a Pareto efficient when there are no other solutions and is superior in terms of all of the objective functions. Consequently, the key objective function ( ) of the proposed scheme in BASNs is to optimize the performance of each lion in each round of the simulation, which is defined in Equation (1) The entire working mechanism of the proposed algorithm is divided into different phases. All the notations used in mathematical modeling are defined in Table 2. Table 2. Notations used in SARP.

Notation Explanation
ℒ (E ) E is the energy consumption subject to minimization by lion ℒ . ℒ ( ) is the delay needing to be minimized by lion ℒ . ( ) is the packet delivery ratio needing to be increased by lion ℒ . ℒ ( ) is the throughput subject to being increased by lion ℒ .
ℓ , indicates the lower and upper bounds of the search space, respectively. ℳ(ℋ ) represents the matrix for saving the position of each hunter by considering the (ℓ) position. ℋ , is the value of the th dimension of the th hunter. is the number of hunters, and is the number of variables.  is a random number whose value is either 0 or 1. is the distance between two lions or between lions and prey in the search space. 1 , 2 is the distance between the female lion's location and the certain point chosen by tournament selection among the pride's territory.
1 , 2 : 1 is a vector whose start point is the previous location of the ℱ ℒ and its direction is toward the selected position ℱ ℒ ( ), and 2 is perpendicular to 1 , i.e., 1 × 2 = 0 and 1 = 1. (ℋ (ℓ) ) is the number of lions in a pride ∈ (ℛℒ ( ) ), which improves their fitness in the last iteration. ℋ ℎ ( ) shows the position of the selected th hunter at the th iteration. ℓ is the position of the prey or a hunter in the search space.
(ℳℒ ,ℳℒ ) is the distance between the male lion's position and the selected area of territory. is the angle to search for a wider area around the current solution in the search space.
is a random, uniformly distributed number between − /6 and /6. β is a randomly generated number with a normal distribution with mean value 0.5 and standard deviation between 0 and 1. Xς is a shadowing factor in dB, which is a Gaussian-distributed random variable with mean zero and standard deviation ς. E (r) is the energy required by the transmit amplifier to maintain an acceptable signal-to-noise ratio to transfer data messages reliably. is the path loss exponent, considered as 2 in free space, and varies for different body locations.

• Initialization
In the proposed algorithm, each solution in the solution space is called 'lion'. First, an initial population is initialized randomly over the -dimensional search space where the entire lion population ( ) is divided into resident lions (ℛ ℒ ) and nomad lions ( ℒ ), such that = ℛ ℒ + ℒ . The resident population lives in the form of groups (ℛ ℒ ) and consists of male lions (ℳℒ ), female lions (ℱ ℒ ), and cubs (ℒ ), including both male cubs (ℒ ℳ ) and female cubs (ℒ ℱ ). Similarly, the nomad population contains a set of males, females, and cubs, including both male cubs and female cubs. In each pride, the female lion population is chosen around % ℛℱ , while the rest are males % ℛℳ . However, this ratio is around 1 − ( ℛℱ + ℛℳ ) in nomad lions and vice versa. This can be numerically indicated as Lions population : • Prey Hunting In the searching process, each lion visits randomly and marks its best-visited position. Then, based on the best-visited locations by its members, each pride's territory is defined in the search space. In each pride, the female and male hunters have specific strategies to look for the prey. They encircle the prey and catch it in order to provide food for their pride. The stalking behavior of these hunters in a group is divided into three basic types, namely, right-wing, center, and left-wing. These three types of hunters in a dimensional space can be numerically indicated as where ℋ , ℋ , and ℋ ∈ ℋ ℎ , and ℛ ℱ ℒ and ℱ ℒ ∈ ℱ ℒ . The hunters located in the center have the highest fitness values compared to the other two wing groups. The initial fitness value of each lion (ℒ ) in the dimensional optimization problem can be statistically shown as During encircling the prey, each hunter optimizes its location by considering its current and previous positions along with the positions of members of the group. Therefore, the hunters a ack from opposite sites in the search space to hunt the prey. This opposition-based learning [39] makes them eligible to intelligently hunt the prey and, therefore, is an effective approach for solving optimization problems. The position of each hunter during optimization is saved in the following matrix.
Consequently, the hunters, one after another, are selected randomly to a ack the prey located in the center of hunters (i.e., = ∑ ℋ ℎ ). During hunting, if a prey escapes from the hunters, then the new position of the prey can be computed as In the hunting process, each hunter improves its own fitness value, and the new positions of the left-and right-wings of hunters can be statistically indicated as The new positions of hunters located in the center are updated as Also, the new position for a female lion moving towards a safe place is updated as To find the best solution for optimization problems by considering the simulated social leadership and encircling behaviors, the best two lions in the search space for hunting the prey are considered as ℛ favor exploration, and they provide random weights to the prey for stochastically emphasizing ( > 1 or < 1) the effect of prey in defining the distance as well as guarantee the exploration to assist the search agent to diverge from the prey, respectively. This random hunting behavior throughout the optimization procedure favors exploration and avoids the local optima problem, not only during initial iterations but also final iterations, in the problem space. Consequently, the success ( ) of a hunter ℋ ℎ(ℓ) to improve its best position (ℬ) at iteration in time in a group (ℒ ( ) ) is defined as in which 1 , 2 is the distance between the female hunter location and the certain point chosen by the tournament selection ( ) among the pride's territory, which can be computed as Finally, the hunters catching the prey in the problem space are simulated using the following equation: where shows the current iteration, and ℓ indicates the position of the th prey at the th iteration.
After each successful hunt, the fitness and position of each lion in the pride are updated, which helps the hunters in the next rounds of hunting in the given problem space. The positions and fitness values of the resident hunters in the pride are stored in ℳ(ℛ ℒ ) and ℳ (ℛ ℒ ( ) ) as and where ℳ is the matrix for saving the fitness of each hunter (ℋ ), and is the objective function. Similar to resident lions, the nomad lions and lionesses also move randomly in the problem search solution to avoid being trapped in local optima. They move towards a certain area of territory by units as = (0, 2 × (ℳℒ ,ℳℒ ) · ) where ∈ − /6, /6 (3r) The new position of each nomad lion in the search is updated as in which , (ℓ) , and ( ) are, as randomly generated vector in the search space, the present location of th nomad lion in the th dimension, and the probability for each nomad lion independently can be calculated as The positions and fitness values of the nomad hunters are stored in ℳ( ℒ ) and ℳ ( ℒ ( ) ) as and (3v) • Cub Generation and Growth Procedure The mating process begins after selecting the lioness and lion(s) to produce new cubs. This fertility evaluation process provides the productivity of the new female lion cubs and the male lion cubs and also produces an updated lioness, named as ℱ ℒ + , which may be obtained as where is a random integer, and ℱ ℒ + ℓ and ℱ ℒ + are the ℓth and th elements of ℱ ℒ + : where ∇ denotes the female update, and 1 and 2 denote the random integers between [0, 1]. On the other hand, the female and male offspring, in which is 1 only if a male lion is chosen for mating, otherwise it equals 0. Consequently, this process uses two fundamental steps called crossover and mutation. We used a random arithmetic crossover ( ) with crossover probability 0.98 and 0.99 between two parents (ℱ ℒ , ℳℒ ) to produce four cubs ℒ ( ) to increase the diversity in the population as where ∘ denotes the crossover mask, and indicates one's complement of . The mutation method ( ) swaps the genes at different points between chromosomes, randomly. The mutation operator with a probability between 0.01 and 0.05 is applied to ℒ ( ) at multiple points to maintain the diversity and help the algorithm out of local optimum solutions. This can be numerically indicated as where ∈ [0, 1]. This process produces the equivalent number of new cubs. Then, the fitness of each individual is computed based on the fitness functions as Then, the best individual of the next generation ( + 1) is selected from the current generation ( ). In the cub growth process, a cub replaces the old cub if the mutated cub is strong, and then the new cub's age is enhanced by one. Thus, the newly survived cubs essentially can affect the convergence rate to minimize the problem and can be summarized as In the next step, the male cubs ℳℒ and the female cubs ℱ ℒ are extracted based on their first and second-best fitness values, as ℒ ( ), which numerically is indicated as in which and show the vector drawn from a Gaussian distribution and parameter that controls size, respectively, for the selected ℳℒ and ℱ ℒ cubs, where their ages are set to 0. After this, the history of mating with different males is sorted from best ( ) to worst ( ) in decreasing order based on the fitness value in each iteration . This can be numerically indicated as . (4m) Thus, the history of each female lion mating with the males is kept for a particular time, which will be used in the next round of the mating process.
• Territorial Defense Territorial defense constitutes the survival fight between nomads and residents, updates on the pride, and coalition between the nomad lions and lionesses. Territorial takeover usually happens in the pride when cubs grow to maturity and become stronger (i.e., ℒ > ). Otherwise, the cubs' growth process is repeated. This process assigns territory to the stronger ones, ℳℒ −ℒ and ℱ ℒ −ℒ , to grow and develop rather than the weaker ℳℒ and ℱ ℒ ones. On the other hand, territorial defense also occurs between residents and nomads. The pride is updated by replacing ℛ ℳℒ ( ) with ℒ ( ) only when ℛ ℳℒ ( ) is defeated in the territorial defense process by the nomads. In this scenario, the pride is updated by selecting only one nomad ℒ ( ) such that ℒ (1) , if ℒ ( ) ≥ · ( ) is met, else ℒ (2) will be selected in the pride. Thus, a winning nomad ℒ ( ) is chosen as where ℒ (1) is in which , ( ) , 3 , and 4 are, respectively, the exponential of unity, the influence factor that lies in [1,0], the Euclidean distance between the pair ( ℒ (1) , ℛ ℳℒ ( ) ), and the Euclidean distance between the pair ( ℒ (2) , ℛ ℳℒ ( ) ). Consequently, the nomad lions with the least fitness value will be removed at the end of each iteration in order to keep the ratio of the lions in the population constant.
• Termination Criteria Termination is the last phase of the algorithm and occurs when the best solution is found in the problem space. It also includes the defined maximum time, the number of iterations reached, and there are no more improvements in the solution after a number of iterations.

Mapping LMO for BASNs
In this section, we mapped the lion mating optimization implementation for the sensor nodes in BASNs. The lions are the biosensor nodes. The territory is a region where biosensor nodes are located in the network. There are multiple territories in the network. In each territory, pride is a group of resident lions and lionesses that live together, and it means that the biosensors are located in the group in a region. The male resident lion is the cluster leader in a group, where the female resident lions are the member biosensors linked to the group leader in a group. The nomad male and female lions are the biosensor nodes, which are isolated but linked to at least one neighboring sensor node in the network. Mostly, these nodes are located near the boundary of the network. The prey means a biosensor node that has the required information for the neighboring nodes in the network. The hunters mean the biosensor nodes try to find the neighboring nodes that have the required information or are used for packet transmission. When female lions go hunting, it means that those biosensor nodes that are located in the middle of the region have a high probability to take part in the packet forwarding process, while the rest of the sensor nodes may sense and share their information with the neighboring nodes. The female and male lions a ack from the left, right, and middle, meaning that the biosensor nodes located on the left, right, and middle try to communicate with the desired biosensor node in the region. The middle lion has a high probability to hunt, meaning that the sensor node that has a lower distance and angle to the neighboring node is selected for information transmission to avoid loops in the network. The distance between the lions means the distance between the biosensor nodes in the network. The resident lion or nomad lion that has unity and influence becomes the new leader of the group, meaning that a sensor node with a high residual energy and low transmission distance to its member nodes has a high chance of being selected as a cluster head in the next round in the pride. In the pride, a new male lion cub that matures may become the leader, which means that a node with a high residual energy, shorter distance, and smaller angle to the neighboring nodes may replace the existing cluster leader in the current round. Otherwise, it will join the cluster leader as a member node in the network. Similarly, during the packet forwarding process, a cluster leader that has a high residual energy and lower distance to the next hop towards the sink will be selected as a forwarding relay node in the network. The newly elected cluster leader is responsible for maintaining the history of the entire member nodes in a routing table, which improves the probability of creating stable clustering architecture in the entire network. In addition, each nomad and pride lion and lioness are responsible for maintaining the hunting history, cub generation, and territorial defense, meaning that each biosensor node is responsible for maintaining the packet transmission history, active neighboring nodes, residual energy, and distance information. This helps to ensure the quality of small-size cluster formations and packet forwarding over highly reliable links towards the sink in the network. The termination criteria are satisfied when a routing path over a set of cluster heads is established between the source and the sink in the network. The entire above-mentioned discussion has been summarized in Algorithm 1.

Algorithm 1: pseudo code for LMO in SARP.
Input: Generate a random population of Lions, i.e., sensor nodes ( ) in a search space (ℛ ) Output: Cluster-based routing solution for BASNs. Procedure: Initialize all sensor nodes with the parameters given in Table 3 1.
Begin the iterative methodology and set the round number = + 2.
While (number of generations) do 3.
Initialize all members of prides and nomad lions on the problem search space.

4.
Select a percentage of the nomads ℒ and the resident lions ℛ ℒ such that = ℛ ℒ + ℒ .

5.
Both lioness and lion are selected for hunting a prey, randomly. 6.
For each lion do 7.
Compute the fitness 8.
End for 9.
If the fitness of a lion is greater than other lion in a pride Then 10. Update the lion in the pride in the problem search space 11. For each lion do 12. Try mating behavior 13. A percentage of nomad females mate with the best males 14. In each pride, a ratio of sex rate ( ) is applied to ℳℒ ( ) and ℱ ℒ ( ) to produce new cubs 15

Working Principle of Sensors in SARP
For a clear understanding, the entire working mechanism is explained below.

Updating Neighbors with Recent Information
A self-optimized, bio-inspired routing protocol for quality-aware data gathering is required for the next generation of wireless body area sensor networks. The proposed scheme, by employing the various types of biosensors, senses the human body and sends this information in a collaborative manner to the remote physician for monitoring a patient's health condition in real time. In this respect, the key objective is to establish a set of energy-efficient and highly stable routing paths over a set of highly stable clustering architectures to provide quality-aware data transmission to the static coordinator. The entire routing architecture of the proposed scheme is divided into two main phases, namely, cluster formation and routing path selection, over a set of group leaders between the source and destination in BASNs. The patient or the remote doctor initiates the data collection process on demand by sending multiple data collection messages ( ℓℓ _ ) to the coordinator located on the human body. The coordinator, after successfully receiving the first ℓℓ _ message, looks in its routing table for any available path to the destination node. The coordinator immediately performs route discovery and broadcasts multiple route discovery messages ( _ ) to the neighboring biosensor nodes in its communication range only if a path to the destination is not present or is invalid. The _ message contains information of the coordinator identity, distance, and location on the body. After successfully receiving the _ , each biosensor node creates a new routing table only if it does not exist before for storing the coordinator information in its routing table, and it replies to the coordinator node via a reply message ( _ ) only if it is a single hop away to the sink. The reply message ( _ ) contains the identity, residual energy, distance information, and its location on the body. The coordinator, after receiving the _ message successfully from the sender, stores its identity and other information, and marks it a single hop neighbor in its neighboring routing table. . Upon receiving the first reply message, each receiver biosensor waits for a distinct time to collect all other _ messages from the neighboring nodes. This waiting period is kept constant so that the maximum number of reply message can be collected before it expires. Consequently, the receiver biosensor node updates its routing table and sends the neighboring node information to the sink, which updates its information in its routing table and marks the new neighboring node with increasing hop number since it is away from the sink. Later, it broadcasts an _ message to the neighboring nodes with their hop count information in the network. Both the _ and _ messages contain similar information of the sender and receiver, including the node identity, energy level, distance, and current location on the body. However, some extra bits are included in the _ message in order to ensure the successful transmission over a link between the biosensors in the body area sensor network. This process repeats until each biosensor node and the sink have the information of neighboring nodes in the wireless body area sensor networks.
Throughout the process, each biosensor node sets the neighboring hop count level values in both upward and downward directions in its routing table. This not only helps to provide the distance and location information of the biosensor nodes from the sink but also controls the packet loops in the network. In addition, during the message transmission process, an acknowledgment message is forwarded by the receiver to the sender node in order to ensure successful packet exchange over a link in the network. Moreover, packet collision is avoided throughout the message exchange process by considering the TDMA mechanism.

Dynamic Cluster Formation
At this stage, each biosensor node has updated information on the neighboring nodes as well as the coordinator in BASNs. Consequently, a node which has a high residual energy and lower distance to its neighboring biosensors, as well as to the sink, declares itself a group leader and broadcasts this message (ℓ _ ) to its neighboring nodes located in the region. The key aim of this message is to request neighboring biosensors for joining the sender as member nodes. The ℓ _ message contains short information, like sender node identity and its priority, which is set to 1 for the cluster head in BASNs. Upon receiving the ℓ _ message, the neighboring biosensors that already have the sender information update their status to 1 as a leader node in their routing table. Then, the interested biosensor nodes reply to the potential cluster leader via a leader acceptance message (ℓ _ _ ) with its identity and location on the body. Then, each head node, upon receiving the ℓ _ _ acceptance message from the neighboring node, updates its information and sets the priority value to 0 for the member node in the routing table. Later, each cluster leader broadcasts a message ( ℓ _ ) that contains the information of the member node's identity and a certain time slot for each member node to communicate in BASNs. Thus, the entire region is partitioned into a set of predefined, highly stable, dynamic clusters in BASNs. Throughout this process, it is possible that a node may join two cluster leaders; however, it must have different time slots for communication in order to avoid packet loss and interference in BASNs.

Packet Forwarding Over a Set of Optimal Biosensors
The packet forwarding procedure begins when a biosensor node senses the events and wishes to send the data packet to its cluster head in BASNs. The cluster leader, after receiving the information, first looks in its routing table if a route exists, then it forwards the received data to the next hop cluster head relay node towards the sink. Otherwise, it sends a packet forwarding request ( ℓ _ ) message to its neighboring cluster heads, using both low-and high-transmission powers, and waits for the _ message for a predefined time interval. The _ message contains the sender cluster leader identity, residual energy, location, and level information in the network. Each receiver cluster head, after successfully receiving the ℓ _ request message from the neighboring cluster leader, marks its identity and hop count in decreasing order, as it is away from the sink in its neighboring routing table only if the entry for a particular node exists in the routing table. Otherwise, a new entry is created for each neighboring head node in the routing table. Only the interested cluster heads reply to the sender request via sending a _ message with their identity, residual energy, and level and distance information towards the sink. Then, the receiver cluster leader, upon receiving the _ message, computes the probability of each forwarder, updates its routing table with the priority information, and selects the best forwarder towards the sink. A cluster head with high residual energy and shorter distance to the sender and sink has a high probability of being selected as a forwarder node in BASNs. The receiver selects the potential forwarder randomly if more than one forwarder has the same probability. After selecting a potential forwarder, it sends a ready packet receive message ( _ _ ) to inform about the arrival of the packet. On packet arrival, at each forwarder, the routing table entries indicate that the data packets already have visited the sender cluster head, thus it avoids sending the same packet to a neighboring cluster head for the second time, which ensures that the discovered routing paths are loop-free in BASNs. This process repeats at each hop, and packets keep moving in the direction of the sink. As soon as the packets are received from the neighboring cluster head, the sink sends an _ message to the source cluster head that includes the identity of all relay nodes along a routing path in BASNs. Thus, a routing path over a set of cluster heads is verified in both upward and downward directions between the source and destination in the network. In the entire routing process, each cluster leader is responsible for maintaining the activities of its member nodes, neighboring cluster head nodes, and the list of routing paths, and it updates it periodically. This periodic information update provides a loop-free network in the discovered routes.

Route Repair Procedure
Route maintenance occurs only when a forwarder node fails to convey data packets to the sink. The designed scheme instantaneously identifies the route breakdown, which is very common in BASNs. Route failure is identified when a sender cluster head has not received an acknowledgment message from the receiver cluster head in a predefined time interval. In case of a route failure, the sender cluster head first looks in its routing table for the alternative forwarding nodes, if they exist, then it selects the second-highest priority forwarder as the alternative route and sends a _ _ message to inform about the arrival of packets. Simultaneously, it deletes the records relating to the failure node and updates the priorities of the rest of the remaining forwarders in the routing table. Otherwise, the sender cluster leader will start the route discovery process discussed above to establish a routing path towards the sink. As soon as the packets are received, the sink identifies the route changes and sends an _ message to the source cluster head, including the identity of all relay nodes along a routing path in BASNs. Thus, a new routing path over a set of cluster heads is verified in both upward and downward directions between the source and destination in the network. However, in case of a member node failure, the cluster head just discards that node from its member list and updates the routing table. In the entire routing process, each cluster head maintains the priority of the associated forwarders in the routing table, which keeps changing as time passes until the forwarder ba ery is drained. This priority helps the forwarder to distribute packets relaying the responsibility among different relaying nodes in order to balance the network traffic and energy consumption load in BASNs. The designed scheme adopts a simple procedure to tackle route failure problems and, therefore, avoids high energy consumption issues due to low overheads in BASNs.
In the proposed scheme, the entire body area network is represented as a graph ( , ℰ ), in which the vertices = ∪ (ℓ) ∈ S 1 and the edges ℰ = ⊆ (ℒ ( )) ∈ ℒ ( ), such that = { : ( , ) ∈ ℰ } represents the sensor nodes , and their wireless links ℒ ( ) located in a particular region (ℓ) belong to the sink (S 1 ). The packets generated by each sensor node are divided into rounds ℛ where each round ℛ consists of time frames , such that each frame ⊂ . At the beginning of each round, the residual energy of the sensor node is ℛ ( ) , which decays to ℛ ( ) at the end of the round where the energy coefficient is 0 < ≤ 1 in BASNs. Herein, the key objective function of the proposed scheme is to optimize the performance of each biosensor node by following the objectives defined in Equation (1) in each round of the simulation. Consequently, the objective function of the proposed scheme given in Eq.1 can be divided into single objectives, which can be wri en as In MILP, we define the following integer variables as ∑ ∑ ∈ ℐ , ℎ = ℎ( ) ; (9c) ℎ( ) ·ℛ ≥ 1, ∀ , ; , ≠ , ≠ , 1 ≤ ≤ , (10b) ℐ ℎ2 ( ) ∈ S 1 , 1 ≤ ℎ ≤ , 1 ≤ ≤ , ℎ2 ∈ ; (13d) ∑ ℒ ( ℎ1 , ℎ2|ℎ3 ) ( ), 1 ≤ ℒ ≤ , ℎ1 ∈ , ℎ2|ℎ3 ∈ ; ∑ ∈ , ℒ ( ) = ∑ ∈ , ℒ ( ) = , ∈ ; Constraints in (9a) show the flow of messages at each biosensor node in the network. In (9b), constraints ensure that the transmission of messages to the neighboring nodes is possible only if a biosensor node exists in that region. In (9c), constraints verify that the sum of current group head nodes ℎ is not more than the maximum defined head nodes ℎ( ) . Constraints in (10a) guarantee that a biosensor node in a group uses a biosensor node as a group head node ℎ only if it has been chosen to act as a cluster head. In (10b), constraints show that more than one cluster head exists in the region ℛ . Constraints in (10c) define the upper bound of each cluster size. Constraints in (10d) guarantee that each biosensor node in a group is linked to the group leader, where the ℐ , is a binary variable, which indicates that a sensor node in a group uses a group leader sensor node ℎ as a master information aggregator. Constraints in (11a)-(11f) show that each active biosensor node is connected to one group leader or a group leader connected to at least one other group leader within its transmission range in the network, in which ( ℎ , ℎ ) is equal to 1 only if the group leader ℎ can directly reach ℎ , and is 0 ( ℎ , ℎ ) otherwise. is an integer whose value is 1 when a biosensor node is connected to the cluster head ( , ℎ ) or a cluster leader is connected to the neighboring group leader ( ℎ( ) , ℎ ), and 0 otherwise. Constraints in (12a) state that all the packets are collected by the group head node from its member nodes in a cluster. Constraints in (12b) ensure that the collected data are forwarded from the biosensor head node ℎ1 to the neighboring biosensor head node ℎ2 . Constraints in (13a) and (13b) state that a relay cluster head node joins the routing path ℛ ( ) between the source and the destination in the network, in which ℐ ℎ ℎ , ℎ is a binary variable whose value is 1 only if a group leader biosensor node ℎ is on the route between the source head node ℎ and the destination head node ℎ , while is also a binary indicator that is equal to 1 only if the traffic stream, sourced at ℎ , and the destination to ℎ uses the link to the head ℎ node in the network. In (13c), constraints guarantee that the distance between two group leaders must not be greater than the defined maximum distance . Constraints in (13d) ensure that the group head node ℎ2 is closer to the sink. Constraints in (14) declare that a group head node ℎ2 can not receive the data packets from the neighboring group leader ℎ1 over a link ℒ 1 than its maximum storage capacity . This constraint helps to avoid data packet losses due to buffer overflow during packet transmission in the network. Constraints in (15) support the constraints of (14), which guarantee that the data packets always move over a different link ℒ towards the neighboring cluster head nodes in the network. Constraints in (16) ensure that the number of packets transmi ed by a sensor node to sensor node over a link ℒ ( ) is equal to the number of packets transmi ed from the sensor node over a link ℒ ( ). This helps to balance the network traffic load in the entire network. Constraints in (17a) state that the sum of the energy spent by the biosensors during packet transmission (E ) and reception (E ) is bounded to a specific round in the network. Constraints in (17b) minimize packet transmission and reception energy consumption of each biosensor node in each round of the data collection process. Constraints in (18a)-(18c) state that the routing constraints show that the biosensor nodes and head relay nodes along a routing path ℛ ( ) between the source and the destination are connected in the network. Constraints in (19) make it clear that at least one group leader or a sensor node in the region ℛ exists away from the sink in the network.

Path Loss and Energy Consumption Models
In BASNs, the signals transmi ed by biosensors may diffract around the body or reflect a nearby distraction and then back at the body. Therefore, the link quality cannot be described by a simple power-distance law since each link between biosensors faces different fading, shadowing, polarization, interference, and correlation parameters in BASNs [40]. Considering these factors, the path loss ( ℒ ) model [41] over the distance ( ) between biosensor nodes and can be indicated as The average path loss of the whole body can be computed as ℒ ( 0 ) = 10 * ℓ (4 · 0 ( )) * ℓ .
The total path loss by considering the shadowing factor can be numerically computed as In the energy consumption model [42], the energy required to transmit an ℓ bit data message between two nodes separated by distance can be calculated as The energy required by the transmit amplifier, with the distance ≤ ℎ and > ℎ , to maintain the lowest signal-to-noise ratio for effective wireless channel transmission is given by where Consequently, the energy needed for receiving a bit (ℓ) at the given reference distance ( ) can be calculated as in which ℒ ( 0 ), f, ℓ , E ℓ , E , Ε , and ℎ are, respectively, the path loss in dB at a reference distance, the frequency of operation, the speed of light, the transmi er energy or receiving circuit, the parameters in a free space model, the parameters in a multipath fading model, and the threshold in meters. During simulation studies, two other routing schemes, namely Energy Aware Link Efficient Routing Approach ELR-W [21] and Clustering Routing Protocol for Boday Area Sensor Network (CRPBA) [23] are used as comparisons to evaluate the performance of our proposed protocol in BASNs. The simulation parameters are given in Table 3.

Performance Analysis
The body area sensor network collects data from the biosensors located on the patient's body, which may in certain cases be critical. Therefore, the developed scheme must provide data to the medical server or physician located at a remote location for on-time analysis. This will only be feasible if the collector gathers information from the biosensors in time by considering various data reliability requirements of both emergency and nonemergency data. In this respect, reliable data delivery is one of the key metrics, which depends on various other metrics such as packet error rate, throughput, and latency. These factors determine the competency of a routing protocol against the others, especially for a limited energy body area sensor network in order to increase lifetime. Consequently, the packet reception rate for each SARP, ELR-W, and CRPBA routing scheme is illustrated in Figure 2. In the proposed scheme, the entire packet delivery ratio is divided into low, medium, and high levels. The high level is considered as the best data gathering performance level in the network. Initially, around 500 rounds, the packet reception rate of SARP protocol was recorded as high, up to 95%, compared to ELR-W and CRPBA protocols, which were observed to be low, around 91.1% and 86.9%, respectively. However, as time passed and the number of rounds increased between 2200 to 2400, the data delivery rate performance of SARP significantly improved and carried more data packets around 96.7% in BASNs. In contrast, the data delivery performances of both ELR-W and CRPBA protocols were observed at a medium level, around 91.6% and 89%, respectively. Finally, the packet delivery ratios of SARP, ELR-W, and CRPBA routing protocols were recorded the highest at around 98.4%, 92.3%, and 86.9% at round numbers between 3000 and 3500. All these facts indicate that the SARP routing protocol performed the best in achieving high packet delivery rates compared to all other schemes in BASNs.  Generally, the time lag between the sender biosensor and data collector receiver is referred to as delay, and it is a very important factor in the BASNs. The delay values of SARP, ELR-W, and CRPBA protocols are depicted in Figure 3. In the proposed scheme, the latency values are divided into low, medium, and high in the network. In the beginning, the latency value of SARP protocol was observed to be low, around 10 ms, when up to 8 sensors were involved in the packet forwarding process. In contrast, the latency values of ELR-W and CRPBA protocols were observed up to 10 and 11.3 ms with similar node densities. However, as time passed, the latency values of SARP, ELR-W, and CRPBA protocols increased to a medium level, up to 12, 15, and 17 ms, when up to 15 sensors were involved in forwarding patient data in the network. The latency values of SARP, ELR-W, and CRPBA protocols further increased to high levels, up to 17, 20.8, and 24 ms, when up to 20 sensors were involved in forwarding patient data in the network. The highest latency value for SARP was recorded around 20 ms, when the node density was up to 25. In contrast, the latency values of both ELR-W and CRPBA protocols with similar node densities were observed around 27 and 32 ms, respectively. These simulation facts show that the SARP scheme performed the best in achieving low latency values for low-to high-density networks. This best performance of SARP was due to its packet transmissions on dedicated paths, which were established by considering the link quality between relay biosensors towards the sink. In addition, the clustering architecture reduced the burden on forwarders since each cluster head gathered data from its members and fused it before sending. Thus, more data packets were transmi ed over the links between the forwarders in a robust and reliable manner compared to all other schemes. In SARP, the transmission of a patient's emergency data over several nodes is avoided in the network. In case of a route failure, a packet forwarder considered an alternative node as a potential forwarder towards the sink without conflicting situations. Thus, a significant amount of time spent in negotiation with the neighboring nodes is saved in the packet forwarding process. Because of these reasons, the developed protocol performed be er in terms of minimizing overall network latency.  The main issue of high latency in the ELR-W scheme is that more initial calculations are required to check various packet forwarding conditions before data transmission, which consumes more processing time at each relay node along a routing path and, thus, leads to more delay. However, the The main issue of high latency in the ELR-W scheme is that more initial calculations are required to check various packet forwarding conditions before data transmission, which consumes more processing time at each relay node along a routing path and, thus, leads to more delay. However, the latency of packet forwarding gradually decreased with time once the initial calculations were done; therefore, it performed be er than CRPBA protocol. In addition, direct communication over a longer distance also helps ELR-W to convey packets in a robust manner towards the sink. However, this long-distance communication with lower link quality creates a number of corrupted data packets in ELR-W protocol. On the other hand, one of the main reasons for the high latency in CRPBA is its unstable cluster architecture, which contains small-sized and large-sized clusters. Therefore, the average number of hops visited by the data packets increases between the source and the sink, which contributes to latency. This also increases the probability of data path loops; thus, the data packets do not reach the destination at a specific time. In addition, the data path loop also causes congestion for the relay nodes along a routing path since nodes keep transmi ing the packets, which impact the communication delay. In addition, the CRPBA protocol has no specific policy to forward the packets on alternate paths in case of a route node failure. In the route recovery process, it spends a significant amount of time in negotiation with the neighboring nodes in order to find a new forwarder node. Therefore, in most cases, the sensitive data become invalid due to lack of an available path towards the sink. These invalid data packets reduced the overall packet delivery ratio in the CRPBA scheme.
However, the small size clustering architecture reduces the burden on relay nodes even when a huge amount of patient data is routed in the network. Therefore, the low packet error rate performance of CRPBA is fairly conclusive compared to ELR-W, as shown in Figure 4. The main disadvantage of the ELR-W routing protocol, which results in a high packet error rate, is its lack of considering the interference issues during link stability measurements between the forwarder nodes. In addition, it does not always select the shortest path during packets forwarding, which not only increases the chance of packet loss due to path loops but also creates excessive interference for neighboring nodes in the network. The SARP protocol compared to CRPBA and ELR-W protocols achieved the lowest packets error rate, around 2.25% of the originated data packets, as shown in Figure 4. This best performance of a low packet error rate in SARP is due to its high link quality between sensors and cluster leaders and forwarder cluster heads. In addition, the designed scheme during the packet forwarding process appropriately considers the hop counts, which further reduces the probability of corrupted packets occurring in BASNs. All aforesaid factors result in a high network throughput in SARP compared to CRPBA and ELR-W protocols, as shown in Figure 5. In fact, throughput is the measurement of the number of packet transfers over a link in a given amount of time. It is usually computed in bits per second (bps). Simulation facts, shown in Figure 5, make it clear that SARP achieved more than 96% throughput and outperformed the ELR-W than CRPBA protocols in BASNs. Comparatively, the be er throughput performance of ELR-W than CRPBA is because it forwards all types of data on a priority basis without blocking the transmission of other biosensors in a life-critical situation of the patient.
The energy consumption of a node is defined as the sum of energy consumed in various activities, such as observing vital signs and receiving and transmi ing packets in BASNs. The continuous packet transmission of vital signs consumes a high level of energy for the biosensors and, therefore, must be minimized in order to increase the lifespan of BASNs. Figure 6 illustrates that, in terms of low energy consumption, SARP outperformed the CRPBA and ELR protocols and completed almost 3500 rounds with different data traffic loads in BASNs. With more details, in initial rounds around 500, the residual energy profile of the SARP protocol was recorded around 97.4%, compared to ELR-W and CRPBA protocols, which were observed up to 96.8% and 96.6%, respectively. However, as time passed and the number of rounds increased between 2000 and 2300, the low-energy consumption performance of SARP significantly improved and recorded around 59.7% in BASNs. In contrast, the low-energy consumption profiles of both ELR-W and CRPBA protocols were observed around 55.7% and 55.1%, respectively.
on alternate paths in case of a route node failure. In the route recovery process, it spends a significant amount of time in negotiation with the neighboring nodes in order to find a new forwarder node. Therefore, in most cases, the sensitive data become invalid due to lack of an available path towards the sink. These invalid data packets reduced the overall packet delivery ratio in the CRPBA scheme. However, the small size clustering architecture reduces the burden on relay nodes even when a huge amount of patient data is routed in the network. Therefore, the low packet error rate performance of CRPBA is fairly conclusive compared to ELR-W, as shown in Figure 4. The main disadvantage of the ELR-W routing protocol, which results in a high packet error rate, is its lack of considering the interference issues during link stability measurements between the forwarder nodes. In addition, it does not always select the shortest path during packets forwarding, which not only increases the chance of packet loss due to path loops but also creates excessive interference for neighboring nodes in the network. The SARP protocol compared to CRPBA and ELR-W protocols achieved the lowest packets error rate, around 2.25% of the originated data packets, as shown in Figure 4. This best performance of a low packet error rate in SARP is due to its high link quality between sensors and cluster leaders and forwarder cluster heads. In addition, the designed scheme during the packet forwarding process appropriately considers the hop counts, which further reduces the probability of corrupted packets occurring in BASNs. All aforesaid factors result in a high network throughput in SARP compared to CRPBA and ELR-W protocols, as shown in Figure 5. In fact, throughput is the measurement of the number of packet transfers over a link in a given amount of time. It is usually computed in bits per second (bps). Simulation facts, shown in Figure 5, make it clear that SARP achieved more than 96% throughput and outperformed the ELR-W than CRPBA protocols in BASNs. Comparatively, the better throughput performance of ELR-W than CRPBA is because it forwards all types of data on a priority basis without blocking the transmission of other biosensors in a life-critical situation of the patient. The energy consumption of a node is defined as the sum of energy consumed in various activities, such as observing vital signs and receiving and transmitting packets in BASNs. The continuous packet transmission of vital signs consumes a high level of energy for the biosensors and, therefore, must be minimized in order to increase the lifespan of BASNs. Figure 6 illustrates that, in terms of low energy consumption, SARP outperformed the CRPBA and ELR protocols and completed almost 3500 rounds with different data traffic loads in BASNs. With more details, in initial rounds around 500, the residual energy profile of the SARP protocol was recorded around 97.4%, compared to ELR-W and CRPBA protocols, which were observed up to 96.8% and 96.6%, respectively. However, as time passed and the number of rounds increased between 2000 and 2300, the low-energy consumption performance of SARP significantly improved and recorded around 59.7% in BASNs. In contrast, the low-energy consumption profiles of both ELR-W and CRPBA protocols were observed around 55.7% and 55.1%, respectively.  The low-energy consumption profile of ELR-W was found to be significantly better than the CRPBA protocol in WBASNs. Finally, the energy consumption profiles of SARP, ELR-W, and CRPBA protocols were recorded around 1.85%, 0.5%, and 0.3% for round numbers of 3500, 3300, and 3200, respectively. SARP achieved the best low-energy consumption profile because it exchanged the lowest number of control packets in the network. SARP periodically maintained and updated its neighbors and routing tables by exploiting the data packets; thus, no extra control packets are required, and data paths are always up to date. In addition, during a route recovery process, it used the least amount of control message overhead to search for an appropriate next-hop packet forwarder, which significantly saved node energy. Moreover, by assigning alternate paths, it significantly reduced the hotspot problems and balanced the traffic load and residual energy of the cluster heads in BASNs. On the other hand, the low-energy consumption profile of CRPBA was found to be much higher than ELR-W, but its performance gradually declined when more biosensors transmitted packets in increasing numbers of rounds. The main problem of high energy consumption in CRPBA is to re-establish the routes and re-transmit the dropped/delayed packets. Therefore, because of an increased number of packet re-transmissions, the nodes in CRPBA were not able to go into sleep mode in order to save energy. On the contrary, the main issue of high energy consumption in ELR-W is that control message overheads occurred when the data packets did not reach the destination, because of relay note failure, but the relay nodes re-transmitted the packets and kept updating the routes in BASNs. Thus, it consumed a notable sum of node energy; however, it performed better than the CRPBA routing protocol in BASNs.
In sum, compared to all other schemes, the proposed scheme provides an energy-efficient and quality-aware delivery of emergency data to the physician in a life-critical situation of the patient.

Conclusion
Biosensors face severe issues, such as unreliable data transmission and short life spans, because of poor communication efficiency caused by the complexity of the body tissues and unpredictable body movements in BASNs. Therefore, reliable and sustainable transmission of the instant data collected from these body sensors to the observers (e.g., doctors, nurses, etc.) is extremely challenging, which results in a poor monitoring picture of the health condition of the patients. Thus, a more The low-energy consumption profile of ELR-W was found to be significantly be er than the CRPBA protocol in WBASNs. Finally, the energy consumption profiles of SARP, ELR-W, and CRPBA protocols were recorded around 1.85%, 0.5%, and 0.3% for round numbers of 3500, 3300, and 3200, respectively. SARP achieved the best low-energy consumption profile because it exchanged the lowest number of control packets in the network. SARP periodically maintained and updated its neighbors and routing tables by exploiting the data packets; thus, no extra control packets are required, and data paths are always up to date. In addition, during a route recovery process, it used the least amount of control message overhead to search for an appropriate next-hop packet forwarder, which significantly saved node energy. Moreover, by assigning alternate paths, it significantly reduced the hotspot problems and balanced the traffic load and residual energy of the cluster heads in BASNs. On the other hand, the low-energy consumption profile of CRPBA was found to be much higher than ELR-W, but its performance gradually declined when more biosensors transmi ed packets in increasing numbers of rounds. The main problem of high energy consumption in CRPBA is to re-establish the routes and re-transmit the dropped/delayed packets. Therefore, because of an increased number of packet re-transmissions, the nodes in CRPBA were not able to go into sleep mode in order to save energy. On the contrary, the main issue of high energy consumption in ELR-W is that control message overheads occurred when the data packets did not reach the destination, because of relay note failure, but the relay nodes re-transmi ed the packets and kept updating the routes in BASNs. Thus, it consumed a notable sum of node energy; however, it performed be er than the CRPBA routing protocol in BASNs.
In sum, compared to all other schemes, the proposed scheme provides an energy-efficient and quality-aware delivery of emergency data to the physician in a life-critical situation of the patient.

Conclusions
Biosensors face severe issues, such as unreliable data transmission and short life spans, because of poor communication efficiency caused by the complexity of the body tissues and unpredictable body movements in BASNs. Therefore, reliable and sustainable transmission of the instant data collected from these body sensors to the observers (e.g., doctors, nurses, etc.) is extremely challenging, which results in a poor monitoring picture of the health condition of the patients. Thus, a more advanced data transmission mechanism is greatly needed to optimize resource utilization and to overcome network reliability and instability issues for BASN-based health monitoring applications. To this end, this research proposed a novel, multiobjective routing protocol for BASNs-based IoT healthcare applications. The proposed scheme, by employing a novel, multiobjective lion optimization mating architecture, reduced local search problems when finding the best routing paths between the source and the destination in BASNs. Extensive simulation studies were performed through a network simulation tool, namely MATLAB 9.5 (R2018b), to validate the performance of the proposed scheme against the existing routing protocols. The study results show that the SARP scheme performed best in terms of the high packet delivery ratio with low latency, packet error rates, and network energy consumption, at the expense of data redundancy, for BASN-based health monitoring applications. As future work, research may focus on a security-aware routing mechanism in BASN-based health monitoring applications.