CN110057419A - Compensation method, device, storage medium, processor and the system of flow signal - Google Patents
Compensation method, device, storage medium, processor and the system of flow signal Download PDFInfo
- Publication number
- CN110057419A CN110057419A CN201910299977.0A CN201910299977A CN110057419A CN 110057419 A CN110057419 A CN 110057419A CN 201910299977 A CN201910299977 A CN 201910299977A CN 110057419 A CN110057419 A CN 110057419A
- Authority
- CN
- China
- Prior art keywords
- gas
- flow signal
- compensation
- humidity
- temperature
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01F—MEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
- G01F15/00—Details of, or accessories for, apparatus of groups G01F1/00 - G01F13/00 insofar as such details or appliances are not adapted to particular types of such apparatus
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01F—MEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
- G01F15/00—Details of, or accessories for, apparatus of groups G01F1/00 - G01F13/00 insofar as such details or appliances are not adapted to particular types of such apparatus
- G01F15/02—Compensating or correcting for variations in pressure, density or temperature
- G01F15/04—Compensating or correcting for variations in pressure, density or temperature of gases to be measured
Landscapes
- Physics & Mathematics (AREA)
- Fluid Mechanics (AREA)
- General Physics & Mathematics (AREA)
- Measuring Volume Flow (AREA)
- Details Of Flowmeters (AREA)
Abstract
This application provides a kind of compensation method of flow signal, device, storage medium, processor and systems.Flow signal is the flow signal for the gas that gas flowmeter collects, and gas flowmeter is also used to obtain the temperature and humidity of gas, this method comprises: utilizing flow signal to be compensated, the temperature of gas and the humidity of gas of gas flowmeter acquisition gas;It treats compensating flowrate signal according to the humidity of the temperature of gas and gas to compensate, flow signal after being compensated.In the compensation method, the flow signal that the temperature and humidity of the gas obtained according to detection obtain detection is compensated, so that compensated flow signal is more nearly actual flow signal, provides relatively reliable accurate data for subsequent application.
Description
Technical field
This application involves data processing fields, in particular to a kind of compensation method of flow signal, device, storage
Medium, processor and system.
Background technique
In the development of automotive engineering now, flowmeter is the critical component of automobile electrically-controlled fuel injection system.With vapour
Vehicle discharge standard is continuously improved, and the performance requirement of Vehicular air flowmeter is also continuously improved, and is mainly reflected in high-precision, stability
Etc..
In the prior art, multi-sensor fusion technology is based on Multi-sensor Fusion at the development trend of air flow meter
The data of air flow meter have been processed into one of focus now.
The air flow meter of Multi-sensor Fusion is capable of the signals such as temperature, humidity and the flow of real-time monitoring air inlet gas.
Temperature, the humidity of air inlet gas will affect the flow output signal of air flow meter, so that the flow that detection obtains is inaccurate.
Therefore, a kind of method or apparatus that can accurately obtain gas flow is needed.
Disclosed information above is used only to reinforce the background technique to technology described herein in the background section
Understanding may include therefore certain information in background technique, these information are to those skilled in the art and not formed
The home known prior art.
Summary of the invention
The main purpose of the application be to provide a kind of compensation method of flow signal, device, storage medium, processor and
System, to solve the problems, such as that air flow meter in the prior art can not obtain accurate air flow rate signal.
To achieve the goals above, according to the one aspect of the application, a kind of compensation method of flow signal, institute are provided
The flow signal that flow signal is the gas that gas flowmeter collects is stated, the gas flowmeter is also used to obtain the gas
The temperature and humidity of body, this method comprises: utilizing the temperature of the flow signal to be compensated of gas flowmeter acquisition gas, gas
The humidity of degree and gas;The flow signal to be compensated is mended according to the temperature of the gas and the humidity of the gas
It repays, flow signal after being compensated.
Further, described that the flow signal is mended according to the temperature of the gas and the humidity of the gas
It repays, flow signal after being compensated, comprising: acquire multiple data groups, each data group packet using the gas flowmeter
Include acquisition flow signal, the temperature of the gas and the humidity of the gas of the gas that one acquisition obtains;It obtains each
The corresponding actual flow signal of acquisition flow signal of gas in the data group;Using multiple actual flow signals with
And multiple data groups compensate the flow signal to be compensated, obtain flow signal after the compensation.
Further, described to utilize multiple actual flow signals and multiple data groups to the stream to be compensated
Amount signal compensates, and obtains flow signal after the compensation, comprising: with the flow signal of gas, the temperature of gas and gas
The humidity of body is as independent variable, using flow signal after the compensation as dependent variable, establishes multiple linear regression model, described more
It include multiple unknowm coefficients in first linear regression model (LRM);Calculate each unknowm coefficient;The unknowm coefficient is brought into described
In multiple linear regression model, compensation formula is obtained.
Further, the humidity using the flow signal of gas, the temperature of gas and gas is as independent variable, with institute
Flow signal establishes multiple linear regression model, comprising: as dependent variable with the gas in data group described in multiple groups after stating compensation
Acquisition flow signal XF i, gas temperature XT iAnd the humidity X of gasH iAs argument data, the actual flow is believed
NumberAs dependent variable data, wherein i=1 ..., n, n be the data group number;By the argument data XT i、XH i
And XF iIt is mapped to m-dimensional space, obtains argument data X1 i、X2 i、X3 i..., Xm i, m is the positive integer more than or equal to 4;It builds
Vertical multiple linear regression modelWherein, θ1、θ2、θ3... and
θmFor the unknowm coefficient.
Further, described to calculate each unknowm coefficient, comprising: principle of least square method to be utilized, described in minimum
The quadratic sum of the error of flow signal and the actual flow signal after the compensation that multiple linear regression model is calculated,
It obtainsIt differentiates to each unknowm coefficient items, and
It enablesObtain matrix equation, wherein j=1,2 ... 8;Find out each unknowm coefficient in the matrix equation.
Further, m=8, and X1 i=XF i, X2 i=XT i, X3 i=XH i, X4 i=XF iXT i, X5 i=XF iXH i, X6 i=(XF i)2..., X8 i
=(XH i)2。
Further, after obtaining the compensation after flow signal, the method also includes: it is flowed after calculating the compensation
Measure the difference between signal and actual flow signal;In the case where the difference is less than or equal to error threshold, terminate to mend
It repays;In the case where the difference is greater than the error threshold, the flow signal to be compensated is compensated again, Zhi Daosuo
It states the difference after compensating between flow signal and the actual flow signal and is less than or equal to the error threshold, terminate to mend
It repays.
To achieve the goals above, according to the one aspect of the application, a kind of compensation device of flow signal, institute are provided
The flow signal that flow signal is the gas that gas flowmeter collects is stated, the gas flowmeter is also used to obtain the gas
The temperature and humidity of body, the device include: acquiring unit, for obtaining the flow to be compensated of the gas flowmeter acquisition gas
The humidity of signal, the temperature of gas and gas;Compensating unit, for according to the temperature of the gas and the humidity of the gas
The flow signal to be compensated is compensated, flow signal after being compensated.
Further, the compensating unit includes: the first acquisition module, multiple for obtaining the gas flowmeter acquisition
Data group, each data group include the gas that one acquisition obtains acquisition flow signal, the gas temperature and
The humidity of the gas;Second obtains module, and the acquisition flow signal for obtaining the gas in each data group is corresponding
Actual flow signal;Compensating module is used for according to multiple actual flow signals and multiple data groups to described
Flow signal to be compensated compensates, and obtains flow signal after the compensation.
Further, the compensating module includes: to establish model submodule, for the flow signal of gas, gas
Temperature and the humidity of gas establish multiple linear regression as dependent variable using flow signal after the compensation as independent variable
Model includes multiple unknowm coefficients in the multiple linear regression model;Computational submodule, for according to the multiple described of acquisition
The acquisition flow signal of actual flow signal and the gas in multiple data groups, the temperature of gas and gas it is wet
Degree, finds out each unknowm coefficient;Submodule is determined, for bringing the unknowm coefficient into the multiple linear regression model
In, obtain compensation formula.
According to the application's in another aspect, providing a kind of storage medium, the storage medium includes the program of storage,
In, described program executes the method described in any one.
According to the another aspect of the application, a kind of processor is provided, the processor is for running program, wherein institute
State the method executed described in any one when program operation.
According to the another aspect of the application, a kind of system is provided, comprising: gas flowmeter obtains the temperature of the gas
The flow signal of degree, the humidity of gas and gas;Software, for executing the method described in any one
Using the technical solution of the application, in above-mentioned compensation method, the temperature of gas that is obtained according to detection and wet
It spends the flow signal for obtaining detection to compensate, so that compensated flow signal is more nearly actual flow signal, is
Subsequent application provides relatively reliable accurate data.
Detailed description of the invention
The accompanying drawings constituting a part of this application is used to provide further understanding of the present application, and the application's shows
Meaning property embodiment and its explanation are not constituted an undue limitation on the present application for explaining the application.In the accompanying drawings:
Fig. 1 shows the flow diagram of the embodiment of the compensation method of the flow signal according to the application;
Fig. 2 shows the flow diagrams according to another embodiment of the compensation method of the flow signal of the application;And
Fig. 3 shows the structural schematic diagram of the embodiment of the compensation device of the flow signal according to the application.
Specific embodiment
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase
Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application
Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only
The embodiment of the application a part, instead of all the embodiments.Based on the embodiment in the application, ordinary skill people
Member's every other embodiment obtained without making creative work, all should belong to the model of the application protection
It encloses.
It should be noted that the description and claims of this application and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to embodiments herein described herein.In addition, term " includes " and " tool
Have " and their any deformation, it is intended that cover it is non-exclusive include, for example, containing a series of steps or units
Process, method, system, product or equipment those of are not necessarily limited to be clearly listed step or unit, but may include without clear
Other step or units listing to Chu or intrinsic for these process, methods, product or equipment.
The gas flowmeters such as air flow meter in the prior art can not obtain the problem of accurate air flow rate signal, be
It solves the problems, such as this, according to an embodiment of the present application, provides a kind of compensation method of flow signal.
Fig. 1 is the flow chart according to the compensation method of the flow signal of the embodiment of the present application.As shown in Figure 1, this method packet
Include following steps:
Step S101 utilizes the temperature and gas of the flow signal to be compensated of above-mentioned gas flowmeter acquisition gas, gas
The humidity of body;
Step S102 mends above-mentioned flow signal to be compensated according to the temperature of above-mentioned gas and the humidity of above-mentioned gas
It repays, flow signal after being compensated.
In above-mentioned compensation method, flow signal that the temperature of gas and humidity obtained according to detection obtains detection
It compensates, so that compensated flow signal is more nearly actual flow signal, providing for subsequent application relatively can
By accurate data.
The temperature and humidity of the above-mentioned gas obtained using detection of the application carry out the flow signal that detection obtains
The specific method of compensation can be any feasible method in the prior art, for example, a kind of specific embodiment of the application
In, above-mentioned compensation method includes:
Utilize flow signal to be compensated, the temperature of gas and the humidity of gas of above-mentioned gas flowmeter acquisition gas;
Multiple data groups are acquired using above-mentioned gas flowmeter, each above-mentioned data group includes the gas that one acquisition obtains
Acquisition flow signal, the temperature of above-mentioned gas and the humidity of above-mentioned gas;
Obtain the corresponding actual flow signal of acquisition flow signal of the gas in each above-mentioned data group;
Above-mentioned flow signal to be compensated is mended using multiple above-mentioned actual flow signals and multiple above-mentioned data groups
It repays, obtains flow signal after above-mentioned compensation.
It is above-mentioned using multiple above-mentioned actual flow signals and multiple above-mentioned data groups to above-mentioned flow signal to be compensated
Flow signal after the process compensated can be compensated by machine learning training, specifically, using machine learning training
Method include: to be compensated using model to the flow signal detected, wherein model is using multi-group data to pass through machine
What learning training went out, every group of data in above-mentioned multi-group data include: the flow signal for the gas that detection obtains, gas it is wet
Degree and temperature.
It can certainly be compensated in other way to treat thermal compensation signal, the another kind of the application is specific real
Apply in example, it is above-mentioned using multiple above-mentioned actual flow signals and multiple above-mentioned data groups to above-mentioned flow signal to be compensated into
The process of row compensation includes: using the humidity of the flow signal of gas, the temperature of gas and gas as independent variable, with above-mentioned benefit
Rear flow signal is repaid as dependent variable, establishes multiple linear regression model, include in above-mentioned multiple linear regression model it is multiple not
Know coefficient;Calculate each above-mentioned unknowm coefficient;Above-mentioned unknowm coefficient is brought into above-mentioned multiple linear regression model, is compensated
Formula.
Specifically, the above-mentioned humidity using the flow signal of gas, the temperature of gas and gas is as independent variable, with above-mentioned
Flow signal establishes multiple linear regression model as dependent variable after compensation, comprising: with the gas in the above-mentioned data group of multiple groups
Acquire flow signal XF i, gas temperature XT iAnd the humidity X of gasH iAs argument data, by above-mentioned actual flow signalAs dependent variable data, wherein i=1 ..., n, n is the number of above-mentioned data group, is specially more than or equal to 2 just
Integer;By above-mentioned argument data XT i、XH iAnd XF iIt is mapped to m-dimensional space, obtains argument data X1 i、X2 i、X3 i..., Xm i, m
For the positive integer more than or equal to 4;Establish multiple linear regression model Wherein, θ1、θ2、θ3... and θmFor above-mentioned unknowm coefficient.Argument data is mapped in hyperspace,
More accurately unknowm coefficient can be calculated.
Certainly, in the compensation method of the application, argument data be mapped in hyperspace, directly benefit
With the argument data that collects establish how far linear regression model (LRM), then calculate the unknowm coefficient in the model again.
In actual application process, in order to further ensure obtained unknowm coefficient is more accurate, so that compensation
Flow signal and actual flow signal be more closely, in a kind of embodiment of the application afterwards, above-mentioned calculate it is each above-mentioned unknown
Coefficient, comprising: utilize principle of least square method, flowed after minimizing the above-mentioned compensation that above-mentioned multiple linear regression model is calculated
The quadratic sum for measuring the error of signal and above-mentioned actual flow signal, obtains
Then, it differentiates, and enables to each above-mentioned unknowm coefficient itemsObtain matrix equation, wherein j=1,
2,…8;Find out each above-mentioned unknowm coefficient in above-mentioned matrix equation.
In order to further ensure flow signal is more acurrate after compensation, in a kind of embodiment of the application, m=8, and X1 i=
XF i, X2 i=XT i, X3 i=XH i, X4 i=XF iXT i, X5 i=XF iXH i, X6 i=(XF i)2..., X8 i=(XH i)2.Certainly, in the application
It is not limited to be mapped in 8 dimension spaces in compensation method, can also be other hyperspace, such as 5 dimension spaces.
In actual application process, flow signal may keep off actual flow after the compensation obtained using compensation method
Signal, that is to say, that flow signal is inaccurate after obtained compensation, in order to solve this problem, as shown in Fig. 2, the application
In a kind of embodiment, after obtaining above-mentioned compensation after flow signal, the above method further include:
Step S103 calculates the difference after above-mentioned compensation between flow signal and actual flow signal;
Step S104, judges whether above-mentioned difference is less than or equal to error threshold, is less than or equal in above-mentioned difference
In the case where error threshold, terminate compensation, in the case where above-mentioned difference is greater than above-mentioned error threshold, to above-mentioned flow to be compensated
Signal is compensated again, that is, re-execute the steps S102, flow signal and above-mentioned actual flow signal after above-mentioned compensation
Between difference be less than or equal to above-mentioned error threshold, terminate compensation.
It should be noted that step shown in the flowchart of the accompanying drawings can be in such as a group of computer-executable instructions
It is executed in computer system, although also, logical order is shown in flow charts, and it in some cases, can be with not
The sequence being same as herein executes shown or described step.
The embodiment of the present application also provides a kind of compensation devices of flow signal, it should be noted that the embodiment of the present application
The compensation device of flow signal can be used for executing the compensation method that flow signal is used for provided by the embodiment of the present application.With
Under the compensation device of flow signal provided by the embodiments of the present application is introduced.
Fig. 3 is the schematic diagram according to the compensation device of the flow signal of the embodiment of the present application.Above-mentioned flow signal is gas
The flow signal for the gas that flowmeter collects, above-mentioned gas flowmeter are also used to obtain the temperature and humidity of above-mentioned gas,
As shown in figure 3, the device includes:
Acquiring unit 10, for obtaining the flow signal to be compensated of above-mentioned gas flowmeter acquisition gas, the temperature of gas
And the humidity of gas;
Compensating unit 20, for according to the temperature of above-mentioned gas and the humidity of above-mentioned gas to above-mentioned flow signal to be compensated
It compensates, flow signal after being compensated.
In above-mentioned compensation device, what the temperature and humidity for the gas that compensating unit is obtained according to detection obtained detection
Flow signal compensates, so that compensated flow signal is more nearly actual flow signal, provides for subsequent application
Relatively reliable accurate data.
The temperature and humidity of the above-mentioned gas obtained using detection of the application carry out the flow signal that detection obtains
The specific method of compensation can be any feasible method in the prior art, for example, a kind of specific embodiment of the application
In, above-mentioned compensating unit includes the first acquisition module, the second acquisition module and compensating module, and the first acquisition module is for obtaining
Above-mentioned gas flowmeter acquires multiple data groups, and each above-mentioned data group includes the acquisition flow letter for the gas that one acquisition obtains
Number, the humidity of the temperature of above-mentioned gas and above-mentioned gas;Second acquisition module is used to obtain the gas in each above-mentioned data group
The corresponding actual flow signal of acquisition flow signal of body;Compensating module is used for according to multiple above-mentioned actual flow signals and more
A above-mentioned data group compensates above-mentioned flow signal to be compensated, obtains flow signal after above-mentioned compensation.
Flow signal after above-mentioned compensating module can be compensated by machine learning training, specifically, using machine
The method of learning training includes: to be compensated using model to the flow signal detected, wherein model is to use multi-group data
Trained by machine learning, every group of data in above-mentioned multi-group data include: detection obtain gas flow signal,
The humidity and temperature of gas.
It can certainly be compensated in other way to treat thermal compensation signal, the another kind of the application is specific real
It applies in example, above-mentioned compensating module includes establishing model submodule, computational submodule and determining submodule, establishes model submodule
For using the humidity of the temperature of the flow signal of gas, gas and gas as independent variable, with flow signal after above-mentioned compensation
As dependent variable, multiple linear regression model is established, includes multiple unknowm coefficients in above-mentioned multiple linear regression model;Calculate son
Module is used to be believed according to the acquisition flow of the gas in multiple above-mentioned actual flow signals of acquisition and multiple above-mentioned data groups
Number, the humidity of the temperature of gas and gas, find out each above-mentioned unknowm coefficient;Determine that submodule is used for above-mentioned unknowm coefficient band
Enter in above-mentioned multiple linear regression model, obtains compensation formula.
Specifically, above-mentioned setting up submodule is also used to: with the acquisition flow signal X of the gas in the above-mentioned data group of multiple groupsF i、
The temperature X of gasT iAnd the humidity X of gasH iAs argument data, by above-mentioned actual flow signalAs dependent variable number
According to, wherein i=1 ..., n, n is the number of above-mentioned data group;By above-mentioned argument data XT i、XH iAnd XF iIt is empty to be mapped to m dimension
Between, obtain argument data X1 i、X2 i、X3 i..., Xm i, m is the positive integer more than or equal to 4;Establish multiple linear regression mould
TypeWherein, θ1、θ2、θ3... and θmFor above-mentioned unknown system
Number.Argument data is mapped in hyperspace, more accurately unknowm coefficient can be calculated.
Certainly, in the compensation method of the application, argument data be mapped in hyperspace, directly benefit
With the argument data that collects establish how far linear regression model (LRM), then calculate the unknowm coefficient in the model again.
In actual application process, in order to further ensure obtained unknowm coefficient is more accurate, so that compensation
More closely, in a kind of embodiment of the application, above-mentioned computational submodule utilizes minimum for flow signal and actual flow signal afterwards
Square law principle minimizes flow signal and above-mentioned practical stream after the above-mentioned compensation that above-mentioned multiple linear regression model is calculated
The quadratic sum for measuring the error of signal, obtainsThen, right
Each above-mentioned unknowm coefficient items are differentiated, and are enabledObtain matrix equation, wherein j=1,2 ... 8;Find out above-mentioned matrix
Each above-mentioned unknowm coefficient in equation.
In order to further ensure flow signal is more acurrate after compensation, in a kind of embodiment of the application, m=8, and X1 i=
XF i, X2 i=XT i, X3 i=XH i, X4 i=XF iXT i, X5 i=XF iXH i, X6 i=(XF i)2..., X8 i=(XH i)2.Certainly, in the application
It is not limited to be mapped in 8 dimension spaces in compensation method, can also be other hyperspace, such as 5 dimension spaces.
In order to enable those skilled in the art can clearly understand the technical solution of the application, below with reference to tool
The embodiment of body illustrates the technical solution of the application.
Embodiment
The compensation method is formed by following steps:
Step 1: signal acquisition, utilizes the thermal air flowmeter air inlet of integrated temperature, humidity and flow sensor simultaneously
Temperature, humidity and the flow signal of gas acquire multi-group data;
Step 2: the value of the value and the air mass flow actually provided of comparison thermal air flowmeter flow output signal, grinds
Study carefully the variation with intake air temperature and humidity, the changing rule that the output signal of air flow meter shifts determines the use of more
First linear regression model (LRM) carries out the feasibility of signal offset correction;
Step 3: the initial data of collected temperature, humidity and flow signal is analyzed, in this, as argument data
(XT i,XH i,XF i), i=1 ..., n (acquisition n group data, n is more than or equal to equation coefficient number), using practical charge flow rate as because
Variable YF i, by argument data (XT i,XH i,XF i) it is mapped to higher dimensional space, form new argument data collection X;
Step 4: carrying out multiple linear regression modeling, multiple linear regression on the basis of the data set that third step is established
Model are as follows:
Step 5: minimizing the quadratic sum of error using principle of least square method:
Step 6: differentiating to undetermined coefficient θ items, enableMatrix equation is obtained, is found out using matrix operation more
Coefficient vector θ=(θ of first equation of linear regression0, θ1, θ2, θ3..., θm);
Step 7: the coefficient vector θ that the 6th step is obtained substitutes into multiple linear regression equations:
The predicted value Y obtained using multiple linear regression equationsi, with practical charge flow rate YF iIt compares, carries out model
Verification, meets error requirements, compensation terminates.
Further, the above-mentioned hot type air capacity flowmeter of the first step is integrated with temperature, humidity and flow sensor simultaneously,
Other than it can acquire air flow rate signal, the signals such as temperature, the humidity of air inlet gas can also be acquired simultaneously.
Further, above-mentioned by argument data (X in third stepT i,XH i,XF i) it is mapped to higher dimensional space, i.e. X1 i=
XF i, X2 i=XT i, X3 i=XH i, X4 i=XF iXT i, X5 i=XF iXH i, X6 i=(XF i)2..., X8 i=(XH i)2Form new independent variable number
According to collection X.Change the rule to shift with temperature, humidity according to the output signal of thermal air flowmeter, it is only necessary to by former number
According to and be mapped to 8 dimension spaces;
Further, the above-mentioned multiple linear regression model of the 4th step In argument data collection, be in third step by former data
Collect (XT i,XH i,XF i) it is mapped to the new argument data collection X=(X of higher dimensional space formation1 i,X2 i,X3 i,…,X8 i), in model
θ0, θ1, θ2, θ3..., θmFor undetermined coefficient, m=8.
Further, the quadratic sum of the above-mentioned minimum error of the 5th step, which refers to, minimizes the pre- of multiple linear regression equations
Measured value YiWith practical charge flow value YF iThe quadratic sum of error.
Further, the 6th step is above-mentioned to every undetermined coefficient θjIt differentiates, enablesDerivation obtains
It is as follows to matrix equation:
Matrix operation is completed using software programming, finds out coefficient vector θ=(θ of multiple linear regression equations0, θ1, θ2,
θ3..., θm)。
Obtained multiple linear regression equations are combined with the signal processing of thermal air flowmeter, by multiple linear
The thermal air flowmeter of regression model correction, can be in real time according to the original of the temperature of air flow meter, humidity and flow signal
Beginning data correct the output signal of air flow meter.
The compensation device of above-mentioned flow signal includes processor and memory, and above-mentioned acquiring unit and compensating unit etc. are made
In memory for program unit storage, above procedure unit stored in memory is executed by processor to realize accordingly
Function.
Include kernel in processor, is gone in memory to transfer corresponding program unit by kernel.Kernel can be set one
Or more, collected flow signal compensated by adjusting kernel parameter.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/
Or the forms such as Nonvolatile memory, if read-only memory (ROM) or flash memory (flash RAM), memory include that at least one is deposited
Store up chip.
It includes gas flowmeter and software, gas flow that the typical embodiment of another kind of the application, which provides a kind of system,
Meter obtains the flow signal of the temperature of above-mentioned gas, the humidity of gas and gas;Software is for executing any one above-mentioned side
Method.
Due to including the software for executing above-mentioned any compensation method in the system, it can accurately obtain
The flow signal of gas.
It should be noted that the flow signal of the above-mentioned gas of the application can be digital signal, or simulation letter
Number, i.e. the compensation method of the application can compensate the flow signal of analog signal, can also be to the flow of digital signal
Signal compensates.
The embodiment of the invention provides a kind of storage mediums, are stored thereon with program, real when which is executed by processor
The compensation method of existing above-mentioned flow signal.
The embodiment of the invention provides a kind of processor, above-mentioned processor is for running program, wherein above procedure operation
The compensation method of the above-mentioned flow signal of Shi Zhihang.
The embodiment of the invention provides a kind of equipment, equipment include processor, memory and storage on a memory and can
The program run on a processor, processor realize at least following steps when executing program:
Step S101 utilizes the temperature and gas of the flow signal to be compensated of above-mentioned gas flowmeter acquisition gas, gas
The humidity of body;
Step S102 mends above-mentioned flow signal to be compensated according to the temperature of above-mentioned gas and the humidity of above-mentioned gas
It repays, flow signal after being compensated.
Equipment herein can be server, PC, PAD, mobile phone etc..
Present invention also provides a kind of computer program products, when executing on data processing equipment, are adapted for carrying out just
Beginningization has the program of at least following method and step:
Step S101 utilizes the temperature and gas of the flow signal to be compensated of above-mentioned gas flowmeter acquisition gas, gas
The humidity of body;
Step S102 mends above-mentioned flow signal to be compensated according to the temperature of above-mentioned gas and the humidity of above-mentioned gas
It repays, flow signal after being compensated.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/
Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable Jie
The example of matter.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including element
There is also other identical elements in process, method, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can provide as method, system or computer program product.
Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application
Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code
The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Formula.
It can be seen from the above description that the application the above embodiments realize following technical effect:
1), the flow signal that the above-mentioned temperature of gas obtained using detection of the application and humidity obtain detection into
The specific method of row compensation can be any feasible method in the prior art, implement for example, one kind of the application is specific
In example, above-mentioned compensation method includes:
2), in the compensation device of the application, the temperature and humidity for the gas that compensating unit is obtained according to detection are to detection
Obtained flow signal compensates, so that compensated flow signal is more nearly actual flow signal, answers to be subsequent
With providing relatively reliable accurate data.
The foregoing is merely preferred embodiment of the present application, are not intended to limit this application, for the skill of this field
For art personnel, various changes and changes are possible in this application.Within the spirit and principles of this application, made any to repair
Change, equivalent replacement, improvement etc., should be included within the scope of protection of this application.
Claims (13)
1. a kind of compensation method of flow signal, the flow signal is the flow letter for the gas that gas flowmeter collects
Number, the gas flowmeter is also used to obtain the temperature and humidity of the gas characterized by comprising
Utilize flow signal to be compensated, the temperature of gas and the humidity of gas of gas flowmeter acquisition gas;
The flow signal to be compensated is compensated according to the temperature of the gas and the humidity of the gas, after obtaining compensation
Flow signal.
2. the method according to claim 1, wherein the temperature according to the gas and the gas is wet
Degree compensates the flow signal, flow signal after being compensated, comprising:
Multiple data groups are acquired using the gas flowmeter, each data group includes adopting for the gas that one acquisition obtains
Collect flow signal, the temperature of the gas and the humidity of the gas;
Obtain the corresponding actual flow signal of acquisition flow signal of the gas in each data group;
The flow signal to be compensated is compensated using multiple actual flow signals and multiple data groups, is obtained
Flow signal after to the compensation.
3. according to the method described in claim 2, it is characterized in that, described using multiple actual flow signals and multiple
The data group compensates the flow signal to be compensated, obtains flow signal after the compensation, comprising:
Using the humidity of the flow signal of gas, the temperature of gas and gas as independent variable, with flow signal after the compensation
As dependent variable, multiple linear regression model is established, includes multiple unknowm coefficients in the multiple linear regression model;
Calculate each unknowm coefficient;
The unknowm coefficient is brought into the multiple linear regression model, compensation formula is obtained.
4. according to the method described in claim 3, it is characterized in that, it is described with the flow signal of gas, gas temperature and
The humidity of gas establishes multiple linear regression model using flow signal after the compensation as dependent variable as independent variable, packet
It includes:
With the acquisition flow signal X of the gas in data group described in multiple groupsF i, gas temperature XT iAnd the humidity X of gasH iMake
For argument data, by the actual flow signalAs dependent variable data, wherein i=1 ..., n, n be the data group
Number;
By the argument data XT i、XH iAnd XF iIt is mapped to m-dimensional space, obtains argument data X1 i、X2 i、X3 i..., Xm i, m is
Positive integer more than or equal to 4;
Establish multiple linear regression modelWherein, θ1、θ2、
θ3... and θmFor the unknowm coefficient.
5. according to the method described in claim 4, it is characterized in that, described calculate each unknowm coefficient, comprising:
Using principle of least square method, flow signal after the compensation that the multiple linear regression model is calculated is minimized
With the quadratic sum of the error of the actual flow signal, obtain
It differentiates, and enables to each unknowm coefficient itemsObtain matrix equation, wherein j=1,2 ... 8;
Find out each unknowm coefficient in the matrix equation.
6. the method according to claim 1, wherein m=8, and X1 i=XF i, X2 i=XT i, X3 i=XH i, X4 i=
XF iXT i, X5 i=XF iXH i, X6 i=(XF i)2..., X8 i=(XH i)2。
7. the method according to claim 1, wherein after obtaining the compensation after flow signal, the side
Method further include:
Calculate the difference after the compensation between flow signal and actual flow signal;
Judge whether the difference is less than or equal to error threshold,
In the case where the difference is less than or equal to error threshold, terminate compensation;
In the case where the difference is greater than the error threshold, the flow signal to be compensated is compensated again, until
Difference after the compensation between flow signal and the actual flow signal is less than or equal to the error threshold, terminates to mend
It repays.
8. a kind of compensation device of flow signal, the flow signal is the flow letter for the gas that gas flowmeter collects
Number, the gas flowmeter is also used to obtain the temperature and humidity of the gas characterized by comprising
Acquiring unit, for obtaining the flow signal to be compensated of the gas flowmeter acquisition gas, the temperature and gas of gas
The humidity of body;
Compensating unit, for being mended according to the temperature of the gas and the humidity of the gas to the flow signal to be compensated
It repays, flow signal after being compensated.
9. device according to claim 8, which is characterized in that the compensating unit includes:
First obtains module, acquires multiple data groups for obtaining the gas flowmeter, each data group includes primary
Acquisition flow signal, the temperature of the gas and the humidity of the gas of the gas collected;
Second obtains module, the corresponding actual flow letter of the acquisition flow signal for obtaining the gas in each data group
Number;
Compensating module, for being believed according to multiple actual flow signals and multiple data groups the flow to be compensated
It number compensates, obtains flow signal after the compensation.
10. device according to claim 9, which is characterized in that the compensating module includes:
Model submodule is established, for using the humidity of the temperature of the flow signal of gas, gas and gas as independent variable, with
Flow signal establishes multiple linear regression model, includes in the multiple linear regression model as dependent variable after the compensation
Multiple unknowm coefficients;
Computational submodule, for according to the gas in multiple actual flow signals of acquisition and multiple data groups
Flow signal, the temperature of gas and the humidity of gas are acquired, each unknowm coefficient is found out;
It determines submodule, for bringing the unknowm coefficient in the multiple linear regression model into, obtains compensation formula.
11. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein described program right of execution
Benefit require any one of 1 to 7 described in method.
12. a kind of processor, which is characterized in that the processor is for running program, wherein right of execution when described program is run
Benefit require any one of 1 to 7 described in method.
13. a kind of system characterized by comprising
Gas flowmeter obtains the flow signal of the temperature of the gas, the humidity of gas and gas;
Software, for method described in any one of perform claim requirement 1 to 7.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2018115840838 | 2018-12-24 | ||
CN201811584083.8A CN109696216A (en) | 2018-12-24 | 2018-12-24 | Compensation method, device, storage medium, processor and the system of flow signal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110057419A true CN110057419A (en) | 2019-07-26 |
CN110057419B CN110057419B (en) | 2020-10-27 |
Family
ID=66232794
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811584083.8A Withdrawn CN109696216A (en) | 2018-12-24 | 2018-12-24 | Compensation method, device, storage medium, processor and the system of flow signal |
CN201910299977.0A Active CN110057419B (en) | 2018-12-24 | 2019-04-15 | Flow signal compensation method, device, storage medium, processor and system |
Family Applications Before (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811584083.8A Withdrawn CN109696216A (en) | 2018-12-24 | 2018-12-24 | Compensation method, device, storage medium, processor and the system of flow signal |
Country Status (1)
Country | Link |
---|---|
CN (2) | CN109696216A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117824772A (en) * | 2024-03-05 | 2024-04-05 | 临沂市计量检定所 | Natural gas flow metering self-adaptive compensation method, system, terminal and medium |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110571171B (en) * | 2019-09-03 | 2022-05-27 | 北京北方华创微电子装备有限公司 | Calibration method and calibration system of gas flow controller and gas inlet device |
CN111998235B (en) * | 2020-08-12 | 2022-08-30 | 深圳市祥为测控技术有限公司 | Temperature compensation method and device for leakage positioning and computer storage medium |
CN114254248B (en) * | 2022-02-28 | 2022-05-10 | 南京大学 | Testing method and device suitable for fuel cell membrane electrode and computer readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002213795A (en) * | 2001-01-17 | 2002-07-31 | Toshiba Corp | Air conditioner controller |
CN102084226A (en) * | 2008-07-01 | 2011-06-01 | 霍尼韦尔国际公司 | Multi-gas flow sensor with gas specific calibration capability |
CN106127359A (en) * | 2016-08-30 | 2016-11-16 | 北京协同创新智能电网技术有限公司 | A kind of variable frequency pump rate of discharge method for early warning based on local weighted linear regression model (LRM) |
CN106404126A (en) * | 2016-08-31 | 2017-02-15 | 赵雪至 | Compensation method and metering device for flow measurement of multi-component gas |
CN108168635A (en) * | 2018-01-31 | 2018-06-15 | 长江水利委员会水文局 | Discharge of river realtime on-line monitoring method and device |
-
2018
- 2018-12-24 CN CN201811584083.8A patent/CN109696216A/en not_active Withdrawn
-
2019
- 2019-04-15 CN CN201910299977.0A patent/CN110057419B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002213795A (en) * | 2001-01-17 | 2002-07-31 | Toshiba Corp | Air conditioner controller |
CN102084226A (en) * | 2008-07-01 | 2011-06-01 | 霍尼韦尔国际公司 | Multi-gas flow sensor with gas specific calibration capability |
CN106127359A (en) * | 2016-08-30 | 2016-11-16 | 北京协同创新智能电网技术有限公司 | A kind of variable frequency pump rate of discharge method for early warning based on local weighted linear regression model (LRM) |
CN106404126A (en) * | 2016-08-31 | 2017-02-15 | 赵雪至 | Compensation method and metering device for flow measurement of multi-component gas |
CN108168635A (en) * | 2018-01-31 | 2018-06-15 | 长江水利委员会水文局 | Discharge of river realtime on-line monitoring method and device |
Non-Patent Citations (3)
Title |
---|
L.FANG等: "Impact of Temperature and Humidity on the Perception of Indoor Air Quality", 《INDOOR AIR》 * |
MOHADESEH SHARIFI等: "Towards an online milk concentration sensor using ERT: Correlation of conductivity, temperature and composition", 《JOURNAL OF FOOD ENGINEERING》 * |
梁春裕,赵家贵,赵小燕: "《企业计量检测技术与解答》", 31 October 2006, 中国计量出版社 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117824772A (en) * | 2024-03-05 | 2024-04-05 | 临沂市计量检定所 | Natural gas flow metering self-adaptive compensation method, system, terminal and medium |
CN117824772B (en) * | 2024-03-05 | 2024-05-14 | 临沂市计量检定所 | Natural gas flow metering self-adaptive compensation method, system, terminal and medium |
Also Published As
Publication number | Publication date |
---|---|
CN109696216A (en) | 2019-04-30 |
CN110057419B (en) | 2020-10-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110057419A (en) | Compensation method, device, storage medium, processor and the system of flow signal | |
Marchetti et al. | A dual modifier-adaptation approach for real-time optimization | |
CN103674062B (en) | Based on the method for Allan variance and arma modeling analysis raising gyroscope survey precision | |
CN111143989B (en) | Frequency adjustment amount calculation method, module, system, storage medium, and device | |
CN103324798B (en) | Based on the stochastic response of interval response surface model | |
CN102393866B (en) | Transfer function determination method of system object parameter model and device | |
CN109583921A (en) | Advertising budget acquisition methods, device, storage medium and processor | |
CN108829604A (en) | Method for generating test case and device based on vehicle control device | |
CN108563895A (en) | A kind of interval model modification method considering correlation | |
CN112230146A (en) | Method, system and equipment for predicting battery charging remaining time | |
EP4276554A2 (en) | Method and apparatus for configuring processing parameters of production equipment, and computer-readable medium | |
CN107316296A (en) | A kind of method for detecting change of remote sensing image and device based on logarithmic transformation | |
Shu et al. | Manufacturing process performance evaluation for fuzzy data based on loss-based capability index | |
CN113935402A (en) | Training method and device for time difference positioning model and electronic equipment | |
CN108761161A (en) | A kind of power meter temperature influences error compensating method and device | |
CN109359346A (en) | A kind of heat load prediction method, apparatus, readable medium and electronic equipment | |
CN114440866B (en) | Sensor data calibration method and calibration system | |
CN114861984A (en) | For predicting high CO content 2 Method and processor for condensing volume of oil ring of gas reservoir | |
CN111210877A (en) | Method and device for deducing physical property parameters | |
CN107766691B (en) | Method for decorrelating spherical harmonic coefficients of gravity field of GRACE satellite and electronic equipment | |
CN110221981A (en) | The test method and device of embedded software | |
CN110659170A (en) | Vehicle-mounted T-BOX test system | |
CN110705689A (en) | Continuous learning method and device capable of distinguishing features | |
CN110163991A (en) | Vehicle host speed and slave speed proofreading method and device based on Internet of Things | |
Luspay et al. | Freeway ramp metering: an LPV set theoretical analysis |
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 |