CN110057419B - Flow signal compensation method, device, storage medium, processor and system - Google Patents

Flow signal compensation method, device, storage medium, processor and system Download PDF

Info

Publication number
CN110057419B
CN110057419B CN201910299977.0A CN201910299977A CN110057419B CN 110057419 B CN110057419 B CN 110057419B CN 201910299977 A CN201910299977 A CN 201910299977A CN 110057419 B CN110057419 B CN 110057419B
Authority
CN
China
Prior art keywords
gas
flow signal
compensated
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.)
Active
Application number
CN201910299977.0A
Other languages
Chinese (zh)
Other versions
CN110057419A (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.)
Institute of Microelectronics of CAS
Original Assignee
Institute of Microelectronics of CAS
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 Institute of Microelectronics of CAS filed Critical Institute of Microelectronics of CAS
Publication of CN110057419A publication Critical patent/CN110057419A/en
Application granted granted Critical
Publication of CN110057419B publication Critical patent/CN110057419B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01FMEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
    • G01F15/00Details 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
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01FMEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
    • G01F15/00Details 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/02Compensating or correcting for variations in pressure, density or temperature
    • G01F15/04Compensating 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

The application provides a method, a device, a storage medium, a processor and a system for compensating a flow signal. The flow signal is a flow signal of the gas acquired by a gas flowmeter, and the gas flowmeter is further used for acquiring the temperature and the humidity of the gas, and the method comprises the following steps: collecting a flow signal to be compensated of the gas, the temperature of the gas and the humidity of the gas by using a gas flowmeter; and compensating the flow signal to be compensated according to the temperature and the humidity of the gas to obtain the compensated flow signal. According to the compensation method, the detected flow signal is compensated according to the temperature and the humidity of the detected gas, so that the compensated flow signal is closer to an actual flow signal, and relatively reliable and accurate data are provided for subsequent application.

Description

