CN115639335A - Water quality monitoring data calibration method, system and computer readable storage medium - Google Patents

Water quality monitoring data calibration method, system and computer readable storage medium Download PDF

Info

Publication number
CN115639335A
CN115639335A CN202211289593.9A CN202211289593A CN115639335A CN 115639335 A CN115639335 A CN 115639335A CN 202211289593 A CN202211289593 A CN 202211289593A CN 115639335 A CN115639335 A CN 115639335A
Authority
CN
China
Prior art keywords
detection data
national standard
standard method
data
sensor detection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211289593.9A
Other languages
Chinese (zh)
Inventor
解岩
董均锋
薛成自
张建康
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shijiazhuang Ro Technology Co ltd
Original Assignee
Shijiazhuang Ro Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shijiazhuang Ro Technology Co ltd filed Critical Shijiazhuang Ro Technology Co ltd
Priority to CN202211289593.9A priority Critical patent/CN115639335A/en
Publication of CN115639335A publication Critical patent/CN115639335A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A20/00Water conservation; Efficient water supply; Efficient water use
    • Y02A20/152Water filtration

Landscapes

  • Testing Or Calibration Of Command Recording Devices (AREA)

Abstract

The invention relates to the technical field of water quality monitoring, and provides a water quality monitoring data calibration method, a water quality monitoring data calibration system and a computer readable storage medium, which are used for calibrating sensor detection data and comprise the following steps: respectively collecting national standard method detection data at a plurality of moments and sensor detection data at a plurality of moments; fitting a national standard method detection curve according to a plurality of national standard method detection data, and fitting a sensor detection curve according to a plurality of sensor detection data; executing N times of equation construction operation to obtain a matrix equation set consisting of N equations, wherein N is a natural number and is more than or equal to 3; for any sensor detection data, the sensor detection data is taken as an independent variable m and is substituted into an equation Z = a2 · m 2 + b2 · m + c2, and the obtained Z value is used as a calibration value of the detection data of any one of the sensors. Through the technical scheme, the problems of long water quality detection period and low detection precision in the related technology are solved.

Description

