Abstract

Coverage optimization is an important research topic in wireless sensor networks (WSNs). By studying the coverage optimization problem, the coverage rate of the network can be improved, and the number of redundant sensors can be reduced. In order to improve the coverage performance of wireless sensor networks, we propose an improved ant lion optimizer (IALO) to solve the coverage optimization problem in a WSN. Firstly, we give a network coverage optimization model with the objective of maximizing network coverage rate. Secondly, we alternately execute Cuckoo Search (CS) and Cauchy mutation to update the positions of the ants to enhance population diversity and accelerate convergence speed. Then, we introduce differential evolution (DE) to mutate the population of antlions to improve the convergence accuracy of our algorithm. We compare IALO with the original ant lion optimizer (ALO) and other algorithms on 9 benchmark functions to verify its effectiveness. Finally, IALO is applied to the coverage optimization in wireless sensor networks. Simulation results show that, compared with previous works, IALO provides higher coverage rate, makes the sensor distribution more uniform, and effectively reduces the deployment cost.

1. Introduction

A wireless sensor network is a distributed system with a large number of sensor nodes [1]. In recent years, with the development of wireless communication technology, WSNs have been widely used in target tracking [2], environment monitoring [3], military applications [4], medical applications [5], etc. As network coverage affects the service quality of a WSN, sensor distribution becomes a key problem in the research fields of WSN. Because of the limitations of the physical environment, sensors are usually randomly deployed in the monitor area in practical applications. Consequently, the blank areas with no sensor and the areas with redundant sensors coexist in the monitor field. Therefore, it is necessary to adaptively adjust the positions of sensors in a WSN to improve its coverage rate, reduce the coverage blind area, and reduce the deployment cost.

The swarm intelligence optimization algorithm provided new ways to solve the coverage optimization problem in WSNs. In recent years, many researchers have applied it to the coverage control of WSN and studied its performance. The authors in [6] used particle swarm optimization (PSO) to optimize network coverage. This algorithm has strong global convergence ability, but it was easy to fall into the local optima. An optimization method based on artificial fish swarm algorithm was proposed in [7]. It effectively achieved wireless sensor network coverage optimization, but its redundancy is high. A method using bee algorithm was introduced in [8]. This algorithm provides higher coverage rate than the genetic algorithm and uses less system resources. In [9], the authors proposed a sensor deployment scheme based on glowworm swarm optimization (GSO) to enhance the network coverage after their initial random deployment of the mobile sensors. A novel sensor deployment scheme based on fruit fly algorithm (FOA) was proposed in [10] to improve the coverage rate. Compared with the classic standard PSO and GSO, this algorithm has faster convergence speed and higher coverage rate, but it needs to be improved to achieve approximately complete coverage. The existing works show that the swarm intelligence optimization algorithm can improve the coverage rate and service performance of a WSN. But in order to meet the practical application requirements, the coverage rate and uniformity of WSN still need to be improved.

The ant lion optimizer (ALO) is a natural-inspired optimization algorithm proposed by Mirjalili in 2015. Researchers found that ALO surmounts other famous techniques like genetic algorithm (GA) and particle swarm optimization for various engineering problems [11]. At present, ALO algorithm is successfully applied to multiobjective transformer design optimization [12], power system optimization [13], WSN data gathering [14], route planning for unmanned aerial vehicle [15], etc. However, similar to other intelligent algorithms, the ALO algorithm also has problems such as slow convergence and easy to fall into local optima, and its optimization ability still needs to be improved. In this regard, scholars suggested many effective improved ALO algorithms. In [16], the authors proposed a novel quasioppositional chaotic antlion optimizer (QOCALO). This algorithm is designed by combining the quasiopposition-based learning (QOBL) and chaotic local search (CLS), which offers better results than the original ALO in terms of solution quality and convergence speed. In [17], the authors proposed an opposition-based Laplacian antlion optimizer (OB-L-ALO), which accelerates the convergence speed very efficiently and proficiently to avoid local optima. In [18], the authors proposed an improved ALO algorithm (OB-LF-ALO) integrating levy flight (LF) and opposition-based learning (OB), which enhances the exploration of the unvisited region of the search space and accelerated the convergence rate of basic ALO.