Flow signal compensation method, device, storage medium, processor and system
Technical Field
The present application relates to the field of data processing, and in particular, to a method, an apparatus, a storage medium, a processor, and a system for compensating a flow signal.
Background
In the development of automobile technology nowadays, a flow meter is a key component of an automobile electronic control fuel injection system. With the continuous improvement of the automobile emission standard, the performance requirement of the automobile air flow meter is also continuously improved, and the automobile air flow meter is mainly embodied in the aspects of high precision, stability and the like.
In the prior art, a multi-sensor fusion technology becomes a development trend of the air flow meter, and data processing based on the multi-sensor fusion air flow meter becomes one of the focuses of the current technology.
The multi-sensor fused air flow meter can monitor signals such as temperature, humidity and flow of intake air in real time. The temperature and humidity of the intake air affect the flow output signal of the air flow meter, so that the detected flow is not accurate.
Therefore, a method or apparatus for accurately acquiring the gas flow is needed.
The above information disclosed in this background section is only for enhancement of understanding of the background of the technology described herein and, therefore, certain information may be included in the background that does not form the prior art that is already known in this country to a person of ordinary skill in the art.
Disclosure of Invention
The present application mainly aims to provide a method, an apparatus, a storage medium, a processor and a system for compensating a flow signal, so as to solve the problem that an air flow meter in the prior art cannot acquire an accurate air flow signal.
In order to achieve the above object, according to one aspect of the present application, there is provided a method for compensating a flow signal of a gas collected by a gas flowmeter, the gas flowmeter being further configured to obtain a temperature and a humidity of the gas, the method including: collecting a flow signal to be compensated of the gas, the temperature of the gas and the humidity of the gas by using the gas flowmeter; and compensating the flow signal to be compensated according to the temperature of the gas and the humidity of the gas to obtain a compensated flow signal.
Further, the compensating the flow signal according to the temperature of the gas and the humidity of the gas to obtain a compensated flow signal includes: acquiring a plurality of data sets by using the gas flowmeter, wherein each data set comprises an acquired flow signal of the gas, the temperature of the gas and the humidity of the gas, which are acquired at one time; acquiring an actual flow signal corresponding to the acquired flow signal of the gas in each data group; and compensating the flow signal to be compensated by utilizing the actual flow signals and the data sets to obtain the compensated flow signal.
Further, the compensating the traffic signal to be compensated by using the plurality of actual traffic signals and the plurality of data groups to obtain the compensated traffic signal includes: establishing a multiple linear regression model by taking the flow signal of the gas, the temperature of the gas and the humidity of the gas as independent variables and the compensated flow signal as dependent variables, wherein the multiple linear regression model comprises a plurality of unknown coefficients; calculating each unknown coefficient; and substituting the unknown coefficient into the multiple linear regression model to obtain a compensation formula.
Further, the establishing a multiple linear regression model by using the flow signal of the gas, the temperature of the gas, and the humidity of the gas as independent variables and the compensated flow signal as dependent variables includes: with a plurality of sets of acquired flow signals X of the gas in the data setF iTemperature X of gasT iAnd the humidity X of the gasH iAs independent variable data, the actual flow signal is used
Figure BDA0002027915370000021
The dependent variable data are i-1, … and n, and n is the number of the data groups; the independent variable data XT i、XH iAnd XF iMapping to m-dimensional space to obtain independent variable data X1 i、X2 i、X3 i、…,Xm iM is a positive integer greater than or equal to 4; establishing a multiple linear regression model
Figure BDA0002027915370000022
Wherein, theta1、θ2、θ3…, and θmIs the unknown coefficient.
Further, the calculating each of the unknown coefficients includes: minimizing the square sum of the error of the compensated flow signal and the actual flow signal calculated by the multiple linear regression model by using the principle of least square method to obtain
Figure BDA0002027915370000023
Taking the derivative of each unknown coefficient and order
Figure BDA0002027915370000024
Obtaining a matrix equation, wherein j is 1, 2, … 8; and solving each unknown coefficient in the matrix equation.
Further, m is 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 compensated flow signal, the method further includes: calculating a difference between the compensated flow signal and an actual flow signal; ending the compensation when the difference is less than or equal to an error threshold; and under the condition that the difference value is larger than the error threshold value, re-compensating the flow signal to be compensated until the difference value between the compensated flow signal and the actual flow signal is smaller than or equal to the error threshold value, and finishing the compensation.
In order to achieve the above object, according to one aspect of the present application, there is provided a compensation apparatus for a flow signal of a gas collected by a gas flowmeter, the gas flowmeter being further configured to obtain a temperature and a humidity of the gas, the apparatus including: the acquiring unit is used for acquiring a flow signal to be compensated of the gas acquired by the gas flowmeter, the temperature of the gas and the humidity of the gas; and the compensation unit is used for compensating the flow signal to be compensated according to the temperature of the gas and the humidity of the gas to obtain a compensated flow signal.
Further, the compensation unit includes: the first acquisition module is used for acquiring a plurality of data sets acquired by the gas flowmeter, wherein each data set comprises an acquired flow signal of the gas acquired at one time, the temperature of the gas and the humidity of the gas; the second acquisition module is used for acquiring actual flow signals corresponding to the acquired flow signals of the gas in each data group; and the compensation module is used for compensating the flow signal to be compensated according to the actual flow signals and the data groups to obtain the compensated flow signal.
Further, the compensation module includes: the modeling submodule is used for building a multiple linear regression model by taking the flow signal of the gas, the temperature of the gas and the humidity of the gas as independent variables and taking the compensated flow signal as a dependent variable, and the multiple linear regression model comprises a plurality of unknown coefficients; the calculation submodule is used for solving each unknown coefficient according to the acquired flow signals of the plurality of actual flow signals and the gas in the plurality of data groups, the temperature of the gas and the humidity of the gas; and the determining submodule is used for substituting the unknown coefficient into the multiple linear regression model to obtain a compensation formula.
According to yet another aspect of the present application, there is provided a storage medium comprising a stored program, wherein the program performs any one of the methods.
According to yet another aspect of the application, a processor for running a program is provided, wherein the program when running performs any of the methods.
According to another aspect of the present application, there is provided a system comprising: the gas flowmeter is used for acquiring the temperature of the gas, the humidity of the gas and a flow signal of the gas; software for carrying out any of the methods
According to the technical scheme, in the compensation method, the detected flow signal is compensated according to the temperature and the humidity of the detected gas, so that the compensated flow signal is closer to an actual flow signal, and relatively reliable and accurate data are provided for subsequent application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the application and, together with the description, serve to explain the application and are not intended to limit the application. In the drawings:
FIG. 1 shows a schematic flow diagram of an embodiment of a method of compensating a flow signal according to the present application;
FIG. 2 shows a schematic flow diagram of another embodiment of a method of compensating a flow signal according to the present application; and
fig. 3 shows a schematic structural diagram of an embodiment of a flow signal compensation device according to the present application.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In order to solve the problem that a gas flowmeter such as an air flowmeter in the prior art cannot acquire an accurate air flow signal, according to an embodiment of the present application, a method for compensating a flow signal is provided.
Fig. 1 is a flowchart of a method of compensating a flow signal according to an embodiment of the present application. As shown in fig. 1, the method comprises the steps of:
step S101, collecting a flow signal to be compensated of the gas, the temperature of the gas and the humidity of the gas by using the gas flowmeter;
and S102, compensating the flow signal to be compensated according to the temperature of the gas and the humidity of the gas to obtain a compensated flow signal.
In the compensation method, the detected flow signal is compensated according to the detected temperature and humidity of the gas, so that the compensated flow signal is closer to the actual flow signal, and relatively reliable and accurate data are provided for subsequent application.
The specific method for compensating the detected flow signal by using the detected temperature and humidity of the gas may be any feasible method in the prior art, for example, in a specific embodiment of the present application, the compensation method includes:
collecting a flow signal to be compensated of the gas, the temperature of the gas and the humidity of the gas by using the gas flowmeter;
acquiring a plurality of data sets by using the gas flowmeter, wherein each data set comprises an acquired flow signal of the gas acquired at one time, the temperature of the gas and the humidity of the gas;
acquiring an actual flow signal corresponding to the acquired flow signal of the gas in each data group;
and compensating the flow signal to be compensated by utilizing a plurality of actual flow signals and a plurality of data groups to obtain the compensated flow signal.
The process of compensating the flow rate signal to be compensated by using the plurality of actual flow rate signals and the plurality of data sets may obtain a compensated flow rate signal through machine learning training, and specifically, the method using machine learning training includes: compensating the detected flow signal by using a model, wherein the model is trained by using a plurality of groups of data through machine learning, and each group of data in the plurality of groups of data comprises: and detecting the flow signal of the obtained gas, the humidity and the temperature of the gas.
Naturally, the compensation may also be performed on the signal to be compensated in other manners, and in another specific embodiment of the present application, the process of compensating the signal to be compensated by using a plurality of actual flow rate signals and a plurality of data sets includes: establishing a multiple linear regression model by taking the flow signal of the gas, the temperature of the gas and the humidity of the gas as independent variables and taking the compensated flow signal as a dependent variable, wherein the multiple linear regression model comprises a plurality of unknown coefficients; calculating each of the unknown coefficients; and substituting the unknown coefficients into the multiple linear regression model to obtain a compensation formula.
Specifically, the establishing a multiple linear regression model by using the flow rate signal of the gas, the temperature of the gas, and the humidity of the gas as independent variables and using the compensated flow rate signal as dependent variables includes: using the collected flow signals X of the gases in the data setsF iTemperature X of gasT iAnd wetting of gasesDegree XH iUsing the actual flow rate signal as independent variable data
Figure BDA0002027915370000051
The dependent variable data is i-1, … and n, wherein n is the number of the data groups, and is a positive integer greater than or equal to 2; the above independent variable data XT i、XH iAnd XF iMapping to m-dimensional space to obtain independent variable data X1 i、X2 i、X3 i、…,Xm iM is a positive integer greater than or equal to 4; establishing a multiple linear regression model
Figure BDA0002027915370000052
Figure BDA0002027915370000053
Wherein, theta1、θ2、θ3…, and θmThe above unknown coefficients. By mapping the independent variable data into a multidimensional space, more accurate unknown coefficients can be calculated.
Of course, in the compensation method of the present application, the independent variable data may also be mapped into a multidimensional space, a multiple-distance linear regression model is established directly using the acquired independent variable data, and then the unknown coefficients in the model are calculated.
In an actual application process, in order to further ensure that the obtained unknown coefficients are more accurate, so that the compensated flow signal is closer to the actual flow signal, in an embodiment of the present application, the calculating the unknown coefficients includes: minimizing the square sum of the error between the compensated flow signal and the actual flow signal calculated by the multiple linear regression model by using the principle of least square method to obtain
Figure BDA0002027915370000054
Then, for each of the above-mentioned compoundsKnowing the derivative of each term of the coefficient, and
Figure BDA0002027915370000055
obtaining a matrix equation, wherein j is 1, 2, … 8; and solving each unknown coefficient in the matrix equation.
To further ensure that the compensated flow signal is more accurate, in one embodiment of the present application, m is 8, and X is1 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. Of course, the compensation method in the present application is not limited to mapping into an 8-dimensional space, and may be other multi-dimensional spaces, such as a 5-dimensional space.
In an actual application process, the compensated flow signal obtained by the compensation method may not be close to the actual flow signal, that is, the obtained compensated flow signal is not accurate, and in order to solve this problem, as shown in fig. 2, in an embodiment of the present application, after obtaining the compensated flow signal, the method further includes:
step S103, calculating the difference between the compensated flow signal and the actual flow signal;
step S104, determining whether the difference is smaller than or equal to an error threshold, ending the compensation when the difference is smaller than or equal to the error threshold, and re-compensating the flow signal to be compensated when the difference is greater than the error threshold, that is, re-executing step S102 until the difference between the compensated flow signal and the actual flow signal is smaller than or equal to the error threshold, and ending the compensation.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
The embodiment of the present application further provides a compensation apparatus for a flow signal, and it should be noted that the compensation apparatus for a flow signal of the embodiment of the present application may be used to execute the compensation method for a flow signal provided in the embodiment of the present application. The following describes a flow signal compensation device provided in an embodiment of the present application.
Fig. 3 is a schematic diagram of a flow signal compensation device according to an embodiment of the present application. The flow signal is a flow signal of the gas collected by a gas flowmeter, the gas flowmeter is further configured to obtain a temperature and a humidity of the gas, as shown in fig. 3, the apparatus includes:
the acquiring unit 10 is used for acquiring a flow signal to be compensated of the gas collected by the gas flowmeter, the temperature of the gas and the humidity of the gas;
and the compensation unit 20 is configured to compensate the flow signal to be compensated according to the temperature of the gas and the humidity of the gas, so as to obtain a compensated flow signal.
In the compensation device, the compensation unit compensates the detected flow signal according to the detected temperature and humidity of the gas, so that the compensated flow signal is closer to the actual flow signal, and relatively reliable and accurate data are provided for subsequent application.
For example, in a specific embodiment of the present application, the compensation unit includes a first obtaining module, a second obtaining module, and a compensation module, the first obtaining module is configured to obtain a plurality of data sets collected by the gas flowmeter, each data set includes a collected flow signal of the gas obtained by one-time collection, a temperature of the gas, and a humidity of the gas; the second acquisition module is used for acquiring an actual flow signal corresponding to the acquired flow signal of the gas in each data group; the compensation module is used for compensating the flow signal to be compensated according to the actual flow signals and the data sets to obtain the compensated flow signal.
The compensation module can obtain the compensated flow signal through machine learning training, and specifically, the method adopting the machine learning training comprises the following steps: compensating the detected flow signal by using a model, wherein the model is trained by using a plurality of groups of data through machine learning, and each group of data in the plurality of groups of data comprises: and detecting the flow signal of the obtained gas, the humidity and the temperature of the gas.
Certainly, the compensation module may also compensate the signal to be compensated in other manners, in another specific embodiment of the present application, the compensation module includes a model building submodule, a calculation submodule, and a determination submodule, the model building submodule is configured to build a multiple linear regression model by using the flow signal of the gas, the temperature of the gas, and the humidity of the gas as independent variables and using the compensated flow signal as a dependent variable, where the multiple linear regression model includes a plurality of unknown coefficients; the calculation submodule is used for solving each unknown coefficient according to the acquired flow signals of the plurality of actual flow signals and the gas in the plurality of data sets, the temperature of the gas and the humidity of the gas; and the determining submodule is used for substituting the unknown coefficient into the multiple linear regression model to obtain a compensation formula.
Specifically, the establishing submodule is further configured to: using the collected flow signals X of the gases in the data setsF iTemperature X of gasT iAnd the humidity X of the gasH iUsing the actual flow rate signal as independent variable data
Figure BDA0002027915370000061
The dependent variable data is i-1, … and n, wherein n is the number of the data groups; the above independent variable data XT i、XH iAnd XF iMapping to m-dimensional space to obtain independent variable data X1 i、X2 i、X3 i、…,Xm iM is a positive integer greater than or equal to 4; establishing a multiple linear regression model
Figure BDA0002027915370000062
Wherein, theta1、θ2、θ3…, and θmThe above unknown coefficients. By mapping the independent variable data into a multidimensional space, more accurate unknown coefficients can be calculated.
Of course, in the compensation method of the present application, the independent variable data may also be mapped into a multidimensional space, a multiple-distance linear regression model is established directly using the acquired independent variable data, and then the unknown coefficients in the model are calculated.
In an embodiment of the present application, in order to further ensure that the obtained unknown coefficient is more accurate, so that the compensated flow signal is closer to the actual flow signal, the calculating submodule minimizes a sum of squares of errors between the compensated flow signal and the actual flow signal calculated by the multiple linear regression model by using a least square method principle to obtain a sum of squares of the errors between the compensated flow signal and the actual flow signal
Figure BDA0002027915370000071
Then, the derivative is calculated for each unknown coefficient and order
Figure BDA0002027915370000072
Obtaining a matrix equation, wherein j is 1, 2, … 8; and solving each unknown coefficient in the matrix equation.
To further ensure that the compensated flow signal is more accurate, in one embodiment of the present application, m is 8, and X is1 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. Of course, the compensation method in the present application is not limited to mapping into an 8-dimensional space, and may be other multi-dimensional spaces, such as a 5-dimensional space.
In order to make the technical solutions of the present application more clearly understood by those skilled in the art, the technical solutions of the present application will be described below with reference to specific embodiments.
Examples
The compensation method is formed by the following steps:
the first step is as follows: signal acquisition, namely acquiring a plurality of groups of data by utilizing temperature, humidity and flow signals of inlet air of a thermal air flow meter which integrates temperature, humidity and flow sensors simultaneously;
the second step is that: comparing the value of the flow output signal of the thermal air flow meter with the value of the actually provided air flow, researching the change rule of the deviation of the output signal of the air flow meter along with the change of the inlet air temperature and the inlet air humidity, and determining the feasibility of signal deviation correction by using a multiple linear regression model;
the third step: analyzing the raw data of the collected temperature, humidity and flow signals as independent variable data (X)T i,XH i,XF i) I is 1, … and n (n groups of data are collected, n is more than or equal to the number of equation coefficients), and the actual intake air flow is taken as a dependent variable YF iThe independent variable data (X)T i,XH i,XF i) Mapping to a high-dimensional space to form a new autovariable data set X;
the fourth step: performing multiple linear regression modeling on the basis of the data set established in the third step, wherein the multiple linear regression model is as follows:
Figure BDA0002027915370000073
the fifth step: using the principle of least squares, the sum of squares of the errors is minimized:
Figure BDA0002027915370000074
and a sixth step: taking the derivative of each item of the coefficient to be determined, order
Figure BDA0002027915370000075
Obtaining a matrix equation, and calculating a coefficient vector theta (theta) of the multiple linear regression equation by using matrix operation0,θ1,θ2,θ3,...,θm);
The seventh step: substituting the coefficient vector theta obtained in the sixth step into a multiple linear regression equation:
Figure BDA0002027915370000076
predicted value Y obtained by using multiple linear regression equationiAnd the actual intake air flow rate YF iAnd comparing, checking the model, meeting the error requirement and finishing compensation.
Furthermore, the thermal air flowmeter described above in the first step integrates the temperature, humidity, and flow sensors at the same time, and can acquire the air flow signal and also acquire the temperature, humidity, and other signals of the intake air at the same time.
Further, the above-mentioned independent variable data (X) in the third stepT i,XH i,XF i) Mapping to a high-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)2A new autovariate data set X is formed. According to the rule that the output signal of the thermal air flow meter deviates along with the change of temperature and humidity, only the original data are required to be mapped to an 8-dimensional space;
further, the fourth step is the above multiple linear regression model
Figure BDA0002027915370000084
Figure BDA0002027915370000081
The independent variable data set in (1) is the original data set (X) in the third stepT i,XH i,XF i) Mapping to a new autovariate dataset formed in a high-dimensional space, X ═ X (X)1 i,X2 i,X3 i,…,X8 i) Theta in the model0,θ1,θ2,θ3,...,θmAnd m is 8 for the undetermined coefficient.
Further, the fifth step of minimizing the sum of squares of the errors mentioned above means minimizing the predicted value Y of the multiple linear regression equationiWith the actual intake air flow value YF iThe sum of the squares of the errors.
Further, the sixth step is to determine the undetermined coefficients θjDerivation of the value, order
Figure BDA0002027915370000082
The derivation yields the matrix equation as follows:
Figure BDA0002027915370000083
completing matrix operation by software programming, and solving coefficient vector theta of multiple linear regression equation (theta)0,θ1,θ2,θ3,...,θm)。
The obtained multiple linear regression equation is combined with the signal processing of the thermal air flow meter, and the output signal of the air flow meter can be corrected according to the temperature, the humidity and the original data of the flow signal of the air flow meter in real time through the thermal air flow meter corrected by the multiple linear regression model.
The flow signal compensation device comprises a processor and a memory, wherein the acquisition unit, the compensation unit and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, and the collected flow signals are compensated by adjusting kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
Another exemplary embodiment of the present application provides a system comprising a gas flow meter and software, the gas flow meter acquiring temperature of the gas, humidity of the gas and flow rate signals of the gas; software is used to perform any of the methods described above.
Since the system includes software for executing any one of the compensation methods described above, the flow rate signal of the gas can be accurately acquired.
The flow rate signal of the gas in the present application may be a digital signal or an analog signal, that is, the compensation method in the present application may compensate the flow rate signal of the analog signal or may compensate the flow rate signal of the digital signal.
An embodiment of the present invention provides a storage medium, on which a program is stored, which when executed by a processor implements the above-described method for compensating a flow signal.
The embodiment of the invention provides a processor, wherein the processor is used for running a program, and the program executes the compensation method of the flow signal when running.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program which is stored on the memory and can run on the processor, wherein when the processor executes the program, at least the following steps are realized:
step S101, collecting a flow signal to be compensated of the gas, the temperature of the gas and the humidity of the gas by using the gas flowmeter;
and S102, compensating the flow signal to be compensated according to the temperature of the gas and the humidity of the gas to obtain a compensated flow signal.
The device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application further provides a computer program product adapted to perform a program of initializing at least the following method steps when executed on a data processing device:
step S101, collecting a flow signal to be compensated of the gas, the temperature of the gas and the humidity of the gas by using the gas flowmeter;
and S102, compensating the flow signal to be compensated according to the temperature of the gas and the humidity of the gas to obtain a compensated flow signal.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
From the above description, it can be seen that the above-described embodiments of the present application achieve the following technical effects:
1) the specific method for compensating the detected flow signal by using the detected temperature and humidity of the gas may be any feasible method in the prior art, for example, in a specific embodiment of the present application, the compensation method includes:
2) among the compensation arrangement of this application, the flow signal that the compensation unit obtained to detecting according to the temperature and the humidity of the gaseous that obtain of detection compensates for the flow signal after the compensation is more close actual flow signal, provides reliable accurate data relatively for subsequent application.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (6)

