# Sensing Coverage Algorithm of Sparse Mobile Sensor Node with Trade-Off between Packet Loss Rate and Transmission Delay

Authors: Kehua Zhao; Yourong Chen; Siyi Lu; Banteng Liu; Tiaojuan Ren; Zhangquan Wang
Journal: Wireless Communications and Mobile Computing
 (2019)

---

## Abstract

To solve the problem of sensing coverage of sparse wireless sensor networks, the movement of sensor nodes is considered and a sensing coverage algorithm of sparse mobile sensor node with trade-off between packet loss rate and transmission delay (SCA_SM) is proposed. Firstly, SCA_SM divides the monitoring area into several grids of same size and establishes a path planning model of multisensor nodes’ movement. Secondly, the social foraging behavior of Escherichia coli in bacterial foraging is used. A fitness function formula of sensor nodes’ moving paths is proposed. The optimal moving paths of all mobile sensor nodes which can cover the entire monitoring area are obtained through the operations of chemotaxis, replication, and migration. The simulation results show that SCA_SM can fully cover the monitoring area and reduce the packet loss rate and data transmission delay in the process of data transmission. Under certain conditions, SCA_SM is better than RAND_D, HILBERT, and TCM.


---

## Body

## 1. Introduction

Wireless sensor networks (WSNs) are composed of a large number of sensor nodes and are deployed manually or randomly in a given monitoring area. The sensor node recognizes and collects the state of the monitoring environment (such as temperature, humidity, and brightness) and sends this information to devices (sink nodes or base stations) that are suitable for data processing, visualization, analysis, and decision-making [1, 2]. Because sensing range and energy of sensor nodes are limited, the analysis of large amounts of local data is impossible when the monitoring area is huge and the environment is complex. Moreover, large-scale deployment requires a huge cost investment. Therefore, a sparse mobile sensor network with a small number of sensor nodes is considered; in particular, a device such as a drone or robot can be used in the sensor node to move to each monitoring position. The mobile monitoring node can sense the entire monitoring area. It reduces the system application cost [3].However, sparse mobile sensor network may generate a large packet loss rate and a long data transmission delay. Therefore, mobile path selection and sensing coverage of mobile sensor nodes need be studied. At present, some scholars focus on the path selection of mobile sensor nodes installed on UAVs (unmanned aerial vehicle) and achieve certain results. For example, a rasterized motion model is established based on the environmental information within the scope of the UAV in the literature [4], and A∗ algorithm is used to obtain the UAV’s moving path. The literature [5] constructs the model of UAV flight path, quantitatively describes the threat area on the path, and uses improved artificial potential field method to obtain a sufficiently smooth flight path. A three-layer framework consisting of sensor layer, cluster head layer, and moving collector layer is proposed in the literature [6]. The mobile collector calculates its moving trajectory planning, uses the divide and conquer method to determine the turning point on the path, and obtains its efficient mobile data collection scheme. In the literature [7], each mobile sensor node is assigned a unique ID to find its potential moving position. The greedy algorithm is used to select the optimal stayed position from these potential moving positions. Finally, its optimal path is constructed. The literatures [4–7] mainly implement the path of mobile sensor node from starting position to target position, but how to efficiently cover the entire monitoring area is not taken into consideration. The literature [8] uses HILBERT curve as moving path of mobile aggregation node to cover the entire network. The literature [9] proposes a temporal coverage mechanism (TCM) for mobile sensor nodes in a sparse network environment. TCM divides the monitoring area into several grids so that mobile sensor nodes can cover the entire monitoring area as quickly as possible. Meanwhile, to achieve efficient coverage of the monitoring area under the sparse WSNs, some scholars focus on using artificial intelligence algorithms to obtain the moving paths of mobile sensor nodes. For example, the literature [10] proposes an improved artificial bee colony algorithm to solve the traveling salesman problem of neighborhood search in sparse WSNs and obtains the optimal data collection and movement paths of mobile sensor nodes. The literature [11] proposes autonomous movement model of mobile sensor node, which can be solved by bacterial foraging optimization algorithm (BFOA). The autonomous mobile solution of each mobile sensor node can be obtained. However, the literatures [8–11] do not consider that the storage space of mobile sensor nodes is limited and have large packet loss rate and high data transmission delay.Therefore, a sensing coverage algorithm of sparse mobile sensor node with trade-off between packet loss rate and transmission delay (SCA_SM) is proposed. The monitoring area is divided into a finite number of square virtual grids by SCA_SM. Each mobile sensor node takes neighbor grid center as next stayed position, proposes a mathematical expression of moving paths of mobile sensor nodes, and establishes a moving path planning model for multiple sensor nodes. To quickly solve the optimization model, the processes of chemotaxis, replication, and migration in the BFOA are used to solve the model. In accordance with the optimization goal of the WSNs, fitness function is proposed to reduce the packet loss rate and data transmission delay as much as possible. Mobile sensor node simulates two basic actions of Escherichia coli,such as advancement and flipping in the search space. The mobile sensor node first moves a step in any random direction. If the fitness value of current moving path in this direction is improved compared with that value of previous moving path, then it will continue to advance in this direction. Instead, it will flip to find a new random direction and a position that can improve the fitness value. When all mobile sensor nodes cover the entire monitoring area or reach the end condition, SCA_SM outputs an optimal solution. Therefore, optimal moving paths of all mobile sensor nodes which cover the entire monitoring area are obtained, and the packet loss rate and data transmission delay in data transmission process are reduced.


