Alarm information processing method and device, electronic equipment and medium

By setting time windows and thresholds in the alarm information processing system at the construction site, and iterating through the number of alarms to determine the status and time of alarm events, the problem of large volume of alarm information processing at the construction site is solved, and the processing efficiency and accuracy are improved.

CN117194513BActive Publication Date: 2026-06-30GUANGXI INST OF ARTIFICIAL INTELLIGENCE & BIG DATA APPL CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GUANGXI INST OF ARTIFICIAL INTELLIGENCE & BIG DATA APPL CO LTD
Filing Date
2023-08-28
Publication Date
2026-06-30

AI Technical Summary

Technical Problem

In existing technologies, the large volume of alarm information processed at construction sites makes it difficult for system administrators to analyze the large amount of alarm information in a timely manner and to accurately obtain the current status and duration of events.

Method used

By acquiring multiple alarm messages for alarm events, setting different time windows and thresholds, iterating through the number of alarms to determine the status, start time, and end time of alarm events, generating and storing alarm event archives, and establishing the association relationship between event target objects.

Benefits of technology

It effectively reduces the redundancy of alarm information processing, reduces system load and memory resource consumption, improves the efficiency of alarm information processing, and enables rapid response to front-end requests.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117194513B_ABST
    Figure CN117194513B_ABST
Patent Text Reader

Abstract

This application discloses an alarm information processing method, apparatus, electronic device, and medium, belonging to the field of information processing technology. The method includes: acquiring multiple alarm messages of an alarm event, the alarm messages including alarm times; traversing from the first alarm message of the alarm event to determine whether the number of alarms in the alarm event within a first sliding time window reaches a first threshold; if the number of alarms in the alarm event within the first sliding time window reaches the first threshold, stopping the traversal, determining the start of the alarm event, and recording the alarm time of the last alarm message within the first sliding time window as the start time of the alarm event; recording the state of the alarm event according to the number of alarms in each second time window after the start time, until the end of the alarm event is determined.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of information processing technology, and in particular to alarm information processing methods, apparatus, electronic devices and media. Background Technology

[0002] At various construction sites, such as those in the power and construction industries, the complexity of the site, including the need for high-altitude operations, presents numerous threats to personal safety. Special requirements apply to the clothing and behavior of workers, such as restricted work areas (prohibited areas, shafts, etc.) and clothing requirements (standard wearing of safety helmets, work clothes, insulated gloves, and insulated boots).

[0003] Currently, there are monitoring devices designed for these scenarios that generate alarms when events occur. However, the amount of data pushed by the alarms is large, requiring a lot of manpower for analysis and processing, which consumes a lot of time. This makes it difficult for system administrators to analyze a large amount of alarm information in a timely manner and to accurately obtain the current status and duration of the event. Summary of the Invention

[0004] This application provides alarm information processing methods, apparatus, electronic devices, and media to solve the technical problems of large alarm information processing volume and low efficiency.

[0005] Firstly, this application provides an alarm information processing method, including:

[0006] Obtain multiple alarm information for an alarm event, wherein the alarm information includes the alarm time;

[0007] Starting from the first alarm message of the alarm event, iterate through the alarm events to determine whether the number of alarms in the first sliding time window reaches the first threshold.

[0008] If the number of alarms in the first sliding time window reaches a first threshold, the traversal is stopped, the start of the alarm event is determined, and the alarm time of the last alarm message in the first sliding time window is recorded as the start time of the alarm event.

[0009] The status of the alarm event is recorded based on the number of alarms within each second time window after the start time, until the end of the alarm event is determined.

[0010] Optionally, recording the status of the alarm event based on the number of alarms within each second time window after the start time until the end of the alarm event is determined includes:

[0011] If the number of alarms of the alarm event within the second time window is greater than or equal to the second threshold corresponding to the second time window, the status of the alarm event within the second time window is recorded as continuously occurring;

[0012] If the number of alarms for the alarm event within the second time window is less than the second threshold corresponding to the second time window, the alarm event is determined to have ended, and the alarm time of the last alarm message for the alarm event within the second time window is determined as the end time of the alarm event.

[0013] Optionally, recording the status of the alarm event based on the number of alarms within each second time window after the start time until the end of the alarm event is determined includes:

[0014] If the number of alarms in the nth second time window is greater than or equal to the third threshold corresponding to the nth second time window, the duration of the (n+1)th second time window is increased.

[0015] If the number of alarms in the nth second time window is less than the third threshold corresponding to the nth second time window and is greater than or equal to the second threshold corresponding to the nth second time window, the duration of the (n+1)th second time window is shortened.

