The Mobile Water Quality Monitoring System Based on Low- Power Wide Area Network and Unmanned Surface Vehicle

The increasingly serious water pollution problem makes efficient and information-based water quality monitoring equipment particularly important. To cover the shortcomings of existing water quality monitoring methods, in this paper, a mobile water quality monitoring system was designed based on LoRa communication and USV. In this system, the USV carrying water quality sensors was used as a platform. Firstly, the LoRa network is used to monitor water quality over a large area. Secondly, the unmanned surface vessel controls the position error within ±20m and the velocity error within ±1m/s based on the Kalman filter algorithm. Thirdly, the genetic algorithm based on improved crossover operators is used to determine the optimal operational path, which effectively improves the iterative efficiency of the classical genetic algorithm and avoids falling into local convergence. In the actual water surface test, its packet loss probability within a working range of 1.5 km was below 10%, and the USV could accurately navigate according to the preset optimal path. The test results proved that the system has a relatively large working range and high efficiency. This study is of high significance in water pollution prevention and ecological protection.


Introduction
Today, the water quality in coastal and inland lakes is deteriorating under the influence of increasing human social and economic activities. The ill-being water environment has caused irreparable losses to human health, production, and living, so that the protection of the water ecological environment demands immediate attention [1].
The data collection and monitoring of the water area take an important part in the protection and management decision-making of the water ecosystem. In spite of the research achievements, several problems in the field of water quality monitoring still need to be tackled.
(i) Monitoring scope: for large natural reserves of hundreds or even thousands of square kilometers, expensive economic costs will be incurred if monitoring and sensing device is arranged.
(ii) Remote location of the monitored area: special communication infrastructure should be erected for monitoring device in such areas.
(iii) Daily maintenance of device: a traditional monitoring device needs manual inspection and maintenance one by one, which will cause high human resource costs [2]. To address these issues, this paper investigates efficient water quality monitoring methods.

Related Works
There are three main approaches to current water quality monitoring: labor-intensive manual sampling, construction of fixed monitoring stations in monitoring waters, and mobile water quality monitoring through autonomous robots such as unmanned boats. Current water quality monitoring methods based on the second approach are many; for example, Ruan and Tang combined solar charging and wireless sensor network technology to design an energy-saving low-carbon water quality monitoring system [3]. Nam et al. designed a wireless sensor network system based on CDMA (Code Sector Multiple Access) and ZigBee technology when monitoring the water environment inhabited by coastal fish [4]. Wiebke et al. [5] deployed a wireless sensor network in coastal fishing grounds with low-cost compact buoys equipped with water quality monitoring sensors to analyze the impact of water quality parameters on aquaculture. These methods above have significant drawbacks; they can only monitor fixed locations and still require manual repositioning of node locations if the monitoring target is to be changed. In response to above drawbacks, many studies have been made on the application of unmanned vessels for water quality monitoring. Cao et al. designed a 4G technology-based automatic navigation water quality monitoring unmanned boat, which can navigate to the preset monitoring point and collect water quality information at the location [6]. Siyang and Kerdcharoen realized the upload and storage of water quality monitoring data from unmanned boat based on Zigbee network, and the effective monitoring distance is about within 300 m [7]. Yang et al. in Taiwan designed a double-hulled water quality monitoring unmanned boat, which is stable and able to conduct water sampling on the basis of water quality collection. Bălănescu et al. combined blockchain technology with unmanned boat water quality monitoring work, providing a high security data collection, transmission, and management scheme [8]. However, these current research results are either limited by the shortcomings of ZigBee or WiFi, such as short communication distance and weak antiinterference ability, or limited by the high power consumption of 4G or GPRS, and the need for additional fees.
To cope with these existing problems, the emerging LoRa technology that boasts low cost, long communication distance, and strong endurance was introduced in this paper [9]. Further, the USV can navigate autonomously on the water surface, by which the efficiency of water surface working can be enhanced to a great degree [10]. In this paper, a mobile water quality monitoring system that works based on USV and LoRa was designed to effectively cover the shortcomings of existing methods. Featuring good energy-saving performance, low cost, and wide monitoring range, this system can be used to collect and monitor the data of the target water area by any environmental protection agency and individual, presenting extremely important research significance in the prevention and treatment of water pollution and the construction of a good aquatic ecology.