1. A method for compensating a flow signal, wherein the flow signal is acquired by a gas flowmeter, and the gas flowmeter is further used for acquiring the temperature and humidity of the gas, and the method comprises the following steps:
collecting a flow signal to be compensated of the gas, the temperature of the gas and the humidity of the gas by using the gas flowmeter;
compensating the flow signal to be compensated according to the temperature of the gas and the humidity of the gas to obtain a compensated flow signal,
the compensating the flow signal according to the temperature of the gas and the humidity of the gas to obtain a compensated flow signal, comprising:
acquiring a plurality of data sets by using the gas flowmeter, wherein each data set comprises an acquired flow signal of the gas, the temperature of the gas and the humidity of the gas, which are acquired at one time;
acquiring an actual flow signal corresponding to the acquired flow signal of the gas in each data group;
compensating the flow signal to be compensated by using a plurality of actual flow signals and a plurality of data groups to obtain the compensated flow signal,
the compensating the flow signal to be compensated by using the plurality of actual flow signals and the plurality of data groups to obtain the compensated flow signal includes:
establishing a multiple linear regression model by taking the flow signal of the gas, the temperature of the gas and the humidity of the gas as independent variables and the compensated flow signal as dependent variables, wherein the multiple linear regression model comprises a plurality of unknown coefficients;
calculating each unknown coefficient;
substituting the unknown coefficient into the multiple linear regression model to obtain a compensation formula,
the method for establishing the multivariate linear regression model by taking the flow signal of the gas, the temperature of the gas and the humidity of the gas as independent variables and the compensated flow signal as dependent variables comprises the following steps:
with a plurality of sets of acquired flow signals X of the gas in the data setF iTemperature X of gasT iAnd the humidity X of the gasH iAs independent variable data, the actual flow signal is used
Figure FDA0002621059340000011
The dependent variable data are i-1, … and n, and n is the number of the data groups;
the independent variable data XT i、XH iAnd XF iMapping to m-dimensional space to obtain independent variable data X1 i、X2 i、X3 i、…,Xm iM is a positive integer greater than or equal to 4;
establishing a multiple linear regression model
Figure FDA0002621059340000012
Wherein, theta1、θ2、θ3…, and θmIs the unknown coefficient.
2. The method of claim 1, wherein said computing each of said unknown coefficients comprises:
minimizing the compensated flow signal and the flow signal calculated by the multiple linear regression model by using the principle of least square methodThe square sum of the error of the actual flow signal is obtained
Figure FDA0002621059340000013
Figure FDA0002621059340000021
Taking the derivative of each unknown coefficient and order
Figure FDA0002621059340000022
Obtaining a matrix equation, wherein j is 1, 2, … 8;
and solving each unknown coefficient in the matrix equation.
3. The method of claim 1, wherein m is 8 and X is1 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
4. The method of claim 1, wherein after obtaining the compensated flow signal, the method further comprises:
calculating a difference between the compensated flow signal and an actual flow signal;
determining whether the difference is less than or equal to an error threshold,
ending the compensation when the difference is less than or equal to an error threshold;
and under the condition that the difference value is larger than the error threshold value, re-compensating the flow signal to be compensated until the difference value between the compensated flow signal and the actual flow signal is smaller than or equal to the error threshold value, and finishing the compensation.
5. The utility model provides a compensation arrangement of flow signal, flow signal is the gaseous flow signal that gas flowmeter gathered, gas flowmeter still is used for acquireing the temperature and the humidity of gas, its characterized in that includes:
the acquiring unit is used for acquiring a flow signal to be compensated of the gas acquired by the gas flowmeter, the temperature of the gas and the humidity of the gas;
the compensation unit is used for compensating the flow signal to be compensated according to the temperature of the gas and the humidity of the gas to obtain a compensated flow signal,
the compensation unit includes:
the first acquisition module is used for acquiring a plurality of data sets acquired by the gas flowmeter, wherein each data set comprises an acquired flow signal of the gas acquired at one time, the temperature of the gas and the humidity of the gas;
the second acquisition module is used for acquiring actual flow signals corresponding to the acquired flow signals of the gas in each data group;
a compensation module for compensating the flow signal to be compensated according to the actual flow signals and the data sets to obtain the compensated flow signal,
the compensation module includes:
the modeling submodule is used for building a multiple linear regression model by taking the flow signal of the gas, the temperature of the gas and the humidity of the gas as independent variables and taking the compensated flow signal as a dependent variable, and the multiple linear regression model comprises a plurality of unknown coefficients;
the calculation submodule is used for solving each unknown coefficient according to the acquired flow signals of the plurality of actual flow signals and the gas in the plurality of data groups, the temperature of the gas and the humidity of the gas;
a determining submodule for substituting the unknown coefficients into the multiple linear regression model to obtain a compensation formula,
the setup submodule is further configured to: with a plurality of sets of acquired flow signals X of the gas in the data setF iTemperature X of gasT iAnd the humidity X of the gasH iAs independent variable data, the actual flow signal is used
Figure FDA0002621059340000031
The dependent variable data are i-1, … and n, and n is the number of the data groups; the independent variable data XT i、XH iAnd XF iMapping to m-dimensional space to obtain independent variable data X1 i、X2 i、X3 i、…,Xm iM is a positive integer greater than or equal to 4; establishing a multiple linear regression model
Figure FDA0002621059340000032
Wherein, theta1、θ2、θ3…, and θmIs the unknown coefficient.
6. A gas flow meter system comprising a gas flow meter for obtaining temperature, humidity and flow signals of said gas, characterized in that it further comprises software for performing the method of any of claims 1 to 4.
CN201910299977.0A 2018-12-24 2019-04-15 Flow signal compensation method, device, storage medium, processor and system Active CN110057419B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811584083.8A CN109696216A (en) 2018-12-24 2018-12-24 Compensation method, device, storage medium, processor and the system of flow signal
CN2018115840838 2018-12-24

