An abnormal condition detection method and system for a smart safety help cloud platform

By determining the distance between the standard calibration object and the camera device in the intelligent safety assistance cloud platform, and optimizing the prior bounding box size and grid size, the problem of low image data processing efficiency and accuracy is solved, and more efficient target detection and abnormal situation detection are achieved.

CN120014052BActive Publication Date: 2026-11-24SUZHOU AOJUN INFORMATION TECHNOLOGY CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202510121343.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-24
Publication Date
2026-11-24
Estimated Expiration
2045-01-24

AI Technical Summary

Technical Problem

The existing smart safety assistance cloud platform suffers from low computational efficiency and low accuracy in image data processing. This is mainly due to the underutilization of the special characteristics of image data, insufficient training data, and insufficient computing power of terminal devices, resulting in inadequate model training.

Method used

By determining the distance between the standard calibration object and the camera device, setting the prior bounding box size, adjusting the initial grid size, optimizing the training parameters of the target recognition model, and utilizing image characteristics to optimize the prior bounding box, the algorithm complexity is reduced, and the model training efficiency and prediction accuracy are improved.

Benefits of technology

It improves the training efficiency and prediction accuracy of the target detection model, adapts to the image characteristics of the smart safety assistance cloud platform, and enhances the effect of abnormal situation detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120014052B_ABST
    Figure CN120014052B_ABST
Patent Text Reader

Abstract

This invention provides an anomaly detection method and system for a smart safety assistance cloud platform. The method first determines the distance between a standard calibration object and the camera device in the field of view. Then, based on the average size of the key detection object, it determines the size of the prior bounding box corresponding to the distance. The initial grid is adjusted based on the determined prior bounding box size, and the adjusted prior bounding box is used as the initialization parameters for training a target recognition model. Finally, the trained model is used to detect anomalies in real-time images acquired by the camera device. This invention also provides a corresponding sample expansion scheme. The above scheme utilizes the image characteristics acquired under the hardware architecture of the smart safety assistance cloud platform, optimizes the prior bounding box of the target detection algorithm, reduces algorithm complexity, and improves the training efficiency and prediction accuracy of the target detection model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of target detection technology, and more specifically, to an abnormal situation detection method and system for a smart safety assistance cloud platform. Background Technology

[0002] With the rapid development of artificial intelligence and automation technologies, smart safety assistance cloud platforms are playing an increasingly broad and important role in safety monitoring, danger alarms, intelligent rescue, and smart city management.

[0003] The basic operating principle of most common safety assistance platforms on the market currently employs a single computing center supporting a multi-monitoring terminal architecture. The backend acquires real-time data from the terminals for processing, and if target data is identified, an alarm or rescue mechanism is triggered. This system has a wide range of applications, such as factory management, warehouse management, traffic control, video surveillance, and other customized applications. Its core technology mainly consists of content recognition algorithms, including personnel information acquisition / target recognition via camera devices, facial recognition, target behavior and action recognition, scene recognition, and hazardous situation recognition. Currently, the core technical route of content recognition technology is trending towards machine self-learning image processing based on neural network algorithms. For example, mainstream target recognition algorithms are divided into Two-Stage algorithms and One-Stage algorithms. Classic algorithms for the former include R-CNN / FR-CNN, while classic algorithms for the latter include YOLO series algorithms / SSD algorithms.

[0004] However, the above-mentioned algorithms still have drawbacks when applied to the smart safety assistance cloud platform. First, the image data of the smart safety assistance cloud platform has its own characteristics compared with conventional image data. For example, (1) the recognition size of distant objects is generally smaller than that of nearby objects; (2) the types of monitored target objects are relatively fixed; (3) the shooting has relatively fixed angular characteristics; (4) and other special features of special scenes. Therefore, if the algorithm is not improved based on the characteristics of the data when processing image data, the model calculation efficiency is not high and the data processing accuracy is not high. Second, the existing image training data for target recognition is not adapted to the characteristics of this field, resulting in insufficient image training data in this field. In practical applications, the model training degree is insufficient and the data processing accuracy is not high. Third, the model training algorithm is complex. Most terminal devices do not have the training environment for complex algorithms and are insufficient to provide hardware computing power support for complex algorithms, thus leading to model simplification and weakening. In order to be applicable to various types of unknown target objects, the existing target recognition algorithm adopts a broad data training method, which is an important reason for its low algorithm efficiency. Therefore, it is necessary to improve the target recognition algorithm based on its data characteristics in the field of smart safety assistance technology.

