Gas alarm event processing method and system
By screening and generating correlation scenarios, the efficiency of correlation analysis of alarm events in the gas industry is improved, the problem of low alarm correlation analysis efficiency in the existing technology is solved, and the intelligent and digital management of the gas pipeline network is promoted.
Patent Information
- Application Number
- CN202410886206.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-03
AI Technical Summary
The existing business systems in the gas industry cannot support complex alarm correlation analysis, and the alarm correlation analysis efficiency is low, which affects the intelligent and digital management of the gas pipeline network.
By obtaining the alarm data set, candidate alarm events that are highly relevant to the target alarm event are screened out, correlation scenarios are generated, and processing plans are provided based on the correlation scenarios to improve the efficiency of correlation analysis of alarm events.
It realizes the correlation analysis of multiple alarm events, improves the efficiency of alarm linkage analysis, and enhances the intelligent and digital operation and management capabilities of the gas pipeline network.
Smart Images

Figure CN118410218B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of gas business technology, and in particular to a method and system for processing gas alarm events. Background Art
[0002] In recent years, with the continuous development of intelligent and digital gas pipeline networks, it is increasingly important to strengthen safety monitoring and early warning in the gas industry. At present, most business systems in gas pipeline networks simply compare current gas business data with preset thresholds to trigger a single alarm event.
[0003] However, alarm events often do not exist independently, and the equipment that generates alarm events may have more problems. In related technologies, the relevance of alarm events is often pre-set, and manual relevance analysis of alarm events is required to update the relevance of alarm events. Therefore, the current business system of the gas industry cannot support more complex alarm relevance analysis, and the existing alarm relevance analysis efficiency is low, which is not conducive to the intelligent and digital operation and management of gas pipeline networks. Summary of the invention
[0004] In order to address the deficiencies of the prior art, the purpose of the present application is to provide a method and system for processing gas alarm events, which can improve the analysis efficiency of alarm correlation analysis of alarm events in the gas industry.
[0005] To achieve the above objectives, this application adopts the following technical solutions:
[0006] In a first aspect, the present application provides a method for processing a gas alarm event, characterized in that the processing method comprises the following steps:
[0007] Acquire an alarm data set, the alarm data set includes at least two alarm events, any alarm event is preset with at least one alarm tag, any alarm tag belongs to a corresponding alarm type, and any alarm event can be obtained through the alarm tag and / or the alarm type index;
[0008] Taking any alarm event in the alarm data set as the target alarm event, obtaining all alarm tags of the target alarm event, and obtaining the alarm type of the target alarm event based on the alarm tag of the target alarm event, and obtaining the search range of the target alarm event, the search range includes all alarm types corresponding to the target alarm event;
[0009] According to the search range, alarm events are screened from the alarm data set as candidate alarm events, where the candidate alarm events are alarm events that can be indexed according to the alarm type within the search range of the target alarm event, and a first candidate associated alarm set is generated according to the candidate alarm events;
[0010] Obtaining the correlation between each candidate alarm event in the first candidate associated alarm set and the target alarm event, screening out alarm events whose correlation meets preset requirements from the first candidate associated alarm set, and listing the screened alarm events as alarm events within the search range and associated with the target alarm event;
[0011] A first associated scenario about the target alarm event is generated, where the first associated scenario includes alarm events within the search range that are associated with the target alarm event.
[0012] Furthermore, the processing method further comprises the following steps:
[0013] According to the search scope, alarm events outside the search scope are screened from the alarm data set to obtain a second candidate associated alarm set, where the alarm events outside the search scope are alarm events that cannot be indexed according to the alarm type within the search scope of the target alarm event; the correlation between each alarm event in the second candidate associated alarm set and the target alarm event is obtained, and alarm events whose correlation meets preset requirements are screened from the second candidate associated alarm set, and the screened alarm events are listed as alarm events outside the search scope and associated with the target alarm event; a second associated scenario about the target alarm event is generated, and the second associated scenario includes alarm events outside the search scope and associated with the target alarm event.
[0014] Furthermore, the processing method also includes: providing a processing plan based on components of an associated scenario, wherein the associated scenario is a first associated scenario, or the associated scenario includes a first associated scenario and a second associated scenario.
[0015] Furthermore, the processing method also includes: obtaining a number of associated scenes and processing plans corresponding to the associated scenes; selecting any associated scene as a target associated scene, and in response to the target associated scene not having a processing plan set, providing a processing plan for a similar associated scene, wherein the similar associated scene and the target associated scene meet a preset scene similarity requirement.
[0016] Furthermore, the processing method also includes: obtaining the similarity between any associated scene and the target associated scene, and in response to the similarity being greater than or equal to a preset scene similarity threshold, determining that the associated scene is a similar associated scene of the target associated scene; obtaining the similarity between any associated scene and the target associated scene, including the following steps: obtaining a label feature set for each associated scene, any label feature set including all alarm types of alarm events in the corresponding associated scene; based on the label feature set, obtaining the number of common label features between the target associated scene and any associated scene, and obtaining the similarity between the target associated scene and the corresponding associated scene according to the number of common label features, wherein any alarm type shared between the target associated scene and any associated scene is taken as a common label feature.
[0017] Furthermore, the processing method also includes: the common label features include a first type of common label features and a second type of common label features, the first type of common label features include alarm types within the search range; the second type of common label features include alarm types outside the search range; the number of the first type of common label features and the second type of common label features is calculated, and different weights are assigned to the first type of common label features and the second type of common label features to obtain similarity, and the weight of the first type of common label features is greater than the weight of the second type of common label features.
[0018] Furthermore, the processing method also includes: before obtaining the number of common label features, deduplication processing is performed on the label feature set.
[0019] Furthermore, obtaining an alarm event associated with a target alarm event includes the following steps: obtaining a confidence level and an improvement level between the target alarm event and any alarm event; in response to the confidence level between the target alarm event and any alarm event being greater than or equal to a preset confidence level threshold, or the improvement level being greater than or equal to a preset improvement level threshold, determining that the alarm event is an associated alarm event of the target alarm event.
[0020] Furthermore, the processing method also includes: in response to the correlation between any alarm event outside the search range and the target alarm event satisfying a preset correlation requirement, editing the alarm label of the alarm event and / or the target alarm event so that the search range corresponding to the edited alarm event and the search range corresponding to the target alarm event have an intersection.
[0021] In a second aspect, the present application further provides a system for processing a gas alarm event, and the processing system is applied to any of the above-mentioned methods for processing a gas alarm event.
[0022] Furthermore, the processing system includes: a display module, which is used to display the associated scenes of the target alarm event
[0023] The above-mentioned gas alarm event processing method and system realizes the correlation analysis of multiple alarm events by presetting alarm tags for alarm events and obtaining alarm events within the search range and associated with the target alarm event to generate a first associated scenario, thereby improving the efficiency of alarm event linkage analysis and improving the intelligent and digital operation and management efficiency of alarm linkage in the gas pipeline network. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 This is a flow chart of a method for processing a first gas alarm event in an implementation manner of the present application;
[0025] Figure 2 This is a flow chart of a method for processing a second gas alarm event in an embodiment of the present application;
[0026] Figure 3 This is a schematic diagram of the first association scenario in an implementation manner of the present application;
[0027] Figure 4 This is a schematic diagram of a second association scenario in an implementation manner of the present application;
[0028] Figure 5 This is a flow chart of a method for processing a third gas alarm event in an implementation manner of the present application;
[0029] Figure 6 A schematic diagram of an associated scenario and a processing plan in an implementation manner of the present application;
[0030] Figure 7 It is a structural schematic diagram of a gas alarm event processing system in an embodiment of the present application. DETAILED DESCRIPTION
[0031] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the specific implementation manner of the present application will be clearly and completely described below in conjunction with the drawings in the implementation manner of the present application.
[0032] The purpose of this application is to provide a technical solution to solve the problem that the gas industry does not support more complex alarm correlation analysis and the existing alarm correlation analysis efficiency is low. Based on this purpose, this application provides a method and system for processing gas alarm events, which can realize alarm correlation analysis in the gas industry and improve the analysis efficiency of alarm correlation analysis, thereby improving the intelligent and digital operation and management capabilities of the gas pipeline network.
[0033] The method for processing gas alarm events provided in an embodiment of the present application can be used to process alarm events of a single or two or more gas smart devices, and the gas smart devices can be of the same type or different types. For example, the gas smart devices can include smart gas meters, smart pressure collectors, smart gas alarms, and the like.
[0034] Gas alarm events refer to alarms triggered by abnormal operation of gas smart devices. For example, alarm events may include device abnormality alarms, gas usage abnormality alarms, network abnormality alarms, etc.
[0035] like Figure 1 As shown, a method for processing a gas alarm event provided by an embodiment of the present application specifically includes the following steps:
[0036] Step S101, obtaining an alarm data set, the alarm data set includes at least two alarm events, any alarm event is preset with at least one alarm tag, any alarm tag belongs to a corresponding alarm type, and any alarm event can be obtained through the alarm tag and / or alarm type index.
[0037] The alarm data set may be a collection of alarm events triggered by a single or two or more gas smart devices at the same time, or the alarm data set may be a collection of alarm events triggered by a single or two or more gas smart devices within a period of time.
[0038] The alarm tag contains the key information that triggers the alarm event. The alarm tag can help manage and handle the alarm event in a timely manner. The alarm type contains different types of problems or conditions that may occur in the gas smart device. The alarm type can divide the alarm tags into different groups according to the nature of the abnormal problem or abnormal condition. The alarm type helps the operation and maintenance personnel to quickly identify the nature of the problem and take corresponding treatment plans. For example, the alarm tag can be sensor damage, circuit board failure, metering error, strong magnetic interference, flow abnormality, gas pressure abnormality, communication abnormality, power abnormality, etc. The alarm type can be equipment failure-related alarm, gas use-related alarm, safety-related alarm, network failure-related alarm, etc. Among them, equipment failure-related alarms can include alarm tags such as sensor damage and circuit board failure, gas use-related alarms can include alarm tags such as metering error and strong magnetic interference, safety-related alarms can include alarm tags such as flow abnormality and gas pressure abnormality, and network failure-related alarms can include alarm tags such as communication abnormality and power abnormality.
[0039] Exemplarily, as shown in Table 1, an alarm data set provided in this embodiment includes alarm events, an alarm tag corresponding to each alarm event, and an alarm type to which the alarm tag belongs. The processing method of this embodiment is described below in conjunction with Table 1.
[0040]
[0041] Table 1
[0042] As can be seen from Table 1, each row represents an alarm event, the alarm label corresponding to the alarm event, and the alarm type to which the alarm label belongs. Any alarm event is preset with at least one alarm label. For example, alarm event A1 is preset with alarm label Lable1 and alarm label Lable2. Alarm label Lable1 belongs to alarm type Type1, and alarm label Lable2 belongs to alarm type Type2.
[0043] Taking alarm event A2 as an example, it can be obtained by indexing any alarm label (such as Lable3, Lable4, Lable5) of alarm event A2, or it can be obtained by indexing the alarm type (such as Type1, Type3) of any label of alarm event A2.
[0044] It can be understood that the alarm events, alarm labels, alarm types and the correspondence between the three in the examples of the embodiments of the present application are set based on the corresponding business scenarios. In actual applications, they can be set according to specific needs. For example, alarm labels and alarm types can be set for alarm events based on business logic, system architecture and historical fault records, so that the correlation analysis of alarm events is closer to specific needs, so as to achieve more effective alarms.
[0045] Step S102, taking any alarm event in the alarm data set as the target alarm event, obtaining all alarm tags of the target alarm event, and obtaining the alarm type of the target alarm event based on the alarm tag of the target alarm event, and obtaining the search range of the target alarm event, the search range includes all alarm types corresponding to the target alarm event.
[0046] Obtaining the search scope of the target alarm event helps analyze the correlation of the alarm events, thereby improving the efficiency of correlation analysis.
[0047] Exemplarily, select alarm event A1 in Table 1 as the target alarm event, and obtain all alarm tags of the target alarm event, that is, alarm tag Lable1 and alarm tag Lable2. Obtain all alarm types of the target alarm event based on the alarm tags, that is, obtain alarm type Type1 based on alarm tag Lable1, and obtain alarm type Type2 based on alarm tag Lable2. All alarm types (that is, search range) of the target alarm event A1 include alarm type Type1 and alarm type Type2.
[0048] Step S103, based on the search scope, filter alarm events from the alarm data set as candidate alarm events, the candidate alarm events are alarm events that can be indexed according to the alarm type within the search scope of the target alarm event, generate a first candidate associated alarm set based on the candidate alarm events, and the search range corresponding to any candidate alarm event has an intersection with the search range corresponding to the target alarm event.
[0049] For ease of explanation, in the embodiment of the present application, the alarm events in the first candidate associated alarm set are defined as “alarm events within the search range”, and the alarm events outside the first candidate associated alarm set are defined as “alarm events outside the search range”.
[0050] Taking alarm event A1 as the target alarm event as an example, the search range corresponding to the target alarm event A1 is (alarm type Type1, alarm type Type2). Combined with Table 1, according to the search range, the alarm events that can be indexed include (A2, A3), so alarm events A2 and A3 are taken as candidate alarm events.
[0051] According to the above description, the search range of the candidate alarm event and the search range of the target alarm event include at least one of the same alarm types. Since the same alarm type exists in the search ranges of the two alarm events, it can be preliminarily determined that the alarm event is associated with the target alarm event and can be used as a candidate. In the subsequent alarm event correlation analysis, the selected candidate alarm events can be focused on. In this way, the accuracy and efficiency of the correlation analysis of alarm events can be improved.
[0052] Exemplarily, based on alarm event A1 in Table 1 as the target alarm event, the search range obtained includes alarm type Type1 and alarm type Type2, and alarm event A1, alarm event A2, and alarm event A3 within the search range are screened from the alarm data set as candidate alarm events. As shown in Table 2, it shows all candidate alarm events included in the first candidate associated alarm set and the alarm type corresponding to each candidate alarm event when alarm event A1 is the target alarm event.
[0053]
[0054] Table 2
[0055] Step S104, obtaining the correlation between each candidate alarm event and the target alarm event in the first candidate associated alarm set, screening out alarm events whose correlation meets preset requirements from the first candidate associated alarm set, and listing the screened out alarm events as alarm events within the search range and associated with the target alarm event.
[0056] Specifically, the correlation represents the degree of correlation between the candidate alarm events in the first candidate associated alarm set and the target alarm event. The algorithm for obtaining the correlation can be any one of the algorithms or a combination of multiple algorithms, such as the Apriori algorithm, the FP-Tree algorithm, the Pearson correlation coefficient, and the chi-square test. For the specific algorithm content, please refer to the relevant technology and will not be repeated here.
[0057] Exemplarily, if an algorithm is selected to obtain the correlation between each candidate alarm event in the first candidate associated alarm set and the target alarm event, the preset requirement may be that the correlation is higher than a preset correlation threshold, that is, alarm events with a correlation higher than the preset correlation threshold are screened out from the first candidate associated alarm set, aiming to obtain alarm events with a high correlation with the target alarm event from the first candidate associated alarm set.
[0058] Exemplarily, if two or more algorithms are selected to obtain the correlation between each candidate alarm event in the first candidate associated alarm set and the target alarm event, the preset requirements can be set according to the algorithm, also aiming to obtain alarm events with high correlation with the target alarm event from the first candidate associated alarm set.
[0059] As an optional implementation, the present application provides a preferred method for obtaining an alarm event associated with a target alarm event, which comprises the following steps:
[0060] Obtain the confidence and enhancement between the target alarm event and any candidate alarm event in the first candidate associated alarm set; in response to the confidence between the target alarm event and any candidate alarm event being greater than or equal to a preset confidence threshold, or the enhancement being greater than or equal to a preset enhancement threshold, determine that the candidate alarm event is an associated alarm event of the target alarm event.
[0061] Specifically, the confidence and lift of the target alarm event and any alarm event in the first candidate associated alarm set satisfy the following expressions:
[0062] CD(X,Y)=P(X∩Y) / P(X);
[0063] LD(X,Y)= CD(X,Y) / P(Y);
[0064] Where X represents the target alarm event, Y represents any alarm event in the first candidate associated alarm set, CD(X, Y) represents the probability of triggering alarm event Y after triggering alarm event X, LD(X, Y) represents the ratio of the probability of triggering alarm event Y after triggering alarm event X to the probability of triggering alarm event Y, P(X) represents the probability of triggering target alarm event X, P(Y) represents the probability of triggering alarm event Y, and P(X∩Y) represents the probability of triggering target alarm event X and alarm event Y at the same time.
[0065] If the confidence CD(X,Y)≥preset confidence threshold or the lift LD(X,Y)≥preset lift threshold, the alarm event is determined to be an associated alarm event of the target alarm event.
[0066] Step S105: Generate a first associated scenario about the target alarm event, where the first associated scenario includes alarm events within the search range that are associated with the target alarm event.
[0067] Based on the alarm events associated with the target alarm event within the search range, a first associated scenario is generated. The first associated scenario includes a group of alarm events that are associated with the target alarm event. These alarm events may be caused by the same problem or fault. By merging these alarm events associated with the target alarm event into one associated scenario, the commonalities and characteristics of the alarm events can be better understood, so that the problem can be located and handled more effectively. The first associated scenario makes it easier to analyze the correlation of alarm events and to set a solution for the same problem, thereby improving the management efficiency of alarm events with correlation.
[0068] Exemplarily, if the correlation between any alarm event in the first candidate associated alarm set (eg, Table 2) and the target alarm event meets the preset requirement, the generated first associated scenario includes alarm event A1, alarm event A2, and alarm event A3.
[0069] Optionally, a processing plan is provided based on components of an associated scenario, wherein the components of the associated scenario include a first associated scenario.
[0070] For example, Figure 2 As shown, the associated scenario is the first associated scenario of the above example, and the first associated scenario includes alarm event A1, alarm event A2, and alarm event A3.
[0071] It can be understood that each alarm event in the alarm data set corresponds to an associated scenario, which includes a group of alarm events that are interrelated with the target alarm event. The associated scenarios may include alarm events triggered by the same root cause, and the associated scenarios may also include other alarm events that will be affected when processing the target alarm event.
[0072] Each associated scenario can be set up with a predetermined processing plan to guide the operation and maintenance personnel to quickly respond to and handle the alarm problem. The processing plan can include the steps, resources, role responsibilities, etc. required to handle the alarm event. The processing plan should be as detailed and specific as possible and cover all possible solutions.
[0073] Optionally, the processing plan based on the associated scenario can also record in detail the cause of the fault, the degree of fault, the processing process and the processing results of the faulty equipment, so as to analyze and prevent similar fault problems in the future. The maintenance processing plan can also be updated based on the analysis results to reduce the risks caused by future faulty equipment, thereby improving the rapid response and resolution of alarm events.
[0074] As an optional implementation, if there is a related scenario for which no processing plan is set, processing plans for similar related scenarios (similar related scenarios are described later) can be retrieved to provide guidance for the related scenario for which the processing plan is to be set.
[0075] In summary, this application realizes the correlation analysis of multiple alarm events by presetting alarm tags for alarm events and obtaining alarm events within the search range and associated with the target alarm event to generate a first associated scenario, thereby improving the efficiency of linkage analysis of alarm events and improving the intelligent and digital operation and management efficiency of alarm linkage in the gas pipeline network.
[0076] As an optional implementation, Figure 3 As shown, the processing method of the present application also includes the following steps:
[0077] Step S201, according to the search range, filter the alarm events outside the search range from the alarm data set to obtain a second candidate associated alarm set, wherein the alarm events outside the search range are alarm events that cannot be indexed according to the alarm type within the search range of the target alarm event, to obtain the second candidate associated alarm set.
[0078] Specifically, for any alarm event, if the alarm event does not have the same alarm type as the target alarm event, it cannot be obtained according to the alarm type index within the search range of the target alarm event. Exemplarily, the search range obtained based on the alarm event A1 in Table 1 as the target alarm event includes alarm type Type1 and alarm type Type2, and the alarm types filtered out of the search range from the alarm data set include alarm type Type3 and alarm type Type4. As shown in Table 3, it shows all candidate alarm events included in the second candidate associated alarm set and the alarm type corresponding to each candidate alarm event when the alarm event A1 is the target alarm event.
[0079]
[0080] Table 3
[0081] Step S202, obtaining the correlation between each alarm event in the second candidate associated alarm set and the target alarm event, screening out the alarm events whose correlation meets the preset requirements from the second candidate associated alarm set, and listing the screened alarm events as alarm events outside the search range and associated with the target alarm event.
[0082] Specifically, the method for obtaining the correlation between each alarm event and the target alarm event in the second candidate associated alarm set is the same as step S104, which will not be repeated here. It can be understood that the algorithm for obtaining the correlation between each alarm event and the target alarm event in the second candidate associated alarm set can be the same algorithm as that for obtaining the correlation between each candidate alarm event and the target alarm event in the first candidate associated alarm set, or a different algorithm can be selected. In actual applications, the algorithm can be selected according to specific needs.
[0083] Among them, based on obtaining the confidence and improvement between the target alarm event and any alarm event in the second candidate association set, the alarm event outside the search range and associated with the target alarm event is obtained. The specific processing process is the same as the processing process of obtaining the alarm event within the search range and associated with the target alarm event, and will not be repeated here.
[0084] Step S203: Generate a second associated scenario about the target alarm event, where the second associated scenario includes alarm events outside the search range and associated with the target alarm event.
[0085] Based on the alarm events outside the search scope that are associated with the target alarm event, the scope of the correlation analysis of the alarm events is increased, avoiding the problem of missing the associated alarm events of the target alarm event due to the original alarm label being inaccurate, thereby improving the comprehensiveness of the correlation analysis of the alarm events.
[0086] Exemplarily, if the correlation between alarm event A4 and alarm event A5 in the second candidate associated alarm set (eg, Table 3) and the target alarm event all meet preset requirements, the generated second associated scenario includes alarm event A4 and alarm event A5.
[0087] Optionally, the composition of the associated scenario includes a first associated scenario and a second associated scenario, and a processing plan is provided based on the associated scenario, and the processing plan is used to guide the operation and maintenance personnel to quickly respond to and handle the alarm problem. It can be understood that the setting requirements for the processing plan here are similar to the setting of the above-mentioned associated scenario as the first associated scenario, and will not be repeated here.
[0088] like Figure 4 As shown, the associated scenarios include the first associated scenarios and the second associated scenarios of the above examples. The first associated scenarios include alarm events A1, A2, and A3, and the second associated scenarios include alarm events A4 and A5.
[0089] Through the above settings, on the basis of obtaining the alarm events associated with the target alarm event within the search range to generate the first association scenario, the alarm events associated with the target alarm event outside the search range are obtained to generate the second association scenario. This can avoid the problem of not being able to obtain all alarm events associated with the target alarm event due to the alarm label originally set being inaccurate, thereby improving the accuracy of the alarm event linkage analysis.
[0090] Similarly, a processing plan can be provided based on the composition of the associated scenario, and the associated scenario includes the first associated scenario and the second associated scenario. That is, the first associated scenario and the second associated scenario can be regarded as a whole to provide a processing plan. For ease of explanation, the first associated scenario and the second associated scenario are collectively referred to as the third associated scenario. It is easy to understand that if the third associated scenario does not have a processing plan, a processing plan for a similar associated scenario can be provided as a guide.
[0091] As an optional implementation, Figure 5 As shown, the processing method of the present application also includes:
[0092] Step S301, obtaining a number of related scenarios and processing plans corresponding to the related scenarios.
[0093] Step S302, selecting any associated scene as a target associated scene, and in response to the target associated scene not having a processing plan set, providing a processing plan for a similar associated scene, wherein the similar associated scene and the target associated scene meet a preset scene similarity requirement.
[0094] Specifically, the preset scene similarity requirement refers to the requirement set for the similarity between the target associated scene and the similar associated scene, and aims to obtain a processing plan for the similar associated scene that can guide the processing of the target associated scene.
[0095] In order to improve the efficiency of obtaining similar associated scenarios, an associated scenario library can also be established to store the defined associated scenarios and their processing plans in the associated scenario library to ensure that the associated scenario library supports fast query and retrieval. Select any target associated scenario that has no processing plan set, match the target associated scenario with other scenarios in the associated scenario library, and obtain processing plans for similar associated scenarios. Appropriate adjustments can also be made as needed to adapt to the target associated scenario.
[0096] After obtaining the processing plan for similar related scenarios in actual application, it is also possible to verify the effectiveness of the processing plan, collect feedback and adjust the preset scenario similarity requirements and processing plan according to the actual results, continuously update the related scenario library and processing plan, and improve the accuracy and efficiency of the processing plan in resolving alarm events.
[0097] Through the above method, suitable processing plans can be effectively provided for different related scenarios, and in the absence of ready-made processing plans, processing plans for similar related scenarios can be provided for reference. This method helps to improve the efficiency and accuracy of alarm event processing.
[0098] As an optional implementation, the processing method of the present application further includes obtaining a similar associated scene of any associated scene, specifically as follows: obtaining the similarity between any associated scene and the target associated scene, and in response to the similarity being greater than or equal to a preset scene similarity threshold, determining that the associated scene is a similar associated scene of the target associated scene, thereby improving the accuracy of the obtained similar associated scenes. Wherein, obtaining the similarity between any associated scene and the target associated scene includes the following steps:
[0099] Obtain a label feature set for each associated scene, wherein any label feature set includes all alarm types of alarm events in the corresponding associated scene; based on the label feature set, obtain the number of common label features between the target associated scene and any associated scene, and obtain the similarity between the target associated scene and the corresponding associated scene according to the number of common label features, wherein any alarm type shared between the target associated scene and any associated scene is taken as a common label feature.
[0100] It can be understood that the number of common label features is the number of alarm types shared between the target associated scene and any associated scene. The similarity between the target associated scene and the corresponding associated scene is obtained based on the number of common label features. For example, the more alarm types shared by two associated scenes, the higher the similarity between them.
[0101] like Figure 6 As shown, when the similarity of the target-related scene is greater than or equal to the preset scene similarity threshold, the target-related scene can obtain similar-related scenes with the target-related scene, thereby obtaining a reference processing plan. This setting facilitates the management and analysis of the target-related scene, and when there is no preset processing plan for the target-related scene, it is convenient to call the processing plan of the reference similar-related scene in time, so as to avoid the problem that the alarm event cannot be processed in time and has a major impact.
[0102] As an optional implementation, the processing method of the present application also includes:
[0103] The common label features include a first type of common label features and a second type of common label features. The first type of common label features include alarm types within the search range, and the second type of common label features include alarm types outside the search range.
[0104] The number of common label features of the first type and the number of common label features of the second type are calculated, and different weights are assigned to the common label features of the first type and the common label features of the second type to obtain similarity, where the weight of the common label features of the first type is greater than the weight of the common label features of the second type.
[0105] Among them, in the embodiment of the present application, the alarm types included in the search scope of the target alarm event are defined as "alarm types within the search scope", and the alarm types not included in the search scope of the target alarm event are defined as "alarm types outside the search scope". It can be seen that the first type of common label feature refers to the alarm type that is common to the two associated scenes and is within the search scope, and the first type of common label feature refers to the alarm type that is common to the two associated scenes and is outside the search scope.
[0106] Preferably, the weight assigned to the first type of common label features is greater than the weight assigned to the second type of common label features. In this way, the contribution of the first associated scene to the scene similarity evaluation can be emphasized, and the role of the preset alarm label of the target alarm event in searching for similar associated scenes can be strengthened. In turn, similar associated scenes that are more relevant to the target alarm event can be obtained, which is more instructive for the processing of the target associated scenes.
[0107] It can be understood that there may be a situation where the number of common label features of the first type is zero, then the weight of the common label features of the second type is assigned to 1, for example, there is no common alarm type within the search range between the target association scene and a certain association scene; there may also be a situation where the number of common label features of the second type is zero, then the weight of the common label features of the first type is assigned to 1, such as the case where the association scene is only the first association scene.
[0108] As an optional implementation, the processing method of the present application also includes: deduplication of the label feature set before obtaining the number of shared label features. Deduplication refers to deleting or eliminating duplicate alarm types in the label feature set to ensure the uniqueness of the alarm type. By deduplication of the label feature set, it can be ensured that when calculating the number of shared label features, each shared label feature is only calculated once, thereby avoiding the problem of duplicate counting and improving the analysis efficiency of related scenarios.
[0109] Optionally, the processing method of the present application also includes: in response to the correlation between any alarm event outside the search range and the target alarm event satisfying a preset correlation requirement, editing the alarm label of the alarm event and / or the target alarm event so that the search range corresponding to the edited alarm event and the search range corresponding to the target alarm event have an intersection.
[0110] It can be understood that the alarm label for the target alarm event outside the search range is set based on historical data. The operation of the gas smart device changes with time, temperature, etc., and the originally set alarm label may not necessarily conform to the real-time operation status of the gas smart device. Therefore, if the correlation between any alarm event outside the search range and the target alarm event meets the preset correlation requirement, the alarm label can be edited to achieve the update and iteration of the alarm label.
[0111] Moreover, when obtaining the associated scenarios of the target alarm event, alarm events that are outside the search range and highly correlated with the target alarm event may be obtained. Accordingly, the alarm label of the alarm event is modified, or the alarm type to which the alarm label belongs is modified, so that the search range of the modified candidate alarm event and the search range of the target alarm event include at least one of the same alarm type, making it an alarm event within the search range, so as to improve the accuracy of the next correlation analysis of the alarm event. At the same time, it can also improve the accuracy of subsequent acquisition of similar associated scenarios, thereby obtaining a more reference-based processing plan.
[0112] like Figure 7 As shown, an embodiment of the present application further provides a system for processing a gas alarm event, and the processing system can be applied to any of the gas alarm event processing methods provided in the present application.
[0113] Furthermore, the processing system of the present application may also include a display module, which is used to display the associated scenarios of the target alarm events. The display module can display the alarm events included in the associated scenarios and the correlation between the target alarm events and the alarm events. The display module can also display the target associated scenarios, similar associated scenarios, and the similarity between the target associated scenarios and similar associated scenarios, etc. Through the display module, users can intuitively review and analyze alarm events and scientifically select processing plans, so as to quickly and efficiently solve alarm problems, thereby realizing the analysis accumulation and optimization iteration of processing plans.
[0114] In summary, the present application provides a method and system for processing gas alarm events, which realizes the correlation analysis of multiple alarm events and improves the efficiency of alarm event linkage analysis by presetting alarm tags for alarm events and obtaining alarm events associated with the target alarm event within the search range to generate a first correlation scenario. The present application also generates a second correlation scenario by obtaining alarm events associated with the target alarm event outside the search range, and can edit alarm tags to achieve iteration of preset alarm tags, thereby improving the accuracy of the correlation analysis of alarm events. The present application can also display correlation scenarios, facilitate fast and efficient resolution of alarm problems, realize analysis accumulation and optimization iteration of processing plans, and improve the efficiency of intelligent and digital operation and management of alarm linkage in gas pipeline networks.
[0115] It should be noted that the serial numbers of the steps in the embodiments of the present application do not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0116] It should be understood that those skilled in the art can make improvements or changes based on the above description, and all these improvements and changes should fall within the scope of protection of the claims attached to this application.
Claims
1. A method for processing a gas alarm event, characterized in that: The processing method comprises the following steps: Acquire an alarm data set, the alarm data set including at least two alarm events, any alarm event is preset with at least one alarm tag, any alarm tag belongs to a corresponding alarm type, and any alarm event can be obtained through the alarm tag and / or the alarm type index; Taking any of the alarm events in the alarm data set as a target alarm event, obtaining all alarm tags of the target alarm event, and obtaining the alarm type of the target alarm event based on the alarm tag of the target alarm event, and obtaining a search range of the target alarm event, wherein the search range includes all alarm types corresponding to the target alarm event; According to the search range, the alarm event is selected from the alarm data set as a candidate alarm event, wherein the candidate alarm event is an alarm event that can be indexed according to the alarm type within the search range of the target alarm event, and a first candidate associated alarm set is generated according to the candidate alarm event; Obtaining the correlation between each of the candidate alarm events in the first candidate associated alarm set and the target alarm event, screening out alarm events whose correlation meets preset requirements from the first candidate associated alarm set, and listing the screened alarm events as alarm events within the search range and associated with the target alarm event; Generate a first associated scenario about the target alarm event, the first associated scenario including alarm events within the search range and associated with the target alarm event; The processing method further comprises the following steps: According to the search range, screening alarm events outside the search range from the alarm data set to obtain a second candidate associated alarm set, wherein the alarm events outside the search range are alarm events that cannot be indexed according to the alarm type within the search range of the target alarm event; Obtaining the correlation between each alarm event in the second candidate associated alarm set and the target alarm event, screening out alarm events whose correlation meets preset requirements from the second candidate associated alarm set, and listing the screened alarm events as alarm events outside the search range and associated with the target alarm event; generating a second associated scenario about the target alarm event, wherein the second associated scenario includes an alarm event outside the search range and associated with the target alarm event; The processing method also includes: Providing a treatment plan based on the components of the associated scenario; The processing method also includes: Acquire several related scenarios and the processing plans corresponding to the related scenarios; Select any associated scene as a target associated scene, and in response to the target associated scene not having a processing plan set, provide a processing plan for a similar associated scene, where the similar associated scene meets a preset scene similarity requirement with the target associated scene; The processing method also includes: Acquire a similarity between any associated scene and the target associated scene, and in response to the similarity being greater than or equal to a preset scene similarity threshold, determine that the associated scene is a similar associated scene of the target associated scene; The obtaining of the similarity between any associated scene and the target associated scene comprises the following steps: Acquire a label feature set for each associated scene, wherein any of the label feature sets includes all alarm types of alarm events in the corresponding associated scene; Based on the label feature set, the number of common label features between the target associated scene and any associated scene is obtained, and the similarity between the target associated scene and the corresponding associated scene is obtained according to the number of common label features. Wherein, any alarm type shared between the target associated scene and any associated scene is taken as one of the shared label features; The processing method also includes: The common tag features include a first type of common tag features and a second type of common tag features, The first type of common label features includes the alarm type within the search range; The second type of common label features includes an alarm type outside the search range; Calculating the number of common label features of the first type and the number of common label features of the second type, assigning different weights to the common label features of the first type and the common label features of the second type to obtain the similarity, wherein the weight of the common label features of the first type is greater than the weight of the common label features of the second type; The processing method also includes: Before obtaining the number of common label features, the label feature set is first deduplicated; Acquiring an alarm event associated with the target alarm event comprises the following steps: Obtaining the confidence and improvement between the target alarm event and any alarm event; In response to the confidence between the target alarm event and any alarm event being greater than or equal to a preset confidence threshold, or the elevation being greater than or equal to a preset elevation threshold, determining that the alarm event is an associated alarm event of the target alarm event; The processing method also includes: In response to the correlation between any alarm event outside the search range and the target alarm event meeting a preset correlation requirement, the alarm label of the alarm event and / or the target alarm event is edited so that the search range corresponding to the alarm event after editing intersects with the search range corresponding to the target alarm event.
2. A gas alarm event processing system, characterized in that: The processing system applies the method for processing the gas alarm event as claimed in claim 1.