Water quality monitoring data calibration method, system and computer readable storage medium
Technical Field
The invention relates to the technical field of water quality monitoring, in particular to a water quality monitoring data calibration method, a water quality monitoring data calibration system and a computer readable storage medium.
Background
With the rapid development of social economy, the living standard of people is continuously improved, the requirements on the quality of life are obviously improved, and health, nature and safety are more emphasized. Thus, the water quality detection work also becomes more important. The water quality detection work mainly carries out full detection on the contents of various trace elements, bacteria and other substances in the water, and the contained contents are very wide. The main purpose of the water quality detection work is to detect whether the quality of water resources meets the national standard or not, and whether the water resources can be put into daily life of people to be used as drinking water or domestic water.
The traditional water quality detection method comprises two methods of sensor measurement and national standard measurement. The sensor measuring method is fast, but poor in accuracy and only capable of monitoring trends; compared with the sensor measurement, the measurement of the national standard method has high accuracy, but the detection time of the measurement of the national standard method is long.
Disclosure of Invention
The invention provides a water quality monitoring data calibration method, a water quality monitoring data calibration system and a computer readable storage medium, and solves the problems of long water quality detection period and low detection precision in the related technology.
The technical scheme of the invention is as follows:
in a first aspect, a method for calibrating water quality monitoring data, for calibrating sensor detection data, comprises:
respectively collecting national standard method detection data at a plurality of moments and sensor detection data at a plurality of moments;
fitting a national standard method detection curve according to the plurality of national standard method detection data, and fitting a sensor detection curve according to the plurality of sensor detection data;
executing N times of equation construction operation to obtain a matrix equation set consisting of N equations, wherein N is a natural number and is more than or equal to 3; any equation construction operation includes:
acquiring sensor detection data and national standard method detection data at the same moment from the sensor detection curve and the national standard method detection curve;
using the detection data of the sensor as independent variable m and the detection data of the national standard method at the same time as dependent variable Z, and constructing an equation Z = a 2. M 2 +b2·m+c2;
Solving the matrix equation set, wherein the solution of the matrix equation set is used as the value of a2, b2 and c2;
substituting the sensor detection data into an equation Z = a2 · m as an independent variable m for any sensor detection data 2 + b2 · m + c2, and the obtained Z value is used as a calibration value of the sensor detection data.
In a second aspect, a water quality monitoring data calibration system for calibration of sensor test data, comprising:
the acquisition module is used for respectively acquiring national standard method detection data at a plurality of moments and sensor detection data at a plurality of moments;
the fitting module is used for fitting a national standard method detection curve according to the plurality of national standard method detection data and fitting a sensor detection curve according to the plurality of sensor detection data;
the equation construction module executes equation construction operation for N times to obtain a matrix equation set consisting of N equations, wherein N is a natural number and is more than or equal to 3; any equation construction operation includes:
acquiring sensor detection data and national standard method detection data at the same moment from the sensor detection curve and the national standard method detection curve;
using the detection data of the sensor as independent variable m and the detection data of the national standard method at the same time as dependent variable Z, and constructing an equation Z = a2 · m 2 +b2·m+c2;
The first calculation module is used for solving the matrix equation set, and the solution of the matrix equation set is used as the values of a2, b2 and c2;
a calibration module for substituting the sensor detection data into an equation Z = a2 · m as an independent variable m for any sensor detection data 2 + b2 · m + c2, and the obtained Z value is used as a calibration value of the detection data of any one of the sensors.
In a third aspect, a computer readable storage medium is provided, wherein the computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the steps of the water quality monitoring data calibration method.
The working principle and the beneficial effects of the invention are as follows:
the invention measures the water quality by combining the sensor and the national standard method, and utilizes the detection data of the national standard method to calibrate the detection data of the sensor, thereby realizing the measuring method with short measuring period and high precision. The combination of the two methods is realized by using a unique calculation and calibration method, the measurement period reaches 5 minutes, and the detection data precision of the sensor reaches the precision of the national standard method.
Drawings
The invention is described in further detail below with reference to the drawings and the detailed description;
FIG. 1 is a flow chart of a water quality monitoring data calibration method according to the present invention;
FIG. 2 is a schematic diagram of a water quality monitoring data calibration system according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any inventive step, are intended to be within the scope of the present invention.
Example 1
As shown in fig. 1, the present embodiment proposes a calibration method for water quality monitoring data, which is used for calibrating sensor detection data, and includes:
s1: respectively collecting national standard method detection data at a plurality of moments and sensor detection data at a plurality of moments;
and (3) detecting the water quality by using a national standard method and a sensor method, acquiring national standard method detection data and sensor detection data at a plurality of moments, and storing the national standard method detection data and the sensor detection data into a system database.
S2: fitting a national standard method detection curve according to a plurality of national standard method detection data, and fitting a sensor detection curve according to a plurality of sensor detection data;
and selecting a plurality of national standard method detection data and a plurality of sensor detection data in the last 24 hours from a system database, and respectively fitting a national standard method detection curve and a sensor detection curve to be used as two original data curves.
S3: executing N times of equation construction operation to obtain a matrix equation set consisting of N equations, wherein N is a natural number and is more than or equal to 3; any equation construction operation includes:
s31: acquiring sensor detection data and national standard method detection data at the same moment from a sensor detection curve and a national standard method detection curve;
s32: using the detection data of the sensor as independent variable m and the detection data of the national standard method at the same time as dependent variable Z, and constructing an equation Z = a2 · m 2 + b2 · m + c2; solving a matrix equation set, wherein the solution of the matrix equation set is used as the values of a2, b2 and c2;
performing a one-time equation construction operation will result in a Z = a2 · m 2 And executing an equation construction operation for 3 times by using the + b2 · m + c2 equation to obtain a matrix equation set consisting of 3 equations. Curve of raw data according to quadratic equation Z = a2 · m 2 And modeling the + b2 m + c2, fitting the sensor method curve to a national standard method curve, and obtaining fitting coefficients a2, b2 and c2 after fitting.
S4: for any sensor detection data, the sensor detection data is taken as an independent variable m and is substituted into an equation Z = a2 · m 2 + b2 · m + c2, and the obtained Z value is used as a calibration value of the sensor detection data.
For example, when the sensor detection data is m1, the equation Z = a2 · m is substituted 2 + b2 · m + c2, and fitting coefficients a2, b2, and c2 being constants, the calibration value Z1 of the sensor detection data can be obtained. Therefore, the measured data of the sensor method can be corrected according to the fitting coefficient.
In the embodiment, the water quality is measured by combining the sensor and the national standard method, and the sensor is calibrated by using the detection data of the national standard method, so that the measuring method with short measuring period and accurate precision is realized. The combination of the two methods is realized by using a unique calculation and calibration method, the measurement period reaches 5 minutes, and the detection data precision of the sensor reaches the precision of the national standard method.
Further, solving the matrix equation set in this embodiment specifically includes: the matrix equation set is solved by a Gaussian column principal component elimination method.
The gaussian elimination method is a relatively intuitive and simple method, but is characterized in that the elimination is performed in sequence according to the order of elements on the main diagonal of a coefficient matrix each time, and two problems easily occur in the iterative process: firstly, once a certain pivot element is equal to zero, the elimination process cannot be carried out; second, it has been found in long-term work that even if the elimination process proceeds, the absolute value of a principal element is very small, and the result is far from the true value. In order to avoid the above two problems in gaussian elimination, a gaussian elimination method is generally adopted, which is characterized in that: in the coefficient matrix, the largest element is selected as the principal element from the elements listed in the principal diagonal and below, the element is adjusted to the principal diagonal, the elements below the principal diagonal are eliminated by the element, and finally the upper triangular equation set with the same solution is solved.
Further, in this embodiment, after the step of solving the matrix equation set is performed, the step of respectively acquiring the national standard method detection data at a plurality of times and the sensor detection data at a plurality of times is repeatedly performed at set time intervals.
In this embodiment, a correction coefficient is calculated by sliding for 24 hours, the measurement data of the sensor method is calibrated in real time, and the corrected measurement data of the sensor method can be matched with the measurement data of the national standard method.
Example 2
As shown in fig. 2, based on the same concept as that of embodiment 1, the present embodiment further provides a water quality monitoring data calibration system for calibrating sensor detection data, including:
the acquisition module is used for respectively acquiring national standard method detection data at a plurality of moments and sensor detection data at a plurality of moments;
the fitting module is used for fitting a national standard method detection curve according to a plurality of national standard method detection data and fitting a sensor detection curve according to a plurality of sensor detection data;
the equation construction module executes equation construction operation for N times to obtain a matrix equation set consisting of N equations, wherein N is a natural number and is more than or equal to 3; any equation construction operation includes:
acquiring sensor detection data and national standard method detection data at the same moment from a sensor detection curve and a national standard method detection curve;
taking sensor detection data as an independent variable m and national standard method detection data at the same moment as a dependent variable Z, and constructing an equation Z = a2 · m2+ b2 · m + c2;
the first calculation module is used for solving a matrix equation set, and the solution of the matrix equation set is used as the values of a2, b2 and c2;
and the calibration module is used for substituting the sensor detection data into an equation Z = a2 m2+ b2 m + c2 by taking the sensor detection data as an independent variable m for any sensor detection data, and taking the obtained Z value as a calibration value of any sensor detection data.
Further, the first calculating module is configured to solve the matrix equation set, and specifically includes:
the matrix equation set is solved by a Gaussian column principal component elimination method.
Further, still include: and the data updating module is used for repeatedly executing the steps of respectively acquiring national standard method detection data at a plurality of moments and sensor detection data at a plurality of moments at intervals of set time after executing the step of solving the matrix equation set.
Various changes and specific examples of the water quality monitoring data calibration method in the foregoing embodiment 1 are also applicable to the water quality monitoring data calibration system in this embodiment, and through the detailed description of the water quality monitoring data calibration method, those skilled in the art can clearly know the implementation method of the water quality monitoring data calibration system in this embodiment, so for the brevity of the description, detailed description is not repeated here.
Example 3
Based on the same inventive concept as that of embodiment 1, the present invention further provides a computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when being executed by a processor, the computer program implements the steps of the water quality monitoring data calibration method.
The present invention is not limited to the above preferred embodiments, and any modifications, equivalent substitutions, improvements, etc. within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (7)

