Structural system noise error assessment method combining Bayesian network and Kalman filter
By combining Bayesian network and Kalman filter, the problem of difficulty in determining noise covariance in traditional Kalman filter is solved, accurate assessment and real-time update of noise error in civil engineering structures are achieved, and the accuracy and application of structural health monitoring are improved. sex.
Patent Information
- Application Number
- CN202111179110.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-09
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-10-09
AI Technical Summary
In the health monitoring of civil engineering structures, it is difficult to accurately determine the process noise covariance Q in the traditional Kalman filter algorithm, which makes it difficult to evaluate the noise error. Especially in complex civil structures, existing methods have subjectivity and application limitations.
Combining Bayesian networks and Kalman filtering, by establishing Bayesian networks with noise and without noise, infer node state probabilities, avoid Q tuning, and use the L1 norm loss method to evaluate the impact of noise errors, determine the source of errors and evaluate noise error.
It effectively avoids the problem of determining Q in the traditional KF algorithm, realizes real-time noise error assessment and error source judgment, and improves the accuracy and engineering applicability of structural system noise error assessment.
Smart Images

Figure CN113919223B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of civil engineering structure health monitoring, and relates to a structural system noise error evaluation method combining Bayesian network and Kalman filtering. Background Art
[0002] Traditional Kalman filtering (KF) makes the best estimate of the system state based on the input-response test data. This process also filters the system noise (defined here as system disturbance, model error and observation data error). Therefore, it can be regarded as a data processing technology that restores the real test data after removing the noise. It has the advantages of real-time update and easy programming. It has also been applied to the data processing of civil engineering structure health monitoring.
[0003] There are three covariance matrices in the KF learning process that run through the entire reasoning process but are difficult to determine, namely the state covariance matrix P, the process noise covariance Q, and the measurement noise covariance matrix R. The determination of Q is mainly initialized by the perturbation of other quantities by the highest-order state quantity, and this perturbation is often difficult to capture. The usual practice is tuning, but there is a lot of subjectivity, and it is difficult to determine how large Q should be adjusted. In addition, test noise is inevitably present in actual civil structure testing, and R also needs to be determined before applying the KF algorithm. The noise error evaluation of the structural system is often difficult for civil structures with large geometric dimensions, a wide variety of components, and complex systems.
[0004] At present, the main methods for processing noise are filter removal, forced noise removal, default threshold noise removal, and given soft and hard threshold noise removal. One of the classic algorithms is to filter noise based on filters and their derivative algorithms (such as extended Kalman filter and unscented Kalman filter), but the three covariance matrices of the Kalman filter process are difficult to determine, which limits the scope of application of Kalman filter.
[0005] Bayesian network (BN) is an effective theoretical model that uses network node variables to represent the parameters of the structural system. It can infer and update the values of other node variables in real time based on incomplete test evidence of some nodes. It is in line with the current situation that the number of sensors in civil engineering health monitoring is difficult to meet the requirements of full-scale structural testing. The inference results of BN learned from different monitoring data are definitely different, so it can be used to evaluate the impact of noise. Summary of the invention
[0006] In view of the gaps and deficiencies in the prior art, the object of the present invention is to provide a structural system noise error assessment method combining Bayesian network and Kalman filtering.
[0007] BN reasoning is used to avoid tuning the process noise covariance Q in the KF algorithm, so as to achieve the purpose of filtering noise and locking the current optimal state probability of the BN node.
[0008] The technical solution of the present invention includes several steps such as BN establishment, optimal probability value estimation of BN node status, judgment of noise error source, and evaluation of noise error impact. The following technical solutions are specifically adopted:
[0009] A method for evaluating structural system noise error combining Bayesian network and Kalman filtering, characterized by comprising the following steps:
[0010] Step S1: Using the noisy and non-noisy system observation data as samples, construct Bayesian networks BN1 and BN2 respectively.
[0011] Step S2: Input the noise-free measured data and the noisy measured data into BN1 and BN2 respectively, and obtain the predicted and measured node state probabilities of each node after inference. Substitute the two into the Kalman filter algorithm respectively, and obtain the optimal state probability of each node in the Bayesian network after derivation;
[0012] Step S3: Compare the optimal state probability data of the node with the predicted node state probability and the measured state probability to determine the source of the error.
[0013] Furthermore, the method further comprises step S4: evaluating the influence of system noise error by using L1 norm loss method.
[0014] Furthermore, step S1 specifically includes: the establishment of BN includes two parts: grid topology definition and parameter learning: wherein, the topology definition adopts a network structure learning algorithm or is obtained based on expert experience; using noisy and noise-free system observation data as samples, the network parameters are learned, and the conditional probability table between node variables is obtained to complete the establishment of BN; wherein BN1 is a Bayesian network established based on real system observation data, and BN2 is a Bayesian network learned from noisy data obtained by field sensors.
[0015] Furthermore, step S2 specifically includes the following steps:
[0016] Step S21: Obtain the BN optimal state probability Xi(t-1) and the posterior probability covariance p(t-1) at time t-1;
[0017] Step S22: Input the noise-filtered measured data obtained at the current time t into BN1, and obtain the state probability data X of each node through inference. - 1(t),X - 2(t)…X - i(t), and output the covariance p of the predicted value at the same time -(t); Input the measured data with noise into BN2, and infer the predicted state probability of each node Z1(t), Z2(t),…, Zn(t);
[0018] Step S23: Based on the state probability data of each node obtained by BN2 and the state value of each member at time tk obtained by BN1, - 1(t),X - 2(t),…,X - n(t), predict the optimal values X1(t), X2(t),…, Xn(t) at time t.
[0019] Furthermore, in step S22, the noise-filtered measured data obtained at the current time t is input into BN1, and the state probability data X of each node is obtained through inference. - 1(t),X - 2(t),,,X - i(t), and output the covariance p of the predicted value at the same time - (t), calculated as follows:
[0020] P - (t) = AP (t-1) A T +Q (1)
[0021] A=X - i (t)X i (t-1) T (2)
[0022] Where A is the state transfer matrix; X i (t-1) is the optimal value of the state probability of each node in BN at time t-1; Q is the process excitation noise covariance, which is 0;
[0023] Step S23 is specifically calculated by the following formula:
[0024]
[0025] X i (t) = X - i (t)+K(t)(Z i (t)-HX - i (t)) (4)
[0026] P(t)=(1-K(t)H)P - (t) (5)
[0027] H=O i T u i (6)
[0028] Where H is the conversion matrix between the node state probability data inferred by BN1 and BN2; K(t) is the filter gain matrix; P(t) is the posterior probability covariance at time t; R is the covariance of the measurement noise.
[0029] Furthermore, in step S3, the optimal values of the node state probabilities X1(t), X2(t), ..., Xn(t) obtained in step S2 are respectively compared with Z1(t), Z2(t), ..., Zn(t) and X - 1(t),X - 2(t),…,X - n(t) is compared to determine the error between the optimal value and the predicted value and the measured value, so as to judge whether the system error comes from the BN modeling error or the noise error.
[0030] Furthermore, step S4 is specifically as follows:
[0031] According to the L1 norm loss method, the noise error impact at time t is evaluated by equation (7):
[0032]
[0033] The above formula MAE(X i (t), Z i (t)) is the evaluation result of the noise error at time t, X i (t) is the optimal value of node probability at time t, Z i (t) is the node state probability output by BN2 at time t, and n is the number of BN nodes.
[0034] Compared with the prior art, the present invention and its preferred solution can be used to evaluate the impact of measured health monitoring data on structural system errors, and its advantages include: (1) With the help of BN, the determination of the process excitation noise covariance Q in the traditional KF algorithm can be effectively avoided, which is convenient for engineering applications; (2) With the help of the optimal estimate of KF output, it is possible to effectively determine whether the system error comes from BN modeling error or noise error. (3) The evaluation results can be updated in real time. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The present invention is further described in detail below with reference to the accompanying drawings and specific embodiments:
[0036] Figure 1 The figure is a schematic diagram of the method flow of an embodiment of the present invention. DETAILED DESCRIPTION
[0037] In order to make the features and advantages of this patent more obvious and easy to understand, the following embodiments are specifically described in detail as follows:
[0038] like Figure 1As shown, the technical solution included in this embodiment includes four steps: BN establishment, optimal probability value estimation of BN node status, determining the source of noise error, and evaluating the impact of noise error.
[0039] 1. BN establishment
[0040] The establishment of BN includes two parts: grid topology definition and parameter learning. The topology definition is obtained by using a network structure learning algorithm or based on expert experience. Then, the network parameters are learned using noisy and non-noisy system observation data as samples to obtain the conditional probability table between node variables and complete the establishment of BN. BN1 is a Bayesian network established based on real system observation data (without noise or with noise removed), and BN2 is a network learned from noisy data obtained by field sensors.
[0041] 2. Estimation of the optimal probability value of BN node status
[0042] If the optimal state probability of each node in BN at time t-1 is known: set it as Xi(t-1) (i is the number of nodes, i = 1, 2, ..., n), and assume that the posterior probability covariance at time t-1 is p(t-1). Input the noise-free measured data obtained at the current time t into BN1, and obtain the state probability data X of each node through inference. - 1(t),X - 2(t),,,X - i(t), and output the covariance p of the predicted value at the same time - (t), calculated as follows:
[0043] P - (t) = AP (t-1) A T +Q (1)
[0045] A=X - i (t)X i (t-1) T (2)
[0047] Where A is the state transfer matrix; X i (t-1) is the optimal value of the state probability of each node of BN at time t-1; Q is the process excitation noise covariance (Q=0), which is used to estimate the state variables in the discrete time process and can also be used to predict the error caused by the model itself. In this embodiment, the predicted value and measured value of KF are inferred by BN1 and BN2, so Q is zero.
[0048] Input the noisy data into BN2 and infer the predicted state probabilities of each node Z1(t), Z2(t),…, Zn(t). Then, based on the state probability data of each node inferred by BN2 and the state value of each member at time tk inferred by BN1, we can calculate - 1(t),X - 2(t),…,X - n(t), predict the optimal values X1(t), X2(t),…, Xn(t) at time t. The specific steps are as follows:
[0049]
[0050] X i (t) = X - i (t)+K(t)(Z i (t)-HX - i (t)) (4)
[0051] P(t)=(1-K(t)H)P - (t) (5)
[0052] H=O i T u i (6)
[0053] Where H is the conversion matrix between the node state probability data inferred by BN1 and BN2; K(t) is the filter gain matrix; P(t) is the posterior probability covariance at time t; R is the covariance of the measurement noise.
[0054] 3. Determine the source of noise error
[0055] The optimal values of the node state probabilities X1(t), X2(t), ..., Xn(t) obtained in step 2 are respectively compared with Z1(t), Z2(t), ..., Zn(t) and X - 1(t),X - 2(t),…,X - n(t) is compared to determine the error between the optimal value and the predicted value and the measured value, so as to judge whether the system error comes from the BN modeling error or the noise error.
[0056] 4. Evaluate the impact of noise errors
[0057] According to the L1 norm loss method, the noise error impact at time t is evaluated by equation (7):
[0058]
[0059] The above formula MAE(X i (t),Z i(t)) is the evaluation result of the noise error at time t, X i (t) is the optimal value of node probability at time t, Z i (t) is the node state probability output by BN2 at time t, and n is the number of BN nodes.
[0060] It can generally be briefly summarized into the following implementation steps:
[0061] Step 1: First, define the BN topology through the network structure learning algorithm or expert experience, take the noisy and noise-free system observation data as samples, learn the network parameters and establish BN1 and BN2 respectively.
[0062] Step 2: Input the measured evidence into BN1 and BN2 respectively, and obtain the predicted and measured node state probabilities of each node after inference. Substitute the two into the KF algorithm respectively, and obtain the optimal state probability of each node in BN after deduction.
[0063] Step 3: Compare the optimal state probability data of the node with the predicted node state probability and the measured state probability to determine the source of the error.
[0064] Step 4: Evaluate the impact of system noise error through the L1 norm loss method.
[0065] This patent is not limited to the above-mentioned optimal implementation mode. Anyone can derive other forms of structural system noise error assessment methods combining Bayesian networks and Kalman filters under the inspiration of this patent. All equal changes and modifications made according to the scope of the patent application of the present invention should be covered by this patent.
Claims
1. A method for evaluating structural system noise errors by combining Bayesian networks and Kalman filtering. It is characterized in that The following steps are involved: Step S1: Using the noise-free and noise-containing system observation data as samples, construct Bayesian networks BN1 and BN2 respectively; Step S2: Input the noise-free measured data and the noisy measured data into BN1 and BN2 respectively, and obtain the predicted and measured node state probabilities of each node after inference. Substitute the two into the Kalman filter algorithm respectively, and obtain the optimal state probability of each node in the Bayesian network after derivation; Step S3: Compare the optimal state probability data of the node with the predicted node state probability and the measured state probability to determine the source of the error; Step S2 specifically includes the following steps: Step S21: Obtain the BN optimal state probability X at time t-1 i (t-1) and the posterior probability covariance p(t-1); Step S22: Input the noise-filtered measured data obtained at the current time t into BN1, and obtain the state probability data X of each node through inference. - 1 (t), X - 2 (t)…X - i (t), and output the covariance p of the predicted value at the same time - (t); Input the measured data with noise into BN2 and infer the predicted state probability Z of each node 1 (t),Z 2 (t),…,Z n (t); Step S23: Based on the predicted state probability data of each node obtained by BN2 reasoning, and the state probability data X of each node at time tk obtained by BN1 reasoning - 1 (t),X - 2 (t),…,X - n (t), predict the optimal value X at time t 1 (t),X 2 (t),…,X n (t); In step S22, the noise-filtered measured data obtained at the current time t is input into BN1, and the state probability data X of each node is obtained through inference. - 1 (t), X - 2 (t)…X - i (t), and output the covariance p of the predicted value at the same time - (t), calculated as follows: p - (t)=Ap(t-1)A T +Q (1) A=X - i (t)X i (t-1) T (2) Where A is the state transfer matrix; X i (t-1) is the optimal value of the state probability of each node in BN at time t-1; Q is the process excitation noise covariance, which is 0; Step S23 is specifically calculated by the following formula: X i (t)=X - i (t)+K(t)(Z i (t)-HX - i (t)) (4) p(t)=(1-K(t)H)p - (t) (5) H=O i T u i (6) Where H is the conversion matrix between the node state probability data inferred by BN1 and BN2; K(t) is the filter gain matrix; p(t) is the posterior probability covariance at time t; R is the covariance of the measurement noise.
2. The method for evaluating structural system noise error combining Bayesian network and Kalman filtering according to claim 1, Features: The method further includes step S4: evaluating the influence of system noise error by L1 norm loss method.
3. The method for evaluating structural system noise error combining Bayesian network and Kalman filtering according to claim 1, Features: Step S1 specifically includes: the establishment of BN includes two parts: grid topology definition and parameter learning: wherein, the topology definition adopts the network structure learning algorithm or is obtained based on expert experience; using the noise-free and noisy system observation data as samples, the network parameters are learned, and the conditional probability table between the node variables is obtained to complete the establishment of BN; wherein, BN1 is a Bayesian network established based on the real system observation data, and BN2 is a Bayesian network learned from the noisy data obtained by the field sensors.
4. The method for evaluating structural system noise error combining Bayesian network and Kalman filtering according to claim 1, Features: In step S3, the optimal value X of the state probability of each node obtained in step S2 is 1 (t),X 2 (t),…,X n (t) and Z 1 (t),Z 2 (t),…,Z n (t) and X - 1 (t),X - 2 (t),…,X - n (t) Compare and determine the error between the optimal value and the predicted value and the measured value, so as to judge whether the system error comes from the BN modeling error or the noise error.
5. The method for evaluating structural system noise error combining Bayesian network and Kalman filtering according to claim 2, Features: Step S4 is specifically as follows: According to the L1 norm loss method, the noise error impact at time t is evaluated by equation (7): The above formula MAE(X i (t),Z i (t)) is the evaluation result of the noise error at time t, X i (t) is the optimal value of node probability at time t, Z i (t) is the node state probability output by BN2 at time t, and n is the number of BN nodes.
Citation Information
Patent Citations
Combination navigation filtering method of multi-model underwater vehicle
CN103776453A
A target tracking method with colored measurement noise and variational Bayesian adaptive Kalman filter
CN109508445A
Structural system noise error evaluation method combining Bayesian networks and Kalman filtering
CN113919223A
State estimating apparatus and method
JP2009031096A