[0016] Wherein, for any second time window, the third threshold corresponding to the second time window is greater than its corresponding second threshold, and the initial duration of the second time window is the second preset duration.

[0017] Optionally, recording the status of the alarm event based on the number of alarms within each second time window after the start time until the end of the alarm event is determined includes:

[0018] The second and third thresholds corresponding to the second time window are adaptively adjusted according to the duration of the second time window.

[0019] Optionally, upon determining that the alarm event has started, a file for the alarm event is generated and stored in a database; wherein the file for the alarm event includes the start time and end time of the alarm event.

[0020] Optionally, the alarm information includes the target object of the event; the method includes:

[0021] If multiple alarm events in the database have the same target object, an association is established for the files of the multiple alarm events.

[0022] Optionally, obtaining multiple alarm information for an alarm event includes:

[0023] Receive alarm information reported by monitoring equipment, wherein the alarm information includes the source of the alarm information and an image of the target object of the event;

[0024] If the target objects of the events are the same, the alarm information is determined to be alarm information of the same alarm event.

[0025] Secondly, embodiments of this application provide an alarm information processing apparatus, including:

[0026] The information acquisition module is used to acquire multiple alarm information of alarm events, and the alarm information includes the alarm time;

[0027] The trigger judgment module is used to traverse from the first alarm information of the alarm event to determine whether the number of alarms of the alarm event within the first sliding time window reaches the first threshold.

[0028] The status output module is used to stop the traversal when the number of alarms in the first sliding time window of the alarm event reaches a first threshold, determine the start of the alarm event, and record the alarm time of the last alarm information in the first sliding time window as the start time of the alarm event.

[0029] In addition, the status of the alarm event is recorded based on the number of alarms within each second time window after the start time, until the alarm event is determined to have ended.

[0030] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, wherein the memory stores programs or instructions executable on the processor, and the programs or instructions, when executed by the processor, implement the steps of the method described in the first aspect.

[0031] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.

[0032] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.

[0033] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.

[0034] The alarm information processing method, apparatus, electronic device, and medium provided in this application embodiment acquire multiple alarm messages of an alarm event, traverse from the first alarm message of the alarm event, and determine whether the number of alarms in the alarm event within a first sliding time window reaches a first threshold; if the number of alarms in the alarm event within the first sliding time window reaches the first threshold, the traversal stops, the alarm event is determined to have started, and the alarm time of the last alarm message within the first sliding time window is recorded as the start time of the alarm event; based on the number of alarms in each second time window after the start time, the state of the alarm event is recorded until the end of the alarm event is determined. This achieves the determination of the state, start time, and end time of the alarm event based on the relationship between the number of alarms in different time windows and a preset threshold, effectively reducing the redundancy of alarm information processing, reducing system load and memory resource consumption, improving the efficiency of alarm information processing, and enabling rapid response to front-end requests. Attached Figure Description

[0035] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0036] Figure 1 A schematic diagram of the hardware structure of an alarm information processing system that can apply alarm information processing methods and devices, provided in an embodiment of this application;

[0037] Figure 2 A flowchart illustrating the alarm information processing method provided in this application embodiment;

[0038] Figure 3 This is a timing diagram of the occurrence of alarm events in the alarm information processing method provided in the embodiments of this application;

[0039] Figure 4 A schematic diagram of the structure of an embodiment of the alarm information processing device provided in this application;

[0040] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.

[0041] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0042] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0043] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0044] It should be noted that the alarm information processing method and apparatus of this application can be used in the field of information processing, or in any field other than the field of security equipment alarms. This application does not limit the application field of the alarm information processing method and apparatus.

[0045] The current security alarm issues require system administrators to process a large number of alarm messages acquired by security monitoring equipment one by one. However, a large number of these alarm messages are useless to the administrators, which consumes a lot of time and cannot accurately obtain the current status of the alarm event or the duration of the event, resulting in a large amount of information processing load for the system.

[0046] Therefore, this application proposes an alarm information processing method. Based on acquiring multiple alarm messages of an alarm event, including the alarm time, the method iterates from the first alarm message of the alarm event. Based on the relationship between the number of alarms in different time windows and a preset threshold, the method determines the status, start time, and end time of the alarm event. In this process, by setting different time windows and threshold conditions, the redundancy of alarm information processing is effectively reduced, the system load and memory resource consumption are decreased, the efficiency of alarm information processing is improved, and rapid response to front-end requests is achieved.

[0047] <Hardware Configuration>

[0048] See Figure 1 This is an exemplary system architecture 1000 for which the alarm information processing method and apparatus of the embodiments of this application can be applied. It should be noted that... Figure 1The examples shown are merely examples of system architectures that can be applied to the embodiments of this application, in order to help those skilled in the art understand the technical content of this application, but do not mean that the embodiments of this application cannot be used in other devices, systems, environments or scenarios.

