A data processing method and device
Through the attribute information division and similarity analysis of the fault tree, similar subgraphs are identified and corrected, which solves the problem of difficulty in maintaining the fault tree, realizes the matching of the fault tree and the changes of the monitoring object, and improves the efficiency of troubleshooting and the stability of the fault tree. sex.
Patent Information
- Application Number
- CN201911419506.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-12-31
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2039-12-31
AI Technical Summary
It is difficult to maintain existing fault trees. Especially when the monitored objects have multiple faults, the maintenance and update of the fault tree becomes complicated, leading to the corruption of the knowledge base and low troubleshooting efficiency.
By obtaining the attribute information of each component of the fault tree, the fault tree is divided into subgraphs, and similarity analysis is performed to identify similar subgraphs, realize unified batch correction of changed subgraphs, reduce the difficulty of maintaining the fault tree, and make it Match changes in monitored objects.
It effectively reduces the difficulty of maintaining the fault tree, improves the flexibility and adaptability of the fault tree, ensures that the fault tree can still be used normally after the monitoring object changes, and reduces the corruption of the knowledge base.
Smart Images

Figure CN111160583B
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of fault analysis, and in particular, relates to a data processing method and device. Background Art
[0002] A fault tree is a tree-like structure diagram that represents the logical causal relationship between events. A fault tree consists of a top event, multiple basic events, and multiple logic gates. The top event is used to describe the faults of the monitored object (such as equipment, system, etc.), the basic event is used to describe the cause of the fault of the monitored object, and the logic gate reflects the logical causal relationship between the top event and multiple basic events. In this way, when the monitored object has a fault described by the top event of the fault tree, the fault tree can be used to analyze the cause of the fault and perform troubleshooting.
[0003] Currently, a fault tree is only used to locate one fault. If a monitored object has many faults, there will be many fault trees corresponding to the monitored object, which increases the difficulty of maintaining the fault tree. Summary of the invention
[0004] In view of this, the purpose of the present application is to provide a data processing method and device for reducing the difficulty of maintaining a fault tree.
[0005] The present application provides a data processing method, comprising:
[0006] Obtaining attribute information of each component in the first fault tree and the second fault tree;
[0007] Dividing the first fault tree and the second fault tree according to the attribute information of each component to obtain a first subgraph in the first fault tree and a second subgraph in the second fault tree;
[0008] A similarity analysis is performed on the first subgraph and the second subgraph to obtain a similarity analysis result, where the similarity analysis result is used to indicate similar subgraphs in the first subgraph and the second subgraph.
[0009] Optionally, dividing the first fault tree and the second fault tree according to the attribute information of each component to obtain a first subgraph in the first fault tree and a second subgraph in the second fault tree includes:
[0010] According to the resource type of the top event in the first fault tree and the resource types of each basic event in the first fault tree, obtaining a first basic event whose resource type is the same as the resource type of the top event from each basic event in the first fault tree;
[0011] Starting from the first basic event, dividing toward the top event of the first fault tree, so that the first subgraph includes the top event from the first basic event to the first fault tree in the first fault tree;
[0012] According to the resource type of the top event in the second fault tree and the resource types of each basic event in the second fault tree, obtaining a second basic event whose resource type is the same as the resource type of the top event from each basic event in the second fault tree;
[0013] Starting from the second basic event, division is performed toward the top event of the second fault tree, so that the second subgraph includes the second fault tree from the second basic event to the top event of the second fault tree.
[0014] Optionally, dividing the first fault tree and the second fault tree according to the attribute information of each component to obtain a first subgraph in the first fault tree and a second subgraph in the second fault tree includes:
[0015] According to the connection relationship of the logic gates in the first fault tree and the connection relationship of the logic gates in the second fault tree, the first fault tree and the second fault tree are divided from the logic gate downwards, so that the first subgraph and the second subgraph respectively include a logic gate and an event connected to the logic gate.
[0016] Optionally, performing similarity analysis on the first subgraph and the second subgraph to obtain a similarity analysis result includes:
[0017] Respectively vectorizing the job script identification information corresponding to the basic event of the first subgraph and the job script identification information corresponding to the basic event of the second subgraph to obtain a first vector corresponding to the first subgraph and a second vector corresponding to the second subgraph;
[0018] A similarity analysis is performed based on the first vector of the first subgraph and the second vector corresponding to the second subgraph to obtain the similarity analysis result.
[0019] Optionally, the method also includes: establishing a first correspondence between sub-graph identification information of the first sub-graph and job script identification information corresponding to the basic event of the first sub-graph, and establishing a second correspondence between sub-graph identification information of the second sub-graph and job script identification information corresponding to the basic event of the second sub-graph.
[0020] Optionally, the method further includes: obtaining the number of subgraphs in which both the subgraph identification information and the job script identification information are changed in the similar subgraphs;
[0021] If the number of subgraphs is greater than a preset threshold, prompts are given to subgraphs in the similar subgraphs whose subgraph identification information and job script identification information have changed.
[0022] Optionally, the prompting of the unchanged sub-graphs in the similar sub-graphs includes: outputting the unchanged sub-graphs in the similar sub-graphs in a preset output manner.
[0023] Optionally, the method further includes: acquiring attribute information of the first fault tree and attribute information of the second fault tree;
[0024] Acquire target attribute information according to the attribute information of the first fault tree and the attribute information of the second fault tree;
[0025] Acquire a fault tree having attribute information associated with the target attribute information;
[0026] A target fault tree is obtained from the first fault tree, the second fault tree, and the fault tree associated with the target attribute information, wherein the quality of the target fault tree is better than the quality of other fault trees among the first fault tree, the second fault tree, and the fault tree associated with the target attribute information.
[0027] The present application also provides a data processing device, comprising:
[0028] An acquisition unit, used to acquire attribute information of each component in the first fault tree and the second fault tree;
[0029] A partitioning unit, configured to partition the first fault tree and the second fault tree according to the attribute information of each component, to obtain a first subgraph in the first fault tree and a second subgraph in the second fault tree;
[0030] An analyzing unit is used to perform a similarity analysis on the first subgraph and the second subgraph to obtain a similarity analysis result, wherein the similarity analysis result is used to indicate a similar subgraph in the first subgraph and the second subgraph.
[0031] Optionally, the division unit includes:
[0032] an acquisition subunit, configured to acquire, from each basic event of the first fault tree, a first basic event whose resource type is the same as that of the top event according to the resource type of the top event in the first fault tree and the resource types of each basic event in the first fault tree, and to acquire, from each basic event of the second fault tree, a second basic event whose resource type is the same as that of the top event according to the resource type of the top event in the second fault tree and the resource types of each basic event in the second fault tree;
[0033] a partitioning subunit, configured to partition from the first basic event to the top event of the first fault tree, so that the first subgraph includes the top event from the first basic event to the first fault tree in the first fault tree, and to partition from the second basic event to the top event of the second fault tree, so that the second subgraph includes the top event from the second basic event to the second fault tree in the second fault tree;
[0034] or
[0035] The division unit is used to divide the first fault tree and the second fault tree from the logic gate downward according to the connection relationship of the logic gates in the first fault tree and the connection relationship of the logic gates in the second fault tree, so that the first subgraph and the second subgraph respectively include a logic gate and an event connected to the logic gate.
[0036] As can be seen from the above technical solution, the attribute information of each component in the first fault tree and the second fault tree is obtained, and the first fault tree and the second fault tree are divided according to the attribute information of each component to obtain the first subgraph in the first fault tree and the second subgraph in the second fault tree, and the first subgraph and the second subgraph are subjected to similarity analysis to obtain the similarity analysis result, wherein the similarity analysis result is used to indicate the similar subgraphs in the first subgraph and the second subgraph, so that when the first subgraph in the first fault tree changes with the change of the monitored object, the subgraph similar to the changed first subgraph can be determined according to the similarity analysis result, and the similar subgraph is corrected according to the changed first subgraph, so as to realize the correction of the similar subgraph in the case where the subgraph in any fault tree changes, thereby realizing the unified batch correction of similar subgraphs and reducing the maintenance difficulty of the fault tree. And by uniformly correcting the similar subgraphs, the fault trees where these subgraphs are located can match the changes of the monitored object, so that the fault trees where these subgraphs are located can still be used normally after the monitored object changes, reducing the corruption of the knowledge base to which the fault tree belongs. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0038] Figure 1 is a flow chart of a data processing method provided in an embodiment of the present application;
[0039] Figure 2 is a schematic diagram of a fault tree provided in an embodiment of the present application;
[0040] Figure 3 It is a schematic diagram of a fault tree partition provided in an embodiment of the present application;
[0041] Figure 4 is a flow chart of another data processing method provided in an embodiment of the present application;
[0042] Figure 5 It is a schematic diagram of another fault tree partitioning provided in an embodiment of the present application;
[0043] Figure 6 is a flow chart of another data processing method provided in an embodiment of the present application;
[0044] Figure 7 is a flow chart of another data processing method provided in an embodiment of the present application;
[0045] Figure 8 It is a structural diagram of a data processing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0047] See also Figure 1 , which shows a flow chart of a data processing method provided by an embodiment of the present application, which may include the following steps:
[0048] 101: Obtaining attribute information of each component in the first fault tree and the second fault tree. It can be understood that any fault tree includes: top events, intermediate events and basic events, and the top events, intermediate events and basic events are connected by logic gates to represent the logical causal relationship between the two connected events. Therefore, the cause of the fault indicated by the top event can be determined from the intermediate events, basic events and logic gates. When the monitoring object corresponding to the fault tree changes (such as the monitoring object is upgraded or the logic of the monitoring object changes), the fault tree will also change, such as the logical causal relationship between the events of the fault tree, the intermediate events and the basic events may change.
[0049] In this embodiment, the attribute information of each component obtained may be the attribute information of the above-mentioned top event, basic event and logic gate. The reason why the attribute information of the intermediate event is not obtained is that there are many paths evolving upward or downward from the intermediate event, which will result in a large number of divided sub-graphs and some useless sub-graphs. Therefore, the attribute information of the intermediate event is not obtained in this embodiment, and thus there is no need to divide the fault tree according to the attribute information of the intermediate event.
[0050] For top events, basic events and logic gates, the attribute information of top events can indicate the monitoring object. For example, the attribute information of top events includes resource types, which can indicate the type of monitoring object corresponding to the top event. For example, if the resource type is a database resource, it means that the monitoring object corresponding to the top event is a database. The attribute information of basic events can indicate the monitoring object and monitoring means corresponding to the basic events. For example, the attribute information of basic events includes resource types and job script identification information. The job script identification information is used to indicate the job script version used for monitoring, and the job script corresponding to the job script version is the monitoring means. For example, for a database, the resource types of basic events may include database clusters, database nodes, cloud platforms, host machines, storage systems, etc. The attribute information of logic gates is used to indicate the type of the logic gates. For example, the attribute information of logic gates may include AND gates, OR gates, etc.
[0051] One point that needs to be explained here is that: this embodiment is explained by taking the first fault tree and the second fault tree as examples. In practical applications, at least two fault trees can be divided to determine similar subgraphs in at least two fault trees, or one fault tree can be divided and then similarity analysis can be performed with existing subgraphs (i.e., subgraphs that have been divided before).
[0052] 102: According to the attribute information of each component, the first fault tree and the second fault tree are divided to obtain a first subgraph in the first fault tree and a second subgraph in the second fault tree, so as to split the first fault tree and the second fault tree. It should be noted here that the subgraph obtained by dividing the fault tree is different from the minimum cut set in the fault tree. The minimum cut set is the minimum cut set that must occur to cause the top event, and the subgraph in the fault tree can be a subgraph that can obtain the minimum cut set, or a subgraph that is irrelevant to the minimum cut set.
[0053] The following introduces a method for dividing the first fault tree and the second fault tree: according to the connection relationship between the logic gates in the first fault tree and the connection relationship between the logic gates in the second fault tree, the first fault tree and the second fault tree are divided from the logic gate downward respectively, so that the first subgraph and the second subgraph respectively include a logic gate and an event connected to the logic gate, thereby realizing division in units of logic gates.
[0054] The event connected to the logic gate refers to the input event of the logic gate. Because the division is from the logic gate downward, a logic gate in the fault tree corresponds to an output event and an input event. The output event is located above the logic gate, and the input event is located below the logic gate, indicating that the output event is obtained when the input event meets the logical relationship indicated by the logic gate, such as Figure 2 The fault tree shown in Figure 2 In the fault tree shown, T represents the top event, G represents the intermediate event, and X represents the basic event. The logic gates between the events are AND gates or OR gates. For an AND gate, such as the AND gate between G2, G4 and G5, when G4 and G5 satisfy the AND gate relationship, G2 is output. Then G4 and G5 are the input events of the AND gate, and G2 is the output event. The subgraphs obtained when dividing are as follows: Figure 3 As shown in FIG. 1 , each logic gate and the events connected to the logic gate and located under the logic gate are divided into a subgraph.
[0055] 103: Perform similarity analysis on the first subgraph and the second subgraph to obtain similarity analysis results, wherein the similarity analysis results are used to indicate similar subgraphs in the first subgraph and the second subgraph, so as to obtain similar subgraphs in the first fault tree and the second fault tree. The similar subgraphs in the first fault tree and the second fault tree may include: at least one of similar subgraphs in any of the first fault tree and the second fault tree and similar subgraphs between the first fault tree and the second fault tree, so that when a subgraph changes, the subgraphs similar to it can be triggered to be uniformly corrected.
[0056] In this embodiment, the algorithm used for similarity analysis of the first subgraph and the second subgraph is related to the division method. For example, if the division is performed in units of logic gates, the corresponding similarity analysis includes but is not limited to the following methods:
[0057] The job script identification information corresponding to each event in the first subgraph and the job script identification information corresponding to each event in the second subgraph are respectively vectorized to obtain a first vector corresponding to the first subgraph and a second vector corresponding to the second subgraph; similarity analysis is performed based on the first vector corresponding to the first subgraph and the second vector corresponding to the second subgraph to obtain a similarity analysis result, such as performing similarity analysis on the first vector and the second vector using a vector similarity analysis algorithm, for example, using algorithms such as Hamming distance or cosine similarity to perform similarity analysis on the first vector and the second vector, and when the similarity of the two subgraphs calculated using algorithms such as Hamming distance or cosine similarity reaches a preset threshold, it indicates that the two subgraphs are similar subgraphs. Each event in either the first subgraph or the second subgraph may be an intermediate event or a basic event, depending on the position of the logic gate in the fault tree.
[0058] In addition to using logic gates for partitioning, this embodiment can also use other methods for partitioning, such as Figure 4 As shown, another fault tree partitioning method provided in an embodiment of the present application is shown, which may include the following steps:
[0059] 201: According to the resource type of the top event in the first fault tree and the resource types of each basic event in the first fault tree, obtain a first basic event having the same resource type as the top event from each basic event in the first fault tree.
[0060] In this embodiment, the resource type of the top event and the basic event can be determined by a monitoring system used to monitor the monitoring objects corresponding to the top event and the basic event. The monitoring system stores monitoring data of the monitoring objects. The monitoring data can indicate from which aspects the monitoring objects are monitored or which aspects the failure depends on, which can indicate the resource type. For example, the top event indicates that the database queue is too long, and the monitoring data indicates that the failure is caused by the storage system design. Then the resource type of a basic event in the fault tree corresponds to the storage system, indicating that the resource type of the basic event can be obtained from the monitoring data. For the top event, the top event can directly indicate the resource type of the top event. This is because the top event will indicate what kind of failure the monitoring object has. The resource type can indicate the type of the monitoring object, so the top event can use the type of the monitoring object as the resource type. For example, if the top event indicates that the database queue is too long, the resource type of the top event is the database.
[0061] 202: Starting from the first basic event, the first fault tree is divided toward the top event, so that the first subgraph includes the first basic event to the top event in the first fault tree. Because the first basic event is a basic event with the same resource type as the top event in the first fault tree, the part between the basic event and the top event corresponding to the same resource type in the first fault tree can be split into the same subgraph, and in the process of splitting the part between the basic event and the top event corresponding to the same resource type in the first fault tree into the same subgraph, the part corresponding to the basic event with a different resource type from the top event will also be split into another subgraph.
[0062] Still with the above Figure 2 Take the fault tree shown in the figure as an example. Figure 2 The resource types of the top event and the basic event in the fault tree shown are as follows Figure 5 As shown, the corresponding division results can be seen in Figure 5As shown, the basic events with the same resource type as the top event are divided into one subgraph, and the basic events with different resource types from the top event are divided into another subgraph. Of course, the basic events with different resource types from the top event can be further divided so that the resource types of the basic events in each subgraph are the same, thereby realizing the division with the minimum granularity of resource type, such as Figure 5 As shown by the dotted arrow, basic events with different resource types from the top event are further divided.
[0063] 203: According to the resource type of the top event in the second fault tree and the resource types of each basic event in the second fault tree, obtain a second basic event whose resource type is the same as the resource type of the top event from each basic event in the second fault tree.
[0064] 204: Starting from the second basic event, divide toward the top event of the second fault tree, so that the second subgraph includes the second fault tree from the second basic event to the top event of the second fault tree.
[0065] Step 203 to step 204: are the same as the above-mentioned steps 201 to step 202, and step 201 and step 203 can be executed simultaneously, or step 203 can be executed first and then step 201, which will not be described in detail here.
[0066] In view of the above division method, this embodiment provides a similarity analysis method that performs similarity analysis starting from basic events, and the process is as follows:
[0067] The job script identification information corresponding to the basic event of the first subgraph and the job script identification information corresponding to the basic event of the second subgraph are respectively vectorized to obtain a first vector corresponding to the first subgraph and a second vector corresponding to the second subgraph; a similarity analysis is performed based on the first vector corresponding to the first subgraph and the second vector corresponding to the second subgraph to obtain a similarity analysis result.
[0068] For example, a similarity analysis is performed on the first vector and the second vector through a vector similarity analysis algorithm. For example, algorithms such as Hamming distance or cosine similarity can be used to perform similarity analysis on the first vector and the second vector. When the similarity of the two subgraphs calculated using algorithms such as Hamming distance or cosine similarity reaches a preset threshold, it means that the two subgraphs are similar subgraphs. One point that needs to be explained here is that the reason why the job script identification information corresponding to the basic event is used for similarity analysis is that: although the resource types corresponding to the basic events are the same and the job scripts used for monitoring are the same, there are multiple versions of a job script. When the versions of the job scripts used are different, it means that there are differences in the basic events. Therefore, this embodiment will perform similarity analysis based on the job script identification information that can reflect the job script version.
[0069] In this embodiment, through the above Figure 4 After splitting the first fault tree and the second fault tree in the manner shown, this embodiment may also use other methods to perform similarity analysis, such as obtaining a minimum cut set from the first subgraph and the second subgraph, and performing similarity analysis on the first subgraph and the second subgraph based on the minimum cut set, which will not be described in detail in this embodiment.
[0070] As can be seen from the above technical solution, the attribute information of each component in the first fault tree and the second fault tree is obtained, and the first fault tree and the second fault tree are divided according to the attribute information of each component to obtain the first subgraph in the first fault tree and the second subgraph in the second fault tree, and the first subgraph and the second subgraph are subjected to similarity analysis to obtain the similarity analysis result, wherein the similarity analysis result is used to indicate the similar subgraphs in the first subgraph and the second subgraph, so that when the first subgraph in the first fault tree changes with the change of the monitored object, the subgraph similar to the changed first subgraph can be determined according to the similarity analysis result, and the similar subgraph is corrected according to the changed first subgraph, so as to realize the correction of the similar subgraph in the case where the subgraph in any fault tree changes, thereby realizing the unified batch correction of similar subgraphs and reducing the maintenance difficulty of the fault tree. And by uniformly correcting the similar subgraphs, the fault trees where these subgraphs are located can match the changes of the monitored object, so that the fault trees where these subgraphs are located can still be used normally after the monitored object changes, reducing the corruption of the knowledge base to which the fault tree belongs.
[0071] See also Figure 6 , which shows a flow chart of another data processing method provided in an embodiment of the present application, which may include the following steps:
[0072] 301: Obtain attribute information of each component in the first fault tree and the second fault tree.
[0073] 302: Divide the first fault tree and the second fault tree according to the attribute information of each component to obtain a first subgraph in the first fault tree and a second subgraph in the second fault tree, so as to split the first fault tree and the second fault tree.
[0074] 303: Perform similarity analysis on the first subgraph and the second subgraph to obtain a similarity analysis result, wherein the similarity analysis result is used to indicate similar subgraphs in the first subgraph and the second subgraph.
[0075] In this embodiment, the above steps 301 to 303 are the same as the above steps 101 to 103, which will not be elaborated in this embodiment.
[0076] 304: Establish a first correspondence between the subgraph identification information of the first subgraph and the job script identification information corresponding to the basic event of the first subgraph, and establish a second correspondence between the subgraph identification information of the second subgraph and the job script identification information corresponding to the basic event of the second subgraph, so that the subgraph and the job script identification information corresponding to the basic event of the subgraph can be corresponded, and the subgraph and the event can correspond. The job scripts corresponding to the same basic event may be different. Through the correspondence of the job script identification information of the subgraph and the event, different subgraphs with the same basic event but different job scripts can also be distinguished.
[0077] The subgraph identification information is used to indicate the subgraph version, and the job script identification information is used to indicate the job script version. When the subgraph changes and the job script changes, the subgraph identification information and the job script identification information will also change accordingly, so as to record the change process of the subgraph and the job script through the subgraph identification information and the job script identification information.
[0078] It can be understood that: the above-mentioned basic events refer to the bottom-level events in the fault tree. If a subgraph includes not only basic events but also intermediate events, such as the above-mentioned use of logic gates to divide the fault tree to obtain this form of subgraph, then the intermediate events can be regarded as the bottom-level events in the subgraph. For these subgraphs, a correspondence between the subgraph identification information of the subgraph and the job script identification information corresponding to the bottom-level event can also be established.
[0079] In this embodiment, one purpose of establishing the subgraph identification information of each subgraph and the job script identification information corresponding to the bottom-level event in the subgraph is to check the changes in the subgraph identification information and the job script identification information in similar subgraphs, so as to perform preset processing on similar subgraphs according to the changes in the subgraph identification information and the job script identification information, wherein one method of preset processing is as follows:
[0080] The number of subgraphs in which both subgraph identification information and job script identification information have changed in similar subgraphs is obtained; if the number of subgraphs is greater than a preset threshold, prompts are given to subgraphs in similar subgraphs that have not changed based on subgraphs in which both subgraph identification information and job script identification information have changed, so as to prompt that some subgraphs in similar subgraphs have not changed, wherein the prompting method may be, but is not limited to, outputting subgraphs in similar subgraphs that have not changed in a preset output method, for example, adding annotation data to subgraphs that have not changed, wherein the annotation data are used to prompt the part to be changed in the subgraph to which the annotation data belongs, and to show the identification information after the subgraph identification information and job script identification information in the similar subgraph have changed, etc.; or outputting the part that needs to be changed in the subgraph that has not changed in a different color, etc.
[0081] Another method of preset processing includes: obtaining the number of subgraphs in which both the subgraph identification information and the job script identification information have changed in similar subgraphs; if the number of subgraphs is greater than a preset threshold, correcting the subgraphs that have not changed in similar subgraphs based on the subgraphs in which both the subgraph identification information and the job script identification information have changed in similar subgraphs; if the number of subgraphs in which both the subgraph identification information and the job script identification information have changed in similar subgraphs is greater than a preset threshold, it indicates that the subgraphs and the job scripts tend to be stable, and at this time, the subgraphs that have not changed can be corrected to reduce the chance of erroneous modification.
[0082] See also Figure 7 , which shows a flow chart of another data processing method provided in an embodiment of the present application, which may include the following steps:
[0083] 401: Obtain attribute information of each component in the first fault tree and the second fault tree.
[0084] 402: Divide the first fault tree and the second fault tree according to the attribute information of each component to obtain a first subgraph in the first fault tree and a second subgraph in the second fault tree, so as to split the first fault tree and the second fault tree.
[0085] 403: Perform similarity analysis on the first subgraph and the second subgraph to obtain a similarity analysis result, wherein the similarity analysis result is used to indicate similar subgraphs in the first subgraph and the second subgraph.
[0086] In this embodiment, the above steps 401 to 403 are the same as the above steps 101 to 103, which will not be elaborated in this embodiment.
[0087] 404: Obtain attribute information of the first fault tree and attribute information of the second fault tree. The attribute information of the fault tree is used to indicate information of the author who wrote the fault tree, such as including but not limited to the author's basic information (name, gender, age, etc.) and the author's organization information, and can also be used to indicate application scenarios of the fault tree.
[0088] 405: Obtain target attribute information according to the attribute information of the first fault tree and the attribute information of the second fault tree. The target attribute information is information of an author who has a relatively strong ability to write a fault tree obtained from the attribute information of the first fault tree and the attribute information of the second fault tree. For example, the ability of the author to write a fault tree can be determined according to the basic information of the author and the information of the organization to which the author belongs, and the author information of the author can be used as the target attribute information.
[0089] 406: Obtaining a fault tree having attribute information associated with the target attribute information, wherein the fault tree having the attribute information associated with the target attribute information is a fault tree written by an author to whom the target attribute information belongs. If the target attribute information is attribute information of a first fault tree, then the fault tree having the attribute information associated with the target attribute information is another fault tree written by the author who wrote the first fault tree.
[0090] 407: Obtain a target fault tree from the first fault tree, the second fault tree, and the fault tree with associated target attribute information, wherein the quality of the target fault tree is better than the quality of other fault trees in the first fault tree, the second fault tree, and the fault tree with associated target attribute information, so that the target fault tree can be used as a template to facilitate writing a fault tree with reference to the target fault tree.
[0091] And according to the attribute information of the fault tree, the attribute information of the same monitoring object corresponding to the target attribute information can be determined, that is, the author set that constructs the fault tree of the same monitoring object can be determined, so that the fault tree of the author indicated by the target attribute information in the author set can be used to identify the problems existing in the fault trees written by other authors in the author set, and the problems of multiple fault trees of the same monitoring object can be effectively identified. In addition, the target fault tree can be divided by the data processing method provided in this embodiment to obtain subgraphs in the target fault tree, identify subgraphs in other fault trees that are similar to the subgraphs in the target fault tree, and use the subgraphs in the target fault tree as templates to provide modification basis.
[0092] Above Figure 7 and Figure 6 The data processing methods shown can also be combined, and this embodiment will no longer be described in conjunction with the accompanying drawings. For the aforementioned method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited to the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0093] Corresponding to the above method embodiment, the present application embodiment also provides a data processing device, whose structure is as follows: Figure 8 As shown, it may include: an acquisition unit 501, a division unit 502 and an analysis unit 503.
[0094] The acquisition unit 501 is used to acquire the attribute information of each component in the first fault tree and the second fault tree. The description of the fault tree, the description of the attribute information of each component in the fault tree, and the acquisition of the attribute information are not further described in this embodiment.
[0095] The partitioning unit 502 is used to partition the first fault tree and the second fault tree according to the attribute information of each component, and obtain a first subgraph in the first fault tree and a second subgraph in the second fault tree, so as to split the first fault tree and the second fault tree. It should be noted here that the subgraph obtained by partitioning the fault tree is different from the minimum cut set in the fault tree. The minimum cut set is the minimum cut set that must occur to cause the top event, and the subgraph in the fault tree can be a subgraph that can obtain the minimum cut set, or a subgraph that is irrelevant to the minimum cut set.
[0096] In this embodiment, a division method is: the division unit includes: an acquisition subunit and a division subunit. The acquisition subunit is used to acquire a first basic event whose resource type is the same as the resource type of the top event from each basic event of the first fault tree according to the resource type of the top event in the first fault tree and the resource type of each basic event in the first fault tree, and is used to acquire a second basic event whose resource type is the same as the resource type of the top event from each basic event of the second fault tree according to the resource type of the top event in the second fault tree and the resource type of each basic event in the second fault tree.
[0097] A partitioning subunit is used to partition from a first basic event to a top event of a first fault tree so that a first subgraph includes the first fault tree from the first basic event to the top event of the first fault tree, and is used to partition from a second basic event to a top event of a second fault tree so that a second subgraph includes the second fault tree from the second basic event to the top event of the second fault tree.
[0098] Another division method is: according to the connection relationship of the logic gates in the first fault tree and the connection relationship of the logic gates in the second fault tree, the first fault tree and the second fault tree are divided from the logic gate downward respectively, so that the first subgraph and the second subgraph respectively include a logic gate and an event connected to the logic gate.
[0099] The analysis unit 503 is used to perform similarity analysis on the first subgraph and the second subgraph to obtain a similarity analysis result, wherein the similarity analysis result is used to indicate similar subgraphs in the first subgraph and the second subgraph, so as to obtain similar subgraphs in the first fault tree and the second fault tree. The similar subgraphs in the first fault tree and the second fault tree may include: at least one of a similar subgraph in any of the first fault tree and the second fault tree and a similar subgraph between the first fault tree and the second fault tree, so that when a subgraph changes, a unified correction of similar subgraphs can be triggered.
[0100] In this embodiment, the algorithm used for similarity analysis of the first subgraph and the second subgraph is related to the division method. For example, if the division is performed in units of logic gates, the corresponding similarity analysis includes but is not limited to the following methods:
[0101] The job script identification information corresponding to each event in the first subgraph and the job script identification information corresponding to each event in the second subgraph are respectively vectorized to obtain a first vector corresponding to the first subgraph and a second vector corresponding to the second subgraph; similarity analysis is performed based on the first vector corresponding to the first subgraph and the second vector corresponding to the second subgraph to obtain a similarity analysis result, such as performing similarity analysis on the first vector and the second vector using a vector similarity analysis algorithm, for example, using algorithms such as Hamming distance or cosine similarity to perform similarity analysis on the first vector and the second vector, and when the similarity of the two subgraphs calculated using algorithms such as Hamming distance or cosine similarity reaches a preset threshold, it indicates that the two subgraphs are similar subgraphs. Each event in either the first subgraph or the second subgraph may be an intermediate event or a basic event, depending on the position of the logic gate in the fault tree.
[0102] Another similarity analysis method adopted by the analysis unit 503 is to perform similarity analysis starting from the basic event, and the process includes: respectively vectorizing the job script identification information corresponding to the basic event of the first subgraph and the job script identification information corresponding to the basic event of the second subgraph to obtain the first vector corresponding to the first subgraph and the second vector corresponding to the second subgraph; performing similarity analysis based on the first vector corresponding to the first subgraph and the second vector corresponding to the second subgraph to obtain a similarity analysis result. Another similarity analysis method adopted by the analysis unit 503 is to obtain a minimum cut set from the first subgraph and the second subgraph, and perform similarity analysis on the first subgraph and the second subgraph based on the minimum cut set, which will not be described in detail in this embodiment.
[0103] As can be seen from the above technical solution, the attribute information of each component in the first fault tree and the second fault tree is obtained, and the first fault tree and the second fault tree are divided according to the attribute information of each component to obtain the first subgraph in the first fault tree and the second subgraph in the second fault tree, and the first subgraph and the second subgraph are subjected to similarity analysis to obtain the similarity analysis result, wherein the similarity analysis result is used to indicate the similar subgraphs in the first subgraph and the second subgraph, so that when the first subgraph in the first fault tree changes with the change of the monitored object, the subgraph similar to the changed first subgraph can be determined according to the similarity analysis result, and the similar subgraph is corrected according to the changed first subgraph, so as to realize the correction of the similar subgraph in the case where the subgraph in any fault tree changes, thereby realizing the unified batch correction of similar subgraphs and reducing the maintenance difficulty of the fault tree. And by uniformly correcting the similar subgraphs, the fault trees where these subgraphs are located can match the changes of the monitored object, so that the fault trees where these subgraphs are located can still be used normally after the monitored object changes, reducing the corruption of the knowledge base to which the fault tree belongs.
[0104] For the above-mentioned data processing device, the data processing device may also include: a relationship establishing unit, used to establish a first corresponding relationship between the subgraph identification information of the first subgraph and the job script identification information corresponding to the basic event of the first subgraph, and to establish a second corresponding relationship between the subgraph identification information of the second subgraph and the job script identification information corresponding to the basic event of the second subgraph, so that the subgraph and the job script identification information corresponding to the basic event of the subgraph can be corresponded, so that the subgraph and the event can be corresponded, and the job scripts corresponding to the same basic event may be different. Through the correspondence of the job script identification information of the subgraph and the event, different subgraphs with the same basic event but different job scripts can also be distinguished.
[0105] It can be understood that: the above-mentioned basic events refer to the bottom-level events in the fault tree. If a subgraph includes not only basic events but also intermediate events, such as the use of logic gates to divide the fault tree to obtain this form of subgraph, then the intermediate events can be regarded as the bottom-level events in the subgraph. For these subgraphs, the relationship establishment unit can also establish a correspondence between the subgraph identification information of the subgraph and the job script identification information corresponding to the bottom-level event.
[0106] In this embodiment, the acquisition unit in the data processing device is also used to obtain the number of sub-graphs in which both the sub-graph identification information and the job script identification information in the similar sub-graphs have changed; the data processing device may also include: a prompting unit, which is used to, if the number of sub-graphs is greater than a preset threshold, prompt the sub-graphs that have not changed in the similar sub-graphs based on the sub-graph identification information and the job script identification information in the similar sub-graphs that have changed, so as to prompt that some sub-graphs in the similar sub-graphs have not changed, wherein the prompting method can be but is not limited to: outputting the sub-graphs that have not changed in the similar sub-graphs in a preset output method.
[0107] For the above-mentioned data processing device, the data processing device also includes: a target fault tree determination unit, which is used to obtain the attribute information of the first fault tree and the attribute information of the second fault tree, obtain the target attribute information according to the attribute information of the first fault tree and the attribute information of the second fault tree, obtain the fault tree whose attribute information is associated with the target attribute information, and obtain the target fault tree from the first fault tree, the second fault tree and the fault tree whose target attribute information is associated. For specific instructions, please refer to the above-mentioned method embodiment, which will not be elaborated here.
[0108] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0109] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0110] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
[0111] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A data processing method, comprising: Acquire attribute information of each component in the first fault tree and the second fault tree, wherein the acquired attribute information of each component includes attribute information of a top event, a basic event, and a logic gate; the attribute information of the top event can indicate a monitoring object, the attribute information of the top event includes a resource type, and the resource type can indicate a type of a monitoring object corresponding to the top event, and the attribute information of the basic event can indicate a monitoring object and a monitoring means corresponding to the basic event; Dividing the first fault tree and the second fault tree according to the attribute information of each component to obtain a first subgraph in the first fault tree and a second subgraph in the second fault tree; Performing a similarity analysis on the first subgraph and the second subgraph to obtain a similarity analysis result, wherein the similarity analysis result is used to indicate similar subgraphs in the first subgraph and the second subgraph; The method further comprises: Acquire attribute information of the first fault tree and attribute information of the second fault tree; Acquire target attribute information according to the attribute information of the first fault tree and the attribute information of the second fault tree; Acquire a fault tree having attribute information associated with the target attribute information; A target fault tree is obtained from the first fault tree, the second fault tree, and the fault tree associated with the target attribute information, wherein the quality of the target fault tree is better than the quality of other fault trees among the first fault tree, the second fault tree, and the fault tree associated with the target attribute information.
2. The method according to claim 1, wherein the first fault tree and the second fault tree are divided according to the attribute information of each component to obtain a first subgraph in the first fault tree and a second subgraph in the second fault tree, comprising: According to the resource type of the top event in the first fault tree and the resource types of each basic event in the first fault tree, obtaining a first basic event whose resource type is the same as the resource type of the top event from each basic event in the first fault tree; Starting from the first basic event, dividing toward the top event of the first fault tree, so that the first subgraph includes the top event from the first basic event to the first fault tree in the first fault tree; According to the resource type of the top event in the second fault tree and the resource types of each basic event in the second fault tree, obtaining a second basic event whose resource type is the same as the resource type of the top event from each basic event in the second fault tree; Starting from the second basic event, division is performed toward the top event of the second fault tree, so that the second subgraph includes the second fault tree from the second basic event to the top event of the second fault tree.
3. The method according to claim 1, wherein the first fault tree and the second fault tree are divided according to the attribute information of each component to obtain a first subgraph in the first fault tree and a second subgraph in the second fault tree, comprising: According to the connection relationship of the logic gates in the first fault tree and the connection relationship of the logic gates in the second fault tree, the first fault tree and the second fault tree are divided from the logic gate downwards, so that the first subgraph and the second subgraph respectively include a logic gate and an event connected to the logic gate.
4. According to the method according to any one of claims 1 to 3, performing similarity analysis on the first subgraph and the second subgraph to obtain a similarity analysis result comprises: Respectively vectorizing the job script identification information corresponding to the basic event of the first subgraph and the job script identification information corresponding to the basic event of the second subgraph to obtain a first vector corresponding to the first subgraph and a second vector corresponding to the second subgraph; A similarity analysis is performed based on the first vector of the first subgraph and the second vector corresponding to the second subgraph to obtain the similarity analysis result.
5. The method according to any one of claims 1 to 3, further comprising: A first correspondence is established between the subgraph identification information of the first subgraph and the job script identification information corresponding to the basic event of the first subgraph, and a second correspondence is established between the subgraph identification information of the second subgraph and the job script identification information corresponding to the basic event of the second subgraph.
6. The method according to claim 5, further comprising: Obtain the number of subgraphs in which both subgraph identification information and job script identification information have changed in the similar subgraphs; If the number of subgraphs is greater than a preset threshold, prompts are given to subgraphs in the similar subgraphs whose subgraph identification information and job script identification information have changed.
7. The method according to claim 6, wherein the prompting of the subgraphs that have not changed in the similar subgraphs comprises: The subgraphs that have not changed in the similar subgraphs are output in a preset output manner.
8. A data processing device, comprising: An acquisition unit, used to acquire attribute information of each component in the first fault tree and the second fault tree, wherein the acquired attribute information of each component includes attribute information of a top event, a basic event, and a logic gate; the attribute information of the top event can indicate a monitoring object, the attribute information of the top event includes a resource type, and the resource type can indicate a type of a monitoring object corresponding to the top event, and the attribute information of the basic event can indicate a monitoring object and a monitoring means corresponding to the basic event; A partitioning unit, configured to partition the first fault tree and the second fault tree according to the attribute information of each component, to obtain a first subgraph in the first fault tree and a second subgraph in the second fault tree; an analyzing unit, configured to perform a similarity analysis on the first subgraph and the second subgraph to obtain a similarity analysis result, wherein the similarity analysis result is used to indicate a similar subgraph in the first subgraph and the second subgraph; A target fault tree determination unit, configured to obtain the attribute information of the first fault tree and the attribute information of the second fault tree; and obtain target attribute information according to the attribute information of the first fault tree and the attribute information of the second fault tree; Acquire a fault tree having attribute information associated with the target attribute information; A target fault tree is obtained from the first fault tree, the second fault tree, and the fault tree associated with the target attribute information, wherein the quality of the target fault tree is better than the quality of other fault trees among the first fault tree, the second fault tree, and the fault tree associated with the target attribute information.
9. The device according to claim 8, wherein the dividing unit comprises: an acquisition subunit, configured to acquire, from each basic event of the first fault tree, a first basic event whose resource type is the same as that of the top event according to the resource type of the top event in the first fault tree and the resource types of each basic event in the first fault tree, and to acquire, from each basic event of the second fault tree, a second basic event whose resource type is the same as that of the top event according to the resource type of the top event in the second fault tree and the resource types of each basic event in the second fault tree; a partitioning subunit, configured to partition from the first basic event to the top event of the first fault tree, so that the first subgraph includes the top event from the first basic event to the first fault tree in the first fault tree, and to partition from the second basic event to the top event of the second fault tree, so that the second subgraph includes the top event from the second basic event to the second fault tree in the second fault tree; or The division unit is used to divide the first fault tree and the second fault tree from logic gates downwards according to the connection relationship of logic gates in the first fault tree and the connection relationship of logic gates in the second fault tree, so that the first subgraph and the second subgraph respectively include a logic gate and an event connected to the logic gate.
