Full-spectrum water quality monitoring method, system and medium

Through the full-spectrum water quality monitoring method, the configuration of standard gradient concentration solution and the use of matrix modeling and partial least squares regression equation, the problems of low efficiency and low accuracy of traditional water quality monitoring are solved, and high-precision calculation of various pollutants in water bodies is achieved.

CN120609765APending Publication Date: 2025-09-09AOPU TIANCHENG (WUHAN) OPTOELECTRONICS TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510510918.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-22
Publication Date
2025-09-09

AI Technical Summary

Technical Problem

Traditional water quality monitoring methods are inefficient, inaccurate, and can only calculate the concentrations of a limited number of substances. They are unable to accurately measure the concentrations of major pollutants such as TSS, COD, nitrate nitrogen, ammonia nitrogen, and total phosphorus.

Method used

A full-spectrum water quality monitoring method was adopted. By configuring standard gradient concentration solutions, the corresponding relationship between substance concentration and absorbance was established. The concentrations of TSS, COD, nitrate nitrogen, total phosphorus and ammonia nitrogen in the water body were calculated using matrix modeling and partial least squares regression equations, and integration and inversion calculations were performed in combination with Simpson's law.

Benefits of technology

It achieves high-precision calculation of multiple major pollutants in water bodies, improves monitoring efficiency and accuracy, and can accurately measure the concentrations of TSS, COD, nitrate nitrogen, ammonia nitrogen, and total phosphorus.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120609765A_ABST
    Figure CN120609765A_ABST
Patent Text Reader

Abstract

The invention discloses a full-spectrum water quality monitoring method and system and a medium, and the method comprises the following steps: preparing a solution with standard gradient concentration and calculating the corresponding absorbance, carrying out matrix modeling calculation on the concentration and the absorbance in a 400-600nm wave band by using the concentration and the absorbance configured by TSS to obtain a corresponding relation between the concentration of the TSS and the absorbance in the 400-600nm wave band, and calculating the water quality of the TSS according to the corresponding relation between the concentration of the TSS and the absorbance in the 400-600nm wave band and the absorbance in the 400-600nm wave band. Further, the concentration of the TSS in the to-be-monitored water body is accurately calculated. And the concentrations of COD, nitrate nitrogen, ammonia nitrogen and total phosphorus in the to-be-monitored water body are obtained through inversion calculation. The precision is high, and the calculated material types are various.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of water quality monitoring, and in particular to a full-spectrum water quality monitoring method, system and medium. Background Art

[0002] The scenarios for water quality monitoring are very broad, such as water quality monitoring of sewage treatment plants, water quality monitoring of natural water bodies such as rivers and lakes, water quality monitoring of aquaculture, water quality monitoring of industrial production process control, surface water quality monitoring, and water quality monitoring of drainage pipe networks.

[0003] In the process of water quality monitoring, calculating the concentration of major pollutants in water bodies is a key step in achieving monitoring. The main pollutants in water bodies include total soluble solids (TSS), chemical oxygen demand (COD), nitrate nitrogen, ammonia nitrogen, phosphorus, etc. Traditional water quality monitoring usually uses reagent spectrophotometry. However, reagent photoelectric colorimetric instruments have disadvantages such as the need for regular reagent replacement, long measurement time, high failure rate, and the need for station construction. These disadvantages result in very low monitoring efficiency, low accuracy, and a limited range of substances that can be calculated. Summary of the Invention

[0004] In view of the above-mentioned deficiencies in the prior art, the object of the present invention is to provide a full-spectrum water quality monitoring method, system and medium that can accurately calculate the concentrations of TSS, COD, nitrate nitrogen, ammonia nitrogen and total phosphorus in water.

[0005] In order to achieve the above object, the technical solution adopted by the present invention is:

[0006] A full-spectrum water quality monitoring method, comprising:

[0007] S1: The laboratory collects the absorbance of each substance and establishes a corresponding relationship between the standard single substance concentration and the absorbance, specifically including: preparing a standard gradient concentration solution of each substance, and calculating the corresponding absorbance of the standard gradient concentration solution of each substance; the substances include TSS, COD, nitrate nitrogen, total phosphorus and ammonia nitrogen;

[0008] S2: Calculate the concentration of TSS, including:

[0009] S21: According to matrix A T CC T The eigenvector corresponding to the maximum eigenvalue of A is calculated to obtain the component vector and the residual matrices corresponding to A and C respectively, and the residual matrices are substituted into A and C respectively, and it is continuously iterated until the absolute value of the element in the residual matrix corresponding to A is the smallest, where the initial value of C is the gradient concentration C configured by TSS TSSThe initial value of A is the absorbance A of the gradient concentration solution of TSS in the 400-600nm band. TSS ;

[0010] S22: Calculate the ordinary least squares regression equation of A on the component vectors of each component obtained in step S21 to obtain the corresponding relationship between the concentration of TSS and the absorbance in the 400-600 nm band;

[0011] S23: collecting the absorbance of the water body to be monitored in the 400-600 nm band, and obtaining the concentration of TSS in the water body to be monitored based on the absorbance of the water body to be monitored in the 400-600 nm band and the corresponding relationship obtained in step S22;

[0012] S3: Calculate the COD concentration in the water body to be monitored based on the TSS concentration in the water body to be monitored;

[0013] S4: Calculate the concentration of nitrate nitrogen in the water body to be monitored based on the concentration of TSS and COD in the water body to be monitored;

[0014] S5: Calculate the total phosphorus concentration in the water body to be monitored based on the TSS concentration, COD concentration and nitrate nitrogen concentration in the water body to be monitored;

[0015] S6: The concentration of ammonia nitrogen in the water body to be monitored is calculated by inverse calculation based on the concentration of TSS, COD, nitrate nitrogen and total phosphorus in the water body to be monitored.

[0016] Optionally, the concentration of COD, the concentration of nitrate nitrogen, the concentration of total phosphorus and the concentration of ammonia nitrogen are inversely calculated based on the integral of the absorbance.

[0017] Optionally, step S21 specifically includes:

[0018] S211: Definition C TSS =[c1,c2,..,c i ,...,c n ], where C TSS represents the gradient concentration of TSS configuration, c i represents the concentration of the i-th gradient concentration solution, i∈n, n represents the number of gradient concentration solutions; A TSS =[a1,a2,..,a i ,...,a n ], a i =[x i,1 ,...,x i,m ], where A TSS It represents the absorbance of the gradient concentration solution of TSS in the 400-600nm band, a irepresents the absorbance curve data of the i-th gradient concentration solution in the 400-600nm band, x i,m Represents the value of the solution with gradient concentration i at wavelength m, where m∈[400,600];

[0019] S212: Calculate matrix A T CC T The eigenvector w1 corresponding to the maximum eigenvalue of A, at this time, the value of C is the gradient concentration C configured by TSS TSS , the value of A is the absorbance A of the gradient concentration solution of TSS in the 400-600nm band TSS , calculate the component vector according to the following formula and residual matrices A1, C 1,TSS :

[0020]

[0021] S213: Calculation Matrix The eigenvector w2 corresponding to the maximum eigenvalue is calculated according to the following formula to obtain the component vector and residual matrices A2, C 2,TSS :

[0022]

[0023]

[0024]

[0025] S214: Continue to calculate according to the method of steps S212 and S213 until the residual matrix A p+1 The absolute value of the elements in is the smallest, and the matrix The eigenvector w corresponding to the maximum eigenvalue p+1 , the component vector Residual matrix A p+1 and C p+1,TSS , the specific formula is as follows:

[0026]

[0027] Step S22 specifically includes:

[0028] Calculate A according to the following formula Ordinary least squares regression equation on :

[0029]

[0030] t k =aw k =w k,1x 400 +…+w k,n x 600 ,(k=1,2,…,p+1)

[0031] t k Enter the following concentration calculation formula:

[0032]

[0033] The partial least squares regression equation for TSS concentration is as follows:

[0034] c=Da T

[0035] D=[d1,...,d m ]

[0036] Where c represents the concentration of TSS, a represents the absorbance in the 400-600 nm band, D represents the coefficient matrix, and d m Represents the coefficient corresponding to the wavelength variable.

[0037] Optionally, step S3 specifically includes:

[0038] Collect the absorbance of the water body to be monitored in the 250-300nm band, and obtain the absorbance of TSS in the water body to be monitored in the 250-300nm band according to the concentration of TSS in the water body to be monitored;

[0039] The Simpson's law is used to calculate the integral and sum of the absorbance of the water to be monitored in the 250-300 nm band. And the integral and absorbance of TSS in the water to be monitored in the 250-300nm band

[0040] The following formula is used to calculate the integral and absorbance of COD in the water to be monitored in the 250-300nm band:

[0041]

[0042] According to the corresponding relationship between the concentration of standard single substance COD and the absorbance of each concentration in the 250-300nm band and the integral and The COD concentration in the water body to be monitored is calculated.

[0043] Optionally, step S4 specifically includes:

[0044] Collect the absorbance of the water body to be monitored in the 210-250nm band, and obtain the absorbance of TSS in the water body to be monitored in the 210-250nm band according to the concentration of TSS in the water body to be monitored; obtain the absorbance of COD in the water body to be monitored in the 210-250nm band according to the concentration of COD in the water body to be monitored;

[0045] The Simpson's law is used to calculate the integral and sum of the absorbance of the water body to be monitored in the 210-250nm band. The integral sum of the absorbance of TSS in the water to be monitored in the 210-250nm band And the integral and absorbance of COD in the water to be monitored in the 210-250nm band

[0046] The following formula is used to calculate the integral and absorbance of nitrate nitrogen in the 210-250nm band in the water to be monitored:

[0047]

[0048] According to the corresponding relationship between the concentration of standard single substance nitrate nitrogen and the absorbance of each concentration in the 210-250nm band and the integral and Calculate the concentration of nitrate nitrogen in the water body to be monitored.

[0049] Optionally, step S5 specifically includes:

[0050] Collect the absorbance of the water body to be monitored in the 200-210nm band, and obtain the absorbance of TSS in the water body to be monitored in the 200-210nm band according to the concentration of TSS in the water body to be monitored; obtain the absorbance of COD in the water body to be monitored in the 200-210nm band according to the concentration of COD in the water body to be monitored; obtain the absorbance of nitrate nitrogen in the water body to be monitored in the 200-210nm band according to the concentration of nitrate nitrogen in the water body to be monitored;

[0051] The Simpson's law is used to calculate the integral and sum of the absorbance of the water body to be monitored in the 200-210 nm band. The integral sum of the absorbance of TSS in the 200-210 nm band in the water to be monitored The integral sum of the absorbance of COD in the 200-210nm band in the water to be monitored And the integral and absorbance of nitrate nitrogen in the 200-210nm band in the water to be monitored

[0052] The following formula is used to calculate the integral and absorbance of total phosphorus in the water to be monitored in the 200-210 nm band:

[0053]

[0054] According to the corresponding relationship between the concentration of total phosphorus of the standard single substance and the absorbance of each concentration in the 200-210nm band and the integral and Calculate the total phosphorus concentration in the water body to be monitored.

[0055] Optionally, step S6 specifically includes:

[0056] Collect the absorbance of the water body to be monitored in the 184-194nm band, and obtain the absorbance of TSS in the water body to be monitored in the 184-194nm band according to the concentration of TSS in the water body to be monitored; obtain the absorbance of COD in the water body to be monitored in the 184-194nm band according to the concentration of COD in the water body to be monitored; obtain the absorbance of nitrate nitrogen in the water body to be monitored in the 184-194nm band according to the concentration of nitrate nitrogen in the water body to be monitored; obtain the absorbance of total phosphorus in the water body to be monitored in the 184-194nm band according to the concentration of total phosphorus in the water body to be monitored;

[0057] The Simpson's law is used to calculate the integral and sum of the absorbance of the water body to be monitored in the 184-194 nm band. The integral sum of the absorbance of TSS in the water to be monitored in the 184-194 nm band The integral sum of the absorbance of COD in the 184-194 nm band in the water to be monitored The integral and sum of the absorbance of nitrate nitrogen in the 184-194 nm band in the water to be monitored And monitor the integral and absorbance of total phosphorus in water in the 184-194nm band

[0058] The following formula is used to calculate the integral and absorbance of ammonia nitrogen in the water body to be monitored in the 184-194nm band:

[0059]

[0060] According to the corresponding relationship between the concentration of standard single substance ammonia nitrogen and the absorbance of each concentration in the 184-194nm band and the integral and Calculate the concentration of ammonia nitrogen in the water body to be monitored.

[0061] Optionally, absorbance is collected by dual beam compensation.

[0062] Another technical solution adopted in the present invention is:

[0063] A full-spectrum water quality monitoring system includes a computer-readable storage medium and a processor; the computer-readable storage medium stores a computer program, and when the program is executed by the processor, it can implement the steps included in the above-mentioned full-spectrum water quality monitoring method.

[0064] Another technical solution adopted in the present invention is:

[0065] A computer-readable storage medium having a computer program stored thereon, characterized in that when the program is executed by a processor, it can implement the steps included in the above-mentioned full-spectrum water quality monitoring method.

[0066] The beneficial effects of the present invention are:

[0067] By preparing solutions with a standard gradient concentration and calculating the corresponding absorbance, the system uses the TSS concentration and absorbance to perform matrix modeling and calculations on the concentration and absorbance in the 400-600nm band. This gives the corresponding relationship between TSS concentration and absorbance in the 400-600nm band, allowing accurate calculation of TSS concentration in the water to be monitored. The concentrations of COD, nitrate nitrogen, ammonia nitrogen, and total phosphorus can then be calculated through inversion. This system offers high accuracy and can calculate a wide range of substances. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] Figure 1 FIG2 is a flow chart of a full-spectrum water quality monitoring method according to an embodiment of the present invention;

[0069] Figure 2 Shown is the original absorbance curve of the mixed solution in a specific example of Example 1 of the present invention. DETAILED DESCRIPTION

[0070] In order to more clearly understand the technical content, achieved purposes and effects of the present invention, the present invention is described in detail below in conjunction with specific embodiments and in conjunction with the accompanying drawings. It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other. In the following description, many specific details are set forth in order to fully understand the present invention. The embodiments described 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 those skilled in the art without making creative work are within the scope of protection of the present invention.

[0071] Please refer to Figure 1 and Figure 2 As shown, the first embodiment of the present invention is:

[0072] A full-spectrum water quality monitoring method, comprising:

[0073] S1: The laboratory collects the absorbance of each substance and establishes the corresponding relationship between the concentration of the standard single substance and the absorbance:

[0074] Because different substances in water have different absorption capacities for different wavelengths of light, and as the concentration of a substance increases, the absorption capacity of the corresponding wavelength gradually increases. This characteristic makes it possible to calculate the concentration of a specific substance based on its absorption of light in different wavelengths.

[0075] Get the dark spectrum S from the spectrometer dark , reference spectrum S ref , material spectrum S mea The dark spectrum and reference spectrum can be factory-calibrated fixed values, or current data can be collected in real time. In the absorbance measurement, a dual-beam compensation method is used, and absorption cells with identical optical properties and thickness are selected to hold the test solution and reference solution, respectively. This is to offset factors such as the absorption and reflection of the incident light by the absorption cell, as well as the absorption and scattering of the incident light by the solvent, reagents, etc.

[0076] By obtaining the above data, the absorbance A of the current concentration of the substance can be calculated:

[0077]

[0078] The main pollutants in water bodies are TSS, COD, nitrate nitrogen, total phosphorus and ammonia nitrogen. Therefore, standard gradient concentration solutions of the above substances are prepared. The corresponding spectral data of the standard gradient concentration solutions of these substances are obtained using a spectrometer, and the corresponding absorbance is calculated based on the spectral data; the corresponding relationship between the standard single substance concentration and the absorbance is established, for example: It represents the correspondence between the COD concentration and the absorbance of each concentration in the 250-300nm band. The correspondence between different substances and bands is similar and will not be repeated here.

[0079] S2: Calculate the concentration of TSS, including:

[0080] S21: According to matrix A T CC T The eigenvector corresponding to the maximum eigenvalue of A is calculated to obtain the component vector and the residual matrices corresponding to A and C respectively, and the residual matrices are substituted into A and C respectively, and the iteration is continued until the absolute value of the middle element of the residual matrix corresponding to A is minimized. In the specific example, the iteration is continued until the absolute value of the middle element of the residual matrix corresponding to A is approximately 0, where the initial value of C is the gradient concentration C configured by TSS. TSS The initial value of A is the absorbance A of the gradient concentration solution of TSS in the 400-600nm band. TSS ;

[0081] In a specific embodiment, step S21 specifically includes:

[0082] S211: Definition C TSS =[c1,c2,..,c i ,...,c n ], where C TSS represents the gradient concentration of TSS configuration, c i represents the concentration of the i-th gradient concentration solution, i∈n, n represents the number of gradient concentration solutions; A TSS =[a1,a2,..,a i ,...,a n ], a i =[x i,1 ,...,x i,m ], where A TSS It represents the absorbance of the gradient concentration solution of TSS in the 400-600nm band, a i =[x i,1 ,...,x i,m ] represents the absorbance curve data of the i-th gradient concentration solution in the 400-600 nm band, x i,m Represents the specific absorbance value of the solution with the i-th gradient concentration at wavelength m, where m∈[400,600];

[0083] S212: Calculate matrix A T CC T The eigenvector w1 corresponding to the maximum eigenvalue of A, at this time, the value of C is the gradient concentration C configured by TSS TSS , the value of A is the absorbance A of the gradient concentration solution of TSS in the 400-600nm band TSS , calculate the component vector according to the following formula and residual matrices A1, C 1,TSS :

[0084]

[0085] S213: Calculation Matrix The eigenvector w2 corresponding to the maximum eigenvalue is calculated according to the following formula to obtain the component vector and residual matrices A2, C 2,TSS :

[0086]

[0087] S214: Continue to calculate according to the method of steps S212 and S213 until the residual matrix A p+1 The absolute value of the elements in is close to 0, and the matrix The eigenvector w corresponding to the maximum eigenvalue p+1 , the component vector Residual matrix A p+1 and C p+1,TSS , the specific formula is as follows:

[0088]

[0089] S22: Calculate the ordinary least squares regression equation of A on the component vectors of each component obtained in step S21 to obtain the corresponding relationship between the concentration of TSS and the absorbance in the 400-600 nm band;

[0090] According to the cross-validation, the p+1 components t1,…,t p+1 An effective prediction model can be obtained. In a specific embodiment, step S22 specifically includes:

[0091] Calculate A according to the following formula Ordinary least squares regression equation on :

[0092]

[0093] t k =aw k =w k,1 x 400 +…+w k,n x 600 ,(k=1,2,…,p+1)

[0094] t k Enter the following concentration calculation formula:

[0095]

[0096] The partial least squares regression equation for TSS concentration is as follows:

[0097] c=Da T

[0098] D=[d1,...,d m ]

[0099] Where c represents the concentration of TSS, a represents the absorbance in the 400-600 nm band, D represents the coefficient matrix, and d m Represents the coefficient corresponding to the wavelength variable.

[0100] Based on the relationship between the TSS concentration c and the absorbance a in the 400-600 nm band obtained by partial least squares modeling above, and after obtaining the spectral data of the water sample to be monitored through a spectrometer, the concentration of TSS in the water body can be calculated based on the absorbance data.

[0101] S23: Collect the absorbance of the water body to be monitored in the 400-600nm band, and obtain the concentration of TSS in the water body to be monitored based on the absorbance of the water body to be monitored in the 400-600nm band and the corresponding relationship obtained in step S22.

[0102] In real water bodies, TSS absorbs light across the entire wavelength range. At higher wavelengths, the absorption capacity of other substances, such as major pollutants, approaches zero. In the 400-600 nm wavelength range, the absorbance curves of solutions of varying concentrations exhibit a consistent pattern of variation with concentration. Using the partial least squares method, we established a corresponding relationship between the absorbance vector at 400-600 nm and concentration under a standard gradient concentration. Compared to using absorbance data alone, gradient concentration data can eliminate the influence of other factors on TSS absorbance at varying concentrations.

[0103] S3: Calculate the COD concentration in the water body to be monitored based on the TSS concentration in the water body to be monitored.

[0104] In a multi-component solution system, if the absorbing particles between the components do not interact with each other, then the absorbance is equal to the sum of the absorbances of the components, that is, the additivity of the absorbance.

[0105] In the process of deducing and calculating COD, since the absorbance of TSS is not zero in the entire band, the influence of TSS on COD in the 250-300nm band needs to be eliminated in the calculation process. The absorbance value is additive. Therefore, the absorbance of the water sample between the 250-300nm band is calculated, and the concentration of TSS in the water sample has been calculated in step S2 to obtain the absorbance of TSS between the 250-300nm band. The Simpson rule is used for integration and summation, where f(l) is the wavelength l and its corresponding absorbance value x l There are 2n data points in this band, and the integrals and sums are and Subtracting the two integral sums will give the integral sum of the absorbance of COD in the 250-300 nm band.

[0106] Specifically, step S3 includes:

[0107] Collect the absorbance of the water body to be monitored in the 250-300nm band, and obtain the absorbance of TSS in the water body to be monitored in the 250-300nm band according to the concentration of TSS in the water body to be monitored;

[0108] The Simpson's law is used to calculate the integral and sum of the absorbance of the water to be monitored in the 250-300 nm band. And the integral and absorbance of TSS in the water to be monitored in the 250-300nm band The specific formula is as follows:

[0109]

[0110] The following formula is used to calculate the integral and absorbance of COD in the water to be monitored in the 250-300nm band:

[0111]

[0112] In sewage monitoring, the integral and Approximately equal to the absorbance of COD in the 250-300nm band

[0113] Then, according to the corresponding relationship between the concentration of the standard single substance COD established in step S1 and the absorbance of each concentration in the 250-300nm band, Will Substituting the numerical value into the previous corresponding relationship will obtain the COD concentration in the water body to be monitored.

[0114] S4: Calculate the concentration of nitrate nitrogen in the water body to be monitored based on the concentration of TSS and COD in the water body to be monitored. COD .

[0115] When calculating nitrate nitrogen, the wavelength range selected is 210-250nm. Similar to the calculation of COD, the effects of TSS and COD in this wavelength range must first be eliminated.

[0116] Specifically, step S4 includes:

[0117] Collect the absorbance of the water body to be monitored in the 210-250nm band, and obtain the absorbance of TSS in the water body to be monitored in the 210-250nm band according to the concentration of TSS in the water body to be monitored; obtain the absorbance of COD in the water body to be monitored in the 210-250nm band according to the concentration of COD in the water body to be monitored;

[0118] The Simpson's law is used to calculate the integral and sum of the absorbance of the water body to be monitored in the 210-250nm band. The integral sum of the absorbance of TSS in the water to be monitored in the 210-250nm band And the integral and absorbance of COD in the water to be monitored in the 210-250nm band The specific formula is as follows:

[0119]

[0120] The following formula is used to calculate the integral and absorbance of nitrate nitrogen in the 210-250nm band in the water to be monitored:

[0121]

[0122] In sewage monitoring, the integral and Approximately equal to the absorbance of nitric nitrogen in the 210-250nm band

[0123] Then according to the corresponding relationship between the concentration of standard single substance nitric nitrogen and the absorbance of each concentration in the 210~250nm band Obtain the concentration of nitrate nitrogen in the water to be monitored

[0124] S5: The total phosphorus concentration in the water body to be monitored is calculated by inverting the concentration of TSS, COD and nitrate nitrogen in the water body to be monitored.

[0125] For total phosphorus calculations, the wavelength range of 200-210 nm was selected. Similarly, the absorbance values ​​corresponding to the calculated concentrations of the corresponding substances in this wavelength range needed to be eliminated. The elimination method still used Simpson's rule for integration and summation.

[0126] Specifically, step S5 includes:

[0127] Collect the absorbance of the water body to be monitored in the 200-210nm band, and obtain the absorbance of TSS in the water body to be monitored in the 200-210nm band according to the concentration of TSS in the water body to be monitored; obtain the absorbance of COD in the water body to be monitored in the 200-210nm band according to the concentration of COD in the water body to be monitored; obtain the absorbance of nitrate nitrogen in the water body to be monitored in the 200-210nm band according to the concentration of nitrate nitrogen in the water body to be monitored;

[0128] The Simpson's law is used to calculate the integral and sum of the absorbance of the water body to be monitored in the 200-210 nm band. The integral sum of the absorbance of TSS in the 200-210 nm band in the water to be monitored The integral sum of the absorbance of COD in the 200-210nm band in the water to be monitored And the integral and absorbance of nitrate nitrogen in the 200-210nm band in the water to be monitored The specific formula is as follows:

[0129]

[0130] The following formula is used to calculate the integral and absorbance of total phosphorus in the water to be monitored in the 200-210 nm band:

[0131]

[0132] In sewage monitoring, the integral and Approximately equal to the absorbance of total phosphorus in the 200-210nm band

[0133] Then according to the corresponding relationship between the concentration of total phosphorus of the standard single substance and the absorbance of each concentration in the 200-210nm band Get the total phosphorus concentration in the water to be monitored

[0134] S6: The concentration of ammonia nitrogen in the water body to be monitored is calculated by inverse calculation based on the concentration of TSS, COD, nitrate nitrogen and total phosphorus in the water body to be monitored.

[0135] For the calculation of ammonia nitrogen, the wavelength range selected is 184-194 nm. The absorbance values ​​corresponding to the calculated concentrations of the corresponding substances in this wavelength range need to be eliminated. The elimination method uses the Simpson's rule to perform integral summation.

[0136] Specifically, step S6 includes:

[0137] Collect the absorbance of the water body to be monitored in the 184-194nm band, and obtain the absorbance of TSS in the water body to be monitored in the 184-194nm band according to the concentration of TSS in the water body to be monitored; obtain the absorbance of COD in the water body to be monitored in the 184-194nm band according to the concentration of COD in the water body to be monitored; obtain the absorbance of nitrate nitrogen in the water body to be monitored in the 184-194nm band according to the concentration of nitrate nitrogen in the water body to be monitored; obtain the absorbance of total phosphorus in the water body to be monitored in the 184-194nm band according to the concentration of total phosphorus in the water body to be monitored;

[0138] The Simpson's law is used to calculate the integral and sum of the absorbance of the water body to be monitored in the 184-194 nm band. The integral sum of the absorbance of TSS in the water to be monitored in the 184-194 nm band The integral sum of the absorbance of COD in the 184-194 nm band in the water to be monitored The integral and sum of the absorbance of nitrate nitrogen in the 184-194 nm band in the water to be monitored And monitor the integral and absorbance of total phosphorus in water in the 184-194nm band The specific formula is as follows:

[0139]

[0140] The following formula is used to calculate the integral and absorbance of ammonia nitrogen in the water body to be monitored in the 184-194nm band:

[0141]

[0142] In sewage monitoring, the integral and Approximately equal to the absorbance of ammonia nitrogen in the 184-194nm band

[0143] Then according to the corresponding relationship between the concentration of standard single substance ammonia nitrogen and the absorbance of each concentration in the 184~194nm band Get the concentration of ammonia nitrogen in the water to be monitored

[0144] In a specific example, the full spectrum water quality monitoring method of this embodiment is used to calculate the concentration of a mixed solution. The following Table 1 shows the calculated concentration of the mixed solution. Figure 2 Shown is the original absorbance curve of the mixed solution.

[0145] Table 1

[0146] TSS predicted value TSS actual value COD predicted value Actual COD value 5.33506203 3.125 23.87384769 25 6.21687794 6.25 21.44177673 25 11.457695 12.5 19.51853893 25 24.2237644 25 17.92523125 25 50.2245331 50 24.51684477 25

[0147] It can be seen from the table that the error of the results calculated using the full-spectrum water quality monitoring method of this embodiment is very small.

[0148] The second embodiment of the present invention is:

[0149] A full-spectrum water quality monitoring system includes a computer-readable storage medium and a processor; the computer-readable storage medium stores a computer program, and when the program is executed by the processor, it can implement the steps included in the full-spectrum water quality monitoring method described in Example 1.

[0150] The third embodiment of the present invention is:

[0151] A computer-readable storage medium having a computer program stored thereon, characterized in that when the program is executed by a processor, it can implement the steps included in the full-spectrum water quality monitoring method described in Example 1.

[0152] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Therefore, any modifications, equivalent changes, and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention shall still fall within the scope of the technical solution of the present invention.

Claims

1. A full-spectrum water quality monitoring method, characterized in that: include: S1: The laboratory collects the absorbance of each substance and establishes a corresponding relationship between the standard single substance concentration and the absorbance, specifically including: preparing a standard gradient concentration solution of each substance, and calculating the corresponding absorbance of the standard gradient concentration solution of each substance; the substances include TSS, COD, nitrate nitrogen, total phosphorus and ammonia nitrogen; S2: Calculate the concentration of TSS, including: S21: According to matrix A T CC T The eigenvector corresponding to the maximum eigenvalue of A is calculated to obtain the component vector and the residual matrices corresponding to A and C respectively, and the residual matrices are substituted into A and C respectively, and it is continuously iterated until the absolute value of the element in the residual matrix corresponding to A is the smallest, where the initial value of C is the gradient concentration C configured by TSS TSS The initial value of A is the absorbance A of the gradient concentration solution of TSS in the 400-600nm band. TSS ; S22: Calculate the ordinary least squares regression equation of A on the component vectors of each component obtained in step S21 to obtain the corresponding relationship between the concentration of TSS and the absorbance in the 400-600 nm band; S23: collecting the absorbance of the water body to be monitored in the 400-600 nm band, and obtaining the concentration of TSS in the water body to be monitored based on the absorbance of the water body to be monitored in the 400-600 nm band and the corresponding relationship obtained in step S22; S3: Calculate the COD concentration in the water body to be monitored based on the TSS concentration in the water body to be monitored; S4: Calculate the concentration of nitrate nitrogen in the water body to be monitored based on the concentration of TSS and COD in the water body to be monitored; S5: Calculate the total phosphorus concentration in the water body to be monitored based on the TSS concentration, COD concentration and nitrate nitrogen concentration in the water body to be monitored; S6: The concentration of ammonia nitrogen in the water body to be monitored is calculated by inverse calculation based on the concentration of TSS, COD, nitrate nitrogen and total phosphorus in the water body to be monitored.

2. The full-spectrum water quality monitoring method according to claim 1, characterized in that: Based on the integral of absorbance, the concentrations of COD, nitrate nitrogen, total phosphorus and ammonia nitrogen are inversely calculated.

3. The full-spectrum water quality monitoring method according to claim 1, characterized in that: Step S21 specifically includes: S211: Definition C TSS =[c1,c2,..,c i ,...,c n ], where C TSS represents the gradient concentration of TSS configuration, c i represents the concentration of the i-th gradient concentration solution, i∈n, n represents the number of gradient concentration solutions; A TSS =[a1,a2,..,a i ,...,a n ], a i =[x i,1 ,...,x i,m ], where A TSS It represents the absorbance of the gradient concentration solution of TSS in the 400-600nm band, a i represents the absorbance curve data of the i-th gradient concentration solution in the 400-600nm band, x i,m Represents the value of the solution with gradient concentration i at wavelength m, where m∈[400,600]; S212: Calculate matrix A T CC T The eigenvector w1 corresponding to the maximum eigenvalue of A, at this time, the value of C is the gradient concentration C configured by TSS TSS The value of A is the absorbance A of the gradient concentration solution of TSS configuration in the 400-600nm band. The component vector is calculated according to the following formula: and residual matrices A1, C 1,TSS : S213: Calculation Matrix The eigenvector w2 corresponding to the maximum eigenvalue is calculated according to the following formula to obtain the component vector and residual matrices A2, C 2,TSS : S214: Continue to calculate according to the method of steps S212 and S213 until the residual matrix A p+1 The absolute value of the elements in is the smallest, and the matrix The eigenvector w corresponding to the maximum eigenvalue p+1 , the component vector Residual matrix A p+1 and C p+1,TSS , the specific formula is as follows: Step S22 specifically includes: Calculate A according to the following formula Ordinary least squares regression equation on : t k =aw k =w k,1 x 400 +…+w k,n x 600 ,(k=1,2,…,p+1) t k Enter the following concentration calculation formula: The partial least squares regression equation for TSS concentration is as follows: D=[d1,...,d m ] Where c represents the concentration of TSS, a represents the absorbance in the 400-600 nm band, D represents the coefficient matrix, and d m Represents the coefficient corresponding to the wavelength variable.

4. The full-spectrum water quality monitoring method according to claim 1, characterized in that: Step S3 specifically includes: Collect the absorbance of the water body to be monitored in the 250-300nm band, and obtain the absorbance of TSS in the water body to be monitored in the 250-300nm band according to the concentration of TSS in the water body to be monitored; The Simpson's law is used to calculate the integral and sum of the absorbance of the water to be monitored in the 250-300 nm band. And the integral and absorbance of TSS in the water to be monitored in the 250-300nm band The following formula is used to calculate the integral and absorbance of COD in the water to be monitored in the 250-300nm band: According to the corresponding relationship between the concentration of standard single substance COD and the absorbance of each concentration in the 250-300nm band and the integral and The COD concentration in the water body to be monitored is calculated.

5. The full-spectrum water quality monitoring method according to claim 4, characterized in that: Step S4 specifically includes: Collect the absorbance of the water body to be monitored in the 210-250nm band, and obtain the absorbance of TSS in the water body to be monitored in the 210-250nm band according to the concentration of TSS in the water body to be monitored; obtain the absorbance of COD in the water body to be monitored in the 210-250nm band according to the concentration of COD in the water body to be monitored; The Simpson's law is used to calculate the integral and sum of the absorbance of the water body to be monitored in the 210-250nm band. The integral sum of the absorbance of TSS in the water to be monitored in the 210-250nm band And the integral and absorbance of COD in the water to be monitored in the 210-250nm band The following formula is used to calculate the integral and absorbance of nitrate nitrogen in the 210-250nm band in the water to be monitored: According to the corresponding relationship between the concentration of standard single substance nitrate nitrogen and the absorbance of each concentration in the 210-250nm band and the integral and Calculate the concentration of nitrate nitrogen in the water body to be monitored.

6. The full-spectrum water quality monitoring method according to claim 5, characterized in that: Step S5 specifically includes: Collect the absorbance of the water body to be monitored in the 200-210nm band, and obtain the absorbance of TSS in the water body to be monitored in the 200-210nm band according to the concentration of TSS in the water body to be monitored; obtain the absorbance of COD in the water body to be monitored in the 200-210nm band according to the concentration of COD in the water body to be monitored; obtain the absorbance of nitrate nitrogen in the water body to be monitored in the 200-210nm band according to the concentration of nitrate nitrogen in the water body to be monitored; The Simpson's law is used to calculate the integral and sum of the absorbance of the water body to be monitored in the 200-210 nm band. The integral sum of the absorbance of TSS in the 200-210 nm band in the water to be monitored The integral sum of the absorbance of COD in the 200-210nm band in the water to be monitored And the integral and absorbance of nitrate nitrogen in the 200-210nm band in the water to be monitored The following formula is used to calculate the integral and absorbance of total phosphorus in the water to be monitored in the 200-210 nm band: According to the corresponding relationship between the concentration of total phosphorus of the standard single substance and the absorbance of each concentration in the 200-210nm band and the integral and Calculate the total phosphorus concentration in the water body to be monitored.

7. The full-spectrum water quality monitoring method according to claim 6, characterized in that: Step S6 specifically includes: Collect the absorbance of the water body to be monitored in the 184-194nm band, and obtain the absorbance of TSS in the water body to be monitored in the 184-194nm band according to the concentration of TSS in the water body to be monitored; obtain the absorbance of COD in the water body to be monitored in the 184-194nm band according to the concentration of COD in the water body to be monitored; obtain the absorbance of nitrate nitrogen in the water body to be monitored in the 184-194nm band according to the concentration of nitrate nitrogen in the water body to be monitored; obtain the absorbance of total phosphorus in the water body to be monitored in the 184-194nm band according to the concentration of total phosphorus in the water body to be monitored; The Simpson's law is used to calculate the integral and sum of the absorbance of the water body to be monitored in the 184-194 nm band. The integral sum of the absorbance of TSS in the water to be monitored in the 184-194 nm band The integral sum of the absorbance of COD in the 184-194 nm band in the water to be monitored The integral and sum of the absorbance of nitrate nitrogen in the 184-194 nm band in the water to be monitored And monitor the integral and absorbance of total phosphorus in water in the 184-194nm band The following formula is used to calculate the integral and absorbance of ammonia nitrogen in the water body to be monitored in the 184-194nm band: : According to the corresponding relationship between the concentration of standard single substance ammonia nitrogen and the absorbance of each concentration in the 184-194nm band and the integral and Calculate the concentration of ammonia nitrogen in the water body to be monitored.

8. The full-spectrum water quality monitoring method according to any one of claims 1 to 7, characterized in that: The absorbance was collected by double beam compensation.

9. A full-spectrum water quality monitoring system, characterized in that: It comprises a computer-readable storage medium and a processor; the computer-readable storage medium stores a computer program, and when the program is executed by the processor, it can implement the steps included in the full-spectrum water quality monitoring method described in any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, it can implement the steps included in the full-spectrum water quality monitoring method described in any one of claims 1 to 7.