[0049] In applications where the method in this embodiment is implemented with the participation of a terminal device, the interaction may include human-computer interaction. In applications where the method in this embodiment is implemented with the participation of a server, the interaction may include interaction between the server and the terminal device.

[0050] Figure 1 The alarm information processing system 1000 provided in this application embodiment, which can be applied to alarm information processing methods and devices, may include a processor 1100, a memory 1200, an interface device 1300, a communication device 1400, a display device 1500, an input device 1600, a speaker 1700, a microphone 1800, etc. The processor 1100 may be a central processing unit (CPU), a microprocessor (MCU), etc. The memory 1200 may include, for example, ROM (Read-Only Memory), RAM (Random Access Memory), or non-volatile memory such as a hard disk. The interface device 1300 may include, for example, a USB interface, a headphone jack, etc. The communication device 1400 may be capable of wired or wireless communication. The display device 1500 may be, for example, a liquid crystal display (LCD), a touch screen, etc. The input device 1600 may include, for example, a touch screen, a keyboard, etc. Users can input / output voice information through the speaker 1700 and the microphone 1800.

[0051] Despite Figure 1 The alarm information processing system 1000 shows multiple devices, but this application may only involve some of them. For example, the alarm information processing system 1000 may only involve the memory 1200 and the processor 1100.

[0052] In the embodiments of this application, the memory 1200 of the alarm information processing system 1000 is used to store instructions for controlling the processor 1100 to execute the methods provided in the embodiments of this application.

[0053] In the above description, those skilled in the art can design instructions based on the scheme disclosed in this invention. How the instructions control the processor to operate is well known in the art, and therefore will not be described in detail here.

[0054] <Method Implementation>

[0055] Figure 2 This is a flowchart illustrating an embodiment of the alarm information processing method of this application. The method is applied to an alarm information processing system, which can be deployed on servers and terminal devices. See [link to relevant documentation]. Figure 2 The method may include the following steps S2100 to S2400:

[0056] Step S2100: Obtain multiple alarm information of alarm events.

[0057] In this embodiment, an alarm event refers to a certain type of event that requires monitoring. For example, in the field of building security, it is necessary to use security monitoring equipment to monitor the clothing and behavior of workers. This may involve restrictions on work areas, such as prohibiting personnel from entering certain areas or going down into shafts; restrictions on clothing requirements, such as requiring the standard wearing of safety helmets, work clothes, insulating gloves, and insulating boots; and restrictions on continuous work, such as requiring that personnel not leave their posts.

[0058] For these scenarios, monitoring devices will generate alarms when events occur. When the alarm information processing system needs to analyze the alarm information for a specific scenario, it can retrieve the corresponding alarm information from the monitoring devices. The alarm information can be the time when the alarm event occurred.

[0059] Figure 3 For a timing diagram of alarm events occurring in the alarm information processing method provided in this application embodiment, see [link to relevant documentation]. Figure 3 During the event, different time windows are divided, and the relationship between the number of alarms within the time window and the preset threshold is analyzed to determine the status of the alarm event, the start time and the end time of the event. The specific steps can be executed as follows.

[0060] Step S2200: Starting from the first alarm message of the alarm event, traverse the alarm event to determine whether the number of alarms in the first sliding time window has reached the first threshold.

[0061] In this embodiment, a first sliding time window is first set, and the alarm information processing system begins to traverse the alarm information of the corresponding alarm event and records the number of alarms for the alarm event within the first sliding time window.

[0062] Step S2300: If the number of alarms in the first sliding time window reaches the first threshold, stop traversing, determine the start of the alarm event, and record the alarm time of the last alarm information in the first sliding time window as the start time of the alarm event.

[0063] In this embodiment of the disclosure, the alarm event is determined to be triggered by judging the relationship between the number of alarms within the first sliding time window and a preset first threshold. Specifically:

[0064] When the number of alarms within the first sliding time window is greater than or equal to the preset first threshold, the alarm event is determined to be triggered; otherwise, the alarm event is determined to be not yet triggered, the first sliding time window is slid forward one time, and the alarm event is determined to be triggered again.