[0005] The information disclosed in the background section of this invention is intended only to enhance the understanding of the general background of this invention, and should not be construed as an admission or in any way implying that such information constitutes prior art known to those skilled in the art. Summary of the Invention

[0006] In view of the problems existing in the prior art, the present invention provides an abnormal situation detection method and system for a smart safety assistance cloud platform.

[0007] Specifically, this application claims an abnormal situation detection method for a smart safety assistance cloud platform, the method comprising the following steps:

[0008] S100, determine the standard calibration object, move the standard calibration object to traverse the field of view of the camera device, and during the traversal of the field of view, perform the step of determining the distance between the standard calibration object and the camera device based on the camera device parameters, the standard calibration object parameters, and the imaging size of the standard calibration object in the camera device;

[0009] S110, based on the average size parameters of the objects being detected by the camera device, sets the prior box sizes corresponding to multiple distances;

[0010] S120, initialize the grid division of the image acquired by the camera device, determine the distance data from the midpoint of the bottom edge of the grid to the camera device, adjust the size parameters of the initialized grid according to the size of the prior box corresponding to the distance data to obtain the adjusted prior box, and use the adjusted prior box as the initialization parameters for training the target recognition model.

[0011] S130, the computing device performs anomaly detection on the real-time images acquired by the camera device based on the trained target recognition model.

[0012] Furthermore, the standard calibration object is moved to traverse the field of view of the camera device. During the traversal of the field of view, distance calculation is performed for each pixel to determine the actual distance D of the currently traversed pixel from the camera device.

[0013] (1)

[0014] In the above formula (1), L is the size of the standard calibration object, f is the focal length of the camera device, and d is the imaging size of the standard calibration object in the camera device.

[0015] Furthermore, a scene includes multiple types of key detection objects, and the size of the prior bounding box corresponding to the distance data includes multiple mappings, with each mapping associated with each key detection object.

[0016] Furthermore, when applied to real-time monitoring scenarios, the key detection target is pedestrians. The shape of the prior bounding box is in human proportion. When detecting abnormal behavior, the regular shape of the behavior in the image is determined based on the specific behavior content, and the initial shape of the prior bounding box is determined based on the regular shape.

[0017] Furthermore, an expansion operation is performed based on the target object calibrated in the existing training sample images. Specifically, the expansion operation involves: cropping the target object based on the calibration box, displacing it in the training sample image, determining the distance data from the pixel at the position center of the bottom edge of the calibration box at the displacement endpoint to the camera device, determining the size of the prior box at that position based on the mapping relationship between the distance data and the prior box parameters, and adjusting the size of the target object calibration box in the training sample image proportionally based on the determined prior box size.

[0018] An abnormal situation detection system for a smart safety assistance cloud platform is also provided, including:

[0019] The distance determination module is used to determine the standard calibration object, move the standard calibration object to traverse the field of view of the camera device, and, during the traversal of the field of view, execute the step of determining the distance between the standard calibration object and the camera device based on the camera device parameters, the standard calibration object parameters, and the image size of the standard calibration object in the camera device;

[0020] The prior bounding box mapping module is used to set the prior bounding box sizes corresponding to multiple distances based on the average size parameters of the objects being detected by the camera device.

[0021] The training module is used to initialize the grid division of the image acquired by the camera device, determine the distance data from the midpoint of the bottom edge of the grid to the camera device, adjust the size parameters of the initialized grid according to the size of the prior box corresponding to the distance data to obtain the adjusted prior box, and use the adjusted prior box as the initialization parameters for training the target recognition model.

[0022] The detection module and computing device perform anomaly detection on the real-time images acquired by the camera device based on the trained target recognition model.

[0023] Furthermore, in the above system, the standard calibration object is moved to traverse the field of view of the camera device. During the traversal of the field of view, distance calculation is performed for each pixel to calculate the actual distance D of the currently traversed pixel from the camera device.

[0024] (1)

[0025] In the above formula (1), L is the size of the standard calibration object, f is the focal length of the camera device, and d is the imaging size of the standard calibration object in the camera device.

