A community special area security identification method and system based on edge server

By preprocessing and identifying video data on the edge server, combined with a general visual semantic segmentation algorithm model, the problems of high cost and data transmission delay in traditional video AI technology are solved, and efficient, accurate and low-cost security identification of special areas in the community is achieved. recognition effect.

CN117671918BActive Publication Date: 2024-08-27SHENZHEN QINLIN TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311496219.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-10
Publication Date
2024-08-27
Estimated Expiration
2043-11-10

AI Technical Summary

Technical Problem

Traditional video AI technology has problems such as high cost, data transmission delay and privacy leakage in the security of special areas of the community. Moreover, traditional cameras cannot meet the needs of AI recognition, and have limited computing power and high maintenance costs.

Method used

An edge server-based method is adopted to collect video data through cameras for preprocessing. The universal visual semantic segmentation and extraction algorithm model SAM is used for local processing on the edge server to detect abnormal situations and upload the analysis results to the cloud, combined with special area abnormalities. Feature data model is used for judgment and alarm.

Benefits of technology

It realizes localized processing of video data, reduces data transmission delay and network bandwidth requirements, avoids the replacement cost of traditional cameras, improves recognition accuracy and system efficiency, reduces monitoring costs, and continuously improves algorithm accuracy through two-way analysis and model training. Spend.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117671918B
    Figure CN117671918B
Patent Text Reader

Abstract

The present invention discloses a special area security identification method and system based on an edge server, which belongs to the field of image information recognition and processing technology. The method uses an edge AI server to empower traditional cameras to realize local processing and storage of video data, thereby avoiding the problems of data transmission delay and insufficient network bandwidth. Through video preprocessing technology, redundant frames are deleted, and video encoding is optimized. The amount of video data can be effectively reduced while ensuring video quality, saving costs and improving efficiency for subsequent video data transmission and storage and AI processing and analysis. On the basis of traditional AI algorithms, combined with the abnormal feature data model of special areas in the community, a two-way analysis is performed by combining image features and regional abnormal data features to improve the recognition rate of the system. Through the continuous accumulation and storage of abnormal area images and data through scenes, the AI ​​recognition model and the special area abnormal feature data model are trained to improve the accuracy of the algorithm.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of image information recognition and processing, and in particular relates to a community special area security recognition method and system based on an edge server. Background Art

[0002] At present, with the rapid development of security technology, video AI technology has gradually become an important means of ensuring the safety of special areas in the community. However, traditional video AI technology is mainly divided into two types: using AI cameras and using ordinary cameras plus cloud AI servers.

[0003] AI cameras are used to identify special area features through end-side AI algorithms. In this mode, cameras need to integrate AI capabilities, and traditional cameras cannot meet the requirements. For communities that have already installed traditional cameras, they need to be re-purchased, which is costly. In addition, due to the limitation of camera computing power, it is impossible to adapt to different special area scenarios, and the camera algorithm configuration needs to be refined and maintained, which has high maintenance costs.

[0004] Using ordinary cameras and cloud AI servers to transmit the collected surveillance videos to the cloud for AI recognition not only has high traffic costs, but also has problems such as long data transmission delays and privacy leaks, which limits its application scope and effectiveness.

[0005] At the same time, traditional AI recognition models require the deployment of multiple different models, which also need to be maintained separately in the later stage. Not only the algorithm cost is high, but also the computing power infrastructure cost is high. Summary of the invention

[0006] In order to solve the above problems existing in the prior art, the present invention provides a community special area security identification method and system based on an edge server.

[0007] A community special area security identification method based on an edge server comprises the following steps:

[0008] S1: Video surveillance equipment uses cameras to monitor special areas in real time and collect video data;

[0009] S2: pre-process the collected video data to remove redundant information, reduce resolution, and compress and encode;

[0010] S3: The pre-processed video data is transmitted to the edge AI server. The edge server processes the video data locally and uses the general visual semantic segmentation and extraction algorithm model SAM (Segment Anything Model) to detect whether there are blocked fire passages, accumulated debris in the corridor, wandering in the corridor, and common abnormal people and objects in the perimeter protection area of ​​the rooftop, and extract the corresponding picture frames as key frames;