In order to maximize the coverage rate of WSN, aiming at the defects of ALO algorithm, we propose an improved ant lion algorithm (IALO) based on Cuckoo Search, Cauchy mutation, and differential evolution. The effectiveness of IALO is verified by comparing the benchmark functions. Then, IALO is applied to coverage optimization in WSN, and its application value is verified compared with other four algorithms in the same scene.

The rest of the paper is organized as follows. In Section 2, we give the coverage model. In Section 3, we introduce the standard ALO algorithm and present our IALO algorithm in detail. We give the experiment results and conclusions in Section 4 and 5, respectively.

2. Coverage Model

We assume that the monitor area is a two-dimensional region with an area of  m2. mobile sensors are deployed randomly in this area. The coordinate of the -th node is . The sensors are homogeneous; their sensing radius and communication radius are presented as and . Since the sensing range of each sensor node is a closed circular area with as its center and as a fixed radius, the monitor area is discretized into pixels to be covered for the convenience of calculation. Each pixel is expressed as , . The Euclidean distance between and pixel is defined by the following equation:

We use a probabilistic detection model in this paper. The sensing probability of the node to the pixel is described as follows [19]: where () is a measure of uncertainty caused by environmental interference in detection. , , , and are the detection probability parameters related to sensor node characteristics. are input parameters, , and .

In the monitor area, a pixel can be sensed by multiple sensors at the same time. Therefore, the joint sensing probability of the sensor set to the pixel shows if is effectively covered [19].

When is greater than or equal to a certain threshold , it is considered that the pixel can be detected by the sensor node.

In this paper, the coverage rate of a wireless sensor network is defined as the ratio of the number of the pixels that have been covered to the total number of all pixels in the monitor area. The coverage rate is calculated as follows [19]:

Equation (4) is used as the objective function to maximize the network coverage. We use IALO to obtain the optimal value of to improve the coverage performance of a WSN.

3. The Wireless Sensor Network Coverage Optimization Algorithm

3.1. Standard ALO Algorithm

ALO optimizes network coverage by mimicking the interaction between antlions and ants in a trap. The ants explore the search space by randomly walking around the antlions, and they learn from the selected antlion and the elite to ensure the diversity of the population and the optimization performance of the algorithm. An antlion is equivalent to a solution of the problem, and it updates and saves the approximate optimal solution by hunting the ants with high fitness. The five preying steps of the antlion can be represented by the following mathematical model (equations (5)–(14)) [11].

3.1.1. Random Walks of Ants

The ants walk randomly around the antlion to find food in the search space, and the antlions build traps to trap them. A random walk is chosen for modelling the ants’ movement as follows: where is the set of the steps of the random walk, is the calculated cumulative sum, is the maximum number of iterations, shows the step of random walk, is a stochastic function, and is a random number with uniform distribution in the interval of . The position of an ant is updated at every step of the optimization. In order to keep the random walks inside the search space, we use normalization by where and are the minimum and maximum of the random walk of the -th variable and and are the lower and upper bound of the -th variable at the -th iteration.

3.1.2. Trapping in Antlion’s Pits

The ants select an antlion for random walk at every iteration, and their random walks are affected by antlions’ traps. This mathematical model can be expressed as follows: where is the position of the selected -th antlion at the -th iteration and and are the minimum and maximum values of all variables for the -th ant at the -th iteration.

3.1.3. Sliding the Ants towards an Antlion

The ALO algorithm uses a roulette wheel selection operator to select antlions based on their fitness during optimization. An antlion with better fitness has greater chances to be selected and to catch ants. Once an antlion realizes that an ant is in the trap, it shoots sands outward the center of the trap to prevent the ant from escaping. As a result, the trap decreases adaptively, and the range of the ant’s random walk becomes smaller. Finally, the ant slowly slides toward the antlion. As the number of iterations increases, the change of the trap range can be expressed as follows:

