1 Introduction

The chronic diseases are responsible for 71% of deaths globally and 53% of deaths in India as per the survey of World Health Organization (WHO) [1]. As the society is becoming more health conscious, most of the diseases can be fought with the amalgamation of health and information technology. This is actually useful for a society with traditional health practices and infrastructure. With the advancement of sensing devices and communicational technologies, WBANs are capable of early diagnosis of diseases and can improve the quality of life by providing health facilities to the patients without visiting the doctor. However, several challenges such as energy efficiency, QoS, fault tolerance, usage of low power communicational technologies due to SAR, interference, dynamic network topology, managing heterogeneous data etc. are hindrances in their reliable and trustworthy adoption [2,3,4,5,6]. Despite of the aforementioned challenges, it is expected that wearable health device users will reach 65mn by 2023 all over the world as both the developed and developing countries focus on digital health [7]. Wearables have both medical and non-medical applications and can help population of all age groups equally on account of independent living. Modern lifestyle, inclination of society towards health and fitness and revolutionary devices have enforced people to imbibe technological health practices.

Fig. 1
figure 1

General framework for sensor analyst systems [4]

WBANs manifest Sensor Analyst Systems (SAS) as shown in Fig. 1 and constitute of biomedical sensing devices that sense various physiological parameters and data can be transmitted to a remote server from where the data is easily accessible to medical fraternity, doctor, care taker, family members, health insurance companies etc. This can provide the patient with real-time feedback and prescription from the doctor. Also, the data can be analysed before disseminating it to the end users for prediction and early detection of abnormal conditions.

WBANs require longer network lifetime as sensor nodes are energy constrained and can not be easily recharged or replaced. WBANs have frequent topological changes and higher mobility due to low transmit power of sensing devices, so already existing protocols for Ad-hoc Networks and WSNs are not suitable for WBANs [8]. Energy consumption of sensors is negligible during data acquisition, minimum during data processing and maximum during communication [9]. Hence, energy management during communication is important for providing longer network lifetime. Sensor nodes deplete their energy soon if direct communication is utilized whereas indirect communication via intermediate nodes can save energy to some extent. Thus, the cluster based routing protocols play vital role for energy management by selecting the best path to transmit data from source to the sink node via cluster heads and the intermediate nodes.

In this paper, we have proposed a dynamic cluster head and routing path selection protocol using multi-objective genetic algorithm to forward data packets from source to sink node for in-door hospital scenario. The simulation results of the proposed protocol are evaluated and compared with the cluster based routing protocols like Anybody [10], HIT [11, 12], SECA-M [13], OCER [14], EERP [15]. The proposed routing protocol has been simulated using MatLAB simulator and its performance is evaluated in terms of total time taken to build clusters, overall energy consumption, network lifetime, packet delivery ratio, residual energy, throughput and average delay. The obtained results exhibit that the proposed scheme yields better results in terms of chosen parameters by using multi-objective GA to dynamically select cluster head.

The proposed algorithm is unique as it balances load both at the cluster head as well as at the cluster members so that the sensor nodes can retain their residual energy for a longer time period. The significance of proposed scheme is that it provides efficient and reliable communication with optimized energy utilization in the network. Relevance of the proposed scheme is to minimize energy consumption and maximize network lifetime accounting to adequate usage of residual energy, sense radius and load balancing for transmission of desired data from source to sink. Thus, it provides continuous data sensing by WBANs for longer time period and provides ubiquitous health monitoring.

Rest of the paper is organized as follows. Section 2 describe pros and cons of few cluster based routing protocols. Section 3 formulates the problem for designing the proposed protocol. Section 4 evaluates performance of the protocol and discusses the results obtained after simulation. Section 5 concludes the paper and presents the future direction.

2 Related Work

This section presents the concise overview of WBANs and different cluster based routing protocols proposed by various researchers.

Wireless Body Area Network (WBAN); the term first coined in 2001 by Van Dam et al. [16], is defined by IEEE 802.15 (Task group 6) as a real-time, wireless, short-range communication standard consisting of low power devices for communicating in and around human body for various medical and non-medical applications [3, 17, 18]. WBANs have applications in both medico and non-medico domains. With reference to medical applications, WBANs can allow the patients to be in their natural environment and follow routine activities while measuring physiological data. The patient need not visit the doctor in person and helps in reducing hospital cost and improving quality of life as well [2, 3, 5, 8, 19,20,21]. Also, WBANs have non-medical applications in entertainment, consumer electronics, virtual reality, gaming for skill, educational enhancements, smart homes and item tracking [22,23,24].

