Method and system for zero sample cross domain video anomaly detection

By training the neural network in the zero-sample cross-domain situation, using the future frame prediction module and the normality classifier module to generate pseudo-abnormal frames and loss functions, the problem of lack of data in cross-domain video anomaly detection is solved, and the problem is achieved without Video anomaly detection in the context of target domain data improves detection accuracy and adaptability.

CN118765398APending Publication Date: 2024-10-11MITSUBISHI ELECTRIC CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202280092603.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-03-01
Filing Date
2022-11-22
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

Existing cross-domain video anomaly detection methods require access to normal video data in the source domain and target domain. Video anomaly detection cannot be effectively performed when data is lacking. It is especially difficult to collect video data in public places due to security and privacy considerations.

Method used

A zero-sample cross-domain video anomaly detection system is used to train the neural network and use the future frame prediction module and the normal classifier module to generate pseudo-abnormal frames and loss functions to predict and classify video frames to achieve target-free domain data Video anomaly detection under circumstances.

Benefits of technology

It realizes video anomaly detection without target domain data, improves the accuracy and adaptability of detection, and overcomes the shortcomings of existing methods that rely on multi-domain data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118765398A_ABST
    Figure CN118765398A_ABST
Patent Text Reader

Abstract

Embodiments of the invention disclose a method and system for performing video anomaly detection by training a neural network. The method includes collecting a video of one or more digital images from a source domain. The method includes obtaining an image set of foreground objects present in a video. Further, the method includes training a first neural network to predict a frame of the one or more digital images in the video. A first neural network is trained using a future frame prediction module that predicts frames of the one or more digital images. The method includes training a second neural network to classify the predicted frame as normal and classify the synthesized pseudo-abnormal frame as abnormal. The method includes performing video anomaly detection based on training of the first neural network and the second neural network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to video anomaly detection, and more particularly, to a method and system for zero-shot cross-domain video anomaly detection. Background Art

[0002] Compared with supervised or weakly supervised video anomaly detection (VAD), unsupervised VAD is widely used in security and surveillance applications. This is mainly because unsupervised VAD methods do not need to train videos containing abnormal events, which are rare and laborious to annotate. Therefore, in the case of only normal events in the training video, unsupervised VAD methods mark activities that cannot be explained by the trained model as abnormal during testing. Recently, unsupervised VAD methods in cross-domain settings have been introduced. Given video data containing only normal events from the source domain, the goal is to perform VAD in different target domains. However, these cross-domain VAD (xVAD) works are few-shot scene adaptation methods that require access to both source and target domain VAD normal data. This assumption becomes a serious problem when there is no access to the required data (videos of normal activities) for model learning and adaptation. For example, due to security and privacy considerations, third-party companies may not be allowed to collect or access video data in public places. This renders current xVAD work invalid because these methods rely heavily on at least a few target domains that can be trained with data sets. Existing solutions to the video anomaly detection (VAD) problem require access to normal training videos acquired from both the source and target domains. As an example of the VAD problem, the source and target domains can be train station and airport scenes. At training time, only normal videos (no abnormal videos) acquired at train stations and airports are available. At test time, the task is to identify anomalies in a test video acquired at an airport (target domain), and the test video includes both normal and abnormal videos. Summary of the invention

[0003] Technical issues

[0004] Therefore, in order to solve the aforementioned problems, an improved xVAD system and method that can overcome the above-mentioned disadvantages is needed.

[0005] Solution to the problem

[0006] The present disclosure provides a method and system for performing video anomaly detection.

[0007] Some embodiments are based on the recognition that there is a need for zero-shot cross-domain video anomaly detection without any target domain data.

[0008] To this end, some embodiments are based on the implementation of a zero-shot cross-domain video anomaly detection (zVAD) system. The zVAD system collects videos of one or more digital images from a source domain. Moreover, it obtains a set of images of foreground objects present in the video. The video of the source domain corresponds to at least one of the following: task-irrelevant or task-relevant videos, videos related to normal events, publicly available videos, and videos of multiple images combined together.