## 2. Algorithm Assumptions and Basic Principles

In SCA_SM, WSNs are assumed to be evenly distributed in the monitoring area of two dimensions. Multiple mobile sensor nodes and one static sink node exist in the network. Mobile sensor node has a fixed communication radius and data storage capacity. The position coordinates of the nodes are obtained by satellite positioning modules, such as GPS, Beidou, or other positioning modules. Only one grid center is allowed to pass once in one round of data collection. Static sink node collects data at the center of the monitoring area and can only listen to the data reported by mobile sensor nodes in the single communication range of sink node.As shown in Figure1, the monitoring area is divided into square grids of uniform size, and some mobile sensor nodes are randomly placed in the monitoring area. When the network is running, all mobile sensor nodes move to the neighbor grid center’s positions which are not stayed before and sense the data of grid area. If a mobile sensor node is within the communication range of sink node, then the data are sent to sink node in single-hop manner; otherwise, the data are stored in the mobile sensor node. If storage space of mobile sensor node is full, the oldest data are deleted, and the received data are stored. However, SCA_SM still needs to solve the following two problems. The first is how to establish an optimization model of multisensor nodes’ mobile sensing coverage through mathematical model. The second is how to use the improved bacterial foraging algorithm to solve the optimization model and obtain optimal moving path scheme of multiple mobile sensor nodes that can fully cover the monitoring area. The specific solutions to these two problems are as follows.Figure 1
Principle of SCA_SM.


## 3. Establishment of the Optimization Model

The optimization model of multisensor nodes’ mobile sensing coverage can be converted into(1)minx1DR+x2TaverageTyu1as.t.Pk=p1k,p2k,p3k,…,pjk1bpjk≠pik,∀jandj≠i,∀k1cCt+1k=CmaxCtk+SDt+1k≥Cmaxanddks>dmaxCtk+SDt+1kCtk+SDt+1k<Cmaxanddks>dmax0dks≤dmax,∀k1dDt+1k=Dtk+Ctk+SDt+1k-Cmax,Ctk+SDt+1≥Cmaxanddks>dmaxDtkdks≤dmax,∀k1e∪Coverk=1,∀k1fDR=∑kDt+1kNtotal1gTaverage=∑mTm-tm+∑nt-tnNpack1hx1+x2=1where Pk represents the moving path of mobile sensor node k. pjk represents the jth stayed grid center’s position of mobile sensor node k. Ctk represents the amount of data stored in the mobile sensor node k at time t. Cmax represents the maximum storage space of mobile sensor node. dks represents the distance from mobile sensor node k to sink node. dmax represents the maximum communication radius of sink node. SDt+1k represents the amount of data received and sensed by mobile sensor node k at the next moment. Dtk represents the total number of lost packets of mobile sensor node k from network start time to time t. Coverk represents the sensing coverage of mobile sensor node k, that is, the ratio of the number of grid center positions in the moving path of mobile sensor node k and the total number of grids. DR represents the packet loss rate. Ntotal represents the total number of packets generated by all mobile sensor nodes. Taverage represents the current data transmission delay. Tm represents the time when the packet m is successfully sent to sink node. tm represents the generation time of packet m. tn represents the generation time of packet n stored in mobile sensor node or discarded. Npack represents the total number of packets generated by mobile sensor nodes after time t. Tyu represents the threshold of data transmission delay. x1 represents the weight factor of packet loss rate. x2 represents the weight factor of data transmission delay.Equation (1) represents the objective function of optimization model, namely, minimizing the packet loss rate and data transmission delay. Formula 1a represents that the moving path of mobile sensor nodek is composed positions of grid centers. Formula 1b represents that each mobile sensor node does not repeat through the same grid center during one round of movement. Formula 1c represents that when mobile sensor node k is within the communication range of sink node, the data are directly sent to sink node; otherwise, the data are stored in the cache space. If the cache space is full, then the oldest data will be discarded. Formula 1d represents an updated calculation formula for the total number of lost packets of mobile sensor node. Formula 1e represents that the moving paths of all mobile sensor nodes contain all grid centers; namely, the sensing coverage equals 1. Formula 1f is a formula for calculating the packet loss rate. Formula 1g is a formula for calculating the data transmission delay.


## 4. Algorithm Solving

BFOA is a distributed parallel and random global optimization algorithm that is widely used in image processing, machine learning, pattern recognition, workshop scheduling, and other fields [12]. BFOA simulates the foraging behavior of Escherichia coli in human intestines and seeks optimal population through four operations: chemotaxis, aggregation, replication, and migration. The solving process for the optimal moving paths of mobile sensor nodes is the process of Escherichia coli searching for the area of abundant food. However, the solution of bacterial fitness value needs to be solved and BFOA needs to be improved in the solution process. Therefore, each bacterium is moving paths of all mobile sensor nodes which sense and cover the entire monitoring area. data(Sx,Sy,k,t) represents the data sensed by mobile sensor node k on the grid (Sx,Sy) at time t. Lnow represents the length of current moving path of mobile sensor node. Grest represents the number of grids that mobile sensor node has not passed. Coversum represents the sum of coverage of all mobile sensor nodes. Nm represents the total number of mobile sensor nodes. S represents the size of bacterial population. Ned, Nre, and Nc represent the number of migration, replication, and chemotaxis, respectively. Ped represents the probability of migration. Nm represents the number of mobile sensor nodes. J(i,g,h,l) represents fitness value of bacterium i at the gth chemotaxis, hth replicas andlth migration. NGik represents the neighbor grid set of mobile sensor node k in the bacterium i. Si={S1i,S2i,S3i,...,Ski} represents the movement scheme of current bacterium i after migration, and it is initially an empty set. Ski represents the moving path of mobile sensor node k in the bacterium i. The specific content of the model solution is as follows.