[0026] Furthermore, in the above system, a scene includes multiple types of key detection objects, and the size of the prior box corresponding to the distance data includes multiple mappings, each mapping being associated with each key detection object.

[0027] Furthermore, in the above system, applied to real-time monitoring scenarios, the key detection target is pedestrians, and the shape of the prior bounding box is in human proportion. When performing abnormal behavior detection, the regular shape of the behavior in the image is determined based on the specific behavior content, and the initial shape of the prior bounding box is determined based on the regular shape.

[0028] Furthermore, in the above system, an expansion operation is performed based on the target object calibrated in the existing training sample image. Specifically, the expansion operation is as follows: the target object is cut based on the calibration box, displacement is performed in the training sample image, the distance data from the pixel at the position center of the bottom edge of the calibration box at the displacement endpoint is determined to the camera device, the size of the prior box at the position is determined according to the mapping relationship between the distance data and the prior box parameters, and the size of the target object calibration box in the training sample image is adjusted proportionally based on the determined prior box size.

[0029] This invention provides an anomaly detection method and system for a smart safety assistance cloud platform. The method first determines the distance between a standard calibration object and the camera device in the field of view. Then, based on the average size of the key detection object, it determines the size of the prior bounding box corresponding to the distance. The initial grid is adjusted based on the determined prior bounding box size, and the adjusted prior bounding box is used as the initialization parameters for training a target recognition model. Finally, the trained model is used to detect anomalies in real-time images acquired by the camera device. This invention also provides a corresponding sample expansion scheme. The above method of this invention utilizes the image characteristics acquired under the hardware architecture of the smart safety assistance cloud platform, optimizes the prior bounding box of the target detection algorithm, reduces algorithm complexity, and improves the training efficiency and prediction accuracy of the target detection model. Attached Figure Description

[0030] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the accompanying drawings in the following description are only used to illustrate some embodiments of this application. For those skilled in the art, without creative effort, they can obtain other technical features, connection relationships, and even method steps not mentioned in the accompanying drawings based on these drawings.

[0031] Figure 1 This is a flowchart of an abnormal situation detection method for a smart safety assistance cloud platform provided by an embodiment of the present invention;

[0032] Figure 2This is a structural diagram of an abnormal situation detection system for a smart safety assistance cloud platform provided in an embodiment of the present invention; Specific Implementation

[0033] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0034] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a particular order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented, for example, in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “corresponding to,” and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0035] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.

[0036] Example 1: As Figure 1 As shown, the present invention provides an abnormal situation detection method for a smart safety assistance cloud platform, the method comprising the following steps:

[0037] S100, determine the standard calibration object, move the standard calibration object to traverse the field of view of the camera device, and during the traversal, perform the step of determining the distance between the standard calibration object and the camera device based on the camera device parameters, the standard calibration object parameters, and the imaging size of the standard calibration object in the camera device;

[0038] For object detection tasks, classic algorithms typically include the concept of prior boxes. The classic solution involves traversing all possible bounding boxes on the input image, selecting the correct target box, and then adjusting (selecting) the position and size of the bounding boxes based on conditional judgments and iterations until they match the object to be detected, thus completing the object detection task. The bounding boxes used for prediction, which are adjusted later, are called prior boxes. Initialized prior boxes have certain predictive properties: if their shape is similar to the target object, fewer adjustment iterations are needed, resulting in higher model recognition efficiency; conversely, if their shape is far from the target object, more adjustment iterations are needed, leading to lower model recognition efficiency. To increase the efficiency of object detection tasks, prior boxes of different shapes / sizes are set at the same location, which leads to a larger computational load on the model.

[0039] This application optimizes the prior frame setting method in several aspects. Firstly, it determines the size of the prior frame. To determine the size of the prior frame, this application performs distance analysis on the images captured by the camera device. First, a standard calibration object is determined. This standard calibration object can be an object of known size, such as a worker with a height of 1.75m and a shoulder width of 0.6m, or a work vehicle of known standard size. The standard calibration object is moved to traverse the field of view of the camera device. During the traversal of the field of view, distance calculation is performed for each pixel. That is, based on the size parameters of the standard calibration object, the image size of the standard calibration object in the camera device, and the physical parameters of the camera device, the actual distance D from the currently traversed pixel to the camera device is calculated.