[0011] S4: According to the scene where the key frame is located, the regional abnormal result is judged by combining the AI ​​recognition result and the special regional abnormal feature data model to obtain the analysis result;

[0012] S5: Upload the analysis results and surveillance videos of special areas to the cloud server for alarm.

[0013] Preferably, the steps of removing redundant information in step S2 are as follows: dividing the current frame into a series of image blocks by a block search method (Hierarchical Bilck-Matching), and then comparing each image block with a previous frame image, searching for an image block most similar to the current frame in the previous frame image, and then obtaining motion information between two consecutive video frames; extracting motion information between adjacent frames in the video sequence to determine whether the current frame has motion changes relative to the previous frame; identifying the current frame with motion changes as a valid frame and retaining it, and removing the current frame without motion changes.

[0014] Preferably, the compression encoding in step S2 reduces the amount of video data while ensuring video quality by adopting video encoding algorithms such as H.264 and H.265.

[0015] Preferably, in step S3, the edge server uses the general visual semantic segmentation and extraction algorithm model SAM to locally process the video data in the following steps:

[0016] Step S31: the edge server uses the SAM algorithm to perform image segmentation on the video data;

[0017] Step S32: extract key parts through the set safety area key prompt word library (prompt), for example: (prompt: extract the image fire hydrant) to obtain the information of the fire hydrant;

[0018] Step S33: Save the abnormal video image information, abnormal image area and abnormal mark as on-site image evidence.

[0019] Preferably, the abnormal feature data model in step S4 is a non-image recognition model. Combined with the results of regional scenes and image extraction, the special area abnormal feature data model is matched and analyzed, including: recording the distribution of abnormal items, the time and number of appearances of abnormal people, and obtaining abnormal situation analysis results.

[0020] The analysis results mainly include the following parts:

[0021] Whether the fire escape is blocked: The main function of the fire escape is to provide a safe evacuation passage when a fire occurs. If the fire escape is blocked, people will not be able to escape immediately when a fire occurs, which increases the difficulty and danger of escape. At the same time, it will also hinder firefighters and rescue personnel from entering the accident scene, affecting the use of firefighting equipment, which may lead to the inability to quickly and effectively control the fire when a fire occurs. Therefore, for the monitoring video content of the fire escape, it is necessary to pay attention to whether there are people or objects blocking the fire escape. For the scenes where people or objects block the fire escape, collect the number of times people or objects appear in the passage, the time, and the degree of passage blockage in the video. The degree of passage blockage includes relevant information such as the proportion of passage width blocked;

[0022] Debris accumulation in the corridor: Debris accumulation in the corridor will cause inconvenience to the normal entry and exit of personnel, and it is also easy to cause fire. At the same time, when a fire occurs, the debris accumulated in the corridor may become fuel, accelerate the spread of the fire, and affect the escape of personnel. Therefore, it is necessary to monitor the corridor and clean up the debris accumulated in the corridor in a timely manner. Therefore, for the monitoring screen of the corridor, it is necessary to collect relevant information such as the area, height, distribution, and existence duration of the debris accumulation in the corridor in the video;

[0023] Wandering in the corridor: People wandering in the corridor may introduce goods, such as smoking, using open flames, playing with fire, etc., which are also likely to cause fires. At the same time, people wandering in the corridor may engage in illegal activities, vandalism or theft. In this regard, monitoring records can serve as an important basis for evidence collection or investigation, and prevent and combat illegal activities. Therefore, it is necessary to promptly discover and deal with people wandering in the corridor, and collect relevant information such as the time, location, and frequency of the corresponding person's wandering in the monitoring video of the corridor area;

[0024] Rooftop perimeter protection: For rooftop monitoring, it is necessary to pay attention to whether there are people or objects entering the rooftop perimeter to avoid dangerous situations such as people or objects falling from buildings or falling objects from high altitudes. Therefore, it is necessary to collect information such as the number of people or objects appearing within the rooftop perimeter, the time, and the degree of entry into the rooftop in the rooftop area monitoring video;