### 4.1. Calculation of Bacterial Fitness Value

Because the setting of bacterial fitness value affects the solution of optimization model (1), the chemotaxis operation leads the bacteria to preferentially move to a nutrient-rich environment. But if the fitness value of the bacteriumi is directly calculated by model (1), mobile sensor node can easily preferentially move to the grid within the communication range of sink node. It results in a large packet loss rate and data transmission delay. Therefore, different fitness value formulas are adopted in the actual path finding process and after the path is searched. The specific implementation steps of bacterial fitness value calculation are as follows.Step 1.
Initialize the parameters and the storage space of all mobile sensor nodes. Initialize the storage space of sink node.t=1, k=1.Step 2.
At the current timet, the data of mobile sensor node k at the position (Sx,Sy) are sensed, stored, and recorded as data(Sx,Sy,t). The data storage amount Ct+1k at next moment according to formula 1c is updated. If the data storage amount Ct+1k at next moment is greater than maximum storage space SCmax, then the oldest data are deleted. According to formula 1d, the deleted data are recorded in the number of lost packets, and the number of lost packets is updated.Step 3 (t=t+1).
Mobile sensor nodek moves to next stayed position. If mobile sensor node k is within the single-hop range of sink node, all data in the storage space are directly sent to sink node. The data received by sink node are recorded, and the data storage capacity is updated. Then whether a neighbor mobile sensor node exists is determined. If it exists, then it communicates with the neighbor mobile sensor node, obtains coverage rate of the neighbor sensor node, and calculates the sum Coversum of sensing coverage of the known mobile sensor nodes.Step 4.
Ift≤Lnow, then skip to Step 2; otherwise, k=k+1, t=1. If k≤Nm, then skip to Step 2; otherwise, skip to Step 5.Step 5.
IfCoversum=1, then packet loss rate DR is calculated by formula 1f. Skip to Step 7; otherwise, the mobile sensor node is still looking for the path. The number Snum of grids in the single-hop communication range of sink node is calculated. The number Nloss of discarded packets is calculated by formula (2).(2)Nloss=Grest+Ct-SnumCmax+1where Grest represents the number of grids which is not passed before. Ct represents the sum of data stored by all mobile sensor nodes.Step 6.
WhenNloss≤0, the grids in the single-hop communication range of sink node is allocated reasonably, and the other grids do not generate the number of lost packets, Nloss=0. Otherwise, Nloss is recorded in the number of lost packets, and the packet loss rate DR′ is calculated by formula (3) on the basis of received data packets of sink node and the number of lost packets stored in mobile sensor nodes. (3)DR′=Nt+NlossNtotalwhere Nt represents number of lost packets of mobile sensor node at previous moment and Ntotal represents total number of packets generated by all mobile sensor nodes.Step 7.
The estimate valueTaverage of data transmission delay is calculated by formula 1g, and the fitness values of all bacteria are calculated by formula (4).(4)fitness=x1D-R+x2TaverageTyuwhere packet loss rate D-R is (5)D-R=DR′,Coversum<1DR,Coversum=1.


### 4.2. Chemotaxis of Bacteria

Mobile sensor node simulates two basic actions of Escherichia coli,such as advancement and flipping in the path planning process. First, each mobile sensor node in a bacterium moves a step in any random direction. If the fitness value of current moving path in this direction is improved compared with the fitness value of previous moving path, then it will continue to advance in this direction. Otherwise, it will flip to find a new random direction and a position that can improve the fitness value. If neighbor grid has been accessed, the mobile sensor node is easy to fall into dead end. At this time, the nearest grid should be selected to meet the constraint condition 1b, thereby achieving the chemotaxis operation. As shown in Figure 2, the specific implementation steps are as follows.Figure 2
Flow chart of chemotaxis.Step 1.
Obtain all current bacterial information and replication parameterh, and letg=1,l=1,i=1, k=1.Step 2.
Calculate the fitness valueJ(i,g,h,l) of the bacterium i. It is judged whether the set Si is an empty set. If it is an empty set, then skip to Step 3. Otherwise, let Sgi=g+1+Nc(h-1). Select the Sgith stayed grid in the set Ski. Let it be the next grid of mobile sensor node k. Add it to current moving path, and obtain the new moving path. Skip to Step 6.Step 3.
Update the sensing coverageCoverk, and mobile sensor node k communicates with neighbor mobile sensor nodes in the single-hop range to calculate the sum Coversum of sensing coverage of known mobile sensor nodes. If Coversum is 1, then skip to Step 6; otherwise, skip to Step 4.Step 4.
Update the neighbor grid setNGik, and determine whether the set NGik is an empty set. If it is, add current closest gird to the grid set NGik; otherwise, neighbor grid set NGik is not updated. Randomly select a grid in the set NGik as the flip direction, delete the grid in the set NGik, add the next stayed grid to moving path, and calculate the fitness value J(i,g+1,h,l) of the new moving path.Step 5.
IfJ(i,g+1,h,l)≤J(i,g,h,l), it indicates that the bacteria are closer to optimal solution, so skip to Step 6. Otherwise, if fitness value is not improved, then judge whether the set NGik is an empty set. If it is, skip to Step 6; otherwise, skip to Step 4 and reselect the random direction for chemotaxis.Step 6 (k=k+1).
Ifk≤Nm, then skip to Step 2; otherwise, i=i+1, k=1. If i≤S, then skip to Step 2; otherwise, g=g+1, k=1, i=1. If g≤Nc, then skip to Step 2; otherwise, the chemotaxis operation is completed.


