Abnormality detection method, device, computer equipment and storage medium

Through artificial intelligence technology combined with the collaborative work of detection equipment and shooting equipment, the problem of false alarms in traditional anomaly detection is solved, the accuracy of fire detection and the sensitivity setting of detection equipment are improved, and the burden on management personnel and equipment power consumption are reduced.

CN114913663BActive Publication Date: 2024-08-23TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110180545.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-08
Publication Date
2024-08-23
Estimated Expiration
2041-02-08

AI Technical Summary

Technical Problem

False alarms often occur in traditional anomaly detection technology, resulting in low detection accuracy. Especially in fire detection, highly sensitive detection equipment can easily misjudge smoke as fire, which increases the workload of management personnel and increases the power consumption of equipment.

Method used

Through artificial intelligence technology, combined with the collaborative work of target detection equipment and target shooting equipment, it receives abnormal event alarm information from the detection equipment, determines the shooting equipment associated with the spatial location, obtains image collections for abnormal event detection, and combines the alarm information and images of the detection equipment Analyze the results to improve detection accuracy.

Benefits of technology

Effectively reduce false alarms, improve the accuracy of anomaly detection, reduce the sensitivity setting of detection equipment, avoid unnecessary alarms, and reduce the burden on management personnel and equipment power consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114913663B
    Figure CN114913663B
Patent Text Reader

Abstract

The present application relates to an abnormality detection method, device, computer equipment and storage medium. The method includes: receiving abnormal event alarm information sent by a target detection device, the abnormal event alarm information is triggered when the target detection device detects abnormal environmental information; in response to the abnormal event alarm information, determining a target shooting device that has a spatial position association relationship with the target detection device, the target shooting area of ​​the target shooting device includes the target detection area corresponding to the target detection device; obtaining a target image set corresponding to the abnormal environmental information captured by the target shooting device; performing abnormal event detection on the target image set to obtain an abnormal event detection result. The above scheme performs abnormal event detection based on the target image set captured by the target shooting device, and the obtained abnormal event detection result can correct the abnormal event alarm information of the target detection device, effectively improving the accuracy of abnormality detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network technology, and in particular to an anomaly detection method, apparatus, computer equipment and storage medium. Background Art

[0002] In order to ensure the safety of residents, it is often necessary to detect abnormalities in buildings, such as fire detection. In traditional technologies, abnormality detection is performed through detection equipment, and an alarm is issued when an abnormality is detected. For example, a fire alarm is issued when smoke is abnormal. However, false alarms often occur, resulting in low accuracy of abnormality detection.

[0003] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0004] Based on this, it is necessary to provide an anomaly detection method, device, computer equipment and storage medium to address the above technical problems.

[0005] A method for detecting anomalies, the method comprising: receiving abnormal event alarm information sent by a target detection device, the abnormal event alarm information being triggered when the target detection device detects abnormal environmental information; in response to the abnormal event alarm information, determining a target shooting device that has a spatial position association relationship with the target detection device, the target shooting area corresponding to the target shooting device including the target detection area corresponding to the target detection device; acquiring a target image set corresponding to the abnormal environmental information captured by the target shooting device; performing abnormal event detection on the target image set to obtain an abnormal event detection result.

[0006] An abnormality detection device, the device comprising: an alarm information receiving module, used to receive abnormal event alarm information sent by a target detection device, the abnormal event alarm information is triggered when the target detection device detects abnormal environmental information; a shooting device determination module, used to determine a target shooting device that has a spatial position association relationship with the target detection device in response to the abnormal event alarm information, the target shooting area corresponding to the target shooting device includes the target detection area corresponding to the target detection device; an image set acquisition module, used to acquire a target image set corresponding to the abnormal environmental information captured by the target shooting device; an abnormal event detection module, used to perform abnormal event detection on the target image set to obtain an abnormal event detection result.

[0007] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the following steps when executing the computer program: receiving abnormal event alarm information sent by a target detection device, wherein the abnormal event alarm information is triggered when the target detection device detects abnormal environmental information; in response to the abnormal event alarm information, determining a target shooting device that has a spatial position association relationship with the target detection device, wherein a target shooting area corresponding to the target shooting device includes a target detection area corresponding to the target detection device; obtaining a target image set corresponding to the abnormal environmental information captured by the target shooting device; and performing abnormal event detection on the target image set to obtain an abnormal event detection result.

[0008] A computer-readable storage medium stores a computer program, which implements the following steps when executed by a processor: receiving abnormal event alarm information sent by a target detection device, wherein the abnormal event alarm information is triggered when the target detection device detects abnormal environmental information; in response to the abnormal event alarm information, determining a target shooting device that has a spatial position association relationship with the target detection device, wherein a target shooting area corresponding to the target shooting device includes a target detection area corresponding to the target detection device; obtaining a target image set corresponding to the abnormal environmental information captured by the target shooting device; and performing abnormal event detection on the target image set to obtain an abnormal event detection result.

[0009] The above-mentioned anomaly detection method, device, computer equipment and storage medium determine the target shooting device that has a spatial position association relationship with the target detection device under the triggering of the target detection device. The target shooting device can capture a target image set related to the abnormal environmental information detected by the target detection device, and further perform abnormal event detection based on the target image set. The obtained abnormal event detection result combines the abnormal event alarm information of the target detection device and the image analysis result, which can effectively improve the accuracy of anomaly detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Figure 1 A diagram of an application environment of an anomaly detection method in an embodiment;

[0011] Figure 2 1 is a flow chart of an abnormality detection method in one embodiment;

[0012] Figure 3 is a flow chart of an abnormality detection method in another embodiment;

[0013] Figure 4 A schematic diagram of the position of a device in an embodiment;

[0014] Figure 5A schematic diagram of an interface display of a calibration terminal in an embodiment;

[0015] Figure 6 A schematic diagram of an interface display of a mobile terminal in an embodiment;

[0016] Figure 7 It is a schematic diagram of an interface display of a mobile terminal in another embodiment;

[0017] Figure 8 A schematic diagram of the interaction between a device linkage group and a server in one embodiment;

[0018] Fig. 9 A schematic diagram of an encryption process in an embodiment;

[0019] Fig.10 A schematic diagram of a flow chart of an abnormality detection method in another embodiment;

[0020] Fig.11 is a flowchart of an abnormality detection method in yet another embodiment;

[0021] Fig.12 is a flowchart of an abnormality detection method in yet another embodiment;

[0022] Fig.13 A schematic diagram of the position of a device in another embodiment;

[0023] Fig.14 is a structural block diagram of an abnormality detection device in one embodiment;

[0024] Fig.15 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0025] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0026] The anomaly detection method, device, computer equipment and storage medium provided in this application can be implemented based on artificial intelligence (AI) technology. Among them, artificial intelligence is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that machines have the functions of perception, reasoning and decision-making.

[0027] Artificial intelligence technology is a comprehensive discipline that covers a wide range of fields, including both hardware-level and software-level technologies. The basic technologies of artificial intelligence generally include sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics and other technologies. Artificial intelligence software technology mainly includes computer vision technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0028] Among them, machine learning (ML) is a multi-disciplinary interdisciplinary subject, involving probability theory, statistics, approximation theory, convex analysis, algorithm complexity theory and other disciplines. It specializes in studying how computers simulate or implement human learning behavior to acquire new knowledge or skills and reorganize existing knowledge structures to continuously improve their performance. Machine learning is the core of artificial intelligence and the fundamental way to make computers intelligent. Its applications are spread across all areas of artificial intelligence. Machine learning and deep learning usually include artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, and teaching learning. For example: classify image features through machine learning models to obtain image recognition results.

[0029] With the research and advancement of artificial intelligence technology, artificial intelligence technology has been studied and applied in many fields, such as common smart homes, smart wearable devices, virtual assistants, smart speakers, smart marketing, unmanned driving, automatic driving, drones, robots, smart medical care, smart customer service, etc. I believe that with the development of technology, artificial intelligence technology will be applied in more fields and play an increasingly important role.

[0030] The solution provided in the embodiments of the present application involves artificial intelligence, machine learning and other technologies, which are specifically described by the following embodiments:

[0031] The anomaly detection method provided in the embodiment of the present application can be applied to Figure 1In the application environment shown, the application environment includes a target detection device 102, a target shooting device 104 and a server 106. The target detection device 102 and the target shooting device 104 communicate with the server 106 through a network. Figure 1 A target detection device and a target shooting device are shown in the figure. In actual application scenarios, the number of target detection devices and target shooting devices can be greater. When receiving the abnormal event alarm information sent by the target detection device 102, the server 106 determines the target shooting device 104 that has a spatial position association relationship with the target detection device 102, obtains the target image set captured by the target shooting device 104, performs abnormal event detection on the target image set, and obtains the abnormal event detection result. The server 106 can be implemented by an independent server or a server cluster composed of multiple servers. The target detection device 102 can be various terminal devices with environmental detection functions, which can be but not limited to smoke detectors, temperature detectors or light detectors. The target shooting device 104 can be various terminal devices with shooting functions, which can be various types of cameras, which can be but not limited to visible light cameras, infrared cameras or thermal cameras.

[0032] In one embodiment, Figure 2 As shown, an anomaly detection method is provided. This embodiment uses the method applied to a server as an example for illustration, and includes the following steps:

[0033] S202, receiving abnormal event alarm information sent by the target detection device, where the abnormal event alarm information is triggered when the target detection device detects abnormal environment information.

[0034] The target detection device may be any terminal device with an environmental detection function, for example, a terminal device that detects at least one environmental information such as smoke, temperature, light or humidity in the environment. The target detection device may be, but is not limited to, a smoke detector, a temperature detector or a light detector. The smoke detector may include a smoke sensor and an alarm. When the smoke sensor detects smoke, the alarm may sound an alarm, such as a whistle, to alert people. The temperature detector may include a temperature sensing element and an alarm. When the temperature sensing element detects abnormal temperature changes, the alarm may sound an alarm to alert people. The light detector may include a light sensing element and an alarm. When the light sensing element detects abnormal light changes, the alarm may sound an alarm to alert people.

[0035] Abnormal environment information may include information detected by the target detection device when the environment information is abnormal. The target detection device may perform environment detection in real time. When it is determined that abnormal environment information is detected according to the environment detection information, an abnormal event occurs, abnormal event alarm information for the detected abnormal event is generated, and the abnormal event alarm information is sent to the server. When the target detection device detects abnormal environment information, the abnormal event may correspond to an abnormal object, and the abnormal object may be at least one of smoke with too high a concentration, airflow with too high a temperature, or light with too high a brightness.