[0040] (1) (1)

[0041] In the above formula (1), L is the size of the standard calibration object, f is the focal length of the camera device, and d is the imaging size of the standard calibration object in the camera device.

[0042] In specific implementation, the main ways to traverse the field of view of the camera device are: (1) Downsampling traversal: sample the image pixels at N intervals, determine the position of the sampled pixels, and move the standard calibration object to the pixel position to perform a traversal operation; (2) Scene-based straight line sampling traversal: this method is usually applicable to linear fields of view similar to road scenes. Set sampling straight lines based on the road direction, determine the pixel position based on the sampling straight lines, and move the standard calibration object to the pixel position to perform a traversal operation; (3) Scene-based endpoint sampling traversal: this method is usually applicable to irregular polygonal fields of view similar to squares. Set sampling endpoints based on the irregular field of view shape, connect the endpoints to obtain sampling line segments, determine the pixel position based on the sampling line segments, and move the standard calibration object to the pixel position to perform a traversal operation.

[0043] S110, based on the average size parameters of the objects being detected by the camera device, set the prior box sizes corresponding to multiple distance data;

[0044] Prior bounding box matching is a standard step in object detection algorithms. Its goal is to move and adjust the prior bounding boxes towards the actual bounding boxes. The closer the prior bounding boxes are to the actual bounding boxes, the fewer iterations and the less computation required. Therefore, it is desirable for the prior bounding boxes to be as close to the actual bounding boxes as possible. Since the size / shape of the main subject captured by the camera in different scenes is relatively uniform to some extent, based on this principle, this step aims to determine the size of the predicted prior bounding boxes for each pixel.

[0045] In one embodiment, the camera device is used in road traffic scenarios, focusing on detecting different types of vehicles. Passenger cars are between 3800mm and 4200mm in length and approximately 1600mm in width; minibuses are approximately 5990mm long and 2050mm wide; and buses are 8600mm long and 2300mm wide. In another embodiment, the camera device is used in parks or squares, focusing on detecting pedestrians. Males are approximately 1.60-1.80m tall, and females are approximately 1.50-1.70m tall. Since their heights are generally similar in graphic representation, a height of 1.7m and a width of 0.6m can be used to reduce algorithm complexity.

[0046] Based on the average size parameter of the key detection object, the prior box sizes corresponding to multiple distances are set. In a park or square scene, the key detection object is a pedestrian with an average size parameter of 1.70m. Assuming the image captured by the camera device is 720P, after the standard calibration object traverses 1280*720 pixels, the distance between the determined pixel and the camera device in the scene is known. The imaging size is further determined by formula (1), and then the average size parameter of the key detection object displayed at the pixel position in the 720P image is determined based on the imaging size. The correspondence between the distance value of the pixel and the average size parameter of the key detection object displayed at the pixel position in the image is set to obtain the prior box sizes corresponding to multiple distances. Under normal circumstances, in a camera device with fixed parameters, the size of the target object at a specific distance in the generated image is corresponding. For example, in a 720P image, at any calculated pixel location 50m from the camera, the pedestrian's size displayed in the image is (15px, 45px), and the predicted initial prior bounding box size is (15px, 45px). Similarly, at any calculated pixel location 5m from the camera, the pedestrian's size displayed in the image is (40px, 120px), and the predicted initial prior bounding box size is (40px, 120px), and so on. The above data only illustrates one implementation method and does not represent the numerical situation in actual applications, nor does it indicate that it is the optimal implementation method.

[0047] In one embodiment, a scene typically includes multiple types of key detection objects, in which case the prior box size corresponding to the distance data can have multiple mappings.

[0048] S120, initialize the grid division of the image acquired by the camera device, determine the distance data from the midpoint of the bottom edge of the grid to the camera device, adjust the size parameters of the initialized grid according to the size of the prior box corresponding to the distance data to obtain the adjusted prior box, and use the adjusted prior box as the initialization parameters for training the target recognition model.