### 4.3. Improved BFOA

As shown in Figure3, SCA_SM calculates bacterial fitness value through formula (4) and uses chemotaxis, replication, and migration of improved bacterial foraging algorithm to solve the model (1). The specific implementation steps are as follows.Figure 3
Flow chart of SCA_SM algorithm.Step 1.
Initialize the bacterial population and algorithm parameters: the initial positions of all mobile sensor nodes in bacteria are randomly generated, and neighbor grid set is updated. LetFbest be infinite, g=1, h=1, l=1, i=1, k=1.Step 2.
Use chemotaxis to obtain moving paths of mobile sensor nodes in all bacteria.Step 3.
Calculate the fitness values ofS bacteria in the population and arrange them in ascending order. Remove half of the bacteria with high fitness value and copy half of the bacteria with small fitness value. h=h+1. If h≤Nre, i=1, g=1, then skip to Step 2; otherwise, skip to next step.Step 4.
Select the moving paths and fitness value of the bacterium with smallest fitness valueFlocal. If Flocal<Fbest, Fbest=Flocal, then the moving paths of mobile sensor nodes in the bacterium are the optimal moving paths. Otherwise, the bacterium is eliminated and the optimal moving paths of mobile sensor nodes are replicated to the bacterium.Step 5.
Calculate the adaptive probabilitiesPselfi of all S bacteria via formula (6).(6)Pselfi=Jnumi-JnumminJnummax-JnumminPedwhere Jnum represents the fitness function and Ped represents the migration probability.Step 6.
Generate a random number between 0 and 1. If the adaptive probabilityPselfi is greater than the random number, initial positions of Nm mobile sensor nodes are randomly generated as current grid positions and current moving paths in the bacterium i. Let the set Si be an empty set; otherwise, the moving paths of bacterium i are saved in set Si.Step 7 (l=l+1).
Ifl≤Ned, then skip to Step 2; otherwise, output the optimal moving paths of all mobile sensor nodes and end the algorithm.


## 4.1. Calculation of Bacterial Fitness Value

Because the setting of bacterial fitness value affects the solution of optimization model (1), the chemotaxis operation leads the bacteria to preferentially move to a nutrient-rich environment. But if the fitness value of the bacteriumi is directly calculated by model (1), mobile sensor node can easily preferentially move to the grid within the communication range of sink node. It results in a large packet loss rate and data transmission delay. Therefore, different fitness value formulas are adopted in the actual path finding process and after the path is searched. The specific implementation steps of bacterial fitness value calculation are as follows.Step 1.
Initialize the parameters and the storage space of all mobile sensor nodes. Initialize the storage space of sink node.t=1, k=1.Step 2.
At the current timet, the data of mobile sensor node k at the position (Sx,Sy) are sensed, stored, and recorded as data(Sx,Sy,t). The data storage amount Ct+1k at next moment according to formula 1c is updated. If the data storage amount Ct+1k at next moment is greater than maximum storage space SCmax, then the oldest data are deleted. According to formula 1d, the deleted data are recorded in the number of lost packets, and the number of lost packets is updated.Step 3 (t=t+1).
Mobile sensor nodek moves to next stayed position. If mobile sensor node k is within the single-hop range of sink node, all data in the storage space are directly sent to sink node. The data received by sink node are recorded, and the data storage capacity is updated. Then whether a neighbor mobile sensor node exists is determined. If it exists, then it communicates with the neighbor mobile sensor node, obtains coverage rate of the neighbor sensor node, and calculates the sum Coversum of sensing coverage of the known mobile sensor nodes.Step 4.
Ift≤Lnow, then skip to Step 2; otherwise, k=k+1, t=1. If k≤Nm, then skip to Step 2; otherwise, skip to Step 5.Step 5.
IfCoversum=1, then packet loss rate DR is calculated by formula 1f. Skip to Step 7; otherwise, the mobile sensor node is still looking for the path. The number Snum of grids in the single-hop communication range of sink node is calculated. The number Nloss of discarded packets is calculated by formula (2).(2)Nloss=Grest+Ct-SnumCmax+1where Grest represents the number of grids which is not passed before. Ct represents the sum of data stored by all mobile sensor nodes.Step 6.
WhenNloss≤0, the grids in the single-hop communication range of sink node is allocated reasonably, and the other grids do not generate the number of lost packets, Nloss=0. Otherwise, Nloss is recorded in the number of lost packets, and the packet loss rate DR′ is calculated by formula (3) on the basis of received data packets of sink node and the number of lost packets stored in mobile sensor nodes. (3)DR′=Nt+NlossNtotalwhere Nt represents number of lost packets of mobile sensor node at previous moment and Ntotal represents total number of packets generated by all mobile sensor nodes.Step 7.
The estimate valueTaverage of data transmission delay is calculated by formula 1g, and the fitness values of all bacteria are calculated by formula (4).(4)fitness=x1D-R+x2TaverageTyuwhere packet loss rate D-R is (5)D-R=DR′,Coversum<1DR,Coversum=1.


