Alarm flooding statistical method and device
By using multiple stream processors of the target graphics processor for parallel processing in the factory, the problem of low statistical efficiency of alarm flood data is solved, the ability to quickly count and locate abnormal alarms is achieved, and safety risks are reduced.
Patent Information
- Application Number
- CN202310227959.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-06
- Publication Date
- 2024-09-06
AI Technical Summary
The amount of alarm data in the factory caused by unreasonable DCS configuration is huge. Conventional statistical methods rely on database performance, resulting in low statistical efficiency of alarm flood data. Abnormal alarm time points cannot be quickly located, which brings serious risks to factory safety.
Multiple stream processors in the target graphics processor use a parallel method to filter and detect the alarm data stream to be processed, determine alarm flooding data, and output it to the report database through the central processor to achieve rapid statistics.
It improves the statistical efficiency of alarm flooding data, reduces statistical time, reduces dependence on database performance, enhances the ability of craftsmen to locate abnormal alarms, and reduces potential safety hazards.
Smart Images

Figure CN118609332A
Abstract
Description
Technical Field
[0001] The present application relates to the field of report statistics, and in particular to a method and device for counting alarm flooding. Background Art
[0002] The number of positions in factories is basically in the tens of thousands. The unreasonable DCS (distributed control system) configuration results in hundreds of thousands or even millions of alarm data being generated every day. When the alarm analysis and statistical software processes daily, weekly, monthly or annual reports, conventional statistical algorithms rely heavily on database performance. Some algorithm databases cannot directly generate statistical results and require the CPU (central processing unit) to assist in calculating the results, resulting in a report that takes dozens of minutes or even hours to generate, including the statistical algorithm of alarm flooding. The slow statistical speed makes it impossible for process personnel and operators to quickly locate the exact time point of abnormal alarm mode, which brings serious safety hazards to the factory. Summary of the invention
[0003] The embodiments of the present application provide a method and device for counting alarm flooding data, so as to at least solve the technical problem of low efficiency in counting alarm flooding data.
[0004] According to one aspect of an embodiment of the present application, there is provided a method for counting alarm floods, comprising: obtaining an alarm data stream to be processed; filtering the alarm data stream to be processed in sequence according to a plurality of predetermined filter levels in a parallel manner using a plurality of stream processors in a target graphics processor to obtain a target alarm data stream; and detecting the alarm points in the target alarm data stream respectively in a parallel manner using the plurality of stream processors to determine alarm flood data, and the alarm flood data is used to output to a report database via a central processing unit.
[0005] Optionally, the alarm data stream to be processed is filtered in sequence according to a plurality of predetermined filtering levels in a parallel manner by multiple stream processors in a target graphics processor to obtain a target alarm data stream, including: executing filtering programs corresponding to the plurality of filtering levels in sequence by the plurality of stream processors to determine invalid data in the alarm data stream to be processed, and eliminating the invalid data in the alarm data stream to be processed; and reorganizing the alarm data to be processed from which the invalid data has been eliminated to obtain the target alarm data.
[0006] Optionally, the multiple stream processors sequentially execute the filtering programs corresponding to the multiple filtering levels to determine invalid data in the alarm data stream to be processed, including: executing the filtering program corresponding to the first level of the multiple filtering levels to determine the alarm data in the alarm data stream to be processed that does not belong to the preset target level as invalid data; executing the filtering program corresponding to the second level of the multiple filtering levels to determine the alarm data in the alarm data stream to be processed whose alarm device position number is the same as the preset position number as invalid data; executing the filtering program corresponding to the third level of the multiple filtering levels to determine the alarm data in the alarm data stream to be processed whose alarm device priority is the same as the preset priority as invalid data.
[0007] Optionally, the multiple stream processors use a parallel manner to detect the alarm points in the target alarm data stream respectively to determine the alarm flood data, including: determining multiple first adjacent alarm point sets corresponding to each alarm point in the target alarm data stream, wherein the number of alarm points in the first adjacent alarm point sets is a first number, and wherein the alarm point is used to indicate the alarm moment; determining a first alarm interval duration between the first alarm point and the last alarm point in the multiple first adjacent alarm point sets; determining the alarm point corresponding to the first adjacent alarm point set whose first alarm interval duration is less than a preset duration as the starting point of the alarm flood; slicing the target alarm data stream to obtain multiple first data streams, and detecting the multiple first data streams respectively to determine the end point of the alarm flood.
[0008] Optionally, the target alarm data stream is sliced to obtain multiple first data streams, including: determining the alarm point after the kth starting point in the target alarm data stream as the starting position of the first data stream; determining the fourth alarm point after the k+1th starting point in the target alarm data stream as the ending position of the first data stream; and slicing the target alarm data stream according to the starting position and the ending position to obtain the first data stream.
[0009] Optionally, the multiple first data streams are detected separately to determine the end point of the alarm flood, including: comparing the alarm points in the first data stream with the alarm points after a second number of intervals in turn to determine the second alarm interval duration; and determining the alarm point whose second alarm interval duration is less than the preset duration as the end point of the alarm flood.
[0010] Optionally, obtaining the alarm data stream to be processed includes: determining the number of the multiple stream processors; and determining the amount of data included in the alarm data stream to be processed according to the number of the multiple stream processors.
[0011] According to another aspect of an embodiment of the present application, an alarm flood statistics device is also provided, including: an acquisition module for acquiring an alarm data stream to be processed; a filtering module for filtering the alarm data stream to be processed in sequence according to a plurality of predetermined filtering levels in a parallel manner through a plurality of stream processors in a target graphics processor to obtain a target alarm data stream; a detection module for detecting the alarm points in the target alarm data stream respectively in a parallel manner through the plurality of stream processors to determine the alarm flood data, and the alarm flood data is used to output to a report database through a central processing unit.
[0012] According to another aspect of an embodiment of the present application, a non-volatile storage medium is provided, in which a program is stored, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute the above-mentioned alarm flood statistics method.
[0013] According to another aspect of an embodiment of the present application, a computer device is provided, including: a memory and a processor, the processor being used to run a program stored in the memory, wherein the above-mentioned alarm flood statistics method is executed when the program is run.
[0014] In an embodiment of the present application, an alarm data stream to be processed is obtained; the alarm data stream to be processed is filtered in sequence according to a plurality of predetermined filtering levels in a parallel manner by a plurality of stream processors in a target graphics processor to obtain a target alarm data stream; the alarm points in the target alarm data stream are respectively detected in a parallel manner by the plurality of stream processors to determine alarm flood data, and the alarm flood data is used to be output to a report database via a central processing unit. The purpose of fast statistical data is achieved by parallel processing by the plurality of stream processors in the target graphics processor, thereby realizing the technical effect of improving the statistical efficiency of alarm flood data, and further solving the technical problem of low statistical efficiency of alarm flood data. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0016] Figure 1 It is a hardware structure block diagram of a computer terminal (or mobile device) for an alarm flooding statistics method according to an embodiment of the present application;
[0017] Figure 2 is a flow chart of a method for counting alarm flooding according to an embodiment of the present application;
[0018] Figure 3is an optional filtering flow chart of alarm data according to an embodiment of the present application;
[0019] Figure 4 is a schematic diagram of an optional start point and end point of alarm flooding according to an embodiment of the present application;
[0020] Figure 5 is a flowchart of another optional alarm flooding statistics method according to an embodiment of the present application;
[0021] Figure 6 It is a schematic diagram of the structure of an optional alarm flood statistics device according to an embodiment of the present application. DETAILED DESCRIPTION
[0022] In order to enable those skilled in the art to better understand the solution of the present application, 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 only 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 should fall within the scope of protection of the present application.
[0023] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0024] According to an embodiment of the present application, a method embodiment of an alarm flood statistics method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0025] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 FIG. 1 shows a hardware structure block diagram of a computer terminal (or mobile device) for implementing an alarm flooding statistics method. Figure 1As shown, the computer terminal 10 (or mobile device 10) may include one or more (102a, 102b, ..., 102n are used to illustrate) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission module 106 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.
[0026] It should be noted that the one or more processors 102 and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 10 (or mobile device). As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).
[0027] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the alarm flood statistics method in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, to implement the above-mentioned alarm flood statistics method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0028] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0029] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 10 (or mobile device).
[0030] Under the above operating environment, the embodiment of the present application provides a method for counting alarm flooding, such as Figure 2 As shown, the method comprises the following steps:
[0031] Step S202, obtaining the alarm data stream to be processed;
[0032] Step S204, using multiple stream processors in the target graphics processor to filter the alarm data stream to be processed in sequence according to multiple predetermined filtering levels in parallel to obtain a target alarm data stream;
[0033] Step S206: using multiple stream processors in parallel to detect the alarm points in the target alarm data stream respectively to determine alarm flood data. The alarm flood data is used to be output to the report database through the central processor.
[0034] Through the above steps, an alarm data stream to be processed is obtained; the alarm data stream to be processed is filtered in sequence according to a plurality of predetermined filtering levels in a parallel manner by a plurality of stream processors in a target graphics processor to obtain a target alarm data stream; the alarm points in the target alarm data stream are respectively detected in a parallel manner by the plurality of stream processors to determine the alarm flood data, and the alarm flood data is used to be output to a report database through a central processing unit. By using a parallel processing method by a plurality of stream processors in a target graphics processor, the purpose of fast statistical data is achieved, thereby realizing the technical effect of improving the statistical efficiency of the alarm flood data, and further solving the technical problem of low statistical efficiency of the alarm flood data.
[0035] In related technologies, the statistical efficiency of reports is generally improved through the following methods, for example: ① Improve the table structure and optimize the database index. ② Adopt a distributed cluster solution. ③ Use a relatively fixed parameter design to pre-process the statistical report when collecting data. ④ Use stored procedures.
[0036] However, ① there are many types of statistical algorithms, and table structure optimization cannot adapt to all statistical algorithms. If too many tables are designed, it may affect the performance of database insertion or query, causing other security risks. ② The distributed cluster solution is technically complex and difficult to maintain. Problems in one link may affect the statistical results of the entire report. ③ Different process personnel select different parameters for statistics. The fixed parameter method cannot provide a good user experience and cannot obtain more accurate statistical results. ④ The use of stored procedures is inconvenient to develop and cumbersome to maintain, and the statistical efficiency is constrained by the database performance bottleneck, which may even cause excessive CPU consumption, affecting the normal performance of database insertion and query, and causing other security risks. ⑤ When the database volume reaches a certain level, it takes several minutes or even dozens of minutes to execute an ordinary database statistical statement, and a statistical task usually requires several or even dozens of statements. During this period, the database load is almost full, which has seriously affected the regular business. The alarm flood statistical algorithm in industrial alarm statistics usually needs to query all data during the period, and filter according to the hierarchical structure, bit number, and priority. Finally, calculate whether the start condition of the alarm flood is triggered, and then count the total number of alarms from the end, and count the number of alarm floods and the detailed data of each alarm flood. Due to the uncertainty of user input parameters, statistical data can only be processed after user input. The conventional database joint table query or query and filter data first and then filter in the program often leads to insufficient computing power or limited database performance when the data volume is large, which takes a long time.
[0037] In the related art, the method of counting alarm data is as follows: query by combining database query statements or joint table method, the specific steps are as follows:
[0038] (1) According to the filter conditions, all data are queried in sequence from 0 to the end according to the preset offset.
[0039] (2) The data read from the database are queried in turn for the start conditions of the alarm flooding and the end conditions of the alarm flooding. If the current segment does not meet the conditions, the query processing continues from the next segment of data.
[0040] (3) Repeat steps (1) and (2) until data processing is complete, and output the final alarm flooding time period and alarm detailed data to the alarm flooding report.
[0041] Traditional statistical algorithms work better when the number of alarms is small, but serious performance problems will occur when the number of alarms reaches tens of millions or when monthly or annual reports are compiled.
[0042] Steps S202 to S206 are described in detail below through an embodiment.
[0043] In step S204, the alarm data stream to be processed is filtered in sequence according to a plurality of predetermined filtering levels in a parallel manner by the plurality of stream processors in the target graphics processor to obtain a target alarm data stream, including: the plurality of stream processors sequentially execute filtering programs corresponding to the plurality of filtering levels to determine invalid data in the alarm data stream to be processed, and remove the invalid data in the alarm data stream to be processed; and the alarm data to be processed from which the invalid data has been removed is reorganized to obtain the target alarm data.
[0044] It should be noted that multiple filtering levels correspond to multiple data filtering methods. In an optional manner, the filtering programs corresponding to the multiple filtering levels can be executed in sequence by the multiple stream processors to determine the invalid data in the alarm data stream to be processed. The specific steps are as follows: execute the filtering program corresponding to the first level of the multiple filtering levels, and determine the alarm data in the alarm data stream to be processed that does not belong to the preset target level as invalid data; execute the filtering program corresponding to the second level of the multiple filtering levels, and determine the alarm data in the alarm data stream to be processed whose alarm device position number is the same as the preset position number as invalid data; execute the filtering program corresponding to the third level of the multiple filtering levels, and determine the alarm data in the alarm data stream to be processed whose alarm device priority is the same as the preset priority as invalid data.
[0045] Figure 3 A flowchart of alarm data filtering is shown, such as Figure 3 As shown, the alarm data stream to be processed is passed through OpenCL (an open computing language), and the hierarchical filtering program (the filtering program corresponding to the first level), the bit number exclusion program (the filtering program corresponding to the second level) and the priority exclusion program (the filtering program corresponding to the third level) are executed in sequence, and invalid data is marked as 0.
[0046] It should be noted that the alarm data stream to be processed is transmitted from the CPU to the video memory of the graphics processor.
[0047] Optionally, the multiple stream processors use a parallel manner to detect the alarm points in the target alarm data stream respectively to determine the alarm flood data, including: determining multiple first adjacent alarm point sets corresponding to each alarm point in the target alarm data stream, wherein the number of alarm points in the first adjacent alarm point sets is a first number, and wherein the alarm point is used to indicate the alarm moment; determining a first alarm interval duration between the first alarm point and the last alarm point in the multiple first adjacent alarm point sets; determining the alarm point corresponding to the first adjacent alarm point set whose first alarm interval duration is less than a preset duration as the starting point of the alarm flood; slicing the target alarm data stream to obtain multiple first data streams, and detecting the multiple first data streams respectively to determine the end point of the alarm flood.
[0048] It can be understood that the multiple adjacent alarm points in the first adjacent alarm point set are multiple alarm points that are continuous in sequence.
[0049] It should be noted that the first number can be set according to actual needs, for example: 10 alarm points, and the preset duration can be set according to actual needs, for example: 10 minutes. In an optional manner, multiple stream processors can detect each alarm point separately, or multiple stream processors can detect each alarm point in the first adjacent alarm point set separately.
[0050] In an optional manner, the target alarm data stream is sliced to obtain multiple first data streams, including: determining the alarm point after the kth starting point in the target alarm data stream as the starting position of the first data stream; determining the fourth alarm point after the k+1th starting point in the target alarm data stream as the ending position of the first data stream; and slicing the target alarm data stream according to the starting position and the ending position to obtain the first data stream.
[0051] In some embodiments of the present application, when there are multiple target alarm data streams, for example, 2, multiple stream processors can be used to simultaneously detect the current target alarm data stream and the previous target alarm data stream. An optional method is that a part of the stream processors detects the end point of the previous target alarm data stream, and the other part detects the starting point of the current target alarm data stream.
[0052] Optionally, the multiple first data streams are detected separately to determine the end point of the alarm flood, including: comparing the alarm points in the first data stream with the alarm points after a second number of intervals in turn to determine the second alarm interval duration; and determining the alarm point whose second alarm interval duration is less than the preset duration as the end point of the alarm flood.
[0053] It should be noted that the second number can be set according to actual needs, for example: 5.
[0054] For example: the alarm points corresponding to start point 1 are 1, 2, 3, 4, 5, 6, and 7; the alarm points corresponding to start point 2 are 9, 10, 11, 12, and 13; start point 1 uses 2 to compare with 6, and 3 to compare with 7. Since the amount of data for No. 4 is insufficient, the two data points of start point 8, 5 and 9, 6 and 10, and 7 and 11 are used to meet the necessary quantity conditions for the end point statistics of alarm points 4, 5, 6, and 7. If it is the last data stream statistics, because the amount of data required for 10, 11, 12, and 13 is insufficient, 13 is directly used as the end point.
[0055] Compare the alarm flood start point and alarm flood end point, extract the part that meets the alarm flood condition and record it in the database. Figure 4 As shown in the figure, start point 1 corresponds to end point a, and the data between these two points is an alarm flood point, which is recorded in the report database. Start point 2 corresponds to end point b, and start point 3 is an invalid alarm flood start point. Start point 2 and end point b are recorded in the report database. The data between start point 4 and end point c are also recorded in the report database. Start point 6 is meaningless because it is already included in start point 5, so it is treated as an invalid start point. Start point 5 is reserved for the next round of processing because there is no corresponding end point at present (if it is the last round of data flow, start point 5 to the end of the data flow are all treated as alarm flood data and recorded in the report.
[0056] In some embodiments of the present application, obtaining the alarm data stream to be processed may be determined in the following manner: determining the number of the plurality of stream processors; and determining the amount of data included in the alarm data stream to be processed according to the number of the plurality of stream processors.
[0057] Figure 5 Another method for counting alarm flooding is shown in FIG. Figure 5 As shown, the CPU obtains statistical parameters, reads alarm data (pending alarm data) from the database, and transmits the pending alarm data to the GPU (graphics processing unit), executes the filtering program in sequence, and determines the alarm flood data. Finally, the GPU transmits the alarm flood data back to the CPU for aggregation and transmission to the database.
[0058] Figure 6It is an alarm flood statistics device according to an embodiment of the present application, including: an acquisition module 60, used to obtain an alarm data stream to be processed; a filtering module 62, used to filter the alarm data stream to be processed in sequence according to a plurality of predetermined filtering levels in a parallel manner through a plurality of stream processors in a target graphics processor to obtain a target alarm data stream; a detection module 64, used to detect the alarm points in the target alarm data stream respectively in a parallel manner through the plurality of stream processors to determine the alarm flood data, and the alarm flood data is used to output to a report database through a central processing unit.
[0059] Through the above-mentioned device, an alarm data stream to be processed is obtained; the alarm data stream to be processed is filtered and processed in sequence according to a plurality of predetermined filtering levels in a parallel manner by a plurality of stream processors in a target graphics processor to obtain a target alarm data stream; the alarm points in the target alarm data stream are respectively detected in a parallel manner by the plurality of stream processors to determine the alarm flood data, and the alarm flood data is used to be output to a report database through a central processing unit. By using a parallel processing method by the plurality of stream processors in the target graphics processor, the purpose of fast statistical data is achieved, thereby realizing the technical effect of improving the statistical efficiency of the alarm flood data, and further solving the technical problem of low statistical efficiency of the alarm flood data.
[0060] According to another aspect of an embodiment of the present application, a non-volatile storage medium is provided, in which a program is stored, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute the above-mentioned alarm flood statistics method.
[0061] According to another aspect of the embodiment of the present application, a computer device is provided, including: a memory and a processor, the processor being used to run a program stored in the memory, wherein the above-mentioned alarm flood statistics method is executed when the program is run.
[0062] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0063] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0064] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0065] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed over multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0066] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0067] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk, etc. Various media that can store program codes.
[0068] The above are only preferred implementations 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 method for counting alarm flooding, characterized in that: include: Get the alarm data stream to be processed; The to-be-processed alarm data stream is filtered sequentially according to a plurality of predetermined filtering levels by using a plurality of stream processors in a target graphics processor in a parallel manner to obtain a target alarm data stream; The multiple stream processors are used to detect the alarm points in the target alarm data stream in a parallel manner to determine the alarm flood data. The alarm flood data is used to be output to the report database through the central processing unit.
2. The method according to claim 1, characterized in that The target alarm data stream is filtered in sequence according to a plurality of predetermined filtering levels by using a plurality of stream processors in the target graphics processor in a parallel manner to obtain the target alarm data stream, including: The plurality of stream processors sequentially execute the filtering programs corresponding to the plurality of filtering levels to determine the invalid data in the alarm data stream to be processed, and remove the invalid data in the alarm data stream to be processed; The to-be-processed alarm data from which invalid data has been eliminated are reorganized to obtain the target alarm data.
3. The method according to claim 2, characterized in that The method of sequentially executing the filtering programs corresponding to the multiple filtering levels by the multiple stream processors to determine the invalid data in the alarm data stream to be processed includes: Executing a filtering program corresponding to a first level among the multiple filtering levels, and determining the alarm data in the alarm data stream to be processed that does not belong to a preset target level as invalid data; Executing a filtering program corresponding to a second level among the plurality of filtering levels, and determining the alarm data in the alarm data stream to be processed whose alarm device bit number is the same as the preset bit number as invalid data; A filtering program corresponding to a third level among the multiple filtering levels is executed to determine the alarm data in the alarm data stream to be processed whose alarm device priority is the same as the preset priority as invalid data.
4. The method according to claim 1, characterized in that: The multiple stream processors are used in parallel to detect the alarm points in the target alarm data stream respectively to determine the alarm flooding data, including: Determine a plurality of first adjacent alarm point sets corresponding to each alarm point in the target alarm data stream, wherein the number of alarm points in the first adjacent alarm point sets is a first number, and wherein the alarm points are used to indicate alarm moments; Determine the first alarm interval duration between the first alarm point and the last alarm point in the plurality of first adjacent alarm point sets; Determine the alarm point corresponding to the first adjacent alarm point set whose first alarm interval duration is less than the preset duration as the starting point of alarm flooding; The target alarm data stream is sliced to obtain a plurality of first data streams, and the plurality of first data streams are detected respectively to determine an end point of alarm flooding.
5. The method according to claim 4, characterized in that The target alarm data stream is sliced to obtain a plurality of first data streams, including: Determine the next alarm point after the kth starting point in the target alarm data stream as the starting position of the first data stream; Determining the fourth alarm point after the k+1th starting point in the target alarm data stream as the end position of the first data stream; The target alarm data stream is sliced according to the start position and the end position to obtain the first data stream.
6. The method according to claim 5, characterized in that The plurality of first data streams are detected respectively to determine an end point of alarm flooding, comprising: Comparing the alarm points in the first data stream with the alarm points after a second number of intervals in sequence to determine the second alarm interval duration; The alarm point at which the second alarm interval duration is less than the preset duration is determined as the end point of the alarm flooding.
7. The method according to claim 1, characterized in that Get the alarm data stream to be processed, including: determining a number of the plurality of stream processors; The amount of data included in the alarm data stream to be processed is determined according to the number of the multiple stream processors.
8. An alarm flooding statistics device, characterized in that: include: An acquisition module is used to acquire the alarm data stream to be processed; A filtering module, configured to filter the to-be-processed alarm data stream in sequence according to a plurality of predetermined filtering levels in a parallel manner through a plurality of stream processors in a target graphics processor, to obtain a target alarm data stream; The detection module is used to detect the alarm points in the target alarm data stream respectively by using the multiple stream processors in parallel to determine the alarm flood data, and the alarm flood data is used to be output to the report database through the central processing unit.
9. A non-volatile storage medium, characterized in that: The non-volatile storage medium stores a program, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute the alarm flooding statistics method according to any one of claims 1 to 7.
10. A computer device, characterized in that: include: A memory and a processor, wherein the processor is used to run a program stored in the memory, wherein the alarm flood statistics method described in any one of claims 1 to 7 is executed when the program is run.
