Abnormality determination method, device, equipment, medium and product

Through the combination of the camera device and the target detection model, it is judged whether there are abnormalities in the targets to be detected in the video data, which solves the problem that manual analysis cannot detect abnormalities in time, realizes real-time intelligent analysis and reminders of the status of passengers and items, and improves safety management. efficiency.

CN114241401BActive Publication Date: 2024-10-15INST OF COMPUTING TECH CHINA ACAD OF RAILWAY SCI +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111288937.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-02
Publication Date
2024-10-15
Estimated Expiration
2041-11-02

AI Technical Summary

Technical Problem

In the existing technology, through manual analysis of video content, abnormal situations such as long-term inactivity of passengers and displacement of important items cannot be detected in time, resulting in casualties and untimely emergency response.

Method used

Obtain video data through the camera device, determine the scene category and determine whether the target to be detected needs to move, use the target detection model to output the target detection value, and combine shallow and deep feature extraction to determine whether the target to be detected has moved, thereby determining whether there is an abnormality. .

Benefits of technology

It achieves effective and timely determination of abnormal situations such as long-term inactivity of passengers and displacement of important items, reduces casualties and untimely emergency response problems, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114241401B_ABST
    Figure CN114241401B_ABST
Patent Text Reader

Abstract

The present invention provides an abnormality determination method, device, equipment, medium and product, the method comprising: determining the scene category of video data obtained by a camera device; determining whether a target to be detected corresponding to the scene category needs to be moved, and obtaining a first determination result; inputting the video data into a target detection model, and outputting a target detection value of the target to be detected in the video data through the target detection model, wherein the target detection model is obtained by training the video sample data and the target detection sample value corresponding to the sample target to be detected; based on the target detection value, determining whether the target to be detected moves, and obtaining a second determination result; based on the first determination result and the second determination result, determining whether the target to be detected has an abnormality. The present invention is used to solve the defect in the prior art that the video content is manually identified and analyzed, resulting in the inability to timely detect abnormal situations such as passengers being motionless for a long time and important items being displaced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of rail transit technology, and in particular to an abnormality determination method, device, equipment, medium and product. Background Art

[0002] In recent years, my country's rail industry has developed rapidly. Due to its advantages of not occupying ground roads, large transportation volume, and low energy consumption, various cities have actively invested in rail transit construction. As the huge passenger flow brings huge pressure on station passenger transportation business, the pressure on rail transit operation management and public safety protection is increasing day by day. At this stage, it is mainly managed through long-term operation experience combined with traditional video surveillance. Among them, station video surveillance only provides functions such as video acquisition, preview, transmission and storage, while the analysis and identification of video content mainly relies on manual implementation.

[0003] However, there are many defects in manually analyzing and identifying video content. For example, the accuracy of analyzing small-sized targets in specific scenarios such as passengers not moving for a long time or important items being moved is not high, and the location of objects cannot be accurately determined. For another example, abnormal situations such as passengers not moving for a long time or important items being moved cannot be discovered in time, resulting in casualties, delayed emergency response, and many other problems. Summary of the invention

[0004] The present invention provides an abnormality determination method, device, equipment, medium and product, which are used to solve the defect in the prior art that manual recognition and analysis of video content leads to failure to timely detect abnormal situations such as passengers being motionless for a long time and important items being displaced, so as to achieve the purpose of effectively and timely determining whether an abnormality occurs in a target to be detected.

[0005] The present invention provides an abnormality determination method, comprising:

[0006] Determining a scene category of video data obtained by a camera device;

[0007] Determine whether the target to be detected corresponding to the scene category needs to be moved, and obtain a first determination result;

[0008] Inputting the video data into a target detection model, and outputting a target detection value of the target to be detected in the video data through the target detection model, wherein the target detection model is trained by the target detection sample values ​​corresponding to the video sample data and the sample target to be detected;

[0009] Based on the target detection value, determining whether the target to be detected moves, and obtaining a second determination result;

[0010] Based on the first judgment result and the second judgment result, it is determined whether the target to be detected has an abnormality.

[0011] According to an abnormality determination method provided by the present invention, the step of inputting the video data into a target detection model and outputting a target detection value of the target to be detected in the video data through the target detection model comprises:

[0012] Cut each frame of the video data to obtain image data, and sort the image data according to timestamps to obtain target image data;

[0013] The target image data is sequentially input into the target detection model, and the target detection value of the target to be detected in each frame of the target image data is sequentially output through the target detection model.

[0014] According to an abnormality determination method provided by the present invention, the target image data is sequentially input into the target detection model, and the target detection value of the target to be detected in each frame of the target image data is sequentially output by the target detection model, including:

[0015] Inputting the target image data into the target detection model in sequence;

[0016] The target detection model performs the following processing on each frame of the target image data: extracting the target features of the target to be detected in the target image data; generating a candidate frame for the target features; mapping the candidate frame to the target image data; determining the target detection value of the target to be detected through the candidate frame on the target image data;

[0017] A target candidate frame is determined from the candidate frames, and a target detection value of the target to be detected corresponding to the target candidate frame is output.

[0018] According to an abnormality determination method provided by the present invention, the step of extracting target features of the target to be detected in the target image data comprises:

[0019] Extracting shallow features of the target image data to obtain shallow features of the target;

[0020] Performing deep feature extraction on the target image data to obtain target deep features;

[0021] The target shallow features and the target deep features are fused to obtain the target features.

[0022] According to an abnormality determination method provided by the present invention, judging whether the target to be detected moves based on the target detection value to obtain a second judgment result includes:

[0023] Based on the target detection value of the target to be detected in the target image data corresponding to the current time, the following calculation process is performed:

[0024] Determine the target detection value of the target to be detected in each frame of target image data at the current time; calculate the target detection value of the target to be detected in the first frame of target image data at the current time, and the first position intersection and union value of the target detection value of the target to be detected in each other frame of target image data at the current time, wherein the target detection value of the target to be detected in the first frame of target image data at the current time is recorded as the current target detection value; determine the target detection value of the target to be detected in each frame of target image data corresponding to a time point after a first preset time; calculate the current target detection value, and the second position intersection and union value of the target detection value of the target to be detected in each frame of target image data corresponding to the time point after the first preset time; when it is determined that the first position intersection and union value and the second position intersection and union value are respectively greater than the first preset threshold value, determine the target detection value of the target to be detected in the last frame of target image data corresponding to at least one time point after a second preset time; calculate the current target detection value, and the third position intersection and union value of the target detection value of the target to be detected in the last frame of target image data corresponding to the at least one time point after the second preset time;

[0025] When it is determined that the third position intersection value is greater than a second preset threshold, determining that the second judgment result is that the target to be detected has not moved;

[0026] When it is determined that the third position intersection value is less than or equal to the second preset threshold, it is determined that the second judgment result is that the target to be detected moves.

[0027] According to an abnormality determination method provided by the present invention, determining whether the target to be detected has an abnormality based on the first determination result and the second determination result includes:

[0028] When the first judgment result is that the target to be detected needs to move, and the second judgment result is that the target to be detected has not moved, it is determined that the target to be detected is abnormal;

[0029] When the first judgment result is that the target to be detected needs to move, and the second judgment result is that the target to be detected moves, it is determined that there is no abnormality in the target to be detected;

[0030] When the first judgment result is that the target to be detected does not need to move, and the second judgment result is that the target to be detected has not moved, it is determined that there is no abnormality in the target to be detected;

[0031] When the first judgment result is that the target to be detected does not need to move, and the second judgment result is that the target to be detected moves, it is determined that an abnormality exists in the target to be detected.

[0032] The present invention also provides an abnormality determination device, comprising:

[0033] A determination module, used to determine the scene category of the video data obtained by the camera device;

[0034] A first judgment module is used to judge whether the target to be detected corresponding to the scene category needs to be moved, and obtain a first judgment result;

[0035] An output module, used to input the video data into a target detection model, and output a target detection value of the target to be detected in the video data through the target detection model, wherein the target detection model is trained by the video sample data and the target detection sample values ​​corresponding to the sample target to be detected;

[0036] A second judgment module is used to judge whether the target to be detected moves based on the target detection value to obtain a second judgment result;

[0037] A determination module is used to determine whether the target to be detected has an abnormality based on the first determination result and the second determination result.

[0038] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any of the above-mentioned abnormality determination methods are implemented.

[0039] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned abnormality determination methods are implemented.

[0040] The present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the steps of any of the above-mentioned abnormality determination methods are implemented.

[0041] The abnormality determination method, device, equipment, medium and product provided by the present invention determine the scene category of the video data obtained by the camera device; determine whether the target to be detected corresponding to the scene category needs to be moved to obtain a first determination result; input the video data into the target detection model, and output the target detection value of the target to be detected in the video data through the target detection model; based on the target detection value, determine whether the target to be detected moves to obtain a second determination result; based on the first determination result and the second determination result, determine whether the target to be detected has an abnormality. The present invention determines whether the target to be detected has an abnormality by determining whether the target to be detected needs to be moved and whether the target to be detected moves, thereby achieving the purpose of effectively and quickly determining whether the target to be detected has an abnormality, and solves the problem that the prior art cannot timely and effectively determine whether the target to be detected has an abnormality by manually identifying and analyzing the video content, such as abnormal situations such as passengers being inactive for a long time and important items being displaced, resulting in casualties, untimely emergency response and many other problems, and effectively improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0043] Figure 1 This is one of the flow charts of the abnormality determination method provided by the present invention;

[0044] Figure 2 This is the second flow chart of the abnormality determination method provided by the present invention;

[0045] Figure 3A One of the schematic diagrams of the target detection network structure provided by the present invention;

[0046] Figure 3B The second schematic diagram of the target detection network structure provided by the present invention;

[0047] Figure 4 This is the third flow chart of the abnormality determination method provided by the present invention;

[0048] Figure 5 It is a structural schematic diagram of the abnormality determination device provided by the present invention;

[0049] Figure 6 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0050] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0051] Combine the following Figure 1-Figure 4 The abnormality determination method of the present invention is described.

[0052] The embodiment of the present invention provides an abnormality determination method, which can be applied to intelligent terminals, such as mobile phones, computers, tablets, etc., and can also be applied to servers. Below, the method is applied to a server as an example for explanation, but it should be noted that it is only an example and is not used to limit the scope of protection of the present invention. Some other descriptions in the embodiments of the present invention are also examples and are not used to limit the scope of protection of the present invention, and will not be described one by one later.

[0053] Specifically, the targets to be detected in the subway, such as target users, fire fighting equipment, etc., are generally small and medium-sized targets within 96 pixels × 96 pixels, and there are almost no larger targets. Existing target detection algorithms have difficulty in identifying a large number of small-sized targets. In some scenes, some background areas, such as portrait posters, are identified as targets to be detected, which deviates from the recognition task. Therefore, the target detection model used in the present invention has stronger detection performance for small-sized targets.

[0054] The specific implementation of the abnormality determination method of the present invention is as follows: Figure 1 As shown:

[0055] Step 101: determine the scene category of video data obtained by a camera device.

[0056] The imaging device includes a camera.

[0057] Specifically, each monitored area includes at least one camera, and the cameras in each monitored area can be set at different angles to avoid the camera being blocked, which may affect the determination result.

[0058] Specifically, the video data sent by each camera in each monitored area is obtained, and the scene categories in each video data are identified and analyzed, wherein the scene categories include: fire fighting scene, public rest scene, etc.

[0059] Step 102, determining whether the target to be detected corresponding to the scene category needs to be moved, and obtaining a first determination result.

[0060] Specifically, the correspondence between the scene category and the target to be detected corresponding to the scene category has been stored in advance, and the correspondence is used to indicate whether the target to be detected corresponding to the scene category needs to be moved. After determining the scene category, based on the pre-stored correspondence, it is determined whether the target to be detected corresponding to the scene category needs to be moved.

[0061] For example, the target to be detected corresponding to the fire scene is fire-fighting items, which do not need to be moved; the target to be detected corresponding to the public rest scene is the target user, who needs to be moved; and so on.

[0062] For example, when the scene category is a fire scene, the first judgment result is that the target to be detected does not need to be moved; when the scene category is a public rest scene, the first judgment result is that the target to be detected needs to be moved.

[0063] Step 103, input the video data into the target detection model, and output the target detection value of the target to be detected in the video data through the target detection model.

[0064] Among them, the target detection model is trained by the video sample data and the target detection sample values ​​corresponding to the sample target to be detected.

[0065] In a specific embodiment, each frame of video data is cut to obtain image data, and the image data is sorted according to timestamps to obtain target image data; the target image data is sequentially input into a target detection model, and the target detection value of the target to be detected in each frame of target image data is sequentially output through the target detection model.

[0066] Specifically, the video data is obtained by collecting video streams using digital IP cameras, hard disk video recorders (DVRs), network hard disk video recorders (NVRs), etc. Specifically, the video streams are obtained according to the Real Time Streaming Protocol (RTSP) to make them conform to a preset file format.

[0067] In a specific embodiment, the target detection value of the target to be detected in the target image data is determined by the target detection model as follows: the target image data is sequentially input into the target detection model according to the timestamp, and the target detection model is used to perform a processing process on each frame of the target image data. Then, the target candidate box is determined from the candidate box through the output layer, and the target detection value of the target to be detected corresponding to the target candidate box is output.

[0068] Among them, the specific implementation of the target detection model for the processing of each frame of target image data is as follows: Figure 2 As shown:

[0069] Step 201: extracting target features of a target to be detected in target image data.

[0070] Before inputting the target image data into the target detection model, a preprocessing operation is performed on the target image data, for example, the target image data is cropped to obtain target image data of a preset size.

[0071] In a specific embodiment, shallow features of the target are extracted by performing shallow feature extraction on the target image data to obtain shallow features of the target; deep features of the target are extracted by performing deep feature extraction on the target image data to obtain deep features of the target; and shallow features of the target and deep features of the target are fused to obtain target features.

[0072] Specifically, feature extraction is performed on target image data through a feature extraction layer of a target detection network to obtain target features.

[0073] Specifically, the video data collected in the subway is used as an example for explanation. The target image data of the present invention is obtained based on the video data in the subway. The deep neural network is used to perform deep feature extraction on the target image data. The deep neural network will extract a large amount of semantic information, which is helpful to distinguish the target to be detected from the background, but it will cause the loss of details, resulting in a decrease in the detection effect of specific scenes. Therefore, in view of the defects of the deep neural network, a shallow neural network is used to perform shallow feature extraction on the target image data, and then the feature maps of the shallow target features and the deep target features of two different scales are fused to form a new feature map, namely the target feature, so that the target to be detected can be more easily identified, as shown in formula (1):

[0074] fa n =pooling(conv n_1 )+pooling(conv n_2 )

[0075] conv n_1 =conv 3×3 (conv 2_2 )+conv 3×3 (deconv 2×2 (conv 4_3 ))

[0076] conv n_2 =conv 3×3 (conv 3_3 )+conv 3×3 (deconv 2×2 (conv 5_3 )) (1)

[0078] Among them, fa n Represents the target feature, pooling (conv n_1 ) represents the fusion convolution conv n_1Perform pooling operation, pooling(conv n_2 ) represents the fusion convolution conv n_2 Perform pooling operation, conv n_1 Represents the convolutional features after fusing the second layer features with the fourth layer features of the network, conv n_2 Represents the convolutional features after fusing the third layer features with the fourth layer features of the network, conv 3×3 (conv 2_2 ) indicates that the convolution operation is performed on the second convolution of the second layer, conv 3×3 (deconv 2×2 (conv 4_3 )) means that the third convolution of the fourth layer is first deconvolved and then convolved. 3×3 (conv 3_3 ) indicates that the third convolution operation is performed on the third layer, conv 3×3 (deconv 2×2 (conv 5_3 )) means that the third convolution of the fifth layer is first deconvolved and then convolved.

[0079] Step 202: Generate a candidate box for the target feature.

[0080] Specifically, the target features are input into the candidate region generation network through the feature extraction layer, a candidate frame is generated for the target features, and the category of the candidate frame is determined through the wavelet neural network, where the categories include: foreground and background.

[0081] Specifically, the image data obtained based on the subway will introduce more noise than the image data obtained from the natural scene, and the partial occlusion in the target image data of the present invention causes some targets to be detected to be annotated with only the visible part, resulting in the detection only treating the part of the target to be detected as a whole. Therefore, the wavelet neural network is used to determine whether the candidate box is the foreground or the background, so as to highlight the details of the problem to be processed, effectively extract local information, and improve the generalization performance of the target detection network. Among them, the wavelet neural network is a part of the candidate region generation network.

[0082] In order to quantify the degree of incompleteness of the target to be detected in the video detection process, the foreground intersection (IoF) criterion is used to construct the function S i Considering the two factors of IoF and confidence, see formula (2) for details:

[0083]

[0084] Among them C i Indicates the confidence of the i-th detection result, I irepresents the corresponding maximum IoF of the i-th detection result, λ represents the balance coefficient used to adjust the IoF and confidence weight, δ is the deviation factor to eliminate the influence of noise, S i Represents the selection probability of the candidate box.

[0085] Among them, the present invention selects the candidate box when the selection probability of the candidate box is greater than the preset probability. In addition, after the candidate box is generated for the target feature using the candidate region generation network, the parameter values ​​of the IoF and confidence of each candidate box are output, and the parameter values ​​of the IoF and confidence are substituted into formula (2) to obtain the selection probability of each candidate box.

[0086] Step 203: Map the candidate box to the target image data.

[0087] Specifically, the target features with the candidate boxes are input into the pooling layer through the candidate region generation network, and the candidate boxes are mapped to the target image data through the pooling layer.

[0088] Step 204: determine the target detection value of the target to be detected through the candidate box on the target image data.

[0089] Specifically, the PrRoIPooling layer is connected to the fully connected layer, and the target detection value of the target to be detected is finally determined through the fully connected layer.

[0090] Specifically, the specific structure of the target detection network can be found in Figure 3A , the target detection network includes: an input layer 301, a feature extraction layer 302, a candidate region generation network 303, a pooling layer 304, a fully connected layer 305 and an output layer 306, wherein the candidate region generation network 303 includes: a wavelet neural network. The input layer 301 is used to input target image data; the feature extraction layer 302 is used to extract target features; the candidate region generation network 303 is used to generate candidate frames; the wavelet neural network is used to determine the category of the generated candidate frames, wherein the categories include: foreground and background; the pooling layer 304 is used to map the candidate frames in the feature map to the target image data; the fully connected layer 305 is used to determine the target detection value of the target to be detected; the output layer 306 is used to determine the target candidate frame from the candidate frame, and output the target detection value of the target to be detected corresponding to the target candidate frame.

[0091] The candidate generation network 303 is a candidate generation network (Region Proposal Network, referred to as RPN). The pooling layer 304 includes PrRoIPooling.

[0092] For details, please refer to the structure, data processing and data interaction of the target detection network. Figure 3BThe target image data is input into the feature extraction layer 302, and the feature extraction layer performs feature extraction operation on the target image data. The feature extraction operation includes: performing convolution operation, deconvolution operation and other operations through the convolution layer (conv) of the feature extraction layer 302 to obtain convolution features. After obtaining the convolution features, the convolution features are pooled through the pooling layer (pooling) of the feature extraction layer 302 to obtain shallow features and deep features. Finally, the target features are obtained by fusing the shallow features and the deep features.

[0093] The feature extraction layer 302 transmits the target features to the candidate generation network 303. The candidate generation network 303 generates multiple candidate boxes and uses the wavelet neural network in the candidate generation network 303 to determine the category of the candidate box. The candidate generation network 303 transmits the feature map after the candidate box is determined to PrRoIPooling304. PrRoIPooling304 maps the candidate box to the target image data, and PrRoIPooling304 is connected to the fully connected layer 305, and the target detection value and classification determination result of the target to be detected are determined through the fully connected layer 305.

[0094] Step 104: Based on the target detection value, determine whether the target to be detected moves to obtain a second determination result.

[0095] In a specific embodiment, the specific process of obtaining the second judgment result is: based on the target detection value of the target to be detected in the target image data corresponding to the current time, a calculation process is performed to obtain a third position intersection value; when it is determined that the third position intersection value is greater than the second preset threshold, the second judgment result is determined to be that the target to be detected has not moved; when it is determined that the third position intersection value is less than or equal to the second preset threshold, the second judgment result is determined to be that the target to be detected has moved.

[0096] The specific implementation of the calculation process is as follows: Figure 4 As shown:

[0097] Step 401, determining the target detection value of the target to be detected in each frame of target image data at the current time.

[0098] There are n frames of target image data at the current time, where n is a frame number greater than 1. For example, the current time is set to 1s, and the n frames of target image data are specifically represented as: the first frame at the 1s, the second frame at the 1s, ..., the nth frame at the 1s.

[0099] Step 402 , calculating the target detection value of the target to be detected in the first frame of target image data at the current time, and the first position intersection and union value of the target detection value of the target to be detected in each of the other frames of target image data at the current time.

[0100] The target detection value of the target to be detected in the first frame of target image data at the current time is recorded as the current target detection value.

[0101] For example, the target detection value of the target to be detected in the first frame of the first second is recorded as loc 1,1 , the target detection value of the target to be detected in the second frame of the first second is recorded as loc 1,2 ,…, the target detection value of the target to be detected in the nth frame of the 1st second is recorded as loc 1,n .

[0102] Among them, the first position intersection value is a set, including: loc 1,1 With loc 1,2 The IoU value of loc 1,1 With loc 1,3 The IoU value of,…,loc 1,1 With loc 1,n The IoU value of the position is the IoU value.

[0103] Step 403 : determining a target detection value of the target to be detected in each frame of target image data corresponding to a time point after the first preset time.

[0104] Wherein, taking the first preset time equal to 5s as an example, the target detection value of the target to be detected in each frame of target image data corresponding to the time point of the 5th second is recorded as: the target detection value of the target to be detected in the first frame of the 5th second, loc 5,1 , the target detection value of the target to be detected in the second frame at the 5th second is recorded as loc 5,2 ,…, the target detection value of the target to be detected in the nth frame at the 5th second is recorded as loc 5,n .

[0105] Step 404 , calculating the current target detection value and the second position intersection value of the target detection value of the target to be detected in each frame of target image data corresponding to the time point after the first preset time.

[0106] Among them, the second position intersection value is a set, including: loc 1,1 With loc 5,1 The IoU value of loc 1,1 With loc 5,2 The IoU value of loc 1,1 With loc 5,3 The IoU value of,…,loc 1,1 With loc 5,n IoU value.

[0107] Step 405 , when it is determined that the first position intersection value and the second position intersection value are respectively greater than the first preset threshold, determine the target detection value of the target to be detected in the last frame of target image data corresponding to at least one time point after the second preset time.

[0108] Specifically, when loc 1,1 With loc 1,2 The IoU value of loc 1,1 With loc 1,3 The IoU value of,…,loc 1,1 With loc 1,n The IoU value of loc 1,1 With loc 5,1 The IoU value of loc 1,1 With loc 5,2 The IoU value of loc 1,1 With loc 5,3 The IoU value of,…,loc 1,1 With loc 5,n When the IoU values ​​of the target image data to be detected are respectively greater than the first preset threshold, the target detection value of the target to be detected in the last frame of target image data corresponding to at least one time point after the second preset time is determined.

[0109] Among them, the second preset time includes 1min, 3min, 5min, 10min, 12min, 15min, etc.

[0110] Step 406 , calculating a third position intersection value of the current target detection value and the target detection value of the target to be detected in the last frame of target image data corresponding to at least one time point after the second preset time.

[0111] Herein, the second preset time includes 1min, 3min, 5min, and 10min as an example for explanation, wherein 1min is equal to 60s, 3min is equal to 180s, 5min is equal to 300s, and 10min is equal to 600s.

[0112] Among them, the intersection value of the third position is a set, including loc 1,1 With loc 60,n The IoU value of loc 1,1 With loc 180,n The IoU value of loc 1,1 With loc 300,n The IoU value of,…,loc 1,1 With loc 600,nIoU value. Specifically, each second preset time corresponds to a respective second preset threshold, for example, 1min corresponds to the second preset first sub-threshold, 3min corresponds to the second preset second sub-threshold, 5min corresponds to the second preset third sub-threshold, and 10min corresponds to the second preset fourth sub-threshold. Moreover, the second preset fourth sub-threshold is greater than the second preset third sub-threshold, the second preset third sub-threshold is greater than the second preset second sub-threshold, and the second preset second sub-threshold is greater than the second preset first sub-threshold.

[0113] When loc 1,1 With loc 60,n The IoU value of is greater than the second preset first sub-threshold, and loc 1,1 With loc 180,n The IoU value of is greater than the second preset fourth sub-threshold, and loc 1,1 With loc 300,n The IoU value of is greater than the second preset third sub-threshold, and loc 1,1 With loc 600,n When the IoU value is greater than the second preset fourth sub-threshold, the second judgment result is determined to be that the target to be detected has not moved; otherwise, when any of the above conditions is not met, the second judgment result is determined to be that the target to be detected has moved.

[0114] Specifically, this embodiment first determines whether the target to be detected corresponding to the scene category needs to be moved, and then determines whether the target to be detected has moved by the target detection value. However, it should be noted that this embodiment does not specifically limit the implementation steps. This is just an example. It is also possible to first determine whether the target to be detected has moved by the target detection value, and then determine whether the target to be detected corresponding to the scene category needs to be moved.

[0115] Step 105: Based on the first judgment result and the second judgment result, determine whether there is an abnormality in the target to be detected.

[0116] In a specific embodiment, determining whether there is an abnormality in the target to be detected specifically includes: when the first judgment result is that the target to be detected needs to move, and the second judgment result is that the target to be detected has not moved, determining that there is an abnormality in the target to be detected; when the first judgment result is that the target to be detected needs to move, and the second judgment result is that the target to be detected has moved, determining that there is no abnormality in the target to be detected; when the first judgment result is that the target to be detected does not need to move, and the second judgment result is that the target to be detected has not moved, determining that there is no abnormality in the target to be detected; when the first judgment result is that the target to be detected does not need to move, and the second judgment result is that the target to be detected has moved, determining that there is an abnormality in the target to be detected.

[0117] Specifically, when it is determined that there is an abnormality in the target to be detected, the staff is prompted in various forms such as voice and text. For example, it is sent to the staff's smart terminal in the form of text messages, or in the form of message push, or in the form of voice alarm, etc., so that the staff can conduct on-site inspections in the monitored area and handle the situation based on the actual situation of the monitored area.

[0118] The present invention utilizes technologies such as artificial intelligence and deep learning to realize real-time intelligent analysis of abnormal situations such as passengers being inactive for a long time and shifting of important items, and promptly reminds relevant staff to go and check when unexpected situations occur. This can effectively reduce casualties, untimely emergency response and other problems caused by abnormal situations such as passengers being inactive for a long time and shifting of important items.

[0119] The abnormality determination method, device, equipment, medium and product provided by the present invention determine the scene category of the video data obtained by the camera device; determine whether the target to be detected corresponding to the scene category needs to be moved to obtain a first determination result; input the video data into the target detection model, and output the target detection value of the target to be detected in the video data through the target detection model; based on the target detection value, determine whether the target to be detected moves to obtain a second determination result; based on the first determination result and the second determination result, determine whether the target to be detected has an abnormality. The present invention determines whether the target to be detected has an abnormality by determining whether the target to be detected needs to be moved and whether the target to be detected moves, thereby achieving the purpose of effectively and quickly determining whether the target to be detected has an abnormality, and solves the problem that the prior art cannot timely and effectively determine whether the target to be detected has an abnormality by manually identifying and analyzing the video content, such as abnormal situations such as passengers being inactive for a long time and important items being displaced, resulting in casualties, untimely emergency response and many other problems, and effectively improves the user experience.

[0120] The abnormality determination device provided by the present invention is described below. The abnormality determination device described below and the abnormality determination method described above can be referred to each other, and the repeated parts are not repeated. The device is specifically as follows: Figure 5 As shown:

[0121] A determination module 501, used to determine the scene category of the video data obtained by the camera device;

[0122] A first judgment module 502 is used to judge whether the target to be detected corresponding to the scene category needs to be moved, and obtain a first judgment result;

[0123] An output module 503 is used to input the video data into a target detection model, and output the target detection value of the target to be detected in the video data through the target detection model, wherein the target detection model is trained by the video sample data and the target detection sample values ​​corresponding to the sample target to be detected;

[0124] A second judgment module 504 is used to judge whether the target to be detected moves based on the target detection value to obtain a second judgment result;

[0125] The determination module 505 is used to determine whether there is an abnormality in the target to be detected based on the first determination result and the second determination result.

[0126] In a specific embodiment, the output module 503 is specifically used to cut each frame of data in the video data to obtain image data, and sort the image data according to timestamps to obtain target image data; the target image data is sequentially input into the target detection model, and the target detection value of the target to be detected in each frame of the target image data is sequentially output through the target detection model.

[0127] In a specific embodiment, the output module 503 is specifically used to input the target image data into the target detection model in sequence; perform the following processing on each frame of target image data through the target detection model: extract the target features of the target to be detected in the target image data; generate a candidate box for the target features; map the candidate box to the target image data; determine the target detection value of the target to be detected through the candidate box on the target image data; determine the target candidate box from the candidate box, and output the target detection value of the target to be detected corresponding to the target candidate box.

[0128] In a specific embodiment, the output module 503 is specifically used to extract shallow features of the target image data to obtain target shallow features; extract deep features of the target image data to obtain target deep features; and fuse the target shallow features and the target deep features to obtain target features.

[0129] In a specific embodiment, the second judgment module is used to perform the following calculation process based on the target detection value of the target to be detected in the target image data corresponding to the current time: determine the target detection value of the target to be detected in each frame of target image data at the current time; calculate the target detection value of the target to be detected in the first frame of target image data at the current time, and the first position intersection value of the target detection value of the target to be detected in each other frame of target image data at the current time, wherein the target detection value of the target to be detected in the first frame of target image data at the current time is recorded as the current target detection value; determine the target detection value of the target to be detected in each frame of target image data corresponding to the time point after the first preset time; calculate the current target detection value and the first position intersection value after the first preset time a second position intersection value of the target detection value of the target to be detected in each frame of target image data corresponding to the time point; when it is determined that the first position intersection value and the second position intersection value are respectively greater than the first preset threshold, determine the target detection value of the target to be detected in the last frame of target image data corresponding to at least one time point after the second preset time; calculate the current target detection value, and the third position intersection value of the target detection value of the target to be detected in the last frame of target image data corresponding to at least one time point after the second preset time; when it is determined that the third position intersection value is greater than the second preset threshold, determine that the second judgment result is that the target to be detected has not moved; when it is determined that the third position intersection value is less than or equal to the second preset threshold, determine that the second judgment result is that the target to be detected has moved.

[0130] In a specific embodiment, the judgment module is specifically used to judge that there is an abnormality in the target to be detected when the first judgment result is that the target to be detected needs to move and the second judgment result is that the target to be detected has not moved; when the first judgment result is that the target to be detected needs to move and the second judgment result is that the target to be detected has moved, judge that there is no abnormality in the target to be detected; when the first judgment result is that the target to be detected does not need to move and the second judgment result is that the target to be detected has not moved, judge that there is no abnormality in the target to be detected; when the first judgment result is that the target to be detected does not need to move and the second judgment result is that the target to be detected has moved, judge that there is an abnormality in the target to be detected.

[0131] Figure 6 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 6As shown, the electronic device may include: a processor 601, a communication interface 602, a memory 603 and a communication bus 604, wherein the processor 601, the communication interface 602 and the memory 603 communicate with each other through the communication bus 604. The processor 601 may call the logic instructions in the memory 603 to execute the abnormality determination method, which includes: determining the scene category of the video data obtained by the camera device; judging whether the target to be detected corresponding to the scene category needs to be moved, and obtaining a first judgment result; inputting the video data into the target detection model, and outputting the target detection value of the target to be detected in the video data through the target detection model, wherein the target detection model is obtained by training the video sample data and the target detection sample value corresponding to the sample target to be detected; judging whether the target to be detected moves based on the target detection value, and obtaining a second judgment result; judging whether the target to be detected has an abnormality based on the first judgment result and the second judgment result.

[0132] In addition, the logic instructions in the above-mentioned memory 603 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0133] The present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the abnormality judgment method provided by the above-mentioned methods, and the method includes: determining the scene category of the video data obtained by the camera device; judging whether the target to be detected corresponding to the scene category needs to be moved, and obtaining a first judgment result; inputting the video data into a target detection model, and outputting the target detection value of the target to be detected in the video data through the target detection model, wherein the target detection model is trained by the video sample data and the target detection sample values ​​corresponding to the sample target to be detected; judging whether the target to be detected moves based on the target detection value, and obtaining a second judgment result; judging whether there is an abnormality in the target to be detected based on the first judgment result and the second judgment result.

[0134] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the above-mentioned abnormality determination methods, the methods comprising: determining the scene category of the video data obtained by a camera device; judging whether the target to be detected corresponding to the scene category needs to be moved, and obtaining a first judgment result; inputting the video data into a target detection model, and outputting a target detection value of the target to be detected in the video data through the target detection model, wherein the target detection model is trained by video sample data and target detection sample values ​​corresponding to the sample target to be detected; judging whether the target to be detected has moved based on the target detection value, and obtaining a second judgment result; judging whether there is an abnormality in the target to be detected based on the first judgment result and the second judgment result.