In [10], the authors proposed a self organizing routing protocol, namely Anybody, that starts by dividing the network into clusters and then it explores the most efficient routing path from each source node to remote sink node. It has high energy consumption. Random nodes are selected as cluster heads and the cluster building process is either periodic or event driven. In [11, 12], the authors proposed a Hybrid Indirect Transmission protocol that divides the network into clusters and utilizes cluster heads for indirect transmission so that number of transmissions to base station are reduced. Therefore, HIT greatly helps in reducing energy consumption and network delay.

In [25], the authors proposed an Adaptive Multihop tree-based Routing (AMR) protocol. Cluster heads are selected forming a tree like structure using fuzzy logic and improves network performance in terms of throughput and energy consumption. Also, this protocol is able to extend network lifetime by balancing out energy consumption. In [13], the authors proposed an energy efficient routing protocol that uses uniform clustering and forms a hierarchical tree like structure to select cluster head amongst the nodes. This reduces the data transmission distances between nodes, and hence the energy consumption is reduced. It balances the network load amongst the cluster heads and enhances network lifetime.

In [26], the authors proposed a cluster based routing scheme for WBANs that constructs clusters on the basis of residual energy. They have considered both inter and intra-WBAN communication. However, they have not considered packet delivery ratio. In [27], the authors proposed a fuzzy based clustering routing protocol. It is energy efficient and uses direct transmission between source and sink node depending upon location of sensor node. The node near to the coordinator node is selected as the cluster head. It has high transmission overhead. It uses fuzzy logic to select the cluster heads.

In [28], the authors proposed an energy efficient routing scheme (EERS) which has a tree like structure that utilizes multi-hop transmissions in WBANs. It establishes an energy efficient end-to-end path from source to sink as well as adaptively choose transmission power for sensor nodes. It has high transmission overhead.

In [29], the authors proposed semiautonomous adaptive routing (SEA-BAN) protocol that evenly distributes the energy amongst the sensor nodes. It is a cluster-based routing protocol that utilizes features of both direct transmission as well as multi-hop transmission methods, depending on the remaining energy level of the nodes. In [30], the authors proposed a routing protocol that maximizes the throughput and minimizes energy consumption. The authors presented a multi-objective problem. Cluster heads are selected at random and it has trade-off between transmission overhead and end-to-end packet delay.

In [31], the authors proposed a stable dynamic forward-connected routing protocol (SDFR protocol) which is completely self-organized. In this protocol, energy, forward-connected range and stability are considered. However, cluster head selection is static. In [14], the authors proposed two algorithms, viz., an optimized cost effective routing protocol (OCER) and an Extended OCER that uses Genetic Algorithm for transmitting data from source to sink via most optimal route selection. It also considers inter-BAN communication. The proposed protocol is energy efficient however does not consider cross layer interactions.

In [15], the authors proposed routing protocol for WBANs which is energy efficient. It supports mobility and sets priority for data while transmitting. The cost function of the proposed scheme finds variations in distance between source and sink using random walk mobility model. Also, it processes only critical data at sensor level. Data is categorised on the basis of priorities which depends on the condition of a patient. Thus, only critical data is forwarded for reduced energy consumption.

In [32], authors proposed a reliable, stable and efficient network for WBASN which is energy efficient. Two parameters are used in objective function to select the forwarder node. Multi-hopping reduces the distance of data communication and saves energy consumption.

In [33], the authors have proposed a task offloading scheme for WBANs with an aim to handle the mobility-aware resource intensive applications. This helps to transfer resource extensive computations and energy consumption from the user devices to mobile computing servers.

In [34], the authors proposed Self-organized Dynamic Clustering (SDC) scheme for a scenario where multiple WBANs communicate that lessens interference and improves the QoS. It gives focus to spectrum allocation for multiple WBANs. It transfers data packets from source to sink via cluster head that have low privacy and high reliability.

In [35], the authors have proposed cluster based security schemes for secure routing of data from source to sink using metaheuristic techniques such as PSO and Fuzzy logic to select the trusted node to transmit data. In [36], the authors have proposed a scheme using firefly algorithm to detect the trusted nodes to transfer data from source to sink via cluster head and encryption is performed at the sink node from where the data is transferred to the hospital database.

In [37], the authors have built a cloud-WBAN framework over open source cloud simulator CloudSim. The authors have integrated cloud computing and WBANs. It gives an optimal scheme for providing resources efficiently to fluctuating demands of WBANs to deliver real-time health services to the users.