In these equations, shows the current iteration, is the maximum value of the iterations, is a ratio, when , and is a constant based on the current iteration. The range of the traps shrinks sharply in the late iterations.

3.1.4. Catching Prey and Rebuilding the Trap

The fitness of the new position of an ant is calculated in this stage. If an ant has a better fitness than its corresponding antlion, the ant is caught by the antlion and then the antlion reconstructs the trap for the next hunt. The antlion is required to update its position to the latest position of the hunted ant to enhance its chance of catching new prey. The following equation is presented in this regard:

is the position of the -th antlion selected at the -th iteration, is the position of the -th ant at the -th iteration, and shows the objective function.

3.1.5. Elitism

The best antlion is saved and considered as an elite antlion in each iteration, which affects the movements of all the ants during the iterations. Since every ant randomly walks around an antlion selected by the roulette wheel and the elite simultaneously, the position of the -th ant at the -th iteration can be expressed as follows:

is the random walk around the antlion selected at the -th iteration, and is the random walk around the elite at the -th iteration.

3.2. Improved ALO Algorithm

We propose an improved ant lion optimizer integrating with Cuckoo Search, Cauchy mutation, and differential evolution (IALO). Compared to ALO, IALO has faster convergence speed and higher optimization accuracy.

3.2.1. Cuckoo Search

Cuckoo Search [20] is a nature-inspired optimization algorithm proposed by Xin-She Yang and Suash Deb. This algorithm mimics the aggressive reproduction strategy of cuckoo bird species with the Levy flight action of birds and fruit flies. The cuckoo birds lay their eggs in the nests of other birds so that they would not hatch their own eggs. In CS, three idealized rules are used: (1)Each cuckoo lays one egg at a time and randomly chooses a nest to dump it(2)The best nests with high quality eggs will be preserved for the next generation(3)The number of available parasitic host nests is fixed, and a host bird detects a parasitic cuckoo egg with a probability

According to the above rules, the update of nests is generated by the random walk of Levy flight as follows [20]: where shows the new solution and shows the solution of the -th cuckoo. The product ⊕ means entry-wise multiplication. is the step size, which is usually selected as 1; it also can be set by

In equation (16), shows the initial search step size, and is the global optimal solution at the -th iteration. In the random walk provided by Levy flight, the random step size is drawn from a Levy distribution.

In this work, CS is embedded into IALO to perturb the positions of ants, in order to increase the chance of IALO to jump out of the local optima and enhance its ability to converge towards global optima. Using CS to perturb the positions of ants can be expressed as follows: where shows the new position of an ant after perturbation and shows the best antlion of the -th iteration.

3.2.2. Cauchy Mutation

Cauchy mutation is used in IALO to improve the diversity of the population of ants, increase the search space, accelerate the convergence speed, and improve the global search ability. The origin-centered 1D Cauchy density function is defined as follows [21]:

After Cauchy mutation, the ants use less time to search the adjacent intervals and spend more time to search for the global optima. Therefore, Cauchy mutation is beneficial to increase the population diversity, and it also improves the global search ability of IALO. In this work, the Cauchy mutation carried out by an ant should be calculated as where is a random number produced by the Cauchy distribution with .

In order to further improve the optimization performance of IALO, we adopt a dynamic selection strategy to mutate the position of an ant. Cuckoo Search and Cauchy mutation are used alternately under a certain probability of 50%. where is a random number in .

After mutation, a greedy criterion is introduced to compare the fitness of the new position of an ant with its old one to determine whether to update the ant’s position.

3.2.3. Differential Evolution Algorithm