[0036] S204, in response to the abnormal event alarm information, determining a target shooting device that has a spatial position association relationship with the target detection device, wherein the target shooting area corresponding to the target shooting device includes the target detection area corresponding to the target detection device.

[0037] Among them, the target shooting device can be various terminal devices with shooting functions, and can be various types of cameras, which can be but not limited to visible light cameras, infrared cameras or thermal cameras. The target shooting device can shoot the area within the field of view to obtain the corresponding image or video. In one embodiment, the number of target shooting devices can be more than one, and each target shooting device can correspond to a target image set. In order to reduce the amount of calculation for abnormal event detection, the number of target shooting devices can be less than the number threshold. The number threshold can be determined according to actual conditions, for example, 10, so that the number of target shooting devices is in the single digit.

[0038] In one embodiment, the target shooting device may include a camera. The area within the field of view of the target shooting device may be determined based on the area to which the camera is directed, as the target shooting area corresponding to the target shooting device. In addition, the camera may have a fixed orientation or may be adjusted as needed. When the orientation of the camera is adjustable, all orientations that the camera can cover may be determined as the orientation of the camera, and then the target shooting area is determined based on the orientation of the camera. If a camera with adjustable orientation is determined as the target shooting device, the server may control the camera to adjust its orientation to be toward the target detection area, and then abnormal event detection is performed based on the video captured by the camera.

[0039] In one embodiment, the target detection area of ​​the target detection device may include an area where the target detection device can obtain detection information. The target detection area may be determined based on the detection range of the target detection device. The detection range may be achieved through a detection radius, etc. Taking a smoke detector as an example, the detection radius may be the range of a smoke sensor in a smoke detector. In one embodiment, the target detection device obtains environmental detection information of the target detection area in real time. When it is determined that the environmental detection information is abnormal, for example, the smoke concentration exceeds a limit, it is determined that abnormal environmental information is detected, and abnormal event alarm information is sent to the server.

[0040] The existence of a spatial position association relationship includes that there is an association relationship between the target detection area corresponding to the target detection device and the target shooting area corresponding to the target shooting device, and it can be at least one of an area overlapping relationship or an area inclusion relationship between the target detection area and the target shooting area.

[0041] In one embodiment, the target shooting area of ​​the target shooting device and the target detection area of ​​the target detection device can both be spatial stereo areas. When the target shooting area corresponding to the shooting device P includes all or part of the target detection area of ​​the target detection device, the server determines that there is a spatial position association relationship between the shooting device P and the target detection device, and determines the shooting device P as the target shooting device.

[0042] In one embodiment, S204 is implemented as follows: when receiving the abnormal event alarm information sent by the target detection terminal, the server determines the target shooting device that has a spatial position association relationship with the target detection device.

[0043] S206, obtaining a target image set corresponding to the abnormal environment information captured by the target shooting device.

[0044] The target image set may include a set including at least one image. The image may be a two-dimensional image or a three-dimensional image. In one embodiment, the target image set may be a video composed of multiple frames of images.

[0045] In one embodiment, the target shooting area of ​​the target shooting device includes the target detection area corresponding to the target detection device, and the abnormal environment information is located in the target detection area. Therefore, when the target shooting device obtains an image corresponding to the target shooting area, the image corresponding to the abnormal environment information can be obtained. When the target shooting device captures at least one image, the target image set can be obtained.

[0046] In one embodiment, the server may determine the detection time when the target detection device detects abnormal environmental information, obtain the image captured by the target shooting device at the detection time, and then obtain the target image set. The server may also trigger the corresponding target shooting device to capture images after determining the target shooting device, that is, capture the image after the target detection device detects the abnormal environment, and then obtain the target image set. In addition, the target image set may be an image corresponding to a certain moment, or a video consisting of multiple frames of images corresponding to a certain time period.

[0047] S208, performing abnormal event detection on the target image set to obtain abnormal event detection results.

[0048] Among them, abnormal event detection may include a process of detecting abnormal events in a target image set. It may be to perform image feature detection on each image in the target image set, and obtain the abnormal event detection result according to the image feature detection results corresponding to each image; it may also be to extract the image features of each image in the target image set, obtain the set features of the target image set, and then perform image feature detection based on the set features, and obtain the abnormal event detection result according to the image feature detection results. The abnormal event detection result may include the result of whether abnormal environmental information exists. When the abnormal environmental information exists, it is determined that the event object exists. At this time, the server can determine that the target detection device normally alarms. When the abnormal environmental information does not exist, it is determined that the event object does not exist. At this time, the server can determine that the target detection device falsely alarms. Therefore, the target detection device can be corrected based on the abnormal event detection result. The abnormal event detection result can be obtained by combining the environmental detection information of the target detection device and the abnormal event detection of the target image set. The abnormal event detection result can play a correction role on the target detection device and improve the accuracy of the abnormal alarm.

[0049] In one embodiment, abnormal event detection can be performed on the target image set based on artificial intelligence technology to obtain abnormal event detection results. Specifically, the target image set can be classified based on a pre-trained machine learning model to achieve abnormal event detection and obtain abnormal event detection results.

[0050] In one embodiment, the image features corresponding to the target image set can be analyzed by a pre-trained machine learning model to classify the image features, determine whether the image features are abnormal event features or normal event features, and then obtain abnormal event detection results based on the classification results. Among them, the machine learning model can be various models with classification functions, and can include at least one of the SVM (Support Vector Machine) model, K-means (K-means clustering algorithm) model, and Deep Neural Network (DNN) model. Among them, the SVM model is a two-classification model, so it is suitable for classification requirements of yes or no. At the same time, compared with other classification algorithms, SVM requires relatively fewer samples at the same problem complexity and has better robustness.

[0051] In one embodiment, the feature variation can also be determined by the image features corresponding to the target image set, wherein the feature variation can refer to the variation between the image features of adjacent images, and can be the variation of the area of ​​the flame or the variation of the smoke visibility between two adjacent frames of images. When the determined feature variation meets the conditions, it is determined that abnormal environmental information exists. For example, when it is determined that there is a flame according to the target image set and the area increment corresponding to the flame exceeds the area increment threshold, it is determined that there is a large fire.

[0052] In one embodiment, when there are multiple target shooting devices, the server may perform abnormal event detection on the target image set of some or all target shooting devices, and obtain the abnormal event detection result by combining the detection results corresponding to these target shooting devices. When the detection result corresponding to some or all target shooting devices is that abnormal environment information exists, the server may determine the abnormal event detection result as the existence of abnormal environment information.

[0053] In one embodiment, the target detection device can trigger an alarm to sound an alarm while sending abnormal event alarm information to the server. If the abnormal event detection result generated by the server is that the abnormal environment information does not exist, the alarm is triggered to stop sounding the alarm. The target detection device can also not trigger an alarm to sound an alarm when sending abnormal event alarm information to the server, but trigger an alarm to sound an alarm when the server generates an abnormal event detection result and the abnormal event detection result is that the abnormal environment information exists. When the abnormal event detection result is that the abnormal environment information does not exist, the alarm is not triggered to sound an alarm. This method can prevent false alarms from the target detector and prevent troubles to management personnel and the like.

[0054] In one embodiment, the server may return the abnormal event detection result to the target detection device after obtaining the abnormal event detection result. It is also possible to determine whether abnormal environmental information exists based on the abnormal event detection result, and calibrate the target detection device based on the judgment result. For example: when it is determined that the abnormal environmental information does not exist based on the abnormal event detection result, it is determined that the target detection device has a false alarm, and the target detection device is corrected, such as controlling the target detection device to stop the alarm reminder; when it is determined that the abnormal environmental information exists based on the abnormal event detection result, it is determined that the target detection device does not have a false alarm, and an alarm message is sent to the mobile device to instruct the manager using the mobile device to handle the abnormal event, and other target detection devices may also be triggered to issue an alarm to improve the alarm effect. Among them, the mobile terminal may also be a terminal of a fire station. In this way, a fire alarm can be directly sent to the fire station to improve the efficiency of fire handling.

[0055] In one embodiment, a processor may also be configured in the target shooting device. The target shooting device may perform abnormal event detection on the target image set based on the processor to obtain abnormal event detection results, and then send the abnormal event detection results to the server.

[0056] In the above-mentioned anomaly detection method, a target shooting device that has a spatial position association with the target detection device is determined under the triggering of the target detection device. The target shooting device can capture a target image set related to the abnormal environmental information detected by the target detection device, and further abnormal event detection is performed based on the target image set. The obtained abnormal event detection result combines the abnormal event alarm information and image analysis results of the target detection device, and determines whether an abnormal event exists based on the coordinated cooperation of the detector and the shooting device, which can effectively improve the accuracy of anomaly detection.

[0057] If the sensitivity of the target detection device is set to a high value, even the slightest abnormal environmental information within the target detection area may trigger the target detection device to sound an alarm. For example, smoke exhaled by a smoker may be identified as fire smoke. This is not only prone to false alarms and increases the workload for management personnel, but high sensitivity will also increase the power consumption of the target detection device.

[0058] In one embodiment, the sensitivity of the target detection device is configured as the target sensitivity. The target detection device detects the environmental information in the target detection area according to the target sensitivity, and sends abnormal event alarm information to the server when abnormal environmental information is detected, thereby triggering the server to perform abnormal event detection based on the target image set of the target shooting device to obtain an abnormal event detection result.

[0059] In one embodiment, when it is determined that the abnormal environment information does not exist according to the abnormal event detection result, the target detection information can be corrected, for example, by adjusting the sensitivity of the target detection device. Specifically, if the target detection device misidentifies the smoke exhaled by the smoker as fire smoke, the server can adjust the sensitivity of the target detection device to a lower value to prevent the smoke from being misidentified as fire smoke again, thereby causing a false alarm.

[0060] In the above embodiment, due to the correction effect of the abnormal event detection results, the sensitivity of the target detection device does not need to be set to a higher value. The accuracy of abnormal detection can be guaranteed without increasing the power consumption of the target detection device. The results of abnormal event detection can be directly combined to accurately identify smokers.

[0061] In one embodiment, determining a target shooting device that has a spatial position association relationship with a target detection device includes: determining a three-dimensional space model corresponding to a target space region where the target detection device is located; determining first spatial position information of the target detection device in the three-dimensional space model, and determining a target detection region corresponding to the target detection device based on the first spatial position information; and acquiring a target shooting device that has a spatial position association relationship with the target detection device based on the target detection region.