## 4.2. Chemotaxis of Bacteria

Mobile sensor node simulates two basic actions of Escherichia coli,such as advancement and flipping in the path planning process. First, each mobile sensor node in a bacterium moves a step in any random direction. If the fitness value of current moving path in this direction is improved compared with the fitness value of previous moving path, then it will continue to advance in this direction. Otherwise, it will flip to find a new random direction and a position that can improve the fitness value. If neighbor grid has been accessed, the mobile sensor node is easy to fall into dead end. At this time, the nearest grid should be selected to meet the constraint condition 1b, thereby achieving the chemotaxis operation. As shown in Figure 2, the specific implementation steps are as follows.Figure 2
Flow chart of chemotaxis.Step 1.
Obtain all current bacterial information and replication parameterh, and letg=1,l=1,i=1, k=1.Step 2.
Calculate the fitness valueJ(i,g,h,l) of the bacterium i. It is judged whether the set Si is an empty set. If it is an empty set, then skip to Step 3. Otherwise, let Sgi=g+1+Nc(h-1). Select the Sgith stayed grid in the set Ski. Let it be the next grid of mobile sensor node k. Add it to current moving path, and obtain the new moving path. Skip to Step 6.Step 3.
Update the sensing coverageCoverk, and mobile sensor node k communicates with neighbor mobile sensor nodes in the single-hop range to calculate the sum Coversum of sensing coverage of known mobile sensor nodes. If Coversum is 1, then skip to Step 6; otherwise, skip to Step 4.Step 4.
Update the neighbor grid setNGik, and determine whether the set NGik is an empty set. If it is, add current closest gird to the grid set NGik; otherwise, neighbor grid set NGik is not updated. Randomly select a grid in the set NGik as the flip direction, delete the grid in the set NGik, add the next stayed grid to moving path, and calculate the fitness value J(i,g+1,h,l) of the new moving path.Step 5.
IfJ(i,g+1,h,l)≤J(i,g,h,l), it indicates that the bacteria are closer to optimal solution, so skip to Step 6. Otherwise, if fitness value is not improved, then judge whether the set NGik is an empty set. If it is, skip to Step 6; otherwise, skip to Step 4 and reselect the random direction for chemotaxis.Step 6 (k=k+1).
Ifk≤Nm, then skip to Step 2; otherwise, i=i+1, k=1. If i≤S, then skip to Step 2; otherwise, g=g+1, k=1, i=1. If g≤Nc, then skip to Step 2; otherwise, the chemotaxis operation is completed.


## 4.3. Improved BFOA

As shown in Figure3, SCA_SM calculates bacterial fitness value through formula (4) and uses chemotaxis, replication, and migration of improved bacterial foraging algorithm to solve the model (1). The specific implementation steps are as follows.Figure 3
Flow chart of SCA_SM algorithm.Step 1.
Initialize the bacterial population and algorithm parameters: the initial positions of all mobile sensor nodes in bacteria are randomly generated, and neighbor grid set is updated. LetFbest be infinite, g=1, h=1, l=1, i=1, k=1.Step 2.
Use chemotaxis to obtain moving paths of mobile sensor nodes in all bacteria.Step 3.
Calculate the fitness values ofS bacteria in the population and arrange them in ascending order. Remove half of the bacteria with high fitness value and copy half of the bacteria with small fitness value. h=h+1. If h≤Nre, i=1, g=1, then skip to Step 2; otherwise, skip to next step.Step 4.
Select the moving paths and fitness value of the bacterium with smallest fitness valueFlocal. If Flocal<Fbest, Fbest=Flocal, then the moving paths of mobile sensor nodes in the bacterium are the optimal moving paths. Otherwise, the bacterium is eliminated and the optimal moving paths of mobile sensor nodes are replicated to the bacterium.Step 5.
Calculate the adaptive probabilitiesPselfi of all S bacteria via formula (6).(6)Pselfi=Jnumi-JnumminJnummax-JnumminPedwhere Jnum represents the fitness function and Ped represents the migration probability.Step 6.
Generate a random number between 0 and 1. If the adaptive probabilityPselfi is greater than the random number, initial positions of Nm mobile sensor nodes are randomly generated as current grid positions and current moving paths in the bacterium i. Let the set Si be an empty set; otherwise, the moving paths of bacterium i are saved in set Si.Step 7 (l=l+1).
Ifl≤Ned, then skip to Step 2; otherwise, output the optimal moving paths of all mobile sensor nodes and end the algorithm.


## 5. Algorithm Simulation