[0025] Public leisure areas: To determine whether someone has fallen in a public leisure area, it is necessary to pay attention to the fall incident and the location where the person fell.

[0026] Preferably, before the analysis results in step S5 are uploaded to the cloud server, the data of the special area abnormal results are first stored in the corresponding special area abnormal feature data model.

[0027] Preferably, in step S5, the user can remotely access the cloud server through a terminal device to view and manage the surveillance video and abnormal situation analysis results of special areas.

[0028] On the other hand, the present invention also provides a community special area security identification system based on an edge server, which applies the above-mentioned community special area security identification method based on an edge server to realize community special area security identification.

[0029] Preferably, the system comprises:

[0030] Camera: used for real-time monitoring and collecting video data;

[0031] Video processing equipment: used for collecting, preprocessing, removing redundant information, reducing resolution, compressing and encoding surveillance videos, and storing surveillance videos;

[0032] Edge AI server: used for video data processing, AI recognition and information extraction, and matching with abnormal feature data models in special areas;

[0033] Community monitoring and alarm platform: used to store abnormal results and related monitoring, and provide remote alarms for relevant managers.

[0034] The beneficial effects of the present invention are:

[0035] 1. Use edge AI servers to empower traditional cameras. By processing data on edge servers, local processing and storage of video data can be achieved, thereby avoiding data transmission delays and insufficient network bandwidth. At the same time, there is no need to replace the existing traditional camera equipment in the community, saving costs.

[0036] 2. Through video preprocessing technology, redundant frames are deleted and video encoding is optimized, which can effectively reduce the amount of video data while ensuring video quality, save costs and improve efficiency for subsequent video data transmission and storage as well as AI processing and analysis.

[0037] 3. Utilize the general visual semantic segmentation and extraction algorithm model SAM and the special area security inspection method, utilize the generalization ability of the general visual segmentation algorithm, one AI model + different recognition rules and prompt word rules to realize multi-scenario regional security detection, without the need to deploy multiple different models, reducing the community's monitoring costs. At the same time, only new extraction rules need to be added to expand new regional security detection capabilities.

[0038] 4. Based on the use of AI algorithms, combined with the data model of abnormal characteristics of special areas in the community, the accuracy of system recognition can be effectively improved through two-way analysis of image features and regional abnormal data features. By continuously accumulating and storing images and data of abnormal areas in the scene, and continuously training the AI ​​recognition model and the data model of abnormal characteristics of special areas, the accuracy of the algorithm can be continuously improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to facilitate understanding by those skilled in the art, the present invention is further described below with reference to the accompanying drawings.

[0040] Figure 1 A flow chart of a method provided in one embodiment of the present invention;

[0041] Figure 2 A system structure diagram provided in one embodiment of the present invention;

[0042] Figure 3 This is a flowchart of AI algorithm recognition provided in one embodiment of the present invention. DETAILED DESCRIPTION

[0043] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the specific implementation methods, structures, features and effects of the present invention are described in detail below in conjunction with the accompanying drawings and preferred embodiments.

[0044] according to Figure 1-2 As shown, this embodiment provides a community special area security identification method based on an edge server, comprising the following steps:

[0045] S1: Video surveillance equipment uses cameras to monitor special areas in real time and collect video data;

[0046] S2: pre-processing the collected video data, removing redundant information, resolving it, and compressing it;

[0047] S3: The pre-processed video data is transmitted to the edge AI server. The edge server processes the video data locally and uses the general visual semantic segmentation and extraction algorithm model SAM to detect whether there are blocked fire passages, accumulated debris in the corridor, wandering in the corridor, and common abnormal people and objects in the perimeter protection area of ​​the rooftop, and extract the corresponding picture frames as key frames;

[0048] S4: According to the scene where the key frame is located, the regional abnormal result is judged by combining the AI ​​recognition result and the special regional abnormal feature data model to obtain the analysis result;