[0062] The target space area includes areas within a certain space range, such as buildings, train carriages, hotels, squares, communities, etc. A community can be an area consisting of at least one building, at least one square, or at least one corridor, and can be a residential area or a commercial area. Various types of equipment can be installed in the target space area, such as detection equipment and shooting equipment. In the fire warning scenario, the equipment installed in the target space area can be fire detection equipment, such as at least one of a smoke detector, a temperature detector, a light detector, or a camera.

[0063] The three-dimensional space model is a model obtained after the target space area is converted into a model, and each point in the three-dimensional space model has a corresponding space coordinate. According to the three-dimensional space model, the spatial position information of each device installed in the target space area can be determined. Among them, the spatial position information can refer to the coordinate information on the three-dimensional coordinate system. The spatial position information can also include position information corresponding to the structure of the target space area. Assuming that the target space area is a building, the spatial position information may include at least one of the floor where the device is located, the height at the corresponding floor, or the distance from the wall; assuming that the target space area is a train car, the spatial position information may include at least one of the car number where the device is located or the distance from the car body.

[0064] In one embodiment, the target space area is a building, and the three-dimensional space model is a BIM (Building Information Modeling, Building Information Modeling) model, which can also be called a digital space model. Any object in the BIM model can be represented by a coordinate in the three-dimensional space model. In one embodiment, the three-dimensional space model is a model based on the BIM model, which is implemented in combination with the concept of a three-dimensional coordinate system and takes the entire building as a unified space to describe the spatial position of any object in the building. Therefore, all devices installed in the building have a unique spatial coordinate. The server can communicate with each device in the building through a network. When the server obtains the three-dimensional space model, it can determine the spatial position information of the device in the three-dimensional space model through the spatial coordinates of the device. In one embodiment, the three-dimensional space model is a three-dimensional space coordinate system constructed based on the building. The three-dimensional space coordinate system uses the building as a coordinate system, with the center point at the bottom of the building as the coordinate origin, the upper north as the y-axis, the right east as the x-axis, and the upward z-axis.

[0065] In one embodiment, the three-dimensional spatial coordinates corresponding to the device can be determined based on the projection of the device on the ground of the building, the distance between the device and the wall, and the distance between the device and the ceiling, thereby obtaining the spatial position information of the device in the three-dimensional spatial model.

[0066] In one embodiment, determining a target detection area corresponding to the target detection device according to the first spatial position information includes: determining the target detection area corresponding to the target detection device according to the first spatial position information and a detection range of the target detection device.

[0067] In one embodiment, Figure 3 As shown, Figure 3 The flowchart of an abnormality detection method in an embodiment is as follows. Taking the target detector as a temperature detector and the target shooting device as a camera as an example, the server determines the spatial position information of the temperature detector, camera A, and camera B based on the three-dimensional spatial model of the target spatial area. When receiving the abnormal event alarm information sent by the temperature detector, the target camera that has a spatial position association relationship with the temperature detector is determined in camera A and camera B according to the three-dimensional spatial model, and then the abnormal event detection is performed based on the target image set shot by the target camera to obtain the abnormal event detection result.

[0068] After determining the target shooting device, the target shooting device and the target detection device can be used as a device linkage group. The next time the server receives abnormal event alarm information sent by the same target detection device, it can directly obtain the target shooting device based on the device linkage group to improve the efficiency of determining the target shooting device.

[0069] In the above embodiment, the server can determine the target shooting device that has a spatial position association relationship with the target detection device based on the position relationship between the detection device and the shooting device in the three-dimensional space model. The determined target shooting device can reliably capture the target detection area corresponding to the target detection device, and then accurately analyze whether there is abnormal environmental information in the target detection area, so as to improve the accuracy of abnormality detection.

[0070] In one embodiment, a target shooting device that has a spatial position association relationship with a target detection device is obtained according to a target detection area, including: determining a shooting device search area corresponding to the target spatial area according to the target detection area; determining a shooting device in the shooting device search area as a candidate shooting device according to spatial position information of shooting devices installed in the target spatial area; determining a target shooting area corresponding to the candidate shooting device; and determining a candidate shooting device that has a spatial position association relationship with the target shooting area as a target shooting device.

[0071] In one embodiment, a target shooting device that has a spatial position association relationship with a target detection device is obtained according to a target detection area, including: determining a shooting device search area corresponding to the target spatial area according to the target detection area; determining a shooting device in the shooting device search area as a candidate shooting device according to spatial position information of shooting devices installed in the target spatial area; determining a target shooting area corresponding to the candidate shooting device; and determining a candidate shooting device whose target shooting area has an area overlapping relationship with the target detection area as a target shooting device.

[0072] The camera search area includes an area for searching for camera devices, which may be a target detection area or an area consisting of the target detection area and a specific range outside the target detection area. Determining candidate camera devices within the camera search area can ensure that the determined candidate camera devices are camera devices that are sufficiently close to the target detection area, thereby ensuring that there is a spatial position correlation relationship between the camera area corresponding to the candidate camera device and the target detection area.

[0073] In one embodiment, the projection surface of the target shooting device on the ground and each wall can be determined, and the area between the target shooting device and each projection surface can be determined as the target shooting area, and then the candidate shooting device based on the overlapping relationship between the target shooting area and the target detection area is determined as the target shooting device.

[0074] In one embodiment, determining a candidate photographing device whose target photographing area has an area overlap relationship with the target detection area as the target photographing device includes: calculating the overlap area of ​​the target photographing area of ​​the candidate photographing device and the target detection area of ​​the target detection device to obtain the overlap area size corresponding to the candidate photographing device; and determining a candidate photographing device whose overlap area size is not zero as the target photographing device. When the overlap area size is not zero, the server may determine that there is an area overlap relationship between the target photographing area corresponding to the candidate photographing device and the target detection area of ​​the target detection device, and thus determine the corresponding candidate photographing device as the target photographing device. On the contrary, when the overlap area size is zero, the server may determine that there is no area overlap relationship between the target photographing area corresponding to the candidate photographing device and the target detection area of ​​the target detection device, and thus exclude the corresponding candidate photographing device.

[0075] In the above embodiment, candidate photographing devices are first determined from the photographing devices installed in the target space area according to the photographing device search area. The number of the candidate photographing devices is greatly reduced compared to all the photographing devices installed in the target space area. Determining the target photographing device based on the candidate photographing devices can effectively reduce the amount of computation in the target photographing device determination process and improve the efficiency of abnormal event detection.

[0076] In one embodiment, determining a shooting device search area corresponding to a target space area according to a target detection area includes: obtaining a device search extension range; determining an extension area corresponding to the target detection area according to the device search extension range; and using an area formed by the target detection area and the extension area as the shooting device search area.

[0077] The device search extension range includes a range extending outward from the target detection area, which can be represented by an area radius, and its size can be determined according to actual conditions, such as 5 meters. The extended area can be an area outside the target detection area corresponding to the device search extension range as the extension radius. Taking the device search extension range as a radius of 5 meters as an example, the process of determining the camera search area can be: obtaining the target detection area, extending it outward by 5 meters based on the target detection area, and the obtained area is used as the camera search area.

[0078] In one embodiment, when there is no photographing device in the photographing device search area, the device search extension range may be increased to obtain a larger photographing device search area, and then the photographing devices in the larger photographing device search area may be determined as candidate photographing devices.

[0079] In the above embodiment, the target shooting device is searched for based on the target detection area and the device search extension range, and as many target shooting devices as possible are searched in an area as close to the target detection device as possible. Then, these target shooting devices can be combined to obtain as many target image sets as possible to improve the reliability of the abnormality detection results.

[0080] In one embodiment, determining a target shooting area corresponding to a candidate shooting device includes: determining second spatial position information of the candidate shooting device in a three-dimensional space model; obtaining a shooting range of the candidate shooting device; determining an initial shooting area corresponding to the candidate shooting device according to the second spatial position information and the shooting range; obtaining a shooting blocking object corresponding to the area where the candidate shooting device is located; filtering out a shooting blocking area corresponding to the shooting blocking object from the initial shooting area to obtain a target shooting area corresponding to the candidate shooting device.

[0081] The second spatial position information may include at least one of the installation floor, installation position and installation height of the candidate shooting device. The shooting range of the shooting device may be determined according to at least one of the installation angle, viewing angle range and camera focal length of the shooting device.

[0082] The shooting blocking object includes an object that will block the shooting of the candidate shooting device. Taking the target space area as a building as an example, the shooting blocking object can be a wall, such as: a roof, a ground, a screen, or a side wall.

[0083] The shooting blocking object will block the shooting of the candidate shooting device, and the blocked area is called the shooting blocking area. For example, if the shooting blocking object is the ceiling of the floor where the candidate shooting device is located, when determining the target shooting area, the initial shooting area can be obtained according to the second spatial position information and shooting range of the candidate shooting device, and the area above the ceiling is filtered out from the initial shooting area, and the remaining area is used as the target shooting area corresponding to the candidate shooting device.

[0084] Figure 4 FIG. 1 is a schematic diagram of the position of a device in an embodiment. Figure 4 As shown, the candidate shooting device is camera 402, and camera 402 is installed on the roof of the second floor of a certain building. The process of determining the target shooting area can be: determining the initial shooting area corresponding to the camera according to the installation height of camera 402 on the second floor and the shooting range, determining the area outside the roof of the second floor and each wall as the shooting blocking area, filtering out the shooting blocking area from the initial shooting area, and obtaining the target shooting area corresponding to the camera.

[0085] In the above embodiment, the blocked shooting area is filtered out from the initial shooting area to obtain the target shooting area, so that the obtained target shooting area fully considers the actual structure of the target space area, and then the target shooting device can be determined from the candidate shooting devices based on the target shooting area corresponding to the candidate shooting devices. The determined target shooting device can accurately capture the target image set corresponding to the abnormal environment information, thereby improving the accuracy of abnormality detection.

[0086] In one embodiment, determining a target detection area corresponding to a target detection device according to first spatial position information includes: acquiring a detection range of the target detection device; determining an initial detection area corresponding to the target detection device according to the first spatial position information and the detection range; acquiring a detection blocking object corresponding to the area where the target detection device is located; and filtering out a detection blocking area corresponding to the detection blocking object from the initial detection area to obtain a target detection area corresponding to the target detection device.

[0087] Among them, the detection blocking object includes an object that will block the detection of the target detection device. Taking the target space area as a building as an example, the detection blocking object can be a wall, such as: a roof, a ground, a screen or a side wall.

[0088] The detection blocking object will block the detection of the target detection device, and the blocked area is called the detection blocking area. For example, if the detection blocking object is the ceiling of the floor where the target detection device is located, when determining the target detection area, the initial detection area can be obtained according to the first spatial position information and the detection range of the target detection device, and the area above the ceiling is filtered out from the initial detection area, and the remaining area is used as the target detection area corresponding to the target detection device.

