Abstract

Wireless sensor nodes have the characteristics of small size, light weight, simple structure, and limited energy. They are random during deployment in the monitoring area, and the location of nodes is uncertain after deployment. It is easy to have uneven node distribution, resulting in dense nodes in some areas and sparse nodes in some areas. In the area with dense nodes, the monitoring area is covered repeatedly due to the distance between nodes which is too close. In the area with sparse nodes, the problem of covering blind areas appears due to the distance between nodes which is too far. Aiming at the complex structure of underwater wireless sensor networks, a coverage algorithm based on adjusting the nodes spacing is proposed. The algorithm calculates the reasonable distance between adjacent nodes before the wireless sensor node moves. The distance between wireless sensor nodes increases gradually. The simulation results show that the algorithm can make the clustered wireless sensor nodes disperse gradually by reasonably adjusting the distance between wireless sensor nodes, improve the coverage effect of wireless sensor networks, and reduce the energy consumption of wireless sensor nodes.

1. Introduction

Most of the existing coverage algorithms for wireless sensor networks are to solve various problems in the two-dimensional network environment [1]. The existing node deployment algorithms of underwater wireless sensor networks, including sea surface, seabed, and ocean node deployment, are studied and analyzed [2]. Summarize the advantages and disadvantages of existing node deployment algorithms for underwater wireless sensor networks. At present, the node deployment of underwater wireless sensor networks mainly focuses on the research of node deployment based on underwater acoustic communication [3]. Underwater acoustic communication has its own inherent shortcomings, such as low communication bandwidth and long delay time [4]. A basic problem of mobile wireless sensor networks is to improve the coverage of the monitoring area [5]. The quality of service of mobile wireless sensor networks depends on the coverage effect of the monitoring area, network connectivity, and data processing ability of mobile wireless sensor networks [6]. Each wireless sensor node may be in the working, sleeping, relay, idle, or fault state in its life cycle.

The most important difference between underwater wireless sensor networks and terrestrial sensor networks is the use of different communication transmission media [7]. Underwater communication is transmitted through underwater acoustic channels, while on the ground, it is transmitted through electromagnetic waves [8]. Underwater acoustic communication channel has serious attenuation and delay, which is easy to produce underwater ranging error, which has a great impact on the positioning of underwater wireless sensor nodes [9]. Underwater wireless sensor nodes are easily affected by water flow and other factors, and the movement of nodes is usually unpredictable, which leads to rapid changes in the location coordinates of nodes [10]. Because the node coordinates are not easy to determine, it will affect the effective coverage of the node to the sensing area [11]. Underwater wireless sensor nodes usually add more sensing devices and some underwater transceiver devices in hardware design, which increases the cost of underwater sensor devices [12]. There are many chemical components in seawater, and the node design needs to consider the waterproof and corrosion-resistant functions [13]. Compared with ground wireless sensor nodes, underwater wireless sensor nodes are more expensive [14]. Therefore, in terms of node deployment, the deployment of underwater wireless sensor nodes is not as dense as that of ground sensor nodes, so it is more important to reasonably adjust the location of nodes. Underwater communication channel has intermittent characteristics. Underwater wireless sensor nodes need to cache data, which has certain requirements on the storage capacity of underwater sensor nodes [15]. Moreover, the computing power of wireless sensor nodes is limited, which makes underwater wireless sensor networks adopt location algorithms with less resource consumption and low complexity.

According to the problem of the underwater wireless sensor networks, a coverage algorithm based on adjusting node spacing (CA-ANS) is proposed in this article.

The main contributions of this article are as follows: (1)The existing coverage algorithms for underwater wireless sensor networks are summarized and analyzed(2)The problems of existing coverage algorithms for underwater wireless sensor networks are pointed out(3)An improved coverage algorithm for underwater wireless sensor networks is proposed in this article

The main structure of this article is organized as follows: (1)The research background is introduced in Section 1(2)The existing related work is analyzed in Section 2(3)This article algorithm is described in Section 3(4)The simulation analysis is given in Section 4(5)This article is summarized in Section 5