1. A water quality monitoring data calibration method is used for calibrating sensor detection data and is characterized by comprising the following steps:
respectively collecting national standard method detection data at a plurality of moments and sensor detection data at a plurality of moments;
fitting a national standard method detection curve according to the plurality of national standard method detection data, and fitting a sensor detection curve according to the plurality of sensor detection data;
executing N times of equation construction operation to obtain a matrix equation set consisting of N equations, wherein N is a natural number and is more than or equal to 3; any equation construction operation includes:
acquiring sensor detection data and national standard method detection data at the same moment from the sensor detection curve and the national standard method detection curve;
using the detection data of the sensor as independent variable m and the detection data of the national standard method at the same time as dependent variable Z, and constructing an equation Z = a2 · m 2 +b2·m+c2;
Solving the matrix equation set, wherein the solution of the matrix equation set is used as the value of a2, b2 and c2;
substituting the sensor detection data into an equation Z = a2 · m as an independent variable m for any sensor detection data 2 + b2 · m + c2, and the obtained Z value is used as a calibration value of the detection data of any one of the sensors.
2. The water quality monitoring data calibration method according to claim 1, wherein the solving the matrix equation set specifically comprises:
the matrix equation set is solved by a Gaussian column principal component elimination method.
3. The method for calibrating water quality monitoring data according to claim 1, wherein the step of collecting national standard method detection data at a plurality of times and sensor detection data at a plurality of times is repeatedly performed at a set time interval after the step of solving the matrix equation set is performed.
4. Water quality monitoring data calibration system for the calibration of sensor test data, its characterized in that includes:
the acquisition module is used for respectively acquiring national standard method detection data at a plurality of moments and sensor detection data at a plurality of moments;
the fitting module is used for fitting a national standard method detection curve according to the plurality of national standard method detection data and fitting a sensor detection curve according to the plurality of sensor detection data;
the equation construction module executes N times of equation construction operation to obtain a matrix equation set consisting of N equations, wherein N is a natural number and is more than or equal to 3; any equation construction operation includes:
acquiring sensor detection data and national standard method detection data at the same moment from the sensor detection curve and the national standard method detection curve;
using the detection data of the sensor as independent variable m and the detection data of the national standard method at the same time as dependent variable Z, and constructing an equation Z = a2 · m 2 +b2·m+c2;
The first calculation module is used for solving the matrix equation set, and the solution of the matrix equation set is used as the values of a2, b2 and c2;
a calibration module for substituting the sensor detection data into an equation Z = a2 · m as an independent variable m for any sensor detection data 2 + b2 · m + c2, and the obtained Z value is used as a calibration value of the detection data of any one of the sensors.
5. The water quality monitoring data calibration system of claim 4, wherein the first calculation module is configured to solve the matrix equation set, and specifically comprises:
the matrix equation set is solved by a Gaussian column principal component elimination method.
6. The water quality monitoring data calibration system of claim 4, further comprising:
and the data updating module is used for repeatedly executing the steps of respectively acquiring national standard method detection data at a plurality of moments and sensor detection data at a plurality of moments at set time intervals after executing the step of solving the matrix equation set.
7. A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, which computer program, when executed by a processor, carries out the steps of the water quality monitoring data calibration method according to any one of claims 1 to 3.
CN202211289593.9A 2022-10-20 2022-10-20 Water quality monitoring data calibration method, system and computer readable storage medium Pending CN115639335A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211289593.9A CN115639335A (en) 2022-10-20 2022-10-20 Water quality monitoring data calibration method, system and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211289593.9A CN115639335A (en) 2022-10-20 2022-10-20 Water quality monitoring data calibration method, system and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN115639335A true CN115639335A (en) 2023-01-24