[0049] This step involves tiling the prior bounding boxes onto the image to be processed, awaiting algorithmic adjustments by the model. While initializing the mesh directly within the image is possible, this leads to a surge in data processing volume due to the large number of pixels. Therefore, feature processing can be performed on the image before initializing the mesh to achieve dimensionality reduction. For example, in a 512*512 image, feature processing yields a feature layer of size 40*40. If each pixel determines N prior bounding boxes, the original image contains 262144N prior bounding boxes, while the feature layer determines only 1600N, achieving a reduction in dimensionality by orders of magnitude. In a more optimized implementation, multiple downsampling feature processing steps are performed on the image, resulting in a feature layer size of 5*5. In this case, the number of prior bounding boxes is 25N, significantly reducing the data processing volume.

[0050] After initializing the grid in the image, a tiled initial prior box is obtained. The initial prior box does not consider the distance data of its pixels from the camera device in the actual scene. Therefore, based on the pixel position of the midpoint of the bottom edge of the initial prior box, the distance data of the pixel position from the camera device in the actual scene is determined. Then, based on the size mapping information of the prior box size according to the distance data, the size of the initial prior box is adjusted.

[0051] In one example, after initializing the mesh of a 640*480 image, four initial prior boxes were obtained, each with a size of 320*240 and positions (center of the bottom edge) of (160, 240), (480, 240), (160, 480), and (480, 480), respectively. After resizing, the positions of the four resized prior boxes remained unchanged, but their sizes were adjusted to (90*30), (80*27), (120*40), and (112*37), respectively. The resized prior boxes reflect the size of the target objects that may be contained in the image at the location of the mesh. Based on this size information, more accurate predictions were achieved, reducing the number of prior box adjustments and the computational cost.

[0052] The adjusted prior boxes are used as initialization parameters for training the object recognition model. For example, in the SSD algorithm for object detection, a series of default boxes are generated, and prior boxes are selected from these default boxes for training. In the FRCNN algorithm for object detection, prior boxes are set, and the prior boxes are trained using softmax classification based on the IOU detection of the ground truth boxes. YOLO2 / YOLO3 for object detection determines the prior box size through clustering (k-means), and YOLO5 determines the prior box size through clustering (k-means) + genetic algorithm, and the determined prior boxes are used for training. This application uses the adjusted prior boxes as initialization parameters for training the object recognition model, which can be applied to any existing object recognition model that uses prior boxes for model training. Taking the YOLO5 target recognition model as an example, this computational model determines the size of the prior box through clustering (kmeans) + genetic algorithm. Furthermore, based on the position of the prior box, i.e. the position of the midpoint of the bottom edge, the distance from the position to the camera device is determined. Then, the size of the prior box is adjusted according to the mapping relationship between the distance and the size of the prior box. Thus, the adjusted prior box is used as the initialization parameter for training the target recognition model.

[0053] S130, the computing device performs anomaly detection on the real-time images acquired by the camera device based on the trained model.

[0054] The camera device terminal sends the real-time acquired image data to the back-end computing center, which then uses the trained model to detect abnormal situations.

[0055] When using a target recognition model to detect abnormal situations, a prior box initialization step is included. In a preferred embodiment, the prior box is initialized and adjusted using the same method as in step S120. That is, the image to be recognized acquired by the camera device is initialized into a grid, the distance data from the midpoint of the bottom edge of the grid to the camera device is determined, and the size parameters of the initialized grid are adjusted according to the size of the prior box corresponding to the distance data to obtain the adjusted prior box. The adjusted prior box is used as the parameter of the prediction algorithm of the target recognition model for target recognition.

[0056] In a preferred embodiment, the second aspect of optimization is employed. The second aspect involves determining a better shape for the prior bounding box. As mentioned earlier, the goal of prior bounding box matching is to move and adjust the prior bounding box towards the actual bounding box. The closer the prior bounding box is to the actual bounding box, the fewer the number of iterations and the less computation required. Therefore, it is desirable for the prior bounding box to be as close to the actual bounding box as possible. Considering that the shapes of the key objects captured by the camera device in different scenes are relatively uniform to a certain extent, based on this principle, the task of this step is to determine the shape of the predicted prior bounding box on each pixel. The key objects for anomaly detection in different application scenarios have certain shape rules. In one example, the anomaly detection method of the present invention is applied to a road traffic control scenario, where the key objects for detection are different types of cars. In this case, the prior bounding box is usually square or rectangular. The aspect ratios of different types of cars are relatively fixed to a certain extent. Based on the aspect ratios of different types of cars presented in the image, prior bounding boxes that conform to the aspect ratio parameters are set. In one example, the anomaly detection method of the present invention is applied to warehouse management control, where the key detection objects are indoor operating carts, containers, and workers. In this case, a priori bounding box conforming to the aspect ratio parameter of the shape of the key detection objects in the image is set. In another example, the anomaly detection method of the present invention is applied to real-time monitoring scenarios in parks and squares, where the key detection objects are pedestrians. In this case, the priori bounding box is typically in human proportion, for example, an aspect ratio of 3:1. Furthermore, in the detection of special abnormal behaviors, the conventional shape of the behavior in the image can be determined based on the specific behavior content, such as the kneeling, lying, or prone posture when falling, thereby determining the initial shape of the priori bounding box based on the aforementioned shape of the key detection objects. The second optimization makes the priori bounding box closer to the real image, reducing the computational load of the algorithm during model training / prediction and improving the efficiency of the detection model.