In order to solve these problems, Priyadarshini and Sivakumar [16] proposed a new method to achieve maximum coverage and maximum connectivity in mobile underwater acoustic wireless sensor networks (MUAWSN), using the random cluster deployment of sensors in MUAWSN. In MUAWSN, the coverage blind area problem occurs because the node is damaged or the number of active nodes is lower than the threshold limit. An energy prediction algorithm is proposed, which improves the maximum coverage and connectivity of data transmission by analyzing the sample values of known parameters on the water surface. Due to the mobility of water caused by wave, wind, ocean current, network coverage, and connection performance, the topology will change. The random mobility of nodes is stretched in two-dimensional space, so as to obtain the maximum coverage and connectivity in three-dimensional space.

With the change of monitoring tasks and requirements, there will be a large number of blind areas covered by underwater monitoring, and the traditional network repair strategy cannot be applied to the changing underwater monitoring tasks and the harsh multiconstraint three-dimensional underwater environment. It is of great significance to meet the diversified monitoring needs in the harsh and dangerous three-dimensional underwater environment. Multiple autonomous underwater vehicles (multi-AUVs) have strong adaptability and flexibility in dangerous and harsh three-dimensional underwater environment. Zhuang et al. [17] proposed the repair model of underwater monitoring coverage blind area under various constraints. The multiagent event coverage hole repair (MECHR) algorithm combining multiagent strategy and diversity archiving strategy is used to repair the underwater monitoring coverage blind area in UWSNs. The algorithm completes the subtasks symmetrically through information exchange and interactive operation with other agents. The algorithm can adapt to a variety of harsh scenes and multiconstraint three-dimensional underwater environment. The effect of MECHR algorithm is verified by underwater repair simulation experiment. The algorithm can adapt to the changing three-dimensional underwater monitoring environment.

The development of wireless sensor networks in smart cities shows that the deployment of wireless sensor nodes in three-dimensional space is very important, which can affect the quality of service of wireless sensor networks. With the rapid development of smart city, Priyadarshi and Gupta [18] discussed the mathematical model of maximum space coverage obtained by nonlinear optimization method in three-dimensional space and obtained the number of nodes required for the maximum monitoring area of network coverage through calculation and derivation of mathematical formula. A three-dimensional network monitoring area coverage and node deployment based on three-dimensional structure is proposed. The deterministic deployment scheme can maintain the mathematical model of monitoring area coverage effect by using a small number of nodes. The monitoring area in the network is divided into three-dimensional grids, and the nodes are deployed according to the mathematical model of wireless sensor network coverage. Compared with the traditional three-dimensional structure node deployment method and tetrahedral structure node deployment scheme, the number of nodes used in this algorithm can be less.

Yao and Du [19] mainly studied the placement strategy of underwater monitor in a complex underwater environment model to obtain the most effective deployment position after calculation. Input the three-dimensional underwater topographic map. The negative gradient direction is the fastest descent direction, a complex underwater terrain can be fitted into a differentiable function, and the minimum value of the function can be found to determine the low-lying area of the underwater terrain. The placement strategy of underwater monitor depends on the gradient direction algorithm, which solves the problem of maximum underwater coverage: find the maximum coverage set of underwater monitor in three-dimensional workspace. Using the duality principle of the maximum split subset of the cover set and the cover set, the target set is found, and finally, the suboptimal cover set is found. Compared with random deployment algorithm, this algorithm has higher network coverage quality.

