Tidal river section pollution monitoring method, device, equipment and storage medium
By interpolating the flow and pollutant concentration data of the tidal river section, the problem of time asynchrony is solved, accurate monitoring and treatment of pollutant flux is achieved, and the water quality purification effect of the tidal river section is improved.
Patent Information
- Application Number
- CN202410530101.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-29
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-04-29
AI Technical Summary
In the existing technology, the flow data and pollutant concentration data of the tidal river section are not synchronized in time, resulting in the inability to accurately monitor the pollutant flux, and thus the inability to effectively control the tidal river section.
By interpolating flow time series data and pollutant concentration time series data, time-synchronized data is added to enable the accurate determination of pollutant fluxes in tidal river sections. A preset interpolation algorithm is used to perform multiple rounds of interpolation until the data There are data at the same time node, and the cubic spline interpolation algorithm is used to reflect the fluctuation changes in water quantity and quality.
It improves the accuracy of pollution monitoring in tidal river sections, provides scientific basis for effective treatment based on pollution conditions, and ensures water quality purification.
Smart Images

Figure CN118280466B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of water quality monitoring, and in particular to a method, device, equipment and storage medium for monitoring pollution in a tidal river section. Background Art
[0002] In practical applications, rivers are an important source of domestic and agricultural water, so they need to be monitored for pollution, and corresponding treatment measures are used to purify the water quality of river sections based on the monitoring results. The current monitoring method is based on flux, which monitors the pollution of river sections by monitoring pollutant flux. The pollutant flux is usually obtained by multiplying the pollutant concentration and flow rate of the collected river section. However, in actual practice, there is often a time asynchrony problem between the flow data and pollutant concentration data collected in tidal river sections, and it is impossible to obtain accurate pollutant flux, resulting in the inability to accurately monitor the pollution of tidal river sections and effectively treat tidal river sections. Therefore, it is urgent to provide a method that can accurately monitor the pollution of tidal river sections. Summary of the invention
[0003] Based on this, the present invention provides a method, device, equipment and storage medium for monitoring pollution in tidal river sections. By interpolating flow time series data and / or pollutant concentration time series data and adding time-synchronized flow data and pollutant concentration data, the pollutant flux in tidal river sections can be accurately determined, thereby improving the accuracy of pollution monitoring in tidal river sections.
[0004] To achieve the above object, an embodiment of the present invention provides a tidal river section pollution monitoring method, comprising:
[0005] Obtaining flow time series data and pollutant concentration time series data of the tidal river section to be monitored within a preset time period;
[0006] Using a preset interpolation algorithm to interpolate the time series data to be interpolated, so as to update the time series data to be interpolated, wherein the time series data to be interpolated is the flow time series data and / or the pollutant concentration time series data;
[0007] After the interpolation operation is completed, the pollutant flux of the tidal river section is calculated according to the flow time series data and the pollutant concentration time series data, so as to perform pollution monitoring on the tidal river section.
[0008] As an improvement of the above solution, the method of interpolating the time series data to be interpolated by using a preset interpolation algorithm to update the time series data to be interpolated includes:
[0009] A preset interpolation algorithm is used to perform multiple rounds of interpolation on the time series data to be interpolated, so as to update the time series data to be interpolated, until the number of time nodes at which the flow time series data and the pollutant concentration time series data have data at the same time node is greater than or equal to the preset number of nodes.
[0010] As an improvement of the above solution, the method of interpolating the time series data to be interpolated by using a preset interpolation algorithm to update the time series data to be interpolated includes:
[0011] Selecting the time series data with a longer sampling period from the flow time series data and the pollutant concentration time series data as the time series data to be interpolated, and the time series data with a shorter sampling period as the fixed time series data;
[0012] Multiple rounds of interpolation are performed on the time series data to be interpolated to update the time series data to be interpolated until the fixed time series data corresponds to a value of the time series data to be interpolated at each time node.
[0013] As an improvement of the above solution, the method of interpolating the time series data to be interpolated by using a preset interpolation algorithm to update the time series data to be interpolated includes:
[0014] Using a preset interpolation algorithm to perform multiple rounds of interpolation on the time series data to be interpolated, so as to update the time series data to be interpolated, until the number of time nodes at which the time series data to be interpolated and the fixed time series data have data at the same time node is greater than or equal to the preset number of nodes;
[0015] In each round of interpolation operation, the sampling periods of the flow time series data and the pollutant concentration time series data are compared, and the time series data with a longer sampling period is used as the time series data to be interpolated for this round of interpolation operation, and the time series data with a shorter sampling period is used as the fixed time series data for this round of interpolation operation.
[0016] As an improvement of the above scheme, it also includes:
[0017] When the sampling periods of the flow time series data and the pollutant concentration time series data are the same, the time series data to be interpolated is one of the flow time series data and the pollutant concentration time series data, and the fixed time series data is the other of the flow time series data and the pollutant concentration time series data.
[0018] As an improvement of the above solution, the interpolation algorithm is a cubic spline interpolation algorithm.
[0019] To achieve the above purpose, an embodiment of the present invention further provides a tidal river section pollution monitoring device, comprising:
[0020] A data acquisition module, used to acquire flow time series data and pollutant concentration time series data of the tidal river section to be monitored within a preset time period;
[0021] An interpolation module, used for interpolating the time series data to be interpolated by using a preset interpolation algorithm to update the time series data to be interpolated, wherein the time series data to be interpolated is the flow time series data and / or the pollutant concentration time series data;
[0022] The flux calculation module is used to calculate the pollutant flux of the tidal river section according to the flow time series data and the pollutant concentration time series data after completing the interpolation operation, so as to monitor the pollution of the tidal river section.
[0023] As an improvement of the above solution, the interpolation module is specifically used for:
[0024] A preset interpolation algorithm is used to perform multiple rounds of interpolation on the time series data to be interpolated, so as to update the time series data to be interpolated, until the number of time nodes at which the flow time series data and the pollutant concentration time series data have data at the same time node is greater than or equal to the preset number of nodes.
[0025] To achieve the above objectives, an embodiment of the present invention further provides a tidal river section pollution monitoring device, comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, the tidal river section pollution monitoring method as described in any of the above embodiments is implemented.
[0026] To achieve the above objectives, an embodiment of the present invention further provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the tidal river section pollution monitoring method as described in any of the above embodiments.
[0027] Compared with the prior art, the pollution monitoring method, device, equipment and storage medium for tidal river sections disclosed in the embodiments of the present invention first obtain the flow time series data and pollutant concentration time series data of the tidal river section to be monitored within a preset time period; then, a preset interpolation algorithm is used to interpolate the time series data to be interpolated to update the time series data to be interpolated, wherein the time series data to be interpolated is the flow time series data and / or the pollutant concentration time series data; finally, after completing the interpolation operation, the pollutant flux of the tidal river section is calculated according to the flow time series data and the pollutant concentration time series data to monitor the pollution of the tidal river section. It can be seen from this that the embodiments of the present invention interpolate the flow time series data and / or the pollutant concentration time series data to increase the time-synchronized flow data and pollutant concentration data, so that the pollutant flux of the tidal river section can be accurately determined, thereby improving the accuracy of pollution monitoring of the tidal river section and being conducive to improving the effectiveness of the management of the tidal river section. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the technical solution of the present invention, the drawings required for use in the implementation mode will be briefly introduced below. Obviously, the drawings described below are only some implementation modes of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0029] Figure 1 It is a flow chart of a method for monitoring pollution in a tidal river section provided by an embodiment of the present invention;
[0030] Figure 2 It is a display diagram of water quality monitoring data provided by an embodiment of the present invention;
[0031] Figure 3 is a curve chart of water quality monitoring data provided by an embodiment of the present invention;
[0032] Figure 4 It is a schematic structural diagram of a tidal river section pollution monitoring device provided by one embodiment of the present invention;
[0033] Figure 5 It is a structural schematic diagram of a tidal river section pollution monitoring device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0034] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0035] See also Figure 1 , is a flow chart of a method for monitoring pollution in a tidal river section provided by an embodiment of the present invention. Specifically, the method for monitoring pollution in a tidal river section comprises steps S1 to S3:
[0036] S1. Obtaining flow time series data and pollutant concentration time series data of the tidal river section to be monitored within a preset time period;
[0037] S2. Using a preset interpolation algorithm to interpolate the time series data to be interpolated, so as to update the time series data to be interpolated, wherein the time series data to be interpolated is the flow time series data and / or the pollutant concentration time series data;
[0038] S3. After the interpolation operation is completed, the pollutant flux of the tidal river section is calculated according to the flow time series data and the pollutant concentration time series data to perform pollution monitoring on the tidal river section.
[0039] It is worth noting that the tidal river section refers to the river section from the estuary to the tidal zone boundary, and its flow and water level are greatly affected by the tide. Time series data is data collected at different time points, which is used to characterize the changes of the described phenomenon over time. This type of data reflects the state or degree of change of a thing or phenomenon over time.
[0040] It is worth noting that the tidal river section pollution monitoring method can be executed by any computing device, such as a server or a user terminal (such as a laptop computer, a desktop computer, etc.), and is not limited here.
[0041] Specifically, it is assumed that flow monitoring equipment and pollutant concentration monitoring equipment are placed at the same position of the tidal river section. The flow monitoring equipment monitors the flow according to the law of the first acquisition cycle to obtain flow data at multiple different time nodes. The pollutant concentration monitoring equipment monitors the pollutant concentration according to the law of the second acquisition cycle to obtain pollutant concentration data at multiple different time nodes. Assuming that the preset time period is a specified date, first, the flow time series data and pollutant concentration time series data of the tidal river section on the specified date are obtained. The flow time series data is composed of flow data at multiple different time nodes, and the pollutant concentration time series data is composed of pollutant concentration data at multiple different time nodes. Then, the interpolation time series data (at least one of the flow time series data and the pollutant concentration time series data) is interpolated. After the interpolation operation is completed, the flow data and pollutant concentration data with the same time node in the flow time series data and the pollutant concentration time series data will increase. Finally, the flow data and pollutant concentration data at the same time node are multiplied to obtain the pollutant flux of the tidal river section at multiple time nodes, so as to realize accurate monitoring of the pollution situation in the tidal river section, and take corresponding control measures according to the pollution situation to achieve water purification, such as planting corresponding types and quantities of aquatic plants (including but not limited to cattail, calamus and reed, etc.) that can purify water quality in the tidal river section according to the pollution situation, or selecting the pollution control location, interception degree, dredging frequency, etc. according to the pollution situation. The specific control means refer to the prior art and will not be repeated here. It can be understood that the method can provide a scientific basis for the tracing of pollutants in tidal river sections and the formulation of total pollutant control indicators, which is conducive to the effective control of tidal river sections.
[0042] Compared with the prior art, the embodiments of the present invention interpolate flow time series data and / or pollutant concentration time series data to add time-synchronized flow data and pollutant concentration data, so that the flow data and pollutant concentration data can meet the flux calculation requirements and obtain accurate pollutant flux, thereby improving the accuracy of pollution monitoring in tidal river sections. It can provide accurate basis for tidal river section management according to the pollution situation of the tidal river section, so as to take effective management measures to purify the water quality in the tidal river section.
[0043] Optionally, the adopting a preset interpolation algorithm to interpolate the time series data to be interpolated so as to update the time series data to be interpolated includes:
[0044] A preset interpolation algorithm is used to perform multiple rounds of interpolation on the time series data to be interpolated, so as to update the time series data to be interpolated, until the number of time nodes at which the flow time series data and the pollutant concentration time series data have data at the same time node is greater than or equal to the preset number of nodes.
[0045] Specifically, in order to make more time nodes of flow data and pollutant concentration data in the flow time series data and pollutant concentration time series data correspond to each other, so as to calculate more pollutant fluxes, after each round of interpolation of the time series to be interpolated is completed, the time nodes of flow data in the flow time series data and pollutant data in the pollutant concentration time series data are compared, and the number of target time nodes is calculated. If the number of target time nodes is less than the preset number of nodes, a new round of interpolation operation is entered. If the number of target time nodes is greater than or equal to the preset number of nodes, the interpolation operation is terminated. Wherein, the flow time series data and the pollutant concentration time series data both have data at the target time nodes.
[0046] It is worth noting that the preset number of nodes is set according to actual needs, and its specific value is not limited here.
[0047] Optionally, the adopting a preset interpolation algorithm to interpolate the time series data to be interpolated so as to update the time series data to be interpolated includes:
[0048] Selecting the time series data with a longer sampling period from the flow time series data and the pollutant concentration time series data as the time series data to be interpolated, and the time series data with a shorter sampling period as the fixed time series data;
[0049] Multiple rounds of interpolation are performed on the time series data to be interpolated to update the time series data to be interpolated until the fixed time series data corresponds to a value of the time series data to be interpolated at each time node.
[0050] Specifically, multiple rounds of interpolation are performed on the time series data to be interpolated. After the first round of interpolation, it is necessary to first determine whether the object to be interpolated is the flow time series data or the pollutant concentration time series data. The specific confirmation method is: compare the sampling periods of the flow time series data and the pollutant concentration time series data, and use the time series data with a longer sampling period as the time series data to be interpolated, and use the time series data with a shorter sampling period as the fixed time series data (if the sampling periods of the two are the same, one is selected as the time series data to be interpolated, and the other is selected as the fixed time series data). After each round of interpolation of the time series data to be interpolated is completed, the time nodes of the data in the time series data to be interpolated and the data in the fixed time series data are compared. If the time series data to be interpolated has data at each time node where the data in the fixed time series data is located, the interpolation operation is terminated, otherwise a new round of interpolation operation is entered.
[0051] Optionally, the adopting a preset interpolation algorithm to interpolate the time series data to be interpolated so as to update the time series data to be interpolated includes:
[0052] Using a preset interpolation algorithm to perform multiple rounds of interpolation on the time series data to be interpolated, so as to update the time series data to be interpolated, until the number of time nodes at which the time series data to be interpolated and the fixed time series data have data at the same time node is greater than or equal to the preset number of nodes;
[0053] In each round of interpolation operation, the sampling periods of the flow time series data and the pollutant concentration time series data are compared, and the time series data with a longer sampling period is used as the time series data to be interpolated for this round of interpolation operation, and the time series data with a shorter sampling period is used as the fixed time series data for this round of interpolation operation.
[0054] Specifically, multiple rounds of interpolation are performed on the time series data to be interpolated, and the interpolation object of each round needs to be determined by comparing the sampling period of the flow time series data and the pollutant concentration time series data. Specifically, in each round of interpolation operation, it is first determined whether the object to be interpolated is the flow time series data or the pollutant concentration time series data. The specific confirmation method is: the sampling periods of the flow time series data and the pollutant concentration time series data are compared, and the time series data with a longer sampling period is used as the time series data to be interpolated, and the time series data with a shorter sampling period is used as the fixed time series data (if the sampling periods of the two are the same, one is selected as the time series data to be interpolated, and the other is used as the fixed time series data). After completing the interpolation of the time series data to be interpolated, the time nodes of the time series data to be interpolated and the fixed time series data are compared, and the number of target time nodes is calculated. If the number of target time nodes is less than the preset number of nodes, a new round of interpolation operation is entered. If the number of target time nodes is greater than or equal to the preset number of nodes, the interpolation operation is terminated. Among them, the fixed time series data and the time series data to be interpolated have data at the target time nodes.
[0055] It is worth noting that the preset number of nodes is set according to actual needs, and its specific value is not limited here.
[0056] Furthermore, after step S1 and before step S2, the flow time series data and the pollutant concentration time series data are compared at time nodes. If all time nodes of the flow time series data have corresponding pollutant concentration data, step S2 is skipped and step S3 is executed directly, otherwise step S2 is executed.
[0057] Furthermore, when the sampling periods of the flow time series data and the pollutant concentration time series data are the same, the time series data to be interpolated is one of the flow time series data and the pollutant concentration time series data, and the fixed time series data is the other of the flow time series data and the pollutant concentration time series data.
[0058] Preferably, the interpolation algorithm is a cubic spline interpolation algorithm.
[0059] Specifically, linear interpolation reflects the uniform changes in monitoring data, but the flow and water level of tidal river sections are greatly affected by the tides. The use of linear interpolation cannot reflect the fluctuating characteristics of water volume (flow) / water quality (pollutant concentration), which will cause a large deviation in the calculation of pollutant flux in the river, and the calculation results are not accurate. Therefore, considering the characteristics of tidal river sections, this embodiment uses a cubic spline interpolation algorithm for interpolation. The cubic spline interpolation algorithm is a method for fitting or interpolating certain points without knowing the specific equation. It can construct four unknowns of a curve and solve all unknowns. The basic idea of this method is to approximate the data in a small interval with a low-order polynomial, and use the connection conditions of the joints of these polynomials to ensure the smoothness of the entire curve.
[0060] The following is a brief introduction to the application process of the cubic spline interpolation algorithm:
[0061] Assume that the time series data to be interpolated is {(x0, y0), (x1, y1), …, (x n ,y n )},x j is the jth time node, y j is the function value given at the jth time node, that is, a known value (such as flow data or pollutant concentration data), where j is an integer greater than or equal to 0 and less than or equal to n, and x j falls in the interval [a, b], let the time nodes on [a, b] constitute a division Δ of [a, b]: a=x0<x1<x2<…<x n = b, and use the cubic spline interpolation algorithm to calculate and interpolate the data set. The curve interpolation problem is to find the curve function S(x) on [a, b] about the division Δ. S(x) is in (x i ,y i ), (x i+1 ,y i+1 ) interpolation, the following conditions must be met:
[0062] S i (x i )=y i ;
[0063] Si (x i+1 )=y i+1 ;
[0064] S i (x i+1 )=S i+1 (x i+1 );
[0065] S i ′(x i+1 )=S i+1 ′(x i+1 );
[0066] S i ″(x i+1 )=S i+1 ″(x i+1 );
[0067] Wherein, i is an integer greater than or equal to 0 and less than or equal to n-1;
[0068] The differential formula of the curve function is:
[0069] S i (x) = a i +b i (xx i )+c i (xx i ) 2 +d i (xx i ) 3 ;
[0070] S i ′(x)=b i +2c i (xx i )+3d i (xx i ) 2 ;
[0071] S i ″(x)=2c i +6d i (xx i );
[0072] Let the step length be: h i =x i+1 -x i , m i =S i ″(x i )=2c i ;
[0073] Launched with m iA system of linear equations with unknowns:
[0074]
[0075] Set the endpoint condition to free boundary, and its constraint boundary condition is:
[0076] S0″(x0)=0,S n-1 ″(x n )=0;
[0077] The matrix equation to be solved is:
[0078]
[0079] Solve the above matrix equation to get m i , and a i , b i 、c i d i , S i (x), and then calculate (x i+1 +x i ) / 2 to achieve interpolation.
[0080] After the first interpolation, if the time series data needs to be interpolated again, a second interpolation is performed based on the time series data obtained after the last interpolation operation to calculate (x i+1 +3x i ) / 4; continue to interpolate and calculate according to the above method until the flux calculation requirements are met.
[0081] Taking a section of a tidal river as an example, the water quality monitoring data (pollutant concentration time series data) are interpolated to estimate the pollutant flux through the section.
[0082] 1. Collect data. Collect hourly flow data (i.e. flow time series data with a sampling period of 1 hour) and water quality monitoring data (ammonia nitrogen) once every 4 hours (i.e. pollutant concentration time series data with a sampling period of 4 hours) of a monitoring section of a tidal river on January 1, 2023. Figure 2 The water quality monitoring data shown are in milligrams per liter (mg / L). Figure 2 The second column in is the measured value of water quality monitoring data.
[0083] 2. The measured values of water quality monitoring data are interpolated by cubic spline interpolation algorithm to obtain Figure 2 The values shown in the third column of . Figure 2 Data presented in tabular form can be Figure 3 The graph shown shows that Figure 3The horizontal axis is time, and the vertical axis is the value of water quality monitoring data.
[0084] 3. The daily pollutant amount calculated based on the flow time series data and the water quality monitoring data after interpolation in step 2 is 0.043 tons; while the daily pollutant amount calculated based on the water quality monitoring data obtained by automatic monitoring 6 times a day is 0.019 tons, which is 2.3 times different. It can be seen that the water quality and quantity data are not synchronized and cannot accurately meet the flux calculation requirements. The measured values of the water quality monitoring data are interpolated by the cubic spline interpolation algorithm, which not only well predicts the time data of the water quality fluctuation process, meets the flux calculation requirements, but also promotes the rationality of the flux calculation.
[0085] Compared with the prior art, the pollution monitoring method for tidal river sections disclosed in the embodiment of the present invention first obtains the flow time series data and pollutant concentration time series data of the tidal river section to be monitored within a preset time period; then, a preset interpolation algorithm is used to interpolate the time series data to be interpolated to update the time series data to be interpolated, wherein the time series data to be interpolated is the flow time series data and / or the pollutant concentration time series data; finally, after completing the interpolation operation, the pollutant flux of the tidal river section is calculated according to the flow time series data and the pollutant concentration time series data to monitor the pollution of the tidal river section. It can be seen that the embodiment of the present invention interpolates the flow time series data and / or the pollutant concentration time series data, adds time-synchronized flow data and pollutant concentration data, so that it can meet the flux calculation requirements, obtain accurate pollutant flux, realize accurate monitoring of the pollution situation of the tidal river section, and can take effective control measures to purify the water quality of the tidal river section according to the pollution situation of the tidal river section.
[0086] See also Figure 4 , Figure 4 : is a schematic diagram of the structure of a tidal river section pollution monitoring device provided by an embodiment of the present invention, wherein the tidal river section pollution monitoring device 20 comprises:
[0087] The data acquisition module 21 is used to acquire the flow time series data and pollutant concentration time series data of the tidal river section to be monitored within a preset time period;
[0088] An interpolation module 22, configured to interpolate the time series data to be interpolated using a preset interpolation algorithm to update the time series data to be interpolated, wherein the time series data to be interpolated is the flow time series data and / or the pollutant concentration time series data;
[0089] The flux calculation module 23 is used to calculate the pollutant flux of the tidal river section according to the flow time series data and the pollutant concentration time series data after completing the interpolation operation, so as to perform pollution monitoring on the tidal river section.
[0090] In one implementation, the interpolation module 22 is specifically configured to:
[0091] A preset interpolation algorithm is used to perform multiple rounds of interpolation on the time series data to be interpolated, so as to update the time series data to be interpolated, until the number of time nodes at which the flow time series data and the pollutant concentration time series data have data at the same time node is greater than or equal to the preset number of nodes.
[0092] In one implementation, the interpolation module 22 is specifically configured to:
[0093] Selecting the time series data with a longer sampling period from the flow time series data and the pollutant concentration time series data as the time series data to be interpolated, and the time series data with a shorter sampling period as the fixed time series data;
[0094] Multiple rounds of interpolation are performed on the time series data to be interpolated to update the time series data to be interpolated until the fixed time series data corresponds to a value of the time series data to be interpolated at each time node.
[0095] In one implementation, the interpolation module 22 is specifically configured to:
[0096] Using a preset interpolation algorithm to perform multiple rounds of interpolation on the time series data to be interpolated, so as to update the time series data to be interpolated, until the number of time nodes at which the time series data to be interpolated and the fixed time series data have data at the same time node is greater than or equal to the preset number of nodes;
[0097] In each round of interpolation operation, the sampling periods of the flow time series data and the pollutant concentration time series data are compared, and the time series data with a longer sampling period is used as the time series data to be interpolated for this round of interpolation operation, and the time series data with a shorter sampling period is used as the fixed time series data for this round of interpolation operation.
[0098] In one embodiment, when the sampling periods of the flow time series data and the pollutant concentration time series data are the same, the time series data to be interpolated is one of the flow time series data and the pollutant concentration time series data, and the fixed time series data is the other of the flow time series data and the pollutant concentration time series data.
[0099] In one implementation, the interpolation algorithm is a cubic spline interpolation algorithm.
[0100] It is worth noting that the specific working process of the tidal river section pollution monitoring device can refer to the working process of the tidal river section pollution monitoring method described in the above embodiment, which will not be repeated here.
[0101] Compared with the prior art, the tidal river section pollution monitoring device disclosed in the embodiment of the present invention interpolates flow time series data and / or pollutant concentration time series data to add time-synchronized flow data and pollutant concentration data, so that it can meet the flux calculation requirements, obtain accurate pollutant flux, and realize accurate monitoring of the pollution situation in the tidal river section, which is conducive to taking effective control measures to purify the water quality in the tidal river section.
[0102] See also Figure 5 , Figure 5 is a schematic diagram of the structure of a tidal river section pollution monitoring device provided in an embodiment of the present invention. The tidal river section pollution monitoring device 30 comprises a processor 31, a memory 32, and a computer program stored in the memory 32 and configured to be executed by the processor 31. When the processor 31 executes the computer program, the steps in the above-mentioned tidal river section pollution monitoring method embodiment are implemented, for example Figure 1 or, the processor 31 implements the functions of each module in the above-mentioned device embodiments when executing the computer program.
[0103] Exemplarily, the computer program may be divided into one or more modules, which are stored in the memory 32 and executed by the processor 31 to complete the present invention. The one or more modules may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program in the tidal river section pollution monitoring device. For example, the computer program may be divided into multiple modules, and the specific functions of each module are as follows:
[0104] The data acquisition module 21 is used to acquire the flow time series data and pollutant concentration time series data of the tidal river section to be monitored within a preset time period;
[0105] An interpolation module 22, configured to interpolate the time series data to be interpolated using a preset interpolation algorithm to update the time series data to be interpolated, wherein the time series data to be interpolated is the flow time series data and / or the pollutant concentration time series data;
[0106] The flux calculation module 23 is used to calculate the pollutant flux of the tidal river section according to the flow time series data and the pollutant concentration time series data after completing the interpolation operation, so as to perform pollution monitoring on the tidal river section.
[0107] The specific working process of each module can refer to the working process of the tidal river section pollution monitoring device described in the above embodiment, which will not be repeated here.
[0108] The tidal river section pollution monitoring device may be a computing device such as a desktop computer, a notebook, a PDA, and a cloud server. The tidal river section pollution monitoring device may include, but is not limited to, a processor 31 and a memory 32. Those skilled in the art may understand that the tidal river section pollution monitoring device may also include input and output devices, network access devices, buses, etc.
[0109] The processor 31 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor 31 is the control center of the tidal river section pollution monitoring device, and uses various interfaces and lines to connect various parts of the entire tidal river section pollution monitoring device.
[0110] The memory 32 can be used to store the computer program and / or module, and the processor 31 realizes various functions of the tidal river section pollution monitoring device by running or executing the computer program and / or module stored in the memory 32, and calling the data stored in the memory 32. The memory 32 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the mobile phone, etc. In addition, the memory 32 can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0111] Wherein, if the module integrated in the tidal river section pollution monitoring equipment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor 31. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc.
[0112] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A method for monitoring pollution in a tidal river section, characterized in that: include: Obtaining flow time series data and pollutant concentration time series data of the tidal river section to be monitored within a preset time period; Using a preset interpolation algorithm to interpolate the time series data to be interpolated, so as to update the time series data to be interpolated, wherein the time series data to be interpolated is the flow time series data and / or the pollutant concentration time series data; After the interpolation operation is completed, the pollutant flux of the tidal river section is calculated according to the flow time series data and the pollutant concentration time series data, so as to perform pollution monitoring on the tidal river section; The interpolating the time series data to be interpolated by using a preset interpolation algorithm to update the time series data to be interpolated includes: Selecting time series data with a longer sampling period as the time series data to be interpolated and time series data with a shorter sampling period as the fixed time series data from the flow time series data and the pollutant concentration time series data; performing multiple rounds of interpolation on the time series data to be interpolated to update the time series data to be interpolated until the fixed time series data corresponds to a value of the time series data to be interpolated at each time node; or, A preset interpolation algorithm is used to perform multiple rounds of interpolation on the time series data to be interpolated, so as to update the time series data to be interpolated, until the number of time nodes at which the time series data to be interpolated and the fixed time series data have data at the same time node is greater than or equal to the preset number of nodes; in each round of interpolation operation, the sampling periods of the flow time series data and the pollutant concentration time series data are compared, and the time series data with a longer sampling period is used as the time series data to be interpolated for this round of interpolation operation, and the time series data with a shorter sampling period is used as the fixed time series data for this round of interpolation operation.
2. The tidal river section pollution monitoring method according to claim 1, characterized in that: The interpolating the time series data to be interpolated by using a preset interpolation algorithm to update the time series data to be interpolated includes: A preset interpolation algorithm is used to perform multiple rounds of interpolation on the time series data to be interpolated, so as to update the time series data to be interpolated, until the number of time nodes at which the flow time series data and the pollutant concentration time series data have data at the same time node is greater than or equal to the preset number of nodes.
3. The tidal river section pollution monitoring method according to claim 1, characterized in that: Also includes: When the sampling periods of the flow time series data and the pollutant concentration time series data are the same, the time series data to be interpolated is one of the flow time series data and the pollutant concentration time series data, and the fixed time series data is the other of the flow time series data and the pollutant concentration time series data.
4. The tidal river section pollution monitoring method according to claim 1, characterized in that: The interpolation algorithm is a cubic spline interpolation algorithm.
5. A tidal river section pollution monitoring device, characterized in that: include: A data acquisition module, used to acquire flow time series data and pollutant concentration time series data of the tidal river section to be monitored within a preset time period; An interpolation module, used for interpolating the time series data to be interpolated by using a preset interpolation algorithm to update the time series data to be interpolated, wherein the time series data to be interpolated is the flow time series data and / or the pollutant concentration time series data; A flux calculation module, used for calculating the pollutant flux of the tidal river section according to the flow time series data and the pollutant concentration time series data after completing the interpolation operation, so as to perform pollution monitoring on the tidal river section; The interpolation module is specifically used for: Selecting time series data with a longer sampling period as the time series data to be interpolated and time series data with a shorter sampling period as the fixed time series data from the flow time series data and the pollutant concentration time series data; performing multiple rounds of interpolation on the time series data to be interpolated to update the time series data to be interpolated until the fixed time series data corresponds to a value of the time series data to be interpolated at each time node; or, A preset interpolation algorithm is used to perform multiple rounds of interpolation on the time series data to be interpolated, so as to update the time series data to be interpolated, until the number of time nodes at which the time series data to be interpolated and the fixed time series data have data at the same time node is greater than or equal to the preset number of nodes; in each round of interpolation operation, the sampling periods of the flow time series data and the pollutant concentration time series data are compared, and the time series data with a longer sampling period is used as the time series data to be interpolated for this round of interpolation operation, and the time series data with a shorter sampling period is used as the fixed time series data for this round of interpolation operation.
6. The tidal river section pollution monitoring device according to claim 5, characterized in that: The interpolation module is specifically used for: A preset interpolation algorithm is used to perform multiple rounds of interpolation on the time series data to be interpolated, so as to update the time series data to be interpolated, until the number of time nodes at which the flow time series data and the pollutant concentration time series data have data at the same time node is greater than or equal to the preset number of nodes.
7. A tidal river section pollution monitoring device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, the method for monitoring pollution in a tidal river section as claimed in any one of claims 1 to 4 is implemented.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the tidal river section pollution monitoring method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Interpolation techniques used for time alignment of multiple simulation models
US20140214374A1