[0049] Among them, the AI ​​recognition results include the picture frames extracted as key frames, and various features in the picture.

[0050] S5: Upload the analysis results and surveillance videos of special areas to the cloud server for alarm.

[0051] By using edge AI servers to empower traditional cameras, there is no need to replace existing traditional cameras in the community. By processing data on edge servers, video data can be processed and stored locally, thus avoiding data transmission delays and insufficient network bandwidth when using cloud servers. At the same time, reducing the transmission of data to locations outside the community can reduce the chance of network attacks, allowing local devices to operate more securely and away from potential interception or data leakage.

[0052] At the same time, adjacent frames in the video usually contain a large amount of repeated content, such as pictures of people standing still, no abnormal people or objects entering the monitoring range, etc. Through video preprocessing technology, these repeated frames in the video can be removed, redundant data can be deleted, and video encoding can be optimized. While ensuring the video quality, the amount of video data can be effectively reduced, saving costs and improving efficiency for subsequent video data transmission and storage as well as AI processing and analysis.

[0053] The steps of removing redundant information in step S2 are as follows: through the block search method, the picture currently displayed in the video is taken as the current frame, the current frame is divided into a series of image blocks, and then each image block is searched and compared with the previous frame image, and the image block most similar to the current block is searched in the previous frame image, so as to obtain the motion information between two consecutive video frames; the motion information between adjacent frames in the video sequence is extracted to determine whether there is a motion change in the current frame relative to the previous frame; the current frame with motion change compared with the previous frame is identified as a valid frame and retained, and the current frame without motion change is removed.

[0054] Using the block search method, by judging whether there is motion change between two adjacent frames in the surveillance video, the video frames are divided into valid frames and invalid frames, and the invalid frames without motion change are removed. This can effectively remove a large number of repeated images with no available information in the surveillance video, reduce the transmission and storage costs of video data, and also reduce the recognition amount of subsequent AI recognition, thereby improving efficiency.

[0055] The compression encoding described in step S2 reduces the amount of video data while ensuring the video quality by adopting video encoding algorithms such as H.264 and H.265.

[0056] Please refer to Figure 3 In step S3, the edge server uses the general visual semantic segmentation and extraction algorithm model SAM to locally process the video data in the following steps:

[0057] Step S31: the edge server uses the SAM algorithm to perform image segmentation on the video data;

[0058] Step S32: extract key parts through the set safety area key prompt word library (prompt), for example: (prompt: extract the image fire hydrant) to obtain the information of the fire hydrant;

[0059] Step S33: Save the abnormal video image information, abnormal image area and abnormal mark as on-site image evidence.

[0060] The SAM model can generate "masks" for any object in an image or video, even objects and images it has not encountered before. Masking is a technique that involves identifying objects based on contrast changes around their edges and separating them from the rest of the scene. SAM is general enough to cover a wide range of use cases and does not require additional training.

[0061] SAM combines two common segmentation methods: interactive segmentation, where humans guide the model by iteratively refining a mask, and automatic segmentation, where the model does it on its own after being trained on hundreds or thousands of annotated objects.

[0062] By utilizing the general visual semantic segmentation and extraction algorithm model SAM and the special area security inspection method, and the generalization ability of the general visual segmentation algorithm, one AI model + different recognition rule prompt word rules can realize regional security detection in multiple scenarios. There is no need to deploy multiple different models, which reduces the monitoring cost of the community. At the same time, only new extraction rules need to be added to expand new regional security detection capabilities.

[0063] The abnormal feature data model described in step S4 is a non-image recognition model. Combined with the results of regional scenes and image extraction, the special regional abnormal feature data model performs matching analysis, including: recording the distribution of abnormal items, the time and number of appearances of abnormal people, and obtaining abnormal situation analysis results.

[0064] The analysis results include the following parts:

