A method for discovering causal structures between data based on asymmetric information flow
Process time series data through asymmetric information flow and FCI algorithms to determine causal relationships, solving the problems of false relationships and low accuracy in causal relationship discovery in time series data, and achieving high-accuracy generation of cause-and-effect diagrams.
Patent Information
- Application Number
- CN202410852300.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-06-28
AI Technical Summary
The existing technology has problems such as false relationships, low time resolution, unobserved variables and observation noise in the causal relationship discovery of time series data, which leads to a reduction in the accuracy of causal relationships, especially when the data is nonlinear and non-stationary during the fault process. Traditional methods Method applicability is insufficient.
A causal structure discovery method between data based on asymmetric information flow is adopted. By obtaining timestamp data, using the FCI algorithm to generate an undirected complete graph, and using information flow to determine the causal direction, the information flow is calculated based on the information entropy and marginal entropy change rate, and then Determine cause and effect relationships and generate clear cause and effect diagrams.
It improves the accuracy of causal diagram generation, can determine the causal direction between data under time changes, generates a unique causal structure diagram, and overcomes the problems of false relationships and low accuracy in the existing technology.
Smart Images

Figure CN118394815B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of causal diagnosis, and in particular to a method for discovering causal structures between data based on asymmetric information flow. Background Art
[0002] The field of causal structure generation is currently developing very rapidly. Popular research is based on constraint methods. The advantage of this type of method is that it has a wide range of applicability, but it is more complicated to process data and is based on non-time series data sets. It also requires more sufficient assumptions and is prone to contain erroneous edges and directions. After processing, it generates a Markov equivalence class.
[0003] In the variable X 2 After the intervention, the variables X1 With variable X 2 They are independent of each other, so it is impossible to determine a unique causal skeleton diagram. At this time, a method based on a functional causal model will be used. This method is an improvement based on the constraint method. Currently, the more popular functional causal models include: LiGAN model, ANM (additive noise model), PNL, etc. Although the above models can handle causal relationships, they need to meet specific conditions. For example, the data referenced in the LiNGAN model must be linear non-Gaussian acyclic data, and the ANM model must meet the additive noise scenario, etc. At the same time, there are many research gaps in causal discovery based on time series observation data. The more typical methods are transfer entropy and Granger causal discovery, but the Granger causal discovery method has problems such as unobserved variables, low temporal resolution, and observation noise, which can lead to false Granger causal relationships. Transfer entropy theorem causal discovery sometimes cannot restore many preset unidirectional causal relationships, and may also give the wrong direction. At the same time, the data observed during the failure process is often nonlinear and non-stationary. The traditional causal discovery method is not applicable enough, resulting in a decrease in the accuracy of the generated causal relationship, so it needs to be solved urgently. Summary of the invention
[0004] In order to avoid and overcome the technical problems existing in the prior art, the present invention provides a method for discovering causal structures between data based on asymmetric information flow. The present invention can effectively improve the accuracy of causal graph generation.
[0005] To achieve the above object, the present invention provides the following technical solutions:
[0006] A method for discovering causal structures between data based on asymmetric information flow includes the following generation steps:
[0007] S1. Obtain time series data with timestamps, and divide the time series data into multiple data time slices in chronological order;
[0008] S2, use the FCI algorithm to perform causal inference on each data time slice to generate the corresponding undirected complete graph;
[0009] S3. Use information flow to determine the causal direction of the three-variable causal relationship in each undirected complete graph to obtain the corresponding causal graph with complete causal relationship.
[0010] As a further technical solution of the present invention: the specific steps of using information flow to determine the causal orientation of the causal relationship between three variables are as follows:
[0011] S31. Select a variable X from the undirected complete graph corresponding to the current time period. 2 ; and use the variable X 2 is the central variable, and two variables X adjacent to the central variable are selected from the undirected complete graph. 1 and variable X 3 As adjacent variables; the central variable and two adjacent variables together constitute the three-variable causal term (X 1, X 2, X 3 );
[0012] S32, calculate the three-variable causal term (X) through the corresponding calculation formula 1, X 2, X 3 ) is the information entropy change rate of each variable in, and the corresponding marginal entropy change rate;
[0013] S33, calculate the three-variable causal term (X 1, X 2, X 3 ) information flow between the variables;
[0014] S34, based on the calculated information flow, according to the causal direction judgment criteria, judge the three-variable causal term (X 1, X 2, X 3 ) between the variables;
[0015] S35, determining the causal orientation of all three-variable node items in the current undirected complete graph according to the contents of steps S31 to S34, so as to transform the current undirected complete graph into an ancestor graph with clear causal relationships;
[0016] S36. According to the time sequence and the content of step S35, each undirected complete graph within the total time T is converted into a corresponding ancestor graph.
[0017] As a further technical solution of the present invention: variable X 1 The calculation formula of the information entropy change rate is as follows:
[0018] ;
[0019] In the formula, Indicates that in the current time period (t i ,t i+Δt ) and is in t i+Δt At time , the variable X 1 The information entropy of Δt represents the time interval, t i represents the i-th moment; express The rate of change over time, i.e. the variable X 1 The rate of change of information entropy; E represents expectation; F 1 Represents variable X 1 Time-varying input functions; Indicates that in the current time period (t i ,t i+Δt ) and is in t i+Δt At time , the variable X 1 The marginal probability density function of ; Indicates the symbol for multivariate derivative; g1 11 represents the first-order matrix parameter; log represents the exponential function;
[0020] VARIABLE X 2 The rate of change of information entropy includes variables X 2 The first information entropy change rate and variable X 2 The second information entropy change rate;
[0021] VARIABLE X 2 The calculation formula of the first information entropy change rate is as follows:
[0022] ;
[0023] In the formula, Indicates that in the current time period (t i ,t i+Δt ) and is in t i+Δt At time , the variable X 2 The first information entropy; express The rate of change over time, i.e. the variable X 2 The first information entropy change rate; F 2 Represents variable X 2 Time-varying input functions; Indicates that in the current time period (t i ,t i+Δt ) and is in t i+Δt At time , the variable X 2 The marginal probability density function of g122 Represents the first and second order matrix parameters;
[0024] VARIABLE X 2 The calculation formula of the second information entropy change rate is as follows:
[0025] ;
[0026] In the formula, Indicates that in the current time period (t i ,t i+Δt ) and is in t i+Δt At time , the variable X 2 The second information entropy; express The rate of change over time, i.e. the variable X 2 The second information entropy change rate; g2 22 represents the second second-order matrix parameter;
[0027] VARIABLE X 3 The rate of change of information entropy includes variables X 3 The first information entropy change rate and variable X 3 The second information entropy change rate;
[0028] VARIABLE X 3 The calculation formula of the first information entropy change rate is as follows:
[0029] ;
[0030] In the formula, Indicates that in the current time period (t i ,t i+Δt ) and is in t i+Δt At time , the variable X 3 The first information entropy; express The rate of change over time, i.e. the variable X 3 The first information entropy change rate; F 3 Represents variable X 3 Time-varying input functions; Indicates that in the current time period (t i ,t i+Δt ) and is in t i+Δt At time , the variable X 3 The marginal probability density function of g1 33 Represents the first and third order matrix parameters;
[0031] VARIABLE X 3 The calculation formula of the second information entropy change rate is as follows:
[0032] ;
[0033] In the formula, it means that in the current time period (t i ,t i+Δt ) and is in t i+Δt At time , the variable X 3 The second information entropy; express The rate of change of variable X 3 The second information entropy change rate; g2 33 Represents the second and third order matrix parameters.
[0034] As a further technical solution of the present invention: variable The marginal entropy change rate is calculated as follows:
[0035] ;
[0036] In the formula, Indicates that in the current time period (t i ,t i+Δt ) and is in t i+Δt At time , excluding variable X 2 For variable X 1 Influence of other variables on variable X 1 marginal entropy at the time of impact; express The rate of change over time, i.e. the variable X 1 The marginal entropy change rate of Indicates that in the current time period (t i ,t i+Δt ) and is in t i+Δt At time , excluding variable X 2 For variable X 1 Influence of variable X 1 The marginal probability density function of ; dX 3 Represents variable X 3 The differential of dX n Represents variable X n The differential of , n represents the total number of categories of the variable;
[0037] VARIABLE X 2 The marginal entropy change rate includes the variable X 2 The first marginal entropy change rate and variable X 2 The second marginal entropy change rate;
[0038] VARIABLE X 2 The calculation formula for the first marginal entropy change rate is as follows:
[0039] ;
[0040] In the formula, Indicates that in the current time period (t i ,t i+Δt ) and is in t i+Δt At time , excluding variable X 1 For variable X 2 Influence of other variables on variable X 2 The marginal entropy when the effect occurs, that is, the variable X 2 The first marginal entropy of; express The rate of change over time, i.e. the variable X 2 The first marginal entropy change rate of; Indicates that in the current time period (t i ,t i+Δt ) and is in t i+Δt At time , excluding variable X 1 For variable X 2 Influence of variable X 2 The marginal probability density function of ;
[0041] VARIABLE X 2 The calculation formula of the second marginal entropy change rate is as follows:
[0042] ;
[0043] In the formula, Indicates that in the current time period (t i ,t i+Δt ) and is in t i+Δt At time , excluding variable X 3 For variable X 2 Influence of other variables on variable X 2 The marginal entropy when the effect occurs, that is, the variable X 2 The second marginal entropy of express The rate of change over time, i.e. the variable The second marginal entropy change rate; Indicates that in the current time period (t i ,t i+Δt ) and is in t i+Δt At time , excluding variable X 3 For variable X 2 Influence of variable X 2 The marginal probability density function of ;
[0044] VARIABLE X 3The marginal entropy change rate includes the variable The first marginal entropy change rate and variable The second marginal entropy change rate;
[0045] VARIABLE X 3 The calculation formula for the first marginal entropy change rate is as follows:
[0046] ;
[0047] In the formula, Indicates that in the current time period (t i ,t i+Δt ) and is in t i+Δt At time , excluding variable X 2 For variable X 3 Influence of other variables on variable X 3 The marginal entropy when the effect occurs, that is, the variable X 3 The first marginal entropy of; express The rate of change over time, i.e. the variable X 3 The first marginal entropy change rate of; Indicates that in the current time period (t i ,t i+Δt ) and is in t i+Δt At time , excluding variable X 2 For variable X 3 Influence of variable X 3 The marginal probability density function of ;
[0048] variable The calculation formula of the second marginal entropy change rate is as follows:
[0049] ;
[0050] In the formula, Indicates that in the current time period (t i ,t i+Δt ) and is in t i+Δt At time , excluding variable X 2 For variable X 3 Influence of other variables on variable X 3 The marginal entropy when the effect occurs, that is, the variable X 3 The second marginal entropy of express The rate of change over time, i.e. the variable X 3 The second marginal entropy change rate; Indicates that in the current time period (t i ,t i+Δt ) and is in t i+ΔtAt time , excluding variable X 2 For variable X 3 Influence of variable X 3 The marginal probability density function of .
[0051] As a further technical solution of the present invention: variable X 2 To variable X 1 The information flow rate is calculated as follows:
[0052] ;
[0053] In the formula, Indicates that in the current time period (t i ,t i+Δt ) and is in t i+Δt At time , the variable X 2 To variable X 1 The amount of information transmitted;
[0054] VARIABLE X 1 To variable X 2 The information flow rate is calculated as follows:
[0055] ;
[0056] In the formula, Indicates that in the current time period (t i ,t i+Δt ) and is in t i+Δt At time , the variable X 1 To variable X 2 The amount of information transmitted;
[0057] VARIABLE X 2 To variable X 3 The information flow rate is calculated as follows:
[0058] ;
[0059] In the formula, Indicates that in the current time period (t i ,t i+Δt ) and is in t i+Δt At time , the variable X 2 To variable X 3 The amount of information transmitted;
[0060] VARIABLE X 3 To variable X 2 The information flow rate is calculated as follows:
[0061] ;
[0062] In the formula, Indicates that in the current time period (t i ,t i+Δt ) and is in t i+Δt At time , the variable X 3 To variable X 2 The amount of information transmitted;
[0063] VARIABLE X 1 To variable X 3 The information flow rate is calculated as follows:
[0064] ;
[0065] In the formula, Indicates that in the current time period (t i ,t i+Δt ) and is in t i+Δt At time , the variable X 1 To variable X 3 The amount of information transmitted.
[0066] As a further technical solution of the present invention: the causal orientation judgment criterion is specifically expressed as follows:
[0067] First judgment condition A: When all the judgment expressions of the first judgment condition A are established, the variable X 1 ,VARIABLE X 2 and variable X 3 The causal relationship between them is: X 1 →X 2 →X 3 ; The first judgment condition A is specifically expressed as follows:
[0068] ;
[0069] Second judgment condition B: When all the judgment expressions of the second judgment condition B are established, the variable X 1 ,VARIABLE X 2 and variable X 3 The causal relationship between them is: X 1 ←X 2 →X 3 ; The second judgment condition B is specifically expressed as follows:
[0070] ;
[0071] The third judgment condition C: When all the judgment expressions of the third judgment condition C are established, the variable X 1 ,VARIABLE X 2 and variable X 3 The causal relationship between them is: X 1 →X 2 ←X3 ; The third judgment condition C is specifically expressed as follows:
[0072] .
[0073] Compared with the prior art, the present invention has the following beneficial effects:
[0074] 1. The present invention combines skeleton generation with causal orientation to generate causal structure, considering the problem of determining the causal direction between data under time changes. The FCI algorithm is used to preprocess the data, and the preprocessing results show Markov equivalence classes. Then, the concept of information flow is borrowed, and by modeling the dynamic system, an asymmetric information mechanism is adopted to quantitatively characterize the transmission of information between causal variables, and causally orient the direct causal pairs in the established mathematical model. Finally, a unique causal structure diagram is generated, thereby effectively improving the accuracy of causal diagram generation. BRIEF DESCRIPTION OF THE DRAWINGS
[0075] Figure 1 It is a flow chart of the present invention.
[0076] Figure 2 This is a schematic diagram of the information flow principle in the present invention.
[0077] Figure 3 It is a cause-effect framework diagram of an embodiment of the present invention.
[0078] Figure 4 It is the cause-effect diagram in the present invention. DETAILED DESCRIPTION
[0079] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0080] A method for discovering causal structures between data based on asymmetric information flow, such as Figure 1 As shown, it includes three parts. The first part is to obtain the original data, the second part is to use the FCI algorithm to obtain the corresponding undirected complete graph, and the third part is to use the information flow to obtain the corresponding causal graph.
[0081] 1. Get the original data.
[0082] Get time series data with timestamps, and divide the time series data into multiple data time slices in chronological order. The specific process is as follows:
[0083] Data collection is performed through a bearing fault test bench in the prior art, which can meet the needs of collecting fault data of bearings under variable working conditions such as variable speed and variable load. It is mainly achieved by simultaneously obtaining time series data of various variables changing over time through multiple different types of sensors on the bearing fault test bench. The collected time series data include data such as bearing vibration, bearing rotation acceleration, and bearing speed. When dividing the time series data, it is divided in equal time intervals, and the time interval is Δt, so that the time series data corresponding to each other in the same time range are divided into multiple corresponding data time slices, that is, the time series data is divided into several data segments in turn.
[0084] 2. Obtain an undirected complete graph.
[0085] Use the FCI algorithm to perform causal inference on each data time slice to generate the corresponding undirected complete graph. The specific process is as follows:
[0086] The FCI algorithm is used to process the causal relationship between each variable in the data time slice and determine the adjacency relationship in the data time slice. When two variables are adjacent in the ancestor graph, they have an adjacency relationship only if they are not separated by any other set of variables in the ancestor graph. Therefore, the basic idea is to search for a set of other variables that make them conditionally independent for each pair of variables. They are not adjacent if and only if such a set is found. For the FCI algorithm, given a reliable conditional independence prophecy, the FCI algorithm can find the correct adjacency relationship. The FCI algorithm implements a set of direction rules (i.e., labeling inference rules) to introduce arrows or tails. The output of the FCI algorithm is called a partial ancestor graph, or PAG for short. It is intended to represent the Markov equivalence class determined by the prediction of conditional independence. It is assumed that the nodes in the Markov class generated here contain all the node information to be studied, but the direction of the edges between the nodes cannot be determined for the time being, that is, the generated partial ancestor graph is recorded as an undirected complete graph.
[0087] 3. Obtain a clear causal diagram between variables.
[0088] Information flow is abstractly represented as the flow of information between variables, or information transfer. Suppose we need to find the information from variable X 2 to variable X 1 The information flow of 1 How does the information entropy of evolve? Information entropy can be understood as the 1 Or the variable X 2It is a measure of uncertainty. It can be simply understood that the greater the information entropy of a system, the higher the uncertainty of the system. In the process of information flow, if the information entropy value decreases a lot after obtaining the information, it means that the information is more valuable. And the information entropy is non-negative. The information in a system will never increase the uncertainty of the system during the flow process. At the same time, the information of one variable in a system flows into another variable. If both variables change over time, then in the same time interval, the speed after the information flows in is greater than the speed before the information flows in.
[0089] like Figure 2 As shown, Figure 2 ① represents the variable X 1 Its main information flow (will be affected by noise and other factors); ② represents the period (t i ,t i+Δt ) from variable X 2 Import variable X 1 information flow.
[0090] At t i+Δt At time , the variable X 2 The information flow size may come from two different drivers, including: variable X 1 Its own internal mechanism, namely X 1 Its own main information flow, and variable X 2 The external influence of the variable X 2 The external influence comes from variable X 2 Therefore, the following definitions are given:
[0091] VARIABLE X 1 Its internal mechanism is expressed as: marginal entropy change rate ; When H has a superscript *, it represents marginal entropy; when there is no superscript *, it represents information entropy.
[0092] VARIABLE X 2 External influences are expressed as: , that is, variable X 2 Flow direction variable X 1 Information flow, there is no time superscript t i+Δt , so it is a general term with a time superscript t i+Δt If , it is a description of a specific point in time. Then we have:
[0093] ;
[0094] Given a system, the probability density function of the system has a Liouville equation, which can be used to directly determine the rate of change of information entropy. .
[0095] VARIABLE X 1 and variable X 2 The joint entropy H(X 1, X 2 )for:
[0096] ;
[0097] In the formula, x 1,i Represents variable X 1 The i-th value of variable X 1 There are N possible values. 2,j Represents variable X 2 The jth value of variable X 2 There are M values in total. Represents variable X 1 and variable X 2 The joint distribution of .
[0098] H(X 1, X 2 ) follows the following rules:
[0099] ;
[0100] In the formula, is the divergence operator; F represents the function of the variable changing over time, which can be a linear function or other functions, and can be obtained by statistical analysis or fitting of the variable values. ρ marginal probability density function, that is, when the variable X 1 and variable X 2 When it is a continuous value, it is represented by ρ, otherwise it is represented by To represent. 1 Represents variable X 1 A value of dx 1 Represents x 1 The differential of x 2 Represents variable X 2 A value of , dx 2 Represents x 2 The differential of .
[0101] Therefore, according to the principle of joint distribution, we can get variable X 1 The marginal entropy change rate :
[0102] ;
[0103] The marginal entropy change rate is exactly the mathematical expectation of the vector field divergence. As the system moves, the change in its joint entropy is completely controlled by the contraction or expansion of the system's phase space.
[0104] Based on the above analysis of the marginal entropy change rate, we can get:
[0105] ;
[0106] In the formula, Represents variable X 1 and variable X 2 is the joint marginal probability density function of; ρ 1 Represents variable X 1 The marginal probability density function of . 1 Represents variable X 1 The input function that changes with time can be a linear function or other functions, which can be obtained by statistical analysis or fitting of the values of the variables.
[0107] For direct causal pairs in the Markov equivalence class, causal orientation is performed based on time changes, assuming that the influencing noise conforms to the Gaussian distribution. For continuous systems, consider the variable X 2 to variable X 1 Similarly, when two direct causal pairs share a variable, the two causal pairs become a three-variable causal term. Compared with the analysis of a single causal pair, the three-variable causal term analyzes two causal pairs at the same time to obtain the causal direction between the three variables. 1 ,X 2 ) for analysis.
[0108] The bearing system modeling equation is:
[0109] ;
[0110] Where X represents the variable, i.e., the various operating parameters of the bearing; w represents the white noise vector; M(X) represents the matrix of the input function of the variable X changing with time. The function can be a linear function or other functions, which can be obtained by statistical analysis or fitting of the values of the variable. F(X) represents the input function of the variable X changing with time, which is F in the following text, and is used to describe the changes of the variable X under study with time.
[0111] M(X) represents the disturbance amplitude matrix formed by the interference of other variables in the bearing system on the variable currently being studied, and the disturbance is multi-dimensional. It can be understood as a kind of interference influence. 1 and variable X 2 When information flows between 2 In addition to the variable X 1The perturbation amplitude matrix is also needed to describe the influencing factors of other inputs into this information river. When the variables studied are different, the corresponding M(X) will also be different. For example, there are N variables in total. 1 Inflow variable X 2 When the information flow is , the disturbance amplitude matrix is as follows:
[0112] ;
[0113] Among them, B 1 represents the row vector composed of the first row elements in the disturbance amplitude matrix; B 2 represents the row vector composed of the second row elements in the disturbance amplitude matrix; B N Represents the row vector consisting of the Nth row elements in the disturbance amplitude matrix. 11 represents the element in the first row and first column of the disturbance amplitude matrix; b 1m represents the element in the first row and the mth column of the disturbance amplitude matrix; b N1 represents the element in the Nth row and the first column of the disturbance amplitude matrix; b Nm Represents the element in the Nth row and mth column of the disturbance amplitude matrix.
[0114] At this time, when the research variable X 1 When the information entropy and marginal entropy are:
[0115] ;
[0116] When studying the variable X 2 When the information entropy and marginal entropy are:
[0117] ;
[0118] When studying the variable X 3 When the information entropy and marginal entropy are:
[0119] ;
[0120] Similarly, when studying variable X N When the information entropy and marginal entropy are:
[0121] ;
[0122] In the study variable X 3 Inflow variable X 2 When the information flow is , the disturbance amplitude matrix and the research variable X 1 Inflow variable X 2 The disturbance matrix generated when the information flow is different is different. At this time, the values of each element in the disturbance amplitude matrix will change. The disturbance amplitude matrix at this time can be expressed as follows:
[0123] ;
[0124] Among them, C 1 represents the row vector composed of the first row elements in the disturbance amplitude matrix; C 2 represents the row vector composed of the second row elements in the disturbance amplitude matrix; C N Represents the row vector consisting of the Nth row elements in the disturbance amplitude matrix. 11 represents the element in the first row and first column of the disturbance amplitude matrix; c 1m represents the element in the first row and the mth column of the disturbance amplitude matrix; c N1 represents the element in the Nth row and the first column of the disturbance amplitude matrix; c Nm Represents the element in the Nth row and mth column of the disturbance amplitude matrix.
[0125] At this time, when the research variable X 1 When the information entropy and marginal entropy are:
[0126] ;
[0127] When studying the variable X 2 When the information entropy and marginal entropy are:
[0128] ;
[0129] When studying the variable X 3 When the information entropy and marginal entropy are:
[0130] ;
[0131] Similarly, when studying variable X N When the information entropy and marginal entropy are:
[0132] ;
[0133] Therefore, different research objects will produce different disturbance amplitude matrices.
[0134] 4. The process of generating causal diagram.
[0135] 4.1. Get data time slices.
[0136] Obtain time series data with timestamps, and divide the time series data into multiple data time slices in chronological order.
[0137] In this embodiment, five variables are set, namely, the bearing speed, denoted as variable X 1 ; Bearing acceleration, denoted as variable X 2 ; The natural vibration frequency of the bearing, denoted as variable X 3; Bearing inner ring fault, denoted as variable X 4 ; Bearing outer ring fault, recorded as variable X 5 .
[0138] Obtain the data corresponding to these five variables, divide them into five time periods in chronological order, and perform mathematical analysis according to the content data of statistics and probability theory to obtain the marginal probability density function and input function of each variable in each time period, and the corresponding matrix parameters. Combine the data of each variable in each time period to obtain the corresponding data time slices of each random time change.
[0139] 4.2. Obtain a causal framework.
[0140] Use the FCI algorithm to perform causal inference on each data time slice to generate the corresponding undirected complete graph. From each data time slice, select one data time slice and process it using the FCI algorithm to obtain the following: Figure 3 The causal framework diagram shown. Figure 3 It can be seen that a total of five three-variable causal terms were generated, as shown in Table 1.
[0141]
[0142] 4.3. Generate a causal diagram.
[0143] The information flow is used to determine the causal direction of the three-variable causal relationship in each undirected complete graph to obtain the corresponding causal graph with complete causal relationship.
[0144] The three-variable causal term (X 1, X 2, X 3 ) as an example, the three-variable causal term (X 1, X 2, X 3 ) and the corresponding marginal entropy change rate.
[0145] Then, according to the calculated information entropy change rate and marginal entropy change rate, the three-variable causal term (X 1, X 2, X 3 ) is the information flow between the variables in .
[0146] Then, based on the calculated information flow, according to the causal direction judgment criteria, the three-variable causal term (X 1, X 2, X 3 ) between the variables.
[0147] Then, according to the above content, the causal orientation of all three-variable node items in the current undirected complete graph is determined to transform the current undirected complete graph into an ancestor graph with clear causal relationships. The three-variable causal item pairs after determining the causal orientation are shown in Table 2.
[0148]
[0149] From Table 2, we can get Figure 4 Cause-and-effect diagram for the current time period shown.
[0150] According to the time sequence, each undirected complete graph within the total time T is converted into the corresponding ancestor graph according to the above content.
[0151] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. A method for discovering causal structures between data based on asymmetric information flow, characterized in that: The build steps include: S1. Acquire time series data with a timestamp, and divide the time series data into multiple data time slices in chronological order; the acquired time series data includes the following variables: bearing speed, bearing acceleration, bearing natural vibration frequency, bearing inner race fault, and bearing outer race fault; S2, use the FCI algorithm to perform causal inference on each data time slice to generate the corresponding undirected complete graph; S3, using information flow to determine the causal direction of the three-variable causal relationship in each undirected complete graph, so as to obtain the corresponding causal graph with complete causal relationship; The specific steps of using information flow to determine the causal direction of the three-variable causal relationship are as follows: S31, select a variable X2 from the undirected complete graph corresponding to the current time period; and use the variable X2 as the central variable, and select two variables X1 and variable X3 adjacent to the central variable from the undirected complete graph as adjacent variables; The central variable and two adjacent variables together constitute a three-variable causal term (X 1, X 2, X3); S32, calculate the three-variable causal term (X) through the corresponding calculation formula 1, X 2, The information entropy change rate of each variable in X3) and the corresponding marginal entropy change rate; S33, calculate the three-variable causal term (X 1, X 2, The information flow between the variables in X3); S34, based on the calculated information flow, according to the causal direction judgment criteria, judge the three-variable causal term (X 1, X 2, X3) The causal relationship between the variables; S35, determining the causal orientation of all three-variable node items in the current undirected complete graph according to the contents of steps S31 to S34, so as to transform the current undirected complete graph into an ancestor graph with clear causal relationships; S36, according to the time sequence, convert each undirected complete graph within the total time T into a corresponding ancestor graph according to the content of step S35; The calculation formula for the rate of change of information entropy of variable X1 is as follows: ; In the formula, Indicates that in the current time period (t i ,t i+Δt ) and is in t i+Δt At time t, the information entropy of variable X1, Δt represents the time interval, t i represents the i-th moment; express The rate of change over time, that is, the rate of change of the information entropy of variable X1; E represents expectation; F1 represents the input function of variable X1 changing over time; Indicates that in the current time period (t i ,t i+Δt ) and is in t i+Δt At time t, the marginal probability density function of variable X1; ∂ represents the symbol of multivariate derivative; g1 11 represents the first-order matrix parameter; log represents the exponential function; The information entropy change rate of the variable X2 includes a first information entropy change rate of the variable X2 and a second information entropy change rate of the variable X2; The calculation formula of the first information entropy change rate of variable X2 is as follows: ; In the formula, Indicates that in the current time period (t i ,t i+Δt ) and is in t i+Δt At time t, the first information entropy of variable X2; express The rate of change over time, i.e., the rate of change of the first information entropy of variable X2; F2 represents the input function of variable X2 changing over time; Indicates that in the current time period (t i ,t i+Δt ) and is in t i+Δt At time , the marginal probability density function of variable X2; g1 22 Represents the first and second order matrix parameters; The calculation formula of the second information entropy change rate of variable X2 is as follows: ; In the formula, Indicates that in the current time period (t i ,t i+Δt ) and is in t i+Δt At time t, the second information entropy of variable X2; express The rate of change over time, i.e. the rate of change of the second information entropy of variable X2; g2 22 represents the second second-order matrix parameter; The information entropy change rate of the variable X3 includes a first information entropy change rate of the variable X3 and a second information entropy change rate of the variable X3; The calculation formula of the first information entropy change rate of variable X3 is as follows: ; In the formula, Indicates that in the current time period (t i ,t i+Δt ) and is in t i+Δt At time t, the first information entropy of variable X3; express The rate of change over time, i.e., the rate of change of the first information entropy of variable X3; F3 represents the input function of variable X3 changing over time; Indicates that in the current time period (t i ,t i+Δt ) and is in t i+Δt At time , the marginal probability density function of variable X3; g1 33 Represents the first and third order matrix parameters; The calculation formula of the second information entropy change rate of variable X3 is as follows: ; In the formula, Indicates that in the current time period (t i ,t i+Δt ) and is in t i+Δt At time t, the second information entropy of variable X3; express The rate of change of the second information entropy of variable X3; g2 33 Represents the second and third order matrix parameters; variable The marginal entropy change rate is calculated as follows: ; In the formula, Indicates that in the current time period (t i ,t i+Δt ) and is in t i+Δt At time , the marginal entropy when other variables affect variable X1, excluding the influence of variable X2 on variable X1; express The rate of change over time, that is, the rate of change of the marginal entropy of variable X1; Indicates that in the current time period (t i ,t i+Δt ) and is in t i+Δt At time , the marginal probability density function of variable X1, excluding the influence of variable X2 on variable X1; dX3 represents the differential of variable X3; dX n Represents variable X n The differential of , n represents the total number of categories of the variable; The marginal entropy change rate of the variable X2 includes a first marginal entropy change rate of the variable X2 and a second marginal entropy change rate of the variable X2; The calculation formula for the first marginal entropy change rate of variable X2 is as follows: ; In the formula, Indicates that in the current time period (t i ,t i+Δt ) and is in t i+Δt At time , the marginal entropy when other variables affect variable X1, excluding the influence of variable X2 on variable X1; express The rate of change over time, that is, the rate of change of the marginal entropy of variable X1; Indicates that in the current time period (t i ,t i+Δt ) and is in t i+Δt At time , the marginal probability density function of variable X1, excluding the influence of variable X2 on variable X1; dX3 represents the differential of variable X3; dX n Represents variable X n The differential of , n represents the total number of categories of the variable; The marginal entropy change rate of the variable X2 includes a first marginal entropy change rate of the variable X2 and a second marginal entropy change rate of the variable X2; The calculation formula for the first marginal entropy change rate of variable X2 is as follows: ; In the formula, Indicates that in the current time period (t i ,t i+Δt ) and is in t i+Δt At time , excluding the influence of variable X3 on variable X2, the marginal entropy when other variables have an influence on variable X2 is the second marginal entropy of variable X2; express The rate of change over time, i.e. the variable The second marginal entropy change rate; Indicates that in the current time period (t i ,t i+Δt ) and is in t i+Δt At time , the marginal probability density function of variable X2, excluding the influence of variable X3 on variable X2; The marginal entropy change rate of variable X3 includes the variable The first marginal entropy change rate and variable The second marginal entropy change rate; The calculation formula for the first marginal entropy change rate of variable X3 is as follows: ; In the formula, Indicates that in the current time period (t i ,t i+Δt ) and is in t i+Δt At time , excluding the influence of variable X2 on variable X3, the marginal entropy when other variables have an influence on variable X3 is the first marginal entropy of variable X3; express The rate of change over time, i.e. the rate of change of the first marginal entropy of variable X3; Indicates that in the current time period (t i ,t i+Δt ) and is in t i+Δt At time , the marginal probability density function of variable X3, excluding the influence of variable X2 on variable X3; variable The calculation formula of the second marginal entropy change rate is as follows: ; In the formula, Indicates that in the current time period (t i ,t i+Δt ) and is in t i+Δt At time , excluding the influence of variable X2 on variable X3, the marginal entropy when other variables have an influence on variable X3 is the second marginal entropy of variable X3; express The rate of change over time, i.e. the rate of change of the second marginal entropy of variable X3; Indicates that in the current time period (t i ,t i+Δt ) and is in t i+Δt At time , the marginal probability density function of variable X3, excluding the influence of variable X2 on variable X3; The information flow transmitted from variable X2 to variable X1 is calculated as follows: ; In the formula, Indicates that in the current time period (t i ,t i+Δt ) and is in t i+Δt At time , the information flow from variable X2 to variable X1; The information flow from variable X1 to variable X2 is calculated as follows: ; In the formula, Indicates that in the current time period (t i ,t i+Δt ) and is in t i+Δt At time , the information flow from variable X1 to variable X2; The information flow from variable X2 to variable X3 is calculated as follows: ; In the formula, Indicates that in the current time period (t i ,t i+Δt ) and is in t i+Δt At time , the information flow from variable X2 to variable X3; The information flow transmitted from variable X3 to variable X2 is calculated as follows: ; In the formula, Indicates that in the current time period (t i ,t i+Δt ) and is in t i+Δt At time , the information flow from variable X3 to variable X2; The information flow from variable X1 to variable X3 is calculated as follows: ; In the formula, Indicates that in the current time period (t i ,t i+Δt ) and is in t i+Δt At time t, the information flow from variable X1 to variable X3; the causal direction judgment criterion is specifically expressed as follows: First judgment condition A: When all the judgment expressions of the first judgment condition A are established, the causal direction between variables X1, X2 and X3 is: X1→X2→X3; the first judgment condition A is specifically expressed as follows: ; Second judgment condition B: When all the judgment expressions of the second judgment condition B are established, the causal relationship between variables X1, X2 and X3 is: X1←X2→X3; the second judgment condition B is specifically expressed as follows: ; Third judgment condition C: When all the judgment expressions of the third judgment condition C are established, the causal relationship between variable X1, variable X2 and variable X3 is: X1→X2←X3; the third judgment condition C is specifically expressed as follows: ; When studying the information flow from variable X1 to variable X2, the disturbance amplitude matrix at this time is as follows: ; At this point, when studying the information entropy and marginal entropy of variable X1: ; When studying the information entropy and marginal entropy of variable X2: ; When studying the information entropy and marginal entropy of variable X3: ; Wherein, M(X) represents the disturbance amplitude matrix, X represents the variable; B1 represents the row vector composed of the first row elements in the disturbance amplitude matrix; B2 represents the row vector composed of the second row elements in the disturbance amplitude matrix; B N represents the row vector composed of the Nth row elements in the disturbance amplitude matrix; b 11 represents the element in the first row and first column of the disturbance amplitude matrix; b 1m represents the element in the first row and the mth column of the disturbance amplitude matrix; b N1 represents the element in the Nth row and the first column of the disturbance amplitude matrix; b Nm Represents the element in the Nth row and the mth column of the disturbance amplitude matrix; When studying the information flow from variable X3 to variable X2, the disturbance amplitude matrix at this time is as follows: ; At this point, when studying the information entropy and marginal entropy of variable X1: ; When studying the information entropy and marginal entropy of variable X2: ; When studying the information entropy and marginal entropy of variable X3: ; Where C1 represents the row vector composed of the first row elements in the disturbance amplitude matrix; C2 represents the row vector composed of the second row elements in the disturbance amplitude matrix; C N represents the row vector composed of the Nth row elements in the disturbance amplitude matrix; c 11 represents the element in the first row and first column of the disturbance amplitude matrix; c 1m represents the element in the first row and the mth column of the disturbance amplitude matrix; c N1 represents the element in the Nth row and the first column of the disturbance amplitude matrix; c Nm Represents the element in the Nth row and mth column of the disturbance amplitude matrix.
