Next Article in Journal
Optical Recognition of Handwritten Logic Formulas Using Neural Networks
Previous Article in Journal
Ferroelectrics Based on HfO2 Film
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Optimal Base Station Location for Network Lifetime Maximization in Wireless Sensor Network

1
School of Electronics and Information Engineering, Hebei University of Technology, Tianjin 300401, China
2
School of Mechanical Engineering, Hebei University of Technology, Tianjin 300401, China
*
Author to whom correspondence should be addressed.
Electronics 2021, 10(22), 2760; https://doi.org/10.3390/electronics10222760
Submission received: 10 October 2021 / Revised: 8 November 2021 / Accepted: 9 November 2021 / Published: 11 November 2021
(This article belongs to the Section Networks)

Abstract

:
Wireless sensor networks have attracted worldwide attention in recent years. The failure of the nodes is caused by unequal energy dissipation. The reasons that cause unequal energy dissipation are, first and foremost, the distance between the nodes and the base station, and secondly, the distance between the nodes themselves. In wireless sensor networks, the location of the base station has a substantial impact on the network’s lifetime effectiveness. An improved genetic algorithm based on the crossover elitist conservation genetic algorithm (CECGA) is proposed to optimize the base station location, while for clustering, the K-medoids clustering (KMC) algorithm is used to determine optimal medoids among sensor nodes for choosing the appropriate cluster head. The idea is to decrease the communication distance between nodes and the cluster heads as well as the distance among nodes. For data routing, a multi-hop technique is used to transmit data from the nodes to the cluster head. Implementing an evolutionary algorithm for this optimization problem simplifies the problem with improved computational efficiency. The simulation results prove that the proposed algorithm performed better than compared algorithms by reducing the energy use of the network, which results in increasing the lifetime of the nodes, thereby improving the whole network.

1. Introduction

The advancement of digital technology during the third industrial revolution combined with power-efficient electronic devices has brought about wireless sensor network (WSN) technology. WSN refers to a network of several low-cost, efficient, and multifunctional sensor nodes working together to monitor or investigate an area of interest (AoI). These sensors generate data from the area of interest and send them to a base station (BS) to be processed into useable information. Some of the WSN applications include monitoring the environment [1,2], military surveillance and tracking [3], human-centric applications and robotics [4], agriculture [5], health monitoring [6,7], etc. The type of information acquired by the sensor nodes may include position, temperature, pressure, humidity, vibration, or even the presence of certain chemicals.
Despite the popularization of WSN, the challenges encountered when implementing sensor nodes can be broadly categorized into three main issues: node deployment, data handling (includes acquisition and transfer), and power efficiency. Node deployment density is critical because it affects the overall performance and energy consumption in the network [8,9]. If the nodes are sparsely deployed, the sensing accuracy would be compromised, while a dense deployment would result in a high power requirement and cost of the system.
This has led to the research into techniques to improve deployment [10], which could be either planned [9], where all the nodes are organized in a grid, random [11], which is more suitable for large-scale AoI, or dynamic [12], where the nodes can be redeployed after the initial deployment.
Data acquisition and transmission are the key functions of WSN, and a growing number of applications require the network to perform various tasks concurrently. This can be achieved by fitting the nodes with multiple sensors, but this plurality of sensors is often associated with invalid data and low-quality data, resulting in high power consumption and latency. Tomovic et al. [13] proposed a weighted task allocation algorithm that avoids sending multiple data through the same path, while authors in [14] proposed an algorithm for multiple tasks scheduling such that only the data from the required sensors are acquired during the task, thereby reducing invalid data and delay and improving the quality of the data, which maximizes the network lifespan. Depending on the application, the network lifetime can be defined in a variety of ways. For example, in clustering methods, the network lifetime is defined as the time when all sensor nodes deplete their energy and stop functioning. Data transmission to the base station is performed in hops. Traditionally, data are transferred from the nodes in a single hop, but the distance between the nodes and the based station and their varying data rates resulted in a power inequality between the nodes; some nodes were found to extinguish too early, while others were still full of power. The clusters and multi-hop were used to improve the energy inequality and reduce the distance problem, thereby improving the lifetime of the nodes. In these techniques, the data in the distant nodes hop onto several nodes before arriving at the cluster head. The problem associated with the data hopping technique is that sometimes some nodes are ill-positioned, such that there are no other nodes around it for data hopping.
The types of nodes implemented in WSN can be classified into homogeneous nodes and heterogeneous nodes. Homogeneous sensor nodes refer to a situation where the sensors in a network have similar power and data rates, while heterogeneous sensor nodes refer to a situation where the sensors in a network have varying power and data rates. The heterogeneous WSN was shown to have better performance indices compared to the homogeneous networks [15].
Optimizing the position of the BS was also found to reduce the effects of ill-positioned nodes [16]. Because the energy consumed by cluster heads to send data to the base station is dependent not only on the data bit rate but also on the physical distance between cluster heads and the base station, the location of the base station plays an essential role in the lifetime of wireless sensor networks. As a result, it is critical to comprehend the impact of the base station’s location on the performance of wireless sensor networks so that we can optimize the topology throughout the network deployment stage. Direct transmission requires more energy if the base station is located far from the cluster heads because the distance from border to border is sufficiently large, causing the energy in cluster heads to drain faster and the overall lifetime of the wireless sensor network to shorten. On the other hand, if the base station is close to the center of the WSN field, the distance between CHs and the BS is reduced compared to the current assumption, and the CH’s energy consumption can be improved. However, locating the BS in the center of a large network area is usually impractical. It would be a practical suggestion to design a better WSN if we could obtain an estimate for some practical cost to locate the BS inside the network to some degree and the results that we can obtain from that expense.
Various researchers have used the clustering of sensor nodes to optimize the energy use of sensor nodes [17]. Clustering is used in wireless sensor networks to divide nodes into distinct sets known as clusters with their cluster heads (CHs). The CH then must collect data and forward the data to the base station from its cluster members. Clustering can be divided into several forms, including partition clustering [18], hierarchical clustering [19], and grid clustering [20]. These partition-based clustering methods have already demonstrated their effectiveness in increasing the network lifetime and overall scalability of wireless sensor networks [21].
Unlike in paper [16] and other different works that have conducted the optimization of the base station location, the main contributions and innovations of this paper include the following aspects:
  • To optimize the location of the base station, an efficient energy-saving technique called the crossover elitist conservation genetic algorithm (CECGA) was suggested, where in the crossover phase, we apply the elitist conservation of individuals to replace others in the second generation. To avoid the loss of the best chromosome after mutation, elitism is used to copy some of those chromosomes for the next generation. This optimal location helps reduce the distance from nodes to the base station, which results in saving energy used by nodes.
  • Data transmission from nodes to the base station consume a high amount of energy that can cause the network to stop working early; to solve this problem, the K-medoids algorithm for nodes clustering is proposed for choosing the appropriate cluster head to acquire the perfect outcome of the cluster, to prevent the adverse effect of outliers, and to calculate the optimum medoids among the sensor nodes.
  • After forming clusters, a multi-hop data routing is used among sensor nodes inside the cluster to send sensed data to their cluster heads from node to the nearest node, which results in reducing energy use in the cluster.