3 Problem Formulation

This section elaborates the proposed algorithm of dynamic cluster head and routing path selection for energy efficient routing in WBANs. Also, the network model, energy model, pathloss model are explained in the subsequent subsections that are used to illustrate the performance of the proposed scheme. The proposed model optimizes the performance in terms of overall energy consumption, residual energy, network lifetime, average delay, packet delivery ratio and throughput. The existing routing protocols have not focused on load balancing at cluster head which leads to early depletion of residual energy and ultimately decreases the network lifetime for both direct and multi-hop communication between the source nodes and remote base station.

The proposed scheme utilizes GA to select cluster head. As GA is an NP-Hard problem [38], it randomly selects from the initial population and optimizes the results globally. GA is evolutionary algorithm that converges and provides with global optimal solutions so it can make an optimal choice for the purpose of selecting cluster head. GA uses random search procedure to search the optimal solutions in the parameter space [39]. GA requires an objective function for optimization of parameters and reach an optimal point [40]. In the proposed scheme, the goal is to cluster the nodes around the selected cluster heads so that the physical size of clusters are not widely dispersed. Objective function, based on two parameters, viz., residual energy and sense radius, is optimized to achieve the aforementioned objectives. To select the next population, application specific genetic operators are used.

3.1 WBAN Model

This section explicates the network model, energy model and pathloss model for the proposed protocol.

3.1.1 Network Topology and Model

In this paper, we have considered an indoor hospital environment for tier-1 WBAN communication and data collection procedure as shown in Fig. 1. The hospital building may consist of n number of floors with m number of patients on each floor. We assume here that each patient has only one body sensor placed on it. Therefore, the communication can be amongst the sensors attached on different patients. We have considered n patients each with one sensor on the body, set S = S1, S2, S3...Sn denoting the total population. As each sensor node has same power and communicational abilities, the communication can be point to point (P2P) for establishing multihop paths so that the data can be transferred from source to sink via intermediate nodes instead of the direct data transfer from source to sink. The latter method consumes more energy. Thus, the sensor nodes are divided into clusters and a node with optimal value of cost function is elected as a cluster head.

3.1.2 Energy Model

It is observed from the related literature that energy consumption of sensor nodes is negligible during data acquisition, minimum during data processing but maximum during data communication. Thus, more focus is given by the researchers on energy consumption during communication. Maximum of the energy of sensor nodes is consumed during data transmission, reception, processing and cluster formation [41]. This is represented as First Order Radio model [42, 43]. Energy consumption is calculated with the help of the following equations, energy consumed by transmitter and amplifier is shown in Eq. 1 at the transmitter end whereas energy consumed by the receiver is shown in Eq. 2 during reception at the receiving end. Values used by energy parameters in energy model are given in Table 1.

$$\begin{aligned} \begin{aligned} E_{Tx}(p,r)=E_{Telec}(r) + E_{Amp}(p,r) \\ E_{Tx}(p,r) = E_{elec} * r + \varepsilon _{Amp}*r*p^{2} \end{aligned} \end{aligned}$$
(1)

where \(E_{Tx}\) is total energy consumption at the transmitter end, \(E_{Telec}\) is energy consumed by the transmitter, \(E_{Amp}\) is energy consumed by the amplifier for transmitting r-bit long message at p distance.

$$\begin{aligned} \begin{aligned} E_{Rx}(r)=E_{Relec}(r) \\ E_{Rx}(r) = E_{elec} * r \end{aligned} \end{aligned}$$
(2)

where \(E_{Rx}\) is total energy consumption at the receiver end, \(E_{Relec}\) is energy consumed by the receiver, for receiving r-bit long message at p distance.

Table 1 Values of parameters used in energy model

Another form of energy consumption during data processing in WBANs is during switching \((E_{s})\) of the modes, i.e., from sleep mode to wake mode or vice versa and due to current leakage \((E_{l})\). Total energy consumption for processing packet of size x bits by each sensor node, \(E_{proc_{x}}\), per round is given by Eq. 3.

$$\begin{aligned} \begin{aligned} E_{proc_{x}}(x,N_{cyc}) = xN_{cyc}C_{avg}V^{2}_{sup} + xV_{sup}\left( I_{o}e^{\frac{V_{sup}}{k_{p}V_{t}}}\right) \left( \frac{N_{cyc}}{f}\right) \end{aligned} \end{aligned}$$
(3)