[0057] In a preferred embodiment, corresponding training samples are set according to the type of object to be detected. When training samples are insufficient, an expansion operation is performed based on the target objects calibrated in the existing training samples. Specifically, this expansion operation involves: cropping the target object based on the calibration box, displacing it in the training image, determining the theoretical distance from the pixel at the bottom center of the calibration box at the displacement endpoint to the camera device, determining the size of the prior box at that location based on the mapping relationship between the distance data and the prior box parameters, and proportionally adjusting the size of the target object calibration box in the training frame based on the determined prior box size. Through these expansion steps, the image used for training is expanded, generating different calibration information of the target object at different locations in the same scene. This utilizes important features of the images captured by the camera device, enriches the training data content when training samples are insufficient, improves detection accuracy, and solves the prior art problems mentioned in the background section.

[0058] Example 2: Figure 2As shown, the present invention also provides an abnormal situation detection system for a smart safety assistance cloud platform, comprising:

[0059] The distance determination module is used to determine the standard calibration object, move the standard calibration object to traverse the field of view of the camera device, and, during the traversal of the field of view, execute the step of determining the distance between the standard calibration object and the camera device based on the camera device parameters, the standard calibration object parameters, and the image size of the standard calibration object in the camera device;

[0060] The prior bounding box mapping module is used to set the prior bounding box sizes corresponding to multiple distances based on the average size parameters of the objects being detected by the camera device.

[0061] The training module is used to initialize the grid division of the image acquired by the camera device, determine the distance data from the midpoint of the bottom edge of the grid to the camera device, adjust the size parameters of the initialized grid according to the size of the prior box corresponding to the distance data to obtain the adjusted prior box, and use the adjusted prior box as the initialization parameters for training the target recognition model.

[0062] The detection module and computing device perform anomaly detection on the real-time images acquired by the camera device based on the trained target recognition model.

[0063] In a preferred embodiment, in the above system, a standard calibration object is moved to traverse the field of view of the camera device. During the traversal of the field of view, a distance calculation is performed for each pixel to calculate the actual distance D of the currently traversed pixel from the camera device.

[0064] (1)

[0065] In the above formula (1), L is the size of the standard calibration object, f is the focal length of the camera device, and d is the imaging size of the standard calibration object in the camera device.

[0066] In a preferred embodiment, in the above system, a scene includes multiple types of key detection objects, and the prior box size corresponding to the distance data includes multiple mappings, each mapping being associated with each key detection object.

[0067] In a preferred embodiment, the above system is applied to a real-time monitoring scenario, where the main detection target is pedestrians. The shape of the prior bounding box is in human proportion. When performing abnormal behavior detection, the regular shape of the behavior in the image is determined based on the specific behavior content, and the initial shape of the prior bounding box is determined based on the regular shape.

[0068] In a preferred embodiment, in the above system, an expansion operation is performed based on the target object calibrated in the existing training sample image. The expansion operation specifically includes: cutting the target object based on the calibration box, displacing it in the training sample image, determining the distance data from the pixel at the position center of the bottom edge of the calibration box at the displacement endpoint to the camera device, determining the size of the prior box at the position based on the mapping relationship between the distance data and the prior box parameters, and adjusting the size of the target object calibration box in the training sample image proportionally based on the determined prior box size.

[0069] This invention provides an anomaly detection method and system for a smart safety assistance cloud platform. The method first determines the distance between a standard calibration object and the camera device in the field of view. Then, based on the average size of the key detection object, it determines the size of the prior bounding box corresponding to the distance. The initial grid is adjusted based on the determined prior bounding box size, and the adjusted prior bounding box is used as the initialization parameters for training a target recognition model. Finally, the trained model is used to detect anomalies in real-time images acquired by the camera device. This invention also provides a corresponding sample expansion scheme. The above method of this invention utilizes the image characteristics acquired under the hardware architecture of the smart safety assistance cloud platform, optimizes the prior bounding box of the target detection algorithm, reduces algorithm complexity, and improves the training efficiency and prediction accuracy of the target detection model.

[0070] According to one embodiment, a program product, such as a machine-readable medium, is provided. The machine-readable medium may have instructions (i.e., the elements implemented in software as described above), which, when executed by a machine, cause the machine to perform the above-described combinations of the various embodiments of this specification. Figure 1 The various operations and functions described. Specifically, a system or apparatus equipped with a readable storage medium storing software program code that implements the functions of any of the embodiments described above, and enabling the computer or processor of the system or apparatus to read and execute the instructions stored in the readable storage medium.

[0071] In this case, the program code read from the readable medium itself can perform the functions of any of the above embodiments, and therefore the machine-readable code and the readable storage medium storing the machine-readable code constitute a part of this specification.

[0072] Examples of readable storage media include floppy disks, hard disks, magneto-optical disks, optical disks (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD-RW), magnetic tapes, non-volatile memory cards, and ROMs. Alternatively, program code can be downloaded from a server computer or the cloud via a communication network.

[0073] Those skilled in the art will understand that the various embodiments disclosed above can be modified and varied without departing from the spirit of the invention. Therefore, the scope of protection of this specification should be defined by the appended claims.

[0074] It should be noted that not all steps and units in the above process and system structure diagrams are mandatory; some steps or units can be omitted according to actual needs. The execution order of each step is not fixed and can be determined as needed. The device structure described in the above embodiments can be a physical structure or a logical structure. That is, some units may be implemented by the same physical client, or some units may be implemented by multiple physical clients, or they may be jointly implemented by certain components in multiple independent devices.

[0075] In the above embodiments, the hardware units or modules can be implemented mechanically or electrically. For example, a hardware unit, module, or processor may include permanent dedicated circuitry or logic (such as a dedicated processor, FPGA, or ASIC) to perform the corresponding operation. The hardware unit or processor may also include programmable logic or circuitry (such as a general-purpose processor or other programmable processor), which can be temporarily configured by software to perform the corresponding operation. The specific implementation method (mechanical, dedicated permanent circuitry, or temporarily configured circuitry) can be determined based on cost and time considerations.

[0076] The specific embodiments described above with reference to the accompanying drawings are exemplary embodiments, but do not represent all embodiments that can be implemented or fall within the scope of the claims. The term "exemplary" as used throughout this specification means "serving as an example, instance, or illustration" and does not imply that it is "preferred" or "advantageous" compared to other embodiments. Specific details are included to provide an understanding of the described techniques. However, these techniques can be practiced without these specific details. In some instances, well-known structures and apparatuses are shown in block diagram form to avoid obscuring the concepts of the described embodiments.

[0077] The foregoing description of this disclosure is provided to enable any person skilled in the art to implement or use this disclosure. Various modifications to this disclosure will be apparent to those skilled in the art, and the general principles applicable herein can be applied to other variations without departing from the scope of this disclosure. Therefore, this disclosure is not limited to the examples and designs described herein, but is consistent with the widest scope of the principles and novel features disclosed herein.

Claims