[0065] For example, the duration of the first sliding time window is a first preset duration. The initial position of the first sliding time window is set to the alarm time of the first alarm message. If, within the first preset duration after the alarm time of the first alarm message, the number of alarms is greater than or equal to a first threshold, it is determined that the alarm event has been triggered, the iteration ends, and the alarm time of the last alarm message within the first sliding time window is recorded as the start time of the alarm event. If, within the first preset duration after the alarm time of the first alarm message, the number of alarms is less than the first threshold, it is determined that the alarm event has not yet been triggered, and the iteration continues, controlling the first sliding time window to slide to the alarm time of the second alarm message. If, within the first preset duration after the alarm time of the second alarm message, the number of alarms is greater than or equal to the first threshold, it is determined that the alarm event has been triggered, the iteration ends, and the alarm time of the last alarm message within the first sliding time window is recorded as the start time of the alarm event. Otherwise, the iteration continues, controlling the first sliding time window to slide to the alarm time of the third alarm message.

[0066] In a specific embodiment, for an alarm event indicating that a worker in a special position at a construction site has left their post, alarm information from the monitoring equipment for that special position is acquired within a first sliding time window. Based on the set first sliding time window, the relationship between the number of worker absence alarms within the first sliding time window and a preset first threshold is determined. For example, if the set first sliding time window is 30 seconds and the first threshold is 3, then if the number of worker absence alarms is 3 or more within 30 seconds, it is determined that the worker has left their post, and the absence alarm is triggered, requiring the management personnel of the alarm information processing system to handle it as soon as possible; otherwise, it is determined that the worker has not left their post.

[0067] In this embodiment, if the number of alarms within the first sliding time window is greater than or equal to the first threshold, the alarm event is considered to be triggered. At this time, the traversal of alarm information is stopped, the start of the alarm event is further determined, and the alarm time of the last alarm information within the first sliding time window is recorded. The alarm event of the alarm information can be considered to be the start time of the corresponding alarm event.

[0068] In one specific embodiment, when it is determined that the operator has left his post, the process of traversing alarm information is stopped. The alarm information processing system determines the start of the operator's departure event and records the time of the last alarm information within the corresponding first sliding time window of 30 seconds as the start time of his departure.

[0069] Step S2400: Record the status of the alarm event based on the number of alarms in each second time window after the start time, until it is determined that the alarm event has ended.

[0070] In this embodiment, after the alarm event is determined to start, a second event window is preset. Based on the alarm information of the alarm event, the alarm count of the alarm event in each second time window after the event starts is determined and the status of the event is recorded until the alarm event ends. The status of the event can be continuous or ended.

[0071] In this embodiment, the status of the alarm event is recorded based on the number of alarms within each second time window after the start time until the end of the alarm event is determined. This may further include the following steps S2410 to S2420:

[0072] S2410. If the number of alarms in the second time window is greater than or equal to the second threshold corresponding to the second time window, the status of the alarm event in the second time window shall be recorded as continuous occurrence.

[0073] In one specific embodiment, the duration of a second time window is preset, and the relationship between the number of times the worker leaves the post alarm within the second time window and the second threshold corresponding to the second time window is determined. For example, if the second time window is set to 10 seconds and the second threshold corresponding to the second time window is 2, that is, if the number of times the worker leaves the post alarm is 2 or more within 10 seconds, it is determined that the worker is continuously leaving the post.

[0074] S2420. If the number of alarms in the second time window is less than the second threshold corresponding to the second time window, determine that the alarm event has ended and determine the alarm time of the last alarm message in the second time window as the end time of the alarm event.

[0075] In the above specific embodiment, if the number of alarms for workers leaving their posts within the second time window is less than 2, it is determined that the worker has returned to their post, and the alarm time of the last alarm information within the corresponding second time window is recorded as the end time of their departure.

[0076] In this embodiment, after an alarm event begins, the number of alarms within each second time window is determined, and the status of the alarm event is recorded. When the alarm event continues to occur, the duration of the second time window can be adjusted to reduce the number of times the system determines and records data, thereby improving the efficiency of alarm information processing.

[0077] In this embodiment, the status of the alarm event is recorded based on the number of alarms within each second time window after the start time until the end of the alarm event is determined. This may further include the following steps S2430 to S2440:

[0078] S2430. If the number of alarms in the nth second time window is greater than or equal to the third threshold corresponding to the nth second time window, increase the duration of the (n+1)th second time window; where n≥2 and is a positive integer; where for any second time window, the third threshold corresponding to the second time window is greater than its corresponding second threshold, and the initial duration of the second time window is the second preset duration.

[0079] In this embodiment, the third threshold corresponding to the second time window is greater than or equal to the second threshold corresponding to the second time window. The scenario in which this threshold is set is that the number of alarms within the second time window is always greater than the corresponding second threshold. In this case, a third threshold larger than the second threshold is set. The relationship between the number of alarms within the second time window and its corresponding third threshold determines whether to increase the duration of the second time window to reduce the number of comparisons. Specifically, first, the relationship between the number of alarms within the nth second time window and the preset third threshold corresponding to the nth second time window is determined. If the number of alarms within the nth second time window is greater than or equal to the third threshold corresponding to the nth second time window, then the duration of the (n+1)th second time window is increased.