[0065] Whether the fire escape is blocked: The main function of the fire escape is to provide a safe evacuation passage when a fire occurs. If the fire escape is blocked, people will not be able to escape immediately when a fire occurs, which increases the difficulty and danger of escape. At the same time, it will also hinder firefighters and rescue personnel from entering the accident scene, affecting the use of firefighting equipment, which may lead to the inability to quickly and effectively control the fire when a fire occurs. Therefore, for the monitoring video content of the fire escape, it is necessary to pay attention to whether there are people or objects blocking the fire escape. For the scenes where people or objects block the fire escape, collect the number of times people or objects appear in the passage, the time, and the degree of passage blockage in the video, such as the proportion of passage width blocked and other related information;

[0066] Debris accumulation in the corridor: Debris accumulation in the corridor will cause inconvenience to the normal entry and exit of personnel, and it is also easy to cause fire. At the same time, when a fire occurs, the debris accumulated in the corridor may become fuel, accelerate the spread of the fire, and affect the escape of personnel. Therefore, it is necessary to monitor the corridor and clean up the debris accumulated in the corridor in a timely manner. Therefore, for the monitoring screen of the corridor, it is necessary to collect relevant information such as the area, height, distribution, and existence duration of the debris accumulation in the corridor in the video;

[0067] Wandering in the corridor: People wandering in the corridor may introduce goods, such as smoking, using open flames, playing with fire, etc., which are also likely to cause fires. At the same time, people wandering in the corridor may engage in illegal activities, vandalism or theft. In this regard, monitoring records can serve as an important basis for evidence collection or investigation, and prevent and combat illegal activities. Therefore, it is necessary to promptly discover and deal with people wandering in the corridor, and collect relevant information such as the time, location, and frequency of the corresponding person's wandering in the monitoring video of the corridor area;

[0068] Rooftop perimeter protection: For rooftop monitoring, it is necessary to pay attention to whether there are people or objects entering the rooftop perimeter to avoid dangerous situations such as people or objects falling from buildings or falling objects from high altitudes. Therefore, it is necessary to collect information such as the number of people or objects appearing within the rooftop perimeter, the time, and the degree of entry into the rooftop in the rooftop area monitoring video;

[0069] Public leisure areas: To determine whether someone has fallen in a public leisure area, it is necessary to pay attention to the fall incident and the location where the person fell.

[0070] To establish the special area abnormal feature data model, it is necessary to manually set the type of abnormal situation. For example, for the special area abnormal feature data model of the corridor area, it is necessary to manually preset the area of ​​the corridor that objects occupy and how long they have been stored in order to cause corridor debris accumulation, and establish corresponding abnormal situation judgment standards to avoid objects temporarily placed in the corridor from being misjudged as abnormal situations.

[0071] By combining AI recognition with abnormal feature data models of special areas, the system's ability to analyze monitoring images can be improved and the system's recognition rate can be increased.

[0072] Before the analysis result in step S5 is uploaded to the cloud server, the data of the special area abnormal result is first stored in the corresponding special area abnormal feature data model.

[0073] By storing relevant information of abnormal situations in the corresponding special area abnormal feature data model, the special area abnormal feature data model is continuously improved, and the accuracy of the algorithm is continuously improved through continuous training of the AI ​​recognition model and the special area abnormal feature data model.

[0074] In step S5, the user can remotely access the cloud server through the terminal device to view and manage the monitoring video and abnormal situation analysis results of the special area.

[0075] By uploading abnormal situations to the cloud server, it is convenient for relevant management personnel to remotely monitor special areas. At the same time, it is convenient for inspectors to discover abnormal situations in time and deal with them accordingly.

[0076] Uploading surveillance videos to the server can back up related data and reduce storage pressure on local devices.

[0077] Another embodiment of the present invention further discloses a community special area security identification system based on an edge server, which applies the above-mentioned community special area security identification method based on an edge server to realize community special area security identification.

[0078] according to Figure 2 As shown, the system has the following equipment:

[0079] Camera: used for real-time monitoring and collecting video data.

[0080] Video processing equipment: used for collecting, pre-processing, removing redundant information, reducing resolution, compressing and encoding surveillance videos, as well as storing surveillance videos.