[0009] Some embodiments are based on such an implementation, that is, the zVAD system of the present disclosure is configured to perform training of a first neural network to predict frames of the one or more digital images in the video. The first neural network is trained using a future frame prediction module that predicts frames of the one or more digital images. The future frame prediction module includes a generator and a discriminator, and the generator includes an encoder, a memory module, and a decoder. The future frame prediction module is associated with an object-aware anomaly synthesis module, wherein the object-aware anomaly synthesis module is configured to generate pseudo anomaly frames and learn features from normal frames relative to the pseudo anomaly frames.

[0010] Some embodiments are based on such an implementation, that is, the zVAD system of the present disclosure is configured to perform training of a second neural network. The second neural network is trained to classify a predicted frame of a digital image in the one or more digital images as normal, and to classify a predicted frame of a digital image in the one or more digital images as abnormal when a portion of it is corrupted by an image from a set of images of a foreground object. The second neural network is trained using a normalcy classifier module. The normalcy classifier module generates multiple loss functions, which are used to train the second neural network. The multiple loss functions include at least one of the following: normalcy loss, relative normalcy loss, attention affirmation loss, and relative attention affirmation loss. The normalcy classifier module uses the predicted frame received from the future frame prediction module and the one or more pseudo-anomalous frames generated by the object-aware anomaly synthesis module to predict the probability of normality and abnormality in the video.

[0011] Therefore, some embodiments disclose a method for performing video anomaly detection by training a neural network. The method includes: collecting a video of one or more digital images from a source domain. The method includes: obtaining an image set of a foreground object present in the video. The foreground object corresponds to at least one of a group of people and a single person. In addition, the method includes: training a first neural network to predict the frames of the one or more digital images in the video. The first neural network is trained using a future frame prediction module that predicts the frames of the one or more digital images. In addition, the method includes: training a second neural network to classify the predicted frames of the digital images in the one or more digital images as normal, and classifying the predicted frames of the digital images in the one or more digital images as abnormal when their parts are damaged by images from the image set of the foreground object. The second neural network is trained using a normal classifier module. Moreover, the method includes: performing video anomaly detection based on the training of the first neural network and the second neural network.

[0012] The present disclosure is further described in the following detailed description by way of non-limiting examples of exemplary embodiments of the present disclosure, with reference to the various accompanying drawings mentioned, wherein like reference numerals represent similar parts throughout the several views of the drawings. The drawings shown are not necessarily drawn to scale, with emphasis generally being placed upon illustrating the principles of the presently disclosed embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] [ Figure 1 ]

[0014] Figure 1 A schematic block diagram of a training system for video anomaly detection according to some embodiments of the present disclosure is shown.

[0015] [ Figure 2A ]

[0016] Figure 2A A block diagram of a training system for performing training of a first neural network according to some embodiments of the present disclosure is shown.

[0017] [ Figure 2B ]

[0018] Figure 2B A block diagram for training a second neural network according to some embodiments of the present disclosure is illustrated.

[0019] [ Figure 2C ]

[0020] Figure 2C A block diagram of a normality classifier module according to some embodiments of the present disclosure is illustrated.

[0021] [ Figure 3 ]

[0022] Figure 3 A representation of one or more pseudo anomaly frames according to some embodiments of the present disclosure is shown.

[0023] [ Figure 4 ]

[0024] Figure 4 The embodiment according to the present disclosure is shown Figure 1 An exemplary representation of the working of the training system is shown.

[0025] [ Figure 5 ]

[0026] Figure 5 A block diagram for jointly training a first neural network and a second neural network to perform video anomaly detection is shown according to some embodiments of the present disclosure.

[0027] [ Figure 6 ]

[0028] Figure 6 A diagram depicting various embodiments of the present disclosure for use Figure 4 A flow chart of the disclosed method of training a system to perform video anomaly detection.

[0029] [ Figure 7 ]

