Next Article in Journal
Optical Fiber Based Mach-Zehnder Interferometer for APES Detection
Previous Article in Journal
EXecutive-Functions Innovative Tool (EXIT 360°): A Usability and User Experience Study of an Original 360°-Based Assessment Instrument
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Coverage Optimization Method for WSNs Based on the Improved Weed Algorithm

School of Computer and Communication Engineering, Northeastern University at Qinhuangdao, Qinhuangdao 066004, China
*
Author to whom correspondence should be addressed.
Sensors 2021, 21(17), 5869; https://doi.org/10.3390/s21175869
Submission received: 17 August 2021 / Revised: 29 August 2021 / Accepted: 30 August 2021 / Published: 31 August 2021
(This article belongs to the Section Sensor Networks)

Abstract

:
Wireless sensor networks (WSNs) is a multi-hop wireless network composed of a group of static or mobile sensor nodes in the form of self-organization. Uneven distribution of nodes often leads to the problem of over coverage and incomplete coverage of monitoring areas. To solve this problem, this paper establishes a network coverage optimization model and proposes a coverage optimization method based on an improved hybrid strategy weed algorithm (LRDE_IWO). The improvement of the weed algorithm includes three steps. Firstly, the standard deviation of normal distribution based on the tangent function is used as the seed’s new step size in the seed diffusion stage to balance the ability of the global search and local search of weed algorithm. Secondly, to avoid the problem of premature convergence, a disturbance mechanism combining enhanced Levy flight and the adaptive random walk strategy is proposed in the process of seed breeding. Finally, in competition of invasive weed stage, the differential evolution strategy is introduced to optimize the competition operation process and speed up convergence. The improved weed algorithm is applied to coverage optimization of WSNs. The simulation results show that the coverage rate of LRDE_IWO is increased by about 1% to 6% compared with the original invade weed algorithm (IWO) and the differential evolution invasive weed optimization algorithm (DE_IWO), and the coverage rate of the LRDE_IWO algorithm is increased by 4.10%, 2.73% and 1.19%, respectively, compared with the antlion optimization algorithm (ALO), the fruit fly optimization algorithm (FOA) and the gauss mutation weed algorithm (IIWO). The results prove the superiority and validity of the improved weed algorithm for coverage optimization of wireless sensor networks.

1. Introduction

With the development of wireless communication technology, wireless sensor networks (WSNs) have been widely used in many fields of social life because of its advantages of low-power consumption, low cost, wide coverage and diversified integration functions [1]. WSNs is an intelligent self-organizing network composed of multiple sensor nodes with limited computing, storage and wireless communication capabilities. In order to achieve full coverage of the monitoring area, a large number of nodes are usually deployed, which is not only costly but also can lead to communication conflicts. Therefore, how to optimize the deployment of nodes, that is, to cover a larger area with fewer nodes, has become a hotspot in the research of WSNs [2,3].
In general, there are two types of network coverage optimization methods. Firstly, there is coverage optimization based on geometric methods. For example, the geometric coverage scheme based on arc area algorithm (GCAS) proposed in Wang et al. [4] is optimized by combining genetic algorithms with geometric relationships between nodes; although the GCAS strategy has high coverage and high robustness, it still cannot achieve 100% coverage. Mu et al. [5] proposed a bee colony algorithm optimized with Voronoi (VABC) to guide the deployment of mobile nodes, which improves the coverage ratio of the network and achieves the optimal coverage of the network. However, VABC has a “premature” problem. Secondly, there is the application of the intelligent optimization algorithm to complete dynamic coverage optimization of node deployment. In recent years, some researchers have used swarm intelligence algorithms to solve the problem of WSN coverage, for example, particle swarm optimization algorithm (PSO), whale optimization algorithm (WOA), gray wolf optimization algorithm (GWO), artificial fish swarm algorithm (AFSA), etc. Due to the advantages of few parameter settings, simple calculation and easy-to-parallel processing, they are applied in WSN coverage optimization [6,7,8,9]. Among them, the ant lion algorithm (ALO) is applied in WSN coverage optimization in [10], which acquires good results, but is prone to fall into local optimum problems. In [11], the improved strategy of the fruit fly optimization algorithm (FOA) is introduced, which greatly improves the network coverage. However, it has the problem of unwanted rapid convergence that results in low coverage accuracy. One paper [12] proposed an invasive weed algorithm with Gauss mutation (IIWO) for WSN coverage optimization. Compared with the original weed algorithm, this algorithm can enhance the diversity of population and improve network coverage but easily fall in the “early-maturing phenomenon”. An improved grey wolf optimization algorithm is presented in [13], which has improved WSN coverage optimization application and network coverage. However, the improved algorithm converges slowly in the early stage that leads to unstable coverage. In [14], by introducing hyperbolic sine regulatory factor, dynamic cosine wave weight coefficient and mutation strategy based on Laplacian and Gaussian distribution, a higher network coverage is obtained. Moreover, the problem of WSN coverage can be solved by also using Cluster-Heads (CHs) that relocate themselves inside clusters in such a way that the total energy consumption in the network is reduced and the network lifetime is extended, (e.g., [15]). In this paper, the problem of WSN coverage refers to analyzing the deployment location of the optimized nodes through simulation before deploying the nodes, and finally deploying each node manually or by using robots. Therefore, this paper does not consider the energy consumption of the nodes.
The invasive weed optimization algorithm (IWO) is a new meta-heuristic optimization algorithm proposed by Mehrabian AR, which is widely used in multi-objective optimization problems [16], but rarely applied in WSN node deployment optimization. Like other algorithms, the basic IWO algorithm is prone to premature convergence and low convergence accuracy. One paper [12] has achieved good results in optimizing WSN coverage. Therefore, inspired by [12], this paper proposes an improved weed algorithm based on a hybrid strategy (LRDE_IWO), to solve the problem of slow convergence speed of the IWO algorithm and to ensure it easily falls into the local optimum, it can significantly improve the coverage rate of WSN. The contributions of this paper are mainly reflected in the following three aspects:
  • A standard deviation of the tangent function is designed to replace the original standard deviation. The value in the early iteration changes relatively quickly, which is conductive to a global search. In the latter part of the iteration, the value changes relatively slowly and the step size of the weed movement is small, which is beneficial to a local search. Obviously, this strategy can balance the global search and local development ability of the algorithm, and the convergence speed of the algorithm is improved.
  • In this paper, the diversity of the population is increased by adding the disturbance mechanism of enhanced Levy flight and the adaptive random walk strategy.
  • In order to further improve the convergence ability of the algorithm and avoid local optimization, this paper introduces the differential evolution strategy. Selecting a certain number of excellent weed seeds for differential evolution can save more elite individual weeds and improve the coverage rate of WSN.
The standard deviation of the tangent function strategy is utilized to improve the convergence speed of the algorithm, the disturbance strategy of enhanced Levy flight and the adaptive random walk strategy is used to expand the diversity of the weeds and the differential evolution strategy is used to enhance the ability of the algorithm to jump out of the local optimum.
The rest of this paper is organized as follows. The section “WSN Node Coverage Model” builds the WSN coverage model. The sections “Standard Invasive Weed Algorithm” and “Improved Weed Algorithm Based on Hybrid Strategy” describe the improved weed algorithm in detail. In the section “WSN Coverage Optimization”, the steps and algorithm flow of how the improved weed algorithm is applied to WSN node deployment optimization are described in detail. The “Simulation and Analysis” section discusses the experimental results of the coverage optimization method (LRDE_IWO) compared with other algorithms. The work of this paper is summarized in the “Conclusion” section.

2. WSN Coverage Model

There are mainly two types of WSN coverage models [17]: the Boolean coverage model and the Probability coverage model. In this paper, we use the same probabilistic coverage model as [18].
Assume that N sensor nodes randomly deployed in WSN are isomorphic, and the sensing radius and communication radius are R s and R c , respectively. To ensure the connectivity of the WSN, the communication radius of the node is set to be greater or equal to twice the sensing radius of the node. Suppose that the set of wireless sensor nodes is V = { v 1 , v 2 , , v N } , the coordinates of vi is ( x i , y i ) . For the convenience of calculation, the rectangular area is discretized as m × n grid points to be covered, while the set of grid points is u j = ( x j , y j ) , j { 1 , 2 , , m × n } .
If the distance between the grid point u j and one of the nodes is less than or equal to the sensing radius R s , the grid point is considered completely covered by WSN. The distance between node v i and grid point u j is defined as Formula (1):
d ( v i , u j ) = ( x i x j ) 2 + ( y i y j ) 2
The probability p ( v i , u j ) that the grid point u j is monitored by the node v i is defined as Formula (2):
p ( v i , u j ) = { 0 , R s d ( v i , u j ) exp ( Δ ) , R s R e < d ( v i , u j ) < R s 1 , R s R e d ( v i , u j )
where Δ = λ d ( v i , u j ) R s R e R s d ( v i , u j ) , R e is the sensing error radius and λ is the sensing attenuation coefficient.
Then, the joint sensing probability of all sensor nodes to grid point u j is described as Formula (3):
p ( V , u j ) = 1 i = 1 N [ 1 p ( v i , u j ) ]
where V is the set of all sensor nodes within the monitoring region. The rate of coverage is defined as the ratio that the total perceived probability of grid points covered by the node set V to the total number of grid points in the area. The coverage rate R c o v can be expressed as Formula (4):
R c o v = j = 1 m × n p ( V , u j ) m × n
From Formula (4), we can see that the problem of coverage is transformed into finding the optimal solution of R c o v . In our coverage optimization method, we applied the improved weed algorithm to obtain the optimal value of R c o v .
Notes:
1. In the Boolean covering model, p = 1 when the grid points are covered, otherwise p = 0 ; in the probability coverage model, p = 1 when the grid points are covered, otherwise p is a value between 0 and 1 or 0, which depends on the formula of the probability model.
2. The reason why the area coverage is calculated by dividing the grid points is that it is difficult to implement in MATLAB directly according to the ratio of the area covered to the total area of the monitoring region. Thus, this strategy is adopted in this paper, i.e., dividing the grid points and calculating the distance between each node and the grid point. If the distance is less than the perceived radius, the grid point is covered, otherwise, coverage probability is calculated according to the formula for probability coverage model. Finally, the area coverage is the ratio of the sum of coverage probabilities of all grid points of the total number of grid points.

3. Standard Invasive Weed Algorithm

The invasive weed algorithm simulates the basic process of weed diffusion, growth, reproduction and competitive extinction in the natural environment. The algorithm mainly consists of five steps, namely population initialization, growth and reproduction, spatial diffusion, competitive survival and stop criteria [19]. In the coverage optimization method, Formula (4) acts as an objective function value. Each individual weed is as an objective function value, namely the coverage of WSN. The specific steps are as follows.
(1) Initialize the population. The position of the i-th weed is randomly generated by the following Formula (5):
X i = X L + rand ( 0 , 1 ) ( X U X L )
where X i = ( x i 1 , x i 2 , , x i D ) ( i { 1 , 2 , , P i n i } ) , D is the dimension of the solution vector, P i n i is the initial population size and X U and X L are the upper and lower bounds of the value of X i , respectively.
(2) Growth and reproduction. Calculate the fitness value f ( X i ) for each individual weed, that is, the coverage of WSNs. Each individual generates more seeds based on the maximum and minimum fitness values f max and f min in the population, and the individuals with the better population (i.e., the better fitness values) produce more seeds. The number of seeds produced by each individual can be calculated by Formula (6):
S = S min + f ( X i ) f min f max f min ( S max S min )
where S min and S max are the minimum and maximum number of seeds, respectively, and shows rounding down.
(3) Spatial diffusion. Seeds produced by weeds are randomly distributed in the neighborhood of parental individual in the form of normal distribution N ( 0 , σ 2 ) . In the evolution of the algorithm, the standard deviation is calculated by Formula (7):
σ t = σ f i n a l + ( T t T ) w ( σ i n i σ f i n a l )
where σ t is the standard deviation for the t-th iteration, σ i n i and σ f i n a l is the initial and final standard deviation for sowing seeds, respectively, w is a non-linear regulatory factor with a general value of w = 3 and T is the maximum number of iterations. With the number of iterations increasing, seeds are gradually distributed around the paternal individuals, which makes the transition from global exploration to local development to improve the algorithm’s search speed.
R-selection means “live fast, reproduce quick, die young” and K-selection means “live slow, reproduce slow, die old” [20]. Formula 6 is the stage of weed growth and reproduction, focusing on R-selection; Formula 7 is the seed diffusion stage, focusing on K-selection. The physical meaning of Formula 6 and Formula 7 reflects the transformation of weeds from R-selection to K-selection.
(4) Competitive survival. After several iterations, when the number of populations exceeds the maximum population size P max , all individuals are sorted according to the fitness values, excluding those with poor fitness and retaining the rest; that is, the algorithm first reproduces rapidly through the weeds, occupying the living space, and then keeps the more competitive weeds to continue the spatial search.
(5) Stop criteria. Repeat steps (2) to (4) to record the individuals with the best fitness value in each generation until the maximum number of iterations T is reached, the algorithm stops and the global optimal solution is output.

4. Improved Invasive Weed Algorithm Based on the Hybrid Strategy

4.1. Standard Deviation Strategy of Normal Distribution Based on the Tangent Function

In the weed algorithm’s diffusion stage, the algorithm’s convergence speed and solution accuracy are closely related to the size of the non-linear adjustment factor w . When w is larger, the algorithm converges quickly but the solution accuracy is low, and when w is smaller, the solution accuracy is high but convergence is slow, and it is easy to fall into the local optimum. Therefore, inspired by [21], the original standard deviation formula is transformed by the tangent function. The following Formula (8) is derived from the features of the tangent function:
σ = tan ( 0.875 × T t T ) × ( σ i n i σ f i n a l ) + σ f i n a l
In Figure 1, σ is nonlinearly decreasing from 0.6 to 0. The value of σ in the early iteration changes relatively quickly, which is conductive to global search. In the latter part of the iteration, the value of changes relatively slowly and the step size of weed movement is small, which is beneficial to local search. Obviously, this strategy can balance the global search and local development ability of the algorithm, and the convergence speed of the algorithm is improved.

4.2. Enhanced Levy Flight and the Adaptive Random Walk Strategy

In the stage of seed breeding, in order to avoid the algorithm falling into the local optimum, all individual weeds are selected after step (3), and the enhanced Levy flight or adaptive random walk strategy is used to mutate them with a certain probability. Then, the individuals with better fitness values are greedily selected as the current individual weeds. The Levy flight strategy is used for global exploration, so that individuals are widely distributed in the search space to improve the ability of global optimization. The random walk strategy is used to optimize the individual weeds in a concentrated area to improve the local search ability [22].
Although the basic Levy flight mechanism increases the global search ability of the algorithm in the optimization process, it also has the problem of falling into the local optimum. An enhanced Levy flight strategy with adaptive step factor α is proposed, which changes step α from a fixed value to a dynamic step factor that changes with the number of iterations. The formula for calculating the dynamic step factor α is as follows:
α ( t ) = t T sinh ( 1 t T ) R
where t is the current number of iterations, T is the maximum number of iterations and R is the tune parameter. After several experiments, the tune parameter R = 3.83 can meet the α ( t ) [ 0 , 1 ] condition and enhance Levy flight to find the optimal value [23]. Figure 2 shows a change rate of factor α with iterations.
Levy flight [24] obeys the Levy distribution. The mathematical model of the mutated Levy flight mechanism is shown in Formulas (11) and (12), and Formula (10) is the position updating formula:
x i t + 1 = x i t + l L e v y ( λ )
where x i t denotes the current position of individual weeds, x i t + 1 denotes the position of the next generation of individual weeds, denotes point-to-point multiplication, l represents the weight of the control step and l = α ( t ) ( x i t x b e s t ) , where x b e s t is the current optimal location, and L e v y ( λ ) represents a function that obeys the Levy distribution and satisfies L e v y ~ u = t λ , 1 < λ 3 . L e v y ( λ ) can be calculated by Formula (11):
L e v y ( λ ) = φ × μ | ν | 1 λ
φ can be calculated with Formula (12):
φ = [ Γ ( 1 + λ ) × sin ( π × λ 2 ) Γ ( 1 + λ 2 ) × λ × 2 λ 1 2 ] 1 λ
where μ and ν follow normal distribution, λ is 1.5. The formulas are as follows:
μ ~ N ( 0 , σ μ 2 ) , ν ~ N ( 0 , σ ν 2 )
σ μ = [ Γ ( 1 + λ ) s i n ( π λ 2 ) λ Γ ( λ + 1 2 ) 2 λ 1 2 ] 1 λ , σ ν = 1
As shown in Figure 2, the Levy global search from subspace to global solution space is achieved by introducing a dynamic adjustment of the search step so that the change of the step factor is proportional to the number of iterations in the first half of the algorithm. At the later stage of the algorithm, the change of step factor gradually decreases, which leads to the weakening of global search and the enhancement of local development capability. This method strengthens Levy flight mechanism’s search for solution space and effectively balances the ability of global search and local development.
The random walk algorithm uses mixed variation and crossover to produce new solutions, which can enhance the diversity of the population, avoid the attraction of local optimum to some extent and improve the local search ability of the algorithm. Based on the improvement of random walk, an adaptive step size random walk strategy is proposed. The specific calculation is shown by Formula (15):
x i t + 1 = x i t + ε ( t ) ( x j ( t ) x k ( t ) ) ε ( t ) = rand ( 0 , 1 ) [ 2 t / ( T 1 ) ]
where x j t and x k t are the positions of two random individuals in the t-th iteration and rand ( 0 , 1 ) is a random number uniformly distributed among ( 0 , 1 ) . Figure 3 shows the comparison of the simulation experiments of enhanced Levy flight and adaptive random walk strategy with 1000 iterations. It can be seen that enhanced Levy flight has a larger search range because of the special walking mode, which is more conducive to the global search of the optimization algorithm; the adaptive random walk strategy has a relatively concentrated search range, which is more conductive to local optimization in the development stage.
Although the above disturbance strategy can update the position, it cannot guarantee that the new solution is better than the original solution. Therefore, the greedy selection mechanism is used to compare the fitness of the original solution and the new solution to retain the better solution:
x i t = { x i t , f ( x i t ) > f ( x i t + 1 ) x i t + 1 , f ( x i t ) < f ( x i t + 1 )

4.3. Differential Revolution Strategy

Differential evolution algorithm (DE) is a swarm intelligence optimization algorithm proposed by Storn and Price in 1995 [25]. It uses the differential information among individuals to disturb the individual vector, and evolves better offspring through mutation, crossover and selection [26]. In the stage of seed competitive survival, the differential evolution strategy is introduced to mutate individuals, and then the greedy selection principle is used to update the current individual position. In order to speed up the operation time of the algorithm, the first 40% of the optimal individuals are selected for differential evolution, and the process is described below.
(1) Differential mutation operation. Randomly select three different individuals x r 1 t , x r 2 t , x r 3 t from the parent (t iteration) and generate a new mutant individual based on the following Formula (17):
v i t = x r 3 t + F ( x r 1 t x r 2 t )
where t is the current generation and the scaling factor F is a constant between [0,2], F = 0.5 .
(2) Crossover operation. Crossover is a binomial hybridization between the mutant v i t and the parent x i t in the differential mutation operation to produce the test individual u i t , in order to enhance the diversity of the population. The process is calculated as Formula (18):
u i , j t = { v i , j t , rand ( 0 , 1 ) C R   o r   j = j r a n d x i , j t ,    o t h e r w i s e
where j { 1 , 2 , , D } , D is the dimension of the individual vector, j r a n d is a random integer between [ 1 , D ] and C R is the crossover probability.
(3) Selection operation. The selection operation of DE algorithm is a sort of elite screening mechanism. By using the greedy principle and calculating the fitness values of the target vector and the test vector, the individuals with better fitness values are selected as the individuals of the next generation population:
x i t + 1 = { u i t , f ( u i t ) f ( x i t ) x i t , f ( u i t ) < f ( x i t )

4.4. LRDE_IWO Algorithm Pseudo Code

In this paper, the weed algorithm’s initial population size is equal to the maximum population size, that is | P i n i | = | P max | = N . The specific process is shown in Algorithm 1.
Algorithm 1 LRDE_IWO algorithm
Input: Population size N , the maximum number of iterations T , the exploration iteration ratio φ and other parameters.
Output: Global optimal solution g b e s t .
   1. for t = 1 to T do
   2. Calculate the maximum fitness value of the population
   f max and minimum fitness value f min
   3. The standard deviation of this iteration is calculated
       according to Equation (8)
   4. for each individual weed do
   5. Determine the number of seeds produced by each
       weed according to Equation (6)
   6. Seeds produced by random allocation
   7. The fitness of seeds was calculated
   8.  if   r a n d < 0.5 0.5 t / ( φ T )   then
   9. Update the individual position according to
    Equation (10)
  10. else
  11. Update the individual position according to
        Equation (15)
  12. end if
  13. Greedily select the current optimal individual
       according to the fitness value
  14. end for
  15. The populations were merged and sorted by fitness
       value
  16. The top 40% of the excellent individuals were selected
       for differential evolution according to Formulas (16)–(18)
  17. Greedy selection of the above individuals according to
       fitness values
  18. Update global optimal solution g b e s t
end for

4.5. Algorithm Complexity Analysis

Suppose m is the maximum number of iterations of the algorithm, n is the population size, d is the dimension of the optimization problem and fmin and fmax are the minimum and maximum number of the seeds, respectively. The LRDE_IWO algorithm first initializes the population, and its time complexity is O(nd). Firstly, the fitness is calculated according to the position of the weed and disturbance strategy, while the time complexity is O(n). Then, the seeds are created. The time complexity is O(n(fmaxfmin)). Secondly, the weeds are sorted in ascending order according to the value of the fitness. The time complexity is O(nlogn). Finally, the position of the weed population is updated and selected according to the differential revolution strategy, and the time complexity is O(n). Thus, the total time complexity is O(m(nd + n + n(fmaxfmin) + nlogn + n)), that is O(mn). Compared to IWO, LRDE_IWO adds mutation steps, but still belongs to the operation of weed update location, without adding additional time complexity. Thus, the total time complexity of LRDE_IWO is the same as that of IWO.

5. WSN Coverage Optimization

The target of WSN coverage optimization based on the LRDE_IWO algorithm is as follows. A certain number of sensor nodes are used to optimize the location where they will be deployed, in order to maximize the coverage of the target monitoring area. In other words, the optimal locations of these nodes are obtained to maximize R cov . The coverage optimization problem is abstracted as a high-dimensional vector optimization problem with R cov as the objective function. The process of node location optimization in coverage optimization problem is abstracted as the behaviours of weed cloning, occupation, growth and reproduction, and the optimal solution is to deploy the target location of each node. In the algorithm, each individual weed represents a coverage distribution. If the nodes’ number is N , the individual dimension is 2 N , in which 2i-1-th and 2i-th dimension values represent the abscissa and ordinate of the node, respectively. The specific algorithm steps are as follows.
Step 1: Input nodes’ number V , sensing radius Rs, area side length L , etc., and the population size N of the algorithm is set to 30 and the maximum iteration number T is 300.
Step 2: Random initialization of the population position of LRDE_IWO.
Step 3: Using coverage R cov as the objective function to calculate individual fitness values and record global optimal solution g b e s t .
Step 4: Calculate the improved standard deviation based on Equation (8) and the number of seeds produced based on Equation (6) by each individual.
Step 5: Select either enhanced Levy flight or the adaptive random walk strategy to mutate each individual according to Equation (10) or Equation (15). Then, greedily select an individual with higher fitness values than the current individual.
Step 6: Disturbance updates using the differential evolution of Equations (16)–(18) for the position of the first 40% of the best individuals. Compared with the original position, the better position is retained; otherwise, the disturbed position is discarded.
Step 7: Update global solution g b e s t .
Step 8: Determine whether the algorithm has reached the maximum number of iterations, and if so, outputs the global optimal solution, that is, the optimal coverage and the location coordinates of the corresponding node deployment. Otherwise, skip to Step 3 for the next iteration.
The flowchart of the LRDE_IWO algorithm applied to the coverage optimization of WSN is shown in Chart 1 below.

6. Simulation Experiments and Analysis

6.1. Algorithmic Performance Indicators

We assume that the boundary is outside the middle square area of [ 0.1 L , 0.9 L ] × [ 0.1 L , 0.9 L ] , where L is the side length of the monitoring area. The boundary coverage and area coverage are calculated in the same way, the main difference being that the area in which the grid points are divided is different, the area coverage is divided into grid points within the entire monitoring area and the boundary coverage is divided into grid points within the boundary area.
Notes:
1. The area coverage is the coverage of all nodes within the monitoring range; the boundary coverage is the coverage of all nodes in the boundary range.
2. Because the coverage hole often occurs at the edge of the region, this paper proposes the concept of boundary coverage, that is, assuming that the small area outside the square area of [ 0.1 L , 0.9 L ] × [ 0.1 L , 0.9 L ] is defined as the boundary range, and the boundary coverage is calculated according to the probability model within this range, so as to quantify the coverage effect of the regional boundary.

6.2. Experimental Environment and Parameter Setting

In order to verify the performance of WSN coverage optimization method with the LRDE_IWO algorithm, two experiments were performed. Experiment 1 compares the LRDE_IWO algorithm with DE_IWO [27] and the original IWO algorithm. Experiment 2 compares the coverage effect of LRDE_IWO with ALO, FOA and IIWO. In the experiments, the parameters are set as the same as [10,11,12]. The experiment is carried out using a computer with an Intel core i7 dual-core CPU, clocked at 3.6 GHz, 8 GB of memory, with Windows 10 environment and using the experimental simulation software in MATLAB 2018a.
In this paper, the parameters values are as follows. In the WSN coverage model, R c = 2 R s , R e = 0.1 R c , λ = 0.1 . In the LRDE_IWO algorithm, the minimum and maximum number of seeds S min = 0 and S max = 5 , the initial and final standard deviation σ i n i = 0.5 and σ f i n a l = 0.001 and the exploration iteration ratio φ = 0.95 .

6.3. Experimental Results

6.3.1. Compared with the Other Algorithms Based on IWO

The IWO algorithm, DE_IWO algorithm and LRDE_IWO algorithm are simulated. The algorithms were run 20 times independently, with 300 iterations each time. The experimental parameter setting (unit: m) is shown in Table 1.
The experimental data are shown in Table 2, Table 3 and Table 4. The “cr” in all the following tables represent the coverage rate.
From Table 2, Table 3 and Table 4, it can be seen that the optimized coverage rate of the LRDE_IWO algorithm is better than that of DE_IWO and IWO, and the standard deviation is smaller, which indicates that the optimized result of LRDE_IWO algorithm can be stably maintained near the average coverage rate. Taking the setting in Table 2 as an example, Figure 4 shows the optimization iteration curve of the three algorithms. From this figure, it can be concluded that the coverage rate of each generation of LRDE_IWO algorithm is higher than the other two algorithms. When other algorithms converge, LRDE_IWO can continue to search for optimization. It indicates that LRDE_IWO algorithm can jump out of the local optimal solution and improve the coverage accuracy.
In order to explore the influence of the number of sensor nodes on the coverage rate, a two-dimensional plane with 50 m × 50 m monitoring area is set, and its sensing radius is R s = 5 m. Figure 5 shows the tendency of coverage with the number of nodes under different algorithms, in which (a) shows that the bar chart of coverage with nodes’ number, and (b) shows that the line chart of coverage with nodes’ number.
As shown from Figure 5, when the number of nodes is determined, the coverage rate of the LRDE_IWO algorithm is always better than other algorithms, and reaches 100% when there are 50 nodes. The other two algorithms barely approach or reach 100% coverage when there are 60 nodes. That shows that the LRDE_IWO algorithm can effectively coordinate the global exploration and local development ability of the algorithm, and thus, improve the effective coverage rate of the WSN nodes.
Taking the setting in Table 2 as an example, the average boundary coverage of LRDE_IWO, DE_IWO and IWO are 95.64%, 93.67% and 93.16%, respectively. This is because the three strategies of LRDE_IWO can effectively balance the ability of global search and local development and improve the probability of jumping out of local optimum to reduce the coverage blind area quickly.

6.3.2. Compared with the Coverage Optimization Algorithms Based on ALO, FOA and IIWO

(1) Compared with the Coverage Optimization Algorithm Based on ALO

The experimental parameters are set as follows: the monitoring area is a two-dimensional plane of 50 m × 50 m, which is discretized into 51 × 51 grid points, the number of sensor nodes is N = 40, the sensing radius is R s = 5 m and the communication radius is R c = 10 m, and it runs 20 times independently with 300 iterations each time. Figure 6 shows the iteration curve of the ALO algorithm and LRDE_IWO algorithm in coverage optimization, Figure 7 shows the node deployment diagram after optimization and Table 5 shows the comparison of the ALO and LRDE_IWO optimization coverage results.
It can be seen from Table 5 that after node deployment optimizations for 20 times in this area, the average, best and worst coverage rate obtained by LRDE_IWO has increased by 4.10%, 2.51% and 4.50%, respectively, compared with the ALO algorithm. Moreover, the standard deviation of the coverage is relatively smaller, which indicates that the optimized coverage rate can be maintained at more than 96.43%. It can be seen from Figure 6 that the algorithm has faster convergence speed and higher coverage accuracy than the ALO algorithm. It can be seen from Figure 7 that the LRDE_IWO algorithm achieves approximately complete coverage of the area.
It is obvious from Figure 7 that (b) covers the boundary more closely than (a). The simulation results show that the boundary average coverage of (b) is 96.73%, while that of (a) is 85.07%. This is because the improved algorithm can balance the global search and local search well, and can jump out of the local optimum.

(2) Compared with the Coverage Optimization Algorithm Based on FOA

The experimental parameters are set as follows: the monitored area is a two-dimensional plane of 100 m × 100 m, which is discretized into 101 × 101 grid points, a number of sensor nodes of N = 35 , a sensing radius of R s = 10 m, a communication radius of R c = 20 m and a maximum iteration of 300. Figure 8 shows the iteration curve and Figure 9 shows that the optimized node deployment diagram. Table 6 shows the comparison of the FOA and LRDE_IWO optimal coverage results.
As shown in Table 6, the optimization results of LRDE_IWO are 2.73% higher than the FOA algorithm. From Figure 8, it can be seen that the algorithm converges faster and has a higher coverage accuracy than the FOA algorithm. Figure 9 shows that LRDE_IWO effectively reduces the coverage blind area. Experiments show on average 35 nodes are required for the FOA algorithm, if coverage rate reaches 90.82%, while Table 6 shows that when 35 nodes are deployed, the coverage rate of LRDE_IWO can reach 93.55%. The optimal distribution of the corresponding nodes is shown in Figure 9b.
Through many experiments, LRDE_IWO can achieve 90.82% coverage rate by deploying only 32 nodes in this area. It saves 8.5% sensor nodes compared with the FOA algorithm and makes the optimal distribution of nodes more even.
The simulation results show that the boundary coverage of LRDE_IWO is 91.64%, and that of FOA is 86.25% with 35 nodes deployed. This shows that the coverage of LRDE_IWO is wider than that of FOA, which can effectively reduce the impact of the coverage blind area.

(3) Compared with the Coverage Optimization Algorithm Based on IIWO

The experimental parameters are set as follows: the monitored area is a two-dimensional plane of 20 m × 20 m, which is discretized into 21 × 21 grid points, a number of sensor nodes of N = 24 , a sensing radius of R s = 2.5 m, a communication radius of R c = 5 m and run independently 20 times with 300 iterations each. Figure 10 shows the iteration curve of the IIWO and LRDE_IWO algorithms. Figure 11 shows the optimized node deployment, and Table 7 shows the comparison of the optimal coverage results of IIWO and LRDE_IWO.
As can be seen from Table 7, after 20 node deployment optimizations by LRDE_IWO in this area, the average, best and worst coverage values obtained by LRDE_IWO are 1.19%, 1.36% and 1.81% higher than IIWO algorithm, respectively, and the standard deviation of the coverage is relatively smaller. This indicates that the optimum coverage of the LRDE_IWO algorithm can be more stable than 94.33%.
The experiments show that the LRDE_IWO can achieve a 94.79% coverage rate by deploying 23 sensor nodes in the area. It saves 4.1% sensor nodes compared with the IIWO algorithm.
The simulation results show that the average boundary coverage of LRDE_IWO is 94.01% and that of IIWO is 91.84%. This shows that the coverage effect of LRDE_IWO is better and more stable than that of IIWO, which is the key to reduce the coverage blind area.

7. Conclusions

Node deployment is an important issue in the research field of wireless sensor network. A hybrid strategy-based improved weed algorithm (LRDE_IWO) is proposed to optimize the coverage of sensor nodes based on the invading weed algorithm. The algorithm uses the normal distribution standard deviation of the tangent function as a new step search method for seeds. It effectively balances the global exploration and local development capabilities of the algorithm. Then, for enhancing population diversity, Levy flight or adaptive random walk strategies are introduced. Finally, differential evolution is applied to improve the problem that the algorithm is prone to fall into the local optimum.
The LRDE_IWO algorithm is applied to WSN node deployment optimization. The simulation results show that its coverage is higher than that of IWO, DE_IWO, ALO, FOA and IIWO algorithms. Moreover, it improves the coverage, convergence speed and convergence accuracy to a large extent compared with other algorithms.

Author Contributions

Conceptualization, F.Z. and W.W.; methodology, all authors; software, F.Z. and W.W.; validation, F.Z. and W.W.; formal analysis, all authors; investigation, F.Z. and W.W.; resources, F.Z. and W.W.; data curation, F.Z. and W.W.; writing—original draft preparation, F.Z. and W.W.; writing—review and editing, F.Z. and W.W.; visualization, W.W.; supervision, F.Z.; project administration, F.Z.; funding acquisition, F.Z. and W.W. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Tripathi, A.; Gupta, H.P.; Dutta, T.; Mishra, R.; Shukla, K.K.; Jit, S. Coverage and Connectivity in WSNs: A Survey, Research Issues and Challenges. IEEE Access 2018, 6, 6971–26992. [Google Scholar] [CrossRef]
  2. Wang, L.; Wang, X.-K.; Gong, J.-P. Cluster Routing Optimization based on Discrete Social Spider Optimization Algorithm. Math. Pract. Theory 2018, 48, 171–181. [Google Scholar]
  3. Wang, J.-L.; Zeng, Y.-Y.; Hou, G.-Y.; Chen, G.-Y. A node self-adaptive sleeping mechanism in low-duty-cycle wireless sensor networks. J. Shenyang Univ. Technol. 2019, 41, 412–416. [Google Scholar]
  4. Wang, H.; Zhang, X.; Lv, H. Optimized strategy of sensor coverage based on geometry coverage algorithm. Appl. Res. Comput. 2017, 34, 2478–2482. [Google Scholar]
  5. Mu, T.; Qiao, X.; Zhang, M. The Application of Bee Colony Optimization Algorithms Based on Voronoi in the Coverage of Wireless Sensor Networks. Chin. J. Sens. Actuators 2015, 28, 1525–1530. [Google Scholar]
  6. Li, S.-B.; Zhang, C.-L.; Zheng, K. Node Deployments Optimization in Wireless Sensor Networks Based on Improved Particle Swarm Algorithm. Instrum. Tech. Sens. 2017, 10, 101–104. [Google Scholar]
  7. Song, T.; Zhang, D.; Wang, Y.; Xu, H.; Fan, Y.; Wang, L. WSN Coverage Optimization Based on Improved Whale Optimization Algorithm. Chin. J. Sens. Actuators 2020, 33, 415–422. [Google Scholar]
  8. Hu, X.; Cao, J. Improved Grey Wolf Optimization Algorithm for WSN Node Deployment. Chin. J. Sens. Actuators 2018, 31, 101–106. [Google Scholar]
  9. Huang, Y.-Y.; Li, K.-Q. Coverage optimization of wireless sensor networks based on artificial fish swarm algorithm. Appl. Res. Comput. 2013, 30, 554–556. [Google Scholar]
  10. Liu, W.; Yang, S.; Sun, S.; Wei, S. A Node Deployment Optimization Method of WSN Based on Ant-Lion Optimization Algorithm. In Proceedings of the IEEE 4th International Symposium on Wireless Systems within the International Conferences on Intelligent Data Acquisition and Advanced Computing Systems (IDAACS-SWS), Lviv, Ukraine, 20–21 September 2018; pp. 88–92. [Google Scholar]
  11. Nivetha, D.; Rajesh, R.; Ramkumar, M.O. Intelligent Fruit Fly Algorithm for Maximization Coverage Problem in Wireless Sensor Network. In Proceedings of the 7th International Conference on Smart Structures and Systems (ICSSS), Chennai, India, 23–24 July 2020; pp. 1–6. [Google Scholar]
  12. Shan, W.; Wang, X.; Ding, L. Improved Invasive Weed Optimization Algorithm in Sensor Deployment for Wireless Sensor Networks. Mach. Tool Hydraul. 2018, 46, 84–88. [Google Scholar]
  13. Wang, Z.; Xie, H.; Hu, Z.; Li, D.; Wang, J.; Liang, W. Node coverage optimization algorithm for wireless sensor networks based on improved grey wolf optimizer. J. Algorithms Comput. Technol. 2019, 13, 1748302619889498. [Google Scholar] [CrossRef] [Green Version]
  14. He, Q.; Xu, Q.; Wei, K. Enhanced sine cosine algorithm based node deployment optimization of wireless sensor network. J. Comput. Appl. 2019, 39, 2035–2043. [Google Scholar]
  15. Popovic, G.; Djukanovic, G.; Kanellopoulos, D. Cluster head relocation based on selfish herd hypothesis for prolonging the life span of wireless sensor networks. Electronics 2018, 7, 403. [Google Scholar] [CrossRef] [Green Version]
  16. Mehrabian, A.R.; Lucas, C. A novel numerical optimization algorithm inspired from weed colonization. Ecol. Inform. 2006, 1, 355–366. [Google Scholar] [CrossRef]
  17. Öztürk, C.; Karaboğa, D.; Görkemli, B. Artificial bee colony algorithm for dynamic deployment of wireless sensor networks. Turk. J. Electr. Eng. Comput. Sci. 2012, 20, 255–262. [Google Scholar]
  18. Xu, Q.; He, Q.; Wei, K. Modified Ant Lion Optimizer Based Coverage Optimization of Wireless Sensor Network. Chin. J. Sens. Actuators 2019, 32, 266–275. [Google Scholar]
  19. Rani, D.S.; Subrahmanyam, N.; Sydulu, M. Multi-Objective Invasive Weed Optimization—An application to optimal network reconfiguration in radial distribution systems. Int. J. Electr. Power Energy Syst. 2015, 73, 932–942. [Google Scholar] [CrossRef]
  20. Dawkins, R. The extended phenotype: The long reach of gene. In Selfish DNA, 1st ed.; Oxford University Press: Oxford, UK, 1999; Chapter 9; pp. 156–164. [Google Scholar]
  21. Li, K.; Wang, Y.; Ji, Z. Research on FJSP Problem of Invasive Weed Optimization Based on Hybrid Strategy. J. Syst. Simul. 2018, 30, 1918–1926. [Google Scholar]
  22. Li, Y.; Li, W.-G.; Zhao, Y.-T.; Liu, A. Grey Wolf Algorithm Based on Levy Flight and Random Walk Strategy. Comput. Sci. 2020, 47, 291–296. [Google Scholar]
  23. Yang, W.-Z.; He, Q.; Du, N.-S. Locust Optimization Algorithm with Perturbation Mechanism and Enhanced Levi Flight. J. Chin. Comput. Syst. 2021, 1–9. Available online: http://kns.cnki.net/kcms/detail/21.1106.TP.20210322.0922.002.html (accessed on 30 August 2021).
  24. Viswanathan, G.M.; Afanasyev, V.; Buldyrev, S.V.; Havlin, S.; Da Luz, M.G.; Raposo, E.P.; Stanley, H.E. Lévy flights search patterns of biological organisms. Phys. A Stat. Mech. Its Appl. 2012, 295, 85–88. [Google Scholar] [CrossRef]
  25. Storn, R.; Price, K. Differential Evolution—A Simple and Efficient Heuristic for global Optimization over Continuous Spaces. J. Glob. Optim. 1997, 11, 341–359. [Google Scholar] [CrossRef]
  26. Wang, Z.-D.; Liu, F.-T.; Hu, Z.-D.; Li, D.-H.; Wen, W. Coverage Optimization of Wireless Sensor Networks Based on Improved Differential Evolution Algorithm. J. Chin. Comput. Syst. 2020, 41, 1041–1046. [Google Scholar]
  27. Fan, H.; Liu, Z.; Guo, X. Distribution network reconfiguration with distributed generation based on differential evolution invasive weed optimization algorithm. Renew. Energy Resour. 2019, 37, 75–81. [Google Scholar]
Figure 1. Comparing the standard deviation of the improved weed algorithm with that of the original algorithm.
Figure 1. Comparing the standard deviation of the improved weed algorithm with that of the original algorithm.
Sensors 21 05869 g001
Figure 2. Change of step size factor α .
Figure 2. Change of step size factor α .
Sensors 21 05869 g002
Figure 3. Simulation of enhanced Levy flight and the adaptive random walk strategy.
Figure 3. Simulation of enhanced Levy flight and the adaptive random walk strategy.
Sensors 21 05869 g003
Chart 1. Flowchart of the LRDE_IWO algorithm.
Chart 1. Flowchart of the LRDE_IWO algorithm.
Sensors 21 05869 ch001
Figure 4. The iterative curves of the three algorithms.
Figure 4. The iterative curves of the three algorithms.
Sensors 21 05869 g004
Figure 5. Bar chart and line chart of coverage varying with the number of nodes.
Figure 5. Bar chart and line chart of coverage varying with the number of nodes.
Sensors 21 05869 g005
Figure 6. ALO and LRDE_IWO coverage optimization iterative curve.
Figure 6. ALO and LRDE_IWO coverage optimization iterative curve.
Sensors 21 05869 g006
Figure 7. Node distribution optimized by ALO and LRDE_IWO.
Figure 7. Node distribution optimized by ALO and LRDE_IWO.
Sensors 21 05869 g007
Figure 8. FOA and LRDE_IWO coverage optimization iterative curve.
Figure 8. FOA and LRDE_IWO coverage optimization iterative curve.
Sensors 21 05869 g008
Figure 9. Node distribution optimized by FOA and LRDE_IWO.
Figure 9. Node distribution optimized by FOA and LRDE_IWO.
Sensors 21 05869 g009
Figure 10. Coverage optimization iterative curve of IIWO and LRDE_IWO.
Figure 10. Coverage optimization iterative curve of IIWO and LRDE_IWO.
Sensors 21 05869 g010
Figure 11. Node distribution optimized by IIWO and LRDE_IWO.
Figure 11. Node distribution optimized by IIWO and LRDE_IWO.
Sensors 21 05869 g011
Table 1. Experimental parameters.
Table 1. Experimental parameters.
AreaPerceived RadiusCommunication Radius
20 × 202.55
50 × 50510
100 × 100714
Table 2. Comparison of the results in the 20 m × 20 m area and 24 nodes.
Table 2. Comparison of the results in the 20 m × 20 m area and 24 nodes.
AlgorithmMean crBest crWorst crStd
Based on IWO92.46%95.24%90.02%0.0114
Based on DE_IWO93.73%95.46%90.93%0.0099
Based on LRDE_IWO95.65%96.83%94.78%0.0061
Table 3. Comparison of the results in the 50 m × 50 m area and 35 nodes.
Table 3. Comparison of the results in the 50 m × 50 m area and 35 nodes.
AlgorithmMean crBest crWorst crStd
Based on IWO90.40%92.50%87.47%0.0138
Based on DE_IWO92.16%93.30%88.67%0.0128
Based on LRDE_IWO93.99%94.21%92.21%0.0061
Table 4. Comparison of the results in the 100 m × 100 m area and 80 nodes.
Table 4. Comparison of the results in the 100 m × 100 m area and 80 nodes.
AlgorithmMean crBest crWorst crStd
Based on IWO90.87%92.35%90.15%0.0088
Based on DE_IWO92.34%94.20%90.80%0.0094
Based on LRDE_IWO96.43%97.09%95.49%0.0051
Table 5. Comparison of the optimized coverage results between ALO and LRDE_IWO.
Table 5. Comparison of the optimized coverage results between ALO and LRDE_IWO.
AlgorithmMean crBest crWorst crStd
Based on ALO93.11%95.83%91.93%0.0107
Based on LRDE_IWO97.21%98.34%96.43%0.0052
Table 6. Comparison of the optimized coverage results between FOA and LRDE_IWO.
Table 6. Comparison of the optimized coverage results between FOA and LRDE_IWO.
Algorithmcr with 40 Nodes Deployedcr with 35 Nodes Deployed
Based on FOA95.19%90.82%
Based on LRDE_IWO97.29%93.55%
Table 7. Comparison of the optimized coverage results of IIWO and LRDE_IWO.
Table 7. Comparison of the optimized coverage results of IIWO and LRDE_IWO.
AlgorithmMean crBest crWorst crStd
Based on IIWO94.60%96.15%92.52%0.0097
Based on LRDE_IWO95.79%97.51%94.33%0.0078
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Zhu, F.; Wang, W. A Coverage Optimization Method for WSNs Based on the Improved Weed Algorithm. Sensors 2021, 21, 5869. https://doi.org/10.3390/s21175869

AMA Style

Zhu F, Wang W. A Coverage Optimization Method for WSNs Based on the Improved Weed Algorithm. Sensors. 2021; 21(17):5869. https://doi.org/10.3390/s21175869

Chicago/Turabian Style

Zhu, Fang, and Wenhao Wang. 2021. "A Coverage Optimization Method for WSNs Based on the Improved Weed Algorithm" Sensors 21, no. 17: 5869. https://doi.org/10.3390/s21175869

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