### 5.1. Simulation Parameter Selection

To verify the algorithm performance, the simulation experiment is performed and SCA_SM is compared with RAND_D, HILBERT [8], and TCM [9]. Assume that the 200 m∗200 m monitoring area is divided into several virtual square grids. The sink node is in the center of the monitoring area. The positions of mobile sensor nodes are random, and the communication radius of each nodes is 50 m. In the simulation, the main parameters are set to the following values. The maximum storage space Cmax is 6 kbit. The amount of data received and sensed by the node in each uncovered grid is 2 kbit. The threshold Tyu of data transmission delay is 102. The weight factor x1 of packet loss rate and weight factor x2 of data transmission delay are 0.5. The chemotaxis number Nc is 10; the replication number Nre is 20. The migration number Ned is 50. The migration probability Ped is 0.6. The number of bacteria S is 50 when square grid number is less than or equal to 150, and the number of bacteria S is 100 when square grid number is greater than 150.


### 5.2. Analysis of Simulation Results

Because multiple mobile sensor nodes are considered and randomly placed within the monitoring area, initial positions of mobile sensor nodes are randomly generated. To illustrate the effectiveness of the algorithms, random initial positions with (25, 25), (25, 175), and (175, 175) are selected, and the number of mobile sensor nodes is 2, 3, and 4. Then the parameters in Section4.1 are selected and Figures 4–7 are obtained. As shown in Figure 4, all mobile sensor nodes in RAND_D randomly select the closest grid which is not stayed before as next stayed position. As shown in Figure 5, the number of stayed positions of HILBERT is a power of 4, and each mobile sensor node moves following HILBERT path until the entire monitoring area is covered. As shown in Figure 6, each mobile sensor node in TCM follows the shortest moving path in the literature [10] which fully covers the monitoring area. As shown in Figure 7, no matter the number of mobile sensor nodes, SCA_SM can establish a path planning model of multisensor nodes’ movement, calculate bacterial fitness value of each bacterium, solve the optimization model (1) by improving the bacterial foraging algorithm, and obtain optimal moving paths. Every mobile sensor node passes through several grids and moves to the vicinity of sink node to send data. Then SCA_SM reduces the packet loss rate and data transmission delay.Figure 4
Moving paths of RAND_D.Figure 5
Moving path of HILBERT.Figure 6
Moving paths of TCM.Figure 7
Moving paths of SCA_SM.
(a)
Moving paths of two sensor nodes (b)
Moving paths of three sensor nodes (c)
Moving paths of four sensor nodesThe bacterial population completes chemotaxis operation and replication operation of all mobile sensor nodes, then it implements and completes a migration operation. After each migration operation, mobile sensor nodes have their current optimal moving paths with different steps. The fitness value of optimal moving paths is current optimal fitness value. As shown in Figure8, the abscissa represents the number of migrations, and the ordinate represents the optimal fitness value. The fitness value of SCA_SM decreases almost vertically after previous migration. After five migrations, the fitness value of optimal moving path drops to a lower value. As migration operation can help the algorithm jump out of local optimum and improve the convergence accuracy, the fitness value converges to 0.13424 after about 16 migrations. This fitness value is the optimal solution of optimization model (1). Therefore, SCA_SM is convergent.Figure 8
Convergence graph of SCA_SM.Simulation Results for Different Maximum Storage Spaces. In the section, the parameters in Section 5.1 are selected. Side length of the monitoring area is 400 m. Number of mobile sensor nodes is 3. Maximum storage space is 20, 22, 24, 26, 28, and 30 kbit. 10 different initial position distributions of the nodes are randomly generated. The packet loss rates and data transmission delays of RAND_D, HILBERT, TCM, and SCA_SM under each initial position distribution of nodes are calculated separately, and the average values are taken as simulation results.As shown in Figure9, in RAND, although maximum storage space of the node is increased, mobile sensor node randomly selects moving path. It leads that some moving paths are away from sink node and improves the packet loss rate. Therefore, packet loss rate of RAND fluctuates with the increase in the maximum storage space. Packet loss rates of HILBERT, TCM, and SCA_SM decrease with the increase in the maximum storage space. Especially, packet loss rate of SCA_SM decreases faster. Because HILBERT and TCM do not consider the data loss problem when storage space is full, packet loss rates of HILBERT and TCM are larger than that of SCA_SM. The SCA_SM uses bacterial foraging algorithm to solve the optimization model (1) and finds moving paths that weigh packet loss rate and data transmission delay through multiple migrations. In the moving path selection, when the storage space is almost full, the node moves to the communication range of sink node as much as possible, sends the stored data to sink node, and continues to perform mobile coverage. It can reduce the packet loss rate. In summary, when maximum storage space increases, packet loss rate of SCA_SM is always lower than that of RAND_D, HILBERT, and TCM. When maximum storage space reaches 34 kbit, the packet loss rate is close to 0%.Figure 9
Comparison of packet loss rates for different maximum storage spaces.As shown in Figure10, RAND_D has randomness, and data transmission delays of HILBERT and TCM decrease with the increase in the maximum storage space. However, they do not consider the data transmission delay in the moving path selection. SCA_SM establishes an optimization model, which is solved by improved bacterial foraging algorithm, and obtains the optimal moving path of each mobile sensor node which is through the grid centers in the communication range of sink node. When mobile sensor node moves along its optimal path, it can send its own data to sink node in time. Therefore, the data transmission delay of SCA_SM is always lower than the data transmission delays of RAND_D, HILBERT, and TCM.Figure 10
Comparison of data transmission delays for different maximum storage spaces.Simulation Results in Different Monitoring Areas. Considering the size of the monitoring area, the number of square grids divided in the monitoring area is different. To analyze the impact of different sizes of monitoring area on performance parameters, number of mobile sensor nodes is 3, and maximum storage space is 1/4 of the number of grids. Square monitor area 1 has a side length of 800 m. Monitor area 2 has a side length of 700 m. Monitor area 3 has a side length of 500 m. Monitor area 4 has a side length of 400 m. Monitor area 5 has a side length of 200 m. The parameters in 4.1 are selected, and 10 different initial position distributions of nodes are randomly generated. The packet loss rate and data transmission delay of each algorithm are calculated under each initial position distribution of sensor nodes, and the average values are used as simulation results.As shown in Figures11 and 12, in the different monitoring areas, RAND_D has a large number of loss packets and a long moving path; therefore, its packet loss rate and data transmission delay are relatively large. The number of stayed grid of HILBERT must be a power of 4, so only the monitoring areas 1, 4, and 5 are valid and the moving path of each mobile sensor node is fixed. Its perceptual coverage problem of mobile sensor node is not considered. TCM only covers the entire monitoring area as short as possible and does not consider the packet loss rate and data transmission delay as HILBERT. SCA_SM establishes a reasonable optimization model and fitness function due to comprehensive consideration of packet loss rate and data transmission delay. Moreover, it uses improved bacterial foraging algorithm to obtain the optimal moving paths of all mobile sensor nodes. The moving optimal paths can maintain low packet loss rate and data transmission delay, and it is significantly better than RAND_D, HILBERT, and TCM.Figure 11
Comparison of packet loss rates in different monitoring areas.Figure 12
Comparison of data transmission delays in different monitoring areas.


