A method and system for automatically calibrating a start electrode of a smart water station
By using the automatic calibration method for the start-up electrode of the smart water station, and by utilizing electrode pointer measurements and error analysis, the problem of inaccurate pH electrode calibration caused by insufficient standard solution was solved, thus achieving accurate water quality monitoring in emergency situations.
Patent Information
- Application Number
- CN202510932486.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-07
- Publication Date
- 2026-01-27
- Estimated Expiration
- 2045-07-07
AI Technical Summary
In water quality monitoring, especially in natural water bodies such as rivers and lakes, pH monitoring points are widely distributed and located in remote areas. When the standard solution reserves are insufficient, they cannot be replenished in time, leading to inaccurate pH electrode calibration and affecting water quality monitoring results.
An automatic calibration method for the start-up electrode of a smart water station is provided. By judging the availability of standard solution, if there is enough, the pH electrode is calibrated using the standard solution; if there is insufficient, the pH value is calculated and predicted by combining the electrode pointer measurement value with error standards and image analysis, thus achieving accurate calibration without standard solution.
In situations where standard solutions are insufficient, the pH value of water samples can be accurately determined through electrode pointer measurements and error analysis. This method is suitable for emergency scenarios and improves the accuracy of water quality monitoring.
Smart Images

Figure CN120721822B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of water quality monitoring technology, and more specifically to an automatic calibration method and system for the start-up electrodes of a smart water station. Background Technology
[0002] Accurate pH measurement is crucial in many fields of water quality monitoring. For a long time, calibrating pH electrodes with standard solutions has been the standard method to ensure measurement accuracy. However, traditional calibration methods have revealed several limitations.
[0003] For example, in the field of water quality monitoring, pH monitoring points for natural water bodies such as rivers and lakes are often widely distributed and located in remote areas. This can easily lead to insufficient reserves of standard solutions and the inability to replenish them in a timely manner. In such cases, it is impossible to calibrate the pH electrode with standard solutions to obtain accurate water quality monitoring results. Therefore, existing technologies have shortcomings. Summary of the Invention
[0004] In view of the shortcomings of the existing technology, the purpose of this invention is to provide an automatic calibration method and system for the start-up electrode of a smart water station, which can obtain the pH value of the water to be tested relatively accurately through limited measurement values without the need for a standard solution.
[0005] To achieve the above objectives, the present invention provides the following technical solution:
[0006] This invention provides an automatic calibration method for the start-up electrode of a smart water station, comprising:
[0007] Determine whether the standard solution reserves in the smart water station are sufficient;
[0008] If so, the pH electrode to be calibrated is calibrated according to the standard solution to obtain a standard pH electrode, wherein the pH electrode to be calibrated includes multiple pH electrode pointers;
[0009] The pH value of the water sample to be tested is measured by the standard pH electrode to obtain the calibrated pH value of the water sample to be tested, and the water quality monitoring result is obtained based on the calibrated pH value.
[0010] If not, the predicted pH value of the water sample to be tested is obtained using the electrode pointer, and the water quality monitoring result is obtained based on the predicted pH value.
[0011] As a further improvement of the present invention, the calibration of the pH electrode to be calibrated according to the standard solution includes:
[0012] Obtain the standard solutions, which include buffer solutions with pH values of 4, 7, and 9;
[0013] The pH electrode to be calibrated was calibrated using buffer solutions with pH values of 4, 7 and 9, respectively.
[0014] As a further improvement of the present invention, the pH electrode to be calibrated is located in a water quality parameter analyzer, and the calibration of the pH electrode to be calibrated using buffer solutions with pH values of 4, 7, and 9 respectively includes:
[0015] For each buffer solution, the pH electrode to be calibrated is cleaned, immersed in the buffer solution, and the pH value corresponding to the buffer solution is input into the water quality parameter analyzer to complete the calibration of the pH electrode to be calibrated.
[0016] As a further improvement of the present invention, the step of obtaining the predicted pH value of the water sample to be tested using the electrode pointer includes:
[0017] The pH electrode to be calibrated is immersed in the water sample to be tested to obtain the measured pH value corresponding to each pH electrode pointer;
[0018] The predicted pH value of the water sample to be tested is obtained based on the measured pH value corresponding to each of the pH electrode pointers.
[0019] As a further improvement of the present invention, the step of obtaining the predicted pH value of the water sample to be tested based on the measured pH value corresponding to each of the pH electrode pointers includes:
[0020] Based on the preset error standard, determine the error pH range for the measured pH value corresponding to each pH electrode pointer;
[0021] Based on the error pH range, a first range of values for the predicted pH value is determined;
[0022] Based on the first value range, the predicted pH value of the water sample to be tested is determined.
[0023] As a further improvement of the present invention, determining the predicted pH value of the water sample to be tested based on the first value range includes:
[0024] Obtain each measured pH value within the first value range, and arrange each measured pH value within the first value range in descending order to obtain a queuing sequence;
[0025] Based on each measured pH value, the measured pH value with the highest density value is calculated;
[0026] Perform an iterative operation, the iterative operation including: selecting the first two measured pH values in the queuing sequence; determining the weight of the first two measured pH values based on the distance between the first two measured pH values and the measured pH value with the highest density value; merging the first two measured pH values based on the weight to obtain a merged pH value; replacing the first two measured pH values in the queuing sequence with the merged pH value, until the queuing sequence contains only the last merged pH value;
[0027] The last combined pH value is output as the predicted pH value of the water sample to be tested.
[0028] As a further improvement of the present invention, determining the first range of values for the predicted pH value based on the error pH value range includes:
[0029] Acquire images of the multiple pH electrode pointers;
[0030] Based on the image, determine whether there is a damaged electrode pointer among the plurality of pH electrode pointers, wherein the damaged electrode pointer is an electrode pointer with a broken glass membrane;
[0031] If so, determine the second range of the predicted pH value based on the measured pH value corresponding to the damaged electrode pointer;
[0032] Based on the second value range and the error pH value range corresponding to all pH electrode pointers other than the damaged electrode pointer, the first value range of the predicted pH value is determined.
[0033] As a further improvement of the present invention, determining the first range of the predicted pH value based on the second range and the error pH range corresponding to all pH electrode pointers other than the damaged electrode pointer includes:
[0034] Determine the intersection of the error pH range and the second value range, and use the intersection as the first value range of the predicted pH value.
[0035] As a further improvement of the present invention, the automatic calibration method for the starting electrode also includes:
[0036] If there are no damaged electrode pointers among the plurality of pH electrode pointers, determine the two measured pH values with the largest and smallest values among the measured pH values corresponding to each pH electrode pointer;
[0037] Based on the error pH range corresponding to the two measured pH values, a first range of values for the predicted pH value is determined.
[0038] This invention provides an automatic calibration system for the start-up electrode of a smart water station, including water quality parameter detection equipment and a server;
[0039] The water quality parameter detection equipment includes: a water quality parameter analyzer, a camera, and a sampling pump. The water quality parameter analyzer includes a pH electrode, which includes multiple pH electrode pointers. The water quality parameter analyzer is used to measure the pH value of the water sample to be tested. The camera is used to acquire images of the multiple pH electrode pointers. The sampling pump is used to obtain a standard solution.
[0040] The server includes:
[0041] The judgment module is used to determine whether the standard solution reserves in the smart water station are sufficient;
[0042] The calibration module is used to calibrate the pH electrode to be calibrated according to the standard solution to obtain a standard pH electrode;
[0043] The first calculation module is used to obtain water quality monitoring results based on the calibration pH value of the water sample to be tested;
[0044] The second calculation module is used to obtain the predicted pH value of the water sample to be tested based on the measured pH value corresponding to each pH electrode pointer, and to obtain the water quality monitoring result based on the predicted pH value.
[0045] The acquisition module is used to acquire images captured by the camera;
[0046] A control module is used to control the sampling pump.
[0047] This invention can obtain a relatively accurate predicted pH value of a water sample to be tested by measuring the value of each electrode pointer without using a standard solution. It is suitable for emergency scenarios where the standard solution is insufficient in smart water stations. Attached Figure Description
[0048] Figure 1 This is a flowchart of the method steps of the present invention;
[0049] Figure 2 Flowchart of steps to determine the first range of values;
[0050] Figure 3 Example diagram for iterative operations;
[0051] Figure 4 This is a schematic diagram of the system structure of the present invention. Detailed Implementation
[0052] The technical solution of the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the embodiments of the present invention and the specific features in the embodiments are detailed descriptions of the technical solution of the present invention, rather than limitations thereof.
[0053] Identical parts are indicated by the same reference numerals. It should be noted that the terms "front," "rear," "left," "right," "up," and "down" used in the following description refer to directions in the accompanying drawings, while the terms "bottom surface," "top surface," "inner," and "outer" refer to directions toward or away from the geometric center of a specific part, respectively.
[0054] The term "and / or" in the following text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " generally indicates that the preceding and following related objects have an "or" relationship.
[0055] like Figure 1 As shown in the figure, this application provides an automatic calibration method for the start-up electrode of a smart water station, including:
[0056] Determine whether the standard solution reserves in the smart water station are sufficient;
[0057] If so, calibrate the pH electrode to be calibrated using a standard solution to obtain a standard pH electrode;
[0058] The pH value of the water sample to be tested is measured using a standard pH electrode to obtain the calibrated pH value of the water sample, and the water quality monitoring results are obtained based on the calibrated pH value.
[0059] After obtaining the calibrated pH value, it can be analyzed in conjunction with the water quality standard corresponding to the water quality sample to be tested, thereby obtaining the final water quality monitoring result.
[0060] Furthermore, this embodiment provides a step for calibrating a pH electrode to be calibrated based on a standard solution, including:
[0061] Obtain standard solutions, including buffer solutions with pH values of 4, 7, and 9;
[0062] The pH electrode to be calibrated was calibrated using buffer solutions with pH values of 4, 7 and 9 respectively.
[0063] Furthermore, this embodiment provides a step for calibrating a pH electrode to be calibrated using buffer solutions with pH values of 4, 7, and 9, respectively, including:
[0064] For each buffer solution, clean the pH electrode to be calibrated, immerse the pH electrode to be calibrated in the buffer solution, and input the corresponding pH value of the buffer solution into the water quality parameter analyzer to complete the calibration of the pH electrode to be calibrated.
[0065] The pH electrode to be calibrated is located in the water quality parameter analyzer. The pH buffer solution is a solution system composed of a specific weak acid and its conjugate base or a weak base and its conjugate acid mixed in a certain proportion. It can resist the influence of a small amount of external strong acid, strong base or dilution to a certain extent, keep the pH value of the solution basically unchanged, and thus ensure the accuracy of electrode calibration.
[0066] Specifically, the standard solution is obtained through its corresponding sampling pump, and the sampling pump is controlled by the server. The water quality parameter analyzer can communicate with the server. When the pH electrode to be calibrated is immersed in the buffer solution and the reading is stable, the pH value corresponding to the buffer solution is input into the water quality parameter analyzer through the server's calibration module to complete the calibration of the pH electrode to be calibrated.
[0067] This embodiment controls the sampling pump to obtain a standard solution via a server and calibrates the pH electrode to be calibrated via a calibration module. Therefore, only the working time needs to be set for the server to achieve automatic calibration of the pH electrode at the corresponding working time point. Furthermore, this embodiment selects three buffer solutions with different pH values, which can calibrate and correct the pH electrode at three different pH points. This allows for a better fit to the pH electrode's response curve, thereby more accurately determining the actual response of the pH electrode at different pH values and reducing measurement errors.
[0068] Furthermore, if the reserve of standard solution is insufficient, this embodiment provides a step for obtaining the predicted pH value of the water sample to be tested using an electrode pointer, including:
[0069] The pH electrode to be calibrated is then immersed in the water sample to be tested to obtain the measured pH value corresponding to each pH electrode pointer.
[0070] Based on the measured pH value corresponding to each pH electrode pointer, the predicted pH value of the water sample to be tested is obtained.
[0071] The pH electrode pointers are located on the pH electrode to be calibrated, meaning the pH electrode to be calibrated comprises multiple pH electrode pointers. Each pH electrode pointer is an independent microelectrode unit, meaning each pH electrode pointer has its own independent glass membrane, internal reference electrode, external reference electrode, and internal reference solution, ensuring that each pH electrode pointer can produce a stable and accurate response to hydrogen ions. Insulating materials are provided between each pH electrode pointer to avoid electrical short circuits or ion diffusion interference between the pH electrode pointers, which would affect the accuracy of the measured pH value. Furthermore, each electrode has an independent signal acquisition and amplification circuit, which can realize the synchronous acquisition of signals from multiple electrode pointers, that is, the measured pH value of each pH electrode pointer can be obtained simultaneously.
[0072] Furthermore, this embodiment provides a step for obtaining a predicted pH value of a water sample to be tested based on the measured pH value corresponding to each pH electrode pointer, including:
[0073] Based on the preset error standard, determine the error pH range for the measured pH value corresponding to each pH electrode pointer;
[0074] Based on the error pH range, determine the first range of predicted pH values;
[0075] Based on the first value range, determine the predicted pH value of the water sample to be tested.
[0076] The preset error standard is determined based on different fault types of the pH electrode. Specifically, the main fault types that cause pH electrode inaccuracies are glass membrane damage, internal reference solution deterioration, and external reference electrode malfunction. Among them, the error caused by glass membrane damage is greater than ±1 pH unit, the error caused by internal reference solution deterioration is ±0.2 to ±1 pH unit, and the error caused by external reference electrode malfunction is ±0.2 to ±1 pH unit. Glass membrane damage is a fault that can be directly observed, while internal reference solution deterioration and external reference electrode malfunction cannot be directly observed.
[0077] Based on the error ranges of the aforementioned faults, this embodiment selects ±0.8 pH as the preset error standard through experiments. The error pH range obtained based on this error standard has the highest probability of including the predicted pH value. For example, if one of the measured pH values is 8, then the error pH range corresponding to that measured pH value is 7.2-8.8, indicating that the predicted pH value has a high probability of falling within this error pH range.
[0078] This embodiment obtains the error pH range by setting a preset error standard and measuring the pH value, and then can determine the first range of predicted pH values more accurately. This embodiment assumes that each electrode pointer has at most one fault. If multiple faults need to be considered, a larger error standard can be selected.
[0079] Furthermore, embodiments of this application provide a step of determining a first range of predicted pH values based on the error pH value range, including:
[0080] Acquire images of multiple pH electrode pointers;
[0081] Based on the image, determine whether there is a damaged electrode pointer among multiple pH electrode pointers. A damaged electrode pointer is an electrode pointer with a broken glass membrane.
[0082] If so, determine the second range of predicted pH values based on the measured pH value corresponding to the pointer of the damaged electrode;
[0083] Based on the second value range and the error pH value range corresponding to all pH electrode pointers except the damaged electrode pointer, the first value range for the predicted pH value is determined.
[0084] Furthermore, embodiments of this application provide a step for determining a first range of predicted pH values based on a second range of values and the error pH ranges corresponding to all pH electrode pointers except for the damaged electrode pointer, including:
[0085] Determine the intersection of the error pH range and the second range, and use the intersection as the first range for predicting the pH value.
[0086] For example, suppose there are 9 electrode pointers, and the measured pH values are [5.5, 6, 6.1, 6.3, 6.3, 6.6, 6.7, 6.8, 7]. The electrode pointer corresponding to the value 5.5 is a damaged one. Based on the above analysis of electrode failure types, the error caused by glass membrane damage is greater than ±1 pH unit. Based on this error, the predicted pH value should be within the range of [0, 4.5] or [6.5, 14]. Then, the measurement results of other electrode pointers can be combined... Measure the pH value and determine that the second value range should be [6.5, 14]. According to the preset error standard, the error pH value ranges corresponding to the other 8 measured pH values are [5.2, 6.8], [5.3, 6.9], [5.5, 7.1], [5.5, 7.1], [5.8, 7.4], [5.9, 7.5], [6, 7.6] and [6.2, 7.8]. Take the intersection of these error pH value ranges with the second value range to obtain the first value range as [6.5, 6.8].
[0087] Furthermore, if there are no damaged electrode pointers, then determine the two measured pH values with the largest and smallest values among the measured pH values corresponding to each pH electrode pointer;
[0088] Based on the error pH range corresponding to the two measured pH values, determine the first range of predicted pH values.
[0089] For example, suppose there are 9 electrode pointers, and the measured pH values are [5.5, 6, 6.1, 6.3, 6.3, 6.6, 6.7, 6.8, 7]. There are no damaged electrode pointers among the 9 electrode pointers. The pH value with the largest value is 7, and its corresponding error pH value range is [6.2, 7.8]. The pH value with the smallest value is 5.5, and its corresponding error pH value range is [4.7, 6.3]. The intersection of these two error pH value ranges is taken as the first value range, specifically [6.2, 6.3].
[0090] Compared to directly determining the range by measuring the maximum and minimum pH values, this embodiment integrates multiple error pH value ranges by taking the intersection of the error pH value ranges, thereby accurately determining the range of the predicted pH value. Furthermore, if there is a damaged electrode pointer, a more accurate first value range can be obtained based on the second value range, which serves as the basis for subsequent data processing.
[0091] Furthermore, this embodiment provides a step for determining the predicted pH value of a water sample to be tested based on a first value range, including:
[0092] Obtain each measured pH value within the first value range, and arrange each measured pH value within the first value range in descending order to obtain a queuing sequence;
[0093] Based on each measured pH value, the measured pH value with the highest density value is calculated;
[0094] Perform an iterative operation, which includes selecting the first two measured pH values in the queue, determining the weight of the first two measured pH values based on the distance between the first two measured pH values and the measured pH value with the highest density value, merging the first two measured pH values based on the weight to obtain a merged pH value, and replacing the first two measured pH values in the queue with the merged pH value until the queue contains only the last merged pH value.
[0095] Output the last merged pH value as the predicted pH value for the water sample to be tested.
[0096] For example, such as Figure 3As shown, assuming there are 9 electrode pointers, the measured pH values are [5.5, 6, 6.1, 6.3, 6.3, 6.6, 6.7, 6.8, 7]. The electrode pointer corresponding to the value 5.5 is a damaged electrode pointer. The first value range is [6.5, 6.8]. The measured pH values within the first value range are 6.6, 6.7, and 6.8. Arranging them in descending order, the sequence is 6.8, 6.7, 6.6. Next, the density of these three values is calculated. Specifically, kernel density estimation can be used to obtain the density value corresponding to each value. The density value reflects the density of data near each value. According to the calculation, the density value of 6.7 is the highest.
[0097] Next, based on the distance between the top two pH values and the pH value with the highest density, the weights of the top two pH values are determined. Values closer to each other should have a higher weight. Specifically, the weight can be determined based on the number of values in the current queue. For example, if there are three values in the current queue, the value closer to the pH value with the highest density would have a weight of 2 / 3, and the other would have a weight of 1 / 3. The current combined pH value is then calculated based on these weights. Replace the first two measured pH values in the queue with the current merged pH value, resulting in a current queue of 6.73 and 6.6. Repeat the above steps to obtain the last merged pH value of 6.665, which is then used as the predicted pH value for the water sample to be tested.
[0098] If the first value range includes only one value, then that value is directly used as the predicted pH value of the water sample to be tested.
[0099] This embodiment measures the statistical distribution characteristics of pH values, combines kernel density estimation with an iterative weighted merging mechanism, and utilizes the symmetry of random errors and the law of large numbers to gradually approximate the true pH value. First, the predicted pH value is locked within a small range by measuring the error pH value range. Second, kernel density estimation is used to determine the value at the density peak based on the measured pH values within the first range. This value converges to the true pH value. Subsequently, through iterative operations, weights are assigned according to distance, and each measured pH value is merged to make the final output value close to the true pH value. This process uses the density characteristics of the values themselves to replace external calibration, achieving calibration-free self-calibration under the conditions of measurement error independence and redundancy.
[0100] This application provides an automatic calibration method for the start-up electrodes of a smart water station. When the standard solution reserve is insufficient, the method determines the corresponding error pH range by measuring the pH value of each electrode pointer. By narrowing down the range of the error pH value, the predicted pH value is obtained step by step through the setting of density and weight. Compared with the global averaging method, this application embodiment can obtain the final result more accurately by gradually narrowing down the range of the predicted pH value. It is more suitable for situations where the pH value distribution is uneven. Finally, after obtaining the predicted pH value, it can be analyzed in conjunction with the water quality standard corresponding to the water quality sample to be tested, thereby obtaining the final water quality monitoring result.
[0101] Furthermore, such as Figure 4 As shown, this application provides an automatic calibration system for the start-up electrode of a smart water station, including water quality parameter detection equipment and a server;
[0102] The water quality parameter testing equipment includes: a water quality parameter analyzer, a camera, and a sampling pump. The water quality parameter analyzer includes a pH electrode, which includes multiple pH electrode pointers. The water quality parameter analyzer is used to obtain the predicted pH value of the water sample to be tested. The camera is used to acquire images of the multiple pH electrode pointers. The sampling pump is used to obtain standard solutions.
[0103] The servers include:
[0104] The judgment module is used to determine whether the standard solution reserves in the smart water station are sufficient;
[0105] The calibration module is used to calibrate the pH electrode to be calibrated based on a standard solution to obtain a standard pH electrode.
[0106] The first calculation module is used to obtain water quality monitoring results based on the calibration pH value of the water sample to be tested;
[0107] The second calculation module is used to obtain the predicted pH value of the water sample to be tested based on the measured pH value corresponding to each pH electrode pointer, and to obtain the water quality monitoring result based on the predicted pH value.
[0108] The acquisition module is used to acquire images captured by the camera;
[0109] The control module is used to control the sampling pump.
[0110] The present application provides an automatic calibration method and system for the start-up electrodes of a smart water station. This method can obtain the predicted pH value of the water sample to be tested relatively accurately through the measurement value of each electrode pointer without the use of a standard solution. It is suitable for emergency scenarios in smart water stations where the reserve of standard solutions is insufficient.
[0111] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0112] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0113] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0114] The above description is merely a preferred embodiment of the present invention. The scope of protection of the present invention is not limited to the above embodiments. All technical solutions falling within the scope of the present invention's concept are within the scope of protection of the present invention. It should be noted that for those skilled in the art, any improvements and modifications made without departing from the principles of the present invention should also be considered within the scope of protection of the present invention.
Claims
1. An automatic calibration method for the start-up electrode of a smart water station, characterized in that, include: Determine whether the standard solution reserves in the smart water station are sufficient; If so, the pH electrode to be calibrated is calibrated according to the standard solution to obtain a standard pH electrode, wherein the pH electrode to be calibrated includes multiple pH electrode pointers; The pH value of the water sample to be tested is measured by the standard pH electrode to obtain the calibrated pH value of the water sample to be tested, and the water quality monitoring result is obtained based on the calibrated pH value. If not, the predicted pH value of the water sample to be tested is obtained using the electrode pointer, and the water quality monitoring result is obtained based on the predicted pH value; The step of obtaining the predicted pH value of the water sample to be tested using the electrode pointer includes: The pH electrode to be calibrated is immersed in the water sample to be tested to obtain the measured pH value corresponding to each pH electrode pointer; Based on the measured pH value corresponding to each of the pH electrode pointers, the predicted pH value of the water sample to be tested is obtained; The step of obtaining the predicted pH value of the water sample to be tested based on the measured pH value corresponding to each of the pH electrode pointers includes: Based on the preset error standard, determine the error pH range for the measured pH value corresponding to each pH electrode pointer; Based on the error pH range, a first range of values for the predicted pH value is determined; Based on the first value range, the predicted pH value of the water sample to be tested is determined; The step of determining the predicted pH value of the water sample to be tested based on the first value range includes: Obtain each measured pH value within the first value range, and arrange each measured pH value within the first value range in descending order to obtain a queuing sequence; Based on each measured pH value, the measured pH value with the highest density value is calculated; Perform an iterative operation, the iterative operation including: selecting the first two measured pH values in the queuing sequence; determining the weight of the first two measured pH values based on the distance between the first two measured pH values and the measured pH value with the highest density value; merging the first two measured pH values based on the weight to obtain a merged pH value; replacing the first two measured pH values in the queuing sequence with the merged pH value, until the queuing sequence contains only the last merged pH value; Output the last combined pH value as the predicted pH value of the water sample to be tested; Wherein, determining the first range of values for the predicted pH value based on the error pH value range includes: Acquire images of the multiple pH electrode pointers; Based on the image, determine whether there is a damaged electrode pointer among the plurality of pH electrode pointers, wherein the damaged electrode pointer is an electrode pointer with a broken glass membrane; If so, based on the measured pH value corresponding to the damaged electrode pointer and the measured pH values corresponding to all other pH electrode pointers, determine the second range of values for the predicted pH value; Based on the second value range and the error pH value range corresponding to all pH electrode pointers other than the damaged electrode pointer, the first value range of the predicted pH value is determined.
2. The automatic calibration method for the start-up electrode of a smart water station according to claim 1, characterized in that, The calibration of the pH electrode to be calibrated based on the standard solution includes: Obtain the standard solutions, which include buffer solutions with pH values of 4, 7, and 9; The pH electrode to be calibrated was calibrated using buffer solutions with pH values of 4, 7 and 9, respectively.
3. The automatic calibration method for the start-up electrode of a smart water station according to claim 2, characterized in that, The pH electrode to be calibrated is located in the water quality parameter analyzer. The calibration of the pH electrode using buffer solutions with pH values of 4, 7, and 9, respectively, includes: For each buffer solution, the pH electrode to be calibrated is cleaned, immersed in the buffer solution, and the pH value corresponding to the buffer solution is input into the water quality parameter analyzer to complete the calibration of the pH electrode to be calibrated.
4. The automatic calibration method for the start-up electrode of a smart water station according to claim 1, characterized in that, The step of determining the first range of predicted pH values based on the second range and the error pH ranges corresponding to all pH electrode pointers except the damaged electrode pointer includes: Determine the intersection of the error pH range and the second value range, and use the intersection as the first value range of the predicted pH value.
5. The automatic calibration method for the start-up electrode of a smart water station according to claim 1, characterized in that, The automatic calibration method for the starting electrode also includes: If there are no damaged electrode pointers among the plurality of pH electrode pointers, determine the two measured pH values with the largest and smallest values among the measured pH values corresponding to each pH electrode pointer; Based on the error pH range corresponding to the two measured pH values, a first range of values for the predicted pH value is determined.
6. An automatic calibration system for the starting electrode of a smart water station, used to implement the automatic calibration method for the starting electrode of a smart water station according to any one of claims 1-5, characterized in that, This includes water quality parameter testing equipment and servers; The water quality parameter detection equipment includes: a water quality parameter analyzer, a camera, and a sampling pump. The water quality parameter analyzer includes a pH electrode, which includes multiple pH electrode pointers. The water quality parameter analyzer is used to measure the pH value of the water sample to be tested. The camera is used to acquire images of the multiple pH electrode pointers. The sampling pump is used to obtain a standard solution. The server includes: The judgment module is used to determine whether the standard solution reserves in the smart water station are sufficient; The calibration module is used to calibrate the pH electrode to be calibrated according to the standard solution to obtain a standard pH electrode; The first calculation module is used to obtain water quality monitoring results based on the calibration pH value of the water sample to be tested; The second calculation module is used to obtain the predicted pH value of the water sample to be tested based on the measured pH value corresponding to each pH electrode pointer, and to obtain the water quality monitoring result based on the predicted pH value. The acquisition module is used to acquire images captured by the camera; A control module is used to control the sampling pump.
Citation Information
Patent Citations
PH measurement and calibration method and swimming pool water quality testing meter adopting same
CN107179389A
Water quality determination method and system, storage medium and electronic equipment
CN118688416A