CN102914623B - Fusing method of temperature compensation of humidity sensor - Google Patents
Fusing method of temperature compensation of humidity sensor Download PDFInfo
- Publication number
- CN102914623B CN102914623B CN201210401633.4A CN201210401633A CN102914623B CN 102914623 B CN102914623 B CN 102914623B CN 201210401633 A CN201210401633 A CN 201210401633A CN 102914623 B CN102914623 B CN 102914623B
- Authority
- CN
- China
- Prior art keywords
- humidity sensor
- temperature
- output
- compensation
- function
- 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.)
- Expired - Fee Related
Links
Landscapes
- Investigating Or Analyzing Materials By The Use Of Electric Means (AREA)
- Investigating Or Analyzing Materials By The Use Of Fluid Adsorption Or Reactions (AREA)
Abstract
The invention relates to a fusing method of temperature compensation of a humidity sensor. A characteristic function y=f(x) of the humidity sensor is given, wherein y represents the output of the humidity sensor, x represents the input of the humidity sensor, a temperature parameter is provided additionally, when t0<t1<t2<t3, according to the characteristics that a characteristic curve of the humidity sensor is linear in the middle and is nonlinear at two ends under the influence of the temperature, through a linear least square method, a linear equation f2(x, t) influenced by the temperature within a range of [t1, t2] is obtained; and when t0<t<t1 or t2<t<t3, error compensation caused by the temperature influence is carried out on f1(x, t) and f3 (x, t) through an RBF (Radial Basis Function) neutral network. The fusing method has the beneficial effect that an actual value which is closer to an output value of the humidity sensor is finally obtained.
Description
Technical field
The invention belongs to the soft compensation technique of sensor field, be specifically related to the application of method for self-adaption amalgamation in humidity sensor temperature compensation that combine with least square of a kind of RBF neural network.
Background technology
Air humidity is an important parameter in meteorological observation, and meteorological department has dropped into the automatic weather station of service operation at present, and the warm and humid integrated transducer of HMP45D that mostly adopts Finland Vaisala company to produce is measured air humidity.HMP45D Temperature Humidity Sensor is the thin polymer film capacitive transducer of new generation with HUMICAP technology, in the process of application, by linear relationship, calculate relative humidity size, yet in practical business process, there is the measurement of humidity under high/low temperature condition, can not meet the problem of measuring accuracy and reliability.Therefore, the non-linear effects that compensation temperature produces, becomes the problem that sensor research staff and worker in meteorology are concerned about the most.Non-linear effects humidity sensor being produced in order to eliminate temperature, researcher is mainly round hardware compensating and two kinds of methods of software compensation both at home and abroad.Hardware compensating method, owing to being subject to the impact of the factors such as electronic devices and components drift in circuit, causes whole measuring system poor reliability and precision low, cannot accomplish omnidistance compensation, and in actual use procedure, application is restricted.Software compensation method has multivariate regression analytic approach, yet when application multivariate regression analytic approach is carried out Data Fusion, need to solve large-scale matrix equation, even equation is ill-condition equation sometimes, cannot solve, and fitting precision is lower, often can not meets application request; Utilize the non-linear mapping capability of BP neural network also can realize the temperature compensation of humidity sensor, but there are some problems in the method, be easily absorbed in local extremum in application process, make failure to train, and when data volume is larger, pace of learning is slower, and fitting precision is lower.
Summary of the invention
The object of the invention is to overcome the deficiency of above prior art, and the fusion method of the humidity sensor temperature compensation that a kind of error is less is provided, and specifically has following technical scheme to realize:
The fusion method of described humidity sensor temperature compensation, the characteristic function of establishing humidity sensor is y=f (x), x ∈ [δ
0, δ
h], wherein y is the output of sensor, and x is the input of sensor, and input reference signal is δ
h-δ
0, it is characterized in that, set up temperature parameters t, linear in the middle of the family curve according to humidity sensor under temperature impact presents, the nonlinear feature in two ends, makes t0<t1<t2<t3, obtains formula (1),
Wherein, the characteristic function curve of humidity sensor is in input signal range ability, to be the function of continuous monotone variation; Work as t1<t<t2, by linear least square, obtain f
2(x, t) is at the linear equation of [t1, t2] interior temperature influence; As t0<t<t1 or t2<t<t3, by RBF neural network to f
1(x, t) and f
3(x, t) carries out being affected and the error compensation brought by temperature.
The further design of the fusion method of described humidity sensor temperature compensation is, work as t1<t<t2, in the described linear equation of finally trying to achieve, add that parametric coefficients ξ compensation temperature produces minor impact, according to the output after A/D conversion, directly with straight-line equation, try to achieve corresponding input signal x, simplify the processing mode of output signal.
The further design of the fusion method of described humidity sensor temperature compensation is, described error compensation of being undertaken by RBF neural network, comprises the steps:
1) netinit, chooses n training sample at random as cluster centre c
i(i=1,2 ..., n);
2) the training sample set of input is pressed to the grouping of arest neighbors rule, then readjust cluster centre, the c finally obtaining
icenter for network function;
3) variance while solving network function and be Gaussian function
i=1,2 ..., n, wherein c
maxfor the ultimate range between selected center;
4) calculate the weights between hidden layer and output layer
(p=1,2 ..., P; I=1,2 ..., n);
5). by formula
calculation of performance indicators J, then carries out weights adjustment, wherein, and y
kdesirable output,
for reality output, k=1,2 ... L, L, M is empirical value;
6). judge the performance index J≤ζ that whether satisfies condition, ζ is empirical value, if meet, finishes training, otherwise makes J=0 return to step 2, repeats above-mentioned training process, until satisfy condition.
The present invention is the family curve under the impact of temperature according to humidity sensor, one section presents linearity, two ends present nonlinear feature, for the less linearity range of temperature impact, utilize the method for least square to simulate straight-line equation, add corresponding parametric coefficients, the impact of compensation temperature, make input input be good linear relationship, for the larger characteristic two ends of temperature impact, utilize RBF neural network model to realize the temperature compensation of humidity sensor, make input and output also be good linear relationship, the output valve that finally obtains humidity sensor approaches actual value more.
Accompanying drawing explanation
Fig. 1 is humidity sensor temperature compensation principle;
Fig. 2 is the impact of temperature on humidity sensor measurement result;
Fig. 3 is linear least square fitting a straight line schematic diagram;
Fig. 4 is the humidity sensor input-output curve after temperature compensation.
Embodiment
Below in conjunction with accompanying drawing, the present invention program is elaborated.
The fusion method of described humidity sensor temperature compensation, the characteristic function of establishing humidity sensor is y=f (x), x ∈ [δ
0, δ
h], wherein y is the output of sensor, and x is the input of sensor, and input reference signal is δ
h-δ
0, it is characterized in that, set up temperature parameters t, linear in the middle of the family curve according to humidity sensor under temperature impact presents, the nonlinear feature in two ends, makes t0<t1<t2<t3, obtains formula (1),
Wherein, the characteristic function curve of humidity sensor is in input signal range ability, to be the function of continuous monotone variation; Work as t1<t<t2, by linear least square, obtain f
2(x, t) is at the linear equation of [t1, t2] interior temperature influence; As t0<t<t1 or t2<t<t3, by RBF neural network to f
1(x, t) and f
3(x, t) carries out being affected and the error compensation brought by temperature.
Work as t1<t<t2, in the described linear equation of finally trying to achieve, add that parametric coefficients ξ compensation temperature produces minor impact, according to the output after A/D conversion, directly with straight-line equation, try to achieve corresponding input signal x, simplify the processing mode of output signal.
The error compensation of being undertaken by RBF neural network, comprises the steps:
1) netinit, chooses n training sample at random as cluster centre c
i(i=1,2 ..., n);
2) the training sample set of input is pressed to the grouping of arest neighbors rule, then readjust cluster centre, the c finally obtaining
icenter for network function;
3) variance while solving network function and be Gaussian function
i=1,2 ..., n, wherein c
maxfor the ultimate range between selected center;
4) calculate the weights between hidden layer and output layer
(p=1,2 ..., P; I=1,2 ..., n);
5). by formula
Y
kdesirable output,
for reality output, k=1,2 ... L, L, M is empirical value, then calculation of performance indicators J carries out weights adjustment, wherein, y
kdesirable output,
for reality output, k=1,2 ... L, L, M is empirical value;
6). judge the performance index J≤ζ that whether satisfies condition, ζ is empirical value, if meet, finishes training, otherwise makes J=0 return to step 2, repeats above-mentioned training process, until satisfy condition.
The experimental data that table 1 is actual measurement gained, the measurement error value under condition of different temperatures is that measured value deducts standard value, and the measurement error value in different temperatures situation is depicted as to smooth curve, the then impact of analysis temperature on humidity sensor.Resulting under different temperatures and different humidity condition the Curve of the Measuring Error of humidity sensor, as shown in Figure 2.
Table 1
Fig. 3 utilizes linear least square method to carry out fitting a straight line to good linearity range, and the straight-line equation obtaining is that y=1.0293*x-1.6659 adds minor impact error amount 0.8, and the input and output after over-fitting present good linear relationship.Certainly in actual application process, need to choose different values for different sensor model numbers, then just can calculate the actual humidity value in this segment according to the straight-line equation of matching, compensation precision is higher.
Fig. 4 utilizes the method for RBF neural network to carrying out temperature Compensation Study between inelastic region, temperature range two ends, using the part sample in experimental data as training sample, part sample is as test sample book, the data in input vector using temperature value and relative humidity measurement value, relative humidity standard value is as desired output.Sample value is imported to neural network, and input node gets 4, and hidden neuron number gets 10, and hidden neuron adopts Gaussian function, and output layer neuron adopts purelin Linear function, and the humidity value to humidity sensor in nonlinear temperature interval carries out temperature compensation.The input and output that can obtain after neural networks compensate present good linear relationship, can access the humidity value that more approaches actual value.
In order to check the effect of the blending algorithm that the present invention proposes, this algorithm and least square polynomial fit and BP neural net method are compared to analysis and research.In experiment simulation process, we find when temperature range larger samples number is more, single BP neural net method learning training speed is obviously slack-off, it is large that error of fitting also becomes, easily be absorbed in local minimum, affect compensation effect, and in the process of least square polynomial solving, when the highest power item value of polynomial expression is larger, fitting precision is relatively high, but two ends present oscillatory occurences, and along with the change of data volume is large, speed is slack-off gradually, and it is large that error also becomes gradually, and it is undesirable that fitting effect becomes.The method that the present invention proposes is owing to being that matching is carried out respectively in by stages, and compensation effect can reach satisfied precision.
Table 2 has provided the humidity match value after compensation in employing BP neural network and the p-30 ° of C ~ 0 ° C of least square polynomial method and 20 ° of C ~ 50 ° C temperature ranges, the effect temperature compensation of contrast this paper method, can draw, at temperature characteristics, present in obvious linearity and nonlinear situation, the model of temperature compensation of utilizing algorithm that least square and RBF neural network combine to set up, simple, precision is higher, and network learning and training speed is fast.
Table 2
The self-adaptation blending algorithm that the present invention utilizes RBF neural network to combine with least square, the impact that effectively compensation temperature produces humidity sensor, the outstanding advantages of the method is simple simultaneously, matching training speed is fast, compensation precision is high, can, for the temperature compensation of humidity sensor in business, greatly improve accuracy of measurement and the reliability of sensor.
Claims (1)
1. a fusion method for humidity sensor temperature compensation, the characteristic function of establishing humidity sensor is y=f (x), x ∈ [δ
0, δ
h], wherein y is the output of sensor, and x is the input of sensor, and input reference signal is δ
h-δ
0, it is characterized in that, set up temperature parameters t, the family curve according to humidity sensor under temperature impact, makes t0<t1<t2<t3, obtains formula (1),
Wherein, the characteristic function curve of humidity sensor is in input signal range ability, to be the function of continuous monotone variation; Work as t1<t<t2, by linear least square, obtain f
2(x, t) is at the linear equation of [t1, t2] interior temperature influence; As t0<t<t1 or t2<t<t3, by RBF neural network to f
1(x, t) and f
3(x, t) carries out being affected and the error compensation brought by temperature;
Work as t1<t<t2, in the described linear equation of finally trying to achieve, add parametric coefficients ξ compensation temperature, according to the output after A/D conversion, directly with straight-line equation, try to achieve corresponding input signal x;
Described error compensation of being undertaken by RBF neural network, comprises the steps:
1). netinit, choose at random n training sample as cluster centre c
i(i=1,2 ..., n);
2). the training sample set of input is pressed to the grouping of arest neighbors rule, then readjust cluster centre, the c finally obtaining
icenter for network function;
3). the variance when solving network function and being Gaussian function
c wherein
maxfor the ultimate range between selected center;
4). calculate the weights between hidden layer and output layer
5). by formula
calculation of performance indicators J, then carries out weights adjustment, wherein, and y
kdesirable output,
for reality output, k=1,2 ... L, L, M is empirical value;
6). judge whether performance index satisfy condition
for empirical value, if meet, finish training, otherwise make J=0 return to step 2, repeat above-mentioned training process, until satisfy condition.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210401633.4A CN102914623B (en) | 2012-10-19 | 2012-10-19 | Fusing method of temperature compensation of humidity sensor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210401633.4A CN102914623B (en) | 2012-10-19 | 2012-10-19 | Fusing method of temperature compensation of humidity sensor |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102914623A CN102914623A (en) | 2013-02-06 |
CN102914623B true CN102914623B (en) | 2014-12-10 |
Family
ID=47613080
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210401633.4A Expired - Fee Related CN102914623B (en) | 2012-10-19 | 2012-10-19 | Fusing method of temperature compensation of humidity sensor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102914623B (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104067120B (en) * | 2014-06-27 | 2016-05-25 | 深圳华盛昌机械实业有限公司 | A kind of humidity sensor numerical compensation method, device and air quality detector |
CN105223241A (en) * | 2015-09-18 | 2016-01-06 | 南京信息工程大学 | A kind of compensation method of humidity sensor |
CN105445344A (en) * | 2015-12-30 | 2016-03-30 | 桂林电子科技大学 | Temperature compensation method of system for detecting heavy metals in water environment |
CN106908082A (en) * | 2017-02-28 | 2017-06-30 | 百度在线网络技术(北京)有限公司 | Method, apparatus and system for the gyroscope in calibrating terminal |
CN107330510A (en) * | 2017-06-30 | 2017-11-07 | 南京信息工程大学 | Humidity sensor temperature compensation method based on AFSA BP neural networks |
CN109567767A (en) * | 2018-11-14 | 2019-04-05 | 山东中医药大学 | A kind of intelligence infant nursing automatic reminding system and method |
CN109405884B (en) * | 2018-12-03 | 2024-02-27 | 华润微集成电路(无锡)有限公司 | System and method for realizing humidity calibration function based on temperature and humidity sensor |
CN110017572A (en) * | 2019-04-01 | 2019-07-16 | 中建二局安装工程有限公司 | A kind of air-conditioning system and control method suitable for High aititude region |
CN110338796A (en) * | 2019-06-26 | 2019-10-18 | 歌尔股份有限公司 | Breathing detection method, apparatus and wearable device |
CN110262582B (en) * | 2019-07-30 | 2020-09-11 | 中原工学院 | High-temperature high-pressure jig dyeing machine temperature control method based on improved RBF neural network |
CN114046802B (en) * | 2021-09-28 | 2023-05-02 | 中国船舶重工集团公司第七0七研究所 | Step-by-step temperature compensation method of fiber optic gyroscope |
CN117686555B (en) * | 2024-02-04 | 2024-05-14 | 南京邮电大学 | LC humidity sensor drift compensation method based on machine learning |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102095756A (en) * | 2009-12-15 | 2011-06-15 | 台达电子工业股份有限公司 | Humidity sensing circuit with temperature compensation function |
CN202433334U (en) * | 2011-12-29 | 2012-09-12 | 东南大学 | Piezoresistive type humidity sensor with low temperature drift |
-
2012
- 2012-10-19 CN CN201210401633.4A patent/CN102914623B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102095756A (en) * | 2009-12-15 | 2011-06-15 | 台达电子工业股份有限公司 | Humidity sensing circuit with temperature compensation function |
CN202433334U (en) * | 2011-12-29 | 2012-09-12 | 东南大学 | Piezoresistive type humidity sensor with low temperature drift |
Non-Patent Citations (6)
Title |
---|
伊晓光等.湿敏电容式传感器测量SF6气体湿度方法的研究.《电力建设》.2004,第25卷(第8期), * |
基于 RBF 神经网络的高分子湿度传感器的研究;王化冰等;《微计算机信息》;20071231;第23卷(第4-1期);第197页右栏倒数第2段第1-2行,第198页左栏第4-6段,右栏第2段 * |
朱庆保等.神经网络与回归相结合实现传感器特性线性化.《仪器仪表学报》.2001,第22卷(第4期), * |
湿敏电容式传感器测量SF6气体湿度方法的研究;伊晓光等;《电力建设》;20040831;第25卷(第8期);摘要,第49页左栏倒数第3段 * |
王化冰等.基于 RBF 神经网络的高分子湿度传感器的研究.《微计算机信息》.2007,第23卷(第4-1期), * |
神经网络与回归相结合实现传感器特性线性化;朱庆保等;《仪器仪表学报》;20010831;第22卷(第4期);第423页左栏最后一段,右栏第7-9行 * |
Also Published As
Publication number | Publication date |
---|---|
CN102914623A (en) | 2013-02-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102914623B (en) | Fusing method of temperature compensation of humidity sensor | |
Conte et al. | Bootstrap Pettitt test for detecting change points in hydroclimatological data: Case study of Itaipu Hydroelectric Plant, Brazil | |
CN106055888B (en) | Transformer top-oil temperature prediction technique based on predicted error amendment and device | |
Lee et al. | Analysis of dynamic interaction between catenary and pantograph with experimental verification and performance evaluation in new high-speed line | |
Hongkang et al. | Recurrent neural network model for prediction of microclimate in solar greenhouse | |
CN104778298A (en) | Gaussian process regression soft measurement modeling method based on EGMM (Error Gaussian Mixture Model) | |
CN106443285A (en) | Multi-harmonic-source harmonic contribution quantitative analysis method based on total-least square method | |
CN102759430A (en) | BP (Back Propagation) neural network based high-precision correction and test method for resonance cylinder pressure sensor | |
CN105737881A (en) | Acceleration reliability growth test method for electronic equipment | |
CN102542126A (en) | Soft measurement method based on half supervision learning | |
Wang et al. | Back propagation neural network model for temperature and humidity compensation of a non dispersive infrared methane sensor | |
CN106597852A (en) | MEMS gyroscope temperature compensation method based on RBF neural network | |
Rakhmatova et al. | Three-day forecasting of greenhouse gas CH 4 in the atmosphere of the Arctic Belyy Island using discrete wavelet transform and artificial neural networks | |
Deng et al. | Analysis of the spectral induction and hierarchical transmissibility for railway vehicles’ measurement vibration environment | |
CN109405884B (en) | System and method for realizing humidity calibration function based on temperature and humidity sensor | |
CN104535257A (en) | Silicon-piezoresistive temperature compensation assessment method | |
CN103234916B (en) | Prediction method for net photosynthetic rate of population | |
Vimont et al. | Pacific interannual and interdecadal equatorial variability in a 1000-yr simulation of the CSIRO coupled general circulation model | |
CN114583767A (en) | Data-driven wind power plant frequency modulation response characteristic modeling method and system | |
CN104571086B (en) | Temperature controller emulation test method based on transmission function | |
CN104458833B (en) | A kind of humidity sensor test data analytic method based on Time Domain Reflectometry principle | |
Wu et al. | Fast calibration for vibration-based pavement roughness measurement based on model updating of vehicle dynamics | |
Tarabieh et al. | Thermal performance evaluation of common exterior residential wall types in Egypt | |
CN110826232B (en) | Electromechanical product simulation model reliability evaluation method based on non-probability measurement | |
CN109190207A (en) | A kind of radio-frequency power amplifier temperature performance prediction technique based on ELM |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C41 | Transfer of patent application or patent right or utility model | ||
TR01 | Transfer of patent right |
Effective date of registration: 20161101 Address after: 205 C1 building 15, Jiangpu street, Pukou District, Nanjing District, Jiangsu, Wanshou Road 211899, China Patentee after: Clouds Nanjing Environmental Monitoring Technology Development Co. Ltd. Address before: Nanjing City, Jiangsu province 210019 Olympic Avenue No. 69 Patentee before: Nanjing University of Information Science and Technology |
|
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20141210 Termination date: 20171019 |
|
CF01 | Termination of patent right due to non-payment of annual fee |