Our proposed algorithm can improve energy efficiency and efficiently increase the network lifetime by balancing the network workload. The abbreviations used in this paper can be found in Abbreviations.
The remaining sections of this work are organized as follows: Section 2 describes the work’s related history. Section 3 outlines the steps of the system and the energy model. Section 4 explains the proposed algorithms. In Section 5, the simulations are carried out, and the results are delivered, and finally, Section 6 concludes the work and expresses the future aspirations of this research.

2. Literature Review

The evolutionary programming methods proposed by [22], their tactics developed by [23], and developed evolutionary strategies [24] have given rise to what is known as genetic algorithms. These are strategies based on biological mechanisms such as Mendel’s laws and Charles’ fundamental concept of selection [25]. They have been disclosed in [26] to allow computers to emulate biological creatures to solve problems. There are a lot of interesting approaches to dealing with WSN problems, but one of the most powerful meta-heuristic approaches is related to GA [27] for solving optimization problems [26], obtaining more information, and understanding the genetic algorithm [28,29]. Chen et al. [30] established an innovative protocol (GAEEP) based on genetic algorithms for maximizing lifetime and improving WSN stability. The protocol goals were to extend the lifetime of the wireless sensor network by determining the best number of cluster heads and their best positions based on the sensor node’s energy consumption minimized by a genetic algorithm. The protocols must be energy efficient to maximize the network lifetime. Cluster head (CH) selection in the Low-Energy Adaptive Clustering Hierarchy (LEACH) protocol is based on a random probability equation, which has limitations such as unequal cluster and energy distribution, as well as random CH selection. A method for improving CH selection and reducing CH energy degradation [31] is proposed to address these limitations. The proposed algorithm LEACH-CHGA protocol improves CH selection over the existing protocol while lowering the network’s energy consumption. In comparison to conventional CH selection, optimal CH selection based on a genetic algorithm improves the network lifetime and energy consumption.
Tamandani et al. [16] proposed an algorithm that identifies the geometric median of all positions connected to the SN to place the BS within the network. They compared the optimal position of their algorithm with different positions, such as the field center, and their performance evaluation showed that the proposed position for the base station would extend the network life of the sensor nodes. However, their network throughput was good at the central location compared to the optimal position of the base station.
Tamandani et al. [32] located the sink at different locations in the network, and the results showed that both the center and the center of the quarter of the network have the maximum density of nodes, making better choices for the position of the base station.
The NP-hard problem’s P-median was used in [33,34] to determine the optimal location of the base station, and in [34], the simulations carried out show that a good optimal location of the BS would be the center of the field. In [35], the LEACH protocol was used to improve WSN performance through finding the optimal base station position, and the simulation results showed that the distance between cluster heads and the BS is an important cause that affects the death of cluster heads in wireless sensor networks. To achieve improved performance, Li et al. [36] explored ways to deploy 802.15.4 and NB-IoT-equipped base stations in existing wireless sensor networks. Based on the traditional model, two types of major problems were considered, and then their structure was implemented and evaluated in realistic wireless network sensor topologies. Shah et al. [37] proposed an algorithm for the optimum position of the base station in the cluster WSN. Bogdanov et al. [38] selected the base station’s location to maximize the WSN’s energy consumption, and the simulation results demonstrated that data rates can be increased with different algorithms to enhance the configuration of the base station position.
Most routing systems are designed to reduce energy consumption [39] without taking into account the importance of the location of the BS or which method is best to reduce energy use done by routing strategies GM [16]. Different from the above conservative models and to the best of our understanding, our paper model maximizes WSN lifetime by combining the optimization of the location of the BS and optimization of cluster head for clusters and additionally using a multi-hop data routing inside the cluster for reducing energy use in the cluster.

3. Network Model

3.1. The Proposed Network Model

In this part, the proposed network model in Figure 1 will be described based on the position of the BS and the clustering strategy routing method. We calculated the location of the base station based on the distance between the nodes, their initial energy, and data rates. The optimal base station location is found while deploying the sensor nodes. After optimizing the base station location, the number of clusters is calculated, and we select the cluster heads. The next step is to send a message from the base station location to all cluster heads in the network; this message carries the optimal base station location. When the message reaches CHs, the cluster heads extract the information from the message and store it in their memories for later use at the data transmission stage.
The BS and sensor nodes will be static after deployment, and all sensor nodes are homogenous with limited energy. The base station has enough power and recognizes the position of all SNs. Sensor nodes in a WSN are typically powered by batteries. As a result, we will need an energy model to estimate the sensor node’s energy consumption during various functions.

3.2. Energy Model

The location of the BS not only helps extend the life of a single sensor node but also the life of the entire wireless sensor network. This paper studies a stable SN made up of N sensor nodes spread out over a 2-dimension field. We fixed the position of each SN as well as the initial energy at each sensor node i. Each SN generates data at a rate of Ri. Static nodes and a single mobile base station are used in the field. The energy consumption caused by the communication between nodes and the base station is the main key this paper is focusing on.
Our goal is to figure out which base station position is the best position to collect data in a WSN so that the network lifetime (T) can be extended. Assuming that a sensor node i transmits data to a sensor node j at a rate of Wij (b/s) and transmits data to the base station at a rate of WiB (b/s), we can construct the following transmission energy model for a sensor node i
U T X = j N j i V i j · W i j + V i B · W i B
where Vij and ViB are costs associated with the transmission of data between nodes and BS, respectively, and can be demonstrated as follows:
V i j = β 1 + β 2 · d i j α
Here, β1 and β2 are constant parameters, dij is the distance between nodes i and j, and α is the path-loss index, respectively, where 2 ≤ α ≤ 4. From Equation (1), we have a non-linear function of the base station position (XB, YB) expressed as follows:
          V i B = β 1 + β 2   [ ( X B X i ) 2 + ( Y B Y i ) 2 ] α