1. An abnormal situation detection method for a smart safety assistance cloud platform, applied to shooting scenes with relatively fixed angular characteristics, the method comprising the following steps: S100, determine the standard calibration object, move the standard calibration object to traverse the field of view of the camera device, and during the traversal of the field of view, perform the step of determining the distance between the standard calibration object and the camera device based on the camera device parameters, the standard calibration object parameters, and the imaging size of the standard calibration object in the camera device; S110, based on the average size parameter of the key detection object of the camera device, set the prior box size corresponding to multiple distances; the scene includes multiple types of key detection objects, and the prior box size corresponding to the distance data includes multiple mappings, each mapping being associated with each key detection object; S120: Initialize the grid division of the image acquired by the camera device, determine the distance data from the midpoint of the bottom edge of the grid to the camera device, adjust the size parameters of the initial grid according to the size of the prior box corresponding to the distance data to obtain the adjusted prior box, and use the adjusted prior box as the initialization parameters for training the target recognition model; before initializing the grid division, perform feature processing on the image to achieve data dimensionality reduction. S130, The computing device performs anomaly detection on the real-time images acquired by the camera device based on the trained model; An expansion operation is performed based on the target object calibrated in the existing training sample images. Specifically, the expansion operation is as follows: the target object is cut out based on the calibration box, and displacement is performed in the training sample image. Based on the position of the center of the bottom edge of the calibration box at the displacement endpoint, the distance data from the pixel at that position to the camera device is determined. The size of the prior box at that position is determined according to the mapping relationship between the distance data and the prior box parameters. Based on the determined prior box size, the size of the target object calibration box in the training sample image is adjusted proportionally.

2. The abnormal condition detection method as described in claim 1, characterized in that: The standard calibration object is moved to traverse the field of view of the camera device. During the traversal, distance calculation is performed for each pixel to determine the actual distance D of the currently traversed pixel from the camera device. (1); In the above formula (1), L is the size of the standard calibration object, f is the focal length of the camera device, and d is the imaging size of the standard calibration object in the camera device.

3. The abnormal condition detection method as described in claim 1, characterized in that: Applied to real-time monitoring scenarios, the main detection target is pedestrians. The shape of the prior bounding box is in human proportion. When detecting abnormal behavior, the regular shape of the behavior in the image is determined based on the specific behavior content, and the initial shape of the prior bounding box is determined based on the regular shape.

4. An abnormal situation detection system for a smart safety assistance cloud platform, applied to shooting scenes with relatively fixed angular characteristics, characterized in that... include: The distance determination module is used to determine the standard calibration object, move the standard calibration object to traverse the field of view of the camera device, and, during the traversal of the field of view, execute the step of determining the distance between the standard calibration object and the camera device based on the camera device parameters, the standard calibration object parameters, and the image size of the standard calibration object in the camera device; The prior bounding box mapping module is used to set the prior bounding box sizes corresponding to multiple distances based on the average size parameters of the key objects to be detected by the camera device. The scene includes various types of key objects to be detected, and the prior bounding box sizes corresponding to the distance data include multiple mappings, each mapping being associated with each key object to be detected. The training module is used to initialize the grid division of the image acquired by the camera device, determine the distance data from the midpoint of the bottom edge of the grid to the camera device, and adjust the size parameters of the initialized grid according to the size of the prior box corresponding to the distance data to obtain the adjusted prior box. The adjusted prior box is used as the initialization parameter for training the target recognition model. Before initializing the grid division, the image is first processed to achieve data dimensionality reduction. The detection module and computing device perform anomaly detection on the real-time images acquired by the camera device based on the trained target recognition model. An expansion operation is performed based on the target object calibrated in the existing training sample image. The expansion operation specifically includes: cropping the target object based on the calibration box, displacing it in the training sample image, determining the distance data from the pixel at the bottom center of the calibration box at the end of the displacement to the camera device based on the position of the center of the bottom edge of the calibration box at the end of the displacement, determining the size of the prior box at the position based on the mapping relationship between the distance data and the prior box parameters, and adjusting the size of the target object calibration box in the training sample image proportionally based on the determined prior box size.

5. The abnormal condition detection system as described in claim 4, characterized in that: The standard calibration object is moved to traverse the field of view of the camera device. During the traversal of the field of view, a distance calculation is performed for each pixel to determine the actual distance D between the currently traversed pixel and the camera device. (1) Where L is the size of the standard calibration object, f is the focal length of the camera device, and d is the image size of the standard calibration object in the camera device.

6. The abnormal condition detection system as described in claim 4, characterized in that: Applied to real-time monitoring scenarios, the key detection target is pedestrians, and the shape of the prior bounding box is in human proportion. When detecting abnormal situations, the regular shape of the behavior in the image is determined based on the specific behavior content, and the initial shape of the prior bounding box is determined based on the regular shape.

Citation Information

Patent Citations

  • Target detection method and device

    CN113673282A