[0030] Figure 7 A use case for detecting anomalies using a training system according to some example embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0031] In the following description, for the purpose of explanation, many specific details are set forth in order to provide a detailed understanding of the present disclosure. However, it should be understood by those skilled in the art that the present disclosure can be specifically practiced without the need for these specific details. In other cases, the devices and methods are shown only in block diagram form to avoid making the present disclosure unclear. It is contemplated that various changes may be made to the functions and arrangement structures of the elements without departing from the spirit and scope of the disclosed subject matter set forth in the appended claims.

[0032] As used in this specification and claims, the terms "for example," "for example," and "such as," and the verbs "include," "have," "comprises," and their other verb forms, when used in conjunction with a list of one or more components or other items, are to be interpreted as open ended, meaning that the list is not to be considered to exclude other additional components or items. The term "based on" means based at least in part on. In addition, it is to be understood that the terms and terminology used herein are for descriptive purposes and should not be considered limiting. Any headings used in this specification are for convenience only and have no legal or limiting effect.

[0033] Specific details are given in the following description to provide a thorough understanding of the embodiments. However, it will be appreciated by those skilled in the art that these embodiments can be put into practice without these specific details. For example, the systems, processes, and other elements in the disclosed subject matter can be shown as components in block diagram form to avoid obscuring these embodiments with unnecessary details. In other cases, well-known processes, structures, and technologies can be shown without unnecessary details to avoid obscuring these embodiments. In addition, the same reference numerals and marks in the various drawings represent the same elements.

[0034] System Overview

[0035] Figure 1 A schematic block diagram 100 illustrating a training system 104 for video anomaly detection according to some embodiments of the present disclosure is shown.

[0036] Training system 104 includes: memory 106, first neural network 108, second neural network 110, and processor 112. Memory 106 includes at least one of the following: RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage, or any other storage medium that can be used to store the desired information and can be accessed by training system 104. Memory 106 can include non-transitory computer storage media in the form of volatile and / or non-volatile memory. Memory 106 can be removable, non-removable, or a combination thereof. Exemplary memory devices include solid-state memory, hard disk drives, optical disk drives, etc. Memory 106 stores instructions that are executed by processor 112. Execution of the instructions by processor 112 causes training system 104 to perform the set of actions explained below.

[0037] The training system 104 collects source domain data such as videos of one or more digital images from a source domain 102 to perform video anomaly detection in a target domain. In an example, the source domain 102 is any location such as an airport, a parking area of ​​a shopping mall, a train station, etc. The video of the source domain 102 corresponds to at least one of the following items: task-irrelevant or task-relevant videos, videos related to normal events, publicly available videos, and videos of multiple images combined together. The source domain data only includes normal events and does not include abnormal events. For example, a car driving on a street is considered a normal event, but if a car enters a pedestrian area, this is considered an abnormal event, and a person running on a sports field is considered a normal event, while a person running out of a bank is considered an abnormal event.

[0038] Typically, the target domain corresponds to any location where video anomaly detection is performed. In the example, the task corresponds to video anomaly detection. In addition, the training system 104 obtains an image set of foreground objects present in the video collected from the source domain 102. The foreground object corresponds to at least one of a group of people and a single person. The source domain 102 may be different from the target domain. The first neural network 108 and the second neural network 110 are trained using the source domain data as training data to perform video anomaly detection.

[0039] In addition, the first neural network 108 is trained to predict frames of the one or more digital images in the video. Moreover, the second neural network 110 is trained to classify the predicted frames of the digital images in the one or more digital images as normal or abnormal. For example, the predicted frames of the digital images in the one or more digital images are classified as abnormal if their parts are damaged by images from the image set of foreground objects. Moreover, video anomaly detection is performed based on the training of the first neural network 108 and the second neural network 110. The anomaly in the video corresponds to, but is not limited to, anger, fighting, conflict, etc. of two or more objects. In Figure 2A , Figure 2B and Figure 2C The training of the first neural network 108 and the second neural network 110 is further explained in FIG.