The flow balance limitations and energy were considered to maximize T by following the power consumption model shown in this equation:
U R X = ρ k N k i W k i
where Wki (b/s) represents the bit rate coming from node k to i, and ρ is the constant coefficient. Assign Pi as the rate of energy consumption at sensor node i. We have:
      P i = ρ k N k i W k i + j N j i V i j · W i j + V i B · W i B
Let us assume that the BS is at point p with coordinates XB and YB, we define T as the network lifetime. A reasonable flow routing solution should achieve the flow stability and energy constraints to achieve this network lifetime T. The flow rates Wij and WiB represent rates from sensor node i to j and from sensor node i to the BS, respectively, as mentioned above. The flow balance for each sensor node is expressed as follows:
k N k i W k i + R i = j N j i W i j + W i B
This means that adding the incoming flow rate to the self-generated data rate equals the total ongoing flow rate. The goal of this paper is to maximize T while preserving flow balance and energy constraints, that is:
Max T
Subject to
                                                        j N j i W i j + W i B k N k i W k i = R i         i Ν
                                                              k N k i ρ W k i · T + j N j i V i j · W i j T + V i B ( p ) · W i B · T e i         i Ν
                                                          V i B β 2   [ ( X B X i ) 2 + ( Y B Y i ) 2 ] α = β 1         i Ν
T ,   W i j ,   W i B 0         ( i ,   j N , i j )
This optimization problem is a nonconvex programming problem, which is, in general, NP-hard [40].

4. Proposed Approaches

4.1. Crossover Elitist Conservation Genetic Algorithm (CECGA)

In our work, we used a meta-heuristic algorithm called the crossover elitist conservation genetic algorithm (CECGA). Certainly, a large part of genetic algorithms processes is random. Many publications give a good introduction to the genetic algorithm [39,41,42,43]. GA is a combination of the principles behind artificial intelligence in computer science and natural evolution in biology. Optimizing GAs is based on the fitness function of the individual environment. Applying the crossover and mutation of the old generation to a new generation is produced [44], then new genes that tip to the best fitness have more chance of life, and after some generations, the optimal solution will be reached. The steps of our modified GA are as follows:
  • Population Initialization: Firstly, random 𝑁 individuals (chromosomes) are produced, and the evolutionary generation begins with iteration 0. The distance threshold (communication radius) is initialized.
  • Fitness Calculation: To evaluate if the particular chromosome increases or decreases the lifetime of WSN, we calculate its fitness function. The algorithm conserves the historically obtained best chromosome; that is, with the highest fitness value, this is called elitism. The fitness of a chromosome controls how much energy is consumed and how much coverage is provided. Our algorithm fitness is a cluster-based distance (CD), which is the sum of the distances between the calculated member nodes and their cluster leaders, as well as the total CHs and BS distances, and is calculated as follows:
                                  C D = ( i = 1 n ( j = 1 m d i j ) + D C B )
    where n and m denote the number of clusters and related members, respectively; dij is the distance between a node and its CH; and DCB denotes the distance between the CH and the BS. The solution is best suited for networks with a high number of widely separated nodes. A greater cluster distance results in higher energy usage. This measurement is used to manage the density of the clusters, where density is the number of nodes in each cluster.
Standard derivation measures the cluster’s distance changes. Cluster-based distance standard is determined by the location of the sensor nodes. Clusters of varying sizes are randomly placed so that an SD within a defined variance in cluster distance is acceptable. If this is the case, the variances in the cluster distance are not zero, and the variation must be adopted based on information deployment. In any case, cluster distance change must be minimized under deterministic placement with a uniform distribution of node placements. Changes in uniform cluster-based distances, in general, indicate that the network is weak, which is not the case when nodes are put randomly:
μ = i = 1 n d c n
S D = i = 1 n ( μ d c ) 2
The symbol μ in Equation (12) represents the average of the cluster distances, which is the conventional SD formula for calculating cluster distance variation.
Transfer energy (E): this is the amount of energy consumed in transferring all of the acquired data to the BS. Let m denote the number of related nodes in a cluster; then, E is calculated as follows:
E = i = 1 n ( j = 1 m e j m + m × E R + e i )
where ejm is the amount of energy necessary to transport data from a node to the matching CH. Thus, the first term in the sum of i represents the total energy consumed for the transfer of aggregated data to CHs. Furthermore, the second term in the summation “i” represents the total required energy to collect data from members, and the last term in the summation e i represents the required energy for transmission from the cluster head to the BS.
3.
Selection: The selection step chose the best individuals according to the selection operator, whereby a mating pool of individuals with above-average fitness values is conserved and two parents become selected randomly for crossover.
4.
Crossover: CECGA is used to obtain better parameters. In the crossover phase, we apply the elitist conservation of individuals to replace others in the second generation. To avoid the loss of the best chromosome after mutation, elitism is used to copy some of those chromosomes in the next generation.
This method improves the GA and allows the best solutions to be saved. In CECGA, the first population consists of n chromosomes indicating the best possible base station position. The structure of the proposed algorithm is summarized as follows:
In our approach, B1 symbolizes the elitist individual, A1 symbolizes the elitist individual’s father, and A2, the mother, symbolizes the elitist individual’s mother. If the present solution is better than the previous solution, the current one is defined as B1, then A1 and A2 are retained. In the first generation, CECGA randomly generates eight individuals: A1 to A8. In the next generation, eight new individuals are formed by a crossover gene algorithm operator, such as A1 and A2 cross to generate B1. If the present optimal solution is individual B1, the parents of the elitist individual A1 and A2 shall be retained. Each individual is the combination of the distance and energy of the sensor nodes. For example, our first individuals were generated randomly, as shown in Figure 1, then in the second generation, two individuals are chosen at random from the remaining seven as B2 and B3, and replaced with A1 and A2, as shown in Figure 2, where generations are B1, A1, A2, B4, B5, B6, B7, and B8.
The elitist individual’s parents and the current generation’s population are combined using the CECGA to improve the gene quality of the population, ensuring that good genes are not discarded during the selection process. Maintaining the ability to pass down the genes of the population’s best individuals to the next generation is essential for evolution. Except for the elitists, the parents of the elitists are saved and replace some members of the current generation.
5.
Mutation: The new individuals are produced in this mutation to keep the diversity in the population. Here the node is selected randomly from the best chromosome obtained in the past generation.
Elitist individuals with good genes are reproduced in the second generation, and the parents of these elitist individuals are conserved. By extending the sampling space, the crossover elitist conservation strategy can increase individual competition. Competition among the elitists of the newly formed generation makes it easier to find a better solution. This cycle will continue until a predetermined end condition is met. The preceding steps ensure that the best genes are conserved and that the algorithm evolves to the best solution. The pseudo-code and block diagram of CECGA are shown in Algorithm 1 and Figure 3, respectively.
Algorithm 1 Crossover Elitist Conservation Genetic Algorithm
Input: (1) Population size N, (2) Number of generation NG, (3) Elitists e
  1. Initial the current population P
  2. Calculate the fitness
  3. Selection
  4. For i = 1 to NG
  5.  Crossover
    // Crossover Elitist Conservation Mechanism (CEC) //
  6.   For j = 1 to N
  7.     Find the last optimal solution B1
  8.     If the current solution Bj < B1
  9.       B1 = B
  10.      e = A1 (B1’s father) and A2 (B1’s mother)
  11.   End
  12.  Next i
  13.  e ⸦ Next P
    // End of Crossover Elitist Conservation Mechanism (CEC)
  14.  Mutation
  15.  Evaluation of the population P
  16.  Update B1
  17. Next j
