CN108802153B - Calibration method for period fading, electronic device and storage medium - Google Patents

Calibration method for period fading, electronic device and storage medium Download PDF

Info

Publication number
CN108802153B
CN108802153B CN201810373025.4A CN201810373025A CN108802153B CN 108802153 B CN108802153 B CN 108802153B CN 201810373025 A CN201810373025 A CN 201810373025A CN 108802153 B CN108802153 B CN 108802153B
Authority
CN
China
Prior art keywords
oxygen concentration
value
preset
preset time
period
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.)
Active
Application number
CN201810373025.4A
Other languages
Chinese (zh)
Other versions
CN108802153A (en
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.)
Shenzhen Xiaofeng Scientific Construction Engineering Co.,Ltd.
Original Assignee
Shenzhen Xiaofeng Building Environmental Science & 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 Shenzhen Xiaofeng Building Environmental Science & Technology Co ltd filed Critical Shenzhen Xiaofeng Building Environmental Science & Technology Co ltd
Priority to CN201810373025.4A priority Critical patent/CN108802153B/en
Publication of CN108802153A publication Critical patent/CN108802153A/en
Application granted granted Critical
Publication of CN108802153B publication Critical patent/CN108802153B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N27/00Investigating or analysing materials by the use of electric, electrochemical, or magnetic means
    • G01N27/26Investigating or analysing materials by the use of electric, electrochemical, or magnetic means by investigating electrochemical variables; by using electrolysis or electrophoresis
    • G01N27/416Systems
    • G01N27/4163Systems checking the operation of, or calibrating, the measuring apparatus

Landscapes

  • Chemical & Material Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • Chemical Kinetics & Catalysis (AREA)
  • Electrochemistry (AREA)
  • Molecular Biology (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • General Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Measuring Oxygen Concentration In Cells (AREA)

Abstract

The invention discloses a calibration method of period fading, an electronic device and a storage medium, wherein the method comprises the following steps: acquiring a plurality of oxygen concentration measurement values acquired by an oxygen sensor in a preset time period; calculating to obtain a cycle decay factor according to a plurality of oxygen concentration measurement values acquired in the preset time period; calculating according to the period attenuation factor to obtain an oxygen concentration correction value at a preset moment; and calibrating the oxygen concentration measured value at the preset moment according to the oxygen concentration correction value at the preset moment. The periodic attenuation factor of the preset time period is obtained through calculation to compensate the periodic attenuation of the oxygen sensor, so that the problem of inaccurate calibration of the periodic attenuation of the oxygen sensor is solved, and the measurement precision of the oxygen sensor is more accurate.

Description

Calibration method for period fading, electronic device and storage medium
Technical Field
The present invention relates to the field of periodic attenuation calibration technologies, and in particular, to a periodic attenuation calibration method, an electronic device, and a storage medium.
Background
At present, electrochemistry principle oxygen sensor is based on its measuring principle, and along with the time lapse, the signal of telecommunication of its sensor body measurement has certain decay, and different sensor decay percentage is also different, nevertheless takes the product of system oxygen function in the class, like an air purification device who takes system oxygen function, needs the concentration of the indoor oxygen of real-time supervision, and this just leads to the product to run for half a year or even more later, and oxygen content real-time supervision appears changing, is really not according with the environment condition. At this time, automatic calibration needs to be performed on product software, however, since the characteristics of each monomer are different, the attenuation parameters are also inconsistent, and the attenuation parameters cannot be accurately obtained in real time, and only by means of empirical values, the situation of deviation can be caused after measurement in a certain period. Based on the situation, it is particularly important to develop a set of adaptive algorithms.
Disclosure of Invention
In order to overcome the defects of the prior art, one of the objectives of the present invention is to provide a calibration method for periodic attenuation, which solves the problem of inaccurate calibration for the periodic attenuation of an oxygen sensor.
The second objective of the present invention is to provide an electronic device, which solves the problem of inaccurate calibration of the periodic attenuation of the oxygen sensor.
The invention further aims to provide a storage medium, which solves the problem of inaccurate periodic attenuation calibration of the oxygen sensor.
One of the purposes of the invention is realized by adopting the following technical scheme:
a method of calibrating a period decay of an oxygen sensor, comprising:
acquiring a plurality of oxygen concentration measurement values acquired by an oxygen sensor in a preset time period;
calculating to obtain a cycle decay factor according to a plurality of oxygen concentration measurement values acquired in the preset time period;
calculating according to the period attenuation factor to obtain an oxygen concentration correction value at a preset moment;
and calibrating the oxygen concentration measurement value at the preset moment according to the oxygen concentration correction value at the preset moment.
Further, the acquiring of the oxygen concentration measurement value acquired by the oxygen sensor in the preset time period includes:
obtaining the oxygen sensor at T1、T2、T3、T4、T5And T6Oxygen concentration measurement Y acquired at six moments1、Y2、Y3、Y4、Y5And Y6Wherein the time intervals of the six moments are all t.
Further, the period attenuation factor is calculated according to the plurality of oxygen concentration measurement values acquired in the preset time period, specifically, the period attenuation factor is calculated according to the following formula:
Figure BDA0001638813940000021
wherein T is2=T1+t,T5=T1+4t;
Wherein, Y5、Y2Respectively represents T5、T2The oxygen concentration measurements acquired by the oxygen sensor at a time, k, represent the period decay factor.
Further, the oxygen concentration correction value at the preset time is calculated according to the cycle decay factor, specifically, the calculation is performed according to the following formula:
Q=k*T+Y0wherein
Figure BDA0001638813940000022
Wherein T represents a time value at a preset time, Y0And Q represents the corrected value of the oxygen concentration at the preset moment.
Further, the calibrating the measured value of the oxygen concentration at the preset time according to the corrected value of the oxygen concentration at the preset time includes:
and compensating the periodic attenuation of the oxygen sensor according to the oxygen concentration correction value at the preset moment to obtain the oxygen concentration calibration value at the preset moment.
Further, after obtaining the calibration value of the oxygen concentration at the preset time, the method further includes:
and outputting the oxygen concentration calibration value at the preset moment.
Further, the value of the first preset time T is greater than T6 and less than or equal to T6+ T.
The second purpose of the invention is realized by adopting the following technical scheme:
an electronic device comprising a memory, a processor and a program stored in the memory, the program being configured to be executed by the processor, the steps of the calibration method being performed when the program is executed by the processor.
The third purpose of the invention is realized by adopting the following technical scheme:
a storage medium storing a computer program which, when executed by a processor, implements the steps of the above-described calibration method.
Compared with the prior art, the invention has the beneficial effects that: the method comprises the steps of obtaining a plurality of oxygen concentration measured values acquired by an oxygen sensor in a preset time period, calculating to obtain a period attenuation factor of the preset time period, further calculating to obtain an oxygen concentration correction value at a preset moment, compensating the period attenuation of the oxygen sensor according to the oxygen concentration correction value at the preset moment, and finally obtaining an oxygen concentration calibration value at the preset moment.
Drawings
FIG. 1 is a flowchart illustrating a calibration method for cycle-decaying according to a first embodiment of the present invention;
FIG. 2 is a schematic diagram of a coordinate relationship of measured oxygen concentration values according to a first embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to a second embodiment of the invention.
Detailed Description
The present invention will be further described with reference to the accompanying drawings and the detailed description, and it should be noted that, in the present invention, the embodiments or technical features described below may be arbitrarily combined to form a new embodiment without conflict.
Example one
Referring to fig. 1, fig. 1 is a schematic flowchart of a calibration method for periodic attenuation according to a first embodiment of the present invention, including the following steps:
step S110: and acquiring a plurality of oxygen concentration measurement values acquired by the oxygen sensor in a preset time period.
Preferably, the oxygen sensor is acquired at T1、T2、T3、T4、T5And T6Oxygen concentration measurement Y acquired at six moments1、Y2、Y3、Y4、Y5And Y6And the time intervals of the six moments are all t.
Alternatively, the time interval t may be set to 1 to 7 days, or may be set to 7 days or more, which is not limited herein.
Step S120: and calculating to obtain a cycle decay factor according to the plurality of oxygen concentration measurement values acquired in the preset time period.
Preferably, step S120 calculates a cycle decay factor according to the plurality of oxygen concentration measurement values collected in the preset time period, specifically by the following equation:
Figure BDA0001638813940000051
wherein T is2=T1+t,T5=T1+4t;
Wherein, Y5、Y2Respectively represents T5、T2The oxygen concentration measurements acquired by the oxygen sensor at a time, k, represent the period decay factor.
Step S130: and calculating to obtain the oxygen concentration correction value at the preset moment according to the period attenuation factor.
Preferably, in step S130, the oxygen concentration correction value at the preset time is calculated according to the cycle decay factor, specifically, the calculation is performed according to the following equation:
Q=k*T+Y0wherein
Figure BDA0001638813940000052
Wherein T represents a time value at a preset time, Y0The variable obtained by real-time calculation is represented, Q represents the oxygen concentration correction value at the preset moment, and it needs to be noted that the value range of the preset moment T meets T6<T≤T6+t。
For example, the oxygen sensor is at T1、T2、T3、T4、T5And T6The measured values of the oxygen concentration collected at six moments are respectively 20.05 percent, 20.04 percent, 20.035 percent,20.02%, 20.01%, 20.005%, wherein the time interval t of the acquisition is 1 day, then the cycle decay factor k can be calculated to be-0.0001 according to the formula in step S120; y can be calculated according to the formula in step S1300Is (0.2005+ 0.0001T)1) If the preset time T is (T)1+6T), the oxygen concentration correction value Q at the first preset time T is 19.99% as calculated by the equation in step S130.
As shown in FIG. 2, as a preferred implementation of the embodiment of the present invention, the oxygen sensor may be used at T1、T2、T3、T4、T5And T6Oxygen concentration measurement Y acquired at six moments1、Y2、Y3、Y4、Y5And Y6Establishing a coordinate axis, wherein T1、T2、T3、T4、T5And T6The time intervals of the six moments are all T, the x-axis represents the time value, the y-axis represents the oxygen concentration measurement value, and the measured value is obtained according to the (T)1,Y1) And (T)2,Y2) The coordinates of the two points are calculated to obtain a straight line with the slope of k1 according to (T)2,Y2) And (T)3,Y3) Calculating coordinates of the two points to obtain a straight line with the slope of k2, obtaining an intersection point a of the two straight lines, and obtaining the reference value according to (T)4,Y4) And (T)5, Y5) The coordinates of the two points are calculated to obtain a straight line with the gradient of k3, and the straight line is based on (T)5,Y5) And (T)6,Y6) Calculating the coordinates of the two points to obtain a straight line with the slope of k4 and obtain the intersection point b of the two straight lines, wherein the coordinate of the point a is (T)2,Y2) And the coordinate of the point b is (T)5,Y5) Obtaining a straight line with the slope k through coordinates of the two points a and b, wherein the equation of the straight line is that y is kx + c, and the straight line is formed by
Figure BDA0001638813940000061
By the method, the oxygen concentration correction value at the first preset time T can be calculated, namely x is substituted into T, and the value y is calculated, namely the oxygen concentration correction value at the first preset time T,wherein the value range of T satisfies T6<T≤T6+ t; when the oxygen concentration correction value at the second preset time T 'needs to be calculated, the time value range of T' is T6+t<T′≤T6+2t, a new linear equation, y ═ k' x + d, is calculated by the method described above, where
Figure BDA0001638813940000062
And substituting x-T ' into the equation to calculate a y value, wherein the y value is the oxygen concentration correction value at the second preset time T ', and calculating the oxygen concentration correction value after the time T ' in an analogical manner.
Step S140: and calibrating the oxygen concentration measured value at the preset moment according to the oxygen concentration correction value at the preset moment.
Preferably, the period attenuation of the electrochemical oxygen sensor is compensated according to the oxygen concentration correction value at the preset time, so as to obtain the oxygen concentration calibration value at the preset time.
Preferably, the obtained oxygen concentration calibration value at the preset time is output as an output signal.
According to the calibration method for the period attenuation provided by the embodiment of the invention, the period attenuation factor of the preset time period is obtained by calculating through obtaining a plurality of oxygen concentration measured values acquired by the oxygen sensor in the preset time period, the oxygen concentration correction value at the preset moment is further obtained by calculating, the period attenuation of the oxygen sensor is compensated according to the oxygen concentration correction value at the preset moment, and finally the oxygen concentration calibration value at the preset moment is obtained.
From the above description of the embodiments, it is clear to those skilled in the art that the present invention can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments of the present invention, such as:
a storage medium storing a computer program which, when executed by a processor, implements the steps of the aforementioned calibration method.
The invention is operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like, as in embodiment two.
Example two
An electronic device as shown in fig. 3 comprises a memory 200, a processor 300 and a program stored in the memory 200, the program being configured to be executed by the processor 300, the steps of the calibration method being implemented when the processor 300 executes the program.
The electronic device in this embodiment and the method in the foregoing embodiments are based on two aspects of the same inventive concept, and the detailed description of the method implementation process has been given above, so that those skilled in the art can clearly understand the structure and implementation process of the system in this embodiment according to the foregoing description, and for the sake of brevity of the description, details are not repeated here.
According to the electronic device provided by the embodiment of the invention, the period attenuation factor of the preset time period is obtained by obtaining the oxygen concentration measured value acquired by the oxygen sensor in the preset time period, the oxygen concentration corrected value at the preset time is further obtained by calculation, the period attenuation of the oxygen sensor is compensated according to the oxygen concentration corrected value at the preset time, and finally the oxygen concentration calibrated value at the preset time is obtained.
The above embodiments are only preferred embodiments of the present invention, and the protection scope of the present invention is not limited thereby, and any insubstantial changes and substitutions made by those skilled in the art based on the present invention are within the protection scope of the present invention.

Claims (5)

1. A method for calibrating a periodic decay, comprising:
obtaining the oxygen sensor at T1、T2、T3、T4、T5And T6Oxygen concentration measurement Y acquired at six moments1、Y2、Y3、Y4、Y5And Y6Wherein the time intervals of the six moments are all t;
calculating to obtain a cycle decay factor according to a plurality of oxygen concentration measurement values acquired in the preset time period;
calculating according to the period attenuation factor to obtain an oxygen concentration correction value at a preset moment;
compensating the periodic attenuation of the electrochemical oxygen sensor according to the oxygen concentration correction value at the preset moment to obtain an oxygen concentration calibration value at the preset moment;
the period attenuation factor is specifically calculated by the following formula:
Figure FDA0002498816590000011
wherein T is2=T1+t,T5=T1+4t;
Wherein, Y5、Y2Respectively represents T5、T2The oxygen concentration measurement value collected by the oxygen sensor at the moment, k represents the period attenuation factor;
the oxygen concentration correction value is specifically calculated by the following formula:
Q=k*T+Y0wherein
Figure FDA0002498816590000012
Wherein T represents a time value at a preset time, Y0And Q represents the corrected value of the oxygen concentration at the preset moment.
2. The calibration method according to claim 1, wherein after obtaining the calibration value of the oxygen concentration at the preset time, the method further comprises:
and outputting the oxygen concentration calibration value at the preset moment.
3. Calibration method according to claim 2, characterized in that said preset time T has a value greater than T6 and equal to or less than T6+ T.
4. An electronic device, characterized in that: comprising a memory, a processor and a program stored in the memory, the program being configured to be executed by the processor, the processor when executing the program implementing the steps of the calibration method as claimed in any of the claims 1-3.
5. A storage medium storing a computer program, characterized in that: the computer program realizes the steps of the calibration method according to any one of claims 1-3 when executed by a processor.
CN201810373025.4A 2018-04-24 2018-04-24 Calibration method for period fading, electronic device and storage medium Active CN108802153B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810373025.4A CN108802153B (en) 2018-04-24 2018-04-24 Calibration method for period fading, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810373025.4A CN108802153B (en) 2018-04-24 2018-04-24 Calibration method for period fading, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN108802153A CN108802153A (en) 2018-11-13
CN108802153B true CN108802153B (en) 2020-07-14