where \(I_{0}\) is the leakage current, f is sensor frequency, \(N_{cyc}\) is the number of clock cycles per task, \(C_{avg}\) is the average capacitance, \(V_{t}\) is the thermal voltage, and \(k_{p}\) is a constant. Total energy consumption by the cluster head (CH), \(E_{pro_{CH}}\), per round is given by Eq. 4.

$$\begin{aligned} \begin{aligned} E_{proc_{CH}}(h_{1}, x, N_{cyc}) = h_{1}E_{pro_{N}}(x, N_{cyc}) \end{aligned} \end{aligned}$$
(4)

where \(N_{cyc}\) is the number of clock cycles per task, \(C_{avg}\) is the average capacitance switched per cycle.

3.1.3 Path Loss Model

If the power of Electromagnetic waves decreases gradually due to absorption, propagation, diffraction, reflection through a medium, it is termed as pathloss. In the case of WBANs, sensor nodes are placed on human body so the waves are either absorbed by the body, propagate through the body, reflect or refract around the body. Pathloss is mainly dependant on distance through which the EM waves have to travel and the frequency at which they travel. The pathloss \(PL_{d}\), at distance d between nodes and the frequency is given in Eq. 5.

$$\begin{aligned} \begin{aligned} PL(d) = PL(d_{0}) + 10n log \left( \frac{d}{d_{0}}\right) \\ \end{aligned} \end{aligned}$$
(5)

where \(PL(d_{0})\) is the path loss in dB at a reference distance \(d_{0}\). Reference distance is calculated using Eq. 6 and n is the path loss exponent which varies for free space and placement of sensor on human body. The average pathloss model of the human body has parameters \(d_{0} = 10\) cm and \(PL(d_{0}) = 35.2\) dB.

$$\begin{aligned} \begin{aligned} PL(d_{0}) = 10 * log (4\pi \cdot d_{0}f) * c \\ \end{aligned} \end{aligned}$$
(6)

Here, f represents frequency of operation, and c represents the speed of light. Pathloss is affected by the body movements due to change in distance between sensor nodes. If the value of pathloss deviates from its mean value, then it is known as shadowing effect. The total pathloss considering shadowing factor may be given by Eq. 7.

$$\begin{aligned} \begin{aligned} PL = PL(d) + X\sigma \end{aligned} \end{aligned}$$
(7)

Here, \(X\sigma \) is a shadowing factor in dB. It follows gaussian distribution of random variables. It has zero mean and standard deviation.

3.2 Routing Scheme

This section describes the phases of the proposed protocol which optimizes the energy consumption and network lifetime of WBANs. The proposed routing protocol is explained below in the subsequent sections and a block diagram which depicts the series of steps that are followed by the proposed protocol is shown in Fig. 2 [39]. Figure 5 also shows the working of one round of the proposed scheme. After one round of the proposed routing protocol, there are two possibilities. First, some nodes may not be considered as we have an upper limit on the number of cluster members. Second, new nodes may enter the network. The process repeats for the left out and new nodes forming the second round of the proposed scheme.

Fig. 2
figure 2

Block diagram of proposed scheme

Fig. 3
figure 3

Hello packet

Fig. 4
figure 4

Cluster head hello packet

3.2.1 Cluster Setup Phase

The initial population describes the total number of sensor nodes in the network initialized with fields as ID, residual energy, location coordinates and sensing range. Residual energy of a sensor node defines the communicational abilities of the nodes. The nodes are then added to the clusters to avoid direct communication from source to sink as it consumes more energy. As all the nodes have same power and communicational abilities, we add equal number of nodes to every cluster to achieve load balancing at the cluster head. Thus, the number of clusters is known beforehand. If N is the total population and n defines the cluster members as specified by the users, then, the optimal number of clusters required to cover the whole network is given by N/n. The constraints for inclusion of the nodes in any cluster is checked at global level. Thus, there is no need to check conditions at each level which reduces the overhead. The optimal value of n accounts to load balancing at cluster head and managing the physical size of clusters. CH maintains a routing table on the reception of hello packets from other members of the cluster.