Differential evolution (DE) includes three operations: mutation, crossover, and selection [22]. DE first generates a new mutant vector by mutation strategy and then mixes the new vector with the target vector to generate a trial vector. The trial vector is compared to the target vector by a greedy criterion. If the trial vector outputs a smaller cost function value than the target vector, the target vector is replaced by the trial vector in the following iteration. Otherwise, the target vector is retained. The common differential mutation strategies are DE/rand/1, DE/rand/2, DE/best/1, DE/best/2, etc. In IALO, we use DE/rand/1 mutation strategy. We assume that there is a target vector , and we generate the mutant vector according to

In equation (23), is the mutation factor; it is a constant from . , , and are random integers that are different with the running index . , , and are distinct vectors randomly chosen from the current population at the -th iteration. The mutant vector is mixed with ; they generate the trial vector using

In equation (24), is a randomly chosen index in the interval , shows the dimension of the vector, and is a uniform random number in . is the crossover factor in .

The selection of the differential evolution algorithm determines whether the target vector or the trial vector is retained in the next iteration. For the maximization problem, the selection is defined as follows:

In this work, DE is introduced into IALO to perform differential mutation on the population of antlions to improve the convergence accuracy.

3.3. Coverage Optimization Based on IALO

In this paper, IALO is used to optimize the deployment of sensors. Its optimization objective is to maximize the coverage rate in the coverage model of a WSN. The coverage optimization problem is transformed into a high-dimensional vector optimization problem with equation (4) as its objective function. The process of node position optimization is transformed into a series of behaviors of antlions preying on ants. After the iterations, the position of the elite antlion is the optimal solution of the node distribution.

Each antlion in our algorithm represents a coverage distribution scheme of the sensors. The dimension of the antlion is twice the number of the sensors, where the and dimensions represent the abscissa and ordinate of the node, respectively. The flow of the coverage optimization algorithm is shown in Figure 1, and its pseudocode is as follows.

1: Set the parameters of the WSN: the sensing radius of sensor , the number of the nodes , and the area of the monitoring area
2: Set the parameters of the algorithm: the population size , the dimension , the maximum iteration number , the lower bound , and the upper bound
3: Initialize the ants and antlions randomly
4: Calculate the fitness of the antlions, and find the best antlion as an elite
5: While
6:   for1to
7:   Select an antlion using roulette wheel
8:   Update the boundary of a random walk using equations (10) and (11)
9:   Create a random walk and normalize it using equation (5), (6), and (7)
10:   Update the positions of ants using equations (14), (21), and (22)
11:   End for1
12:   Calculate the values of the fitness of all ants
13:   Replace an antlion with its corresponding ant using equation (13)
14:   for2to
15:   Update the positions of antlions using equations (23), (24), and (25)
16:   End for2
17:   Update the elite if an antlion has a better fitness than it
18:   
19:  End while
20:  Output the elite (coverage rate) and the best positions (the deployment of the nodes).

4. Simulations

4.1. Function Optimization
4.1.1. Experiment Setting

In order to present the advantage of IALO, we select FOA, WOA [23], GWO [24], PSO, ALO, OB-L-ALO [17], and OB-LF-ALO [18] for algorithm experiment comparison on 9 benchmark test functions. The mathematical formula, dimension, boundary range, and global optimum of the test functions are shown in Table 1. Among the test functions, F1-F5 are unimodal functions, and F6-F9 are multimodal functions. The unimodal functions have only one global optimum which is used to evaluate the exploitation ability and convergence speed of an algorithm. Because the multimodal functions contain many local optima, they can be used to evaluate the ability to exploration and jump out of the local optima.

The experimental environment is Intel(R) Core (TM) i7-9750H dual-core CPU, 16 GB memory, Win10 64-bit operating system, and the simulation software is MATLAB R2019b. For the fairness of the experimental results, the population size of each algorithm is set to 30, the maximum number of iterations is set to 1000, and each algorithm is independently run 30 times for comprehensive testing. The parameter setting of each algorithm is shown in Table 2.

4.1.2. Comparison of Optimal Results

The comparison results of function optimization are shown in Table 3. Among them, ALO, FOA, WOA, GWO, PSO, and IALO are the results of 30 experiments of the test function, while OB-L-ALO and OB-LF-ALO are obtained by referring to other literature data.

The data in Table 3 demonstrate that IALO ranked first or tied first on average when solving F1-F5. In F1-F3, both IALO and OB-LF-ALO achieve global optima, and the standard deviation is 0. In F4-F5, IALO does not converge to the global optimum, but it has the best mean and standard deviation value among all the test algorithms. It is evident from the results that IALO has efficient exploitation ability. From the results of F6-F9, we can see that IALO is still competitive in multimodal function. In F6-F8, IALO can converge to the global optimum, which is the best or the best in parallel compared with other algorithms. In F9, the convergence accuracy of IALO is much higher than the other algorithms. It can be observed that IALO has also a very good exploration ability.

4.1.3. Comparison of Convergence Curves

The benchmark function curve can intuitively reflect the convergence speed and accuracy of each algorithm and also clearly show the ability of the algorithm to jump out of the local optima. The convergence curves of the nine benchmark test functions are shown in Figure 2. We can see that IALO can achieve or get close to the global optima in the shortest time, which shows that IALO has faster convergence speed and higher convergence accuracy. For F1-F3, F6-F8, the convergence curve of IALO decreases obviously from the beginning of iteration and the convergence speed is fast. For example, F1 and F3 achieve the global optima in the 96th and 47th generations, respectively. For F4-F5, F9, IALO does not converge to the global optima, but it can quickly jump out of the local optima, and its convergence accuracy is closer to the global optima than other algorithms. Therefore, IALO has good optimization performance and is effective and reliable in function optimization.

4.2. Coverage Optimization in WSNs

In order to verify the performance of IALO in the coverage optimization of a WSN, we assume that different numbers of sensors are randomly placed in the monitoring areas of different sizes. We compare IALO with GSO [9], FOA [10], ALO, and PSO. To eliminate the error caused by randomness, each algorithm was run 20 times in each experiment, and the final average results were compared.

4.2.1. Experiment Setting

As shown in Table 4, the monitoring areas of experiment 1 and experiment 2 are and , respectively. All sensors are homogeneous; they are with the same sensing radius in each experiment. The parameter settings of FOA, PSO, and IALO are the same as the ones in Section 4.1. The luciferin enhancement constant , the luciferin decay constant , and the step size in GSO. All algorithms uniformly set the population to 30 and the maximum of iteration is 1000, and , , , , , .

4.2.2. Comparison of Coverage Rate

Coverage rate is one of the important elements to indicate the performance of the distribution of the sensors. Figures 3 and 4 show the coverage rate of ALO, GSO, FOA, PSO, and IALO with the increase of the number of iterations. Figure 3 shows the coverage rate of the five algorithms under different number of sensors in experiment 1. We can see from Figure 3 that when the number of iterations grows, the coverage rates of the five algorithms first rise sharply ad then tend to stable gradually. For example, as shown in Figure 3(b), the coverage rate of the five algorithms increases sharply in the first 1-100 iterations. In the 100-300 iterations, the rising speed of the coverage rates of the five algorithms slows down. When the iteration reaches 400 times, GSO reaches its maximum value and does no change, while the coverage rates of the other algorithms are still slowly increasing. The final coverage rate of IALO is 97.02%, ALO is 93.38%, PSO is 89.13%, FOA is 93.41%, and GSO is 89.07%. Compared with ALO, PSO, FOA, and GSO, the coverage rate of IALO increased by 3.64%, 7.83%, 3.61%, and 7.95%, respectively. Because CS, Cauchy mutation, and DE are used to enhance its global optimization ability, the coverage rate of IALO is better than the original ALO in each iteration.

In addition, the coverage rates of the five algorithms under different number of sensors in experiment 2 are shown in Figure 4. We can see that IALO has much higher coverage rate and faster convergence speed than ALO, PSO, FOA, and GSO. IALO is better than the other five algorithms in solving the coverage optimization problem.

Tables 5 and 6 show the final coverage rates of the five algorithms in experiment 1 and experiment 2, where Mean, Std, Best, and Worst represent the average value, standard deviation, the best value, and the worst value of the coverage rates, respectively. We can see from Table 5 that the coverage rate of each algorithm increases with the increase of the number of sensors. The four metrics (Mean, Std, Best, and Worst) of IALO are much better than those of the rest of the algorithms, and when the number of sensors is small, the coverage advantage of IALO is more obvious. For example, in experiment 1, when , compared with ALO, PSO, FOA, and GSO, IALO has improved the coverage rate by 0.11%, 1.08%, 0.08%, and 0.55%, respectively. However, when , the coverage rate of IALO was higher than them by 6.07%, 9.52%, 7.66%, and 13.83%, respectively. From Table 6, we can see that in experiment 2, with the increase of the number of sensors, the coverage rate of IALO, ALO, and FOA increases greatly. However, IALO still has the highest coverage rate and it is more stable as it has the smallest standard deviation.

Figure 5 shows the coverage rates of the five algorithms under different number of sensors. We can see that when the number of sensors is the same, the coverage rate of IALO is higher than the other algorithms. In our experiment 1, IALO obtains a coverage rate 99.561% when in the monitoring area. This result is higher than the ones of ALO and FOA at (99.506%, 99.537%), and it is also higher than the results of PSO and GSO at (98.875%, 99.405%). IALO can provide the same coverage rate with fewer sensors than the other four algorithms.

4.2.3. Comparison of Coverage Effects

Figures 6 and 7 show the sensor distribution of in experiment 1 and in experiment 2, respectively. In these two figures, “•” represents a sensor, and the corresponding circle is the coverage area of the sensor.

Figure 6(a) shows the initial deployment of the sensors. There are many blank areas and overlap areas because of the random deployment of sensors. Figures 6(b)6(e) are the final sensor distribution after executing ALO, PSO, FOA, and GSO, respectively. Figure 6(f) is the final sensor deployment of IALO. It can be seen that the sensor distribution of IALO is the most uniform one with the smallest sensor redundancy. It can also be seen from Figure 7 that the IALO has the best coverage rate, the smallest redundant area, and the smallest blank coverage.

5. Conclusions

In order to improve the network coverage in a WSN, we designed the IALO algorithm according to the standard ALO algorithm. In IALO, we used Cuckoo Search and Cauchy mutation to enhance the population diversity of ants, improve its global optimization ability, and accelerate its convergence speed. We mutated the population of antlions by differential evolution to improve the convergence accuracy of IALO. Experiments on 9 benchmark functions show that IALO has efficient exploitation and exploration ability. Compared with other algorithms, IALO has faster convergence speed and higher convergence accuracy, and it can effectively jump out of the local optima. We applied IALO to the coverage optimization problem in a WSN and compared it with the standard ALO algorithm and other related optimizations. Simulations results show that under the same test environment, IALO achieves higher network coverage. IALO also provides more uniform sensor distribution with effectively reduced number of nodes.

Data Availability

The data used to support the findings of this study are available from Wei Chen ([email protected]) upon request.

Conflicts of Interest

The authors declare that there is no conflict of interest regarding the publication of this paper.

Acknowledgments

This research was funded by the Natural Science Research Project of Anhui Provincial Department of Education grant number KJ2019A1058, the Domestic Visiting Study and Training Project for Outstanding Young Core Teacher of Colleges and Universities in Anhui Province grant number gxgnfx2020152, the National Natural Science Foundation of China grant number 62172003, the Program for Synergy Innovation in the Anhui Higher Education Institutions of China grant number GXXT-2020-012, and the Natural Science Foundation of Anhui Province grant number 2108085MF217.