Methods for learning causal structure in datasets with latent variables

Through the iterative causal discovery algorithm and causal direction criterion, the complexity of causal structure learning in bearing fault diagnosis is solved, efficient learning of fault causal graphs in latent variable data is achieved, and the accuracy and efficiency of diagnosis are improved.

CN118378708BActive Publication Date: 2024-09-17HEFEI UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410832013.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-09-17
Estimated Expiration
2044-06-26

AI Technical Summary

Technical Problem

In bearing fault diagnosis, it is difficult for existing technologies to effectively learn the causal structure in data containing potential variables, resulting in insufficient edge orientation information in fault causal graphs, high computational complexity, and difficulty in adapting to complex fault data.

Method used

The iterative causal discovery algorithm is used to process part of the ancestor graph step by step and iteratively, combined with the condition set and the causal direction criterion, to determine the independence and causal direction of adjacent nodes to be tested, reduce the number of conditional independence tests, and improve the accuracy of edge orientation information.

Benefits of technology

Learning fault causal graphs with more detailed edge orientation information in data containing latent variables with lower computational complexity improves the accuracy and efficiency of fault diagnosis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118378708B
    Figure CN118378708B
Patent Text Reader

Abstract

The present invention relates to the field of causal structure technology, and in particular to a causal structure learning method in a data set containing latent variables. The present invention uses an iterative causal discovery algorithm to gradually iterate a portion of an ancestor graph, and then determines the independence of adjacent nodes to be tested through a condition set; determines the causal orientation between adjacent nodes to be tested based on the asymmetry of statistical information contained in the causal edge, and then can learn a fault causal graph with more detailed edge orientation information in data containing latent variables with lower computational complexity.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of causal structure technology, and in particular to a causal structure learning method in a data set containing latent variables. Background Art

[0002] As a key component of rotating machinery, rolling bearings will experience fatigue peeling, wear, corrosion and fracture during long-term use, which seriously affect the performance, stability and service life of the entire rotating machinery. Therefore, using corresponding fault diagnosis technology to timely diagnose and find problems and take remedial measures can effectively avoid the occurrence of dangerous situations, which is crucial to ensure the safe operation of industrial equipment.

[0003] In the field of intelligent diagnosis, deep learning has powerful feature extraction capabilities, and can avoid the tedious process and uncertainty of manual feature extraction by learning relevant knowledge from data. Data-driven deep learning is based on the independent and identically distributed assumption, that is, the model can only perform well when the training samples and test samples belong to the same distribution. However, in real applications, the working conditions of mechanical equipment are complex and changeable, and the sample distribution under different working conditions may be different, which leads to a significant reduction in the performance of the deep learning model.

[0004] The reason why the data-driven fault diagnosis model has insufficient generalization ability is that the features extracted by the deep learning model from the bearing fault data contain the total correlation between the fault data and the fault label. It contains the most fundamental causal relationship, potential confusion relationship, and even false correlation caused by collision structure. When the fault test data and training data are in different distributions, the confusion relationship contained in the two is different, so the total correlation is also different, which leads to the performance degradation of the fault diagnosis model. Based on the principle of causal invariance, the causal relationship between the fault data and the fault label is unchanged under different working conditions, and only other relationships such as confusion relationship change. If the fault diagnosis model extracts the pure causal features between the fault data and the fault label, then even if there is a distribution drift, the fault diagnosis model can still maintain good performance. It can be seen that in the process of bearing fault diagnosis, the key step is to construct a causal structure model of the fault system, so as to clarify the causal relationship and non-causal relationship between the various variables of the fault system.

[0005] However, it is usually difficult for practitioners to observe all system variables in complex fault systems, which leads to the inclusion of unobserved confounding variables in the collected fault data. In the face of data containing potential confounding variables, constraint-based causal discovery methods are usually used. However, due to the characteristics contained in complex fault data, the following difficulties arise. The number of conditional independence tests required by traditional constraint-based causal discovery methods increases exponentially with the increase in the number of variables in the data, which makes the algorithm complexity unacceptable for fault data containing a large number of system variables. In addition, constraint-based methods can only obtain the Markov equivalence class of the true causal graph. Since each member of the Markov equivalence class contains the same conditional independence information between the corresponding variables, it is impossible to infer more edge direction information using only conditional independence or constraints, which leads to insufficient edge orientation information contained in the learned fault causal graph, thus bringing difficulties to the subsequent use of the causal adjustment and correction diagnostic framework. In this regard, there is an urgent need for a causal structure learning method that can learn a fault causal graph with more detailed edge orientation information in data containing latent variables with lower computational complexity. Summary of the invention

[0006] In order to avoid and overcome the technical problems existing in the prior art, the present invention provides a causal structure learning method in a data set containing latent variables. The present invention can learn a fault causal graph with more detailed edge orientation information in data containing latent variables with lower computational complexity.

[0007] To achieve the above object, the present invention provides the following technical solutions:

[0008] The method for learning causal structure in a dataset with latent variables includes the following learning steps:

[0009] S1. Obtain bearing fault data of a complex bearing fault system, and construct a partial ancestor graph PAG of each fault variable in the complex bearing fault system according to the bearing fault data;