Architecture of the Mobile Water Quality
Monitoring System The mobile water quality monitoring system proposed in this paper integrates path planning, autonomous navigation, real-time water quality monitoring, and remote monitoring. This system is composed of parts: shipboard system, LoRa gateway, and monitoring terminal. The system architecture is shown in Figure 1. First, the shipboard system mainly consists of positioning and navigation system, power system, LoRa communication system, and main control board. It has the functions of obtaining GPS positioning coordinates, reading heading, and speed information of unmanned surface vessels. The shipboard system interacts with the shore-based monitoring platform for data commands through LoRa network and with the water quality monitoring system for control commands through RS232 interface. The shipboard system according to the shore-based monitoring platform to send control commands for independent cruise or remote control action controls the water quality monitoring system for water quality testing.
Second, the water quality detection system consists of a main control board and four elements of water quality sensors such as temperature, turbidity, pH, and conductivity. It receives the instructions that sent by the shipboard system to collect water body information on a regular basis.
Third, the shore-based platform is mainly developed based on windows operating system, including monitoring software programs and data processing algorithms. The host computer is mainly based on the human-computer interaction interface, completing LoRa communication, algorithm call, map display, data sending and receiving, and display functions; the algorithm application is mainly through the C++ call MATLAB algorithm, sending the calculated operation path coordinates to the unmanned ship, so as to achieve the application of multipoint monitoring path planning.
The shipboard system of the USV is designed with a catamaran with a length of 0.8 m, a width of 0.68 m, and a maximum speed of 8 km/h. Structured with two parallel hulls of equal size, the catamaran has a wider beam and a shallower draft than a monohull, making the course of the entire ship more stable [11]. The structure of the unmanned surface vessel is shown in Figure 2.
Two DC motors are provided to serve as the kinetic drive device of the USV and coordinated with the motor driver; the hull steering can be adjusted through the differential control method. The USV is equipped with the positioning module ATK1218-BD and the attitude detection module MPU9250. The loose coupling integrated navigation algorithm was introduced to calculate the hull attitude and position. To meet the basic monitoring requirements, temperature, pH, turbidity, and conductivity were selected as the monitoring elements in this paper. The E-201C pHwater temperature composite sensor, the TSW-30 turbidity sensor, and the DJS-12 conductivity electrode sensor are employed and paralleled via RS485 communication protocol, and these sensors can be replaced and configured according to actual use condition. STM32F103ZET6 acts as the central controller to complete data collection and calculation.
The LoRa communication technology used for USV can effectively expand the monitoring scope and save costs. In this paper, close attention was paid to the design of the ship-shore LoRa communication system and the path 2 Wireless Communications and Mobile Computing planning algorithm of USV was improved. In addition, ONENET-China Mobile IoT Development Platform-was used as the monitoring terminal of this system to help realize the device monitoring and configuration, real-time data monitoring, data storage, and other functions [12].

LoRa Communication System
4.1. Shipboard LoRa Nodes 4.1.1. Communication Node Hardware. This system is designed with LoRa radio frequency module to receive and transmit the water quality data. The programming was conducted in the MCU to control the LoRa module and send the encoded information through the module. The integrated +20 dBm power amplifier is provided to ensure that the long-distance wireless communication is available under the condition of sensitivity as low as -148 dBm. The circuit schematic diagram of the LoRa communication module is shown in Figure 3.