[0080] In one specific embodiment, the initial second time window duration is set to T. Alarm events occur continuously. Assume the lengths of the first three second time windows remain unchanged (i.e., the duration of each of the first three second time windows is T). If the number of alarms within the third second time window is greater than or equal to the third threshold corresponding to the third second time window, the duration of the fourth second time window can be increased, for example, by setting the duration of the fourth second time window to 2T. If the number of alarms within the fourth second time window is greater than or equal to the third threshold corresponding to the fourth second time window, the duration of the fifth second time window can be increased, for example, by setting the duration of the fifth second time window to 3T. This process continues, increasing the duration of the second time window by T each time the conditions are met. In other examples, the duration of each increase in the second time window duration can also be a multiple of the previous second time window length, or some other corresponding relationship.

[0081] S2440. If the number of alarms in the nth second time window is less than the third threshold corresponding to the nth second time window and is greater than or equal to the second threshold corresponding to the nth second time window, shorten the duration of the (n+1)th second time window.

[0082] In this embodiment, the relationship between the number of alarms in the nth second time window and the preset third threshold corresponding to the nth second time window is first determined. If the number of alarms in the nth second time window is less than the third threshold corresponding to the nth second time window, the duration of the (n+1)th second time window is shortened.

[0083] In one specific embodiment, alarm events occur continuously. Assume the lengths of the first to third second time windows remain unchanged, i.e., the duration of the first three second time windows is T. If the number of alarms within the third second time window is less than the third threshold corresponding to the third second time window, the duration of the fourth second time window can be shortened, for example, by setting the duration of the fourth second time window to 1 / 2T rounded up. If the number of alarms within the fourth second time window is less than the third threshold corresponding to the fourth second time window, the duration of the fifth second time window is further shortened, for example, by setting the duration of the fourth second time window to 1 / 4T and rounded up. This process continues, shortening the duration of the second time window by half the duration of the previous second time window each time, rounded up, when the conditions are met. In other examples, the duration of the second time window can also be shortened by other multiples of the previous second time window length, or other corresponding relationships.

[0084] In other embodiments, since the number of alarms in an alarm event is dynamically changing, if the number of alarms in the second time window is greater than or equal to the third threshold corresponding to the second time window after shortening the length of the second time window, step S2430 can be further executed until the alarm event ends.

[0085] In this embodiment, the status of the alarm event is recorded based on the number of alarms within each second time window after the start time until the end of the alarm event is determined. The embodiment also includes step S2450:

[0086] S2450. Adjust the second threshold and third threshold corresponding to the second time window according to the duration of the second time window.

[0087] In steps S2430 to S2440 above, after increasing the duration of the second time window, if the status of the alarm event is still determined based on the relationship between the number of alarms in each second time window after the start time and the second threshold in the second time window, it will affect the accuracy of the judgment result. At this time, the second threshold and the third threshold corresponding to the second time window are adjusted according to the increased duration of the second time window.

[0088] Conversely, if the duration of the second time window is shortened, there may be situations where the second threshold condition is easily reached within a shorter time window, leading to inaccurate judgment results. In such cases, the second and third thresholds corresponding to the second time window can be adjusted based on the shortened duration of the second time window.

[0089] In this embodiment, the second threshold and the third threshold corresponding to the second time window can be increased or decreased proportionally to the duration of the second time window.

[0090] In a specific embodiment, steps S2430 to S2450 are as follows: If the number of worker absence alarm messages is two or more within two consecutive second time windows of 10 seconds, the worker is considered to be continuously absent from their post. In this case, the duration of the second time window is increased, for example, to 20 seconds, and a third threshold of 4 is set within the increased second time window. That is, if the number of worker absence alarm messages is four or more within 20 seconds, the worker is determined to be continuously absent from their post.

[0091] In one specific embodiment, if the number of worker absence alarm messages is less than 6 within two consecutive increases in the second time window (i.e., the increased second time window duration is 30 seconds), it is considered that the worker has not been continuously absent from their post. In this case, the duration of the second time window can be shortened, for example, to 15 seconds. Simultaneously, a third threshold of 3 is set within the shortened second time window. That is, if the number of worker absence alarm messages is 3 within 15 seconds, it is determined that the worker has returned to their post.

[0092] Based on the first embodiment, the alarm information processing method provided in the second embodiment of this application includes:

[0093] In some embodiments, steps S2100 to S2400 may not be repeated for the same or similar concepts or processes.

[0094] Step S2500: Generate alarm event files and store the files in the database; wherein, the alarm event files include the start time and end time of the alarm events.