Underwater wireless sensor networks (UWSNs) have been widely used in environmental monitoring, military monitoring, data acquisition, and other fields. The deployment of sensor nodes in three-dimensional underwater wireless sensor networks is a key problem, but it is a challenging problem due to the complexity of underwater environment. Yan et al. [20] proposed a growth ring nonuniform node depth adjustment self-deployment optimization algorithm to improve the coverage and reliability of UWSNs and solve the problem of energy blind area. A construction scheme of sensor node connection tree structure based on growth ring style is proposed, and a global optimal depth adjustment algorithm aiming at maximizing coverage utilization and comprehensive optimization of energy balance is proposed. Initially, the nodes are scattered on the water surface to form a connected network on this two-dimensional plane. Then, starting from the sink node, a growth ring incremental strategy is proposed, which organizes the ordinary nodes into a tree structure and determines each root of the subtree. At the same time, with the goal of maximizing global coverage utilization and energy balance, all node depths are calculated iteratively. Finally, all nodes are dived to the calculation position at one time to build a three-dimensional nonuniform distribution and energy balanced underwater connected network. A series of simulation experiments are carried out. The simulation results show that under the condition of full connectivity and energy balance, the coverage and reliability of UWSN are greatly improved, and the problem of energy blind area is effectively avoided. Therefore, GRSUNDSOA can significantly prolong the life of UWSN.

In underwater wireless sensor networks, topology control has attracted extensive attention. Considering the complexity of underwater environment, Zhang et al. [21] adopted the topology model of three-dimensional dense network. First, partition units, clusters, and temporary control nodes are defined, and a clustering sleep scheduling algorithm is proposed. On this basis, a vulnerability repair algorithm considering the vulnerability of sensor nodes affected by external factors is proposed. The algorithm defines fault nodes, coverage vulnerability, coverage matrix, key locations, and supplementary nodes. The algorithm also uses the coverage matrix and vulnerability edge nodes to determine whether the coverage blind area needs to be repaired.

Most of the existing fence coverage studies assume that the sensor is deployed in a two-dimensional long thin strip area, in which the fence is a sensor connection belt from one end of the area to the other end, and the sensing areas of adjacent sensors overlap each other. However, the two-dimensional assumption cannot cover all application scenarios, such as underwater wireless sensor networks. Shen et al. [22] studied the problem of weak fence coverage in underwater wireless sensor networks. First, they analyzed how to determine that underwater wireless sensor networks can provide three-dimensional weak fence coverage and proposed a new and effective scheme to transform the three-dimensional weak fence coverage problem into a two-dimensional complete coverage problem. On this basis, an effective sensor allocation algorithm is proposed to construct weak fence coverage and minimize the total moving distance of all sensors in underwater wireless sensor networks. The simulation results verify the correctness of the analysis and show that the algorithm is better than the greedymatch algorithm.

Underwater wireless sensor networks (UWSNs) are widely used in resource exploration, pollution monitoring, tactical monitoring, and other fields. However, the complexity and diversity of underwater environment make it obviously different from terrestrial environment. In particular, the coverage requirements may be different in different underwater areas. However, due to the different coverage requirements, there is little work on the topology control of UWSNs. Therefore, Liu et al. [23] proposed two algorithms for the diversified coverage of UWSNs: (1) diversified coverage traversal algorithm, which adjusts the perception radius of nodes in turn, that is, only one node changes its perception radius in each round. (2) Diversified coverage radius increment algorithm increases the perceived radius of nodes, that is, in each round, multiple nodes can increase their perceived radius at the same time. Through mathematical analysis and simulation, the performance of tadc and riadc is analyzed. The results show that both tadc and riadc can achieve different coverage while minimizing energy consumption. In addition, tadc and riadc perform well in obtaining the best sensing radius and reducing message complexity, respectively. These advantages further show that tadc and riadc are suitable for small-scale and large-scale underwater wireless sensor networks, respectively.

Due to the limited battery capacity of sensor nodes, minimizing energy consumption is a potential research field of underwater wireless sensor networks (UWSNs). However, the existence of energy blind area and coverage blind area leads to the performance degradation of UWSNs in network lifetime and throughput. Latif et al. [24] designed a technology to overcome the shortcomings of the existing technology to solve the problem of energy blind area in depth-based routing technology. In addition to solving the problem of energy blind area, a coverage blind area repair technology is also proposed. In the dense deployment area, the perception range of nodes has redundancy and overlap. This technology makes use of the advantages of network redundancy and overlap to repair the blind area of network coverage in the process of network operation. Simulation results show that the two technologies can effectively save node energy and finally maximize the network lifetime and throughput at the cost of increasing delay.