Communication Node
Software. In this study, the control program of the STM32 single-chip microcomputer was designed in the Keil integrated development environment and finally programmed to the MCU to complete the development after compilation, simulation, and debugging. The program was written to complete such functions as data collection, signal conversion, and uploading data. The flow of node program is shown in Figure 4. After the program starts, it is divided into the following steps: first, initialize the device and make the LoRa module connect to the network; second, enter the main program and wait for the timer to trigger the detection task; third, complete the trigger and collect the water body data; fourth, carry out MCU data processing and ADC conversion; fifth, store the data in the buffer after processing is completed and wait for sending; sixth, after sending, enter the sleep state and wait for the timer to trigger the detection command again.
4.2. Shore-Based LoRa Gateway 4.2.1. Gateway Hardware. The embedded gateway designed in this study was composed of an industrial-control core board, a LoRa gateway module, and a 4G LTE mobile data board, as shown in Figure 5.
In order to cope with large-scale distributed monitoring scenarios, it is necessary to extend the downlink channel of gateway. A symmetrical channel processor refers to the coexistence of multiple SX1278s by combiners based on a communication channel provided by the existing SX1278 RF chip. Connect the module with the serial port of LoRa gateway, and control frequency band, power, spreading factor, and other RF parameters of each channel by application program to operate the serial port, and fix all channels of modules as downlink channels. This makes up for the lack Gyro Accelerometer Integrated navigation system

Gateway
Software. The workflow of the gateway in this study is shown in Figure 6. After the gateway program starts, it is divided into the following steps: first, initialize the gateway device and check whether the initialization is successful; second, the gateway enters listening mode; third, determine whether to obtain the send request; fourth, receive the packet after successfully obtaining the send request, otherwise continue listening; fifth, parse the packet and determine whether the parsing is successful; sixth, if the parsing is

Ship-Shore Interaction LoRa Communication Protocol.
The parsing of the communication protocol by the onboard system is mainly implemented by a finite state machine. We preset three states: stop, autonomous, and remote control. When the shipboard system receives the protocol frame from the shore-based monitoring platform, it parses the operation mode field in the protocol. The finite state machine further processes the data in the data frame by the different operational states. In the case of remote control mode, the speed and heading information in the data frame is parsed and the remote control procedure is executed. In the case of autonomous mode, the GPS coordinates of the target point in the data frame are resolved. Then, the heading is calculated based on the current GPS coordinates, and navigation to the target point is performed. In case of stop mode, the operation is terminated. During the operation of the unmanned surface vessel, water body data and navigation status are regularly collected and uploaded to the user monitoring platform. The user monitoring platform receives the data packets and parses, displays, and stores them. This protocol frame contains 64 bytes, composed of data frame header, data packet length, device type, target ID number, operating mode, GPS data, pose data, speed data, water quality sensor data, reserved bits, XOR check bit, and data frame tail.

Protocol Frame Sent by Monitoring Terminal.
The communication when the monitoring terminal sends data to the USV node was in line with the protocol frame format shown in Figure 8.
The protocol frame contains 21-28 bytes, composed of data frame header, data packet length, device type, target ID number, operating mode, direction and speed data, target GPS position, reserved bit, sensor switch bit, XOR check bit, and data frame tail.

Wireless Communications and Mobile Computing
The protocol frame is a data frame with variable length. When the remote control mode is selected as the working mode, the direction and speed data were transmitted in the data bit, and when the automatic working mode was selected, the target GPS location data were transmitted in the data bit.

Integrated Navigation Method for USV
For water quality monitoring cruise operations, the navigation algorithm is crucial. GPS navigation is vulnerable to interference from the external environment and limited by the low update frequency. It cannot meet the demand for continuous and stable positioning. The inertial navigation method calculates position and velocity by direct integration of inertial module measurement information data, and the accumulated error will occur and gradually increase with time. To address the above problems, we use an improved integrated navigation method based on the Kalman filter to achieve the fusion of GPS and inertial data. It can overcome the shortcomings of inertial sensor dispersion over time. The inertial sensors provide the acceleration and angular velocity of the ship, and the speed and position information of the ship can be calculated using the laws of physics. The Kalman filtering algorithm reduces the effect of cumulative errors while reducing the complexity of implementation. This improved integrated navigation method has the advantages of simple structure and small computational effort, which is well suited for low-cost unmanned ship navigation applications. Its schematic block diagram is shown in Figure 9.
Neglecting the velocity error and position error of the sky direction, the state variables of the combined navigation are: where φ E , φ N , φ U denote the platform angle error in the east, north, and sky directions, respectively; ∂V E , ∂V N denote the velocity error in the east and north directions, respectively; ∂L, ∂λ denote the longitude and latitude error, respectively; ε bx , ε by , ε bz denote the constant drift of gyroscope in the east, north, and sky directions, respectively; and Δ x , Δ y , Δ z denote the constant drift of acceleration in the east, north, and sky directions, respectively.
The system noise vectors are W = ω εE , ω εN , ω εU , ω aE , ω aN , 0, 0, 0, 0, 0, 0, 0, 0 where ω εE , ω εN , ω εU denote the random drift of the gyroscope in the east, north, and sky directions, respectively, and ω aE , ω aN denote the random drift of the accelerometer in the east and north directions, respectively. Assume that the gyroscope and accelerometer drift obey Gaussian distribution, that is, Also considering the unmanned ship work actual, the system works in the horizontal plane; then, the system state equation is where V E , V N indicate the speed of the unmanned ship in the east and north directions, respectively; ω ie indicates the angular velocity of the earth's rotation; and f E , f N , f U indicate the specific force felt by the accelerometer in the east, north, and sky directions, respectively. Combining the above equations, the system equation of state can be written aŝ whereXðtÞ indicates the estimated state, FðtÞ indicates the state matrix, XðtÞ indicates the current state, and WðtÞ indicates the noise vectors. In the navigation system, there are two groups of observation equations: one group is the position observation value, which is the difference between the latitude and longitude information given by the inertial guidance system and the corresponding position information given by the GPS receiver; the other group of observation value is the difference between the velocity in each direction given by the two systems.
The position measurement information of INS can be expressed as the sum of the true value and the error:

Wireless Communications and Mobile Computing
Similarly, the position information of GPS can be expressed as the sum of the true value and the error: Then, the position observation equation is

