CN102759430B - BP (Back Propagation) neural network based high-precision correction and test method for resonance cylinder pressure sensor - Google Patents
BP (Back Propagation) neural network based high-precision correction and test method for resonance cylinder pressure sensor Download PDFInfo
- Publication number
- CN102759430B CN102759430B CN201210224457.1A CN201210224457A CN102759430B CN 102759430 B CN102759430 B CN 102759430B CN 201210224457 A CN201210224457 A CN 201210224457A CN 102759430 B CN102759430 B CN 102759430B
- Authority
- CN
- China
- Prior art keywords
- intermediate layer
- output
- sensor
- layer
- network
- 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
Links
Landscapes
- Measuring Fluid Pressure (AREA)
Abstract
Description
技术领域 technical field
本发明属于一种测试测量技术领域,涉及谐振筒压力传感器高精度校试方法,具体涉及一种基于BP神经网络的谐振筒压力传感器高精度校试方法。The invention belongs to the technical field of testing and measurement, and relates to a high-precision calibration method for a resonant cylinder pressure sensor, in particular to a high-precision calibration method for a resonant cylinder pressure sensor based on a BP neural network.
背景技术 Background technique
为实现导弹的精确控制,对于压力测量的量程及精度需求日益提高,因此需研制高精度压力传感器。针对目前稳定性好、精度高的谐振筒压力传感器,高精度校试技术的水平成为影响传感器精度的重要因素,以往通常采用的基于传感器物理模型的多项式拟合方法,振动筒压力传感器输出周期信号T与温度电压信号V,根据传感器物理模型,它们与输入测量压力P之间可以建立如下的多元非线性回归方程:In order to realize the precise control of the missile, the demand for the range and accuracy of the pressure measurement is increasing, so it is necessary to develop a high-precision pressure sensor. For the current resonant cylinder pressure sensor with good stability and high precision, the level of high-precision calibration technology has become an important factor affecting the accuracy of the sensor. In the past, the polynomial fitting method based on the physical model of the sensor is usually used, and the vibration cylinder pressure sensor outputs periodic signals. T and the temperature and voltage signal V, according to the physical model of the sensor, the following multiple nonlinear regression equation can be established between them and the input measurement pressure P:
式中:P——输入测量气压;In the formula: P——input measurement air pressure;
T——传感器输出周期;T——sensor output cycle;
V——气压传感器温度电压;V - pressure sensor temperature voltage;
P0——参考点气压;P 0 ——reference point air pressure;
T0——参考点传感器输出周期;T 0 ——the output period of the reference point sensor;
V0——参考点温度电压;V 0 ——reference point temperature voltage;
Kij——传感器的特征系数。K ij ——The characteristic coefficient of the sensor.
对于每一个振动筒压力传感器都会有一组不同的Kij参数系。There will be a different set of K ij parameter systems for each vibrating cylinder pressure sensor.
传统的多项式拟合技术是在公式(1)的基础上,选用不同的多项式阶次,利用最小二乘法得到Kij系数。该方法在拟合精度上不能满足型号0.028%FS的精度要求。The traditional polynomial fitting technology is based on the formula (1), selects different polynomial orders, and uses the least square method to obtain K ij coefficients. This method cannot meet the accuracy requirement of the model 0.028%FS in terms of fitting accuracy.
发明内容 Contents of the invention
本发明的目的是提高谐振筒压力传感器校试精度,提供一种基于BP神经网络的谐振筒压力传感器高精度校试方法。The purpose of the invention is to improve the calibration accuracy of the resonant cylinder pressure sensor and provide a high-precision calibration method for the resonant cylinder pressure sensor based on BP neural network.
本发明所采用的技术方案是:The technical scheme adopted in the present invention is:
一种基于BP神经网络的谐振筒压力传感器校试方法,包括构建双隐层网络结构的传感器BP神经网络,使网络结构的输入变量为传感器的输出周期T及温度电压V,输出变量为压力值P;采集传感器在不同温度、不同压力输入条件下的输出周期及温度电压;采集不同温度和压力条件下传感器输出量作为校试及检验样本点。A method for calibrating a pressure sensor of a resonant cylinder based on a BP neural network, including constructing a sensor BP neural network with a double-hidden layer network structure, so that the input variables of the network structure are the output period T and the temperature voltage V of the sensor, and the output variable is the pressure value P; collect the output cycle and temperature voltage of the sensor under different temperature and pressure input conditions; collect the output of the sensor under different temperature and pressure conditions as a calibration test and inspection sample point.
如上所述的一种基于BP神经网络的谐振筒压力传感器校试方法,其中:所述传感器BP神经网络中,利用双曲正切S型传递函数作为输入层与第一个中间层、第一个中间层与第二个中间层之间的传递函数,利用线性传递函数作为第二个中间层与输出层之间的传递函数。As mentioned above, a resonant cylinder pressure sensor calibration method based on BP neural network, wherein: in the sensor BP neural network, the hyperbolic tangent S-type transfer function is used as the input layer and the first intermediate layer, the first The transfer function between the intermediate layer and the second intermediate layer uses a linear transfer function as the transfer function between the second intermediate layer and the output layer.
如上所述的一种基于BP神经网络的谐振筒压力传感器校试方法,其中:所述样本点采集时,在-45℃到80℃范围内选取多个温度点,每个温度点选取多个采样点。A resonant cylinder pressure sensor calibration method based on BP neural network as described above, wherein: when collecting the sample points, multiple temperature points are selected within the range of -45°C to 80°C, and multiple temperature points are selected for each temperature point Sampling point.
如上所述的一种基于BP神经网络的谐振筒压力传感器校试方法,其中:所述传感器BP神经网络中,输入层节点与第一个中间层节点的网络权值为k系数,第一个中间层节点与第二个中间层节点的网络权值为W系数,第二个中间层节点与输出层节点的网络权值为s系数;且每个中间层的节点数为4;且双曲正切S型传递函数如下:A resonant cylinder pressure sensor calibration method based on BP neural network as described above, wherein: in the sensor BP neural network, the network weights of the input layer node and the first intermediate layer node are k coefficients, and the first The network weight of the middle layer node and the second middle layer node is W coefficient, the network weight of the second middle layer node and the output layer node is S coefficient; and the number of nodes in each middle layer is 4; and hyperbolic The tangent sigmoid transfer function is as follows:
其中:yi为第一个中间层的输出;xj为输入变量值;kij为输入层与第一个中间层的网络权值;θi为第一个中间层各节点的阈值;Among them: y i is the output of the first intermediate layer; x j is the input variable value; k ij is the network weight of the input layer and the first intermediate layer; θ i is the threshold value of each node of the first intermediate layer;
Ym为第二个中间层的输出;Wmi为第一个中间层与第二个中间层的网络权值;ωm为第二个中间层各节点的阈值;Y m is the output of the second intermediate layer; W mi is the network weight of the first intermediate layer and the second intermediate layer; ω m is the threshold of each node of the second intermediate layer;
线性传递函数如下:The linear transfer function is as follows:
其中:O为模型输出;sln为第二个中间层与输出层的网络权值;βl为输出层节点的阈值。Among them: O is the model output; s ln is the network weight of the second intermediate layer and the output layer; β l is the threshold of the output layer node.
如上所述的一种基于BP神经网络的谐振筒压力传感器校试方法,其中:采用最快速算法作为BP神经网络的训练方法,训练中对各层的阈值和权值进行修正,使得误差函数沿负梯度方向下降。As mentioned above, a resonant cylinder pressure sensor calibration method based on BP neural network, wherein: the fastest algorithm is used as the training method of BP neural network, and the threshold and weight of each layer are corrected during training, so that the error function along the Descent in the direction of negative gradient.
本发明的有益效果是:The beneficial effects of the present invention are:
本发明提供的校试方法使用了双隐层网络结构,在保证输出精度的同时,减少了网络参数数量;采用地面训练的方法,有效控制了训练过程的可靠性;通过固化初始化训练参数,解决了训练过程的可再现问题;并构建了S型拟合函数,增强了拟合曲线的逼近能力,较多项式拟合提高了拟合精度。The proofreading method provided by the present invention uses a double-hidden layer network structure, which reduces the number of network parameters while ensuring the output accuracy; adopts the method of ground training to effectively control the reliability of the training process; and solves the problem by solidifying and initializing the training parameters. The reproducibility of the training process is solved; and the S-type fitting function is constructed, which enhances the approximation ability of the fitting curve and improves the fitting accuracy compared with polynomial fitting.
本发明通过构建BP神经网络模型,将谐振筒压力传感器校试精度提高了25%,解决了传感器高精度校试问题,可满足导弹精确压力测量需求。By constructing a BP neural network model, the present invention increases the calibration accuracy of the pressure sensor of the resonant cylinder by 25%, solves the problem of high-precision calibration of the sensor, and can meet the demand for accurate pressure measurement of missiles.
附图说明 Description of drawings
图1是本发明采用的传感器BP网络模型图;Fig. 1 is the sensor BP network model diagram that the present invention adopts;
图2是压力拟合误差对比图。Figure 2 is a comparison chart of pressure fitting errors.
具体实施方式 Detailed ways
下面结合附图和实施例对本发明提供的一种基于BP神经网络的谐振筒压力传感器高精度校试方法进行介绍:A high-precision calibration method for a resonant cylinder pressure sensor based on a BP neural network provided by the present invention is introduced below in conjunction with the accompanying drawings and embodiments:
一种基于BP神经网络的谐振筒压力传感器校试方法,包括构建双隐层网络结构的传感器BP神经网络,使网络结构的输入变量为传感器的输出周期T及温度电压V,输出变量为压力值P;采集传感器在不同温度、不同压力输入条件下的输出周期及温度电压;采集不同温度和压力条件下传感器输出量作为校试及检验样本点。A method for calibrating a pressure sensor of a resonant cylinder based on a BP neural network, including constructing a sensor BP neural network with a double-hidden layer network structure, so that the input variables of the network structure are the output period T and the temperature voltage V of the sensor, and the output variable is the pressure value P; collect the output cycle and temperature voltage of the sensor under different temperature and pressure input conditions; collect the output of the sensor under different temperature and pressure conditions as a calibration test and inspection sample point.
传感器BP神经网络中,利用双曲正切S型传递函数作为输入层与第一个中间层、第一个中间层与第二个中间层之间的传递函数,利用线性传递函数作为第二个中间层与输出层之间的传递函数。In the sensor BP neural network, the hyperbolic tangent S-type transfer function is used as the transfer function between the input layer and the first intermediate layer, the first intermediate layer and the second intermediate layer, and the linear transfer function is used as the second intermediate layer. The transfer function between the layer and the output layer.
样本点采集时,在-45℃到80℃范围内选取多个温度点,每个温度点选取多个采样点。When collecting sample points, select multiple temperature points within the range of -45°C to 80°C, and select multiple sampling points for each temperature point.
本发明采用BP神经网络构建谐振筒压力传感器校试模型,具体内容如下:The present invention adopts BP neural network to construct the calibration test model of the resonant cylinder pressure sensor, and the specific contents are as follows:
首先进行样本数据采集,采集压力传感器在不同温度、不同压力输入条件下的输出周期及温度电压。例如试验温度点选取-45℃到80℃范围内的14个温度点,在每个温度点下,压力测量点分别选取从高到低压力共计35个压力点,待传感器输出信号稳定后记录试验数据,使其中一部分为校试样本点、一部分为检验样本点。采集的样本数应该尽量多。Firstly, the sample data is collected, and the output cycle and temperature voltage of the pressure sensor are collected under different temperature and pressure input conditions. For example, the test temperature point selects 14 temperature points in the range of -45°C to 80°C. At each temperature point, the pressure measurement points are respectively selected from high to low pressure, a total of 35 pressure points, and the test is recorded after the output signal of the sensor is stable. Data, so that some of them are calibration sample points and some of them are inspection sample points. The number of samples collected should be as large as possible.
在传感器BP神经网络构建中,选择双隐层网络结构,使网络结构的输入变量为传感器的输出周期T及温度电压V,输出变量为压力值P;变量T、V、P经归一化处理为变量X1、X2、O,BP网络模型图如图1所示。In the construction of the sensor BP neural network, the double-hidden layer network structure is selected, so that the input variables of the network structure are the output cycle T and the temperature voltage V of the sensor, and the output variable is the pressure value P; the variables T, V, and P are normalized For the variables X1, X2, O, the BP network model diagram is shown in Figure 1.
由于确定中间层的层数与每个中间层的节点数一直是一个十分复杂的问题,尚无理论上的指导,往往需要根据经验和多次实验来确定。本发明通过多次数据仿真,确定中间层层数优选为2并且每个中间层的节点数优选为4时(例如,2,4,4,1结构),拟合效果较好,也可采用其他数值。Since the determination of the number of layers in the middle layer and the number of nodes in each middle layer has always been a very complicated problem, there is no theoretical guidance, and it often needs to be determined based on experience and multiple experiments. In the present invention, through multiple data simulations, it is determined that the number of intermediate layers is preferably 2 and the number of nodes in each intermediate layer is preferably 4 (for example, 2,4,4,1 structure), the fitting effect is better, and it can also be used other values.
在图1中,输入层节点与第一个中间层节点的网络权值为k系数,第一个中间层节点与第二个中间层节点的网络权值为W系数,第二个中间层节点与输出层节点的网络权值为s系数。网络模型利用双曲正切S型传递函数作为输入层与第一个中间层、第一个中间层与第二个中间层之间的传递函数,函数设计见公式(2)与公式(3):In Figure 1, the network weight of the input layer node and the first intermediate layer node is K coefficient, the network weight of the first intermediate layer node and the second intermediate layer node is W coefficient, and the second intermediate layer node The network weights of the output layer nodes are s coefficients. The network model uses the hyperbolic tangent S-type transfer function as the transfer function between the input layer and the first intermediate layer, and between the first intermediate layer and the second intermediate layer. For the function design, see formula (2) and formula (3):
其中:yi为第一个中间层的输出;xj为输入变量值;kij为输入层与第一个中间层的网络权值;θi为第一个中间层各节点的阈值。Ym为第二个中间层的输出;Wmi为第一个中间层与第二个中间层的网络权值;ωm为第二个中间层各节点的阈值。Among them: y i is the output of the first intermediate layer; x j is the input variable value; k ij is the network weight of the input layer and the first intermediate layer; θ i is the threshold value of each node of the first intermediate layer. Y m is the output of the second intermediate layer; W mi is the network weight of the first intermediate layer and the second intermediate layer; ω m is the threshold of each node of the second intermediate layer.
选取线性传递函数作为第二个中间层与输出层之间的传递函数,函数设计见公式(4):The linear transfer function is selected as the transfer function between the second intermediate layer and the output layer, and the function design is shown in formula (4):
其中:O为模型输出;经反归一化处理可得到输出压力P;sln为第二个中间层与输出层的网络权值;βl为输出层节点的阈值。Among them: O is the model output; the output pressure P can be obtained after denormalization; s ln is the network weight of the second intermediate layer and the output layer; β l is the threshold of the output layer node.
利用样本数据基于神经网络工具平台进行模型训练,训练中对各层的阈值和权值进行修正,使得误差函数沿负梯度方向下降。经样本数据训练得到网络参数的值,其中某次训练结果如下:The sample data is used for model training based on the neural network tool platform. During the training, the threshold and weight of each layer are corrected so that the error function decreases along the negative gradient direction. The values of the network parameters are obtained through sample data training, and one of the training results is as follows:
kij=k ij =
-3.19283709 -7.16055966-3.19283709 -7.16055966
3.07537706 -0.041633073.07537706 -0.04163307
6.06282238 -9.608026256.06282238 -9.60802625
-0.99771530 6.42799254-0.99771530 6.42799254
θi=θ i =
12.4685070012.46850700
-3.48749525-3.48749525
-2.23594779-2.23594779
-1.30846304-1.30846304
Wmi=W mi =
0.06106101 -2.72750488 0.00198993 0.160694640.06106101 -2.72750488 0.00198993 0.16069464
0.03575073 1.17094160 0.02075128 0.085362630.03575073 1.17094160 0.02075128 0.08536263
-0.23359155 0.61221741 1.11657418 0.15811123-0.23359155 0.61221741 1.11657418 0.15811123
0.41401469 0.41214660 1.96806393 0.083917200.41401469 0.41214660 1.96806393 0.08391720
ωm=ω m =
2.754406642.75440664
1.796261791.79626179
-0.94786308-0.94786308
1.498248521.49824852
sln=s ln =
-0.02919945 0.06017406 0.05557906 0.00022849-0.02919945 0.06017406 0.05557906 0.00022849
βl=β l =
0.883762020.88376202
优选采用最快速算法(LM算法)作为BP神经网络的训练方法并逐步将网络学习率、动量项、迭代次数及目标等参数调整到最佳状态。利用样本数据基于MATLAB网络工具平台进行模型训练,训练中对各层的阈值和权值进行修正,使得误差函数沿负梯度方向下降。经样本数据训练得到各网络参数的值。It is preferable to adopt the fastest algorithm (LM algorithm) as the training method of BP neural network, and gradually adjust the parameters such as network learning rate, momentum item, number of iterations and goals to the best state. Using the sample data to carry out model training based on the MATLAB network tool platform, the threshold and weight of each layer are corrected during the training, so that the error function decreases along the negative gradient direction. The value of each network parameter is obtained by training the sample data.
为了比较BP神经网络拟合模型与多项式拟合模型的精度,计算试验样本的2倍剩余标准差2SP,多项式拟合模型为0.250kPa,BP神经网络拟合模型为0.188kPa,拟合精度提高了约25%,如图2所示。图2为不同温度环境下压力测量误差对比效果图,实线表示多项式拟合压力测量误差,点线表示神经网络模型测量误差。In order to compare the accuracy of the BP neural network fitting model and the polynomial fitting model, calculate the 2 times residual standard deviation 2S P of the test sample, the polynomial fitting model is 0.250kPa, the BP neural network fitting model is 0.188kPa, and the fitting accuracy is improved by about 25%, as shown in Figure 2. Figure 2 is a comparison effect diagram of pressure measurement errors under different temperature environments. The solid line represents the polynomial fitting pressure measurement error, and the dotted line represents the measurement error of the neural network model.
本发明将人工智能神经网络应用于传感器校试,选用BP神经网络构建谐振筒压力传感器校试模型,实现传感器高精度压力输出,满足导弹精确控制需求。The invention applies the artificial intelligence neural network to the sensor calibration test, selects the BP neural network to construct the resonant cylinder pressure sensor calibration model, realizes the high-precision pressure output of the sensor, and meets the precise control requirements of the missile.
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210224457.1A CN102759430B (en) | 2012-06-28 | 2012-06-28 | BP (Back Propagation) neural network based high-precision correction and test method for resonance cylinder pressure sensor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210224457.1A CN102759430B (en) | 2012-06-28 | 2012-06-28 | BP (Back Propagation) neural network based high-precision correction and test method for resonance cylinder pressure sensor |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102759430A CN102759430A (en) | 2012-10-31 |
CN102759430B true CN102759430B (en) | 2014-08-20 |
Family
ID=47053967
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210224457.1A Active CN102759430B (en) | 2012-06-28 | 2012-06-28 | BP (Back Propagation) neural network based high-precision correction and test method for resonance cylinder pressure sensor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102759430B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103606007B (en) * | 2013-11-20 | 2016-11-16 | 广东省电信规划设计院有限公司 | Target recognition method and device based on internet of things |
CN104122031A (en) * | 2014-07-31 | 2014-10-29 | 西安交通大学 | Silicon pressure sensor temperature compensation method based on extreme learning machine |
CN104697704A (en) * | 2015-03-13 | 2015-06-10 | 芜湖凯博实业股份有限公司 | Method for detecting discharge pressure faults of water chilling unit |
CN107422891A (en) * | 2016-05-23 | 2017-12-01 | 中兴通讯股份有限公司 | A kind of pressure screen calibration method and device |
CN106248296A (en) * | 2016-09-29 | 2016-12-21 | 胡海峰 | The multivariate of pressure transmitter, alternating temperature scaling method |
CN111412391B (en) * | 2019-01-04 | 2021-12-07 | 合肥暖流信息科技有限公司 | Pipe network leakage detection method and system |
WO2022126468A1 (en) * | 2020-12-17 | 2022-06-23 | 深圳市汇顶科技股份有限公司 | Pressure calibration method, test machine, touch-control chip and touch panel |
CN113780517A (en) * | 2021-08-10 | 2021-12-10 | 北京自动化控制设备研究所 | Data-driven satellite receiver fault prediction method |
CN114544042B (en) * | 2022-04-27 | 2022-11-29 | 成都凯天电子股份有限公司 | A pressure error compensation method for a vibrating cylinder pressure sensor under variable temperature conditions |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102496059A (en) * | 2011-11-25 | 2012-06-13 | 中冶集团武汉勘察研究院有限公司 | Mine shaft well engineering surrounding rock artificial intelligence stage division method |
-
2012
- 2012-06-28 CN CN201210224457.1A patent/CN102759430B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN102759430A (en) | 2012-10-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102759430B (en) | BP (Back Propagation) neural network based high-precision correction and test method for resonance cylinder pressure sensor | |
Xia et al. | Online parameter identification and state of charge estimation of lithium-ion batteries based on forgetting factor recursive least squares and nonlinear Kalman filter | |
Chin et al. | State-of-charge estimation of battery pack under varying ambient temperature using an adaptive sequential extreme learning machine | |
CN105258839A (en) | Array type air pressure measurement compensation device and method based on quantum particle swarm wavelet neural network | |
CN102297687B (en) | Calibrating method for electronic compass | |
CN107247989A (en) | A kind of neural network training method and device | |
CN104181214B (en) | Small-signal sectional fitting temperature compensation method of water quality sensor | |
Sushchenko et al. | Processing of redundant information in airborne electronic systems by means of neural networks | |
Xia et al. | A new method for state of charge estimation of lithium-ion battery based on strong tracking cubature kalman filter | |
Yang et al. | Improved battery parameter estimation method considering operating scenarios for HEV/EV applications | |
CN102096373A (en) | Microwave drying PID (proportion integration differentiation) control method based on increment improved BP (back propagation) neural network | |
Du et al. | Research on co-estimation algorithm of soc and soh for lithium-ion batteries in electric vehicles | |
CN104992225A (en) | Large-deformation flexible body dynamic measurement data temperature and humidity compensation method | |
CN112329334B (en) | MWHTS and MWTS-II fusion inversion sea surface air pressure method based on simulated bright temperature | |
CN106200377A (en) | An Estimation Method of Aircraft Control Parameters | |
CN117744455B (en) | Dynamic correction method of test digital twin considering loading deviation | |
CN106092138A (en) | A kind of silicon micro-gyroscope temperature compensation based on microprocessor | |
CN107607105A (en) | Optical fibre gyro nonlinear temperature error compensating method based on fractional order differential | |
CN104820757B (en) | MEMS gyro temperature drift characteristic neural network modeling approach based on physical model | |
CN107220450B (en) | A kind of continuously distributed mechanics parameter field indirect gain method of heterogeneous material | |
CN108345213A (en) | Tight methods of self-tuning of the format Non-Model Controller based on systematic error of MIMO | |
CN108896456B (en) | Aerosol extinction coefficient inversion method based on feedback type RBF neural network | |
Wang et al. | Research on temperature compensation of multi-channel pressure scanner based on an improved cuckoo search optimizing a BP neural network | |
CN115688288B (en) | Aircraft pneumatic parameter identification method and device, computer equipment and storage medium | |
Zhang et al. | High-precision and robust SOC estimation of LiFePO4 blade batteries based on the BPNN-EKF algorithm |
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 |