[0010] S2. Input the partial ancestor graph PAG into the iterative causal discovery algorithm for step-by-step iterative processing to obtain the causal tree PDS-tree with the node to be tested as the root node in the current iteration round, and the causal path PDS-path of the node to be tested in the causal tree PDS-tree; based on the causal path PDS-path, select the nodes in the partial ancestor graph PAG that meet the set construction conditions to construct the condition set of each adjacent node to be tested in the partial ancestor graph PAG in the current iteration round, and the number of nodes in the condition set in the current iteration process is the same as the current iteration round;

[0011] S3. In the current iteration of the iterative causal discovery algorithm, based on the condition set of each adjacent node in the current iteration, combined with the conditional independence test, determine whether the adjacent nodes to be tested in the partial ancestor graph PAG in the current iteration are independent; if they are independent, delete the edges between the adjacent nodes to be tested, otherwise, retain the edges between the adjacent nodes to be tested; after the judgment is completed, delete the redundant edges between the adjacent nodes to be tested in the partial ancestor graph PAG, and then use the FCI orientation rule to orient the partial ancestor graph PAG after deleting the redundant edges, and then complete the update of the partial ancestor graph PAG in the current iteration;

[0012] S4, combining the causal direction criterion to determine the causal direction between some adjacent nodes to be tested whose directions are not determined in the updated partial ancestor graph PAG in the current iteration round, and then updating the partial ancestor graph PAG in the current iteration round again;

[0013] S5. According to the contents of step S2 to step S4, the partial ancestor graph PAG is iterated in a loop to gradually use an expanding set of conditions to test the independence of adjacent nodes to be tested, so as to delete redundant edges; and at the same time, the causal pointing between each adjacent node to be tested with undetermined pointing in the partial ancestor graph PAG is gradually determined, and the iteration is stopped after the set iteration stop condition is reached, and the partial ancestor graph PAG outputted from the last iteration is recorded as the fault system causal graph.

[0014] As a further solution of the present invention: the construction process of the partial ancestry graph PAG is as follows:

[0015] S11. Identify various fault variables from bearing fault data of a complex bearing fault system;

[0016] S12. Take the fault variable as a vertex and connect any two vertices until all vertices are connected, thereby constructing a partial ancestor graph PAG.

[0017] As a further solution of the present invention: the set construction conditions are specifically expressed as follows:

[0018] Condition 1: Condition set A r For any node in , there is a causal path PDS-path that contains any of the current adjacent nodes to be tested, and the total number of nodes in the causal path PDS-path is less than or equal to the number of previous iterations r, and at the same time, the nodes in the causal path PDS-path except the current adjacent node to be tested are all in the condition set A r middle;

[0019] Condition 2: Condition set A of the current adjacent nodes to be tested rAny node in is the ancestor of any node in the current adjacent node to be tested.

[0020] As a further solution of the present invention: the specific steps of using the causal direction criterion to determine the causal direction between each node in the partial ancestor graph PAG are as follows:

[0021] S41, obtaining a preset de-obfuscation set corresponding to some adjacent nodes to be tested (I, J) whose pointing directions are not determined in the updated partial ancestor graph PAG in the current iteration round;

[0022] S42, define the asymmetry of adjacent nodes (I, J) to be tested in some ancestor graphs PAG in the current iteration round, and calculate the asymmetry value through each preset de-obfuscation set; if the preset de-obfuscation set can make the asymmetry If the causal direction of the adjacent node to be tested (I, J) is established, then I→J is established, and the preset de-obfuscation set Z r It is called the asymmetric set CAS with causal direction I→J;

[0023] Asymmetry is specifically defined as follows: ;

[0024] ;

[0025] in, Indicates that in the partial ancestor graph PAG after the first update in the current iteration, the adjacent nodes to be tested (I, J) are in the de-pre-confusion set Z r The asymmetry of causal direction I→J defined under the condition of X I represents the distribution of the node I to be tested; Represents the node to be tested J and the preset de-obfuscation set Z r The distribution of the union of ; Indicated in Under the condition of I The residuals of J represents the distribution of node J; Represents node I and the de-preset de-obfuscation set Z r The distribution of the union of ; Indicated in Under the condition of J The residual of Represents X I exist The regression function on ;

[0026] S43, after the causal direction in the adjacent node to be tested (I, J) is determined to be I→J, obtain the A node in the asymmetric set CAS with a causal direction I→J, the causal direction between this node and the node to be tested is: this node points to the node to be tested J;

[0027] Or after the causal direction in the adjacent node to be tested (I, J) is determined to be J→I, obtain the nodes that appear simultaneously A node in the asymmetric set CAS with a causal direction J→I, the causal direction between this node and the node to be tested is: this node points to the node to be tested J;

[0028] S44: After the causal direction between each parent node and the corresponding node to be tested is determined, the FCI directional rule is run once to perform directional propagation.

[0029] As a further solution of the present invention: the specific steps of obtaining the preset deobfuscation set are as follows:

[0030] S411, obtaining the parent node set of the node I to be tested and the parent node set of the node J to be tested among the adjacent nodes to be tested (I, J); the parent node set is expressed as follows:

[0031] ;

[0032] ;

[0033] In the formula, Represents the parent node set consisting of the adjacent nodes of the node I to be tested, excluding the node J to be tested, in the adjacent nodes (I, J) in the partial ancestor graph PAG updated in the current iteration round; Meaning is defined as; represents the adjacent nodes of the node I to be tested in the partial ancestor graph PAG updated in the current iteration round, except for the node J to be tested; K I →I represents the adjacent node K I Point to the node I to be tested; and Both represent adjacent nodes K I The incomplete directed edge between the node I to be tested and o indicates that the causal direction is not unique; | indicates a conditional constraint;

[0034] Represents the parent node set consisting of the adjacent nodes of the node to be tested J in the adjacent nodes (I, J) in the partial ancestor graph PAG updated in the current iteration round, except for the node to be tested I; K represents the adjacent nodes of the node J to be tested in the partial ancestor graph PAG updated in the current iteration; I →J represents the adjacent node K I Point to node J; and Both represent adjacent nodes K Iand the incomplete directed edge between the node J to be tested;

[0035] S412, according to the point selection rules or Select nodes from the dataset and randomly assign the selected nodes to each preset de-obfuscation set;

[0036] The point selection rules include rule 1 and rule 2. The node that meets any rule is the node to be selected.

[0037] Rule 1: For For any node T in , if node J is removed from the partial ancestor graph PAG updated in the current iteration, and T and I are not independent of each other, then the node T is the node to be selected;

[0038] Or for For any node T in , if T and J are not independent of each other when node I is removed from the partial ancestor graph PAG updated in the current iteration round, then the node T is the node to be selected;

[0039] Rule 2: For or For any node T in the current iteration, if there is an incompletely directed edge in the updated partial ancestor graph PAG , incompletely oriented edges , and dual oriented edges , then the node T is the node to be selected.

[0040] Compared with the prior art, the present invention has the following beneficial effects:

[0041] The present invention uses an iterative causal discovery algorithm to gradually iterate part of the ancestor graph, and then determines the independence of adjacent nodes to be tested through a condition set, and at the same time limits the size of the condition set in an iterative manner, thereby reducing the number of required conditional independence tests and reducing complexity; then based on independence, the causal direction between adjacent nodes to be tested is determined in combination with a causal direction criterion. Compared with traditional causal discovery methods, more directional causal edges can be determined more accurately, and thus a fault causal graph with more detailed edge orientation information can be learned in data containing latent variables with lower computational complexity. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 It is a flowchart of the present invention;

[0043] Figure 2 It is the bottom layer DAG in the present invention;

[0044] Figure 3 Output PAG for the second round of iteration in the present invention;

[0045] Figure 4 The PDS-tree searched with node F as the root node and 2 as the radius in the third iteration of the present invention;

[0046] Figure 5 The PDS-tree searched with node E as the root node and 2 as the radius in the third iteration of the present invention;

[0047] Figure 6 The outer ring fault cause-effect diagram obtained by using the method of the present invention in an embodiment of the present invention;

[0048] Figure 7 The outer ring fault causal graph obtained by using the iterative causal discovery algorithm in the implementation of the present invention;

[0049] Figure 8 The inner ring fault cause-effect diagram obtained by using the method of the present invention in an embodiment of the present invention;

[0050] Fig. 9 The inner circle fault causal graph obtained by using the iterative causal discovery algorithm in the implementation of the present invention;

[0051] Fig.10 A rolling element failure cause-effect diagram obtained by using the method of the present invention in an embodiment of the present invention;

[0052] Fig.11 This is a rolling element fault causal graph obtained by using an iterative causal discovery algorithm in the implementation of the present invention. DETAILED DESCRIPTION

[0053] 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.

[0054] 1. Iterative causal discovery algorithm.

[0055] For a bearing fault system, it contains a potential directed acyclic graph DAG. However, in the actual processing process, due to the existence of unobserved variables, it is impossible to recover its potential directed acyclic graph DAG. Therefore, the method adopted by the present invention aims to recover the maximum ancestor graph MAG corresponding to the underlying DAG from the results of the conditional independence test. And in order to smoothly recover the causal structure from the distribution of observed data, the present invention follows Markov property and fidelity.

[0056] The fault data collection process usually contains unobserved variables, so a constraint-based causal discovery method is needed. It usually starts from an undirected complete graph, uses a conditional independence test based on a condition set to test the conditional independence between two nodes, and deletes redundant edges. The condition set consists of a subset of nodes other than the node to be tested. For some causal discovery algorithms, since the number of conditional independence tests performed by the algorithm grows exponentially with the increase in the number of variables, the computational complexity on large graphs is unacceptable. Therefore, in order to achieve causal discovery in complex bearing fault systems, the present invention uses an iterative causal discovery algorithm.

[0057] The first step in each iteration of the iterative causal discovery algorithm is to search the causal tree PDS-tree with the node to be tested as the root in the PAG to obtain the causal path PDS-path. Because the iterative causal discovery algorithm defines a smaller condition set based on the causal path PDS-path in order to limit the size of the condition set for independent condition testing. Figure 2 As shown, taking the adjacent node to be tested (E, F) as an example, the causal path PDS-path of the node to be tested E relative to the node to be tested F is expressed as , requiring the node to be tested Not in On, and the path<E...T> The subpath formed by any three nodes in<A,B,C> , either it is a triangle structure, or B is a collision node. The nodes in the condition set of the node E to be tested are all nodes on the causal path PDS-path connected to the node E to be tested in the PAG.

[0058] like Figure 3 As shown in the figure, for the adjacent nodes to be tested (E, F), there are two causal paths PDS-paths between the node E to be tested and the node F to be tested, which form a causal tree with the node E to be tested as the root, called PDS-tree.<B,C,E> The middle node C is a collider. For a single edge like H→E, since it has no intermediate nodes, it is also considered a causal path PDS-path. Using nodes on the causal path PDS-path to build a condition set with limited size is the key to reducing conditional independence tests. Therefore, for the redundant edges in each iteration of PAG, the first step of the iterative causal discovery algorithm is to search the causal tree PDS-tree with the two end nodes as the root and obtain the corresponding causal path PDS-path.

[0059] The second core step of the iterative causal discovery algorithm is to construct a condition set whose size is limited by the current iteration parameters. In the iterative causal discovery algorithm, each round of iteration is a single and independent stage. Use r to represent the number of iterations. In the rth round of iteration, based on the PAG returned by the previous round of iteration, the further expanded condition set is used to test the independence between all connected nodes in the PAG. If independence is found, the connecting edge is removed. Figure 3 As shown, taking the adjacent nodes to be tested (E, F) as an example, in the rth iteration, a condition set that meets all the following ICD-Sep conditions is constructed:

[0060] Condition 1: The total number of nodes in the condition set is equal to the current iteration number r.

[0061] Condition 2: For any node in the condition set, there is a causal path The number of nodes on the causal path is made smaller than the current iteration number r, and each node on the causal path is in the conditional set.

[0062] Condition 3: For any node belonging to the condition set, the node is a possible ancestor of the node E or the node F to be tested.

[0063] The condition set constructed according to the above conditions is the key to reducing the number of conditional independence tests. Because condition one can limit the size of the condition set, and condition two limits its distance from the test node. In the rth round of iteration, the number of nodes in the condition set is limited to r. When r is small, the independence of the adjacent nodes to be tested with a smaller number of nodes in the condition set is obtained first. As r increases, the independence of adjacent nodes to be tested that require a larger condition set is discovered from small to large. In summary, in each round of iteration, the iterative causal discovery algorithm searches for the corresponding causal tree PDS-tree for adjacent nodes to be tested, and then builds a qualified condition set based on this. Then the condition set can be used to test the independence between adjacent nodes to be tested, and delete redundant edges where independence is established.

[0064] Figures 2 to 5 A demonstration of a single round of iteration of the iterative causal discovery algorithm is given. Figure 2 It is the underlying DAG of the bearing fault. Figure 3 is the PAG obtained after one round of iteration. At this time, there are redundant edges between EF. In the second round of iteration, the causal tree PDS-tree is first constructed with EF as the root node, such as Figure 4 and Figure 5 Depicted. Then, by traversing this causal tree PDS-tree, a condition set that meets the conditions can be created. Condition 1 limits the number of elements in the condition set to 2. Condition 2 limits the radius around E or F where the node in the condition set is located. Figure 4In the example, if node I is in the condition set, then H must also be in the condition set, because H is on the only path from I to F. Therefore, the condition set that F meets the conditions is {I,H} and {C,H}. Similarly, the condition set that node E meets the conditions is {C,B} and {C,H}. Therefore, in the second round of iterations, it is only necessary to test whether the ringing nodes (E,F) are independent when {I,H}, {C,H}, {C,B} are given. If they are independent, remove the connection edge between EF. Otherwise, when r=3, a larger condition set is needed to determine whether the connection edge between nodes EF is independent. Figures 2 to 5 In the example given in , when r=3, using the qualifying condition set {C,H,I}, we can determine the independence between EF.

[0065] 2. Causal direction principle.

[0066] It is usually desirable to obtain the maximum ancestor graph MAG corresponding to the potential directed acyclic graph DAG of bearing faults. However, some causal structures have Markov equivalence, which leads to the inability to fully recover the maximum ancestor graph MAG. Instead, we can only recover a Markov equivalence class represented by the partial ancestor graph PAG. The Markov equivalence class encodes a set of maximum ancestor graphs MAG with exactly the same conditional independence. Variant edge labeling in the partial ancestor graph PAG Indicates that in the Markov equivalence class, there is at least one with a tail edge label and at least one with an arrow head The maximum ancestor graph MAG is in the same position. For sparse graphs, the size of the Markov equivalence class may be huge, resulting in insufficient causal information contained in the causal graph of the fault system.

[0067] Since the maximum ancestor graphs MAG encoded by Markov equivalence classes have the same conditional independence properties, it is impossible to infer more causal information using only conditional independence tests. In this regard, the present invention focuses on the direction identification of a single causal edge in a weak additive noise model. The weak additive noise model points out that the causal relationship contains asymmetric statistical information, that is, the independence of the residual of the regression function and the regression variable is different for the two directions of the causal edge. More specifically, assuming that the bearing fault data follows the weak additive noise model, if the node direction I→J holds, it is impossible to find a local additive noise model only in the opposite direction. That is, if the local additive noise model on the node direction I→J holds, and the local additive noise model on the node direction J→I does not hold, then the causal edge direction must be I→J. Of course, not all local additive noise models on causal edges can be identified. When the local additive noise model is reversible or does not exist, it cannot be identified. Based on the concept of the weak additive noise model, the causal direction criterion is introduced. Combined with the causal direction criterion, the causal direction between some adjacent nodes to be tested with undetermined directions in the updated partial ancestor graph PAG in the current iteration round is determined, and then the partial ancestor graph PAG in the current iteration round is updated again.

[0068] If the causal asymmetry set (CAS) of the tested node I and the tested node J can be obtained, the causal asymmetry between the node I and the node J can be identified. To this end, the search space of CAS is limited to the following set in the bearing fault maximum ancestor graph MAG through the following definition.

[0069] De-obfuscation set definition: Assume that in MAG I→J, a set of subsets (V represents the variable set of the bearing fault system) is the de-obfuscated set of (I,J) in MAG if and only if And Z blocks all backdoor paths into I and J in MAG. It means that V does not contain the descendant nodes of node J, and \ means not included.

[0070] So far, the search space of CAS in the bearing fault PAG can be limited to or possible parent nodes that are on unblocked paths into I and J and do not contain an edge between I and J. That is, if , and after testing, it was found that the given , T and I are not independent in the PAG with J removed, then T is in a possible minimal deobfuscated set of (I,J). Furthermore, the following theorem allows us to identify vertices that are guaranteed to be valid in any deobfuscated set.

[0071] Theorem: Assume that in MAG I→J, and (I,J) exists a deobfuscated set . Let PAG , then it has the following properties:

[0072] when Appears in PAG, or exists , so that is a non-colliding structure that enters I and J in PAG, then It is also the deobfuscated set of (I,J). Represents a set of observed variables. Z1 represents the first subset, Z2 represents the second subset, and Z k represents the kth subset, that is, there are k subsets in total.

[0073] For the undirected edge to be tested in PAG J and , you need to search for its corresponding CAS and then calculate whether independence holds. In addition to the direction of I→J found in the de-obfuscated set of a given (I,J) by applying the causal orientation criterion, more edges can be directed using the following rules.

[0074] Parent Direction Rule: Assume that I and J are a pair of adjacent nodes in PAG and the connecting edge between them is undirected. If the adjacent node is directed I→J after running the three-iteration causal discovery algorithm based on the causal asymmetric set, then for all nodes , directed T→J.

[0075] However, when the potential DAG of the bearing fault system is unknown, its corresponding MAG cannot be obtained, and its PAG can only be output through iterative causal discovery. Since the PAG contains many undirected edges, it is not always possible to identify the deobfuscated set from the PAG alone. To this end, a set of candidate vertices that are guaranteed to be included in a deobfuscated set can be first identified. Then, possible deobfuscated sets are searched by adding possible deobfuscated vertices to the set.

[0076] 3. Extended iterative causal discovery algorithm EICD.

[0077] In the rth iteration of the iterative causal discovery algorithm, for the PAG of the current iteration, the independence of all connected edges in the PAG is tested when a given set of conditions is met. Next, the resulting graph needs to be oriented. Initially, the V structure is oriented, and then the FCI directional rule is oriented until no more edges can be oriented. For completeness, a complete set of directional rules is applied in the last iteration of the iterative causal discovery algorithm. The PAG output in each iteration is independent and correct. As the number of iterations increases, the causal directional information contained in the corresponding PAG becomes more and more sufficient until the PAG output in the last iteration is the MEC of the bearing fault causal graph. In the iterative causal discovery algorithm, for the current iteration number r, it is ensured that the redundant edges between independent nodes are removed in the true underlying MAG by using a condition set of size r. Secondly, the PAG obtained after each iteration is oriented using the fast causal inference FCI directional rule. These two operations reduce the size of the PDS-tree in consecutive iterations, which results in fewer ICD-Sep sets being considered as condition sets. This reduces the number of conditional independence tests CI Test. It can be seen that the second operation, that is, obtaining more edge orientation information at the end of each iteration, is a measure to reduce the number of CI Tests. Since the PAG output by each iteration of ICD is correct and independent, the causal direction criterion CDC can be used to orient the unoriented edges that meet the requirements in the current PAG at the end of each iteration, so as to obtain more orientation information and refine the current PAG. This can further reduce the ICD-Sep that is considered as a condition set in consecutive iterations, and further reduce the number of conditional independence tests CI Tests.

[0078] Based on this, an extended iterative causal discovery is constructed. This method inherits the advantages of iterative causal discovery ICD and can obtain the PAG corresponding to the underlying DAG with a smaller number of CI tests. And using CDC, statistical information asymmetry is discovered from the data, thereby directing additional causal edges compared to MEC. And based on the characteristics of each round of ICD iteration being independent and correct, this method uses CDC to refine the PAG output at the end of each round of iteration, accelerate the ICD process, and further reduce the number of CI tests required.

[0079] Note that in the first ICD iteration, the initial PAG is a complete graph and r=0. Therefore, each pair of nodes is tested for edge independence (the condition set is empty). In the second iteration, r=1, where only nodes adjacent to the test node are included in the condition set (the PDS path length limit is one edge). Since the condition set is small in these two iterations, the number of required CI tests is small, and the PAG contains more undirected edges, CDC is used to refine the PAG starting from r=2. In subsequent iterations with r>1, nodes outside the neighborhood of the test node can be included in the condition set. The condition set consisting of adjacent nodes or nodes outside the neighborhood is returned by the function PDSepRange and is expressed as Each of these Meets the ICD-Sep condition. The parameter L represents the number of elements in the set. If in the current iteration, no set that meets the ICD-Sep condition can be found for any adjacent node in the graph, that is, L=0, the iteration will terminate early.

[0080] Finally, if Figure 1 As shown in the figure, after collecting multivariate bearing fault data through the bearing fault simulation test bench, the extended iterative causal discovery algorithm can be used to obtain the bearing fault causal graph with lower complexity, and obtain the bearing fault PAG containing more causal edge directional information. The causal graph containing sufficient causal information can prepare for the next step of using causal adjustment to modify the bearing fault diagnosis framework.

[0081] 4. The learning steps of the present invention are as follows:

[0082] 1) Construct an undirected complete graph.

[0083] The bearing fault data of the complex bearing fault system is obtained, and an undirected complete graph about each fault variable in the complex bearing fault system is constructed according to the bearing fault data. And the essence of the undirected complete graph is the partial ancestor graph PAG.

[0084] The construction process of the partial ancestry graph PAG is as follows:

[0085] (1) Clarify various fault variables from the bearing fault data of the complex bearing fault system. Fault variables usually include bearing speed, bearing torque, bearing temperature, etc.

[0086] (2) Take the fault variable as the vertex and connect any two vertices until all vertices are connected, thus constructing an undirected complete graph. The essence of an undirected complete graph is a partial ancestor graph (PAG), in which there are undirected edges between adjacent nodes.

[0087] 2) Get the condition set.

[0088] The specific steps to obtain the condition set are as follows:

[0089] The process of fault data collection usually contains unobserved variables, so a constraint-based causal discovery method is needed. It usually starts from an undirected complete graph and uses conditional independence based on a condition set to test the conditional independence between adjacent nodes to be tested, and to retain or delete redundant edges accordingly.

[0090] To this end, the present invention uses an iterative causal discovery algorithm, inputs the partial ancestor graph PAG into the iterative causal discovery algorithm for step-by-step iterative processing to obtain a causal tree PDS-tree with the node to be tested as the root node in the current iteration round, and a causal path PDS-path containing the node to be tested in the causal tree PDS-tree; based on the causal path PDS-path, select nodes in the partial ancestor graph PAG that meet the set construction conditions to construct a condition set for each adjacent node to be tested in the partial ancestor graph PAG in the current iteration round, and the number of nodes in the condition set during the current iteration is the same as the current iteration round.

[0091] The collection construction conditions are specifically expressed as follows:

[0092] Condition 1: Condition set A r For any node in , there is a causal path PDS-path that contains any of the current adjacent nodes to be tested, and the total number of nodes in the causal path PDS-path is less than or equal to the number of previous iterations r, and at the same time, the nodes in the causal path PDS-path except the current adjacent node to be tested are all in the condition set A r middle;

[0093] Condition 2: Condition set A of the current adjacent nodes to be tested r Any node in is the ancestor of any node in the current adjacent node to be tested.

[0094] 3) Conditional independence test.

[0095] In the current iteration of the iterative causal discovery algorithm, based on the condition set of each adjacent node in the current iteration, combined with the conditional independence test, it is determined whether the adjacent nodes to be tested in the partial ancestor graph PAG in the current iteration are independent; if they are independent, the edges between the adjacent nodes to be tested are deleted, otherwise, the edges between the adjacent nodes to be tested are retained; after the judgment is completed, the redundant edges between the adjacent nodes to be tested in the partial ancestor graph PAG are deleted, and then the FCI orientation rule is used to orient the partial ancestor graph PAG after deleting the redundant edges. At this time, the update of the partial ancestor graph PAG in the current iteration is completed.

[0096] 4) Causal direction principle.

[0097] The specific steps of using the causal direction criterion to determine the causal direction between nodes in the partial ancestry graph PAG are as follows:

[0098] (1) Obtain the preset de-obfuscation set corresponding to some adjacent nodes (I, J) to be tested that have not been determined in the updated partial ancestor graph PAG in the current iteration round. Since the de-obfuscation set only exists in the maximum ancestor graph MAG, and in the current case, the maximum ancestor graph MAG cannot be obtained, the de-obfuscation set is represented by the alias "preset de-obfuscation set". The process of obtaining the preset de-obfuscation set is as follows:

[0099] (1.1) Obtain the parent node set of the node I to be tested and the parent node set of the node J to be tested in the adjacent nodes to be tested (I, J); the parent node set is expressed as follows:

[0100] ;

[0101] ;

[0102] (1.2) According to the point selection rules, or Nodes are selected from the set and randomly assigned to each preset de-obfuscation set. The point selection rules include rule 1 and rule 2. The nodes that meet any rule are the nodes to be selected.

[0103] (2) Define the adjacent nodes to be tested in the ancestor graph PAG in the current iteration round The asymmetry of the preset de-obfuscation set is calculated, and the asymmetry value is calculated through each preset de-obfuscation set; if the preset de-obfuscation set can make the asymmetry If it holds, then the causal direction of the adjacent node to be tested (I, J) is established from I to J, and the preset de-obfuscation set Z r It is called the asymmetric set CAS with causal direction I→J.

[0104] Residual It can be computed using a multilayer perceptron as a regression method. The multilayer perceptron is a universal approximator that can obtain arbitrary regression functions in the large sample limit. The independence of the residuals can also be tested using a kernel conditional independence test.

[0105] (3) After the causal direction in the adjacent node to be tested (I, J) is determined to be I→J, obtain the A node in the asymmetric set CAS with a causal direction I→J, the causal direction between this node and the node to be tested is: this node points to the node to be tested J;

[0106] Or after the causal direction in the adjacent node to be tested (I, J) is determined to be J→I, obtain the nodes that appear simultaneously A node in the asymmetric set CAS with a causal direction J→I, the causal direction between this node and the node to be tested is: this node points to the node to be tested J;

[0107] (4) After the causal relationship between each parent node and the corresponding node to be tested is determined, the FCI directional rule is run once to perform directional propagation.

[0108] 5) Iterative operation.

[0109] According to the contents of 2) to 4), the partial ancestor graph PAG is iterated in a loop to gradually use an expanding set of conditions to test the independence of adjacent nodes to be tested so as to delete redundant edges; and at the same time, the causal pointing between each adjacent node to be tested with an undetermined pointing in the partial ancestor graph PAG is gradually determined. The iteration is stopped after the set iteration stop condition is reached, and the partial ancestor graph PAG outputted from the last iteration is recorded as the fault system causal graph.

[0110] 5. Embodiment

[0111] 1) Data acquisition.

[0112] The rolling bearing fault data used in this experiment is sampled based on a mechanical vibration analysis and fault simulation test bench. The main components of the test bench include drive motor, loading motor, reducer, bearing, flywheel, acceleration sensor, torque sensor, temperature sensor, etc. The object of signal acquisition is a 6205 deep groove ball bearing. The specific fault type and speed information are shown in Table 1. In order to meet the background of more system variable nodes, the test bench can also collect observable working condition data including speed, torque, pressure, displacement, temperature, etc.

[0113] Table 1 Bearing failure data

[0114]

[0115] In order to verify the performance of EICD, causal discovery is performed based on simulated data to obtain a test causal graph. Simulated data is data that contains real data ground-truth, which can verify the accuracy of the results of causal discovery. Specifically, a MAG containing potential confounding variables is first generated, and then simulated data is generated based on the MAG graph structure. Then, various causal discovery algorithms including EICD are used to learn the causal graph corresponding to the simulated data. By comparing the edges and edge labels of the test causal graph and the real data ancestor graph ground-truth MAG, performance indicators such as causal skeleton recall rate, causal skeleton F1 score, edge orientation accuracy and the number of required CI tests can be obtained. The F1 score is obtained by calculating the false positive rate FPR and the false negative rate FNR. The recall rate and F1 score are used to measure the accuracy of causal skeleton learning. The orientation accuracy is used to reflect the sufficiency of the edge information contained in the causal graph, and the number of required CI tests is used to reflect the computational complexity of the algorithm.

[0116] 2) Use EICD to learn the causal structure of bearing failure.

[0117] In the following experiment, the EICD algorithm is applied to the rolling bearing fault dataset to learn the underlying bearing fault causal graph of the fault simulation test bench. In addition, the ICD algorithm is also applied to the bearing fault dataset to obtain the control causal graph in order to compare which causal edges the EICD algorithm has additionally directed compared to the ICD algorithm. According to the location of the bearing fault, the outer ring fault, inner ring fault, and rolling element fault datasets are used to restore their underlying fault causal graphs. The three datasets contain 10 types of variable data, corresponding to nodes 0 to 9 in the causal graph. The specific correspondence is shown in Table 2.

[0118] Table 2 Bearing fault system variables

[0119]

[0120] Figures 6 to 11 In the example, the edges in red circles are redundant edges. Figure 6 and Figure 7 It can be seen that the method of the present invention has additional multi-directional 4 edge markers compared to the iterative causal discovery algorithm.

[0121] exist Figure 8 and Fig. 9 In FIG. 1 , compared with the iterative causal discovery algorithm, the method of the present invention additionally directs two causal edges between node 8 and node 9, and between node 1 and node 0. It can be found that, compared with the outer ring fault, the inner ring fault is less affected by unobserved confounding variables.

[0122] Finally, in Fig.10 and Fig.11The rolling element failure causal graph is shown in Figure 2. Compared with the iterative causal discovery algorithm, the method of the present invention has four additional causal edges. It can be seen that the rolling element failure causal graph is the most complex among the three types of failures and is affected by more confounding variables.

[0123] In summary, the present invention gradually iterates the partial ancestor graph through an iterative causal discovery algorithm, and then determines the independence of adjacent nodes to be tested through a condition set; then based on the independence, the causal direction between adjacent nodes to be tested is determined in combination with the causal direction criterion, thereby being able to learn a fault causal graph with more detailed edge orientation information in data containing latent variables with lower computational complexity.