Family

ID=64093846

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810373025.4A Active CN108802153B (en) 2018-04-24 2018-04-24 Calibration method for period fading, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN108802153B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110308192A (en) * 2019-06-12 2019-10-08 重庆川仪自动化股份有限公司 Demarcate method, apparatus, storage medium and the electric terminal of dissolved oxygen measuring device
CN115856059A (en) * 2022-12-14 2023-03-28 珠海华瑞诚科技有限公司 Oxygen sensor data calibration method and device, electronic device and storage medium
CN115980282A (en) * 2023-03-20 2023-04-18 广州香安化工有限公司 Sensitivity calibration method and device for gas odorous agent concentration measurement sensor

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107544668A (en) * 2017-06-19 2018-01-05 新华三技术有限公司 Behavioural information validity determines method, apparatus, electronic equipment and storage medium
CN107862593A (en) * 2017-10-24 2018-03-30 广东康美通信息服务有限公司 A kind of data settle accounts calculation method, electronic equipment and storage medium
CN107942306A (en) * 2017-11-22 2018-04-20 广东欧珀移动通信有限公司 Calibration method, device, storage medium and the electronic equipment of proximity sensor

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107544668A (en) * 2017-06-19 2018-01-05 新华三技术有限公司 Behavioural information validity determines method, apparatus, electronic equipment and storage medium
CN107862593A (en) * 2017-10-24 2018-03-30 广东康美通信息服务有限公司 A kind of data settle accounts calculation method, electronic equipment and storage medium
CN107942306A (en) * 2017-11-22 2018-04-20 广东欧珀移动通信有限公司 Calibration method, device, storage medium and the electronic equipment of proximity sensor

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
A Novel Angular Acceleration Sensor Based on the Electromagnetic Induction Principle and Investigation of Its Calibration Tests;Hao Zhao et al.;《Sensors》;20130812;第13卷(第8期);全文 *
面向行人检测的动态视觉词提取与集成分类方法研究;宁博;《中国博士学位论文全文数据库 信息科技辑》;20120115(第1期);全文 *

Also Published As

Publication number Publication date
CN108802153A (en) 2018-11-13

Similar Documents

Publication Publication Date Title
CN108802153B (en) Calibration method for period fading, electronic device and storage medium
CN106053724A (en) Cloud computing-based gas sensor precision compensating method and device
US20100272346A1 (en) System and method for measuring form and position tolerances of an object
CN104921736B (en) A kind of continuous blood sugar monitoring device for including parameter Estimation function filtration module
CN108614071B (en) Distributed outdoor air quality monitoring precision correction system and parameter updating method
JP2009505062A5 (en)
EP2124019A3 (en) Real time error determination for inertial instruments
US20190005401A1 (en) A method and a system for determining a concentration range for a sample by means of a calibration curve
KR20170088218A (en) Device and Method for Gas Concentration Measurement using Infrared Sensors
CN114491386A (en) Sea wave effective wave height correction method based on sea gas temperature difference
CN110530400B (en) Gyroscope drift correction method and device, photoelectric pod and aircraft
CN113959511B (en) Flow metering method, equipment, medium and product based on jet flow water meter
CN104142299A (en) Pressure compensation method of infrared methane sensor
CN108332784B (en) Distance measurement verification method
CN106124714B (en) For the sulfur dioxide on-line monitoring method and device during wine production
CN111832175B (en) Method and system for measuring sea surface wind speed of scatterometer under rainfall condition
CN112284366B (en) Method for correcting course angle error of polarized light compass based on TG-LSTM neural network
CN109781662A (en) A method of it improves in premixing slurry congee and measures the accuracy of NMMO concentration
CN110455902B (en) Method for rapidly calibrating multiple standard samples in environment detection
CN109740616B (en) Method for realizing automatic reading of double-pointer instrument by using computer vision
CN109990776B (en) Attitude measurement method and device
CN109883896B (en) Aerosol detection method and system
CN107260146B (en) Blood pressure detection method and blood pressure detection equipment
CN112129387A (en) Dynamic weighing system temperature self-adaption method based on big data
CN107215517B (en) A kind of control method of combined metering device

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
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: No.1 Workshop 1401-01, kanghuai Industrial Park, No.60 Ping'an Road, Dafu community, Guanlan street, Longhua District, Shenzhen, Guangdong 518000

Patentee after: Shenzhen Xiaofeng Scientific Construction Engineering Co.,Ltd.

Address before: 518000 room 1303, block B, Qixing Commercial Plaza, intersection of Meilong road and minwang Road, Minzhi street, Longhua New District, Shenzhen City, Guangdong Province

Patentee before: SHENZHEN XIAOFENG BUILDING ENVIRONMENTAL SCIENCE & TECHNOLOGY Co.,Ltd.

CP03 Change of name, title or address