[0135] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0136] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0137] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. An abnormality determination method, characterized in that: include: Determining a scene category of video data obtained by a camera device; Determine whether the target to be detected corresponding to the scene category needs to be moved, and obtain a first determination result; Inputting the video data into a target detection model, and outputting a target detection value of the target to be detected in the video data through the target detection model, wherein the target detection model is trained by the target detection sample values ​​corresponding to the video sample data and the sample target to be detected; Based on the target detection value, determining whether the target to be detected moves, and obtaining a second determination result; Based on the first judgment result and the second judgment result, determining whether the target to be detected has an abnormality; The step of inputting the video data into a target detection model and outputting a target detection value of the target to be detected in the video data through the target detection model includes: Cut each frame of the video data to obtain image data, and sort the image data according to timestamps to obtain target image data; The target image data is sequentially input into the target detection model, and the target detection model sequentially outputs the target detection value of the target to be detected in each frame of the target image data; The step of determining whether the target to be detected moves based on the target detection value to obtain a second determination result includes: Based on the target detection value of the target to be detected in the target image data corresponding to the current time, the following calculation process is performed: Determine the target detection value of the target to be detected in each frame of target image data at the current time; calculate the target detection value of the target to be detected in the first frame of target image data at the current time, and the first position intersection and union value of the target detection value of the target to be detected in each other frame of target image data at the current time, wherein the target detection value of the target to be detected in the first frame of target image data at the current time is recorded as the current target detection value; determine the target detection value of the target to be detected in each frame of target image data corresponding to a time point after a first preset time; calculate the current target detection value, and the second position intersection and union value of the target detection value of the target to be detected in each frame of target image data corresponding to the time point after the first preset time; when it is determined that the first position intersection and union value and the second position intersection and union value are respectively greater than the first preset threshold value, determine the target detection value of the target to be detected in the last frame of target image data corresponding to at least one time point after a second preset time; calculate the current target detection value, and the third position intersection and union value of the target detection value of the target to be detected in the last frame of target image data corresponding to the at least one time point after the second preset time; When it is determined that the third position intersection value is greater than a second preset threshold, determining that the second judgment result is that the target to be detected has not moved; When it is determined that the third position intersection value is less than or equal to the second preset threshold, it is determined that the second judgment result is that the target to be detected moves.

2. The abnormality determination method according to claim 1, characterized in that: The step of sequentially inputting the target image data into the target detection model, and sequentially outputting the target detection value of the target to be detected in each frame of the target image data through the target detection model, comprises: Inputting the target image data into the target detection model in sequence; The target detection model performs the following processing on each frame of the target image data: extracting the target features of the target to be detected in the target image data; generating a candidate frame for the target features; mapping the candidate frame to the target image data; determining the target detection value of the target to be detected through the candidate frame on the target image data; A target candidate frame is determined from the candidate frames, and a target detection value of the target to be detected corresponding to the target candidate frame is output.

3. The abnormality determination method according to claim 2, characterized in that: The step of extracting target features of the target to be detected from the target image data comprises: Extracting shallow features of the target image data to obtain shallow features of the target; Performing deep feature extraction on the target image data to obtain target deep features; The target shallow features and the target deep features are fused to obtain the target features.

4. The abnormality determination method according to claim 1, characterized in that: The determining whether the target to be detected has an abnormality based on the first judgment result and the second judgment result includes: When the first judgment result is that the target to be detected needs to move, and the second judgment result is that the target to be detected has not moved, it is determined that the target to be detected is abnormal; When the first judgment result is that the target to be detected needs to move, and the second judgment result is that the target to be detected moves, it is determined that there is no abnormality in the target to be detected; When the first judgment result is that the target to be detected does not need to move, and the second judgment result is that the target to be detected has not moved, it is determined that there is no abnormality in the target to be detected; When the first judgment result is that the target to be detected does not need to move, and the second judgment result is that the target to be detected moves, it is determined that an abnormality exists in the target to be detected.

5. An abnormality determination device, using the abnormality determination method according to any one of claims 1 to 4, characterized in that: include: A determination module, used to determine the scene category of the video data obtained by the camera device; A first judgment module is used to judge whether the target to be detected corresponding to the scene category needs to be moved, and obtain a first judgment result; An output module, used to input the video data into a target detection model, and output a target detection value of the target to be detected in the video data through the target detection model, wherein the target detection model is trained by the video sample data and the target detection sample values ​​corresponding to the sample target to be detected; A second judgment module is used to judge whether the target to be detected moves based on the target detection value to obtain a second judgment result; A determination module is used to determine whether the target to be detected has an abnormality based on the first determination result and the second determination result.

6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the abnormality determination method according to any one of claims 1 to 4 are implemented.

7. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the abnormality determination method according to any one of claims 1 to 4 are implemented.

8. A computer program product, comprising a computer program stored on a non-transitory computer-readable storage medium, wherein the computer program comprises program instructions, and when the program instructions are executed by a computer, the steps of the abnormality determination method according to any one of claims 1 to 4 are implemented.