[0089] In one embodiment, Figure 4 As shown, the target detection device is a smoke detector 404, which is installed on the roof of the second floor of a certain building. The process of determining the target detection area may be as follows: determining the installation height of the smoke detector 404 on the second floor and the detection range to determine the initial detection area corresponding to the smoke detector, determining the area outside the roof of the second floor and each wall as the detection blocking area, filtering out the detection blocking area from the initial detection area, and obtaining the target detection area corresponding to the smoke detector.

[0090] In the above embodiment, the blocked detection area is filtered out from the initial detection area to obtain the target detection area, so that the obtained target detection area fully considers the actual structure of the target space area, and then the target detection device can be determined from the target detection device based on the target detection area corresponding to the target detection device. The determined target detection device can accurately detect the target image set corresponding to the abnormal environmental information, thereby improving the accuracy of abnormality detection.

[0091] In one embodiment, the server can determine the target shooting device in real time after receiving the abnormal event alarm information, that is, perform a dynamic analysis of the spatial position information based on the three-dimensional spatial model of the target spatial area, and then determine the target shooting device that has a spatial position association relationship with the target detection device; the server can also directly determine the target shooting device based on the device linkage group of the pre-equipment. In addition, the server can also perform a dynamic analysis of the spatial position information based on the three-dimensional spatial model of the target spatial area while directly determining the target shooting device based on the device linkage group of the pre-equipment, and then determine the target shooting device that has a spatial position association relationship with the target detection device.

[0092] The device linkage group includes at least one detection device and at least one shooting device set as a group, and the server can perform association control on the detection device and the shooting device in the device linkage group. The device linkage group can be pre-set by the server.

[0093] In one embodiment, determining a target shooting device that has a spatial position association relationship with a target detection device includes: determining a device linkage group in which the target detection device is located; obtaining the device linkage group by combining the spatial position between the detection device and the shooting device; and using at least one shooting device in the device linkage group as a target shooting device that has a spatial position association relationship with the target detection device.

[0094] In one embodiment, the process of determining a device linkage group includes: obtaining device association configuration information corresponding to the target space area; the device association configuration information is information for associating and configuring the detection device and the shooting device installed in the target space area; and setting the corresponding detection device and the shooting device as a device linkage group according to the device association configuration information.

[0095] Figure 5 FIG. 1 is a schematic diagram of the interaction between a device linkage group and a server in an embodiment. Figure 5 As shown, the smoke detector, camera A and camera B are a device linkage group. When the server receives the abnormal event alarm information sent by the smoke detector, it can directly use camera A and camera B in the device linkage group as target shooting devices, and then obtain the target image set shot by camera A and camera B, and perform abnormal event detection based on the target image set.

[0096] In the above embodiment, the associated control of the detection device and the shooting device can be realized by setting the device linkage group. When receiving the abnormal event alarm information sent by the target detection device, the server can quickly determine the target shooting device that has a spatial position associated relationship with the target detection device based on the device linkage group, which can effectively improve the efficiency of abnormal detection.

[0097] In one embodiment, the server is implemented through a management platform. The management platform determines the device linkage group by pre-binding associated devices and dynamically monitoring associations. The following describes these two methods in detail:

[0098] 1. Pre-binding associated devices: Before executing the anomaly detection method, the management platform directly associates the temperature detectors, smoke detectors, and cameras within the same digital space according to the operation of the management personnel. For example, the temperature detectors, smoke detectors, and cameras on the same floor are directly associated. The pre-binding associated devices can be directly set to: when receiving the alarm information of certain detectors, the designated camera obtains the video of the target detection area. In this way, the time consumed by the camera determination process can be ignored, which can improve the speed of anomaly detection.

[0099] In one embodiment, it is assumed that the temperature detector a, the smoke detector b and the camera c together constitute a fire warning monitoring equipment linkage group. When the temperature detector a or the smoke detector b detects abnormal temperature or smoke concentration in the building environment, the warning information is reported to the management platform. After receiving the warning information, the management platform sends a command to the camera c, requiring the camera c to monitor the area where the warning information is issued. The management platform performs intelligent analysis based on the monitoring video of the camera c, identifies the smoke and flames in the monitoring area, and confirms whether the warning information is correct.

[0100] 2. Dynamic monitoring of associated equipment: When receiving abnormal event alarm information, the management platform determines the projection surface of the camera on the ground according to the installation angle and visual range of the camera. In the monitoring area within the digital space, the digital space coordinates of the temperature detector and the smoke detector are further dynamically calculated to obtain the camera in the same digital space as the detector that sent the abnormal event alarm information.

[0101] In one embodiment, when the temperature detector a or smoke detector b detects abnormal temperature or smoke concentration in the building environment and reports the warning information to the management platform, the management platform dynamically calculates all cameras whose sight range can cover the monitoring range of the temperature detector a or smoke detector b according to the spatial position of the device, and sends commands to these cameras, requiring them to sense the area where the warning occurs. The management platform performs intelligent analysis based on the detection videos of these cameras, identifies the smoke and flames in the monitoring area, and confirms whether the warning information is correct.

[0102] In one embodiment, a target image set is a plurality of target images arranged in chronological order; abnormal event detection is performed on the target image set to obtain abnormal event detection results, including: extracting image features corresponding to abnormal events from each target image in the target image set; comparing the image features corresponding to the target image with the image features corresponding to the forward image, and obtaining dynamic event features based on the comparison results; the forward image is an image in the target image set that is sorted before the target image in time; abnormal event detection is performed based on the dynamic event features to obtain abnormal event detection results.

[0103] Among them, the abnormal event can be a characteristic event corresponding to a fire scene, which can be at least one of thick smoke, high temperature or a large fire.

[0104] Image features may be features related to the color or number of pixels in an image. In one embodiment, taking the event object as a fire, the image features may include at least one of spectral features, regional structural features, or collective features. Spectral features include at least one of color features, brightness features, or spectral features. Regional structural features include at least one of texture features or center of gravity height features. Geometric features may include at least one of aspect ratio, circularity, rectangularity, or flame angle. In one embodiment, taking the event object as smoke, the image features may include at least one of color analysis features, color features, texture features, morphology features, or transparency features.

[0105] In one embodiment, static event features and dynamic event features can be obtained according to the image features corresponding to each target image. The static event features are static features related to the event object, and may include at least one of color features, brightness features, spectrum features, texture features, morphological features, geometric features, or transparency features. The dynamic event features are dynamic features related to the event object, and may be event features obtained by comparing static event features corresponding to multiple frames of target images. Taking the event object as flame as an example, the dynamic event features may include event features corresponding to overall motion and random motion. The event features corresponding to overall motion may include at least one of size change features, moving speed features, or moving similarity features, and the event features corresponding to random motion may include at least one of stroboscopic features or morphological change features. Taking the event object as smoke as an example, the dynamic event features may include at least one of contour change features, visibility change features, motion direction features, or flashing features.

[0106] The forward image may be a single-frame image corresponding to the previous time sequence of the target image, or may be a continuous multi-frame image corresponding to the previous multiple time sequences, or may be a multi-frame image spaced apart from each other corresponding to the previous multiple time sequences.

[0107] In one embodiment, the image features corresponding to the target image can also be compared with the image features corresponding to the backward image, and the dynamic event features can be obtained according to the comparison results; the backward image is an image in the target image set that is time-sequenced after the target image; abnormal event detection is performed based on the dynamic event features to obtain abnormal event detection results. The backward image can be a single-frame image corresponding to a time sequence after the target image, or a continuous multi-frame image corresponding to multiple time sequences after the target image, or a multi-frame image spaced apart from each other corresponding to multiple time sequences after the target image.

[0108] In one embodiment, the image features corresponding to the target image are compared with the image features corresponding to the forward image, and dynamic event features are obtained based on the comparison results, including: determining at least one of the position change features, size change features, visibility change features or stroboscopic features of the event object as the dynamic event features based on the comparison results of the image features corresponding to the target image and the image features corresponding to the forward image.

[0109] In one embodiment, abnormal event detection is performed based on dynamic event features to obtain abnormal event detection results, including: abnormal event classification is performed based on the dynamic event features, and abnormal event detection results are obtained according to the abnormal event classification results.

[0110] In one embodiment, the dynamic event features can be converted into feature vectors, the feature vectors can be input into an abnormal event detection model, and the abnormal event detection results can be obtained according to the output of the abnormal event detection model. The abnormal event detection model can be a pre-trained machine learning model, which can classify the probability of events obtained based on the feature vectors into abnormal events and normal events. If the probability corresponding to the abnormal event is greater than the probability corresponding to the normal event, the abnormal event detection result can be determined as the existence of abnormal environmental information.

[0111] In one embodiment, different abnormal event detection models may correspond to different event objects. Taking flame and smoke as an example, the event objects may correspond to flame and smoke recognition models respectively. Specifically, the flame recognition model may determine whether the input feature vector is flame by classification, and the smoke recognition model may determine whether the input feature vector is smoke by classification, thereby obtaining abnormal event detection results.

[0112] In the above embodiment, feature extraction is performed on the target image set, and accurate abnormal event detection can be performed based on the extracted image features, thereby obtaining accurate abnormal event detection results. In the fire warning scenario, for the fire warning system based on temperature detectors and smoke detectors in the building, the abnormality detection method provided by the embodiment of the present application can effectively improve the accuracy of fire warnings and avoid human costs, fire cost consumption and property losses caused by false alarms. In addition, since the embodiment of the present application is based on intelligent analysis by shooting equipment, the camera in the building can be directly used, so there is no need to update the original fire-fighting equipment in the building, and the accuracy of fire warnings can be guaranteed without increasing the cost of use.

[0113] In one embodiment, the abnormal event alarm information may carry abnormal environment intensity information. The abnormal environment intensity information is information that characterizes the intensity of the abnormal environment information, for example, it may include at least one of smoke concentration, temperature, or light intensity. The server may perform abnormal event detection in combination with the abnormal environment intensity information.

[0114] In one embodiment, the abnormal environment intensity information may correspond to different intensity levels. The server may trigger the machine learning model corresponding to the intensity level in a targeted manner according to the intensity level, and then obtain the corresponding abnormal event detection result. Assuming that a smoke recognition model based on thick smoke and light smoke is pre-trained, when the abnormal event is a smoke event and the corresponding intensity level is thick smoke, the smoke recognition model based on thick smoke is triggered, and then the output result of the smoke recognition model based on thick smoke is used to determine whether a fire has occurred or whether the thick smoke will turn into a large fire.

[0115] In one embodiment, the image features include the object position corresponding to the event object, and the dynamic event features include the speed features corresponding to the event object; the image features corresponding to the target image are compared with the image features corresponding to the forward image, and the dynamic event features are obtained according to the comparison results, including: comparing the object position corresponding to the target image with the object position corresponding to the forward image to obtain the object movement distance; obtaining the shooting time interval between the target image and the forward image; and obtaining the speed features corresponding to the event object according to the object movement distance and the shooting time interval.

[0116] The ratio of the object's moving distance to the shooting time interval may be used as the speed feature corresponding to the event object.

[0117] In one embodiment, speed characteristics corresponding to an event object are obtained according to the object moving distance and the shooting time interval, including: obtaining the horizontal moving speed and the vertical moving speed corresponding to the event object according to the object moving distance and the shooting time interval, obtaining the overall moving speed of the target object according to the horizontal moving speed and the vertical moving speed, and obtaining the speed characteristics corresponding to the event object according to the overall moving speed.

[0118] In the above embodiment, the speed feature of the event object is determined based on the comparison result of the object position of the target image and the forward image, so that the moving speed of the event object can be accurately determined, and then whether there is an abnormal event such as flame or smoke.

[0119] In one embodiment, the image features include the object size corresponding to the event object, and the dynamic event features include the flickering features corresponding to the event object; the image features corresponding to the target image are compared with the image features corresponding to the front image, and the dynamic event features are obtained according to the comparison results, including: comparing the object size corresponding to the target image with the object size corresponding to the front image to obtain the object size change value; obtaining the shooting time interval between the target image and the front image; and obtaining the flickering features corresponding to the event object according to the object size change value and the shooting time interval.

[0120] When the target image is a two-dimensional image, the object size may be the area of ​​the region formed by the pixel points corresponding to the event object; when the target image is a three-dimensional image, the object size may be the volume of the region formed by the voxel points corresponding to the event object.

[0121] Due to unstable airflow velocity and other reasons, the flame may flicker, for example, the size may become smaller or larger, the direction may go left or right, etc. Therefore, the flickering characteristics of the event object can be determined, and then the presence of abnormal event objects such as smoke and flames can be determined based on the flickering characteristics.

[0122] The object size change value may include the size change of the event object at different shooting times, and thus the flickering feature of the event object may be obtained.

[0123] In one embodiment, the object size change rate of the object size corresponding to the target image and the object size corresponding to the forward image can be determined, and when the object size change rate is greater than a preset change rate threshold, it is determined that a flicker occurs. Then, the flicker feature is obtained based on the ratio of the number of flicker occurrences to the shooting time interval.

[0124] In the above embodiment, the object size change value of the event object is determined based on the comparison result of the object size of the target image and the forward image, which can accurately determine the flickering characteristics of the event object and further determine whether there are abnormal events such as flames and smoke.

[0125] In one embodiment, taking flame as an example, the abnormal event detection is performed on the target image set, and the implementation process of obtaining the abnormal event detection result can be: flame recognition is performed on the target image set, and then the recognition result of whether there is flame in the target detection area is obtained. A multi-level recognition mode can be adopted, including four stages: image acquisition, image preprocessing, image feature extraction, and image classification and recognition. The following is a detailed description:

[0126] 1. Image acquisition

[0127] The camera collects digital images to obtain a target image set.

[0128] 2. Preprocessing stage

[0129] By using the significant features of flames, the ROI (Region of Interest) of each target image in the target image set that is suspected to be flames is segmented to obtain candidate flame regions, thereby reducing the amount of calculation in the feature extraction stage and further reducing the detection time.

[0130] 3. Feature extraction stage

[0131] Extract the static and dynamic features of the candidate flame area, or the features in time and space dimensions. In the early stage of a fire, smoke gradually transforms into small flames, which continue to spread and grow. This change process is clearly represented in the video image sequence. At the same time, due to the influence of different burning materials and changes in the external environment, the shape, position, color, temperature, area and other characteristics of the flame will change accordingly. Flame recognition can be achieved based on the image color, shape, texture structure, dynamic changes in the area, and the shape of the flame as visible features of the flame in the video.

[0132] The following uses the overall flame movement speed characteristics, the overall flame area change characteristics and the flame flicker frequency characteristics as examples to illustrate the implementation process of dynamic feature extraction:

[0133] 1. Overall moving speed characteristics: According to the characteristic that the brightness of the center of the flame is higher than that of other parts, the center position of the flame in each frame of the target image can be determined, thereby obtaining the center of the flame in each frame of the target image. The relative moving speed of the flame center in the vertical and horizontal directions can be obtained by calculation, and the overall moving speed of the flame can be determined based on the relative moving speed of the flame center in the vertical and horizontal directions.

[0134] 2. Overall area change characteristics: The area of ​​the flame during the combustion process can be measured by the number of highlighted pixels in the image. By comparing the difference in the flame area of ​​two adjacent target frames, the relative change rate of the flame area can be obtained.

[0135] 3. Flickering frequency characteristics: Based on the characteristic that the flame area cannot be completely unchanged, the flickering frequency of the flame can be obtained by the change in the number of pixels of the flame area in each frame of the image.

[0136] 4. Classification and Identification Stage

[0137] Use a multi-feature fusion algorithm or perform flame classification and recognition. For classification and recognition, a support vector machine classifier can be used to recognize flames.

[0138] In one embodiment, it can be determined that flames have appeared and the fire is large when the dynamic characteristics of the event object meet at least one of the following conditions: the overall moving speed characteristic is greater than the speed threshold, the overall area change characteristic is that the area becomes larger and the area change amount is greater than the area change amount threshold, and the flickering frequency characteristic is greater than the flickering frequency threshold.

[0139] In the above embodiment, abnormal event detection of event objects such as flames or smoke is implemented based on a multi-level recognition mode, and its implementation process can obtain accurate abnormal event detection results based on a feature classification algorithm.

[0140] In one embodiment, after abnormal event detection is performed on a target image set and the abnormal event detection result is obtained, it also includes: when it is determined based on the abnormal event detection result that the event object corresponding to the abnormal environment information does not exist, determining that a false alarm exists in the target detection device; determining the false alarm frequency of the target detection device; when the false alarm frequency is greater than a frequency threshold, generating correction prompt information for alarm correction of the target detection device, and sending the correction prompt information to a correction terminal for prompting.

[0141] The frequency threshold may be determined according to actual conditions, for example, twice a week.

[0142] In one embodiment, if the target detection device issues an alarm through an alarm when abnormal environmental information is detected, then when it is determined that the target detection device has a false alarm, the server can control the alarm to stop the alarm.

[0143] In one embodiment, the correction prompt information may include at least one of a prompt text or an abnormal event image, etc. The correction terminal may display the correction prompt information in the interface so that the management personnel using the correction terminal can be informed of the abnormal event in time and handle the abnormal event.

[0144] When the abnormal event detection result is that there is no flame or smoke, it is determined that a false alarm occurs. If the alarm frequency is greater than the frequency threshold, the target area where the target detection device is located can be determined, and then a correction prompt message is generated. The generated correction prompt message can be: a false alarm occurs in the smoke detector in the target area. When the correction prompt message is that the smoke detector on the second floor frequently gives false alarms, the correction prompt message displayed in the interface of the correction terminal can be as follows: Figure 6 shown.

[0145] In one embodiment, when it is determined based on the abnormal event detection result that the event object corresponding to the abnormal environment information exists, the target detection device is judged to be a correct alarm, an abnormal event processing instruction is generated, and the abnormal event processing instruction is sent to the abnormal event processing terminal to control the abnormal event processing terminal to process the abnormal event. The abnormal event processing terminal can be a terminal device such as a fire hydrant or a fire extinguisher. Abnormal event prompt information can also be sent to the mobile terminal used by maintenance personnel or management personnel to prompt the management personnel to process the abnormal event.

[0146] In one embodiment, when there are multiple target shooting devices, the abnormal event detection results can be obtained based on the target image sets of each target shooting device, and then the correction prompt information can be obtained in combination with these abnormal event detection results. For example: AI recognition analysis can be performed based on the videos shot by each camera to obtain the probability value of the video scene being a fire scene, and the abnormal intensity value can be obtained based on the probability value corresponding to each camera. If the probability value is high, the abnormal intensity value is high, and if the probability value is low, the abnormal intensity value is low. The correction terminal can distinguish and display the abnormal intensity value of each camera in the interface to indicate the severity of the fire in the shooting area at different angles to the management personnel, and then the management personnel can be prompted to give priority to extinguishing the areas with high abnormal intensity.

[0147] In one embodiment, when the abnormal event detection result is flame, it is determined that a large fire has occurred. At this time, the area where the flame is located can be determined, and then abnormal event prompt information is generated. The generated abnormal event prompt information may be that a large fire has occurred in room 201. The abnormal event prompt information displayed in the interface of the mobile terminal can be as follows: Figure 7 shown.

[0148] In one embodiment, the target shooting device may be a plurality of cameras installed in a plurality of rooms. The fire intensity in each room is determined based on the video captured by each camera, and then abnormal event prompt information is generated. The abnormal event prompt information displayed in the interface of the mobile terminal may be as follows: Figure 8 shown. Figure 8 The severity of the fire in each room is shown in the figure. At this time, the management staff can know that the fire in room 202 is the most serious, and can give priority to extinguishing the fire in room 202.

[0149] In one embodiment, the cause of the false alarm can be analyzed based on the abnormal event detection results, and processing guidance information can be sent to the mobile terminal used by management personnel, etc. based on the cause of the false alarm to guide the management personnel, etc. to perform maintenance or replacement, thereby reducing the operation and maintenance costs of the fire protection system, improving the operation and maintenance efficiency, and effectively improving the fire warning capabilities of buildings, etc.

[0150] In the above embodiment, the target detection device is corrected for false alarms based on the abnormal event detection result, so that the target detection device has higher accuracy.

[0151] In one embodiment, the target detection device may encrypt the abnormal event alarm information and then send the abnormal event alarm information to the server. The encryption may be performed using an encryption link of the national encryption SM2 / SM4 algorithm.

[0152] In one embodiment, the transmission data can be encrypted based on the IPSec (Internet Protocol Security, a protocol package that protects the network transmission protocol family of the IP protocol by encrypting and authenticating the IP protocol packets) security protocol. The IPSec security protocol is a group of secure communication protocols based on the network layer and applying cryptography, which can provide flexible security services for network layer traffic in the IPV4 (Internet Protocol version 4) and IPV6 (Internet Protocol version 6) environments.

[0153] In one embodiment, for detection devices including smoke detectors and temperature detectors, the operating status of the detection devices can be encrypted and sent to the server. The camera device can also encrypt real-time video data or pictures and send them to the server.

[0154] Fig. 9 FIG. 1 is a schematic diagram of an encrypted process in one embodiment. Fig. 9As shown, taking the encryption of abnormal event alarm information as an example, the implementation process can be: the abnormal event alarm information is processed by AES (Advanced Encryption Standard, Rijndael encryption method) algorithm, etc., to generate plain text, which can be 128 bits. Obtain a key, which can be 128 bits, perform key expansion on the key, and perform multiple iterative control on the plain text according to the basic round function through the key obtained by key expansion, and obtain the ciphertext after the iterative control ends. The target detection device can send the encrypted ciphertext to the server. The number of iterative control can be determined according to the actual situation, for example, 10 times, 20 times, etc. Taking the number of iterative control as 10 times as an example, the plain text is iteratively calculated 10 times, and the ciphertext obtained by each calculation will continue to be encrypted through the basic round function. Among them, the key expansion includes that the key of each round in encryption and decryption is obtained by the seed key through the key expansion algorithm.

[0155] In one embodiment, the basic round function mainly refers to processing the plaintext in multiple rounds according to at least one of byte replacement, row shift or column confusion. Among them, the main function of byte replacement is to complete the mapping of one byte to another byte through the S box. Row shift is a permutation between bytes inside a 4*4 matrix, which is used to provide the diffusion of the algorithm. Column confusion uses a substitution of arithmetic properties on the GF(28) field, which is also used to provide the diffusion of the algorithm.

[0156] In the above embodiment, encryption processing is performed on the data to be transmitted, which can ensure the security and reliability of the data, and further ensure the accuracy of anomaly detection.

[0157] In one embodiment, Fig.10 As shown, an anomaly detection method is provided, which is applied to Figure 1 The server in the example is used to illustrate the following steps:

[0158] S1002, receiving abnormal event alarm information sent by the target detection device, where the abnormal event alarm information is triggered when the target detection device detects abnormal environment information.

[0159] S1004, determining the device linkage group in which the target detection device is located, and taking at least one shooting device in the device linkage group as a target shooting device that has a spatial position association relationship with the target detection device.

[0160] S1006, determine the first spatial position information of the target detection device in the three-dimensional space model corresponding to the target space area; obtain the detection range of the target detection device; determine the initial detection area corresponding to the target detection device according to the first spatial position information and the detection range.

[0161] S1008, filtering out the detection blocking area corresponding to the detection blocking object from the initial detection area, and obtaining the target detection area corresponding to the target detection device.

[0162] S1010, obtaining a device search extension range; determining a photographing device search area according to the device search extension range and a target detection area, and determining photographing devices in the photographing device search area as candidate photographing devices.

[0163] S1012, determining second spatial position information of the candidate shooting device in the three-dimensional space model; obtaining a shooting range of the candidate shooting device; and determining an initial shooting area corresponding to the candidate shooting device according to the second spatial position information and the shooting range.

[0164] S1014: Filter out the photographing blocking area corresponding to the photographing blocking object from the initial photographing area to obtain the target photographing area corresponding to the candidate photographing device.

[0165] S1016: Determine a candidate photographing device whose target photographing area overlaps with the target detection area as a target photographing device.

[0166] S1018, obtaining a target image set corresponding to the abnormal environment information captured by the target shooting device; the target image set is a plurality of target images arranged in chronological order.

[0167] S1020, extracting the object position of the event object from each target image in the target image set; comparing the object position corresponding to the target image with the object position corresponding to the forward image, and obtaining the speed feature corresponding to the event object as the dynamic event feature.

[0168] S1022, extracting the object size of the event object from each target image in the target image set; comparing the object size corresponding to the target image with the object size corresponding to the forward image, and obtaining the flickering feature corresponding to the event object as a dynamic event feature.

[0169] S1024, performing abnormal event detection based on the dynamic event features to obtain abnormal event detection results.

[0170] S1026, when it is determined based on the abnormal event detection result that the target detection device has a false alarm and the false alarm frequency of the target detection device is greater than the frequency threshold, a correction prompt information for alarm correction of the target detection device is generated, and the correction prompt information is sent to the correction terminal for prompting.

[0171] In the above-mentioned anomaly detection method, there is a spatial position correlation relationship between the target shooting device and the target detection device, and abnormal event detection is performed based on the target image set captured by the target shooting device. The obtained abnormal event detection result can correct the abnormal event alarm information of the target detection device, thereby effectively improving the accuracy of anomaly detection.

[0172] The present application also provides an application scenario, which applies the above-mentioned anomaly detection method. Specifically, the application of the anomaly detection method in the application scenario is as follows:

[0173] The management platform of a building manages all fire detection equipment in the building, including cameras, temperature detectors, and smoke detectors. Cameras can be associated with temperature detectors or smoke detectors through association configuration to provide more accurate fire warnings.

[0174] Fig.11 FIG. 1 is a flow chart of an abnormality detection method in one embodiment. Fig.11 As shown, the smoke detector and the camera are set as a device linkage group based on the digital space model, and the temperature detector and the camera are set as a device linkage group based on the digital space model. When the management platform receives the smoke alarm information sent by the smoke detector, it calls the video shot by the camera in the same device linkage group, performs smoke AI recognition based on the video, and continues to issue a fire alarm if it is determined to be smoke. When the management platform receives the flame alarm information sent by the temperature detector, it calls the video shot by the camera in the same device linkage group, performs flame AI recognition based on the video, and continues to issue a fire alarm if it is determined to be flame. If the management platform determines that there is no smoke or flame based on the results of smoke AI recognition and flame AI recognition, it is determined that no fire has occurred, and the smoke detector and the temperature detector are controlled to stop issuing a fire alarm. Combining the detection capabilities of the detector and the camera, the capabilities of the two are organically combined in the early warning and investigation of fire hazards, improving the fire warning capability and early warning accuracy of the building, and realizing the early warning notification of fire hazards more accurately and conveniently.

[0175] The present application also provides an application scenario, which applies the above-mentioned anomaly detection method. Specifically, taking the management platform applied to the cloud as an example, the application of the anomaly detection method in the application scenario is as follows:

[0176] The management platform establishes a data space model for the monitored buildings. All temperature detectors, smoke detectors and cameras connected to the management platform have unique digital space coordinates. The digital space model supports determining the spatial position of fire detection equipment within the digital space model through the spatial coordinate information of the fire detection equipment.

[0177] like Fig.12 As shown in the figure, the implementation process of the anomaly detection method is as follows:

[0178] S1202, the smoke detector reports the smoke alarm information to the management platform. The smoke detector generates smoke alarm information when detecting smoke, encrypts the transmission data based on the IPSec security protocol and adopts the national encryption algorithm, and sends the encrypted smoke alarm information to the management platform.

[0179] S1204, the temperature detector reports the temperature alarm information to the management platform. The temperature detector generates temperature alarm information when detecting high temperature, encrypts the transmission data based on the IPSec security protocol and uses the national encryption algorithm, and sends the encrypted temperature alarm information to the management platform.

[0180] S1206, in response to the alarm information, the management platform determines the target camera that has a spatial association relationship with the detector. The specific determination process is as follows:

[0181] S1206a, determine whether it is a dynamic association. If it is a dynamic association, execute S1206b, and if it is not a dynamic association, execute S1206c.

[0182] S1206b, dynamically determine the target camera that has a spatial association relationship with the detector. The specific implementation process is as follows:

[0183] S1206b2, determine the device detection range. Determine the device detection range according to the floor to which the device belongs, the device coordinate information, and the device detection range radius.

[0184] S1206b4, determine candidate cameras. According to the camera coordinates, search for cameras within the device detection range, obtain cameras within a 5-meter radius buffer range outside the device detection range, and use the cameras within these two ranges as candidate cameras.

[0185] S1206b6, determine the target camera from the candidate cameras. According to the parameters such as the installation position, installation height, installation angle, viewing angle range, camera focal length, etc. of the candidate cameras, the monitoring range of the candidate cameras is calculated in combination with the coordinates of the candidate cameras in the digital space model, and the intersection is determined between the candidate cameras and the monitoring range of the detector. The candidate cameras with intersecting ranges are obtained, which are the target cameras with which the detector has a spatial position association relationship.

[0186] S1206c, determining a target camera that has a spatial association relationship with the detector based on a predetermined device linkage group.

[0187] S1208, controlling the target camera to upload the video.

[0188] S1210, performing AI analysis on the video of the target camera.

[0189] S1212, determine whether the AI ​​analysis result is smoke or flame. If it is smoke or flame, the warning information is determined to be correct, and S1214 is executed. If it is neither smoke nor flame, the warning information is determined to be incorrect, and S1216 is executed.

[0190] S1214, sending abnormal event prompt information to the mobile terminal.

[0191] S1216, sending correction prompt information to the correction terminal and collecting the causes of false alarms.

[0192] S1218, compress the uploaded video and save it offline. The video can be stored in a specific storage space. The storage space can also store AI analysis result data. The data stored in the storage space can be used for AI analysis and offline deep learning calculation. The accuracy of the analysis of the warning data can be continuously improved through offline deep learning, and the causes of the false alarms can be summarized, and reasonable fire safety management specifications and suggestions can be output to the building managers. In some embodiments, deep learning can also be performed online.

[0193] S1220, adjusting the AI ​​analysis model based on the cause of the false alarm and the saved video. For example, when the cause of the false alarm is a smoker smoking, the image features of the corresponding smoke morphology can be input into the smoke recognition model to adjust the parameters in the smoke recognition model so that the adjusted smoke recognition model can accurately classify it as smoking smoke rather than fire smoke when similar image features are obtained, so as to improve the accuracy of the smoke recognition model.

[0194] The abnormality monitoring method provided in the above embodiment has at least the following beneficial effects:

[0195] 1) For fire warning systems based on detectors and cameras in buildings, intelligent monitoring based on spatial location and AI analysis can effectively improve the accuracy of fire warnings and avoid labor costs, fire cost consumption and property losses caused by false alarms;

[0196] 2) Since this solution is based on intelligent analysis by cameras, there is no need to update the existing fire-fighting equipment in the building, which will not increase the cost of use;

[0197] 3) In this scheme, some possible reasons for false alarms are obtained through offline calculation, which can be output to the building manager, who can strengthen management in corresponding aspects; some devices with high false alarm frequencies can also be obtained through calculation, based on which it can be determined whether these devices need maintenance or replacement, thereby reducing the operation and maintenance cost of the fire protection system, improving the operation and maintenance efficiency, and being able to more effectively enhance the fire warning capability of the building.

[0198] The present application also provides an application scenario, which applies the above-mentioned anomaly detection method. Specifically, the application of the anomaly detection method in this application scenario is as follows:

[0199] The smoke detector on the second floor will sound an alarm when it detects smoke and determines that the smoke concentration has reached the alarm concentration, and report the smoke alarm information to the management platform.

[0200] The management platform determines a target camera that has a spatial correlation with the smoke detector. Fig.13 FIG. 1 is a schematic diagram of the position of the device in one embodiment. Fig.13 As shown, there are cameras 1302 and 1304 in the building. The management platform determines the camera 1302 located on the second floor as a target camera having a spatial association relationship with the smoke detector according to the installation location of the camera.

[0201] The management platform controls the target camera to upload the real-time video corresponding to the current time period.

[0202] The management platform uses the pre-trained smoke recognition model and flame recognition model to perform AI analysis on the real-time video of the target camera. If the AI ​​analysis results determine that it is smoking smoke and smoking flames, the warning information is determined to be incorrect. The smoke detector is controlled to stop the alarm. The management platform collects the causes of false alarms of the smoke detector and outputs them to the AI ​​analysis model for learning to improve the accuracy of the AI ​​analysis model. At the same time, the management platform can calibrate the smoke detector.

[0203] In the above embodiment, the combination of smoke detectors and AI video recognition can accurately identify smoke and flames, and at the same time correct alarms for non-fire situations such as smoking, effectively improving the accuracy of fire warnings.

[0204] The present application also provides an application scenario, which applies the above-mentioned anomaly detection method. Specifically, the application of the anomaly detection method in this application scenario is as follows:

[0205] A community includes building 1, building 2 and building 3. At least one of smoke detectors, temperature detectors or cameras is installed in certain rooms on certain floors of these buildings.

[0206] When a smoke detector located on the second floor of Building 2 detects smoke and determines that the smoke concentration has reached the alarm concentration, it will sound an alarm and report the smoke alarm information to the management platform.

[0207] The management platform determines the target camera that has a spatial association with the smoke detector: Based on the installation locations of the cameras in the entire community, the management platform determines the camera on the second floor of Building 2 as the target camera that has a spatial association with the smoke detector, and also determines the cameras in Building 1 and Building 3 that can capture the second floor of Building 2 as target cameras that have a spatial association with the smoke detector.

[0208] The management platform controls each target camera to upload the real-time video corresponding to the current time period.

[0209] The management platform uses the pre-trained smoke and flame recognition models to perform AI analysis on the real-time videos of each target camera. Assuming that the AI ​​analysis results of the real-time videos of more than half of the target cameras are fire smoke, it is determined that the warning information is correct and a fire has indeed occurred. The other detectors in Building 2 are controlled to alarm, and the detectors on each floor of Buildings 1 and 3 are controlled to alarm. A fire alarm is sent to the mobile terminal used by the management personnel to remind the management personnel to extinguish the fire.

[0210] In the above embodiments, the combination of smoke detectors and AI video recognition can accurately identify smoke and flames, while achieving unified management of large areas such as communities, effectively improving the accuracy of fire warnings and ensuring the safety of personnel.

[0211] It should be understood that, although the various steps in the above flowchart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the above flowchart may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0212] Based on the same idea as the anomaly detection method in the above embodiment, the present application also provides an anomaly detection device, which can be used to perform the above anomaly detection method. For ease of explanation, the structural schematic diagram of the anomaly detection device embodiment only shows the parts related to the embodiment of the present application. Those skilled in the art can understand that the illustrated structure does not constitute a limitation on the device, and may include more or fewer components than shown in the diagram, or combine certain components, or arrange the components differently.

[0213] In one embodiment, Fig.14 As shown, an abnormality detection device 1400 is provided. The device can adopt a software module or a hardware module, or a combination of the two to become a part of a computer device. The device specifically includes: an alarm information receiving module 1402, a shooting device determination module 1404, an image set acquisition module 1406 and an abnormal event detection module 1408, wherein:

[0214] The alarm information receiving module 1402 is used to receive abnormal event alarm information sent by the target detection device, and the abnormal event alarm information is triggered when the target detection device detects abnormal environmental information.

[0215] The shooting device determination module 1404 is used to determine, in response to the abnormal event alarm information, a target shooting device that has a spatial position association relationship with the target detection device, and the target shooting area corresponding to the target shooting device includes the target detection area corresponding to the target detection device.

[0216] The image set acquisition module 1406 is used to acquire a target image set corresponding to the abnormal environment information captured by the target shooting device.

[0217] The abnormal event detection module 1408 is used to perform abnormal event detection on the target image set to obtain abnormal event detection results.

[0218] In the above-mentioned abnormality detection device, a target shooting device that has a spatial position association relationship with the target detection device is determined under the triggering of the target detection device. The target shooting device can capture a target image set related to the abnormal environmental information detected by the target detection device, and further perform abnormal event detection based on the target image set. The obtained abnormal event detection result combines the abnormal event alarm information of the target detection device and the image analysis result, which can effectively improve the accuracy of abnormality detection.

[0219] In one embodiment, a shooting device determination module includes: a spatial model determination submodule, which is used to determine the three-dimensional spatial model corresponding to the target spatial area where the target detection device is located; a detection area determination submodule, which is used to determine the first spatial position information of the target detection device in the three-dimensional spatial model, and determine the target detection area corresponding to the target detection device according to the first spatial position information; and a shooting device determination submodule, which is used to obtain a target shooting device that has a spatial position association relationship with the target detection device according to the target detection area.

[0220] In one embodiment, the shooting device determination submodule includes: a search area determination unit, which is used to determine the shooting device search area corresponding to the target space area according to the target detection area; a candidate shooting device determination unit, which is used to determine the shooting devices in the shooting device search area as candidate shooting devices according to the spatial position information of the shooting devices installed in the target space area; a shooting area determination unit, which is used to determine the target shooting area corresponding to the candidate shooting devices; and a target shooting device determination unit, which is used to determine the candidate shooting devices whose target shooting areas have an overlapping relationship with the target detection area as the target shooting devices.

[0221] In one embodiment, the search area determination unit includes: an extended range acquisition subunit, used to acquire the device search extended range; an extended area determination subunit, used to determine the extended area corresponding to the target detection area according to the device search extended range; and a search area determination subunit, used to use the area formed by the target detection area and the extended area as the shooting device search area.

[0222] In one embodiment, the shooting area determination unit includes: a spatial position determination subunit, used to determine the second spatial position information of the candidate shooting device in the three-dimensional space model; a shooting range acquisition subunit, used to acquire the shooting range of the candidate shooting device; an initial shooting area determination subunit, used to determine the initial shooting area corresponding to the candidate shooting device according to the second spatial position information and the shooting range; a shooting blocking object acquisition subunit, used to acquire the shooting blocking object corresponding to the area where the candidate shooting device is located; and a target shooting area determination subunit, used to filter out the shooting blocking area corresponding to the shooting blocking object from the initial shooting area to obtain the target shooting area corresponding to the candidate shooting device.

[0223] In one embodiment, the detection area determination submodule includes: a detection range acquisition unit, used to acquire the detection range of the target detection device; an initial detection area determination unit, used to determine the initial detection area corresponding to the target detection device according to the first spatial position information and the detection range; a detection blocking object acquisition unit, used to acquire the detection blocking object corresponding to the area where the target detection device is located; and a target detection area determination unit, used to filter out the detection blocking area corresponding to the detection blocking object from the initial detection area to obtain the target detection area corresponding to the target detection device.

[0224] In one embodiment, a shooting device determination module includes: a device linkage group determination submodule, used to determine the device linkage group to which the target detection device belongs; the device linkage group is obtained by combining the spatial position between the detection device and the shooting device; and a target shooting device determination submodule, used to use at least one shooting device in the device linkage group as a target shooting device that has a spatial position association relationship with the target detection device.

[0225] In one embodiment, the target image set is a plurality of target images arranged in chronological order; the abnormal event detection module comprises: an image feature extraction submodule, used to extract image features corresponding to abnormal events from each target image in the target image set; an event feature determination submodule, used to compare the image features corresponding to the target image with the image features corresponding to the forward image, and obtain dynamic event features according to the comparison results; the forward image is an image in the target image set that is sorted before the target image in time; and an event detection submodule, used to perform abnormal event detection based on the dynamic event features, and obtain abnormal event detection results.

[0226] In one embodiment, the image feature includes the object position corresponding to the event object, and the dynamic event feature includes the speed feature corresponding to the event object; the event feature determination submodule includes: an object position comparison unit, used to compare the object position corresponding to the target image with the object position corresponding to the forward image to obtain the object movement distance; a first time interval acquisition unit, used to obtain the shooting time interval between the target image and the forward image; a speed feature determination unit, used to obtain the speed feature corresponding to the event object according to the object movement distance and the shooting time interval.

[0227] In one embodiment, the image feature includes the object size corresponding to the event object, and the dynamic event feature includes the flicker feature corresponding to the event object; the event feature determination submodule includes: an object size comparison unit, used to compare the object size corresponding to the target image with the object size corresponding to the forward image to obtain an object size change value; a second time interval acquisition unit, used to obtain the shooting time interval between the target image and the forward image; a flicker feature determination unit, used to obtain the flicker feature corresponding to the event object according to the object size change value and the shooting time interval.

[0228] In one embodiment, the abnormality detection device also includes: a false alarm determination module, which is used to determine that a false alarm exists in the target detection device when it is determined based on the abnormal event detection result that the event object corresponding to the abnormal environment information does not exist; a false alarm frequency determination module, which is used to determine the false alarm frequency of the target detection device; and a correction prompt module, which is used to generate correction prompt information for performing alarm correction on the target detection device when the false alarm frequency is greater than a frequency threshold, and send the correction prompt information to the correction terminal for prompting.

[0229] For the specific definition of the anomaly detection device, please refer to the definition of the anomaly detection method above, which will not be repeated here. Each module in the above-mentioned anomaly detection device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0230] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.15 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store xx data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an abnormality detection method is implemented.

[0231] Those skilled in the art will understand that Fig.15The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0232] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0233] In one embodiment, a computer-readable storage medium is provided, storing a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0234] In one embodiment, a computer program product or computer program is provided, the computer program product or computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in the above-mentioned method embodiments.

[0235] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0236] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0237] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. An anomaly detection method, It is characterized in that The method comprises: Receiving abnormal event alarm information sent by a target detection device, wherein the abnormal event alarm information is triggered when the target detection device detects abnormal environment information; In response to the abnormal event alarm information, the detection blocking objects corresponding to the area where the target detection device is located are filtered out from the initial detection area to obtain the target detection area corresponding to the target detection device, and the target shooting device that has a spatial position association relationship with the target detection device is obtained according to the target detection area, wherein the initial detection area is determined according to the first spatial position information of the target detection device in the three-dimensional space model corresponding to the target space area where the target detection device is located, and the target shooting area corresponding to the target shooting device includes the target detection area corresponding to the target detection device; and a target image set corresponding to the abnormal environment information captured by the target shooting device is obtained; Abnormal event detection is performed on the target image set to obtain an abnormal event detection result.

2. The method according to claim 1, It is characterized in that The method further comprises: Determine a three-dimensional space model corresponding to the target space area where the target detection device is located; Determine first spatial position information of the target detection device in the three-dimensional space model.

3. The method according to claim 2, It is characterized in that The step of acquiring a target shooting device having a spatial position association relationship with the target detection device according to the target detection area includes: Determine a shooting device search area corresponding to the target space area according to the target detection area; According to the spatial position information of the shooting devices installed in the target spatial area, the shooting devices in the shooting device search area are determined as candidate shooting devices; Determine a target shooting area corresponding to the candidate shooting device; A candidate photographing device whose target photographing area overlaps with the target detection area is determined as the target photographing device.

4. The method according to claim 3, It is characterized in that The determining, according to the target detection area, a shooting device search area corresponding to the target space area includes: Get the device search extension range; Determine an extended area corresponding to the target detection area according to the device search extension range; The area formed by the target detection area and the extension area is used as a shooting device search area.

5. The method according to claim 3, It is characterized in that The determining the target shooting area corresponding to the candidate shooting device includes: Determine second spatial position information of the candidate shooting device in the three-dimensional space model; Obtaining a shooting range of the candidate shooting device; Determine an initial shooting area corresponding to the candidate shooting device according to the second spatial position information and the shooting range; Obtaining a shooting blocking object corresponding to the area where the candidate shooting device is located; The shooting blocked area corresponding to the shooting blocked object is filtered out from the initial shooting area to obtain the target shooting area corresponding to the candidate shooting device.

6. The method according to claim 2, It is characterized in that The method further comprises: Obtaining a detection range of the target detection device; Determine an initial detection area corresponding to the target detection device according to the first spatial position information and the detection range; Obtain the detection blocking object corresponding to the area where the target detection device is located.

7. The method according to claim 1, It is characterized in that The method further comprises: Determine the device linkage group where the target detection device is located; the device linkage group is obtained by combining the spatial positions between the detection device and the shooting device; At least one shooting device in the device linkage group is used as a target shooting device that has a spatial position association relationship with the target detection device.

8. The method according to any one of claims 1 to 7, It is characterized in that The target image set is a plurality of target images arranged in chronological order; performing abnormal event detection on the target image set to obtain abnormal event detection results includes: Extracting image features corresponding to abnormal events from each target image in the target image set; Compare the image features corresponding to the target image with the image features corresponding to the forward image, and obtain the dynamic event features according to the comparison result; the forward image is an image in the target image set that is ordered before the target image in time; Abnormal event detection is performed based on the dynamic event characteristics to obtain abnormal event detection results.

9. The method according to claim 8, It is characterized in that The image feature includes an object position corresponding to the event object, and the dynamic event feature includes a speed feature corresponding to the event object; the image feature corresponding to the target image is compared with the image feature corresponding to the forward image, and the dynamic event feature is obtained according to the comparison result, including: Comparing the object position corresponding to the target image with the object position corresponding to the forward image to obtain the object movement distance; Acquire a shooting time interval between the target image and the forward image; The speed feature corresponding to the event object is obtained according to the moving distance of the object and the shooting time interval.

10. The method according to claim 8, It is characterized in that The image feature includes the object size corresponding to the event object, and the dynamic event feature includes the flicker feature corresponding to the event object; the image feature corresponding to the target image is compared with the image feature corresponding to the forward image, and the dynamic event feature is obtained according to the comparison result, including: Comparing the object size corresponding to the target image with the object size corresponding to the forward image to obtain an object size change value; Acquire a shooting time interval between the target image and the forward image; The flickering feature corresponding to the event object is obtained according to the object size change value and the shooting time interval.

11. The method according to any one of claims 1 to 7, It is characterized in that After performing abnormal event detection on the target image set and obtaining abnormal event detection results, the method further includes: When it is determined based on the abnormal event detection result that the event object corresponding to the abnormal environment information does not exist, determining that a false alarm occurs in the target detection device; determining a false alarm frequency of the target detection device; When the false alarm frequency is greater than a frequency threshold, correction prompt information for performing alarm correction on the target detection device is generated, and the correction prompt information is sent to a correction terminal for prompting.

12. An abnormality detection device, It is characterized in that The device comprises: An alarm information receiving module, used to receive abnormal event alarm information sent by a target detection device, wherein the abnormal event alarm information is triggered when the target detection device detects abnormal environment information; A shooting device determination module, comprising a target detection area determination unit, a detection area determination submodule and a shooting device determination submodule, wherein the target detection area determination unit is used to filter out the detection blocking objects corresponding to the area where the target detection device is located from the initial detection area in response to the abnormal event alarm information, and obtain the target detection area corresponding to the target detection device, and the shooting device determination submodule is used to obtain a target shooting device that has a spatial position association relationship with the target detection device according to the target detection area, and the initial detection area is determined by the detection area determination submodule according to the first spatial position information of the target detection device in the three-dimensional space model corresponding to the target space area where the target detection device is located, and the target shooting area corresponding to the target shooting device includes the target detection area corresponding to the target detection device; An image set acquisition module, used to acquire a target image set corresponding to the abnormal environment information captured by the target shooting device; The abnormal event detection module is used to perform abnormal event detection on the target image set to obtain abnormal event detection results.

13. The device according to claim 12, It is characterized in that The shooting device determination module further includes: A space model determination submodule, used to determine a three-dimensional space model corresponding to the target space area where the target detection device is located; The detection area determination submodule is further used to determine the first spatial position information of the target detection device in the three-dimensional space model.

14. The device according to claim 13, It is characterized in that The shooting device determination submodule includes: A search area determination unit, configured to determine a shooting device search area corresponding to the target space area according to the target detection area; a candidate photographing device determining unit, configured to determine photographing devices in the photographing device search area as candidate photographing devices according to spatial position information of photographing devices installed in the target spatial area; A shooting area determination unit, used to determine a target shooting area corresponding to the candidate shooting device; The target shooting device determining unit is used to determine a candidate shooting device whose target shooting area overlaps with the target detection area as the target shooting device.

15. The device according to claim 14, It is characterized in that The search area determination unit includes: An extended range acquisition subunit, used to acquire a device search extended range; An extended area determination subunit, configured to determine an extended area corresponding to the target detection area according to the device search extension range; The search area determination subunit is used to use the area formed by the target detection area and the extension area as a shooting device search area.

16. The device according to claim 14, It is characterized in that The shooting area determination unit includes: a spatial position determination subunit, configured to determine second spatial position information of the candidate shooting device in the three-dimensional space model; A shooting range acquisition subunit, used to acquire the shooting range of the candidate shooting device; an initial shooting area determining subunit, configured to determine an initial shooting area corresponding to the candidate shooting device according to the second spatial position information and the shooting range; A shooting blocking object acquisition subunit is used to acquire the shooting blocking object corresponding to the area where the candidate shooting device is located; The target shooting area determination subunit is used to filter out the shooting blocking area corresponding to the shooting blocking object from the initial shooting area to obtain the target shooting area corresponding to the candidate shooting device.

17. The device according to claim 13, It is characterized in that The detection area determination submodule includes: A detection range acquisition unit, used to acquire the detection range of the target detection device; an initial detection area determining unit, configured to determine an initial detection area corresponding to the target detection device according to the first spatial position information and the detection range; A detection blocking object acquisition unit is used to acquire the detection blocking object corresponding to the area where the target detection device is located. The target detection area determination unit is used to filter out the detection blocking area corresponding to the detection blocking object from the initial detection area to obtain the target detection area corresponding to the target detection device.

18. The device according to claim 12, It is characterized in that The device also includes: A device linkage group determination submodule is used to determine the device linkage group to which the target detection device belongs; the device linkage group is obtained by combining the spatial positions between the detection device and the shooting device; The target shooting device determination submodule is used to use at least one shooting device in the device linkage group as a target shooting device that has a spatial position association relationship with the target detection device.

19. The device according to any one of claims 12 to 18, It is characterized in that The target image set is a plurality of target images arranged in chronological order; The abnormal event detection module comprises: An image feature extraction submodule, used to extract image features corresponding to abnormal events from each target image in the target image set; An event feature determination submodule, used to compare the image features corresponding to the target image with the image features corresponding to the forward image, and obtain dynamic event features according to the comparison result; the forward image is an image in the target image set that is time-ordered before the target image; The event detection submodule is used to perform abnormal event detection based on the dynamic event characteristics to obtain abnormal event detection results.

20. The device according to claim 19, It is characterized in that The image feature includes the object position corresponding to the event object, and the dynamic event feature includes the speed feature corresponding to the event object; the event feature determination submodule includes: An object position comparison unit, used to compare the object position corresponding to the target image with the object position corresponding to the forward image to obtain the object movement distance; A first time interval acquisition unit, used to acquire a shooting time interval between the target image and the forward image; A speed feature determination unit is used to obtain the speed feature corresponding to the event object according to the moving distance of the object and the shooting time interval.

21. The device according to claim 19, It is characterized in that The image feature includes the object size corresponding to the event object, and the dynamic event feature includes the flickering feature corresponding to the event object; the event feature determination submodule includes: An object size comparison unit, used to compare the object size corresponding to the target image with the object size corresponding to the forward image to obtain an object size change value; A second time interval acquisition unit, used to acquire a shooting time interval between the target image and the forward image; A flicker feature determination unit is used to obtain the flicker feature corresponding to the event object according to the object size change value and the shooting time interval.

22. The device according to any one of claims 12 to 18, It is characterized in that Also includes: a false alarm determination module, configured to determine that a false alarm exists in the target detection device when it is determined based on the abnormal event detection result that the event object corresponding to the abnormal environment information does not exist; A false alarm frequency determination module, used to determine the false alarm frequency of the target detection device; The correction prompt module is used to generate correction prompt information for performing alarm correction on the target detection device when the false alarm frequency is greater than the frequency threshold, and send the correction prompt information to the correction terminal for prompting.

23. A computer device comprising a memory and a processor, wherein the memory stores a computer program, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 11 are implemented.

24. A computer-readable storage medium storing a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 11 are implemented.