The Figs. 3 and 4 show the hello packets of the sensor nodes and the cluster heads respectively. The hello packet contains the information regarding node id (ID), location coordinates \((SN_{x,y}, DN_{x,y}, CH_{x,y})\), residual energy (RE), threshold value \((E_{th})\), sense radius (SR), flag bit and the payload. If flag bit is set then the node is a cluster head otherwise a cluster member. Whenever the CH recieves a packet it stores information as \( ID_{s_{i}}, RE_{s_{i}}, SR_{s_{i}}, X_{s_{i}}, Y_{s_{i}} \) in routing table. The routing tables are updated either when a node is at its dead point, i.e., about to shred its residual energy below a particular threshold or a new node is to be added in the network. The initialization of the network is explained in Algorithm 1 (Fig. 5).

figure c

3.2.2 Fitness Evaluation

Multi-objective fitness function is applied to determine the quality of all the valid nodes that are capable of communicating with other nodes as well as the sink node. Fitness function is defined by two parameters, i.e., residual energy \(R_{e}\) and sensing range \(R_{s}\) of the nodes and is represented in terms of knapsack problem as given by Eq. 8.

$$\begin{aligned} \begin{aligned} f = \sum _{i=1}^{n} Rs_{i}Re_{i}\\ \text {subject to} \\ Rs_{i} \le Rs_{i+1}\\ Re_{i} \ge E_{Th} \end{aligned} \end{aligned}$$
(8)

The proposed scheme first selects the best nodes as the head of clusters in the network and then finds the best route to transmit data to the sink node while considering the optimization of energy consumption and network lifetime. The cost function assigns weights, w1 and w2 to two parameters residual energy RE and sense radius \(S_{r}\) respectively to provide relative importance to the parameters as given by Eq. 9. The various values of weights give different cluster heads and routing path. However, the optimal solution is given by node with least value of cost function.

$$\begin{aligned} Cost&= w1 \left|\frac{RE_{max} - RE_{x}}{RE_{max}}\right| + w2 \left|\frac{Sr_{max} - Sr_{x}}{Sr_{max}}\right|\nonumber \\&\quad \text {subject to} \nonumber \\&\quad w1 + w2 = 1 \end{aligned}$$
(9)

where \(0 \le w1 \le 1 \), \(0.5 \le w2 \le 1\).

As an output of the fitness function, n best nodes are selected as the cluster heads (CH). The nodes which lie in the sensing range of the cluster head, i.e, near to CHs, are added to the respective clusters so that the cluster is not widely dispersed. If the cluster is widely dispersed, the nodes at the far end of the cluster are likely to shred their energy soon as compared to the other nodes. The distance between the nodes is calculated using Eq. 10. Cluster members transmit data to CH as soon as the clusters are formed after the transmission and reception of hello packets. Routing table is updated dynamically. The cluster head node has the maximum residual energy so there is less probability of its failure and being declared as a dead node. As all the nodes are homogeneous and have same power, cluster head has to keep track of the second best node in terms of residual energy with the help of routing table. Before it completely shreds its energy, it sends the location coordinates of the second best node to the cluster members. Cluster member then sends the hello packet to the new CH so that there is no interruption in the communication. Also, it sends a control message consisting of its residual energy to the second best node and informs the node to act as cluster head. This process is explicated in Algorithm 2.

$$\begin{aligned} \begin{aligned} d = \sqrt{(CH_{x}-n_{x})^2+(CH_{y}-n_{y})^2} \end{aligned} \end{aligned}$$
(10)
Fig. 5
figure 5

Workflow chart of round 1 of the proposed algorithm

figure d

3.2.3 Routing Path Selection

After the cluster formation, all the cluster members transmit data to their respective cluster heads. Each cluster head serves equal number of sensor nodes so they equally shred their energy (ignoring the data processing cost). However, if each cluster head sends data to the sink node on its own, it is likely to shred its energy soon. We have proposed a routing path selection scheme as explained in Algorithm 3 that selects a routing path amongst the cluster heads for transmitting the data to the sink. Each cluster head will share their location coordinates, residual energy with the rest of the cluster heads thus forming a graph of \(n + 1\) vertices where n is the total no. of cluster heads in the network and 1 for the sink node. Now, there are two possible path costs, firstly the direct path cost between the cluster head and the sink node and secondly the indirect path cost between the cluster head and the sink node via intermediate nodes as given in Eqs. 11 and 12. The routing path is selected in such a way that the cluster head which is far from the sink node will send the data to cluster head nearer to it and it will in turn forward the data to the cluster head or the sink node whichever is nearer.