[0081] Edge AI server: used for video data processing, AI recognition and information extraction, and matching with abnormal feature data models in special areas.

[0082] Community monitoring and alarm platform: used to store abnormal results and related monitoring, and provide remote alarms for relevant managers.

[0083] The video processing device adopts a video processing server.

[0084] The system uses cameras to monitor special areas of the community in real time and collect video data. After the camera transmits the collected video to the video processing server, the video processing server pre-processes the video to remove redundant information, reduce resolution, and compress the encoding. Then, the system transmits the pre-processed video to the edge AI server, which processes the video data locally, identifies whether there are any abnormalities in the special area, and extracts the corresponding information. Then, the system matches the information extracted by AI recognition with the special area abnormal feature data model to obtain the processing result, and stores the abnormal information in the special area abnormal feature data model. Finally, the system uploads the abnormal situation to the alarm platform and triggers an alarm.

[0085] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment as above, it is not used to limit the present invention. Any technical personnel in this field can make some changes or modify the technical contents disclosed above into equivalent embodiments without departing from the scope of the technical solution of the present invention. However, any brief modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention are still within the scope of the technical solution of the present invention.

Claims

1. A community special area security identification method based on edge server, characterized in that: The following steps are involved: S1: Video surveillance equipment uses cameras to monitor special areas in real time and collect video data; S2: preprocessing the collected video data, removing redundant information, reducing resolution, and compressing and encoding, wherein the compression encoding adopts H.264 or H.265 video encoding algorithm; S3: The pre-processed video data is transmitted to the edge AI server. The edge server processes the video data locally and uses the general visual semantic segmentation and extraction algorithm model SAM to detect whether there are blocked fire passages, accumulated debris in the corridor, people falling, wandering in the corridor, and common abnormal people and objects in the perimeter protection area of ​​the rooftop, and extract the corresponding picture frames as key frames; S4: According to the scene where the key frame is located, the regional abnormal result is judged by combining the AI ​​recognition result and the special regional abnormal feature data model to obtain the analysis result; S5: Upload the analysis results and surveillance videos of special areas to the cloud server for alarm; The steps of removing redundant information in step S2 are as follows: divide the current frame into a series of image blocks by a block search method, then compare each image block with the previous frame image, search the previous frame image for the image block most similar to the current frame, and then obtain the motion information between two consecutive video frames; extract the motion information between adjacent frames in the video sequence to determine whether the current frame has a motion change relative to the previous frame; identify the current frame with motion change as a valid frame and retain it, and remove the current frame without motion change; Step S3: The edge server uses the general visual semantic segmentation and extraction algorithm model SAM to locally process the video data. The steps are: Step S31: the edge server uses the SAM algorithm to perform image segmentation on the video data; Step S32: extracting key parts through the set safety area key prompt word library; Step S33: saving abnormal video image information, abnormal image area and abnormal mark as on-site image evidence; The abnormal feature data model in step S4 is a non-image recognition model. Combined with the results of regional scenes and image extraction, the special regional abnormal feature data model performs matching analysis, including: recording the distribution of abnormal items, the time and number of abnormal person appearances; Before uploading the analysis results in step S5 to the cloud server, the data of the special area abnormal results are first stored in the corresponding special area abnormal feature data model; The cloud server in step S5 is used for users to remotely access the cloud server through terminal devices to view and manage monitoring videos and abnormal situation analysis results of special areas.

2. A community special area security identification system based on edge server, characterized in that: The community special area security identification system based on the edge server adopts the community special area security identification method based on the edge server as described in claim 1 to realize the community special area security identification.

3. The community special area security identification system based on edge server according to claim 2 is characterized in that: include: Camera: used for real-time monitoring and collecting video data; Video processing equipment: used for collecting, preprocessing, removing redundant information, reducing resolution, compressing and encoding surveillance videos, and storing surveillance videos; Edge AI server: used for video data processing, AI recognition and information extraction, and matching with abnormal feature data models in special areas; Community monitoring and alarm platform: used to store abnormal results and related monitoring, and provide remote alarms for relevant managers.