Conductivity detector calibration method, system and computer storage medium
By performing two calibrations of the conductivity detector, using the nonlinear and linear fitting relationships, the problem of large errors in the prior art is solved, and the accuracy of the detector and the measurement accuracy of the high conductivity solution are improved.
Patent Information
- Application Number
- CN202510209270.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-25
- Publication Date
- 2025-08-08
- Estimated Expiration
- 2045-02-25
AI Technical Summary
The existing conductivity detector calibration methods have problems such as large errors or the error does not meet the requirements in high conductivity solutions.
Two calibration methods were used, firstly, by detecting N standard solutions, nonlinear functional relationship was constructed, and then pure water and M standard solutions were detected and linearly fitted to calibrate the conductivity detector.
The calibration efficiency and detection accuracy of the conductivity detector are improved, and errors are reduced, especially measurement errors in high conductivity solutions.
Smart Images

Figure CN119688791B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of sensor technology, specifically the field of liquid resistance detection, and in particular relates to a conductivity detector calibration method, system and computer storage medium. Background Art
[0002] Conductivity detectors are widely used to measure the concentration of ionized substances, and their accuracy is crucial to the accuracy of analytical results. The primary purpose of calibration is to ensure that the detector maintains good linear response and stability under varying operating conditions. Calibration eliminates the effects of instrument drift, aging, and other factors on results, improving measurement reliability and reproducibility.
[0003] Currently, conductivity detectors are typically calibrated using external standard methods and standard solution methods. The calibration process typically involves the following steps: first, selecting a suitable standard solution whose conductivity should cover the conductivity range of the sample to be measured; then, performing a conductivity test using the standard solution and recording the output signal; then, establishing a standard curve based on the known conductivity of the standard solution and the signal intensity output by the detector. This is typically done by plotting the relationship between the conductivity of the standard solution and the detection signal, resulting in a linear or nonlinear fitting formula; finally, comparing the sample's detection signal to the standard curve to calculate the concentration of the substance to be measured.
[0004] However, the existing technology has the problem that the error is still large after calibration or the error does not meet the requirements in solutions with too high conductivity. Summary of the Invention
[0005] The present invention aims to address the deficiencies in the prior art and provides a conductivity detector calibration method, system and computer storage medium.
[0006] In a first aspect, the present invention provides a conductivity detector calibration method, comprising:
[0007] Using the conductivity detector to be calibrated, N standard solutions are tested respectively to obtain the conductivity test value of each standard solution; wherein the actual conductivity values of any two standard solutions among the N standard solutions are different, and N ≥ 3;
[0008] Obtaining the temperature of each standard solution when the conductivity detector to be calibrated detects N standard solutions as a first temperature;
[0009] Determining a theoretical conductivity value of each standard solution at a corresponding first temperature according to the actual conductivity value of each standard solution;
[0010] Determining a variation relationship between the theoretical conductivity value and the measured conductivity value according to the measured conductivity value and the theoretical conductivity value of each standard solution as a first variation relationship;
[0011] The conductivity detector to be calibrated is calibrated according to the first change relationship to detect the conductivity of the liquid to be measured.
[0012] Optionally, determining the theoretical conductivity value of each standard solution at the corresponding first temperature according to the actual conductivity value of each standard solution includes:
[0013] The theoretical conductivity value of each standard solution at the corresponding first temperature is calculated according to the following formula:
[0014] σ2=σ1+0.022σ1·(T1-25);
[0015] Wherein, σ2 is the theoretical value of the conductivity of the target standard solution at the corresponding first temperature; σ1 is the actual value of the conductivity of the target standard solution; and T1 is the first temperature corresponding to the target standard solution.
[0016] Optionally, determining a variation relationship between the theoretical conductivity value and the conductivity detection value according to the conductivity detection value and the theoretical conductivity value of each standard solution as a first variation relationship includes:
[0017] Construct a nonlinear function expression:
[0018] y=ax 2 +bx+c;
[0019] Where y is the conductivity first fitting value obtained based on the conductivity test value; x is the conductivity test value; a is x 2 The coefficient of b is x; b is the coefficient of x; c is the constant term;
[0020] The conductivity test value and the theoretical conductivity value of each standard solution in N standard solutions are subjected to binomial fitting using the least squares method to determine the values of a, b and c, and a nonlinear function of the determined values of a, b and c is used as the first variation relationship.
[0021] Optionally, the first aspect further includes:
[0022] The conductivity detector to be calibrated is used to test pure water and M standard solutions respectively to obtain conductivity test values of pure water and each standard solution; wherein the actual conductivity values of any two standard solutions among the M standard solutions are different; M ≥ N;
[0023] Obtaining the temperature of pure water and each standard solution when the conductivity detector to be calibrated detects pure water and M standard solutions as a second temperature;
[0024] Determining a first-order conductivity fitting value of each of the pure water and the M standard solutions according to the conductivity detection value of each of the pure water and the M standard solutions and the first change relationship, and determining a re-measured conductivity value of each of the pure water and the M standard solutions based on each first-order conductivity fitting value and the corresponding second temperature;
[0025] When the error between the remeasured conductivity value of pure water and each of the M standard solutions and the corresponding actual conductivity value is greater than a preset conductivity error threshold, linear fitting is performed on the remeasured conductivity values of pure water and the M standard solutions and the actual conductivity values in turn according to the actual conductivity values to obtain a second change relationship;
[0026] The conductivity detector to be calibrated is calibrated according to the second change relationship to detect the conductivity of the liquid to be tested.
[0027] Optionally, determining a first-order conductivity fitting value of each of the pure water and the M standard solutions according to the conductivity detection value of each of the pure water and the M standard solutions and the first change relationship, and determining a remeasured conductivity value of each of the pure water and the M standard solutions based on each conductivity first-order fitting value and the corresponding second temperature, includes:
[0028] Calculate the re-measured conductivity value of pure water and each of the M standard solutions according to the following formula:
[0029] ;
[0030] Among them, K F is the re-measured value of the conductivity of pure water or the target standard solution in M standard solutions; y is the first fitting value of the conductivity of pure water and each standard solution in M standard solutions obtained by the first change relationship; T2 is the second temperature corresponding to the target standard solution in pure water or M standard solutions.
[0031] Optionally, performing linear fitting on the remeasured conductivity values of pure water and M standard solutions and the actual conductivity values in sequence according to the actual conductivity values to obtain a second change relationship includes:
[0032] Sort pure water and M standard solutions according to their actual conductivity values;
[0033] Perform linear fitting on the re-measured conductivity values and actual conductivity values of any two adjacent liquids in the sorted pure water and M standard solutions to obtain M line segments;
[0034] Connect the M line segments in sequence to obtain the second change relationship.
[0035] In a second aspect, the present invention provides a conductivity detector calibration system, comprising:
[0036] A first detection module is configured to detect N standard solutions using a conductivity detector to be calibrated to obtain a conductivity detection value of each standard solution; wherein the actual conductivity values of any two standard solutions among the N standard solutions are different, and N ≥ 3;
[0037] A first acquisition module is used to acquire the temperature of each standard solution when the conductivity detector to be calibrated detects N standard solutions, as a first temperature;
[0038] A first determination module is used to determine a theoretical conductivity value of each standard solution at a corresponding first temperature according to the actual conductivity value of each standard solution;
[0039] a second determining module, configured to determine, based on the conductivity detection value and the theoretical conductivity value of each standard solution, a variation relationship between the theoretical conductivity value and the conductivity detection value, as a first variation relationship;
[0040] The first calibration module is used to calibrate the conductivity detector to be calibrated according to the first change relationship to detect the conductivity of the liquid to be tested.
[0041] Optionally, the first detection module is further configured to use a conductivity detector to be calibrated to detect pure water and M standard solutions respectively, to obtain conductivity detection values of pure water and each standard solution; wherein the actual conductivity values of any two standard solutions among the M standard solutions are different; M ≥ N;
[0042] The first acquisition module is further configured to acquire the temperature of pure water and each standard solution when the conductivity detector to be calibrated detects pure water and M standard solutions, as the second temperature.
[0043] Optionally, the second aspect further includes:
[0044] a third determination module, configured to determine a first-order conductivity fitting value of each of the pure water and the M standard solutions based on the conductivity detection value of each of the pure water and the M standard solutions and the first change relationship, and determine a remeasured conductivity value of each of the pure water and the M standard solutions based on each first-order conductivity fitting value and the corresponding second temperature;
[0045] a linear fitting module for performing linear fitting on the remeasured conductivity values of pure water and the M standard solutions and the actual conductivity values in turn according to the actual conductivity values, when the error between the remeasured conductivity value of each standard solution in pure water and the M standard solutions and the corresponding actual conductivity value is greater than a preset conductivity error threshold, to obtain a second change relationship;
[0046] The second calibration module is used to calibrate the conductivity detector to be calibrated according to the second change relationship to detect the conductivity of the liquid to be measured.
[0047] In a third aspect, the present invention provides a computer-readable storage medium for storing a computer program; when the computer program is executed by a processor, the steps of the conductivity detector calibration method described in the first aspect are implemented.
[0048] The present invention provides a conductivity detector calibration method, system and computer storage medium. The method performs two calibrations. If the first calibration result does not meet preset requirements, a second data correction is directly performed based on the first calibration data, thereby improving the calibration efficiency and detection accuracy of the conductivity detector. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the technical solution of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are merely embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0050] Figure 1 A schematic diagram of a single calibration process in a conductivity detector calibration method provided by an embodiment of the present invention;
[0051] Figure 2 A schematic diagram of a secondary calibration process in a conductivity detector calibration method provided by an embodiment of the present invention;
[0052] Figure 3 A schematic structural diagram of a conductivity detector calibration system provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0053] The following will provide a clear and complete description of the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention. Example 1
[0054] like Figure 1 As shown, this embodiment provides a conductivity detector calibration method, including:
[0055] Step 101 : Using a conductivity detector to be calibrated, N standard solutions are tested respectively to obtain a conductivity test value of each standard solution; wherein the actual conductivity values of any two standard solutions among the N standard solutions are different, and N≥3.
[0056] Step 102 : obtaining the temperature of each standard solution when the conductivity detector to be calibrated detects N standard solutions, as a first temperature.
[0057] Step 103 : determining a theoretical conductivity value of each standard solution at the corresponding first temperature according to the actual conductivity value of each standard solution.
[0058] In this step, illustratively, the theoretical conductivity value of each standard solution at the corresponding first temperature is calculated according to the following formula:
[0059] σ2=σ1+0.022σ1·(T1-25).
[0060] Wherein, σ2 is the theoretical value of the conductivity of the target standard solution at the corresponding first temperature; σ1 is the actual value of the conductivity of the target standard solution; and T1 is the first temperature corresponding to the target standard solution.
[0061] Step 104 : determining a variation relationship between the theoretical conductivity value and the measured conductivity value according to the measured conductivity value and the theoretical conductivity value of each standard solution, as a first variation relationship.
[0062] Exemplarily, this step includes:
[0063] Construct a nonlinear function expression:
[0064] y=ax 2 +bx+c.
[0065] Where y is the conductivity first fitting value obtained based on the conductivity test value; x is the conductivity test value; a is x 2 The coefficient of ; b is the coefficient of x; c is the constant term.
[0066] The conductivity test value and the theoretical conductivity value of each standard solution in N standard solutions are subjected to binomial fitting using the least squares method to determine the values of a, b and c, and a nonlinear function of the determined values of a, b and c is used as the first variation relationship.
[0067] Step 105 : calibrate the conductivity detector to be calibrated according to the first change relationship to detect the conductivity of the liquid to be tested.
[0068] If the first calibration result does not meet the preset requirements, as further described below, a second data correction can be performed based on the first calibration data to improve the calibration efficiency and detection accuracy of the conductivity detector.
[0069] For example, Figure 2 As shown, the conductivity detector calibration method provided in this embodiment also includes:
[0070] Step 106 : Using a conductivity detector to be calibrated, test the pure water and the M standard solutions, respectively, to obtain conductivity test values for the pure water and each standard solution. The conductivity values of any two of the M standard solutions are different, and M ≥ N. In this embodiment, M and N are both positive integers.
[0071] Exemplarily, in this step, M>N is preferably satisfied, and the actual conductivity value of the Mth standard solution used in step 106 is greater than the actual conductivity value of the Nth standard solution used in step 101, thereby confirming whether the measurement error of the high conductivity solution meets the requirements.
[0072] Step 107 : obtaining the temperature of the pure water and each of the M standard solutions when the conductivity detector to be calibrated detects the pure water and the M standard solutions, as the second temperature.
[0073] Step 108: Determine a first-order conductivity fitting value of each of the pure water and the M standard solutions based on the conductivity detection value of each of the pure water and the M standard solutions and the first change relationship, and determine a re-measured conductivity value of each of the pure water and the M standard solutions based on each first-order conductivity fitting value and the corresponding second temperature.
[0074] Exemplarily, the conductivity remeasurement value of pure water and each of the M standard solutions is calculated according to the following formula:
[0075] .
[0076] Among them, K F is the re-measured value of the conductivity of pure water or the target standard solution in M standard solutions; y is the first fitting value of the conductivity of pure water and each standard solution in M standard solutions obtained by the first change relationship; T2 is the second temperature corresponding to the target standard solution in pure water or M standard solutions.
[0077] Step 109, when the error between the remeasured conductivity value of pure water and each of the M standard solutions and the corresponding actual conductivity value is greater than a preset conductivity error threshold, linear fitting is performed on the remeasured conductivity values of pure water and the M standard solutions and the actual conductivity values in turn according to the size of the actual conductivity values to obtain a second change relationship.
[0078] Exemplarily, this step includes:
[0079] Sort pure water and M standard solutions according to their actual conductivity values.
[0080] Perform linear fitting on the re-measured conductivity values and actual conductivity values of any two adjacent liquids in the sorted pure water and M standard solutions to obtain M line segments.
[0081] Connect the M line segments in sequence to obtain the second change relationship.
[0082] Step 1010: calibrate the conductivity detector to be calibrated according to the second change relationship to detect the conductivity of the liquid to be tested.
[0083] In order to make the solutions of the present invention clearer, specific examples are further disclosed in the embodiments of the present invention.
[0084] Let a=0, b=1, c=0, and the nonlinear function y=ax of the first change relationship 2 +bx+c initialization.
[0085] Prepare pure water (<100 us / ms) for cleaning the conductivity detection circulation cell, as well as three standard solutions with actual conductivity values of 1.413 ms / cm, 12.88 ms / cm, and 80 ms / cm, respectively. That is, N=3 in step 101, the actual conductivity values of any two standard solutions are different, the three standard solutions are all standards, and the standard solutions use HANNA standard buffer; in this embodiment, the actual conductivity values of the standard solutions refer to the conductivity values of the standard solutions at the standard reference temperature (25°C).
[0086] After the conductivity detection flow cell is cleaned by passing pure water, a standard solution with an actual conductivity value of 1.413 ms / cm (hereinafter referred to as the 1.413 ms / cm standard solution) is passed into the flow cell. The conductivity value is observed. After the conductivity measurement value tends to be stable, the conductivity measurement value of the conductivity detector to be calibrated for the 1.413 ms / cm standard solution and the temperature T1 of the current standard solution are recorded (step 101). The theoretical conductivity value of the current standard solution at temperature T1 is calculated based on σ2 = 1413 (1 + (T1 - 25) 0.022) (step 103). The calculated result of the conductivity measurement value (i) of the conductivity detector to be calibrated for the 1.413 ms / cm standard solution (e.g., 34.6) and the theoretical conductivity value (i) (1413 (1 + (T1 - 25) 0.022) = e.g., 1357.0452) is used as the first data point.
[0087] After pure water is passed through the conductivity detection flow cell for cleaning, a standard solution with an actual conductivity value of 12.88 ms / cm (hereinafter referred to as the 12.88 ms / cm standard solution) is passed through the flow cell to observe the conductivity value. After the conductivity measurement value tends to be stable, the conductivity detection value of the 12.88 ms / cm standard solution of the conductivity detector to be calibrated and the temperature T2 of the current standard solution are recorded (step 101) and the theoretical conductivity value of the current standard solution at temperature T2 are calculated according to σ2 = 12880·(1+(T2-25)·0.022). The calculated result of the conductivity detection value (ii) of the 12.88 ms / cm standard solution of the conductivity detector to be calibrated (e.g., 296) and the theoretical conductivity value (ii) (12880·(1+(T2-25)·0.022) = e.g., 12369.952) is used as the second data point.
[0088] After pure water is passed through the conductivity detection flow cell for cleaning, a standard solution with an actual conductivity value of 80 ms / cm (hereinafter referred to as the 80 ms / cm standard solution) is passed through the flow cell to observe the conductivity value. After the conductivity measurement value tends to be stable, the conductivity detection value of the conductivity detector to be calibrated for the 80 ms / cm standard solution and the temperature T3 of the current standard solution are recorded (step 101) and the theoretical conductivity value of the current standard solution at the temperature T3 are calculated according to σ2 = 80000·(1+(T3-25)·0.022). The calculated result of the conductivity detection value (iii) of the conductivity detector to be calibrated for the 80 ms / cm standard solution (e.g., 1638) and the theoretical conductivity value (iii) (80000·(1+(T3-25)·0.022)=e.g., 76832) is used as the third data point.
[0089] Use Excel to perform binomial fitting on the three data points using the least squares method (set the decimal point to 5 digits) to obtain the constants a, b, and c in the first calibration fitting formula, and write them into the first calibration fitting formula to obtain the first change relationship, that is, the curve y=0.00368x 2 +40.91318x -62.939 (step 104 ) to complete the first calibration of the conductivity detector (step 105 ).
[0090] The temperature compensation is set to 2.2%. Pure water (actual conductivity value <100 μs / ms) and four standard solutions with actual conductivity values of 1.413 μs / cm, 12.88 μs / cm, 80 μs / cm, and 189.3 μs / cm (3 mol / L sodium chloride solution) are prepared. The four standard solutions are all standards, that is, M=4 in step 106. The actual conductivity values of any two of the four standard solutions are different, and the actual conductivity value of the fourth standard solution used in step 106 is greater than the actual conductivity value of the third standard solution used in step 101.
[0091] In addition, in this embodiment, three of the four standard solutions used in step 106 are the same as the three standard solutions used in step 101. That is, both step 106 and step 101 use three standard solutions with actual conductivity values of 1.413 ms / cm, 12.88 ms / cm, and 80 ms / cm, respectively. However, it is conceivable that a different standard solution from that used in step 101 may be used in step 106 for subsequent retesting and secondary calibration steps.
[0092] Pure water is passed through the conductivity detection flow cell to clean it until it reaches equilibrium. After the conductivity measurement value tends to be stable, the conductivity of the pure water is detected using the conductivity detector after the first calibration (step 106). The current pure water temperature T4 (step 107) and the conductivity re-measurement value data (step 108) are recorded to obtain a fourth data point consisting of the pure water conductivity re-measurement value (iv) and the actual conductivity value of the pure water (0.003ms / cm).
[0093] The calculation method of the re-measured conductivity value is as follows: after the pure water is passed, the conductivity detection value measured by the conductivity detector after the first calibration is substituted into the variable x of the first calibration fitting formula. For example, the first calibration fitting formula obtained in the above one-time calibration step is y=0.00368x 2 +40.91318x-62.939, y is calculated, y represents the conductivity of the liquid at the current pure water or standard solution temperature without temperature compensation. Then according to the temperature compensation formula σ2=σ1+α·σ1·(T2-25), the temperature compensation is set to 2.2%, so α=0.022. Substitute the current standard solution temperature T4 into T2 in the formula, calculate y and substitute it into σ2 to obtain σ1. σ1 is the conductivity re-measurement value obtained after temperature compensation calculation of the conductivity first fitting value. Thus, the above formula is obtained:
[0094] .
[0095] It can be seen from this that the re-measured conductivity value is calculated by fitting the conductivity value measured by the conductivity detector (after the first calibration) after the first calibration and temperature compensation. If the first calibration fitting result is ideal, the re-measured conductivity value should be close to the actual conductivity value.
[0096] A standard solution having an actual conductivity value of 1.413 ms / cm is introduced into the circulation cell, and the conductivity value is observed. After the conductivity measurement value stabilizes, the conductivity of the current standard solution is detected using a conductivity detector after the first calibration (step 106). The temperature T5 of the current standard solution and the re-measured conductivity value (step 108) are recorded, thereby obtaining a fifth data point consisting of the re-measured conductivity value (v) and the actual conductivity value of the introduced standard solution, 1.413 ms / cm.
[0097] After pure water is passed through the conductivity detection flow cell to clean it, a standard solution with an actual conductivity value of 12.88 ms / cm is passed through it, and the conductivity value is observed. After the conductivity measurement value tends to be stable, the conductivity of the current standard solution is detected using the conductivity detector after the first calibration (step 106). The temperature T6 of the current standard solution (step 107) and the re-measured conductivity value (step 108) are recorded to obtain the sixth data point consisting of the re-measured conductivity value (vi) and the actual conductivity value of the passed standard solution of 12.88 ms / cm.
[0098] After pure water is passed through the conductivity detection flow cell to clean it, a standard solution with an actual conductivity value of 80 ms / cm is passed through it, and the conductivity value is observed. After the conductivity measurement value tends to be stable, the conductivity of the current standard solution is detected using the conductivity detector after the first calibration (step 106). The temperature T7 of the current standard solution and the re-measured conductivity value (step 108) are recorded, and a seventh data point consisting of the re-measured conductivity value (vii) and the actual conductivity value of the passed standard solution of 80 ms / cm is obtained.
[0099] After pure water is passed through the conductivity detection flow cell to clean it, a standard solution with an actual conductivity value of 189.3 ms / cm is passed through it, and the conductivity value is observed. After the conductivity measurement value tends to be stable, the conductivity of the current standard solution is detected using the conductivity detector after the first calibration (step 106). The temperature T8 of the current standard solution (step 107) and the conductivity re-measurement value (step 108) are recorded, and the eighth data point consisting of the conductivity re-measurement value (viii) and the actual conductivity value of the passed standard solution of 189.3 ms / cm is obtained.
[0100] If the re-measured values after the first calibration are ideal, the second calibration coefficient fitting step can be omitted and the conductivity calibration is successful. For example, "ideal" means that the five re-measured conductivity values from the fourth to eighth data points are within ±2% of the actual conductivity values of pure water and the four standard solutions.
[0101] If the re-measured values after the first calibration are not ideal (the error exceeds ±2%), you need to continue with the second calibration coefficient fitting step:
[0102] Assume that the second calibration fitting formula is Y=kX+d, where X represents the remeasured conductivity data (data (iv), (v), (vi), (vi), (vii), (vii), (vii)); Y represents the conductivity quadratic fit based on the remeasured conductivity values; and the second calibration values are initialized as follows: k0=1, d0=0, k1=1, d1=0, k2=1, d2=0, k3=1, d3=0. Combining the above, we obtain five data points: (remeasured conductivity value iv, actual pure water conductivity value 3), (remeasured conductivity value v, 1413), (remeasured conductivity value vi, 12880), (remeasured conductivity value vi, 80000), and (remeasured conductivity value vii, 189300). Perform a linear fit in each section: (conductivity retest value IV, actual pure water conductivity value 3) and (conductivity retest value V, 1413) to obtain k0 and d0; (conductivity retest value V, 1413) and (conductivity retest value VI, 12880) to obtain k1 and d1; (conductivity retest value VI, 12880) and (conductivity retest value VII, 80,000) to obtain k2 and d2; (conductivity retest value VII, 80,000) and (conductivity retest value VIIi, 189,300) to obtain k3 and d3. (The k value range is around 1; large deviations may indicate incorrect calibration data.)
[0103] The values of k0 and d0, k1 and d1, k2 and d2, and k3 and d3 are written into the conductivity second calibration fitting formula to complete the second calibration of the conductivity detector.
[0104] In summary, this embodiment provides a conductivity detector calibration method. The calibration process can be completed in two calibrations. If the error between the re-measured conductivity value and the actual conductivity value after the first calibration is within a preset error (e.g., ±2%), the second calibration step can be omitted. The conductivity detection value of the first calibration and the theoretical conductivity value at the current solution temperature are used as the first fitting data points for nonlinear calibration (e.g., binomial fitting). After the first calibration, re-measurement is performed to obtain the re-measured conductivity value. The re-measured value is the value calculated after the measured value is corrected by the first fitting formula and temperature compensated. If the error between the re-measured value and the actual conductivity value exceeds the preset error (e.g., ±2%), the re-measured value and the actual conductivity value are used as the data points for the second fitting for a second calibration, such as a segmented (e.g., four-segment) linear calibration, thereby improving the calibration efficiency and detection accuracy of the conductivity detector. Example 2
[0105] Based on the same inventive concept as Example 1, this embodiment provides a conductivity detector calibration system. Since the principle of solving the problem by this system is similar to that of the aforementioned conductivity detector calibration method, the implementation of this system can refer to the implementation of the conductivity detector calibration method.
[0106] like Figure 3 As shown, the conductivity detector calibration system includes:
[0107] The first detection module 10 is used to detect N standard solutions respectively using the conductivity detector to be calibrated to obtain the conductivity detection value of each standard solution; wherein the actual conductivity values of any two standard solutions among the N standard solutions are different, and N≥3.
[0108] The first acquisition module 20 is configured to acquire the temperature of each standard solution when the conductivity detector to be calibrated detects N standard solutions, as a first temperature.
[0109] The first determination module 30 is configured to determine a theoretical conductivity value of each standard solution at a corresponding first temperature according to the actual conductivity value of each standard solution.
[0110] The second determining module 40 is configured to determine, according to the conductivity detection value and the theoretical conductivity value of each standard solution, a variation relationship between the theoretical conductivity value and the conductivity detection value as a first variation relationship.
[0111] The first calibration module 50 is used to calibrate the conductivity detector to be calibrated according to the first change relationship to detect the conductivity of the liquid to be measured.
[0112] Exemplarily, the first determining module includes:
[0113] The first calculation unit is used to calculate the theoretical value of the conductivity of each standard solution at the corresponding first temperature according to the following formula:
[0114] σ2=σ1+0.022σ1·(T1-25).
[0115] Wherein, σ2 is the theoretical value of the conductivity of the target standard solution at the corresponding first temperature; σ1 is the actual value of the conductivity of the target standard solution; and T1 is the first temperature corresponding to the target standard solution.
[0116] Exemplarily, the second determining module includes:
[0117] Building blocks for constructing nonlinear function expressions:
[0118] y=ax 2 +bx+c.
[0119] Where y is the conductivity first fitting value obtained based on the conductivity test value; x is the conductivity test value; a is x 2 The coefficient of ; b is the coefficient of x; c is the constant term.
[0120] The conductivity test value and the theoretical conductivity value of each standard solution in N standard solutions are subjected to binomial fitting using the least squares method to determine the values of a, b and c, and a nonlinear function of the determined values of a, b and c is used as the first variation relationship.
[0121] Exemplarily, the first detection module is also used to use the conductivity detector to be calibrated to detect pure water and M standard solutions respectively to obtain the conductivity detection values of pure water and each standard solution; wherein, the actual conductivity values of any two standard solutions among the M standard solutions are different; M≥N.
[0122] The first acquisition module is further configured to acquire the temperature of pure water and each standard solution when the conductivity detector to be calibrated detects pure water and M standard solutions, as the second temperature.
[0123] Illustratively, the conductivity detector calibration system provided in this embodiment further includes:
[0124] The third determination module is used to determine the first-time conductivity fitting value of each standard solution in pure water and M standard solutions based on the conductivity detection value of each standard solution in pure water and M standard solutions and the first change relationship, and determine the conductivity remeasurement value of each standard solution in pure water and M standard solutions based on each conductivity first-time fitting value and the corresponding second temperature.
[0125] The linear fitting module is used to perform linear fitting on the remeasured conductivity values of pure water and the M standard solutions and the actual conductivity values in turn according to the actual conductivity values when the error between the remeasured conductivity value of each standard solution in pure water and the M standard solutions and the corresponding actual conductivity value is greater than a preset conductivity error threshold, so as to obtain a second change relationship.
[0126] The second calibration module is used to calibrate the conductivity detector to be calibrated according to the second change relationship to detect the conductivity of the liquid to be measured.
[0127] Exemplarily, the third determining module includes:
[0128] The second calculation unit is used to calculate the conductivity re-measurement value of pure water and each of the M standard solutions according to the following formula:
[0129] .
[0130] Among them, K F is the re-measured value of the conductivity of pure water or the target standard solution in M standard solutions; y is the first fitting value of the conductivity of pure water and each standard solution in M standard solutions obtained by the first change relationship; T2 is the second temperature corresponding to the target standard solution in pure water or M standard solutions.
[0131] Exemplarily, the linear fitting module includes:
[0132] The sorting unit is used to sort the pure water and M standard solutions according to the actual values of the conductivity.
[0133] The second fitting unit is used to perform linear fitting on the re-measured conductivity values and actual conductivity values of any two adjacent liquids in the sorted pure water and M standard solutions to obtain M line segments.
[0134] The third fitting unit is used to connect the M line segments in sequence to obtain a second change relationship.
[0135] For more specific working processes of the above modules, please refer to the corresponding content disclosed in Example 1, which will not be repeated here. Example 3
[0136] This embodiment provides a computer device, including a processor and a memory; wherein, when the processor executes a computer program stored in the memory, the steps of the conductivity detector calibration method described in Example 1 are implemented.
[0137] For more specific details about the above method, please refer to the corresponding content disclosed in Example 1, which will not be repeated here. Example 4
[0138] This embodiment provides a computer-readable storage medium for storing a computer program; when the computer program is executed by a processor, the steps of the conductivity detector calibration method described in Example 1 are implemented.
[0139] For more specific details about the above method, please refer to the corresponding content disclosed in Example 1, which will not be repeated here. Example 5
[0140] This embodiment provides a computer program product, including computer-executable instructions or a computer program. When the computer-executable instructions or the computer program are executed by a processor, the steps of the conductivity detector calibration method described in Example 1 are implemented.
[0141] For more specific details about the above method, please refer to the corresponding content disclosed in Example 1, which will not be repeated here.
[0142] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from the other embodiments. References to the same or similar parts between the various embodiments will be sufficient. The systems, devices, storage media, and computer program products disclosed in the embodiments correspond to the methods disclosed in the embodiments, so their descriptions are relatively simplified. For relevant details, refer to the method descriptions.
[0143] Those skilled in the art will clearly understand that the techniques in the embodiments of the present invention can be implemented using software and a necessary general-purpose hardware platform. Based on this understanding, the technical solutions in the embodiments of the present invention, or the portion that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a storage medium such as ROM / RAM, a magnetic disk, or an optical disk, and includes instructions for enabling a computer device (such as a personal computer, server, or network device) to execute the methods described in various embodiments of the present invention, or portions thereof.
[0144] In some embodiments, computer-executable instructions may be in the form of a program, software, software module, script, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.
[0145] As an example, computer-executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinating files (e.g., files storing one or more modules, subroutines, or code portions).
[0146] By way of example, computer-executable instructions may be deployed to be executed on one electronic device, or on multiple electronic devices located at one site, or on multiple electronic devices distributed across multiple sites and interconnected by a communication network.
[0147] The present invention has been described in detail above with reference to specific embodiments and exemplary examples. However, these descriptions should not be construed as limiting the present invention. Those skilled in the art will appreciate that various equivalent substitutions, modifications, or improvements may be made to the technical solutions and implementations of the present invention without departing from the spirit and scope of the present invention, all of which fall within the scope of the present invention. The scope of protection of the present invention shall be determined by the appended claims.
Claims
1. A conductivity detector calibration method, characterized in that: include: Step 101: using a conductivity detector to be calibrated to detect N standard solutions respectively, and obtaining a conductivity detection value of each standard solution; wherein the actual conductivity values of any two standard solutions among the N standard solutions are different, and N ≥ 3; Step 102: obtaining the temperature of each standard solution when the conductivity detector to be calibrated detects N standard solutions, as a first temperature; Step 103: Determine the theoretical conductivity value of each standard solution at the corresponding first temperature based on the actual conductivity value of each standard solution; wherein the calculation formula of the theoretical conductivity value at the first temperature is: σ2=σ1+0.022σ1·(T1-25); Wherein, σ2 is the theoretical value of the conductivity of the target standard solution at the corresponding first temperature; σ1 is the actual value of the conductivity of the target standard solution; T1 is the first temperature corresponding to the target standard solution; Step 104: Determine, based on the conductivity test value and the theoretical conductivity value of each standard solution, a variation relationship between the theoretical conductivity value and the conductivity test value as a first variation relationship; wherein the step of determining the variation relationship between the theoretical conductivity value and the conductivity test value includes constructing a nonlinear function; and performing binomial fitting on the conductivity test value and the theoretical conductivity value of each of the N standard solutions to determine a parameter value of the nonlinear function; Step 105: calibrating the conductivity detector to be calibrated according to the first change relationship and the second change relationship to detect the conductivity of the liquid to be tested; Step 106, the step of obtaining the second change relationship is: using the conductivity detector to be calibrated to detect pure water and M standard solutions respectively, to obtain conductivity detection values of pure water and each standard solution; wherein the actual conductivity values of any two standard solutions among the M standard solutions are different; M ≥ N; wherein the condition for determining that the detection error of the conductivity detection value of each standard solution meets the requirement is: the actual conductivity value of the Mth standard solution used in step 106 is greater than the actual conductivity value of the Nth standard solution used in step 101; Step 107: Obtain the temperature of the pure water and each standard solution when the conductivity detector to be calibrated detects the pure water and the M standard solutions, as a second temperature; Step 108: determining a first-order conductivity fitting value of each of the pure water and the M standard solutions based on the conductivity test value of each of the pure water and the M standard solutions and the first variation relationship, and determining a remeasured conductivity value of each of the pure water and the M standard solutions based on each first-order conductivity fitting value and the corresponding second temperature; Step 109: When the error between the remeasured conductivity value of pure water and each of the M standard solutions and the corresponding actual conductivity value is greater than a preset conductivity error threshold, linear fitting is performed on the remeasured conductivity values and the actual conductivity values of the pure water and the M standard solutions in turn according to the actual conductivity values to obtain the second change relationship.
2. The conductivity detector calibration method according to claim 1, characterized in that: The nonlinear function expression is: y=ax 2 +bx+c; Where y is the conductivity first fitting value obtained based on the conductivity test value; x is the conductivity test value; a is x 2 The coefficient of b is x; b is the coefficient of x; c is the constant term; The conductivity test value and the theoretical conductivity value of each standard solution in N standard solutions are subjected to binomial fitting using the least squares method to determine the values of a, b and c, and a nonlinear function of the determined values of a, b and c is used as the first variation relationship.
3. The conductivity detector calibration method according to claim 1, characterized in that: The method comprises determining a first-time conductivity fitting value of each of the pure water and the M standard solutions according to the conductivity detection value of each of the pure water and the M standard solutions and the first change relationship, and determining a re-measured conductivity value of each of the pure water and the M standard solutions based on each conductivity first-time fitting value and the corresponding second temperature, including: Calculate the re-measured conductivity value of pure water and each of the M standard solutions according to the following formula: ; Among them, K F is the re-measured value of the conductivity of pure water or the target standard solution in M standard solutions; y is the first fitting value of the conductivity of pure water and each standard solution in M standard solutions obtained by the first change relationship; T2 is the second temperature corresponding to the target standard solution in pure water or M standard solutions.
4. The conductivity detector calibration method according to claim 1, characterized in that: The re-measured conductivity values of pure water and M standard solutions and the actual conductivity values are linearly fitted in sequence according to the actual conductivity values to obtain a second change relationship, including: Sort pure water and M standard solutions according to their actual conductivity values; Perform linear fitting on the re-measured conductivity values and actual conductivity values of any two adjacent liquids in the sorted pure water and M standard solutions to obtain M line segments; Connect the M line segments in sequence to obtain the second change relationship.
5. A conductivity detector calibration system, characterized in that: include: A first detection module is configured to detect N standard solutions using a conductivity detector to be calibrated, respectively, to obtain a conductivity detection value of each standard solution; wherein the actual conductivity values of any two standard solutions among the N standard solutions are different, and N ≥ 3; and to detect pure water and M standard solutions using the conductivity detector to be calibrated, respectively, to obtain conductivity detection values of pure water and each standard solution; wherein the actual conductivity values of any two standard solutions among the M standard solutions are different, and M ≥ N; wherein a condition for determining that a detection error of the conductivity detection value of each standard solution meets a requirement is that the actual conductivity value of the Mth standard solution used is greater than the actual conductivity value of the Nth standard solution used; A first acquisition module is configured to acquire the temperature of each standard solution when the conductivity detector to be calibrated detects N standard solutions, as a first temperature; and acquire the temperature of pure water and each standard solution when the conductivity detector to be calibrated detects pure water and M standard solutions, as a second temperature; The first determination module is used to determine the theoretical conductivity value of each standard solution at the corresponding first temperature according to the actual conductivity value of each standard solution; wherein the calculation formula of the theoretical conductivity value at the first temperature is: σ2=σ1+0.022σ1·(T1-25); Wherein, σ2 is the theoretical value of the conductivity of the target standard solution at the corresponding first temperature; σ1 is the actual value of the conductivity of the target standard solution; T1 is the first temperature corresponding to the target standard solution; a second determining module, configured to determine, based on the conductivity detection value and the theoretical conductivity value of each standard solution, a variation relationship between the theoretical conductivity value and the conductivity detection value, as a first variation relationship; wherein determining the variation relationship between the theoretical conductivity value and the conductivity detection value includes constructing a nonlinear function; and performing binomial fitting on the conductivity detection value and the theoretical conductivity value of each standard solution in the N standard solutions to determine a parameter value of the nonlinear function; a third determination module, configured to determine a first-order conductivity fitting value of each of the pure water and the M standard solutions based on the conductivity detection value of each of the pure water and the M standard solutions and the first change relationship, and determine a remeasured conductivity value of each of the pure water and the M standard solutions based on each first-order conductivity fitting value and the corresponding second temperature; a linear fitting module for performing linear fitting on the remeasured conductivity values of pure water and the M standard solutions and the actual conductivity values in turn according to the actual conductivity values, when the error between the remeasured conductivity value of each standard solution in pure water and the M standard solutions and the corresponding actual conductivity value is greater than a preset conductivity error threshold, to obtain a second change relationship; A first calibration module is used to calibrate the conductivity detector to be calibrated according to the first change relationship to detect the conductivity of the liquid to be measured; The second calibration module is used to calibrate the conductivity detector to be calibrated according to the second change relationship to detect the conductivity of the liquid to be measured.
6. A computer-readable storage medium, characterized in that Used to store a computer program; when the computer program is executed by a processor, the steps of the conductivity detector calibration method according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Temperature compensation algorithm of water quality conductivity sensor
CN115389567A