Family

ID=84945813

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211289593.9A Pending CN115639335A (en) 2022-10-20 2022-10-20 Water quality monitoring data calibration method, system and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN115639335A (en)

Similar Documents

Publication Publication Date Title
Thompson et al. Harmonized guidelines for the use of recovery information in analytical measurement
CN102944583B (en) Metal-oxide gas sensor array concentration detecting method based on drift compensation
CN110018275A (en) A kind of gas detector with compensation function and compensation method
CN104921736A (en) Continuous blood glucose monitoring device comprising parameter estimation function filtering module
CN103278264A (en) Calibration method and calibration system for surface source blackbody temperature accuracy
CN110441374B (en) Dissolved oxygen sensor compensation method based on SA-BP neural network
CN109540340A (en) The calibration method of fluid temperature, pressure monitoring sensor in a kind of pipeline
CN113310555B (en) Water meter online calibration method, system and device and storage medium
CN108319664A (en) A kind of dam and the recognition methods of project security monitoring data error and system
CN106053724A (en) Cloud computing-based gas sensor precision compensating method and device
CN110220945B (en) Full-range temperature compensation method of semiconductor gas sensor
CN110020793B (en) Crop water stress diagnosis method and system based on canopy temperature
CN105806915B (en) A kind of nutrient solution potassium, Na ion concentration detector and detection method
CN110702735A (en) Residual chlorine electrode calibration method and water quality detection instrument
JP2019049571A (en) Detection of transient error in body fluid sample
CN114235726B (en) Data processing method, system, equipment and medium for microfluidic total nitrogen concentration detection
CN116337783A (en) Multi-point calibration method and system for gas analyzer
KR20170075670A (en) Method of automatically calibrating sensor output characteristic of gas detector
CN114608682A (en) Calibration method of flowmeter
CN114199451A (en) Pressure detection method and system based on temperature compensation and storage medium
CN112731815B (en) Method for improving analog quantity acquisition precision
CN106092375A (en) The method of calibration of airborne equipment surface temperature sensor and tester
US5872454A (en) Calibration procedure that improves accuracy of electrolytic conductivity measurement systems
CN115639335A (en) Water quality monitoring data calibration method, system and computer readable storage medium
CN116296047B (en) Temperature compensation improvement method of monocrystalline silicon pressure transmitter

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination