DAG learning method and system fusing path constraints
By introducing the parent set identification algorithm, path constraint representation, precise search graph and dynamic programming search algorithm into DAG learning, combined with expert knowledge, the problem of low path constraint efficiency in the existing DAG learning method is solved and a more efficient causal relationship is achieved. Discover and diagnose LTE faults, reducing the risk of business interruption.
Patent Information
- Application Number
- CN202411128537.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-16
- Publication Date
- 2024-10-01
AI Technical Summary
Existing DAG learning methods are inefficient when fusing path constraints and require too high a level of path constraints, making it difficult to effectively apply them in LTE fault diagnosis.
The parent set identification algorithm, path constraint representation method, accurate search graph ACOG, deletion rules and dynamic programming search algorithm are used, combined with expert knowledge, to optimize the DAG learning process to improve efficiency and accuracy.
By reducing the storage of sub-optimal structures, the efficiency and robustness of DAG learning are improved, causal relationships can be discovered more quickly in LTE fault diagnosis, business interruption costs are reduced, and network performance is improved.
Smart Images

Figure CN118734945A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of machine learning in artificial intelligence, and in particular relates to a DAG learning method and system integrating path constraints. Background Art
[0002] Directed Acyclic Graph (DAG) is a typical graph model in the field of machine learning. It depicts causal relationships by expressing the compact correlation between different variables in complex uncertain systems. Therefore, DAG is used in modeling tasks in many important research fields, such as protein detection and gene diagnosis in biology, sepsis and cancer diagnosis in medicine, air pollution modeling, etc. In LTE (Long Term Evolution) services, the application of DAG learning methods is crucial for fault diagnosis. As the core technology in today's communications field, the stability and reliability of LTE networks are crucial to ensuring the normal operation of communication networks. However, due to the complexity and diversity of LTE networks, fault diagnosis and location are often challenging tasks. The introduction of DAG learning methods provides new ideas and methods to solve this problem. By analyzing a large amount of LTE network data, DAG learning methods can identify the causal relationship between different parameters and reveal the root cause of the fault. For example, it can find out whether the abnormal change of a specific parameter leads to a decline in network performance, or whether a fault event is caused by the complex interaction of multiple parameters. This precise diagnostic capability enables engineers to quickly locate faults and take appropriate measures to fix the problem, thereby minimizing service interruption time. In addition, the DAG learning method can also help optimize the performance of LTE networks. By analyzing the cause-and-effect relationships in network data, it can discover potential performance bottlenecks and optimization space, and provide targeted optimization suggestions. This data-driven optimization method can help operators better manage and maintain LTE networks and improve the overall performance of the network and user experience.
[0003] At present, most of the learning of DAG is based on data, that is, using various methods to observe the causal relationship hidden in the variables from the data and learn the optimal DAG that meets certain evaluation indicators. This idea is correct, but due to excessive reliance on data, it is easy to overfit the data, and when the amount of data is insufficient, the correlation of variables is unclear, and it is difficult to learn a convincing result. Therefore, it is necessary to introduce expert knowledge to solve this dilemma. Expert knowledge is the prior knowledge of domain experts on a certain problem. In the field of DAG learning, it can be concretized as the degree of confidence in the constraint of the path in the structure. Introducing this path constraint is conducive to alleviating the problem of "heavy data and light experience" in learning, so that the learning model can be carried out within the range of artificial expectation and human control, which can not only improve the accuracy of learning, but also make the learning results more in line with human cognition. Especially in the field of LTE fault diagnosis, the amount of data usually used to build the fault diagnosis network is relatively small. Expert knowledge, especially path constraints, can assist in determining the relationship between some faults and causes in the fault diagnosis network, thereby effectively improving customer experience and reducing the business cost caused by interruptions.
[0004] However, path constraints are not decomposable, which is contrary to the decomposable DAG learning process. Existing methods can only decompose path constraints into edge constraints and then restrict each stage of DAG learning separately, and find the optimal solution in the structured search graph. This method is not only inefficient, but also requires a sufficient number of path constraints as a guarantee. In reality, experts can only give a small amount of structural confidence evaluation, so it is necessary to develop a new DAG learning method and system that integrates path constraints to solve the existing problems. Summary of the invention
[0005] The purpose of the present invention is to provide a DAG learning method and system integrating path constraints, so as to solve the problems of low efficiency of integrating path constraints and excessively high constraint requirements in existing DAG learning methods.
[0006] To achieve the above purpose, the present invention provides the following technical solution: a DAG learning method integrating path constraints, the steps are as follows: Step 1: Establish a superset identification algorithm to achieve the objective function for any variable Calculate the score of its candidate parent set; the objective function is also called the scoring function, which can measure a certain seed structure With data The degree of fit; while the global DAG network structure The score of can be regarded as the sum of the scores of each substructure in, Represents the total number of variables in the DAG, represent middle The parent set variable of; Preferably, the objective function includes: in Representative variables The total number of possible combinations of the corresponding parent variables, Representative variables The total number of possible combinations, represent The total number of data in Represents the observed data In line with The number of data items, and satisfy ; After determining the score of each parent-child set, the parent set identification process is performed by traversal.
[0007] Step 2: Establish a way to represent path constraints, that is, for the variable set Any variable in , path constraint set Represents the final learned network structure Path must exist in ; Step 3: Create an exact search graph ACOG (Ancestral constraints Order Graph) to store each substructure in the state ; Specifically, it includes the definition method of different states in the design of ACOG and the edge extension method between states; Preferably, the precise search graph includes: is defined as: Represents Add subvariables to The optimal structure after is a set of variables, It is a collection variable The formed directed acyclic graph, Represents For the parent set, A substructure of a subvariable.
[0008] Step 4: Establish a deletion rule to simplify the ACOG in step 3 based on the path constraint given in step 2. Specifically, for a state in ACOG, if it violates the path constraint given in step 2, it can be directly deleted; when passing from the upper layer of ACOG to the lower layer, after each state receives the structure of its previous state, it uses the benefit function to judge and compare all structures in the current state, deletes the structure that obviously will not constitute the global optimal solution under the complete variable, and retains other structures; when each state is extended to the descendant state, each structure only selects the new structure that makes the current structure score increment the largest and incorporates it into the subsequent state; Preferably, the deletion rule establishment method includes: Set the previous layer to an empty set, determine whether the number of layers reaches the full set, if not, expand each state in the previous layer, retain all directed acyclic graphs, delete illegal directed acyclic graphs and illegal states without violating path constraints, determine whether the current state is a fully satisfied state, if not, construct a partially satisfied state, build a profit matrix, delete the suboptimal directed acyclic graph in this state, if the state traversal is complete, set the current layer to the previous layer, and set the current layer to empty; If the current state is a fully satisfied state, only the directed acyclic graph with the highest score in the current state is retained.
[0009] Preferably, the constructing of the benefit matrix and the pruning of the suboptimal directed acyclic graph in this state include: For each state Construct the profit function matrix: Among them, 1 represents , 0 represents ; Group the directed acyclic graphs in this state so that each column of the profit function matrix are the same; The suboptimal directed acyclic graphs in the same group are deleted, and the retained directed acyclic graphs are inherited to the subsequent state expansion.
[0010] Preferably, the algorithm for pruning rules includes: illegal pruning and non-optimal pruning; The illegal pruning includes: Illegal states include: ,if If established, then the state It is a legal state, otherwise it is an illegal state; Illegal structures include: For all , its parent set If it satisfies: i). ; ii). For each Variables in ,exist ; then this structure Satisfy the path constraint, otherwise is an illegal structure, where represent middle The set of descendant variables of ; The non-optimal pruning includes: For all ,like If established, Except for the structure with the highest score, all other sub-DAGs are deleted; for as well as , the profit function Defined as: in, Status An arbitrary structure in , then the constraint exist is invalid if , then the constraint is valid; If the path constraint is invalid, its impact on the suboptimal DAG is ignored during the deletion process: Assume and Yes Status There are two directed acyclic graphs in ,like yes The only path constraint on the exist and If both are invalid, the directed acyclic graph with the highest score is retained. exist and are all valid, then In the case of delete.
[0011] Step 5: Establish a dynamic programming search algorithm, and use a certain search strategy based on the parent set learned in step 1 to find the optimal solution in the precise search graph established in step 3; dynamic programming adopts the idea of combinatorial optimization, and decomposes DAG learning into obtaining the optimal scoring results of different subgraphs; in order to improve the efficiency of precise search, the state space reduction rule in step 4 is used to simplify the entire search process.
[0012] Preferably, when there is no path constraint in the dynamic programming search algorithm, the state in the precise search graph is Add subvariables The rating changes are: in: Representing substructure Rating, represent by The optimal score when the subset in is used as the parent set; the remaining variables A suboptimal subnetwork will be formed. Can from Find the optimal superset in .
[0013] The present invention further provides a DAG learning system integrating path constraints, comprising: Scoring calculation module: used to calculate the parent-child set scores from a given data set; Expert knowledge generation module: used to randomly generate path constraints or record path constraints given by experts; Precise search graph construction module: used to construct precise search graph; Precise search graph pruning module: used to prune illegal states, illegal DAGs, and suboptimal structures of the precise search graph to reduce memory usage; Precise search module: used to dynamically search the precise search graph based on the precise search graph construction module and the precise search graph deletion module, and solve the optimal DAG that ultimately satisfies the path constraints.
[0014] The technical effects and advantages of the present invention are as follows: the DAG learning method and system integrating path constraints improve the problem that the existing methods cannot store suboptimal structures that become global optimal solutions by combining path constraints. The dynamic programming under ACOG can achieve less time and space consumption compared with the existing methods, and the scalability and robustness are well guaranteed; the causal discovery tasks of some practical applications in production and life are completed, and the DAG is adaptively learned through the path constraints given by experts to improve the causal cognition level of application indicators. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 Schematic diagram of DAG and path constraints in steps 1 and 2 of the present invention; Figure 2 is a schematic diagram of ACOG in steps 3 and 4 of the present invention; Figure 3 is a schematic diagram of an example for deleting ACOG in step 4 of the present invention; Figure 4 is a flow chart of a method for performing precise search based on ACOG in step 5 of the present invention; Figure 5 It is a schematic diagram of hardware deployment and software adaptation in step 6 of the present invention; Figure 6It is a schematic diagram of ACOG construction of LTE fault diagnosis service in step 7 of the present invention; Figure 7 It is a schematic diagram of ACOG pruning of the LTE fault diagnosis service in step 7 of the present invention; Figure 8 This is a final causal DAG diagram of the LTE fault diagnosis service in step 7 of the present invention. DETAILED DESCRIPTION
[0016] 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.
[0017] The present invention provides a DAG learning method integrating path constraints, comprising the following steps: Step 1: Establish a parent set identification algorithm: DAG contains a series of random variables and the edges pointing to their parent sets; Figure 1 For example, where the variable contains , the edge contains ; When from the data set When learning the optimal DAG, the candidate parent set and their corresponding scores can be a good measure of the degree of fit between the currently learned DAG and the data; at this time, finding the optimal DAG is regarded as a combinatorial optimization problem, and the scoring function satisfies the decomposability, that is: in, Represents the total number of variables in the DAG, represent middle The parent set variable of . The scoring function used in the example of the present invention is the Bayesian Information Theory score (BIC): in Representative variables The total number of possible combinations of the corresponding parent variables, Representative variables The total number of possible combinations. represent The total number of data in Represents the observed data In line with The number of data items, and satisfy ; Using the scores of fit and penalty items can better evaluate the fit of the current structure under path constraints; After determining the score of each parent-child set, the parent set identification process is performed by traversal. The specific method is as follows: Figure 1 For example: Calculate the A variable , {B}, {C}, {D}, {B,C}, {B,D}, {C,D}, {B, C, D} are the parent sets and sort them from small to large, and calculate the B variable to , {A}, {C}, {D}, {A,C}, {A,D}, {C,D}, {A, C, D} are the parent sets and sort them from small to large, and calculate the C variable. , {A}, {B}, {D}, {A, B}, {A,D}, {B,D}, {A, B, D} are the parent sets and sort them from small to large, and calculate the D variable. , {A}, {B}, {C}, {A, B}, {A, C}, {B, C}, {A, B, C} are the parent sets and sort them from small to large. Store all calculated tables in computer storage media for subsequent steps.
[0018] Step 2: Establish a way to represent path constraints: The path constraint represents the expert's weak prior knowledge of the DAG learning process, expressed as: , path constraint set Represents the final learned network structure Path must exist in and .by Figure 1 For example, the path constraint contains a ,in is called the constrained ancestor variable, is called the constrained descendant variable. The path constraint is not decomposable, that is, it cannot be achieved by forcing the searched structure to contain specified edges during the network learning process, nor can it be directly cut off the search space that meets this condition. Figure 1 In the still So as to meet the path constraints .
[0019] Step 3: Create an accurate search graph ACOG: by Figure 2 As an example, a three-variable ACOG structure diagram is shown. Each state A series of DAGs composition, is defined as: Represents Add subvariables to The optimal structure after is a set of variables, is a collection of variables The formed directed acyclic graph, Represents a For the parent set, is the substructure of the subvariable. If a subvariable belongs to a constrained descendant variable, its optimal parent set must contain at least one required ancestor variable or its descendant. Conversely, for unconstrained nodes, its optimal parent set only needs to select the set corresponding to the highest score according to the score cache in step 1. ACOG has the following characteristics: ACOG has a wider search scope. Unlike existing methods, where the state only encodes the optimal structure of the corresponding variable set, the state of ACOG contains all possible structures when a subvariable is added. ACOG stores many suboptimal solutions that may constitute the global optimal solution under the influence of path constraints, but these structures will definitely be discarded in existing methods. Therefore, ACOG is likely to find a higher quality structure.
[0020] When Add subvariables , ACOG only considers the optimal parent set instead of all candidate sets. In theory, it may be difficult for ACOG-based precise learning to reach the global optimal solution because the model has been simplified, but considering too many suboptimal parent variable sets is usually meaningless and may also cause a lot of memory waste. This is especially common when the path constraints are consistent with the real network.
[0021] Therefore, ACOG can achieve better and more accurate results than existing methods and reduce time and space consumption, which is an effective method for integrating path constraints. Furthermore, based on this, a series of pruning rules can be designed to delete structures that violate path constraints to further reduce the complexity of the algorithm.
[0022] Step 4: Establish a pruning rule: Based on the path constraints given in step 2, the ACOG constructed in step 3 can be further pruned. The pruned rules include illegal pruning and non-optimal pruning. Illegal pruning: The purpose of introducing ACOG is to integrate path constraints. Therefore, a prerequisite is that the DAG in the state of ACOG should meet the path constraints, and those states or DAGs that violate the given path constraints should be deleted in advance. The illegal state refers to: ,if If established, then the state is a legal state, otherwise it is an illegal state; an illegal structure refers to: For all , its parent set If it satisfies: i). ; ii). For each ,exist ; then this structure Satisfy the path constraint, otherwise is an illegal structure, where represent middle The set of descendant variables of .
[0023] If a state does not satisfy the path constraint or part of the DAG within the state violates the path constraint, then these structures will be pruned from the ACOG.
[0024] Non-optimality pruning: According to the previous rule, ACOG still retains a large number of suboptimal solutions. When expert knowledge is lacking, according to the principle of dynamic programming to accurately learn DAG, only the structure with the highest score needs to be retained in each state. However, after the path constraint is introduced, each state should retain all DAGs and exclude illegal states. At this time, although the remaining structures meet the path constraint, most of them are suboptimal solutions, and non-optimality pruning is to delete such structures as much as possible. First consider a special case: For all ,like If established, Except for the structure with the highest score, all other sub-DAGs can be deleted.
[0025] The correctness of this conclusion can be demonstrated by some counterexamples. is a state in an ACOG that satisfies the above conditions, and is a descendant state of it. If a subvariable To join In: If its required ancestor variable set is an empty set, then for All DAGs in The optimal parent set of is consistent, because the parent set will always be A subset of . If its required ancestor variable set is not an empty set, then If this does not happen, then , This can be inferred that , which violates the initial assumption. Therefore, for the state For any DAG in The optimal parent set of is always derived from ,Right now The difference in the structure will not affect the selection of the optimal structure, so for the sake of simplicity in calculation, only the structure with the highest score needs to be retained.
[0026] This state where both the ancestor variables and the descendant variables appear at the same time can be called a "fully satisfied" state, which is very easy to handle. However, most states in ACOG do not belong to this state, which is also called a "partially satisfied" state. For this "partially satisfied" state, it is necessary to select and construct a hypothetical "fully satisfied" state to complete the deletion of the suboptimal structure. The method to achieve this goal is to Introducing an unstable factor , which takes into account those that belong to the required offspring set but have not yet been included The variable, that is At this point, simply retaining the structure with the highest score is no longer applicable, and a new method of removing suboptimal structures needs to be introduced. Before that, the concept of invalid constraints needs to be introduced: for as well as , the profit function ( Status An arbitrary structure in ) can be defined as: like , then the constraint exist is invalid, otherwise , then the constraint is valid. Therefore, if a path constraint is invalid, its impact on the suboptimal DAG can be ignored during the deletion process.
[0027] That is: Assume and Yes Status The two DAGs in ,like yes The only path constraint on the exist and If both are invalid, then only the DAG with the highest score needs to be retained in the two graphs. exist and are all valid, then In the case of delete.
[0028] like Figure 3In this patent example, an example is used to illustrate the rationality of the above pruning: Assuming The path constraint is , and Yes Status Two DAGs and If the path constraint is invalid, only When, then The optimal superset of contains at least one of the. As exist A descendant of that does not appear in the optimal parent set The time will never appear. can be deleted. More generally, ,in is a leaf variable. still , when adding new variables to two DAGs When the required parent set may be or , but it cannot be Therefore, the optimal supersets for the two structures are consistent, which also shows that the lower-scoring can be deleted; if the constraint is valid, then Cannot be deleted because there may be Established.
[0029] More generally, consider the case where multiple path constraints exist simultaneously (i.e. ): If for any , when the path constraint exist and When both are invalid, only the one with the highest score needs to be retained; if there is , so that for any , path constraints is valid and If established, can be deleted. Therefore, a general method for deleting suboptimal DAG in ACOG can be summarized: 1. For each state Construct the profit function matrix: Among them, 1 represents , 0 represents ; 2. Group the DAG in the state to ensure that each column of the profit function matrix are the same; 3. Delete the suboptimal DAG of the same group and inherit the remaining DAG to the subsequent state expansion.
[0030] Step 5: Establish a dynamic programming search algorithm: The dynamic program search algorithm (DP) can find the DAG with the highest score in the feasible search space. Based on the decomposability of the score, DP decomposes the structure learning problem into a series of sub-problems. When there are no path constraints, it moves to a state in ACOG. Add subvariables The rating changes are: in: Representing substructure 's rating, and represent by The optimal score when the subset in is used as the parent set; the remaining variables A suboptimal subnetwork will be formed. Can from Therefore, by constantly comparing The entire DP learning process can be divided into many sub-stages, starting from the empty set. In each stage, the optimal parent set is found based on the sub-network obtained in the previous stage and a more complex sub-network is generated. This process is repeated until all variables are traversed and the entire network is obtained.
[0031] When there are path constraints, the method of using DP from ACOG to find the global optimal structure given the path constraints is as follows Figure 4 shown.
[0032] Step 6: Establish a DAG learning system: Specifically, it includes a score calculation module, an expert knowledge generation module, an accurate search graph construction module, an accurate search graph deletion module, and an accurate search module. Different modules complete the following tasks: Scoring calculation module: completes the calculation of parent-child set scores from a given data set; Expert knowledge generation module: completes the random generation of path constraints or records the path constraints given by experts; Accurate search graph construction module: complete the construction of ACOG; Precise search graph pruning module: prunes illegal states, illegal DAGs, and suboptimal structures of ACOG to reduce memory usage; Precise search module: Based on the above two modules, it completes the dynamic search for ACOG and solves the optimal DAG that ultimately satisfies the path constraints.
[0033] The first two modules are deployed in the computer hard disk ROM, and the last two modules are stored in the computer memory RAM. The operation logic of different modules is as follows Figure 5 .
[0034] Step 7: Application example of DAG learning system in LTE service fault diagnosis; using the example of LTE service fault diagnosis to illustrate the feasibility of the proposed precise DAG learning system with fused path constraints; With the rapid development of LTE (Long Term Evolution) services, the network scale is constantly expanding. As the basic network for carrying LTE services, how to ensure the stability and normal operation of services is an issue that network maintenance personnel need to focus on. Among them, quickly locating faults and restoring services are the key to maintenance work. This example studies the positioning ideas of four common faults in LTE services through the precise DAG learning system modeled under expert knowledge, providing strong support for the normal and stable operation of LTE services.
[0035] The possible fault types (Fault) in LTE networks include: Port shutdown: refers to the port in the LTE device or network being shut down, causing the related services to be unavailable. This may be caused by device configuration errors, network settings issues, or hardware failures.
[0036] Board failure: Boards in LTE devices, such as base station control boards and radio frequency boards, fail or are damaged, causing the device to not operate normally or service quality to deteriorate. This may affect the normal operation of the base station, causing network interruption or performance issues.
[0037] Parameter configuration errors: Parameter configuration errors in the LTE network may lead to insufficient signal coverage, increased interference, decreased signal quality, and other issues, affecting the user's network experience. This may involve base station parameters, spectrum configuration, neighboring cell settings, and other aspects.
[0038] Optical path performance degradation: The optical fiber transmission system in the LTE network may be affected by problems such as optical fiber aging, loose connections, and insufficient optical power, resulting in optical path performance degradation. This will lead to increased signal transmission delays and increased packet loss rates, affecting the quality of user data transmission.
[0039] The characteristics of the four types of faults are mainly divided into five categories, namely, performance packet loss, warning, low light rate, switching failure, and ping status. The first four are binary states, including occurrence or non-occurrence. Performance packet loss (Package) refers to the phenomenon that some data packets are lost due to various reasons during data transmission in the LTE network; business alarm (Warning) refers to the alarm signal issued by the equipment or system in the LTE network when it detects an abnormal situation, which is used to notify the operation and maintenance personnel or system administrator of potential problems so that timely measures can be taken to solve them; low light rate (Light) refers to the quality of the optical signal received in the LTE network is lower than the normal level, which may be caused by fiber aging, insufficient optical power or connection problems; switching failure (Rearrange) refers to the equipment in the LTE network trying to switch to the backup device or backup path when a fault or abnormal situation occurs, but the switching operation fails to be successfully completed due to some reasons. The last ping status is a three-value state, which includes connected, different, and sometimes connected. It is a tool used to test network connections. It evaluates the status of network parameters such as delay and packet loss rate by sending ICMP packets and waiting for the target device to return a response.
[0040] Take a LTE fault diagnosis dataset as an example:
[0041] Based on step 1, the score table is calculated. Here we take score(Package|Fault) as an example. : Further calculations yield: The remaining scoring calculation methods are similar and will not be described here. According to step 2, the prior paths that experts can determine about the fault diagnosis network include: , , , as well as Based on step 3, ACOG is constructed as follows: Figure 6 As shown in the figure, each ellipse represents a substructure. For example, the first state of the first layer represents an empty graph, the first state of the second layer represents that there is only one variable in the graph, Fault; the second state of the second layer represents that there is only one state in the graph, Rearrange. The first state of the third layer has three subgraphs, namely , And three cases where two variables are independent, and so on. The second to last layer represents the graph structure composed of any five variables, and the last layer represents the graph structure formed by all variables.
[0042] The LTE fault diagnosis ACOG deletion process based on step 4 is as follows Figure 7As shown in the figure, the first two letters of each word are used to replace the variable, such as Re=Rearrange, Fa=Fault, etc. The deleted DAG or state is marked with an "X". The reason why the Rearrange state is deleted is that the path constraint The existence of makes the Rearrange state unable to appear in advance, otherwise it is an illegal state. This type of state also includes other states in the second layer except Fault. In the third layer, "Re->Fa" and "ReFa" are illegal structures because they violate the path constraint The reason why the rest of the structures in this layer are deleted is similar. The reason why the penultimate layer structure “Re->Wa” is deleted is that it is a suboptimal structure, that is, , so this structure cannot be inherited to the global optimal structure. The other structures of this layer are deleted for similar reasons.
[0043] Finally, based on step 5, dynamic programming is used to perform a global search on the pruned ACOG, and the final structure is as follows: Figure 7 The last layer is shown as follows, that is, the final network structure used for LTE fault diagnosis is: Figure 8 The structure shows that the direct characteristics after LTE failure are performance packet loss, service alarm, weak reception rate, and abnormal Ping status. The weak reception rate will further cause switching failure.
[0044] The present invention further provides a DAG learning system integrating path constraints, comprising: Scoring calculation module: used to calculate the parent-child set scores from a given data set; Expert knowledge generation module: used to randomly generate path constraints or record path constraints given by experts; Precise search graph construction module: used to construct precise search graph; Precise search graph pruning module: used to prune illegal states, illegal DAGs, and suboptimal structures of the precise search graph to reduce memory usage; Precise search module: used to dynamically search the precise search graph based on the precise search graph construction module and the precise search graph deletion module, and solve the optimal DAG that ultimately satisfies the path constraints.
[0045] Finally, it should be noted that the above is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A DAG learning method integrating path constraints, characterized in that: include: Construct a superset identification algorithm; Construct a representation of path constraints; Building an exact search graph for storing every substructure in the state; Establishing a pruning rule based on the path constraints in the exact search graph for simplification; Build a dynamic programming search algorithm.
2. A DAG learning method integrating path constraints according to claim 1, characterized in that: The parent set identification algorithm comprises: Calculate the scores of its candidate parent sets.
3. A DAG learning method integrating path constraints according to claim 2, characterized in that: The objective function To measure the substructure With data The degree of fitting, the objective function satisfies the decomposability: in, represents the total number of variables, represent middle The parent collection variable of The objective function includes: in Representative variables The total number of possible combinations of the corresponding parent variables, Representative variables The total number of possible combinations, represent The total number of data in Represents the observed data In line with The number of data items, and satisfy ; After determining the score of each parent-child set, the parent set identification process is performed by traversal.
4. The DAG learning method integrating path constraints according to claim 1, characterized in that: The method of establishing the path constraint includes: for the variable set Any variable in , path constraint set Indicates the final learned network structure Path must exist in .
5. The DAG learning method integrating path constraints according to claim 1 is characterized in that: The deletion rule establishment method comprises: Set the previous layer to an empty set, determine whether the number of layers reaches the full set, if not, expand each state in the previous layer, retain all directed acyclic graphs, delete illegal directed acyclic graphs and illegal states without violating path constraints, determine whether the current state is a fully satisfied state, if not, construct a partially satisfied state, build a profit matrix, delete the suboptimal directed acyclic graph in this state, if the state traversal is complete, set the current layer to the previous layer, and set the current layer to empty; If the current state is a fully satisfied state, only the directed acyclic graph with the highest score in the current state is retained; The constructing of the profit matrix and the pruning of the suboptimal directed acyclic graph in this state include: For each state Construct the profit function matrix: Among them, 1 represents , 0 represents ; Group the directed acyclic graphs in this state so that each column of the profit function matrix are the same; The suboptimal directed acyclic graphs in the same group are deleted, and the retained directed acyclic graphs are inherited to the subsequent state expansion.
6. The DAG learning method integrating path constraints according to claim 1, characterized in that: The construction of the dynamic programming search algorithm includes searching for an optimal solution in the precise search graph using a search strategy based on the parent set learned in the parent set identification algorithm, and simplifying the search process by using a deletion rule.
7. The DAG learning method integrating path constraints according to claim 1, characterized in that: The precise search graph includes: is defined as: Represents Add subvariables to The optimal structure after is a set of variables, It is a collection variable The formed directed acyclic graph, Represents For the parent set, A substructure of a subvariable.
8. The DAG learning method integrating path constraints according to claim 6 is characterized in that: In the dynamic programming search algorithm, when there is no path constraint, the state in the precise search graph is Add subvariables The rating changes are: in: Representing substructure Ratings, represent by The optimal score when the subset in is used as the parent set; the remaining variables A suboptimal subnetwork will be formed. Can from Find the optimal superset in .
9. The DAG learning method integrating path constraints according to claim 5, characterized in that: The algorithm for pruning rules includes: illegal pruning and non-optimal pruning; The illegal pruning includes: Illegal states include: ,if If established, then the state It is a legal state, otherwise it is an illegal state; Illegal structures include: For all , its parent set If it satisfies: i). ; ii). For each Variables in ,exist ; then this structure Satisfy the path constraint, otherwise is an illegal structure, where represent middle The set of descendant variables of ; The non-optimal pruning includes: For all ,like If established, Except for the structure with the highest score, all other sub-DAGs are deleted; for as well as , the profit function Defined as: in, Status An arbitrary structure in like , then the constraint exist is invalid if , then the constraint is valid; If the path constraint is invalid, its impact on the suboptimal DAG is ignored during the deletion process: Assumptions and Yes Status There are two directed acyclic graphs in ,like yes The only path constraint on the exist and If both are invalid, the directed acyclic graph with the highest score is retained. exist and are all valid, then In the case of delete.
10. A system for implementing the DAG learning method with integrated path constraints as claimed in any one of claims 1 to 9, characterized in that: include: Scoring calculation module: used to calculate the parent-child set scores from a given data set; Expert knowledge generation module: used to randomly generate path constraints or record path constraints given by experts; Precise search graph construction module: used to construct precise search graph; Precise search graph pruning module: used to prune illegal states, illegal directed acyclic graphs, and suboptimal structures of the precise search graph to reduce memory usage; Precise search module: used for dynamically searching the precise search graph based on the precise search graph construction module and the precise search graph deletion module, and solving the optimal directed acyclic graph that ultimately satisfies the path constraints.