[0040] Figure 2A An environment 200A is illustrated for performing training of a first neural network 108 according to some embodiments of the present disclosure. The zVAD system 104 is associated with a future frame prediction module 202. The first neural network 108 is trained using the future frame prediction module 202 that predicts one or more frames of the one or more digital images.

[0041] The future frame prediction module 202 includes a generator 206 and a discriminator 212. In addition, the reconstruction loss L G and the identification loss LD The first neural network is trained by one or a combination of: G To train the generator 206. Calculate the identification loss L D The generator 206 collects videos (v1, v2, ..., v3) from the source domain 204 (with normal events). T ) input frame. The generator 206 includes an encoder 206A, a memory module 206B, and a decoder 206C. The encoder 206A converts the video (v1, v2, ..., v T ) as input and sends the encoded output of the video to the memory module 206B. The memory module 206B learns to register prototype normal features during training. The memory module 206B takes the output from the encoder 206A as input and further provides the output to the decoder 206C. The decoder 206C decodes the output received from the memory module 206B and predicts one or more future frames 210 used to train the first neural network 108. The one or more future frames 210 are represented as:

[0042]

[0043] Where G in G(·) represents the generator 206. The generator is modeled as a memory-enhanced generative model G(·) with weights θ G The memory module 206B is denoted as memory module M, and the discriminator 212 is denoted as D(·), with weights θ D .

[0044] In the least squares GAN setting, for the discriminator (D) 212 and the generator reconstruction loss L G and the discriminator loss L D , to the one or more predicted future frames 210 The discriminator 212 is trained to distinguish the one or more predicted future frames 210 from one or more ground truth frames v T+1 208.

[0045] Figure 2BA block diagram 200B for training the second neural network 110 according to some embodiments of the present disclosure is illustrated. The future frame prediction module 202 is associated with a normality classifier module 214. The generator 206 of the future frame prediction module 202 is regularized using the normality classifier module 214. The second neural network 110 is trained using the normality classifier module 214. In addition, the normality classifier module 214 is associated with an object-aware anomaly synthesis module 216. The object-aware anomaly synthesis module 216 combines random frames u from a task-independent (TI) dataset into a normality classifier module 214. t As input. Typically, the video research community has access to task-independent datasets. However, it is difficult to collect different types of abnormal activity scenes. Therefore, the TI dataset is introduced for the training system 104 disclosed herein. The TI dataset can be freely obtained from different video downstream tasks or non-VAD tasks, such as video classification, action recognition, the Internet, etc. Examples of such datasets are UCF101 and the Human Movement Database (HMDB). Typically, UCF101 is an action recognition dataset of realistic action videos with 101 action categories collected from YouTube and other video platforms. The UCF101 dataset is an extension of the UCF50 dataset with 50 action categories. The action categories of the UCF101 dataset include, but are not limited to, archery, shooting, cycling, bowling, boxing, cricket, cutting vegetables, diving, fencing, and ground gymnastics.

[0046] In addition, HMDB is a large collection of real-life videos from various sources, including movies and web videos. The dataset consists of 6849 video clips from 51 action categories (such as "jump", "kiss", and "laugh"), where each category contains at least 101 clips. Finally, the HMBD dataset is used to learn human activities for VAD tasks.

[0047] In addition, the object-aware anomaly synthesis module 216 includes a randomly initialized convolutional neural network (randomly initialized CNN) 218. The randomly initialized CNN 218 helps extract objects from the input video frames. t ) and TI datasets (u t ) video frame. The randomly initialized CNN 218 creates one or more pseudo anomaly frames by applying an object-aware shear blending operation to the located objects 220 The object-aware cut-blending operation is represented as:

[0048] Object-aware cut-blend operation = (positioned object * u t , v t ).

[0049] Finally, the object-aware anomaly synthesis module 216l uses the randomly initialized CNN 218 to create the one or more pseudo anomaly frames and a truth mask. An example of the randomly initialized CNN 218 is an untrained randomly initialized ResNet-50 convolutional neural network, and other network architectures (e.g., DenseNet, ResNet-101, etc.) may also be used.

