A method and device for measuring water quality data of a water body

By combining chemical measurement and spectral measurement methods, a multi-source water quality database was constructed and used convolutional neural network to correct it, the accuracy of spectral water quality detection in complex water environments was solved, achieving higher measurement accuracy and reliability.

CN118706763BActive Publication Date: 2024-11-15SICHUAN BELAM TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411203513.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2024-11-15
Estimated Expiration
2044-08-30

AI Technical Summary

Technical Problem

The existing spectral water quality detection methods cannot meet the measurement accuracy in complex water environments, and lack universality, so they cannot effectively deal with the mutual influence of multiple factors.

Method used

Combining traditional chemical measurement methods and spectral measurement methods, a multi-source water quality database is constructed through dilution operations and correction processing to ensure that each sample spectral data corresponds to the water quality index data measured by chemical measurement methods, and is corrected using a convolutional neural network. , avoid the use of conventional computer algorithms.

Benefits of technology

It improves the accuracy of spectral measurement results and the reliability of water quality databases, and is suitable for multi-source measurements in complex water environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118706763B_ABST
    Figure CN118706763B_ABST
Patent Text Reader

Abstract

The present application discloses a method and device for measuring water quality data of a water body, and relates to the field of water quality detection. The key points of the technical solution are: performing a primary quantification on a water sample, diluting the primary quantified water sample to obtain a diluted water sample, performing spectral measurement on the diluted water sample to obtain first sample spectral data of the primary quantified and diluted water sample; correcting the first sample spectral data to obtain second sample spectral data; performing a secondary quantification on the diluted water sample, performing chemical measurement on the secondary quantified and diluted water sample to obtain water quality index data of the secondary quantified and diluted water sample; aggregating the second sample spectral data and water quality index data of the water samples obtained at different dilution multiples, and constructing a water quality database containing the second sample spectral data and water quality index data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of water quality detection, and more specifically, to a method and device for measuring water quality data of a water body. Background Art

[0002] Water quality detection technology based on UV-visible spectroscopy has the characteristics of fast speed, strong real-time performance, small size, low cost, no sample processing, and no secondary pollution. It has achieved high practical application value in the field of water quality detection. A large number of studies have achieved the monitoring of water quality indicators through continuous spectroscopy, combined with automation technology and the application of electronic computers. In order to further improve the accuracy and reliability of measurement results, compensation technology and the establishment of special scenarios have become research hotspots in the industry. However, compensation technology is often designed and optimized according to a certain type of water body or a specific scenario, and it is still not universal for different water environments. In addition, water quality detection not only involves the characteristics of the water body itself, but also includes the combined influence of multiple factors such as water flow, water temperature, water quality, and biological activity. The interaction between these factors makes water body detection more complicated.

[0003] The spectral water quality detection method provided by the prior art is a means of detecting water quality parameters in special scenarios by combining automation technology and computer algorithms. For example, it is designed and optimized according to a certain type of water body or a specific scenario. When applied to such water bodies or specific scenarios, the spectral water quality detection method has a certain measurement accuracy. However, when the spectral water quality detection method is applied to the measurement of complex water bodies (such as the characteristics of the water body itself and multiple factors such as water flow, water temperature, water quality, and biological activity), the interaction between these characteristics and factors makes the water body measurement more complicated, making the spectral water quality detection method unable to meet the water quality measurement requirements of complex water bodies. Summary of the invention

[0004] The purpose of the present application is to provide a method and device for measuring water quality data of a water body. The present application combines the traditional chemical measurement method and the spectral measurement method to realize the homologous measurement of sample spectral measurement and the chemical measurement method of water quality indicators. Based on the measurement results of the two methods, multi-source measurement data of the water body is obtained. The water quality database ensures that each sample spectral data corresponds to the water quality indicator data measured by the chemical measurement method. Secondly, by correcting the first sample spectral data without using conventional computer algorithms for correction, not only the accuracy of the spectral measurement results is guaranteed, but also the subsequently constructed water quality database containing the second sample spectral data and water quality indicator data is made more reliable.

[0005] In a first aspect of the present application, a method for measuring water quality data of a water body is provided, the method comprising:

[0006] Performing a quantitative analysis on the water sample, diluting the quantitative water sample to obtain a diluted water sample, and performing spectral measurement on the diluted water sample to obtain spectral data of a first sample of the quantitative and diluted water sample;

[0007] Correcting the first sample spectral data to obtain second sample spectral data;

[0008] Perform secondary quantification on the diluted water sample, perform chemical measurement on the secondary quantified and diluted water sample, and obtain water quality index data of the secondary quantified and diluted water sample;

[0009] After completing the spectral measurement and chemical measurement corresponding to each dilution operation, the dilution factor of the quantitative water sample is adjusted, and the operating steps of spectral measurement, calibration and chemical measurement are performed in sequence until the preset measurement cycle threshold is reached. The second sample spectral data and water quality index data of the water samples obtained at different dilution factors are summarized to construct a water quality database containing the second sample spectral data and water quality index data.

[0010] In one embodiment, the volume of the water sample for the first quantification is not equal to the volume of the diluted water sample for the second quantification.

[0011] In one embodiment, the specific process of the chemical measurement is: reagents A and B are added to the secondary quantified and diluted water sample in sequence, digested under predetermined temperature conditions, and after the digestion is completed, the water quality index is tested and calculated when the temperature is cooled to 50°C; wherein reagent A is a mixture of sulfuric acid, mercuric sulfate and potassium dichromate, and reagent B is a mixture of sulfuric acid and silver sulfate.

[0012] In one embodiment, one measurement cycle refers to performing 12 dilution operations on a quantitative water sample, wherein the diluted water sample obtained by each dilution operation corresponds to one spectral measurement, calibration and chemical measurement operation step.

[0013] In one embodiment, the dilution multiples of the 12 dilution operations increase sequentially.

[0014] In one embodiment, the dilution multiples of the 12 dilution operations are 0, 2 times, 3 times, 4 times, 5 times, 6 times, 7 times, 8 times, 9 times, 12 times, 18 times, and 36 times, respectively.

[0015] In one embodiment, the first sample spectral data is corrected to obtain the second sample spectral data, specifically:

[0016] Inputting the first sample spectral data into a water quality index prediction model to obtain a predicted value of the water quality index; wherein the water quality index prediction model is obtained by training a convolutional neural network using historical measurement data of water samples and reference spectral data of distilled water as training data, wherein the historical measurement data includes sample spectral data of water samples and water quality index data;

[0017] The predicted value of the water quality index is compared with the water quality index data of the water body sample, and the first sample spectral data is corrected based on the comparison result to obtain the second sample spectral data.

[0018] In one embodiment, the convolutional neural network is a ResNet neural network that introduces a residual module.

[0019] In one embodiment, the method further includes: feeding back the second sample spectral data to the trained water quality index prediction model for relearning and training to adjust the weight of the water quality index prediction model.

[0020] In a second aspect of the present application, a device for measuring water quality data of a water body is provided, which is used to perform a method for measuring water quality data of a water body provided in the present application, wherein the measuring device includes a spectral measurement module, a spectral correction module, a chemical measurement module and a processing module;

[0021] A spectral measurement module is used to quantify a water sample once, dilute the once quantified water sample to obtain a diluted water sample, perform spectral measurement on the diluted water sample, and obtain spectral data of a first sample of the once quantified and diluted water sample;

[0022] A spectrum correction module, used for correcting the spectrum data of the first sample to obtain the spectrum data of the second sample;

[0023] A chemical measurement module is used to perform secondary quantification on the diluted water sample, perform chemical measurement on the secondary quantified and diluted water sample, and obtain water quality index data of the secondary quantified and diluted water sample;

[0024] The processing module is used to adjust the dilution factor of a quantitative water sample after completing the spectral measurement and chemical measurement corresponding to each dilution operation, and sequentially perform the operating steps of spectral measurement, calibration and chemical measurement until a preset measurement cycle threshold is reached. The second sample spectral data and water quality index data of the water samples obtained at different dilution factors are summarized to construct a water quality database containing the second sample spectral data and water quality index data.

[0025] Compared with the prior art, this application has the following beneficial effects:

[0026] The present application provides a method for measuring water quality data of a water body, which combines the traditional chemical measurement method and the spectral measurement method to realize the homologous measurement of sample spectral measurement and the chemical measurement method of water quality indicators, and obtains multi-source measurement data of the water body based on the measurement results of the two methods. The water quality database ensures that each sample spectral data corresponds to the water quality indicator data measured by the chemical measurement method. Secondly, by correcting the first sample spectral data without using conventional computer algorithms for correction, not only the accuracy of the spectral measurement results is guaranteed, but also the subsequently constructed water quality database containing the second sample spectral data and water quality indicator data is made more reliable. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] The drawings described herein are used to provide a further understanding of the embodiments of the present application, constitute a part of the present application, and do not constitute a limitation on the embodiments of the present application. In the drawings:

[0028] Figure 1 A schematic diagram of a flow chart of a method for measuring water quality data of a water body provided in an embodiment of the present application;

[0029] Figure 2 A flowchart of the dilution operation required to be performed for each dilution factor provided in the embodiment of the present application;

[0030] Figure 3 A functional block diagram of a device for measuring water quality data of a water body provided in an embodiment of the present application.

[0031] Marks and corresponding parts names in the attached drawings:

[0032] 310, spectrum measurement module; 320, spectrum correction module; 330, chemical measurement module; 340, processing module. DETAILED DESCRIPTION

[0033] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with examples and drawings. The illustrative implementation scheme of the present application and its description are only used to explain the present application and are not intended to limit the present application.

[0034] It should be noted that the terms "include" or "may include" used in various embodiments of the present application indicate the presence of the function, operation or element applied for, and do not limit the addition of one or more functions, operations or elements. In addition, as used in various embodiments of the present application, the terms "include", "have" and their cognates are only intended to indicate specific features, numbers, steps, operations, elements, components or a combination of the foregoing items, and should not be understood as first excluding the presence of one or more other features, numbers, steps, operations, elements, components or a combination of the foregoing items or the possibility of adding one or more features, numbers, steps, operations, elements, components or a combination of the foregoing items.

[0035] In various embodiments of the present application, the expression "or" or "at least one of B or / and C" includes any combination or all combinations of the words listed at the same time. For example, the expression "B or C" or "at least one of B or / and C" may include B, may include C, or may include both B and C. In the description of the present application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.

[0036] First, the currently available spectrum measurement technology is described.

[0037] (1) UV-Vis spectroscopy: This method uses ultraviolet and visible light of specific wavelengths to illuminate water samples, and determines the concentration of specific substances in the water by analyzing the degree of absorption of light of different wavelengths by the water sample. UV-Vis spectroscopy is often used to detect organic matter, inorganic matter and some heavy metal ions in water.

[0038] (2) Infrared spectroscopy: Infrared spectroscopy uses the absorption characteristics of infrared light to analyze. Since different substances have different absorption characteristics of infrared light, different substances in water samples can be identified by analyzing infrared spectra. Infrared spectroscopy is often used to detect organic compounds in water in water quality monitoring.

[0039] (3) Fluorescence spectroscopy: Certain substances will emit fluorescence when stimulated by light of a specific wavelength. Fluorescence spectroscopy uses this property to analyze water quality. Fluorescence spectroscopy is highly sensitive and selective and can detect trace amounts of harmful substances in water samples.

[0040] (4) Hyperspectral scanning imaging measurement technology: This is a water quality monitoring method that combines spectral analysis and imaging technology. It uses hyperspectral imaging equipment to obtain the spectral information of the water body and calculates the water quality parameters through the inversion model. This method can invert a variety of water quality parameters, such as chemical oxygen demand, ammonia nitrogen, total phosphorus, etc., and has the advantages of high spatial resolution and large amount of information.

[0041] (5) Online spectral water quality monitoring system: Currently, spectral water quality monitoring has achieved online real-time monitoring. This system can continuously monitor water quality parameters and transmit the data in real time to the data center for analysis and processing. The online spectral water quality monitoring system has the advantages of high degree of automation and fast response speed, and is suitable for scenarios such as urban water supply and sewage treatment.

[0042] Although spectral water quality monitoring technology has many advantages and is an important development trend in water quality monitoring, there are also certain limitations in research and development. For example, some substances may not have obvious spectral characteristics, or may be interfered by other factors, resulting in inaccurate measurement results, or only accurate water quality indicators can be predicted for a specific water quality. Therefore, in practical applications, it is necessary to select appropriate spectral technology and combine it with advanced monitoring methods for comprehensive analysis and judgment.

[0043] Based on the above description of existing water quality detection methods, an embodiment of the present application provides a method for measuring water quality data of a water body, which combines traditional chemical measurement methods and spectral measurement methods to achieve homologous measurement of sample spectral measurement and chemical measurement methods of water quality indicators, and obtains multi-source measurement data of the water body based on the measurement results of the two methods. The water quality database ensures that each sample spectral data corresponds to the water quality indicator data measured by the chemical measurement method. Secondly, by correcting the first sample spectral data without using conventional computer algorithms for correction, not only the accuracy of the spectral measurement results is guaranteed, but also the subsequently constructed water quality database containing the second sample spectral data and water quality indicator data is more reliable.

[0044] Please refer to Figure 1 , Figure 1 A schematic diagram of a flow chart of a method for measuring water quality data of a water body provided in an embodiment of the present application, such as Figure 1 As shown, the method includes:

[0045] S101, quantify a water sample once, dilute the once quantified water sample to obtain a diluted water sample, perform spectral measurement on the diluted water sample, and obtain first sample spectral data of the once quantified and diluted water sample.

[0046] In this embodiment, before the water sample is quantified once, a water sample of any volume is drawn into a measuring container for quantification. The quantified value can be 6 ml or 5 ml. This embodiment does not make specific limitations. This is a conventional technical means of technicians in this technical field, and no unnecessary details are given here. Then the water sample after the quantification is diluted once, for example, the digestion chamber is used as an operating container for sample dilution. At this time, the digestion chamber acts as a container and is only used for sample pretreatment, mainly referring to dilution quantification. The water sample diluted by the digestion chamber is injected into the spectral chamber (for example, the injection volume is 6 ml) for spectral measurement, so that the first sample spectral data of the water sample after the quantification and dilution can be measured, and the first sample spectral data is collected.

[0047] It is understandable that the spectral measurement can be one of the three types of measurement: ultraviolet visible spectral measurement, infrared spectral measurement, and fluorescence spectral measurement. Secondly, this embodiment also describes the execution conditions of spectral measurement, specifically: after the water sample to be measured enters the spectral chamber, the spectrometer is started to perform spectral measurement, wherein the measurement parameter settings of the spectrometer during the spectral measurement are specifically as follows: (1) the integration time is set to 10ms; (2) dark background subtraction is selected; (3) the average number of scans is set to 30. The above specific parameter setting values ​​are the optimal conditions obtained after multiple experiments, and the spectral data measured under the execution conditions are obtained.

[0048] S102, correcting the first sample spectrum data to obtain second sample spectrum data.

[0049] In this embodiment, the first sample spectral data is corrected to obtain the second sample spectral data, specifically: first, the first sample spectral data is input into a water quality index prediction model to obtain a predicted value of the water quality index; wherein the water quality index prediction model is obtained by training a convolutional neural network using historical measurement data of water samples and reference spectral data of distilled water as training data, and the historical measurement data includes sample spectral data and water quality index data of water samples; secondly, the predicted value of the water quality index is compared with the water quality index data of the water sample, and the first sample spectral data is corrected based on the comparison result to obtain the second sample spectral data.

[0050] Specifically, water quality index data include chemical oxygen demand, ammonia nitrogen, total nitrogen, total phosphorus and turbidity. Specifically, traditional convolutional neural networks or fully connected networks will have more or less information loss and loss problems when transmitting information, and will also cause gradient vanishing or gradient explosion, making it impossible to train very deep networks. Therefore, based on a single convolutional neural network, it may lead to insufficient training efficiency and affect the predictive performance of the obtained model. Therefore, this embodiment provides a ResNet neural network that introduces a residual module. Using the ResNet neural network, a residual module is introduced into the network to solve the problems of gradient vanishing and model degradation, and the residual module protects the integrity of the information by "bypassing" the input information to the output. The entire network only needs to learn the input, output and residual parts, which can simplify the learning objectives and difficulty.

[0051] The water quality index prediction model is obtained by training a convolutional neural network using historical measurement data of water samples and reference spectral data of distilled water as training data, specifically including: normalizing the reference spectral data and the sample spectral data respectively to obtain the characteristic values ​​of the reference spectral data and the sample spectral data, selecting data in the wavelength range that meets the preset linear characteristics in the characteristic values ​​of the reference spectral data and the sample spectral data as sub-training data; processing the sub-training data and the water quality index data into the dimensions required for the convolutional neural network input, and presetting the loss function and optimizer for training, and obtaining the water quality index prediction model when the convolutional neural network reaches the iteration conditions for training.

[0052] In this embodiment, the measurement process of the reference spectral data of distilled water is: quantifying the distilled water, performing spectral measurement on the quantified distilled water, and obtaining the reference spectral data of distilled water; wherein the range of quantifying the distilled water is consistent with the range of once quantifying the water sample. Specifically, the role of adding the reference spectral data of distilled water to the training data of the convolutional neural network is to provide a reference standard for the spectrum. The reason is that when performing spectral measurement on water samples obtained in an actual environment, they are easily disturbed by the external environment, which leads to the easy deviation of the measured sample spectral data. Therefore, this embodiment adds the reference spectral data of distilled water with the same content as the water sample as the data for training the convolutional neural network to ensure the learning accuracy of the convolutional neural network on the sample spectral data.

[0053] During the training phase, spectral data in a wavelength range with obvious linear features (wavelength around 220nm-320nm) are selected for training. Obvious linear features refer to the part that meets the preset linear features. The advantage of discarding data with no obvious difference in linear features is that it can avoid a large amount of redundant data from being input into the convolutional neural network, which reduces the training speed, and also avoids the reduction of the prediction performance of the final prediction model due to redundant data.

[0054] Then the selected data is normalized. Since some eigenvalues ​​in the input training data are very large, while other eigenvalues ​​are very small, it is difficult for the network to learn the correct weights for eigenvalues ​​with very different magnitudes. This will cause the gradient descent algorithm to converge very slowly, and may even fall into a local optimal solution. Therefore, the input data needs to be normalized to convert all eigenvalues ​​into a similar numerical range, so that the training can converge faster and obtain the desired results.

[0055] The normalized feature data is then processed into the dimensions and format required for the convolutional neural network input, and the loss function and optimizer applicable to the data are defined. When the corresponding iteration conditions are met, the training of the convolutional neural network can be completed, that is, the water quality index prediction model is obtained, and the water quality index prediction model is saved for later prediction of the predicted value of the water quality index.

[0056] In the prediction stage of using the water quality index prediction model for prediction, this embodiment provides a method of defining an App instance using the FastAPI framework and loading it. At the same time, configure the global exception information processing, set the returned exception information format and service status. That is, the spectral data to be processed is received through the network interface, wherein the received spectral data to be processed is four data lists, namely the wavelength of the reference spectral data and the wavelength of the sample spectral data, the light intensity of the reference spectral data and the light intensity of the sample spectral data. Then call the service layer function, including specific service functions, such as a service function that can preliminarily check the data format, whether the data is sufficient, the format is wrong or the data is insufficient to evoke error processing. If the data is normal, it is processed into the dimension and format of the water quality index prediction model input, and the trained water quality index prediction model is used for prediction, and the predicted value of the water quality index is returned. Otherwise, the exception information is returned, and the exception information includes information such as the data format, whether the data is sufficient, the format is wrong or the data is insufficient.

[0057] Comparison refers to the predicted value of water quality index and the actual value of water quality index data measured by chemical method. By comparing the index values, the comparison result can be obtained.

[0058] Secondly, the water quality index prediction model is corrected based on the corrected second sample spectral data, specifically: the second sample spectral data is fed back to the trained water quality index prediction model for re-learning and training to adjust the weight of the water quality index prediction model.

[0059] Specifically, by comparing the predicted results with the actual values ​​measured by chemical methods, if the numerical comparison results are significantly different and the error is greater than 5%, the real information measured by the chemical method (the actual water quality index values ​​and the corresponding spectral data to be processed) is fed back to the model for re-learning and training. The above steps are repeated, and the model weights are updated iteratively to obtain the best results.

[0060] S103, performing secondary quantification on the diluted water sample, performing chemical measurement on the secondary quantified and diluted water sample, and obtaining water quality index data of the secondary quantified and diluted water sample.

[0061] In this embodiment, based on the above-mentioned step S101, the diluted water sample remaining in the spectral chamber is not discharged, but injected into the metering chamber for secondary quantification (2.5 ml), and then injected into the digestion chamber for water quality index testing for chemical testing after secondary quantification. The sample remaining in the spectral chamber is directly discharged into the waste water bucket, thereby realizing homologous samples measured by spectral measurement and chemical measurement methods. Homologous samples refer to samples that absolutely come from the same dilution.

[0062] S104, after completing the spectral measurement and chemical measurement corresponding to each dilution operation, adjust the dilution factor of the quantitative water sample, and perform the spectral measurement, calibration and chemical measurement steps in sequence until the preset measurement cycle threshold is reached, and then summarize the second sample spectral data and water quality index data of the water samples obtained at different dilution factors to construct a water quality database containing the second sample spectral data and water quality index data.

[0063] In this embodiment, the spectral measurement and chemical measurement of the above steps S101 and S103 are all based on the water sample after the corresponding dilution factor under a dilution operation as the test object. However, what this application needs to complete is the multi-source measurement of water quality data of the water body. Therefore, after completing the spectral measurement and chemical measurement corresponding to each dilution, the dilution factor of the quantitative water sample is adjusted once, so that the sample spectral data and water quality indicators of the water sample at different dilution factors can be collected.

[0064] It should be noted that in the dilution process of water samples, generally no further dilution is performed after 12 dilution operations, that is, one measurement round corresponds to 12 dilution operations performed on a quantitative water sample. After one measurement round is completed, the next measurement cycle is carried out. The measurement process is uninterrupted, and data can be accumulated to the greatest extent to ensure the richness of the water quality data of the water body. For example, if the measurement cycle threshold is 5, 5 measurement rounds need to be executed in a cycle. Finally, the second sample spectral data and water quality index data of the water samples with different dilution multiples in the 5 measurement rounds are summarized to construct a water quality database containing the second sample spectral data and water quality index data.

[0065] In some embodiments, the volume of the water sample for the first quantification is not equal to the volume of the diluted water sample for the second quantification.

[0066] As can be understood by those skilled in the art, the primary quantitative content of spectral measurement is different from the secondary quantitative content of chemical measurement.

[0067] In some embodiments, the specific process of the chemical measurement is: reagents A and B are added to the secondary quantified and diluted water sample in sequence, digested under predetermined temperature conditions, and after the digestion is completed, the water quality index is tested and calculated when the temperature is cooled to 50°C; wherein reagent A is a mixture of sulfuric acid, mercuric sulfate and potassium dichromate, and reagent B is a mixture of sulfuric acid and silver sulfate.

[0068] In this embodiment, the chemical measurement method is a conventional technical means of those skilled in the art. This embodiment will not be described in detail, but only an embodiment is given for brief description, as follows: according to the national standard method, 2.5 ml of water sample is injected, and reagents A and B are added in sequence, 1 ml and 2.5 ml respectively, and high-temperature digestion is performed at 165°C for 20 minutes, and then the water quality index is tested and calculated after cooling. Exemplarily, the chemical measurement process: 1 ml of a mixture of reagent A, mercuric sulfate and potassium dichromate, and 2.5 ml of a mixture of reagent B, sulfuric acid and silver sulfate, are added, and digested for 1100s at a predetermined temperature of 165°C after mixing. It can be explained here that digestion is a high-temperature digestion process in the chemical measurement method, which is a conventional technical means in the field of this technology. This embodiment does not elaborate on its working principle and function in detail. The color absorbance test is performed through the digestion process, and then, after waiting for the temperature to cool to 50°C, the waste liquid is discharged, and finally, the specific value of the water quality index is calculated. It is understandable that the method for calculating the specific value of the water quality index is a conventional technical means of chemical measurement, and this embodiment will not provide a specific description.

[0069] In some embodiments, one test number corresponds to 12 dilution operations performed on a quantitative water sample, and the dilution multiples of the 12 dilution operations increase successively. Specifically, the dilution multiples of the 12 dilution operations are 0, 2 times, 3 times, 4 times, 5 times, 6 times, 7 times, 8 times, 9 times, 12 times, 18 times, and 36 times respectively.

[0070] Specifically, if Figure 2 As shown in the figure, it is the process of spectral measurement and chemical measurement in each dilution operation. There are 12 dilution operations in total for one test. Each dilution operation corresponds to a dilution multiple, such as 0 times for range A, 2 times for range B, etc. Each dilution operation needs to be performed in sequence. Figure 2 The default value of -25 includes 26 operation processes in total. These operation processes are conventional technical means for dilution operation and will not be described in detail in this embodiment.

[0071] The 12 dilution operations will be described below in conjunction with specific implementations.

[0072] Specifically, (1) A range: When the dilution factor is 0, a spectral measurement is performed on a quantitative water sample to obtain sample spectral data of the quantitative water sample.

[0073] (2) Range B: Dilute 2 times, inject 3.5 ml of sample and distilled water into the digestion chamber respectively, stir and mix, then draw 6 ml into the spectroscopic chamber and drain the rest.

[0074] (3) C range: dilute 3 times, inject 2.5 ml of sample and 5 ml of distilled water into the digestion chamber respectively, stir and mix, then draw 6 ml into the spectroscopic chamber and drain the rest.

[0075] (4) D range: dilute 4 times, inject 2 ml of sample and 6 ml of distilled water into the digestion chamber respectively, stir and mix, then draw 6 ml into the spectroscopic chamber and drain the rest.

[0076] (5) E range: dilute 5 times, inject 1.5 ml of sample and 6 ml of distilled water into the digestion chamber respectively, stir and mix, then draw 6 ml into the spectroscopic chamber and drain the rest.

[0077] (6) F range: dilute 6 times, inject 2.5 ml of sample and distilled water into the digestion chamber respectively, stir and mix, then drain 2.5 ml, retain 2.5 ml, inject 5 ml of distilled water, stir and mix, extract 6 ml into the spectrum chamber, and drain the rest.

[0078] (7) G range: dilute 7 times, inject 1 ml of sample and 6 ml of distilled water into the digestion chamber respectively, stir and mix, then draw 6 ml into the spectroscopic chamber and drain the rest.

[0079] (8) H range: dilute 8 times, inject 1 ml of sample and 7 ml of distilled water into the digestion chamber respectively, stir and mix, then draw 6 ml into the spectroscopic chamber and drain the rest.

[0080] (9) I range: dilute 9 times, inject 2.5 ml of sample and 5 ml of distilled water into the digestion chamber respectively, stir and mix, then drain 5 ml, retain 2.5 ml, inject 5 ml of distilled water again, stir and mix, extract 6 ml into the spectrum chamber, and drain the rest.

[0081] (10) J range: dilute 12 times, inject 2.5 ml of sample and distilled water into the digestion chamber respectively, stir and mix, remove 2.5 ml, retain 2.5 ml, inject 2.5 ml of distilled water, stir and mix, remove 2.5 ml, retain 2.5 ml, inject 5 ml of distilled water, stir and mix, extract 6 ml into the spectrum chamber, and drain the rest.

[0082] (11) k range: dilute 18 times, inject 2.5 ml of sample and distilled water into the digestion chamber respectively, stir and mix, remove 2.5 ml, retain 2.5 ml, inject 5 ml of distilled water, stir and mix, remove 5 ml, retain 2.5 ml, inject 5 ml of distilled water, stir and mix, extract 6 ml into the spectrum chamber, and drain the rest.

[0083] (12) L range: dilute 36 times, inject 2.5 ml of sample and distilled water into the digestion chamber respectively, stir and mix, remove 2.5 ml, retain 2.5 ml, inject 2.5 ml of distilled water, stir and mix, remove 2.5 ml, retain 2.5 ml, inject 5 ml of distilled water, stir and mix, remove 5 ml, retain 2.5 ml, inject 5 ml of distilled water, stir and mix, extract 6 ml into the spectrum chamber, and drain the rest.

[0084] Please refer to Figure 3 , Figure 3 A schematic diagram of a device for measuring water quality data of a water body provided in an embodiment of the present application, such as Figure 3 As shown, the measuring device is used to perform the above Figure 1 A method for measuring water quality data of a water body is shown, wherein the measuring device comprises a spectral measurement module, a spectral correction module, a chemical measurement module and a processing module;

[0085] The spectrum measurement module 310 is used to perform a primary quantification on the water sample, dilute the primary quantified water sample to obtain the diluted water sample, perform spectrum measurement on the diluted water sample, and obtain first sample spectrum data of the primary quantified and diluted water sample;

[0086] The spectrum correction module 320 is used to correct the first sample spectrum data to obtain the second sample spectrum data;

[0087] The chemical measurement module 330 is used to perform secondary quantification on the diluted water sample, perform chemical measurement on the secondary quantified and diluted water sample, and obtain water quality index data of the secondary quantified and diluted water sample;

[0088] The processing module 340 is used to adjust the dilution factor of a quantitative water sample after completing the spectral measurement and chemical measurement corresponding to each dilution operation, and sequentially perform the operating steps of spectral measurement, calibration and chemical measurement until a preset measurement cycle threshold is reached. The second sample spectral data and water quality index data of the water samples obtained at different dilution factors are summarized to construct a water quality database containing the second sample spectral data and water quality index data.

[0089] It should be understood that the measuring device provided in this embodiment mainly refers to a module for implementing the operating steps, which includes not only containers for completing quantification, dilution, spectral measurement and chemical measurement, but also electronic equipment for performing data processing. The present application combines the traditional chemical measurement method with the spectral measurement method to realize the homologous measurement of sample spectral measurement and chemical measurement method of water quality index. Based on the measurement results of each of the two methods, multi-source measurement data of the water body is obtained. The water quality database ensures that each sample spectral data corresponds to the water quality index data measured by the chemical measurement method. Secondly, by correcting the first sample spectral data without using conventional computer algorithms for correction, not only the accuracy of the spectral measurement results is guaranteed, but also the water quality database containing the second sample spectral data and water quality index data constructed later is more reliable.

[0090] The specific implementation methods described above further illustrate the purpose, technical solutions and beneficial effects of the present application in detail. It should be understood that the above description is only the specific implementation method of the present application and is not intended to limit the scope of protection of the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application.

Claims

1. A method for measuring water quality data of a water body, characterized in that: Methods include: Performing a quantitative analysis on the water sample, diluting the quantitative water sample to obtain a diluted water sample, and performing spectral measurement on the diluted water sample to obtain spectral data of a first sample of the quantitative and diluted water sample; Correcting the first sample spectral data to obtain the second sample spectral data; wherein correcting the first sample spectral data to obtain the second sample spectral data is specifically as follows: inputting the first sample spectral data into a water quality index prediction model to obtain a predicted value of the water quality index; wherein the water quality index prediction model is obtained by training a convolutional neural network using historical measurement data of water samples and reference spectral data of distilled water as training data, wherein the historical measurement data includes sample spectral data of water samples and water quality index data; comparing the predicted value of the water quality index with the water quality index data of the water samples, and correcting the first sample spectral data based on the comparison result to obtain the second sample spectral data; Perform secondary quantification on the diluted water sample, perform chemical measurement on the secondary quantified and diluted water sample, and obtain water quality index data of the secondary quantified and diluted water sample; After completing the spectral measurement and chemical measurement corresponding to each dilution operation, adjust the dilution factor of a quantitative water sample, and perform the spectral measurement, calibration and chemical measurement operation steps in sequence until the preset measurement cycle threshold is reached. The second sample spectral data and water quality index data of the water samples obtained at different dilution factors are summarized to construct a water quality database containing the second sample spectral data and water quality index data; wherein, one measurement cycle refers to performing 12 dilution operations on a quantitative water sample, wherein the diluted water sample obtained by each dilution operation corresponds to a spectral measurement, calibration and chemical measurement operation step.

2. The method for measuring water quality data of a water body according to claim 1, characterized in that: The volume of the water sample for the first quantification is not equal to the volume of the diluted water sample for the second quantification.

3. The method for measuring water quality data of a water body according to claim 1, characterized in that: The specific process of the chemical measurement is: adding reagents A and B to the secondary quantitative and diluted water sample in sequence, performing high-temperature digestion under predetermined temperature conditions, and testing and calculating water quality indicators after cooling; wherein reagent A is a mixture of sulfuric acid, mercuric sulfate and potassium dichromate, and reagent B is a mixture of sulfuric acid and silver sulfate.

4. The method for measuring water quality data of a water body according to claim 3, characterized in that: The dilution multiples of the 12 dilution operations increase sequentially.

5. The method for measuring water quality data of a water body according to claim 4, characterized in that: The dilution multiples of the 12 dilution operations are 0, 2 times, 3 times, 4 times, 5 times, 6 times, 7 times, 8 times, 9 times, 12 times, 18 times, and 36 times, respectively.

6. The method for measuring water quality data of a water body according to claim 1, characterized in that: The convolutional neural network is a ResNet neural network that introduces a residual module.

7. The method for measuring water quality data of a water body according to claim 1, characterized in that: The method further includes: feeding back the second sample spectral data to the trained water quality index prediction model for relearning and training to adjust the weight of the water quality index prediction model.

8. A device for measuring water quality data of a water body, characterized in that: Used to perform a method for measuring water quality data of a water body as claimed in any one of claims 1 to 7, the measuring device comprising a spectral measurement module, a spectral correction module, a chemical measurement module and a processing module; A spectral measurement module is used to quantify a water sample once, dilute the once quantified water sample to obtain a diluted water sample, perform spectral measurement on the diluted water sample, and obtain spectral data of a first sample of the once quantified and diluted water sample; A spectral correction module, used for correcting the first sample spectral data to obtain the second sample spectral data; wherein the first sample spectral data is corrected to obtain the second sample spectral data, specifically: the first sample spectral data is input into a water quality index prediction model to obtain a predicted value of the water quality index; wherein the water quality index prediction model is obtained by training a convolutional neural network using historical measurement data of water samples and reference spectral data of distilled water as training data, and the historical measurement data includes sample spectral data and water quality index data of water samples; the predicted value of the water quality index is compared with the water quality index data of the water sample, and the first sample spectral data is corrected based on the comparison result to obtain the second sample spectral data; A chemical measurement module is used to perform secondary quantification on the diluted water sample, perform chemical measurement on the secondary quantified and diluted water sample, and obtain water quality index data of the secondary quantified and diluted water sample; The processing module is used to adjust the dilution factor of a quantitative water sample after completing the spectral measurement and chemical measurement corresponding to each dilution operation, and sequentially perform the operating steps of spectral measurement, calibration and chemical measurement until a preset measurement cycle threshold is reached, and then the second sample spectral data and water quality index data of the water sample obtained at different dilution factors are summarized to construct a water quality database containing the second sample spectral data and water quality index data; wherein one measurement cycle refers to performing 12 dilution operations on a quantitative water sample, wherein the diluted water sample obtained by each dilution operation corresponds to the operating steps of spectral measurement, calibration and chemical measurement.