$$\begin{aligned} {d_{iS}=}\left\{ \begin{array}{ll} C_{iS} &{} \text { if } k = 0 \qquad \qquad (11) \\ \min {(C_{iS}, C_{ik} + C_{kS})} &{} \text { if } k \ge 1\qquad \qquad (12) \end{array} \right. \end{aligned}$$

By this method the cluster heads are not over burdened to trnsmit data to the remotely located sink node as multi-hop communication is used to transmit data to the sink node. The paths are selected based upon the minimum distance between the nodes of the graph formed. This helps in reduction of energy consumption of the cluster heads as well as increases the network lifetime.

figure e

4 Results and Discussions

In this section, we validate the performance of our proposed protocol by simulation as well as by analytical proof in the subsequent subsections.

4.1 Simulation Results

The proposed protocol is simulated using a simulation model in Matlab and we have compared our proposed protocol with Anybody [10], HIT [11, 12], SECA-M [13], OCER [14], EERP [15]. We assume that the same sensor nodes are employed on the patients. We have considered the indoor hospital environment. The proposed algorithm has two different phases, namely, cluster setup and routing path selection. To illustrate the effectiveness of the proposed protocol various parameters such as total time taken to build clusters, overall energy consumption, network lifetime, throughput, residual energy, packet delivery ratio and average delay are considered.

As we want to measure the effective performance of the proposed scheme, we want to free ourselves from lower layer considerations. Sensor nodes communicate using CSMA/CD with power-level that is selected apriori. We have used the IEEE 802.11 MAC protocol, nevertheless, it has little or no impact on the simulation results as we dont count specific IEEE 802.11 layer 2 messages and we only log the activity of our proposed protocol. We have considered two different scenarios. Scenario 1 sends static number of packets and scenario 2 sends variable number of packets from source to sink. The description of simulation platform and simulation parameters are listed in Tables 2 and 3 respectively. The description of parameters for Genetic Algorithm are shown in Table 4. The assumptions for simulating the proposed scheme are as follows:

  • Sink node is fixed and located far from the sensor nodes.

  • Sensor nodes are randomly distributed in the sensing area.

  • All sensor nodes are in capacity to send data to the sink node.

  • All sensor nodes are homogeneous in behaviour and energy restrained.

  • Only CH nodes can communicate with sink node.

  • CM nodes can monitor data and directly send data to the CH node, or through the non-CH hop nodes.

  • Sensor nodes cannot be recharged. A node continues to sense and transfer data until its energy is depleted and is considered as an outlier (dead node).

Table 2 Description of simulation platform
Table 3 Simulation parameters
Table 4 Genetic algorithm parameters

In cluster setup phase, first phase of the proposed protocol, as given in Algorithm 2 is used to create clusters and find the cluster head of each cluster for indirect communication with the sink. Direct communication from source to sink will lead to early depletion of residual energy of sensor nodes. Thus, the proposed protocol uses indirect communication from source to sink via cluster head. The Fig. 6 shows the total time taken to construct the clusters and elect cluster head by Anybody, HIT, SECA-M, EERP and the proposed scheme. The proposed protocol takes less time as compared to other protocols because the cluster formation begins as soon as the node detects another node in its sensing range and hello messages are sent later to start the communication and maintain the routing table.

The Fig. 7 depicts energy consumption by each protocol for scenario 1 and Fig. 8 depicts energy consumption by each protocol for scenario 2. In the proposed scheme, residual energy based cost function is used to optimize the energy consumption. After applying GA to all nodes and the nodes with maximum value of residual energy is chosen as the cluster head in order to cover the whole network. Equal number of nodes within the sense radius of each cluster head are chosen as cluster members so that the physical size of cluster is not widely dispersed. This way cluster heads are alive for longer period of time as it balances load on each cluster. It is seen from the the graphs that the proposed scheme consumes less energy than the other schemes. Figure 9 shows the overall energy comparison of the protocols.

Fig. 6
figure 6

Total time taken to construct the clusters

Fig. 7
figure 7

Energy consumption for variable no. of packets

Fig. 8
figure 8

Energy consumption for fixed no. of packets

Fig. 9
figure 9

Overall energy consumption

Figure 10 shows the energy consumption for the transmit powers of 25 dBm, − 20dBm, 15 dBm, 10 dBm and − 5 dBm respectively. The graph shows the same trend as the proposed scheme consumes lesser energy. Due to high transmit powers less packets are forwarded through the intermediate nodes which is responsible for more energy consumption. However, the proposed scheme uses multihop communication and more packets are forwarded through the intermediate nodes. Thus, enhancing network lifetime and reducing energy consumption.

Fig. 10
figure 10

Energy consumption at various power levels

Network lifetime is defined as the time till which the first node dies. It is also given as no. of iterations per round which defines the number of living nodes. Comparison of the total no. of nodes in the network and the no. of rounds till the first node dies is shown in Fig. 11. The proposed scheme has longer network lifetime as compared to the other schemes due to multihop communication and selecting optimized routing path for data transmission to the sink. Figure 12 shows the comparison of total time taken and the number of intermediate nodes till the first node dies. We have observed that using the proposed scheme the sensor nodes live for a longer time period.

Fig. 11
figure 11

Network lifetime

Fig. 12
figure 12

Network lifetime with varied intermediate nodes

Figure 13 compares the throughput of various protocols. Throughput is defined as the total number of packets successfully received at the sink node. The proposed scheme achieves higher throughput than the other schemes as the proposed scheme as higher network lifetime so more number of packets can be sent. The more sensor nodes are alive for larger no. of iterations, the more packets can be transmitted to the sink node. Increased stable conditions result in the maximum packets sent to sink node with response to the whole network. Figure 14 compares the throughput of various schemes at power levels of 25 dBm, − 20dBm, 15 dBm, 10 dBm and − 5 dBm respectively. The proposed scheme achieves consistent throughput at various levels due to selection procedure of the next node in the routing path.

Fig. 13
figure 13

Throughput

Fig. 14
figure 14

Throughput at varied power levels

Routing path is selected between the cluster heads and sink which acts as a backbone to send the data from cluster head to the sink. Direct communication from cluster head to sink can shred the energy of cluster heads very early which can lead to untimely selection of second cluster head in a cluster. Thus, a routing path is selected. Figure 15 shows the overall time taken to select the routing path and Fig. 16 shows the time taken to select routing path with varied intermediate nodes. It is seen that the proposed scheme takes less time to select routing path with different intermediate nodes.

Fig. 15
figure 15

Overall time taken to select routing path

Fig. 16
figure 16

Time taken to select routing path with varied intermediate nodes

Information packets are discarded whenever the capacity of the communication link is not suitable for transmission and reception of data during the communication process. The communicating links have varying quality due to the mobile nature of the networks. This problem effects the energy consumption parameter significantly. Thus, the no. of packets sent by the sensor nodes are not equal to the no. of packets received by sink. Figure 17 shows average packet drop which is less as compared to existing routing protocol techniques.

Fig. 17
figure 17

Average packet delivery ratio

Propagation delay is the time taken by the data to move from source to sink, i.e, the distance between the source and the sink divided by the speed of the signal expressed in milliseconds (ms). As in the proposed scheme the clusters are not widely dispersed so the successful data transmission from the sensor nodes is to be done for the nearest node. Thus, there is a decrease in the delay. Figure 18 shows the comparison of average propagation delay between the proposed scheme and the existing schemes.

Fig. 18
figure 18

Propagation delay

Residual energy is the remaining energy in the sensor node. After each round the overall energy expenditure (in joules (J)) is measured. The proposed protocol dissipates low energy so the senosr nodes have extra power at the end of the execution. The average residual energy with the increasing number of iterations is as shown in Fig. 19. The minimum value of cost function identifies the node that can be used for transmission of data successfully.

Fig. 19
figure 19

Residual energy

4.2 Analytical Results

In this section, we discuss the analytical results of the proposed algorithm with respect to performance parameters such as load balancing, communicational overhead, energy optimization and fault tolerance.

Lemma 1

The optimal number of cluster heads \(N_{ch}\) in the whole network depends on the total number of nodes N in the network and the number of cluster members n as \(N_{ch} = N/n.\)

Proof

The proposed protocol considers equal number of cluster members in each cluster, so the optimal number of cluster heads required depends on total number of nodes in the network N and the number of cluster members n to cover the entire network. These values are pre-defined so the number of cluster head required to cover the whole network is known beforehand as shown in Eqs. 13 and 14.

$$\begin{aligned} {n_{ch}=} \left\{ \begin{array}{ll} N/n &{} \text { if } n \bmod N == 0 \qquad \qquad (13) \\ \lceil N/n\rceil &{} \text { otherwise} \qquad \qquad \qquad \quad (14) \end{array}\right. \end{aligned}$$

The average case occurs when n is sufficiently large with respect to the total number of nodes and less number of clusters are built whereas the worst case occurs when n is small and large number of clusters are required to cover the whole network. Also, large clusters will increase the physical size of the cluster. After the election of cluster heads, routing path amongst the cluster heads is selected to transmit data from source to sink. Routing path allows to have multi-hop transmissions from cluster head to sink so that cluster head which is far from sink need not send the data via direct transmissions. This helps the proposed protocol to attain load balancing at each cluster head by maintaining equal number of cluster members and physical size of cluster. Ultimately it helps to optimize energy consumption. The existing schemes are not focused on achieving load balancing at the cluster head which drains off the energy early as compared to the proposed scheme. Also, each cluster head in the existing schemes serves different number of cluster members which leads to more number of transmissions. Thus, more energy is consumed in the case of existing schemes and network lifetime decreases. \(\square \)

Lemma 2

Let be the communicational overhead in the network which depends upon the number of control messages and re-transmissions of the packets.

Proof

It depends upon the number of control messages and re-transmissions. The proposed protocol has reduced communicational overhead as all the conditions for the nodes are checked at global level and not at each phase of the proposed scheme. The communication starts after the transmission and reception of control messages which are sent only once. This reduces the overhead as well as saves energy of the respective nodes. There are lesser number of re-transmissions as the packets are successfully received at the sink node due to multi-hop transmission scheme. Also, reduced packet drop ratio helps in reducing the number of re-transmissions. \(\square \)

Lemma 3

Let Ebe the energy consumption of the network which is proportional to distance between source and sink, transmission rate and network lifetime as \(E \propto dt_{r}/l\).

Proof

The energy consumption E of the network is directly proportional to distance between source and sink d. The data sensed by the source nodes is to be successfully transmitted to the remote sink node. The distance is calculated as the euclidean distance using the location coordinates of the nodes. Also, the energy consumption is directly proportional to transmission rate \(t_{r}\) which includes the communicational overhead as well as the re-transmissions if the packets are dropped. It is indirectly proportional to network lifetime l because if the energy consumption increases nodes will die soon which decreases the network lifetime as shown in Eq. 15.

$$\begin{aligned} E&= \dfrac{a\left|\sqrt{(CH_{x}-n_{x})^2+(CH_{y}-n_{y})^2}\right| + b |t_{r}|}{c|l|}\nonumber \\&\quad \text {subject to} \nonumber \\&\quad a + b - c = 1 \end{aligned}$$
(15)

where \(0 \le a \le 1\), \(0 \le b \le 1\), \(0.5 \le c \le 1\).

The proposed scheme is energy efficient as it uses multi-hop transmissions from source node to cluster head and cluster head to sink node. Thus, reducing the distance to be covered in a single transmission. Also, helps in reducing the rate of re-transmissions as the proposed scheme has less communicational overhead and less number of packets are dropped due to longer network lifetime and throughput. \(\square \)

Lemma 4

The proposed protocol is fault tolerant and reliable.

Proof

The proposed protocol is fault tolerant and reliable as cluster head maintains a routing table which is updated dynamically. It stores the information regarding node identity ID, residual energy RE, sense radius SR, location coordinates \((X_{loc},Y_{loc})\) of each cluster member. When the residual energy of the cluster head is less than or equal to the prescribed threshold (below which nodes are considered dead), it selects the second best node in terms of residual energy from routing table. Cluster head sends the location coordinates of the selected node to the cluster members. Cluster members send hello packets to the new node for initiating the communication process without hindrance. Thus, increasing network lifetime. Also, the proposed protocol is reliable as the communication doest hinders even if the cluster head drains off its energy. \(\square \)

5 Conclusion and Future Scope

In this paper, we propose an energy efficient cluster head and routing path selection protocol for WBANs. As WBANs are designed to continually sense the biomedical data, preserving the energy of each node can help increase the lifetime of the network. The proposed protocol uses a cost function based on residual energy and sense radius to determine the cluster head. The node with maximum value of residual energy is selected as the cluster head and the cluster memebers are within the sense radius of the cluster head so that the cluster is not widely dispersed. Thus, it balances load at the cluster head which further optimizes the energy consumption and network lifetime. The proposed protocol is based on GA for global optimization of the cost function. The performance of the proposed protocl is compared with anybody, HIT, SECA-M, OCER and EERP in terms of energy consumption, network lifetime, residual energy, packet delivery ration, average delay and throughput. The simulation results illustrate that the proposed scheme could achieve upto 28–29% energy savings which enhances its network lifetime as well. Thus, the proposed scheme increases the effectiveness of WBANs used for ubiquitous health monitoring.

In the future, the proposed scheme can be extended for considering node mobility, body movements and cross layer interactions for complex network scenarios.