[0095] In this embodiment, upon determining that an alarm event has started, an alarm event file is generated and stored in a database. The alarm event file includes the start and end times of the alarm event; that is, the start time is the alarm time of the last alarm message within the first sliding time window, and the end time is the alarm time of the last alarm message within the last second time window.

[0096] When system administrators need to know the duration of an alarm event or its current status, they can directly obtain the information from the corresponding file, avoiding system load and memory consumption, and enabling rapid response to front-end requests.

[0097] Based on the second embodiment, the alarm information processing method provided in the third embodiment of this application includes alarm information including an event target object; and further includes:

[0098] Step S2600: If multiple alarm events in the database have the same target object, establish a relationship between the files of the multiple alarm events.

[0099] In this embodiment, the database stores files of multiple alarm events. For alarm events with the same target object in the files, a mapping relationship can be set to associate multiple alarm events with the same target object, which is convenient for system administrators to manage and further reduces the redundancy of alarm information processing.

[0100] In a specific embodiment, in the field of building security, it is necessary to monitor the attire of workers using security monitoring equipment, such as requiring them to wear safety helmets, work clothes, and insulated gloves. The monitoring equipment monitors events related to different attire restrictions and establishes multiple alarm event files in a database. The first alarm event is for wearing a safety helmet, the second for wearing work clothes, and the third for wearing insulated gloves. Based on existing technology for identifying and comparing monitoring images, it is easy to determine whether the target objects of the first, second, and third alarm events are identical. If they are identical, the system can be configured to establish a correlation between these three alarm event files, and further, a direct correlation can be established between the target objects, facilitating system administrator management.

[0101] In another embodiment, step S2100, which involves obtaining multiple alarm messages for an alarm event, further includes:

[0102] Step S2110: Receive alarm information reported by the monitoring device. The alarm information includes the source of the alarm information and an image of the target object of the event.

[0103] Step S2120: If the target objects of the events are the same, determine that the alarm information belongs to the same alarm event.

[0104] In this embodiment, in a real-world application scenario, the monitoring of alarm events involves multiple alarm information sources and multiple event target objects. The system receives alarm information reported by the monitoring device, which includes images of the alarm information source and the event target object. For alarm information where different alarm information sources obtain images of the same event target object, they can be identified as alarm information for the same alarm event, thereby reducing the number of alarm information to be processed.

[0105] In a specific embodiment, in the field of construction security, where monitoring of workers' attire is required, multiple monitoring devices are installed at the work site. Since workers are mobile while working, multiple monitoring devices will generate alarm messages when they fail to wear safety helmets, work clothes, or insulated gloves as required. Therefore, when the system receives multiple alarm messages reported by the monitoring devices, it can first identify the workers under different monitoring devices, process alarm messages for the same worker not wearing a safety helmet or work clothes, and classify these alarm messages as belonging to the same alarm event.

[0106] In summary, the alarm information processing method provided in this application, after acquiring multiple alarm messages of an alarm event, including the alarm time, iterates from the first alarm message of the alarm event and determines the status, start time, and end time of the alarm event based on the relationship between the number of alarms in different time windows and a preset threshold. In this process, by setting different time windows and threshold conditions, the redundancy of alarm information processing is effectively reduced, the system load and memory resource consumption are decreased, the efficiency of alarm information processing is improved, and rapid response to front-end requests is achieved.

[0107] <Device Embodiment>

[0108] In this embodiment, an alarm information processing device is also provided, see [link to relevant documentation]. Figure 4 The alarm information processing device 4000 includes an information acquisition module 4100, a trigger judgment module 4200, and a status output module 4300, which are used to implement the alarm information processing method provided in this embodiment. Each module of the alarm information processing device 4000 can be implemented by software or by hardware, and no limitation is made here.

[0109] The information acquisition module 4100 is used to acquire multiple alarm information of alarm events, including alarm time;

[0110] The trigger judgment module 4200 is used to traverse from the first alarm information of the alarm event to determine whether the number of alarms in the first sliding time window has reached the first threshold.

[0111] The status output module 4300 is used to stop traversing when the number of alarms in the first sliding time window reaches a first threshold, determine the start of the alarm event, and record the alarm time of the last alarm information in the first sliding time window as the start time of the alarm event.

[0112] Additionally, the status of the alarm event is recorded based on the number of alarms within each second time window after the alarm event starts, until the alarm event is determined to have ended.