## 5.1. Simulation Parameter Selection

To verify the algorithm performance, the simulation experiment is performed and SCA_SM is compared with RAND_D, HILBERT [8], and TCM [9]. Assume that the 200 m∗200 m monitoring area is divided into several virtual square grids. The sink node is in the center of the monitoring area. The positions of mobile sensor nodes are random, and the communication radius of each nodes is 50 m. In the simulation, the main parameters are set to the following values. The maximum storage space Cmax is 6 kbit. The amount of data received and sensed by the node in each uncovered grid is 2 kbit. The threshold Tyu of data transmission delay is 102. The weight factor x1 of packet loss rate and weight factor x2 of data transmission delay are 0.5. The chemotaxis number Nc is 10; the replication number Nre is 20. The migration number Ned is 50. The migration probability Ped is 0.6. The number of bacteria S is 50 when square grid number is less than or equal to 150, and the number of bacteria S is 100 when square grid number is greater than 150.


## 5.2. Analysis of Simulation Results

Because multiple mobile sensor nodes are considered and randomly placed within the monitoring area, initial positions of mobile sensor nodes are randomly generated. To illustrate the effectiveness of the algorithms, random initial positions with (25, 25), (25, 175), and (175, 175) are selected, and the number of mobile sensor nodes is 2, 3, and 4. Then the parameters in Section4.1 are selected and Figures 4–7 are obtained. As shown in Figure 4, all mobile sensor nodes in RAND_D randomly select the closest grid which is not stayed before as next stayed position. As shown in Figure 5, the number of stayed positions of HILBERT is a power of 4, and each mobile sensor node moves following HILBERT path until the entire monitoring area is covered. As shown in Figure 6, each mobile sensor node in TCM follows the shortest moving path in the literature [10] which fully covers the monitoring area. As shown in Figure 7, no matter the number of mobile sensor nodes, SCA_SM can establish a path planning model of multisensor nodes’ movement, calculate bacterial fitness value of each bacterium, solve the optimization model (1) by improving the bacterial foraging algorithm, and obtain optimal moving paths. Every mobile sensor node passes through several grids and moves to the vicinity of sink node to send data. Then SCA_SM reduces the packet loss rate and data transmission delay.Figure 4
Moving paths of RAND_D.Figure 5
Moving path of HILBERT.Figure 6
Moving paths of TCM.Figure 7
Moving paths of SCA_SM.
(a)
Moving paths of two sensor nodes (b)
Moving paths of three sensor nodes (c)
Moving paths of four sensor nodesThe bacterial population completes chemotaxis operation and replication operation of all mobile sensor nodes, then it implements and completes a migration operation. After each migration operation, mobile sensor nodes have their current optimal moving paths with different steps. The fitness value of optimal moving paths is current optimal fitness value. As shown in Figure8, the abscissa represents the number of migrations, and the ordinate represents the optimal fitness value. The fitness value of SCA_SM decreases almost vertically after previous migration. After five migrations, the fitness value of optimal moving path drops to a lower value. As migration operation can help the algorithm jump out of local optimum and improve the convergence accuracy, the fitness value converges to 0.13424 after about 16 migrations. This fitness value is the optimal solution of optimization model (1). Therefore, SCA_SM is convergent.Figure 8
Convergence graph of SCA_SM.Simulation Results for Different Maximum Storage Spaces. In the section, the parameters in Section 5.1 are selected. Side length of the monitoring area is 400 m. Number of mobile sensor nodes is 3. Maximum storage space is 20, 22, 24, 26, 28, and 30 kbit. 10 different initial position distributions of the nodes are randomly generated. The packet loss rates and data transmission delays of RAND_D, HILBERT, TCM, and SCA_SM under each initial position distribution of nodes are calculated separately, and the average values are taken as simulation results.As shown in Figure9, in RAND, although maximum storage space of the node is increased, mobile sensor node randomly selects moving path. It leads that some moving paths are away from sink node and improves the packet loss rate. Therefore, packet loss rate of RAND fluctuates with the increase in the maximum storage space. Packet loss rates of HILBERT, TCM, and SCA_SM decrease with the increase in the maximum storage space. Especially, packet loss rate of SCA_SM decreases faster. Because HILBERT and TCM do not consider the data loss problem when storage space is full, packet loss rates of HILBERT and TCM are larger than that of SCA_SM. The SCA_SM uses bacterial foraging algorithm to solve the optimization model (1) and finds moving paths that weigh packet loss rate and data transmission delay through multiple migrations. In the moving path selection, when the storage space is almost full, the node moves to the communication range of sink node as much as possible, sends the stored data to sink node, and continues to perform mobile coverage. It can reduce the packet loss rate. In summary, when maximum storage space increases, packet loss rate of SCA_SM is always lower than that of RAND_D, HILBERT, and TCM. When maximum storage space reaches 34 kbit, the packet loss rate is close to 0%.Figure 9
Comparison of packet loss rates for different maximum storage spaces.As shown in Figure10, RAND_D has randomness, and data transmission delays of HILBERT and TCM decrease with the increase in the maximum storage space. However, they do not consider the data transmission delay in the moving path selection. SCA_SM establishes an optimization model, which is solved by improved bacterial foraging algorithm, and obtains the optimal moving path of each mobile sensor node which is through the grid centers in the communication range of sink node. When mobile sensor node moves along its optimal path, it can send its own data to sink node in time. Therefore, the data transmission delay of SCA_SM is always lower than the data transmission delays of RAND_D, HILBERT, and TCM.Figure 10
Comparison of data transmission delays for different maximum storage spaces.Simulation Results in Different Monitoring Areas. Considering the size of the monitoring area, the number of square grids divided in the monitoring area is different. To analyze the impact of different sizes of monitoring area on performance parameters, number of mobile sensor nodes is 3, and maximum storage space is 1/4 of the number of grids. Square monitor area 1 has a side length of 800 m. Monitor area 2 has a side length of 700 m. Monitor area 3 has a side length of 500 m. Monitor area 4 has a side length of 400 m. Monitor area 5 has a side length of 200 m. The parameters in 4.1 are selected, and 10 different initial position distributions of nodes are randomly generated. The packet loss rate and data transmission delay of each algorithm are calculated under each initial position distribution of sensor nodes, and the average values are used as simulation results.As shown in Figures11 and 12, in the different monitoring areas, RAND_D has a large number of loss packets and a long moving path; therefore, its packet loss rate and data transmission delay are relatively large. The number of stayed grid of HILBERT must be a power of 4, so only the monitoring areas 1, 4, and 5 are valid and the moving path of each mobile sensor node is fixed. Its perceptual coverage problem of mobile sensor node is not considered. TCM only covers the entire monitoring area as short as possible and does not consider the packet loss rate and data transmission delay as HILBERT. SCA_SM establishes a reasonable optimization model and fitness function due to comprehensive consideration of packet loss rate and data transmission delay. Moreover, it uses improved bacterial foraging algorithm to obtain the optimal moving paths of all mobile sensor nodes. The moving optimal paths can maintain low packet loss rate and data transmission delay, and it is significantly better than RAND_D, HILBERT, and TCM.Figure 11
Comparison of packet loss rates in different monitoring areas.Figure 12
Comparison of data transmission delays in different monitoring areas.


## 6. Conclusion

A sensing coverage algorithm of sparse mobile sensor node with trade-off between packet loss rate and transmission delay (SCA_SM) is proposed in this paper. First, the algorithm assumptions and basic principles are proposed. Second, path selection constraint, data capacity update, packet loss rate, data transmission delay, and other related parameters and conditions are considered. An optimization model for fully covering the monitoring area and balancing the packet loss rate and data transmission delay is established. Bacterial fitness value calculation, bacterial chemotaxis operation, and improved bacterial foraging algorithm are proposed to solve the optimization model. Optimal moving paths of multiple mobile sensor nodes are obtained. Finally, simulation parameters of the algorithm are given. The simulation results show that the SCA_SM algorithm can find the optimal moving path of multiple mobile sensor nodes, has low data packet loss rate and data transmission delay, and is superior to RAND_D, HILBERT, and TCM. However, the algorithmic complexity of SCA_SM is relatively high. Therefore, the next goal is to study the optimization model and heuristic method of each mobile sensor node to solve the optimization model based on local information. Then optimization solution of each mobile sensor node is obtained, and it reduces the complexity of the algorithm.



---

*Source: 7080249-2019-07-08.xml*