Publications (2)

Publication Number Publication Date
CN110057419A CN110057419A (en) 2019-07-26
CN110057419B true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
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
CN117824772B (en) * 2024-03-05 2024-05-14 临沂市计量检定所 Natural gas flow metering self-adaptive compensation method, system, terminal and medium

Citations (5)

* Cited by examiner, † Cited by third party
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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 (2)

* Cited by examiner, † Cited by third party
Title
Impact of Temperature and Humidity on the Perception of Indoor Air Quality;L.FANG等;《INDOOR AIR》;19981231(第8期);第80-90页 *
Towards an online milk concentration sensor using ERT: Correlation of conductivity, temperature and composition;Mohadeseh Sharifi等;《Journal of Food Engineering》;20131231(第116期);第86-96页 *

Also Published As

Publication number Publication date
CN109696216A (en) 2019-04-30
CN110057419A (en) 2019-07-26

Similar Documents

Publication Publication Date Title
CN110057419B (en) Flow signal compensation method, device, storage medium, processor and system
JP7217754B2 (en) sensor calibration
CN110008080A (en) Operational indicator method for detecting abnormality, device and electronic equipment based on time series
US11022469B2 (en) Correction of sensor data in a multi-sensor internet of things environment
US20100305912A1 (en) Real-time scheduling of linear models for control and estimation
CN113609790B (en) Product virtual measuring method, system, device and medium
CN111998918A (en) Error correction method, error correction device and flow sensing system
CN108005644B (en) Method and device for predicting dynamic permeability of inclined coal seam
CN115859882A (en) Temperature compensation design method and temperature compensation method based on cutting neural network
Casillo et al. Predictive preservation of historic buildings through IoT-based system
López et al. RANSAC-GP: Dealing with outliers in symbolic regression with genetic programming
Schulze Darup et al. How scaling of the disturbance set affects robust positively invariant sets for linear systems
Rizzo et al. Generalized likelihood ratio control charts for high‐purity (high‐quality) processes
KR20200023882A (en) Processing method of process data of smart factory
CN116049671A (en) Gas meter fault detection method, system and equipment based on multi-model fusion
CN114861984A (en) For predicting high CO content 2 Method and processor for condensing volume of oil ring of gas reservoir
JPWO2018083720A1 (en) Anomaly analysis method, program and system
CN112882384A (en) Current-torque transfer model identification method and device for servo motor on robot
CN118171090B (en) Block chain-based carbon emission monitoring and checking method, device, equipment and medium
CN117810960B (en) Method and device for predicting state of power system
CN116124218B (en) Transformer fault diagnosis method and device, storage medium and electronic equipment
CN111488700B (en) Parallel assembly method, device, equipment and medium for complex opto-electro-mechanical system
CN109959358B (en) Measuring film, method for manufacturing measuring film, and method for measuring plane strain field
WO2022156743A1 (en) Feature construction method and apparatus, model training method and apparatus, and device and medium
CN112629562A (en) Assembly compensation method and device based on IMU sensor

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