[0113] The embodiments disclosed in this application propose an alarm information processing device. Based on acquiring multiple alarm messages of an alarm event, including the alarm time, it iterates from the first alarm message of the alarm event. Based on the relationship between the number of alarms in different time windows and a preset threshold, it determines the status, start time, and end time of the alarm event. In this process, by setting different time windows and threshold conditions, the redundancy of alarm information processing is effectively reduced, the system load and memory resource consumption are decreased, the efficiency of alarm information processing is improved, and rapid response to front-end requests is achieved.

[0114] In one embodiment, the status output module 4300 is specifically used to record the status of the alarm event in the second time window as continuously occurring when the number of alarms in the second time window is greater than or equal to the second threshold corresponding to the second time window.

[0115] If the number of alarms in the second time window is less than the second threshold corresponding to the second time window, the alarm event is determined to have ended, and the alarm time of the last alarm message in the second time window is determined as the end time of the alarm event.

[0116] In one embodiment, the status output module 4300 includes a first adjustment module unit 4310 (not shown in the figure).

[0117] The first adjustment module unit 4310 is used to increase the duration of the (n+1)th second time window when the number of alarms in the nth second time window is greater than or equal to the third threshold corresponding to the nth second time window.

[0118] If the number of alarms in the nth second time window is less than the third threshold corresponding to the nth second time window and is greater than or equal to the second threshold corresponding to the nth second time window, shorten the duration of the (n+1)th second time window.

[0119] Wherein, for any second time window, the third threshold corresponding to the second time window is greater than its corresponding second threshold, and the initial duration of the second time window is the second preset duration.

[0120] In one embodiment, the status output module 4300 further includes a second adjustment unit 4320 (not shown in the figure).

[0121] The second adjustment unit 4320 is used to adaptively adjust the second threshold and the third threshold corresponding to the second time window according to the duration of the second time window.

[0122] In one embodiment, the status output module 4300 further includes a file generation unit 4330 (not shown in the figure).

[0123] The file generation unit 4330 is used to generate an alarm event file and store the file in the database when the start of an alarm event is determined; wherein, the alarm event file includes the start time and end time of the alarm event.

[0124] And when multiple alarm events in the database have the same target object, establish a relationship between the files of multiple alarm events.

[0125] In one embodiment, the alarm information includes an image of the alarm information source and the target object of the event; the information acquisition module 4100 is also used to receive alarm information reported by the monitoring device, the alarm information including an image of the alarm information source and the target object of the event;

[0126] If the target object of the event is the same, the alarm information is determined to be alarm information of the same alarm event.

[0127] <Equipment Example>

[0128] Corresponding to the above method embodiments, this embodiment also provides an electronic device, which may include an alarm information processing device 4000 of any embodiment of this script application, for implementing the alarm information processing method provided in this embodiment.

[0129] See Figure 5 The electronic device 5000 may further include a processor 5200 and a memory 5100, the memory 5100 being used to store executable instructions; the processor 5200 being used to control the electronic device according to the instructions to execute an alarm information processing method according to any embodiment of the present application.

[0130] Each module of the above-mentioned device 5000 can be implemented by the processor 5200 executing the instructions to perform the method according to any embodiment of this application.

[0131] This invention can be a system, method, and / or computer program product. A computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for causing a processor to implement various aspects of the invention.

[0132] Computer-readable storage media can be tangible devices capable of holding and storing instructions for use by an instruction execution device. Computer-readable storage media can be, for example—but not limited to—electrical storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any suitable combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disc read-only memory (CD-ROM), digital multifunction disc (DVD), memory sticks, floppy disks, mechanical encoding devices, such as punch cards or recessed protrusions storing instructions thereon, and any suitable combination thereof. The computer-readable storage media used herein are not to be construed as transient signals themselves, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., light pulses through fiber optic cables), or electrical signals transmitted through wires.

[0133] The computer-readable program instructions described herein can be downloaded from computer-readable storage media to various computing / processing devices, or downloaded via a network, such as the Internet, local area network, wide area network, and / or wireless network, to an external computer or external storage device. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards them to the computer-readable storage media in the respective computing / processing device.

[0134] The computer program instructions used to perform the operations of this invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Smalltalk, C++, etc., and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or may be connected to an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, electronic circuitry, such as programmable logic circuitry, field-programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), is personalized by utilizing state information from the computer-readable program instructions. This electronic circuitry can execute the computer-readable program instructions to implement various aspects of the invention.

[0135] Various aspects of the present invention are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer-readable program instructions.

[0136] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that, when executed by the processor of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner; thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.

[0137] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.

[0138] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction containing one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions. It will be known to those skilled in the art that implementation in hardware, implementation in software, and implementation using a combination of software and hardware are equivalent.