With the extensive exploration and utilization of marine resources, the field of underwater wireless sensor networks (UWSNs) has attracted more and more attention of researchers. Due to the requirements of real-time remote data monitoring, underwater acoustic sensor network has become a preferred network to a great extent. In underwater acoustic sensor networks, the limited availability and nonrechargeability of energy resources and the relative inaccessibility of deployed sensor nodes for energy supplement make the development of a variety of energy optimization technologies necessary. Cluster is such a technology to improve system scalability and reduce energy consumption. In the unstable underwater environment, in addition to clustering, coverage and connectivity are also two important characteristics that determine the detection and communication of events of interest in underwater wireless sensor networks. Underwater communication can also use nonaudio communication technologies, such as radio frequency, magnetic induction, and underwater free space optics. Sandeep and Kumar [25] studied the clustering, coverage, and connectivity of underwater acoustic sensor networks; qualitatively compared their performance; and highlighted some key outstanding issues related to UWSNs. This article summarizes the existing clustering, coverage, and connectivity algorithms based on acoustic communication, which provides useful guidance for the research of UWSN from the perspective of other communication technologies.

The combination of wireless sensor networks (WSNs) and edge computing not only enhances its ability but also stimulates a series of new applications. As a typical application, three-dimensional underwater wireless sensor networks (UWSNs) have become a research hotspot. Wang et al. [26] first studied the minimum number of sensor nodes required to build a diversified coverage sensor network. According to different coverage requirements, a virtual force algorithm to enhance coverage is proposed to realize the uneven optimization of regional coverage. The effectiveness of the algorithm is verified by theoretical analysis and simulation experiments. Detailed performance comparison shows that K-ERVFA obtains better coverage in the subregion with high coverage, so as to realize the ideal diversified deployment of coverage. The sensitivity of the simulation parameters is analyzed, and the K-ERVFA is extended to the sparse area and time varying situation of the sensor.

The above algorithm does not consider the problem of hybrid deployment of anchor nodes, buoy nodes, and underwater vehicles. When a large number of different types of nodes are used for mixed deployment, it can not only effectively reduce the network cost but also improve the network coverage effect in complex environment.

3. Coverage Algorithm Based on Adjusting Node Spacing

3.1. Establish Mathematical Model

There are three different types of sensors in underwater hybrid wireless sensor networks. They are the anchor sensor fixed at the bottom through the iron anchor, the buoy sensor floating on the water surface through the buoy, and the underwater vehicle that can move freely in the water.

The first type of sensor is an anchor sensor fixed at the bottom of the water through an iron anchor. This type of sensor is fixed at the bottom of the water without moving. The monitoring effect is shown in the shaded area in Figure 1.

The position coordinates of the first type anchored sensor node in the monitoring area are . This type of sensor node cannot move after underwater deployment, and the position coordinates of this type of node will not change.

The second type of buoy sensor is a sensor fixed at the bottom of the water surface buoy. This type of sensor can move with the water surface buoy. The node monitoring effect is shown in the shaded area in Figure 2.

The position coordinates of the second type buoy sensor node in the monitoring area are . The movement of this type of sensor node can be realized through the movement of buoy, and this type of sensor node can only move along the -axis and -axis but cannot move along the -axis.

The third type of sensor is an underwater vehicle that can move freely in the water. This type of sensor can move freely in the water. The node monitoring effect is shown in the shadow area in Figure 3.

The position coordinates of the third type sensor node in the monitoring area are . The movement of this type of sensor node can be realized through the movement of underwater vehicle, and this type of sensor node can move along the -axis, -axis, and -axis. (1)Mathematical model of node binary perception

The calculation formula is as follows:

In formula (1), is the effect that the target point is perceived by the th sensor node [27]. (2)Mathematical model of node probability perception