Similarly, the velocity observation equation of INS is
6. Study on USV Path Planning Based on Improved Genetic Algorithm 6.1. Problem Description. Path planning is the key technology for a mobile water quality monitoring system to work efficiently. The available optional paths from the starting point to the end point in the water quality monitoring were countless. This paper is aimed at finding out the optimal working path with high efficiency and energy saving as indicators.
Based on the working characteristics of the USV traversing multiple monitoring points over the course of water quality monitoring, the water quality monitoring process was abstracted as the Traveling Salesman Problem (TSP) in this paper. Observe Figure 10; the essence of the problem is to find a Hamilton loop with the smallest weight in a weighted completely undirected graph.
The classic TSP could be described as follows: when the number of target cities N and the distance between any cities are all known, the shortest path traversed all cities once and only once and returned to the starting city [13]. The problem can be described via the following mathematical model. Len where N is the number of cities, D is the distance matrix, d ij is the distance between two cities, Inf is a large enough positive number, i, j are the city numbers, Tour is the set of paths, T pðlÞ is the lth city in the path, and LenðT p Þ is the total length of the path T p . It can be seen that the optimal solution of TSP is the minimum value of solving LenðT p Þ. Then, an   Node  1  2  3  4  5  6  7   1  Inf  29  82  46  68  52  15  2  29  Inf  55  46  42  43  43  3  82  55  Inf  68  63  20  23  4  46  46  68  Inf  82  15  72  5  68  42  63  82  Inf  74  23  6  52  43  20  15  74  Inf  61  7  15  43  23  72  23  9 Wireless Communications and Mobile Computing improved genetic algorithm was introduced in this paper to solve this problem.
6.2. Basic Genetic Algorithm Principle. In this paper, the basic genetic algorithm is improved so as to calculate the optimal path of the unmanned ship. The basic genetic algorithm is one kind of iterative algorithm, which is an intelligent computational model to complete the simulation of biological evolution process in nature with the help of computer technology. Compared with the traditional algorithms, the genetic algorithm not only has the characteristics of selflearning, self-organization, and self-adaptation but also has high robustness and wide applicability, which can effectively deal with the complex problems that are difficult to be solved by traditional optimization algorithms without the limitation of problem nature.
The main operators that manipulate chromosomes in genetic algorithms are as follows: population initialization operator, selection operator, crossover operator, and mutation operator. The population initialization operator prepares for the improvement of the feasible solution and the iterative process of the algorithm, mainly for the task of transforming the feasible solution of the problem into the corresponding chromosomes based on the coding scheme. The purpose of the selection operator is to select individuals of good breed. The operator is based on the evaluation of the fitness of the individuals and, according to a specific method, selects a part of the contemporary population with high fitness in preparation for the generation of the new generation. The crossover operator is an important operator that enables genetic algorithms to search for new solutions over a very wide space, in order to obtain new and better individuals. The crossover process is a process performed by a certain probability to replace and reorganize some genes of the chromosomes of the individuals already selected from the population into new individuals. The mutation operator ensures the diversity of individuals in the population, thus suppressing to some extent the problem of early convergence in the genetic algorithm.
The basic execution steps of the genetic algorithm are as follows: (Step 1) In population initialization, first, complete the setting of the control parameters of the genetic algorithm, and then establish the first generation population using the population initialization operator. ( Step 2) Calculate the individual fitness. Construct the corresponding fitness function, and calculate the fitness of all individuals in the population according to the problem being addressed.
Genetic algorithm with improved crossover operator Input: N, G, FðtÞ Output: Achieve the chromosome with the best fitness value 1: Initialize the population 2: t ⟵ 0 3: while t < = G do 4: Calculate fitness F(t) 6: end for 7: for i = 0 ⟶ N do 8: Selection operations 9: end for 10: for i = 0 ⟶ N/2 do 11: Get parent chromosomes p1, p2 12: Select the crossover point and cut the parent chromosome into three segments 13: Select the first segment of p1 and the last segment of p2 insert into offspring 1 14: Select the first segment of p2 and the last segment of p1 insert into offspring 2 15: Calculate  10 Wireless Communications and Mobile Computing ( Step 3) Determine whether to terminate the iteration. When the number of evolutionary generations is less than the maximum number of iterations, Step 4 is executed; otherwise, the iteration is terminated and the optimal individuals in the population are output.
(Step 4) Execute the selection operation. Use the selection operator to select some individuals from the population. ( Step 5) Execute the crossover operation. Compare the crossover probability, and perform the update operation on the selected individuals using the crossover operator.
(Step 6) Perform the variation operation. In contrast to the mutation probability, a new generation of population is obtained by performing the mutation operation on the selected individuals, updating the evolutionary generation and moving to Step 2.
In order to be able to make the offspring obtained by crossover jump out of the local optimal solution while retaining the excellent genes of the parent, this paper proposes an improved triple crossover operator, which divides the parent chromosome into three segments and then compares the recombination, so as to obtain better individuals.
6.3. Improved Genetic Algorithm. The high efficiency of the basic genetic algorithm is mainly attributed to its operators: replication, crossover, and mutation [14]. But the basic genetic algorithm is still exposed to such shorting such as poor local search ability and slow convergence speed [15]. In this paper, the iterative efficiency of genetic algorithm in the path planning of USVs was lifted by improving the multipoint crossover operator.
In the process of species initializing, each chromosome was described as a series of nodes (each node was a monitoring target point). If there were seven monitoring target points in the job, the length of the chromosome would be set to 7, as shown in Figure 11. The cost matrix could be used to calculate the distance cost between two monitoring target points.
The fitness function that used the basic genetic algorithm was reserved:

Wireless Communications and Mobile Computing
where f ðxÞ is the objective function of the monitoring path cost described by the chromosome. The smaller objective function value would lead to the larger fitness function value and would be closer to the desired optimal solution.
The new solution space could be completed by crossover operations. First, the father generation was randomly selected, and then position 3 and position 7 were set as the intersection point; the father generation chromosome was cut into three segments and named as the first segment, the middle segment, and the tail segment. To determine the optimal chromosome part of the father generation, these three segments were calculated and compared, and finally, the relatively good offspring was acquired. The flow chart of the entire improved crossover process is shown in Figure 12.
(Step 1) Select p1 and p2 from the father generation randomly, and measure their costs. The cost matrix is shown in Table 1, and the random generation chromosomes are shown in Figure 13. group with the lower cost (for example, in 5-7-6 and 6-1-3, the former that had a lower cost was selected) as the middle section of offspring 1. Select the tail segment from p2 again to fill in the size of the chromosome. Then, create offspring 2 in the same way. Select the first segment of p2 to compare, and select the smaller middle segment of p1 and p2, and finally select the last segment of p1. The offspring changes are shown in Figure 14. ( Step 3) Delete the duplicate nodes in the offspring. As shown in Figure 15, delete node 3 of offspring 1 and node 1 of offspring 2.
(Step 4) Search for the missing node. Insert the missing node 1 in offspring 1, and compare it with the first and last nodes to acquire the one with a smaller cost. For example, the cost of 1-4 was 46, and the cost of 2-1 was 29. Therefore, node 1 was inserted after node 2, and the same steps were applied to offspring 2. The resulting offspring is shown in Figure 16.
The pseudocode of the algorithm is shown in Algorithm 1, where N is the number of individuals in the population, G is the number of iterations, and FðtÞ is the fitness value.

Experimental Results and Analysis
In this chapter, we mainly conducted 4 sets of experiments. First, we conducted computer simulations on the integrated navigation algorithm and path planning algorithm proposed above; second, we controlled the communication distance and conducted experiments on the LoRa communication quality; third, we used unmanned surface vessels for actual surface operations. And we compared and analyzed the actual path and the expected path; fourth, we collected a set of water quality data at the target point in the actual operation and made an analysis of the experimental results. tem designed above, a simulation study was carried out to illustrate the simulation results with actual data. Assume that the first order Markov drift of gyroscope is 30°/h, the first order Markov zero bias of accelerometer is 0.5 mg, the root mean square value of GPS position white noise is 10 m, the root mean square value of GPS velocity white noise is 0.2 m/s, the root mean square value of random drift of gyroscope is 30°/h, the root mean square value of random zero bias of accelerometer is 0.5 mg, and the simulation time is 500 s. water motion, so the height channel is not simulated in the build simulation. The results are as follows: The results are shown in Figures 17 and 18, in the presence of noise and zero drift, the GPS correction of the inertial guidance through the Kalman filter is obvious, and the velocity and position can be stabilised within ±1 m/s and ±20 m and remain stable. The feasibility of the optimised combination has been verified and can guide the programming design accordingly. Therefore, the simplified GPS/INS combination can be used by unmanned ships.  In order to theoretically verify the effectiveness of the proposed algorithm for the TSP model of water quality monitoring operations, we choose the classical genetic algorithm to compare with the proposed algorithm [16]. The USV passes 50 points in the 70 × 70 simulated water area, and then the USV returns to the initial point to form a closed loop. The parameters of the algorithm are set as follows. In the above, M is the population size, Tm is the number of iteration terminations, Crossover is the crossover probability, and Mutation is the mutation probability.
As shown in Figures 19 and 20, the global path planning results and convergence curves corresponding to the two algorithms can be obtained. It is observed that the proposed algorithm quickly converges to the global minimum fitness value in Figure 20. The path calculated by the proposed algorithm is a closed loop, and there is no cross path. Fewer crossing points mean stronger traversal and less travel waste. Figure 20 and Table 2 show that the shortest path distance obtained by the proposed algorithm is 458, the calculation time of the proposed algorithm is 9.2 s, and the number of iterations is 106. Although the calculation time of the classical genetic algorithm is similar, it does not reach the minimum number of iterations and distance. In short, the proposed algorithm is acceptable in terms of computing time and has better computing performance than the classic algorithm.

Communication Quality Experiment.
The data transmission quality of the USV and the gateway was changed at an interval of 400 m to test the pack loss probability of the LoRa communication link deteriorates with the distance increasing [17]. Therefore, the RSSI and packet loss probability were tested at different distances in this paper. The data size of each packet was 9 bytes and checked based on CRC, the test distance was 0-2 km, the transmitting power of the radio frequency module was 20 dBm, and the antenna gain was 3 dbi. 1000 data packets were sent and received for each test distance, and the test was performed twice. The experiment results are shown in Figures 21 and 22.
From Figures 21 and 22, it can be seen that the RSSI of the shipboard LoRa node is greater than -81 dBm within 2 km, and the signal reception strength is reliable and stable. From the packet loss rate, there is no packet loss within  14 Wireless Communications and Mobile Computing 400 m, and the packet loss rate does not exceed 10% within 1600 m, and the packet loss rate is effectively controlled within 25% within 1600-2000 m. Through the above experimental analysis, it can be concluded that the water quality monitoring unmanned boat designed in this paper, based on LoRa network, can achieve a long distance and reliable data transmission link within 2 km, fully enhancing the monitoring range and reliability of the unmanned boat water quality monitoring operation.

Surface Operation Experiment.
In order to verify the reliability of the unmanned surface vessel in actual operation, we set six target monitoring points (these point coordinates are shown in Table 3) in advance in Tianyin Lake of Nanjing Institute of Technology. The user monitoring platform calculates the optimal traversal sequence through the proposed path planning algorithm and sends it to the unmanned surface vessel. After the unmanned surface vessel receives the coordinate set, it traverses one by one and returns to the current coordinate regularly. By fitting the coordinate points, the trajectory diagram of the USV was obtained, as shown in Figure 23.
USV adopts an integrated navigation algorithm based on the Kalman filter and PID heading control algorithm to achieve access to all target detection points. When turning from the current coordinate to the next coordinate, the USV's motion trajectory will show a small deviation, but it can be adjusted to the correct route in time. In short, the unmanned surface vessel designed in this paper can complete the water quality monitoring operation according to the preset path.
7.4. Water Quality Monitoring Results and Analysis. In January 2021, a field test was performed in a local lake. The field test environment is shown in Figure 24.
The USV was set to return its GPS coordinates at an interval of 1 s and collect water quality information when it arrived at the monitoring point. The water quality data collected at each monitoring point is shown in Table 3.
The experimental site is located in the nature reserve inside the school, and monitoring points 3 and 4 are located in the center of the lake. According to the water quality monitoring results in Table 3, it can be seen that the turbidity of monitoring points 3 and 4 is lower compared to other monitoring points, and it can be seen that the water in the middle of the lake is clearer, and the water quality of other monitoring points, although slightly worse, is in the normal water quality range, and it can be concluded that the overall water quality of the lake is relatively good.

Conclusion
To cover the deficiencies of the existing water quality monitoring system, a mobile water quality monitoring system has been designed based on LoRa communication and USV in this paper. The USV in this system is equipped with LoRa nodes and water quality sensors, and the data is transmitted through the LoRa gateway on the shore, by which the realtime monitoring in large areas are realized. Moreover, an improved genetic algorithm is introduced to plan the working path. The test results have proved that the mobile water quality monitoring system designed in this paper can complete the autonomous cruise work in large areas and can monitor the water quality at the target point in real time. Compared with the traditional water quality monitoring mode, the mobile water quality monitoring system proposed in this paper can save costs and labor, enhance working efficiency, and expand the monitoring scope to a great extent.
In the future, we plan to equip the unmanned surface vessel with solar charging panels to improve endurance. And a more complete information-based monitoring platform will be designed around it.

Data Availability
The data included in this paper are available without any restriction.