[0139] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described search method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0140] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0141] This application provides a computer program product that is stored in a storage medium and executed by at least one processor to implement the various processes of the search method embodiments described above, and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0142] The various embodiments of the present invention have been described above. These descriptions are exemplary and not exhaustive, and are not limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principles, practical application, or technical improvements to the embodiments in the market, or to enable others skilled in the art to understand the embodiments disclosed herein. The scope of the invention is defined by the appended claims.

Claims

1. A method for processing alarm information, characterized in that, include: Obtain multiple alarm information for an alarm event, wherein the alarm information includes the alarm time; Starting from the first alarm message of the alarm event, iterate through the alarm events to determine whether the number of alarms in the first sliding time window reaches the first threshold. If the number of alarms in the first sliding time window reaches a first threshold, the traversal is stopped, the start of the alarm event is determined, and the alarm time of the last alarm message in the first sliding time window is recorded as the start time of the alarm event. The status of the alarm event is recorded based on the number of alarms within each second time window after the start time, until the end of the alarm event is determined. This includes: if the number of alarms within the second time window is greater than or equal to a second threshold corresponding to the second time window, recording the status of the alarm event within the second time window as continuously occurring; if the number of alarms within the second time window is less than the second threshold corresponding to the second time window, determining the end of the alarm event and determining the alarm time of the last alarm message within the second time window as the end time of the alarm event. If the number of alarms in the nth second time window is greater than or equal to the third threshold corresponding to the nth second time window, the duration of the (n+1)th second time window is increased; if the number of alarms in the nth second time window is less than the third threshold corresponding to the nth second time window but greater than or equal to the second threshold corresponding to the nth second time window, the duration of the (n+1)th second time window is shortened; wherein, for any second time window, the third threshold corresponding to the second time window is greater than its corresponding second threshold, and the initial duration of the second time window is a second preset duration.

2. The alarm information processing method according to claim 1, characterized in that, The step of recording the status of the alarm event based on the number of alarms within each second time window after the start time until the end of the alarm event is determined includes: The second and third thresholds corresponding to the second time window are adjusted according to the duration of the second time window.

3. The alarm information processing method according to claim 1, characterized in that, include: Upon determining that the alarm event has started, a file for the alarm event is generated and stored in the database; wherein the file for the alarm event includes the start time and end time of the alarm event.

4. The alarm information processing method according to claim 3, characterized in that, The alarm information includes the target object of the event; the method includes: If multiple alarm events in the database have the same target object, an association is established for the files of the multiple alarm events.

5. The alarm information processing method according to claim 1, characterized in that, The acquisition of multiple alarm information for alarm events includes: Receive alarm information reported by monitoring equipment, wherein the alarm information includes the source of the alarm information and an image of the target object of the event; If the target objects of the events are the same, the alarm information is determined to be alarm information of the same alarm event.

6. An alarm information processing device, characterized in that, include: The information acquisition module is used to acquire multiple alarm information of alarm events, and the alarm information includes the alarm time; The trigger judgment module is used to traverse from the first alarm information of the alarm event to determine whether the number of alarms of the alarm event within the first sliding time window reaches the first threshold. The status output module is used to stop the traversal when the number of alarms in the first sliding time window of the alarm event reaches a first threshold, determine the start of the alarm event, and record the alarm time of the last alarm information in the first sliding time window as the start time of the alarm event. Furthermore, the status of the alarm event is recorded based on the number of alarms within each second time window after the start time, until the end of the alarm event is determined. Specifically, if the number of alarms within the second time window is greater than or equal to the second threshold corresponding to the second time window, the status of the alarm event within the second time window is recorded as continuously occurring; if the number of alarms within the second time window is less than the second threshold corresponding to the second time window, the end of the alarm event is determined, and the alarm time of the last alarm message within the second time window is determined as the end time of the alarm event. The status output module includes a first adjustment module unit, which is used to increase the duration of the (n+1)th second time window when the number of alarms of an alarm event within the nth second time window is greater than or equal to the third threshold corresponding to the nth second time window; and to shorten the duration of the (n+1)th second time window when the number of alarms of an alarm event within the nth second time window is less than the third threshold corresponding to the nth second time window but greater than or equal to the second threshold corresponding to the nth second time window; wherein, for any second time window, the third threshold corresponding to the second time window is greater than its corresponding second threshold, and the initial duration of the second time window is a second preset duration.

7. An electronic device, comprising: A processor, and a memory communicatively connected to the processor; The memory stores programs or instructions that can run on the processor; When the program or instructions are executed by the processor, they are used to implement the steps of the alarm information processing method as described in any one of claims 1 to 5.

8. A readable storage medium, characterized in that, The readable storage medium stores an executable program or instructions, which, when executed by a processor, are used to implement the steps of the alarm information processing method as described in any one of claims 1 to 5.