The calculation formula is as follows:

In formula (2), is the probability that the target point is perceived by the th sensor node [28]. (3)Mathematical model of network coverage

The mathematical model of network coverage in the case of only one wireless sensor node is calculated as follows:

In formula (3), the length of the monitoring area is , the width is , the depth is , and the sensing radius of wireless sensor node is [29].

The mathematical model of network coverage jointly perceived by multiple nodes is calculated as follows:

In formula (4), is the total number of small grids perceived by at least one wireless sensor node and is the total number of small grids in all monitoring areas [30].

After the first type of anchor sensor is deployed, it sinks to the bottom of the water. The coordinate of the anchor sensor in the monitoring area is , , and is the total number of the deployed first type sensors.

After the second type of buoy sensor is deployed, it floats on the water surface. The coordinate of the buoy sensor in the monitoring area is , , and is the total number of the deployed second type sensors.

After the third type of underwater vehicle is deployed, it can move freely in the water. The coordinates of the underwater vehicle in the monitoring area are is the total number of the deployed third type sensors.

For the first type of anchor sensor, it is fixed at the bottom of the water after deployment and cannot move, so its movement scheme is not discussed. At this time , the coordinates of this type sensor are .

For the second type of buoy sensor, it can only move on the water surface; that is, it can only move along the -axis direction and -axis direction. At this time , the coordinates of this type sensor are .

3.2. Buoy Sensor Node Spacing Calculation Process

The second type of buoy sensor can only move on the water surface, and it can be simplified as node movement in a two-dimensional plane environment. By adjusting the distance between nodes, the monitoring area of repeated coverage can be reduced and the coverage optimization of the water surface area can be realized [31].

When the two nodes are too close, both nodes need to move.

After moving, the new coordinates of node and node are

When ,

In formulas (5) to (16), is that node obtains the displacement component along the -axis from node .

is that node obtains the displacement component along the -axis from node .

is that node obtains the displacement component along the -axis from node .

is that node obtains the displacement component along the -axis from node .

is the ideal distance between nodes in the th cycle.

is the distance between node and node .

is the distance between node and node .

is the position coordinates of node on the -axis.

is the position coordinates of node on the -axis.

is the position coordinates of node on the -axis.

is the position coordinates of node on the -axis.

and are the new position coordinates after the node is moved.

and are the original position coordinates of the node before moving.

and are the new position coordinates after the node is moved.

and are the original position coordinates of the node before moving.

In order to avoid repeated movement of nodes, each node moves only once in each cycle process. Therefore, for all nodes in the monitoring area, a set is constructed before the beginning of each cycle, and is the total number of nodes.

After the beginning of the th cycle, find the sum of the two closest nodes and in the set. If , the cycle ends, , and enter the next cycle process. If , nodes move according to formulas (5) to (16). After the nodes move, delete the two nodes from the set , and find the nearest pair of nodes and among the remaining nodes.

It is assumed that the energy of the node before moving is and after moving is . When the energy of the node is lower than , the node does not participate in the movement and only carries out data collection and transmission; the energy of the node before moving is and after moving is . When the energy of the node is lower than , the node will not participate in the movement but only collect and transmit data.

In formulas (9) to (12), add the energy consumption module and deform the formula to obtain

In formulas (17) to (20), is the parameter of adjusting the moving distance of the node in the process of node movement, which is related to the network environment and the characteristics of the node [32].

In formulas (21) and (22), is the energy consumed per unit distance during node movement [33].

3.3. Buoy Sensor Node Movement Process

Step 1. Randomly deploy buoy sensor nodes on the water surface in the monitoring area where length is , width is , and each sensor node has the same parameters. At this time, .

Step 2. Each sensor node uses the positioning function to obtain its own location and send its own location information to the sink node.

Step 3. The sink node constructs a node set according to the location of sensor nodes in the monitoring area.

Step 4. Find the two closest nodes and in set .

Step 5. If , nodes move according to formulas (17) to (20).

Step 6. When any node moves outside the monitoring area, the node will not move.

Step 7. When the nodes and finish moving, they are removed from the set , and return to step 4.

Step 8. If , .

Step 9. When , return to step 3 and restart the cycle process.

Step 10. When , calculate the network coverage and residual energy of all nodes, and the algorithm ends.

3.4. Buoy Sensor Node Movement Process Pseudocode
(1) Input: length, width, j, ,
(2)  If then
(3)  Nodes are moved according to formula (17) to formula (20)
(4)  End if
(5)  If then
(6)  Nodes do not need to be moved
(7)  End if
(8) Output: The new position of the nodes
3.5. Buoy Sensor Node Movement Process Complexity

Because step 9 returns to step 3 according to the number of cycles, the time complexity of this algorithm is determined by the number of nodes and the number of cycles . So the time complexity is in buoy sensor node movement process.

3.6. Underwater Vehicle Spacing Calculation Process

After the second type of buoy sensor is moved, the third type of underwater vehicle starts to move. Because the first type of anchor sensor and the second type of buoy sensor are not moving at this time, these two sensors can be regarded as fixed sensors, and only the third type of underwater vehicle can be moved on this basis.

According to the symmetry, the above algorithm is extended to the three-dimensional underwater network environment, and the following calculation formula is obtained.

When the two nodes are too close, both nodes need to move.

The coordinates of the new nodes and are

When ,

In formulas (23) to (34), is that node obtains the displacement component along the -axis from node .

is that node obtains the displacement component along the -axis from node .

is that node obtains the displacement component along the -axis from node .

is that node obtains the displacement component along the -axis from node .

is that node obtains the displacement component along the -axis from node .

is that node obtains the displacement component along the -axis from node .

is the ideal distance between nodes in the th cycle.

is the distance between node and node .

is the distance between node and node .

is the position coordinates of node on the -axis.

is the position coordinates of node on the -axis.

is the position coordinates of node on the -axis.

is the position coordinates of node on the -axis.

is the position coordinates of node on the -axis.

is the position coordinates of node on the -axis.

, , and are the new position coordinates after the node is moved.

, , and are the original position coordinates of the node before moving.

, , and are the new position coordinates after the node is moved.

, , and are the original position coordinates of the node before moving.

In order to avoid repeated movement of nodes, each node moves only once in each cycle process. Therefore, for all nodes in the monitoring area, a set is constructed before the beginning of each cycle, and is the total number of nodes.

After the beginning of the th cycle, find the sum of the two closest nodes and in the set . If , the cycle ends, . Start to enter the next cycle process. If , nodes move according to formulas (5) to (22). After the nodes move, delete the two nodes from the set , and find the next pair of nearest nodes and in the remaining nodes.

It is assumed that the energy of the node before moving is and after moving is . When the energy of the node is lower than , the node does not participate in the movement and only carries out data collection and transmission; the energy of the node before moving is and after moving is . When the energy of the node is lower than , the node will not participate in the movement but only collect and transmit data.

In formulas (29) to (34), add the energy consumption module and deform the formula to obtain

In formulas (41) to (46), is the parameter of adjusting the moving distance of the node in the process of node movement, which is related to the network environment and the characteristics of the node [34].

In formulas (47) and (48), is the energy consumed per unit distance during node movement [35].

3.7. Underwater Vehicle Node Movement Process

Step 1. Randomly deploy underwater vehicles in the monitoring area where length is , width is , and depth is . At this time, .

Step 2. After deployment, each sensor node uses the positioning function to obtain its own location and send its own location information to the sink node.

Step 3. The sink node constructs a node set according to the location of underwater vehicle nodes in the monitoring area and finds the two closest nodes and in the set .

Step 4. If , nodes move according to formulas (23) to (28).

Step 5. If any node is moved outside the monitoring area after the movement, the node will not move.

Step 6. Remove the two nodes and from the set .

Step 7. Find the next pair of two nearest nodes and in the remaining nodes of set , and return to step 4.

Step 8. If , .

Step 9. When , go to step 3 and restart the cycle process.

Step 10. When , calculate the network coverage and residual energy of all nodes, and the algorithm ends.

3.8. Underwater Vehicle Node Movement Process Pseudocode
(1) Input: length, width, depth, k, ,
(2)  If then
(3)  Underwater vehicle nodes are moved according to formula (23) to formula (28)
(4)  End if
(5)  If then
(6)  Underwater vehicle nodes do not need to be moved
(7)  End if
(8) Output: The new position of underwater vehicle nodes
3.9. Underwater Vehicle Node Movement Process Complexity

Because step 9 returns to step 3 according to the number of cycles, the time complexity of the entire algorithm is determined by the number of nodes and the number of cycles . So the time complexity is in underwater vehicle node movement process.

4. Simulation Analysis

In this article, software is used for simulation verification, and the relevant parameters are as follows.

The length of the monitoring area , width of the monitoring area , depth of the monitoring area , node communication radius , node sensing radius , parameter , parameter , node initial energy , node movable minimum energy , cycle times , and .

In order to verify the effectiveness of this algorithm, under the same parameter conditions, CA-ANS algorithm is compared with MECHR algorithm, GRSUNDSOA algorithm, HMB-SAA algorithm, and K-ERVFA algorithm.

Because the anchor sensor cannot be moved after deployment, if it is widely used, the coverage effect of the monitoring area will not be significantly improved. Although the buoy sensor can move, its moving range is limited and it can only move on the water. Therefore, after a large number of deployment, it can only improve the coverage effect in a limited range. The underwater vehicle that can move freely can move according to the monitoring needs. If it is reasonably deployed after extensive use, it can quickly and effectively improve the coverage effect of the monitoring area.

When the number of anchored sensors , 20, 30, 40, 50, 60, 70, 80, and 90; the number of buoy sensors , 40, 60, 80, 100, 120, 140, 160, and 180; and the number of underwater vehicles , 80, 120, 160, 200, 240, 280, 320, and 360, the simulation is carried out to compare the coverage effect and energy consumption of wireless sensor nodes after moving. The data set provided by reference [36] is used for simulation. The simulation results are shown in Figures 421. In order to better observe the displacement effect before and after node movement, this article uses three-dimensional view to explain. (1)When , , and (2)When , , and (3)When , , and (4)When , , and (5)When , , and (6)When , , and (7)When , , and (8)When , , and (9)When , , and

From Figures 421, it can be seen that with the increase of the number of nodes, the network coverage and node energy consumption under different algorithms increase. This algorithm adjusts the distance between nodes and considers the energy consumption of nodes. In the process of node movement, for the node with less residual energy, reduce its moving distance to avoid its failure due to energy consumption. Therefore, the coverage algorithm based on adjusting the node spacing proposed in this article can effectively improve the network coverage and reduce the energy consumption of nodes in the network. At the same time, the distance between nodes is gradually increased, avoiding the situation of invalid round-trip movement.

5. Conclusion

In order to solve the coverage problem of 3D underwater wireless sensor network, an underwater wireless sensor network coverage algorithm based on adjusting the node spacing is proposed in this article. The algorithm uses three different types of nodes. By reasonably adjusting the distance between nodes, the nodes in the dense area are gradually dispersed, so as to achieve the goal of improving the effective coverage area of the monitoring area. The reasonable distance between nodes is calculated before each cycle, and the distance between nodes is gradually increased, which can avoid the invalid movement of nodes and reduce unnecessary movement of nodes. The simulation results show that the algorithm improves the coverage of wireless sensor networks and reduces the energy consumption of wireless sensor nodes.

Data Availability

The data used to support the findings of this research are available from the corresponding authors upon request.

Conflicts of Interest

The authors declare that there are no conflicts of interest.

Acknowledgments

This research was supported in part by the National Natural Science Foundation of China (No. 61375021) and NUAA Fundamental Research Funds for the Central Universities (No. 3082020NZ2020017).