[0050] The one or more pseudo exception frames is sent to the normality classifier module 214. Figure 2C The normal classifier is further explained in .

[0051] Figure 2C A block diagram 200C of the normality classifier module 214 according to some embodiments of the present disclosure is illustrated. The normality classifier module 214 has a normality classifier N. The normality classifier N receives the one or more pseudo anomaly frames from the object-aware anomaly synthesis module 216. In addition, the normality classifier N receives the predicted future frame 210 from the future frame prediction module 202. The normality classifier module 214 utilizes the one or more prediction frames received from the future frame prediction module 202 to and the one or more pseudo anomaly frames generated by the object-aware anomaly synthesis module 216 The normality classifier module 214 is jointly trained with the predicted normal video frames and pseudo abnormal video frames to detect abnormalities in the video.

[0052] The normal classifier N is optimized by a variety of loss functions. The multiple loss functions include the normal loss L N 214A, relative normal loss L RN 214B, attention confirmation loss 222, and relative attention confirmation loss 224. For clarity, the predicted future frame 210 The subscript mark is

[0053] A normal frame and the one or more pseudo abnormal frames The data distributions of are denoted as ρ and κ respectively. In this example, the predicted future frames are given and pseudo exception frames In addition, the normal loss L N 214A uses the following loss function to optimize the normal classifier N to increase Classified as "normal" and Probability of being classified as "anomalous":

[0054]

[0055] Abnormal events are considered as deviations from normal events. The key missing property of the above equation is that as abnormal events are classified as normal The probability of normal events being classified as normal The probability of should increase, and vice versa. [ is normal] maximizes the difference, the normal classifier N makes [ Compare More normal] Maximize ( [·] represents a probability operator). The novel relative normality loss 214B is shown as follows:

[0056]

[0057] in, is the predicted future frame, and It is a pseudo exception frame.

[0058] Normality classifier N for normal frames and abnormal frames The decision is based on The entire scene is classified as "normal" for consideration, as well as The foreign objects introduced by the object-aware anomaly synthesis module 216 are classified as "anomalous". This strategy allows obtaining foreign objects in In addition, the object-aware anomaly synthesis module 216 creates The truth mask of the localized object (i.e., the mask 220 with the localized object). The normal classifier module 214 is used to train the second neural network. The normal classifier module generates the plurality of loss functions, which are utilized to train the second neural network. The plurality of loss functions include normal loss, relative normal loss, attention confirmation loss, and relative attention confirmation loss.

[0059] Furthermore, the feature map from the last convolutional layer of the normal classifier N is extracted to obtain the attention maps of normal frames and abnormal frames respectively. and “A” represents the operation of extracting the attention map from the last convolutional layer of the normal classifier N. Next, we use the attention confirmation loss L AA 222 to implement the constraint:

[0060]

[0061] in, is a tensor having value 1 at the locations of foreign objects in mask 220 but 0 elsewhere, and is a string with value 1 at all positions Tensors of the same size.

[0062] With L RN Similar to the concept, a relative attention confirmation loss L is proposed RAA 224, the purpose of which is to learn the relative difference between the attention map from the normal frame and the attention map from the abnormal frame. In addition, the normal classifier N creates a first attention map pair and And the second attention map and Function g represents the A series of transformations (color jitter, random affine, and random perspective) are applied. The relative difference between the attention paid to the "enhanced normal" frame relative to the "normal" frame should be smaller than the relative difference between the attention paid to the "pseudo-anomaly" frame. Thus, this difference is enforced using a margin penalty m that produces both the intra-class closeness between normal and enhanced normal frames (i.e., m=0) and the inter-class variance between normal and pseudo-anomaly frames (i.e., m>0). L RAA The margin penalty is implemented by:

[0063]

[0064] Among them, for normal frames and enhanced frames Label i is set to 1, and for a pseudo exception frame The label is set to 0. Here, Ψ yi =||W yi ||||vec(A(x))||cos(ω yi ) is W yi ∈R hw×2 With vec(A(x))∈R hw (where ω yi ∈[0,π]). vec is a vectorized operation. ||W yi || and ||vec(A(x))|| are normalized to 1, which leads to ψ yi = cos(ω yi ).

[0065] The training system uses the generator G and the reconstruction loss L G , discriminator D and discriminator loss L D, and the sum of the normal classifier N and the above four losses associated with N (denoted as L N ) for end-to-end training. The training system 104 performs video anomaly detection based on the training of the first neural network 108 and the second neural network 110. The second neural network 110 is trained using the normal classifier module 214. The normal classifier module 214 utilizes the one or more predicted frames 210 received from the future frame prediction module 202. and the one or more pseudo anomaly frames generated by the object-aware anomaly synthesis module 216 To predict the probability of normal and abnormal in the video. Figure 3 One or more pseudo-anomaly frames are shown in .

[0066] Figure 3 The one or more pseudo exception frames according to some embodiments of the present disclosure are shown 300. The representation 300 includes six video frames A, B, C, D, E, and F. An object is localized from each of the video frames (A to F). In step 302, an untrained ResNet-50 convolutional neural network is used to perform object localization on each of the video frames (A to F). In step 304, after performing object localization, the one or more pseudo anomaly frames are generated for each of the video frames A, B, C, D, E, and F. In addition, in step 306, a pseudo abnormal frame associated with each of the video frames A, B, C, D, E, and F is generated. The corresponding truth mask.

[0067] Figure 4 An exemplary representation 400 of the operation of the training system 104 according to an embodiment of the present disclosure is shown. The representation 400 utilizes Figure 2A , Figure 2B and Figure 2C The components of the training system 104 are used to explain the operation of the training system 104. In step 402, one or more video frames (v1, v2, ..., v3) are received from a source domain. T ). At step 404, the one or more video frames are then sent to the future prediction module 202 for prediction of a plurality of future frames 412. The plurality of future frames 412 are then sent to the normality classifier module 214. In addition, at step 406, a pseudo anomaly frame is generated by the object-aware anomaly synthesis module 216. The normality classifier module 214 utilizes the plurality of future frames 412 and the pseudo anomaly frames To predict the probability of normality or abnormality in the one or more video frames. In step 408, the normality classifier module 214 classifies normal video frames and abnormal video frames from the one or more video frames. In step 410, the normality classifier module 214 uses the predicted normal video frames and pseudo abnormal video frames to jointly train the first neural network 108 and the second neural network 110 to detect abnormalities in the video. In addition, video abnormality detection is performed based on the training of the first neural network 108 and the second neural network 110.

[0068] Figure 5 A block diagram 500 is shown for jointly training a first neural network 108 and a second neural network 110 to perform video anomaly detection 502 according to some embodiments of the present disclosure. The first neural network is trained with the aid of a future frame prediction module 202. The future frame prediction module 202 predicts the one or more predicted future frames 210. Furthermore, the one or more future frames 210 are utilized by the normality classifier. Furthermore, the normality classifier receives the pseudo anomaly frames from the object-aware anomaly synthesis module 216. The second neural network 110 is trained using the normality classifier module 214. The normality classifier module 214 utilizes the one or more prediction frames 210 received from the future frame prediction module 202. and the one or more pseudo anomaly frames generated by the object-aware anomaly synthesis module 216 The joint training of the first neural network 108 and the second neural network 110 facilitates video anomaly detection 502 .

[0069] Figure 6 A flow chart depicting a method 600 for performing video anomaly detection according to various embodiments of the present disclosure is shown. The method 600 is performed by the training system 104. The method 600 starts at step 602. After step 602, at step 604, the method 600 includes: collecting a video of the one or more digital images from the source domain 102. The video of the source domain 102 corresponds to at least one of the following: a task-irrelevant video or a task-relevant video, a video related to a normal event, a publicly available video, and a video of multiple images combined together.

[0070] At step 606, the method includes obtaining an image set of foreground objects present in the video. The foreground object corresponds to at least one of a group of people and a single person. At step 608, the method includes training the first neural network 108 to predict the frames of the one or more digital images in the video. The first neural network 108 is trained using a future frame prediction module 202 that predicts the frames of the one or more digital images. The future frame prediction module 202 includes a generator 206 and a discriminator 212. The first neural network 108 is trained using one or a combination of a reconstruction loss and a discrimination loss. The reconstruction loss is calculated to train the generator 206. The discrimination loss is calculated to train the discriminator 212. The generator 206 includes an encoder 206A, a memory module 206B, and a decoder 206C. The future frame prediction module 202 is associated with an object-aware anomaly synthesis module 216. The object-aware anomaly synthesis module 216 generates pseudo anomaly frames and learns features from normal frames relative to anomaly frames.

[0071] At step 610, the method includes: training the second neural network 110 to classify the predicted frame of the digital image in the one or more digital images as normal, and classifying the predicted frame of the digital image in the one or more digital images as abnormal when its part is damaged by an image in the image set of the foreground object. The second neural network is trained using the normal classifier module 214. The normal classifier module 214 generates a plurality of loss functions, which are used to train the second neural network 110. The plurality of loss functions include normal loss, relative normal loss, attention confirmation loss, and relative attention confirmation loss. The normal classifier module 214 uses the predicted frame received from the future frame prediction module 202 and the one or more pseudo abnormal frames generated by the object-aware abnormal synthesis module 216 to predict the probability of normal and abnormal in the video. The normal classifier module 214 is jointly trained with the predicted normal video frame and the pseudo abnormal video frame to detect abnormalities in the video.

[0072] At step 612 , the method includes performing video anomaly detection based on the training of the first neural network 108 and the second neural network 110 . The method terminates at step 614 .

[0073] Figure 7A use case for detecting anomalies using the training system 104 according to some example embodiments of the present disclosure is shown. The zVAD system 104 can be integrated into a video surveillance system for detecting anomalies at different locations. The use case includes a scene 700 of a parking area. The scene 700 includes a video surveillance camera 702, a person A, and a person B. Persons A and B are found fighting in the parking area scene 700. The video of the fighting person A and person B is captured in real time by the video surveillance camera 702. In addition, the video is detected as an anomaly based on the trained neural network of the training system 104. Moreover, the training system 104 sends a video anomaly detection notification to the server and takes appropriate actions immediately.

[0074] The technical personnel in the field of these inventions who benefit from the teachings presented in the foregoing description and the associated drawings will think of many modifications and other embodiments of the invention set forth herein. It is to be understood that the present invention is not limited to the specific embodiments disclosed, and its modifications and other embodiments are intended to be included within the scope of the appended claims. Moreover, although the foregoing description and the associated drawings describe example embodiments in the context of certain example combinations of elements and / or functions, it should be appreciated that different combinations of elements and / or functions can be provided by alternative embodiments without departing from the scope of the appended claims. For example, in this regard, different combinations of the elements and / or functions are also contemplated as being able to be set forth in some of the appended claims compared to the elements and / or functions explicitly described above. Although specific terms are employed herein, these terms are used only in a general and descriptive sense, and not for the purpose of limitation.

Claims

1. A computer-implemented method for performing video anomaly detection training, the method comprising the following steps: obtaining a video of one or more digital images from a source domain; Obtaining an image set of foreground objects present in the video; training a first neural network to predict one or more frames of the one or more digital images in the video; training a second neural network to classify the predicted one or more frames as at least one of normal and abnormal, wherein the predicted one or more frames of the one or more digital images are classified as normal if they are not corrupted, and the predicted one or more frames of the one or more digital images are classified as abnormal if they are partially corrupted by an image from the set of images of a foreground object; as well as The video anomaly detection is performed based on training the first neural network and the second neural network.

2. The method according to claim 1, wherein: The foreground object corresponds to at least one of a group of people and a single person.

3. The method according to claim 1, wherein: The first neural network is trained using a future frame prediction module that predicts frames of the one or more digital images, wherein the future frame prediction module includes a generator and a discriminator, wherein the generator includes an encoder, a memory module, and a decoder.

4. The method according to claim 3, wherein: The first neural network is trained using one or a combination of a reconstruction loss and a discrimination loss, wherein the reconstruction loss is calculated to train the generator, and wherein the discrimination loss is calculated to train the discriminator.

5. The method according to claim 3, wherein: The future frame prediction module is associated with an object-aware anomaly synthesis module, wherein the object-aware anomaly synthesis module generates pseudo anomaly frames and learns features from normal frames relative to anomaly frames.

6. The method according to claim 5, wherein: The object-aware anomaly synthesis module is configured to generate one or more pseudo anomaly frames and a ground truth mask.

7. The method according to claim 1, wherein: The second neural network is trained using a normality classifier module, wherein the normality classifier module is configured to generate multiple losses, the multiple losses including: a normality loss, a contrastive normality loss, a contrastive attention confirmation loss, and an attention confirmation loss.

8. The method of claim 7, wherein the normality classifier module predicts the probability of normality and abnormality in the video using the predicted frame received from the future frame prediction module and the pseudo abnormal frame generated by the object-aware abnormality synthesis module.

9. The method according to claim 1, wherein: The first neural network and the second neural network are jointly trained using the predicted normal video frames and pseudo abnormal video frames with the help of a normality classifier module to detect abnormalities in the video.

10. The method according to claim 1, wherein: The video of the source domain corresponds to at least one of: a task-irrelevant video, a task-relevant video, a video related to a normal event, a publicly available video, and a video of a plurality of images combined together.

11. A training system, comprising: at least one processor; and a memory having instructions stored thereon, which, when executed by the at least one processor, cause the training system to: collecting a video of one or more digital images of a source domain; Obtaining an image set of foreground objects present in the video; training a first neural network based on a sequence of the one or more digital images in the video to predict one or more frames of the one or more digital images in the video; as well as training a second neural network to classify the predicted one or more frames as at least one of normal and abnormal, wherein the predicted one or more frames of the one or more digital images are classified as normal if they are not damaged, and wherein the predicted one or more frames of the one or more digital images are classified as abnormal if a portion thereof is damaged by an image from the set of images of a foreground object; and performing video anomaly detection based on the training of the first neural network and the second neural network.

12. The training system according to claim 11, wherein: The first neural network is trained using a future frame prediction module that predicts frames of the one or more digital images, wherein the future frame prediction module includes a generator and a discriminator, wherein the generator includes an encoder, a memory module, and a decoder.

13. The training system according to claim 11, wherein: The first neural network is trained using one or a combination of a reconstruction loss and a discrimination loss, wherein the reconstruction loss is calculated to train the generator, and wherein the discrimination loss is calculated to train the discriminator.

14. The training system according to claim 11, wherein: The second neural network is trained using a normality classifier module, wherein the normality classifier module generates multiple losses, and the multiple losses are used to train the second neural network, wherein the multiple losses include a normality loss, a relative normality loss, an attention confirmation loss, and a relative attention confirmation loss.

15. The training system according to claim 14, wherein: The normality classifier module is associated with an object-aware anomaly synthesis module, wherein the object-aware anomaly synthesis module generates pseudo anomaly frames and learns features from normal frames relative to anomaly frames.

16. The training system of claim 14, wherein the normality classifier module predicts probabilities of normality and abnormality in the video using the predicted frames received from the future frame prediction module and the pseudo anomaly frames generated by the object-aware anomaly synthesis module.

17. The training system according to claim 11, wherein: The video of the source domain corresponds to at least one of: a task-irrelevant or task-relevant video, a video related to a normal event, a publicly available video, and a video of a plurality of images combined together.

Citation Information

Patent Citations

  • Video anomaly detection method based on foreground and background separation

    CN113947612A

  • Display device and manufacturing method thereof

    KR1020230033137A