[0124] 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 learning causal structures in a dataset containing latent variables, characterized by: The learning steps include: S1. Obtain bearing fault data of a complex bearing fault system, and construct a partial ancestor graph PAG of each fault variable in the complex bearing fault system according to the bearing fault data; S2. Input the partial ancestor graph PAG into the iterative causal discovery algorithm for step-by-step iterative processing to obtain the causal tree PDS-tree with the node to be tested as the root node in the current iteration round, and the causal path PDS-path of the node to be tested in the causal tree PDS-tree; based on the causal path PDS-path, select the nodes in the partial ancestor graph PAG that meet the set construction conditions to construct the condition set of each adjacent node to be tested in the partial ancestor graph PAG in the current iteration round, and the number of nodes in the condition set in the current iteration process is the same as the current iteration round; S3, in the current iteration of the iterative causal discovery algorithm, based on the condition set of each adjacent node in the current iteration, combined with the conditional independence test, determine whether each adjacent node to be tested in the partial ancestor graph PAG in the current iteration is independent; if so, delete the edge between the adjacent nodes to be tested, otherwise, retain the edge between the adjacent nodes to be tested; After the judgment is completed, the redundant edges between each adjacent node to be tested in the partial ancestor graph PAG are deleted, and then the partial ancestor graph PAG after the redundant edges are deleted is oriented again using the FCI orientation rule. At this time, the update of the partial ancestor graph PAG in the current iteration round is completed; S4, combining the causal direction criterion to determine the causal direction between some adjacent nodes to be tested whose directions are not determined in the updated partial ancestor graph PAG in the current iteration round, and then updating the partial ancestor graph PAG in the current iteration round again; S5. According to the contents of step S2 to step S4, the partial ancestor graph PAG is iterated in a loop, so as to gradually use the continuously expanding condition set to test the independence of adjacent nodes to be tested, so as to delete redundant edges; and at the same time, the causal pointing between each adjacent node to be tested with undetermined pointing in the partial ancestor graph PAG is gradually determined, and the iteration is stopped after the set iteration stop condition is reached, and the partial ancestor graph PAG outputted in the last iteration is recorded as the fault system causal graph; The specific steps of using the causal direction criterion to determine the causal direction between nodes in the partial ancestry graph PAG are as follows: S41, obtaining a preset de-obfuscation set corresponding to some adjacent nodes to be tested (I, J) whose pointing directions are not determined in the updated partial ancestor graph PAG in the current iteration round; S42, defining the asymmetry of adjacent nodes (I, J) to be tested in some ancestor graphs PAG in the current iteration round, and calculating the asymmetry value through each preset de-obfuscation set; If the default deobfuscation set can make the asymmetry If the causal direction of the adjacent node to be tested (I, J) is established, then I→J is established, and the preset de-obfuscation set Z r It is called the asymmetric set CAS with causal direction I→J; Asymmetry is specifically defined as follows: ; ; in, Indicates that in the partial ancestor graph PAG after the first update in the current iteration, the adjacent nodes to be tested (I, J) are in the de-pre-confusion set Z r The asymmetry of causal direction I→J defined under the condition of X I represents the distribution of the node I to be tested; Represents the node to be tested J and the preset de-obfuscation set Z r The distribution of the union of ; Indicated in Under the condition of I The residuals of J represents the distribution of node J; Represents node I and the preset de-obfuscation set Z r The distribution of the union of ; Indicated in Under the condition of J The residual of Represents X I exist The regression function on ; S43, the causal direction in the adjacent node to be tested (I, J) is determined as After that, get the and causal orientation The node in the asymmetric set CAS, the causal relationship between the node and the node to be tested is: the node points to the node to be tested J; Or after the causal direction in the adjacent node to be tested (I, J) is determined to be J→I, obtain the nodes that appear simultaneously A node in the asymmetric set CAS with a causal direction J→I, the causal direction between this node and the node to be tested is: this node points to the node to be tested J; S44, after the causal direction between each parent node and the corresponding node to be tested is determined, the FCI directional rule is run once to perform directional propagation; The specific steps to obtain the preset deobfuscation set are as follows: S411, obtaining the parent node set of the node I to be tested and the parent node set of the node J to be tested among the adjacent nodes to be tested (I, J); the parent node set is expressed as follows: ; ; In the formula, Represents the parent node set consisting of the adjacent nodes of the node I to be tested, excluding the node J to be tested, in the adjacent nodes (I, J) in the partial ancestor graph PAG updated in the current iteration round; Meaning is defined as; represents the adjacent nodes of the node I to be tested in the partial ancestor graph PAG updated in the current iteration round, except for the node J to be tested; K I →I represents the adjacent node K I Point to the node I to be tested; and Both represent adjacent nodes K I The incomplete directed edge between the node I to be tested and o indicates that the causal direction is not unique; | indicates a conditional constraint; Represents the parent node set consisting of the adjacent nodes of the node to be tested J in the adjacent nodes (I, J) in the partial ancestor graph PAG updated in the current iteration round, except for the node to be tested I; K represents the adjacent nodes of the node J to be tested in the partial ancestor graph PAG updated in the current iteration; I →J represents the adjacent node K I Point to node J; and Both represent adjacent nodes K I and the incomplete directed edge between the node J to be tested; S412, according to the point selection rules or Select nodes from the dataset and randomly assign the selected nodes to each preset de-obfuscation set; The point selection rules include rule 1 and rule 2. The node that meets any rule is the node to be selected. Rule 1: For For any node T in , if node J is removed from the partial ancestor graph PAG updated in the current iteration, and T and I are not independent of each other, then the node T is the node to be selected; Or for For any node T in , if T and J are not independent of each other when node I is removed from the partial ancestor graph PAG updated in the current iteration round, then the node T is the node to be selected; Rule 2: For or For any node T in the current iteration, if there is an incompletely directed edge in the updated partial ancestor graph PAG , incompletely oriented edges , and dual oriented edges , then the node T is the node to be selected.

2. The causal structure learning method in a data set containing latent variables according to claim 1, characterized in that: The construction process of the partial ancestry graph PAG is as follows: S11. Identify various fault variables from bearing fault data of a complex bearing fault system; S12. Take the fault variable as a vertex and connect any two vertices until all vertices are connected, thereby constructing a partial ancestor graph PAG.

3. The causal structure learning method in a data set containing latent variables according to claim 2, characterized in that: The collection construction conditions are specifically expressed as follows: Condition 1: Condition set A r For any node in , there is a causal path PDS-path that contains any of the current adjacent nodes to be tested, and the total number of nodes in the causal path PDS-path is less than or equal to the number of previous iterations r, and at the same time, the nodes in the causal path PDS-path except the current adjacent node to be tested are all in the condition set A r middle; Condition 2: Condition set A of the current adjacent nodes to be tested r Any node in is the ancestor of any node in the current adjacent node to be tested.