Output: The optimal solution B1

4.2. Proposed Routing Based K-Medoids Clustering

Our K-medoids-based clustering (KMC) algorithm reduces energy consumption and extends the network lifetime. Cluster head nodes collect data from all nodes via a base station in our proposed scheme. This is followed by a calculation of K of the cluster number. The iteration time is reduced by computing the central circle mean points and remaining energy. Here are the steps of the algorithm:
Step 1: Sensor nodes are distributed into clusters, and the cluster head nodes are located during the first phase. The number of clusters is calculated during this phase, and the cluster head nodes are selected. Initialize greedy select K of the N-data points as medoids to minimize the cost. Equation (14) can be used to calculate K, the number of clusters.
K = N 2
N represents the number of nodes.
Step 2: Calculation of the CH of the cluster as the center point of the initial mean points. Nodes should be centered around point (O). Equation (15) allows for the calculation of O.
                O = i = 1 N X i N
where Xi is the coordinate of node i. Let d be the average distance between O and all nodes. d is calculated by Equation (16)
                                                            d = i = 1 N | X i O | N
Step 3: Associate each node to the closest center (medoids). While the distance decreases:
The cost (distance) change is computed for each medoid O and non-medoid m. O and m should be used together if cost changes are at their highest level. Perform the best swap of m and O if the cost function decreases. Otherwise, the algorithm ends.
Step 4: Earlier we mentioned that, while other works use single hop when nodes transmit data to their cluster heads [16], in our approach, we use a multi-hop data routing where we divided our field into layers according to the number of nodes we have. Then, those nodes send data to their closest node to reduce the distance and energy used among nodes in the cluster. We use the path construct used in Hamidouche et al. [45], where a few layers of cluster space are created by dividing the cluster space into several layers. This selects the next hop based on distance and energy then divides each layer into regions (northeast, northwest, southeast, southwest) until this grouping is complete. Their genetic algorithm can be applied in Figure 4.
This paper made some improvements also to the approach in [45] as follows:
  • They fixed the number of layers to 4, whereas in our approach. we set 10 nodes in one layer, which means if we used 100 nodes, then we will obtain
    L = N 10
    where L represents the number of layers and N is the number of nodes in the field.
  • In their work where 4 layers are used, nodes in layer number 4 must only communicate with nodes in layer number 3 and so on, and finally, nodes in layer 1 connect directly to the base station. Here it does not make sense because nodes in layer 4 can be closer to the node in layer 2, thereby assuming that the number of nodes in each layer is set to 10, a total of 100 nodes, then divided into ten layers. For layer 10 nodes, we traverse all nodes in layers 1–9 and find a connection to the nearest node. For layer 9 nodes, we traverse all the nodes in layers 1–8 to find the closest node to connect sequentially.
  • In their approach for nodes in layer 4, for example, there is one common closer node in the next layer, and if all these nodes send data to its closest node, then that node will be down fast because it is using more energy to receive data, so its life is very short. Here the improvement is to impose a penalty when calculating the distance between nodes, and the specific formula is:
                                    d i s ( i , j ) = d i s ( i , j ) × ( 1 3 k i + 1 )
    where d(i, j) denotes the distance between nodes i and j. Ki represents the number of nodes connected to sensor node i. After constructing the routing from nodes to their cluster heads, these cluster heads send data corrected to the optimal base station calculated above.

5. Experimental Results Assessment and Discussions

In this section, we compared our proposed CECGA with the algorithm (GM) used in [16] and with simple genetic algorithm (SGA) and Strengthen elitist genetic algorithm (SEGA) protocols. Table 1 gives the location of each node and its data rate for a 100 nodes network. The experiment was conducted on an Intel i5-5257U at 2.70 GHz, with 8 GB of RAM. We ran the GA algorithms implemented using the PYTHON language (PyCharm Community Edition 2021.1.2 x64). Table 2 lists the parameters used in this experiment.
We consider WSNs with 100 randomly generated nodes. The following metrics were used to assess the proposed algorithm’s performance.
  • Energy Consumption—The total energy consumed during a round can provide a good estimate of the algorithm’s energy efficiency, and the total energy consumed increases as the number of generations increases.
  • Network Lifetime—The network lifetime is defined as the time when all sensor nodes stop functioning.
  • First Node Death—Our work plots the first node death by showing which round the first node dies by comparing different BS locations in different networks.
  • Last Nodes death—Our work plots the last node death by showing which round the first node dies by comparing different BS locations in different networks.
We first calculate the optimal base station location using CECGA with 100 nodes. As we discussed above, we used multi-hop routing for data transmission and reception. Figure 5 shows cluster heads after the deployment of nodes and calculation of clusters. Figure 6 shows the multi-hop routing from nodes to their cluster heads and from CHs to the optimal base station location.
After finding the location of the optimal base stations using our proposed technique with a different number of nodes, we calculated the maximum network lifetime of different algorithms with the same nodes number for each. Figure 7 shows the maximum network lifetime of CECGA, GA, and SEGA for 100 nodes.
In three different scenarios, Figure 7 depicts the convergence of the SGA, SEGA, and CECGA with the variation of evolutionary generations. The CECGA converges faster than the other two algorithms, as shown in Figure 8. The optimal solution outperforms the SGA and SEGA, and the performance difference between the two is not significant, as shown in Table 3. Figure 7 depicts the results, which show that (CECGA) outperforms the others.
The crossover elitist conservation genetic algorithm is better with the maximum network lifetime of sensor nodes, as shown in the above figure and table. In our model, the CECGA protocol not only reduced energy consumption for data transmission to the base station but also the distribution among nodes. Figure 8 represents the total energy consumption of nodes that directly affect the stability of the WSN. The results show that our proposed algorithm consumes low energy compared to others.
We also compared the different positions of the base stations to check which is better for energy consumption reduction, and the results in Figure 9 and Figure 10 show that the optimal location of the BS is the best one to reduce the energy consumption of SNs. The more nodes that send data to the base station, the more they finish their energy, and after several rounds, they start dying until they all run down.
As previously stated, our goal is to maximize the network lifetime of sensor nodes, which we define as either the time until any sensor node runs out of energy or the time until the last node in the network dies. Figure 11 and Figure 12 show the results of the death of the first node and last node, respectively. When they are sending data to different base station locations, the results still show that our optimal position of BS is better than other positions. These results show the importance of optimal base station position in the network for lifetime maximization.
Table 4 compares the ability of these three algorithms for solving energy consumption problems in wireless sensor networks. The algorithms are run ten times, and the parameters considered in the algorithms are the following: (Gen) is used to set how many generations to record information in the evolution process. The key value of (Eval) is a list, which is used to store the number of evaluations of the evolutionary algorithm. The key value of (f_opt) is a list, which stores the value of the objective function of the optimal individual of each generation of the population. The key value of (f_avg) is a list, which stores the average objective function value of all individuals in each generation of the population and the standard deviation, abbreviated as “f_std”, and the minimum and maximum of the function are also abbreviated as f_min and f_max.
The running time used after 150 generations for CECGA is 897 s, SGA is 32,488 s, and SEGA is 1224 s. The proposed algorithm produces statistically better results than the other algorithms. Furthermore, CECGA takes less time than other algorithms. As a result, CECGA can obtain more optimal solutions.

6. Conclusions and Future Work

This paper studied the base station location problem for a multi-hop clustering sensor network to conserve energy consumption for network lifetime maximization in WSN. The formulation of the first part of our work was to find the proper optimal position of the BS using CECGA to maximize the network lifetime of sensor nodes. The second part of the work is concerned with clustering, where the K-medoids clustering (KMC) algorithm is used to select optimal CHs and their cluster nodes. The last part of the work investigates the way nodes send data to their cluster heads, where they use multi-hop routing to reduce energy use among sensor nodes. The calculation of the BS’ position depends on the nodes’ initial energy, data rates, and the distance among nodes and the BS, respectively. The numerical experiments and simulated results showed that among algorithms that were compared, the crossover elitist conservation genetic algorithm (CECGA) is the best in terms of the best positioning of the BS station for energy conservation. Additionally, our tests have been estimated, and the results achieved dramatically boost the network’s lifespan, reduce energy consumption, and increase its stability. As a future task, by implementing smarter algorithms, the WSN architecture can be improved to make it more intellectual in terms of its organization.

Author Contributions

Conceptualization, S.M.; methodology, S.M.; software, S.M.; validation, S.M.; formal analysis, S.M.; investigation, A.U.; resources, S.M.; data curation, S.M.; writing—original draft preparation, S.M.; writing—review and editing, A.U.; visualization, S.M.; supervision, K.X.; project administration, S.M. and K.X.; funding acquisition, K.X. All authors have read and agreed to the published version of the manuscript.

Funding

Hebei Province Natural Science Foundation: No. E2021202179; Research and Development Project from Hebei Province: No. 21351803D.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Acknowledgments

The authors would like to thank Hebei University of Technology for its support. The authors are sincerely grateful to all the reviewers for the valuable comments.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

AoIArea of interest
BSBase station
CECGACrossover elitist conservation genetic algorithm
CHCluster head
dijDistance between sensor i and sensor j (or base station B)
SGASimple genetic algorithm
GMGeometric median
i, jNodes
KMCK-medoids clustering
LEACHLow energy adaptive clustering hierarchy
NNumber of sensor nodes
RData rate
SEGAStraighten elitist genetic algorithm
SNSensor node
TNetwork lifetime
Vij, ViBPower consumption coefficient for transmitting data from sensor i to sensor j and i to the base station
Wij, WiBData rate from node i to j and from i to base station
WSNWireless sensor network
XB, YBCoordinates of base station
αThe path-loss index
β1 and β2Constant coefficients in transmission power modeling
ρConstant coefficient
PiRate of energy consumption at sensor node i

References

  1. Lara-Cueva, R.A.; Gordillo, R.; Valencia, L.; Benitez, D.S. Determining the main CSMA parameters for adequate performance of WSN for real-time volcano monitoring system applications. IEEE Sens. J. 2016, 17, 1493–1502. [Google Scholar] [CrossRef]
  2. Rotariu, C.; Bozomitu, R.G.; Cehan, V.; Pasarica, A.; Costin, H. A wireless sensor network for remote monitoring of bioimpedance. In Proceedings of the 2015 38th International Spring Seminar on Electronics Technology (ISSE), Eger, Hungary, 6–10 May 2015; pp. 487–490. [Google Scholar]
  3. Mahamuni, C.V. A military surveillance system based on wireless sensor networks with extended coverage life. In Proceedings of the 2016 International Conference on Global Trends in Signal Processing, Information Computing and Communication (ICGTSPICC), Jalgaon, India, 22–24 December 2016; pp. 375–381. [Google Scholar]
  4. Zhong, S.; Zhong, H.; Huang, X.; Yang, P.; Shi, J.; Xie, L.; Wang, K. Security and Privacy for Next-Generation Wireless Networks; Springer: Berlin/Heidelberg, Germany, 2019; ISBN 303001150X. [Google Scholar]
  5. Yuan, L.N.; Chen, H.J.; Gong, J. ZigBee WSN applied in intelligent monitoring systems of agricultural environment. Appl. Mech. Mater. 2017, 873, 363–367. [Google Scholar] [CrossRef]
  6. Ramson, S.R.J.; Moni, D.J. Applications of wireless sensor networks—A survey. In Proceedings of the 2017 International Conference on Innovations in Electrical, Electronics, Instrumentation and Media Technology (ICEEIMT), Coimbatore, India, 3–4 February 2017; pp. 325–329. [Google Scholar]
  7. Pike, M.; Mustafa, N.M.; Towey, D.; Brusic, V. Sensor networks and data management in healthcare: Emerging technologies and new challenges. In Proceedings of the 2019 IEEE 43rd Annual Computer Software and Applications Conference (COMPSAC), Milwaukee, WI, USA, 15–19 July 2019; Volume 1, pp. 834–839. [Google Scholar]
  8. Tsai, C.-W.; Tsai, P.-W.; Pan, J.-S.; Chao, H.-C. Microsystems Metaheuristics for the deployment problem of WSN: A review. Microprocess. Microsyst. 2015, 39, 1305–1317. [Google Scholar] [CrossRef]
  9. Panag, T.S.; Dhillon, J.S. Maximal coverage hybrid search algorithm for deployment in wireless sensor networks. Wirel. Netw. 2019, 25, 637–652. [Google Scholar] [CrossRef]
  10. Saha, D.; Das, A. Coverage area maximization by heterogeneous sensor nodes with minimum displacement in mobile networks. In Proceedings of the 2015 IEEE International Conference on Advanced Networks and Telecommuncations Systems (ANTS), Kolkata, India, 15–18 December 2015; pp. 1–6. [Google Scholar]
  11. Karatas, M. Optimal deployment of heterogeneous sensor networks for a hybrid point and barrier coverage application. Comput. Netw. 2018, 132, 129–144. [Google Scholar] [CrossRef]
  12. Mohamed, S.M.; Hamza, H.S.; Saroit, I.A. Improving coverage and connectivity in mobile sensor networks using harmony search. In Proceedings of the 2014 12th International Symposium on Modeling and Optimization in Mobile, Ad Hoc, and Wireless Networks (WiOpt), Hammamet, Tunisia, 12–16 May 2014; pp. 99–104. [Google Scholar]
  13. Tomovic, S.; Radusinovic, I. Allocation algorithm for handling multiple applications in software-defined WSN. In Proceedings of the 2016 24th Telecommunications Forum (TELFOR), Belgrade, Serbia, 22–23 November 2016; pp. 1–4. [Google Scholar]
  14. Bao, X.; Yang, Y.; Qiu, X. Multi-task overlapping coalition formation mechanism in wireless sensor network. In Proceedings of the 2012 IEEE Network Operations and Management Symposium, Maui, HI, USA, 16–20 April 2012; pp. 635–638. [Google Scholar]
  15. Miao, Y.; Wang, Y.; Jing-Xuan, W. Hybrid particle swarm algorithm for minimum exposure path problem in heterogeneous wireless sensor network. Int. J. Wirel. Mob. Comput. 2015, 8, 74–81. [Google Scholar] [CrossRef]
  16. Tamandani, Y.K.; Bokhari, M.U.; Kord, M.Z. Computing geometric median to locate the sink node with the aim of extending the lifetime of wireless sensor networks. Egypt. Inform. J. 2017, 18, 21–27. [Google Scholar] [CrossRef] [Green Version]
  17. Gheisari, M.; Abbasi, A.A.; Sayari, Z.; Rizvi, Q.; Asheralieva, A.; Banu, S.; Awaysheh, F.M.; Shah, S.B.H.; Raza, K.A. A Survey on Clustering Algorithms in Wireless Sensor Networks: Challenges, Research, and Trends. In Proceedings of the 2020 International Computer Symposium (ICS), Tainan, Taiwan, 17–19 December 2020; pp. 294–299. [Google Scholar]
  18. Echoukairi, H.; Kada, A.; Bouragba, K.; Ouzzif, M. A novel centralized clustering approach based on k-means algorithm for wireless sensor network. In Proceedings of the 2017 Computing Conference, London, UK, 18–20 July 2017; pp. 1259–1262. [Google Scholar]
  19. Jan, B.; Farman, H.; Javed, H.; Montrucchio, B.; Khan, M.; Ali, S. Energy efficient hierarchical clustering approaches in wireless sensor networks: A survey. Wirel. Commun. Mob. Comput. 2017, 2017, 6457942. [Google Scholar] [CrossRef] [Green Version]
  20. Huang, J.; Hong, Y.; Zhao, Z.; Yuan, Y. An energy-efficient multi-hop routing protocol based on grid clustering for wireless sensor networks. Clust. Comput. 2017, 20, 3071–3083. [Google Scholar] [CrossRef]
  21. Gachhadar, A.; Acharya, O.N. K-means based energy aware clustering algorithm in wireless sensor network. Int. J. Sci. Eng. Res. 2014, 5, 156–161. [Google Scholar]
  22. Fogel, L.J.; Owens, A.J.; Walsh, M.J. Artificial intelligence through simulated evolution. Behav. Sci. 1966, 11, 253–272. [Google Scholar] [CrossRef] [PubMed]
  23. Schwefel, H.-P. Numerical Optimization of Computer Models; John Wiley & Sons, Inc.: Hoboken, NJ, USA, 1981; ISBN 0471099880. [Google Scholar]
  24. Ferentinos, K.P.; Tsiligiridis, T.A. Adaptive design optimization of wireless sensor networks using genetic algorithms. Comput. Netw. 2007, 51, 1031–1051. [Google Scholar] [CrossRef]
  25. Darwin, C.R. On the Origin of Species; John Murray: London, UK, 1859. [Google Scholar]
  26. Goldberg, D.E.; Holland, J.H. Genetic Algorithms and Machine Learning; Kluwer Academic Publishers: Dordrecht, The Netherlands, 1988. [Google Scholar]
  27. Mollanejad, A.; Khanli, L.M.; Zeynali, M. DBSR: Dynamic base station Repositioning using Genetic algorithm in wireless sensor network. In Proceedings of the 2010 Second International Conference on Computer Engineering and Applications, Bali, Indonesia, 19–21 March 2010; Volume 2, pp. 521–525. [Google Scholar]
  28. Holland, J.H. Adaptation in Natural and Artificial Systems: An Introductory Analysis with Applications to Biology, Control, and Artificial Intelligence; MIT Press: Cambridge, MA, USA, 1992; ISBN 0262581116. [Google Scholar]
  29. Jia, J.; Chen, J.; Chang, G.; Tan, Z. Energy efficient coverage control in wireless sensor networks based on multi-objective genetic algorithm. Comput. Math. Appl. 2009, 57, 1756–1766. [Google Scholar] [CrossRef] [Green Version]
  30. Chen, G.; Xin, Z.; Li, H.; Zhu, T.; Wang, M.; Liu, Y.; Wei, S. A greedy constructing tree algorithm for shortest path in perpetual wireless recharging wireless sensor network. J. Supercomput. 2019, 75, 5930–5945. [Google Scholar] [CrossRef]
  31. Kumari, M.; Kaur, G. A genetic algorithm based leach protocol for cluster head selection to enhance the network lifetime of wireless sensor network. ICTACT J. Commun. Technol. 2020, 11, 2182–2186. [Google Scholar]
  32. Tamandani, Y.K.; Bokhari, M.U. The impact of sink location on the performance, throughput and energy efficiency of the WSNs. In Proceedings of the 2015 4th International Conference on Reliability, Infocom Technologies and Optimization (ICRITO)(Trends and Future Directions), Noida, India, 2–4 September 2015; pp. 1–5. [Google Scholar]
  33. Efrat, A.; Har-Peled, S.; Mitchell, J.S.B. Approximation algorithms for two optimal location problems in sensor networks. In Proceedings of the 2nd International Conference on Broadband Networks, Boston, MA, USA, 7 October 2005; pp. 714–723. [Google Scholar]
  34. Luo, J.; Hubaux, J.-P. Joint mobility and routing for lifetime elongation in wireless sensor networks. In Proceedings of the IEEE 24th Annual Joint Conference of the IEEE Computer and Communications Societies, Miami, FL, USA, 13–17 March 2005; Volume 3, pp. 1735–1746. [Google Scholar]
  35. Koyi, O.N.; Yang, H.S.; Kwon, Y. Impact of base station location on wireless sensor networks. In Intelligent Systems in Cybernetics and Automation Theory; Springer: Cham, Switzerland, 2015; pp. 151–162. [Google Scholar]
  36. Li, H.; Dong, W.; Wang, Y.; Gao, Y.; Chen, C. Enhancing the Performance of 802.15. 4-Based Wireless Sensor Networks with NB-IoT. IEEE Internet Things J. 2020, 7, 3523–3534. [Google Scholar] [CrossRef]
  37. Shah, I.K.; Maity, T.; Dohare, Y.S. Weight Based Approach for Optimal Position of Base Station in Wireless Sensor Network. In Proceedings of the 2020 International Conference on Inventive Computation Technologies (ICICT), Coimbatore, India, 26–28 February 2020; pp. 734–738. [Google Scholar]
  38. Bogdanov, A.; Maneva, E.; Riesenfeld, S. Power-aware base station positioning for sensor networks. In Proceedings of the IEEE INFOCOM 2004, Hong Kong, China, 7–11 March 2004; Volume 1. [Google Scholar]
  39. Pinto, A.R.F.; Crepaldi, A.F.; Nagano, M.S. A Genetic Algorithm applied to pick sequencing for billing. J. Intell. Manuf. 2018, 29, 405–422. [Google Scholar] [CrossRef]
  40. Garey, M.R. A Guide to the Theory of NP-Completeness. Comput. Intractability 1979, 40, 41–42. [Google Scholar]
  41. Guariso, G.; Sangiorgio, M. Improving the Performance of Multiobjective Genetic Algorithms: An Elitism-Based Approach. Information 2020, 11, 587. [Google Scholar] [CrossRef]
  42. Chambers, L.D. The Practical Handbook of Genetic Algorithms: New Frontiers; CRC Press: Boca Raton, FL, USA, 2019; Volume 2, ISBN 1420050079. [Google Scholar]
  43. Cole, A.; Schachner, A.; Shiu, G. Searching the landscape of flux vacua with genetic algorithms. J. High Energy Phys. 2019, 2019, 45. [Google Scholar] [CrossRef] [Green Version]
  44. Zhong, J.; Hu, X.; Zhang, J.; Gu, M. Comparison of performance between different selection strategies on simple genetic algorithms. In Proceedings of the International Conference on Computational Intelligence for Modelling, Control and Automation and International Conference on Intelligent Agents, Web Technologies and Internet Commerce (CIMCA-IAWTIC’06), Vienna, Austria, 28–30 November 2005; Volume 2, pp. 1115–1121. [Google Scholar]
  45. Hamidouche, R.; Aliouat, Z.; Gueroui, A.M. Genetic algorithm for improving the lifetime and QoS of wireless sensor networks. Wirel. Pers. Commun. 2018, 101, 2313–2348. [Google Scholar] [CrossRef]
Figure 1. Network model.
Figure 1. Network model.
Electronics 10 02760 g001
Figure 2. Eight individuals of first-generation (the green sign means the current optimal solution).
Figure 2. Eight individuals of first-generation (the green sign means the current optimal solution).
Electronics 10 02760 g002
Figure 3. New individuals after CECGA (Red stars are preserved parents, green stars are the current optimal solution).
Figure 3. New individuals after CECGA (Red stars are preserved parents, green stars are the current optimal solution).
Electronics 10 02760 g003
Figure 4. Block diagram of CECGA.
Figure 4. Block diagram of CECGA.
Electronics 10 02760 g004
Figure 5. Path constructed with GA [45].
Figure 5. Path constructed with GA [45].
Electronics 10 02760 g005
Figure 6. K-medoids clusters in the field.
Figure 6. K-medoids clusters in the field.
Electronics 10 02760 g006
Figure 7. Optimal base station location using CECGA for 100 nodes with center (54,55).
Figure 7. Optimal base station location using CECGA for 100 nodes with center (54,55).
Electronics 10 02760 g007
Figure 8. Network lifetime performance.
Figure 8. Network lifetime performance.
Electronics 10 02760 g008
Figure 9. Total energy consumption (Different algorithms).
Figure 9. Total energy consumption (Different algorithms).
Electronics 10 02760 g009
Figure 10. Energy consumption for different locations.
Figure 10. Energy consumption for different locations.
Electronics 10 02760 g010
Figure 11. First node death.
Figure 11. First node death.
Electronics 10 02760 g011
Figure 12. Last node death.
Figure 12. Last node death.
Electronics 10 02760 g012
Table 1. Position and data rate of our 100-node network.
Table 1. Position and data rate of our 100-node network.
Node IndexLocation (m)Ri (Kb/s)Node IndexLocation (m)Ri (Kb/s)Node IndexLocation (m)Ri (Kb/s)Node IndexLocation (m)Ri (Kb/s)
1(78, 33)226(20, 34)351(93, 65)276(51, 16)5
2(25, 70)827(50, 70)552(11, 49)177(42, 90)3
3(17, 22)128(34, 34)353(3, 73)878(50, 44)3
4(3, 97)429(97, 51)954(44, 23)779(46, 45)3
5(96, 20)430(63, 33)855(12, 17)380(71, 65)9
6(81, 65)231(53, 91)756(61, 75)481(8, 6)5
7(96, 32)132(91, 60)657(73, 49)982(7, 93)1
8(86, 91)833(40, 77)558(31, 32)483(6, 20)4
9(4, 86)334(42, 65)459(12, 25)884(99, 45)8
10(84, 2)735(57, 62)160(8, 52)885(3, 55)6
11(49, 62)436(14, 7)261(7, 71)886(38, 73)6
12(92, 90)937(82, 24)862(4, 56)887(11, 70)6
13(35, 28)238(37, 82)163(12, 24)488(79, 39)4
14(40, 67)539(85, 97)764(92, 39)989(35, 38)5
15(31, 36)740(87, 93)565(86, 78)790(37, 73)6
16(48, 49)641(8, 82)966(21, 42)491(31, 78)6
17(30, 81)142(61, 15)567(97, 92)492(81, 51)8
18(37, 2)543(34, 53)568(89, 91)593(46, 67)9
19(27, 46)644(86, 61)669(44, 78)894(88, 96)4
20(47, 3)245(50, 29)870(54, 7)895(48, 22)7
21(2, 61)546(30, 71)471(99, 56)296(69, 8)9
22(85, 81)947(10, 57)372(95, 2)897(4, 13)7
23(35, 78)448(98, 12)873(48, 9)598(22, 23)9
24(26, 25)149(41, 71)274(89, 5)699(24, 97)3
25(99, 3)850(82, 66)875(75, 0)3100(89, 64)1
Table 2. Parameters Used.
Table 2. Parameters Used.
Simulation ParametersDescription about the Abbreviation
Nodes100
Area length and Width100 × 100 m
Eo0.5 J
RS different locationsProposed, GM [16], (50, 50), (20, 60), (30, 45),(50, 20)
Electricity quantity2.5 Ah
Maximum generation150
Mutation rate0.7
Crossover rate0.7
Maximum iteration1000
Dara rate Ri[1, 10] kb/s
β150 nJ/b
β20.0013 pJ/b/m4
α4
ρ50 nJ/b (m4)
Table 3. Lifetime performance.
Table 3. Lifetime performance.
AlgorithmLifetime Performance
SGA317.89
CECGA340.66
SEGA319.07
Different Locations Performances
CECGA (54, 55)340.66
GM [16] (22.62, 51.06)123.36
Center (50, 50)268.42
Location1 (20, 60)121.01
Location2 (30, 45)153.76
Location3 (50, 20)131.18
Table 4. The solution results from three algorithms under different generations.
Table 4. The solution results from three algorithms under different generations.
CECGASGASEGA
GenEvalf_optf_avgf_stdf_minf_maxEvalf_optf_avgf_stdf_minf_maxEvalf_optf_avgf_stdf_minf_max
0200.0015920.0009910.0001370.0007798230.00129856200.0015990.001060.0002310.0005381760.00145834200.0016110.001050.0001890.0004944230.0013418
204000.0015920.001180.0000130.0008038150.001526714200.0015990.001230.0002630.000391850.00156744200.0016110.001520.0002260.001505380.00155114
407800.0015880.00120.00001090.001530040.001531428200.0015990.001240.0002510.0006391050.00156748200.0016110.001550.0002510.0008137450.00158232
6011600.0015820.001160.00001030.0006512050.0015001812200.0015770.001260.0001850.0008456230.001576812200.0015930.001560.000260.001549340.00158232
8015400.0015720.001180.000007330.0006805880.001489416200.0015770.001220.000210.0007979630.001576816200.0015820.001570.0002730.001561690.00158232
10019200.0015720.001290.000007280.0008884080.0015243920200.0015770.00130.0001170.00106250.0015934520200.0015820.001570.0001860.001561690.00158232
12023000.0013670.001280.000006430.0009488410.0015864924200.0015670.001310.0002590.0007669731.6112424200.0015820.001580.0002060.00156740.00158784
14026800.0012510.001190.000003590.0008906430.0014698528200.0015670.001240.0001640.0008672190.0016112428200.0015670.001580.0002360.001579190.00159205
15028510.0000120.001250.000003280.0008229220.0015150930000.0010580.00130.0001680.000924230.0016112430000.0010420.001580.0002490.001582320.00159205
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Mukase, S.; Xia, K.; Umar, A. Optimal Base Station Location for Network Lifetime Maximization in Wireless Sensor Network. Electronics 2021, 10, 2760. https://doi.org/10.3390/electronics10222760

AMA Style

Mukase S, Xia K, Umar A. Optimal Base Station Location for Network Lifetime Maximization in Wireless Sensor Network. Electronics. 2021; 10(22):2760. https://doi.org/10.3390/electronics10222760

Chicago/Turabian Style

Mukase, Sandrine, Kewen Xia, and Abubakar Umar. 2021. "Optimal Base Station Location for Network Lifetime Maximization in Wireless Sensor Network" Electronics 10, no. 22: 2760. https://doi.org/10.3390/electronics10222760

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop