Water supply quality safety detection method and system
By establishing a water quality prediction model and using fitting tools to predict changes in water quality detection data in advance, the lag problem of water quality detection in water supply is solved and the water quality safety used by residents is ensured.
Patent Information
- Application Number
- CN202510222005.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-27
- Publication Date
- 2025-05-13
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing water quality testing methods for water supply have lag, which may cause residents to conduct inspections only after using unqualified water, resulting in safety issues.
Through the fitting tool, a water quality prediction model is established, and water quality safety inspection is carried out in advance to reduce detection lag.
Effectively prevent residents from using water that does not meet the standards, improve the timeliness and accuracy of water quality testing, and ensure the safety of residents' water quality.
Smart Images

Figure CN119989001A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of water quality safety, and in particular to a water supply quality safety detection method and system. Background Art
[0002] People's lives cannot be separated from water, especially safe water. With the advancement of science and technology, it has brought a lot of convenience to life. At the same time, it has also left many problems in the rapid development, among which the pollution of water resources is particularly obvious. Therefore, the water used by residents needs to undergo a series of purification before it can be delivered to the people for use.
[0003] Since there is a certain distance between the water supply plant and the residential area, water needs to be transported through pipelines. After a period of use, the pipeline will have a certain impact on the water quality. Therefore, not only are water quality standard thresholds set when the water is discharged from the water supply plant, but water quality testing equipment is also installed in the water storage containers in the residential area. However, there is an interval between water quality testing, and thus a certain lag, which may result in residents using unqualified water before testing, thus causing safety problems. Summary of the invention
[0004] In response to the above problems, the present application provides a water supply quality safety detection method and system, which uses fitting tools based on detection data to predict changes in water quality safety detection in advance, thereby preventing residents from using water that does not meet the standards.
[0005] As one aspect of the present application, a method for detecting water quality safety of water supply is provided, comprising: S1, set water quality safety threshold set , where n=1, 2, 3······N, is the safe water quality data interval corresponding to the nth water quality detection index; S2, receiving the water quality detection data set Bm, where m represents the number of water quality detection data sets, and m is initially 1, Bm={B1m, B2m…B n m…B N m}, B n m is the water quality data value corresponding to the nth water quality detection index in the mth group of water quality detection data set. The water quality detection data set is detected by the detection time F m Mark the water quality data values in the water quality detection data set Bm and the water quality safety threshold set If there is a water quality data value in the water quality detection data set Bm that is not within the water quality safety threshold set If the corresponding safe water quality data interval in the data set does not exist, a water quality danger warning signal is issued. If it does not exist, the size of m is determined. If it is greater than or equal to M, where M is the threshold of the number of water quality detection data sets, then S3 is entered. If it is less than M, a water quality safety signal is output and S4 is entered. S3, establish a water quality prediction model based on all water quality detection data sets, obtain the water quality detection data set Bm+1 through the water quality prediction model, and compare the water quality data values in the water quality detection data set Bm+1 with the water quality safety threshold set one by one. If the water quality data value in the water quality detection data set Bm is not within the water quality safety threshold set, If the corresponding safe water quality data interval is present, a water quality danger warning signal is issued; if not, a water quality safety signal is output and the process goes to S4; S4: Obtain the next water quality detection data set Bm at intervals of time t, and return to S2.
[0006] Furthermore, a water quality prediction model is established based on the water quality detection data set, and the specific steps are as follows; Get all water quality detection data sets Bi, i=1, 2, 3······m; Bi={B1i, B2i…B n i…B N i} Select the nth water quality detection index, perform the following operations for the nth water quality detection index, and convert the water quality data values B in all water quality detection data sets Bi into n i is extracted, and the water quality data value is B n The horizontal coordinate corresponding to i is , thus obtaining discrete points , through the curve fitting tool, fit the water quality change curve of the nth water quality detection index, and obtain the water quality function relationship B corresponding to the curve n i-it, water quality function relationship B n i-it means B n The functional relationship of i with respect to it.
[0007] Furthermore, it also includes the water quality data values in the water quality detection data set Bm and the water quality safety threshold set The safe water quality data interval in the calculation is calculated as a whole to obtain the overall water quality data value and the overall water quality safety threshold interval. The overall water quality data value and the corresponding horizontal coordinate Form discrete points to form the overall curve of the water quality detection data set. The specific steps are: K1, obtain the water quality detection data set Bm, and calculate the overall safety value of the water quality detection data set Bm , The product of the proportion set for the safety importance of the nth test item and the difference between the water quality data value and the middle value of the safe water quality data interval, is the overall safety value of the water quality detection data set Bm; K2, through the water quality safety threshold set , obtain the water quality safety threshold set The overall water quality safety threshold range is , Depend on and composition, , is the minimum value of the safe water quality data interval corresponding to the nth water quality detection index, is the maximum value of the safe water quality data interval corresponding to the nth water quality detection index; K3, will and Match, if present Not in If it is within, a water quality danger warning signal is issued. If it does not exist, the size of m is determined. If it is greater than or equal to M, K4 is entered. If it is less than M, a water quality safety signal is output. K4, through With the corresponding mt, we get the discrete points , through the curve fitting tool, obtain an overall curve of the water quality detection data set and output the overall water quality function relationship -mt, overall water quality function relationship -mt means Regarding the functional relationship of mt, we can input (m+1)t and use the overall water quality function relationship -mt Get the overall security value ,Will and Match, if present Not in If it is within the range, a water quality danger warning signal is issued. If it is not, a water quality safety signal is output.
[0008] Furthermore, it also includes determining the value of m. When it reaches a certain value, Directly substitute into the overall water quality function relationship -mt, thereby obtaining the maximum number of water quality safety detection times, and then obtaining the service life of the pipeline. The specific steps are: Determine the size of m. If it is greater than or equal to Z, then output the overall water quality function relationship -mt, use Substitution , get m max , m max is the maximum number of detection times within the water quality safety range, m max / 12 is the service life of the pipeline, m max / 12 rounded down.
[0009] A water supply quality safety detection system, comprising: A water quality safety threshold set storage module is used to store a water quality safety threshold set, wherein the water quality safety threshold set includes a safe water quality data interval corresponding to a water quality detection index; A water quality detection data set receiving module is used to receive a water quality detection data set; A water quality data value extraction module is used to extract required water quality data values from a water quality detection data set; Water quality data value matching module, used to match water quality data values with safe water quality data intervals; Water quality prediction model module, used to establish a water quality prediction model; The water quality hazard warning module is used to send out water quality hazard warning signals.
[0010] Furthermore, it also includes: The overall calculation module is used for overall calculation of water quality data values and safe water quality data intervals; Pipeline safety module, used to obtain the maximum value of pipeline service life.
[0011] The present invention has the following advantages: 1. The present invention obtains the change curve of the water quality data value in the water quality detection data set Bm through a curve fitting tool, obtains the water quality detection data set Bm+1 through a water quality prediction model, thereby predicting the water quality data value of the next water quality detection data set, and conducting water supply water quality safety detection in advance, solving the lag of detection through pipeline transportation, and ensuring the safety of residents' use.
[0012] 2. The present invention is With the corresponding mt, we get the discrete points , through the curve fitting tool, obtain an overall curve about the water quality detection data set and output the overall water quality function relationship -mt, thereby reducing the number of matches, judging the water quality safety based on the overall situation, and making a more reasonable judgment on the water quality safety after pipeline transportation.
[0013] 3. This method outputs the overall water quality function relationship -mt, use Substitution , get m max , use m max / 12 Calculate the maximum service life of the pipeline, so as to predict in advance the time when the water quality will be unsafe. This not only solves the lag problem, but also makes it easier for the municipal government to grasp the time to replace the pipeline, ensuring the safety of water supply while ensuring normal water supply. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.
[0015] Figure 1 The present invention is a schematic diagram of the flow of a water supply quality safety detection system. DETAILED DESCRIPTION
[0016] In order to make the purpose, technical scheme and advantages of the present application clearer, some embodiments of the present application are further described in detail below in conjunction with the accompanying drawings and Examples. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. However, it will be appreciated by those skilled in the art that in the various embodiments of the present application, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can also be implemented.
[0017] Embodiment 1: Embodiment 1 of the present invention provides a method for detecting water quality safety of water supply, comprising: S1, set water quality safety threshold set , where n=1, 2, 3······N, is the safe water quality data interval corresponding to the nth water quality detection index; It needs to be further explained that: a water quality standard threshold is set at the water supply plant. Water must reach the water quality standard threshold in the water supply plant before it can be transported to residential areas. The pH value is set to 7.5. Water quality monitoring equipment is installed at the water storage end of the residential area, and the water quality testing equipment can send a data set of water quality monitoring equipment test items to the water supply plant (called the water quality testing data set Bm).
[0018] S2, receiving the water quality detection data set Bm, where m represents the number of water quality detection data sets, and m is initially 1, Bm={B1m, B2m…B n m…B N m}, B n m is the water quality data value corresponding to the nth water quality detection index in the mth group of water quality detection data sets. The detection indexes include pH value, dissolved oxygen, acidity, chromaticity, turbidity, total hardness, fluoride, etc. For example, pH value is the first water quality detection index. In the fifth group of data, the water quality data value is 7.5, which is represented by B15=7.5, so that each water quality data value can be clearly represented, which is convenient for searching and extraction. The water quality detection data set Bm is obtained by the detection time F m Marking, Fm The format is XXXX year XX month XX day XX hour XX minute. The water quality data values in the water quality detection data set Bm are compared with the water quality safety threshold set If the water quality data value in the water quality detection data set Bm is not within the water quality safety threshold set, If the corresponding safe water quality data interval is in the range, a water quality hazard warning signal is issued. For example, GB 5749-2022 states that the limit of pH value is not less than 6.5 and not greater than 8.5. If the water quality data value corresponding to the pH value in the water quality detection data set Bm is 6.3, which is not in the interval [6.5, 8.5], it means that the water quality is unqualified and a water quality hazard warning signal is issued. If it does not exist, the size of m is determined. If it is greater than or equal to M, M is the water quality detection data set quantity threshold, then enter S3. If it is less than M, a water quality safety signal is output and enter S4. S3, establish a water quality prediction model based on all water quality detection data sets. The water quality prediction model can obtain the change curve of the water quality data value in the water quality detection data set Bm through the curve fitting tool. The water quality detection data set Bm+1 is obtained through the water quality prediction model, so as to predict the water quality data value of the next water quality detection data set, conduct water supply water quality safety detection in advance, cancel the lag of detection through pipeline transportation, and ensure the safety of residents. For example, when M=120, the pH value is the first detection item, and the pH value of 120 times is 7.5. The corresponding change curve of the pH value is a straight line B1m=7.5, and the value of B1m+1 in the water quality detection data set Bm+1 is 7.5. The water quality data values in the water quality detection data set Bm+1 are compared with the water quality safety threshold set one by one. If the water quality data value in the water quality detection data set Bm is not within the water quality safety threshold set, If the corresponding safe water quality data interval is found, a water quality danger warning signal is issued. If not, such as the pH value is 7.5, which is within the interval [6.5, 8.5], a water quality safety signal is output and the process goes to S4; It should be further explained that: according to the requirement that the service life of municipal pipelines is 50 years, the interval acquisition time t is one month, and the water storage end is equipped with water quality monitoring equipment to conduct detection on the first day of each natural month. In order to further ensure the safety of water quality, after 10 years of use, that is, after 120 detections, that is, m ≥ 120, it is necessary to use the water quality prediction model to determine whether the water quality data value in the next water quality detection data set Bm is within the water quality safety threshold set The corresponding safe water quality data interval is M=120.
[0019] The water quality detection data set is used to establish a water quality prediction model. It needs to be supplemented that; Get all water quality detection data sets Bi, i=1, 2, 3······m; Bi={B1i, B2i…B n i…B N i} Select the nth water quality detection index, perform the following operations for the nth water quality detection index, and convert the water quality data values B in all water quality detection data sets Bi into n i is extracted, and the water quality data value is B n The horizontal coordinate corresponding to i is , thus obtaining discrete points , through the curve fitting tool, fit the water quality change curve of the nth water quality detection index, and obtain the water quality function relationship B corresponding to the curve n i-it, water quality function relationship B n i-it means B n The functional relationship of i with respect to it.
[0020] S4: After the interval acquisition time t, obtain the next water quality detection data set Bm and return to S2.
[0021] In order to further optimize the steps of S2, reduce the number of matches, and determine the safety of water quality based on the overall situation, it is necessary to add: K1, obtain the water quality detection data set Bm, and calculate the overall safety value of the water quality detection data set Bm , The product of the proportion set for the safety importance of the nth test item and the difference between the water quality data value and the middle value of the safe water quality data interval, is the overall safety value of the water quality test data set Bm. For example, in the 120 sets of water quality test data sets Bm, the pH value is 7.5, which means that the influence of the pipeline on the pH value is very small, that is, the pH value is set The proportion is approximately equal to 0; K2, through the water quality safety threshold set , obtain the water quality safety threshold set The overall water quality safety threshold range is , Depend on and composition, , is the minimum value of the safe water quality data interval corresponding to the nth water quality detection index, is the maximum value of the safe water quality data interval corresponding to the nth water quality detection index. Similarly, pH value is the first water quality detection index. =6.5, =8.5; K3, will and Match, if present Not in If it is within, a water quality danger warning signal is issued. If it does not exist, the size of m is determined. If it is greater than or equal to M, K4 is entered. If it is less than M, a water quality safety signal is output. K4, through With the corresponding mt, we get the discrete points , through the curve fitting tool, obtain an overall curve of the water quality detection data set and output the overall water quality function relationship -mt, overall water quality function relationship -mt means Regarding the functional relationship of mt, we can input (m+1)t and use the overall water quality function relationship -mt Get the overall security value ,Will and Match, if present Not in If it is within the range, a water quality danger warning signal is issued. If it is not, a water quality safety signal is output. It is more reasonable to judge the safety of the water quality of the water supply as a whole.
[0022] In order to further optimize the step of K4, it is also necessary to add: if it does not exist, determine the size of m, if it is greater than or equal to Z, enter K5, otherwise output a water quality safety signal.
[0023] K5, in the output of the overall water quality function relationship -mt, use Substitution , get m max , m max is the maximum number of detection times within the water quality safety range, m max / 12 is the service life of the pipeline, m max / 12 is rounded down. It needs to be further explained that: according to the requirement of 50 years for the service life of municipal pipelines, in order to further ensure the safety of water quality, after 40 years of use, that is, when m≥480, it is necessary to predict the maximum service life of the pipeline based on the impact of the pipeline on water quality, that is, Z=480. For example, m is calculated max =678, then the maximum useful life = m max / 12=678 / 12=56.5, rounded down to 56, the maximum service life of the pipeline is 56 years, which can predict the time when the water quality is unsafe in advance. It not only solves the lag problem, but also makes it easier for the municipal government to grasp the time of replacing pipelines, ensuring the safety of water supply and normal water supply.
[0024] Example 2: Figure 1As shown, Embodiment 2 of the present invention provides a water supply quality safety detection system, comprising: A water quality safety threshold set storage module is used to store a water quality safety threshold set, wherein the water quality safety threshold set includes a safe water quality data interval corresponding to a water quality detection index; A water quality detection data set receiving module is used to receive the water quality detection data set and store the water quality detection data set received each time in chronological order; A water quality data value extraction module is used to extract required water quality data values from a water quality detection data set; Water quality data value matching module, used to match water quality data values with safe water quality data intervals; Water quality prediction model module, used to establish a water quality prediction model; The water quality hazard warning module is used to send out water quality hazard warning signals.
[0025] like Figure 1 As shown, it also includes an overall calculation module for overall calculation of water quality data values and safe water quality data intervals; Pipeline safety module, used to obtain the maximum value of pipeline service life.
[0026] It should be understood that those skilled in the art can make improvements or changes based on the above description, and all such improvements and changes should fall within the scope of protection of the appended claims of the present invention. Parts not described in detail in this specification belong to the prior art known to those skilled in the art.
Claims
1. A water supply quality safety detection method, characterized in that: include: S1, set water quality safety threshold set , where n=1, 2, 3······N, is the safe water quality data interval corresponding to the nth water quality detection index; S2, receiving the water quality detection data set Bm, where m represents the number of water quality detection data sets, and m is initially 1, Bm={B1m, B2m…B n m…B N m}, B n m is the water quality data value corresponding to the nth water quality detection index in the mth group of water quality detection data set. The water quality detection data set is detected by the detection time F m Mark the water quality data values in the water quality detection data set Bm and the water quality safety threshold set If the water quality data value in the water quality detection data set Bm is not within the water quality safety threshold set, If the corresponding safe water quality data interval in the data set does not exist, a water quality danger warning signal is issued. If it does not exist, the size of m is determined. If it is greater than or equal to M, where M is the threshold of the number of water quality detection data sets, then S3 is entered. If it is less than M, a water quality safety signal is output and S4 is entered. S3, establish a water quality prediction model based on all water quality detection data sets, obtain the water quality detection data set Bm+1 through the water quality prediction model, and compare the water quality data values in the water quality detection data set Bm+1 with the water quality safety threshold set one by one. If the water quality data value in the water quality detection data set Bm is not within the water quality safety threshold set, If the corresponding safe water quality data interval is present, a water quality danger warning signal is issued; if not, a water quality safety signal is output and the process goes to S4; S4: Obtain the next water quality detection data set Bm at intervals of time t, and return to S2.
2. A water supply quality safety detection method as claimed in claim 1, characterized in that: A water quality prediction model is established based on the water quality detection data set. The specific steps are as follows: Get all water quality detection data sets Bi, i=1, 2, 3······m; Bi={B1i, B2i…B n i…B N i} Select the nth water quality detection index, perform the following operations for the nth water quality detection index, and convert the water quality data values B in all water quality detection data sets Bi into n i is extracted, and the water quality data value is B n The horizontal coordinate corresponding to i is , thus obtaining discrete points , through the curve fitting tool, fit the water quality change curve of the nth water quality detection index, and obtain the water quality function relationship B corresponding to the curve n i-it, water quality function relationship B n i-it means B n The functional relationship of i with respect to it.
3. A water supply quality safety detection method as claimed in claim 3, characterized in that: It also includes the water quality data values and water quality safety threshold set in the water quality detection data set Bm. The safe water quality data interval in the calculation is calculated as a whole to obtain the overall water quality data value and the overall water quality safety threshold interval. The overall water quality data value and the corresponding horizontal coordinate Form discrete points to form the overall curve of the water quality detection data set. The specific steps are: K1, obtain the water quality detection data set Bm, and calculate the overall safety value of the water quality detection data set Bm , The product of the proportion set for the safety importance of the nth test item and the difference between the water quality data value and the middle value of the safe water quality data interval, is the overall safety value of the water quality detection data set Bm; K2, through the water quality safety threshold set , obtain the water quality safety threshold set The overall water quality safety threshold range is , Depend on and composition, , is the minimum value of the safe water quality data interval corresponding to the nth water quality detection index, is the maximum value of the safe water quality data interval corresponding to the nth water quality detection index; K3, will and Match, if present Not in If it is within, a water quality danger warning signal is issued. If it does not exist, the size of m is determined. If it is greater than or equal to M, K4 is entered. If it is less than M, a water quality safety signal is output. K4, through With the corresponding mt, we get the discrete points , through the curve fitting tool, obtain an overall curve of the water quality detection data set and output the overall water quality function relationship -mt, overall water quality function relationship -mt means Regarding the functional relationship of mt, we can input (m+1)t and use the overall water quality function relationship -mt Get the overall security value ,Will and Match, if present Not in If it is within the range, a water quality danger warning signal is issued. If it is not, a water quality safety signal is output.
4. A water supply quality safety detection method as claimed in claim 4, characterized in that: It also includes determining the value of m. When it reaches a certain value, Directly substitute into the overall water quality function relationship -mt, thereby obtaining the maximum number of water quality safety detection times, and then obtaining the service life of the pipeline. The specific steps are: Determine the size of m. If it is greater than or equal to Z, then output the overall water quality function relationship -mt, use Substitution , get m max , m max is the maximum number of detection times within the water quality safety range, m max / 12 is the service life of the pipeline, m max / 12 rounded down.
5. A water supply quality safety detection system, characterized in that: include: A water quality safety threshold set storage module is used to store a water quality safety threshold set, wherein the water quality safety threshold set includes a safe water quality data interval corresponding to a water quality detection index; A water quality detection data set receiving module is used to receive a water quality detection data set; A water quality data value extraction module is used to extract required water quality data values from a water quality detection data set; Water quality data value matching module, used to match water quality data values with safe water quality data intervals; Water quality prediction model module, used to establish a water quality prediction model; The water quality hazard warning module is used to send out water quality hazard warning signals.
6. A water supply quality safety detection system, characterized in that: Also includes: The overall calculation module is used for overall calculation of water quality data values and safe water quality data intervals; Pipeline safety module, used to obtain the maximum value of pipeline service life.