Abnormal event detection in videos using generative adversarial nets
Paper · 2017 · Mahdyar Ravanbakhsh, Moin Nabi, Enver Sangineto et al.
Summary
An unusual event in surveillance footage is difficult to define in advance. A vehicle moving through a pedestrian area may be abnormal even when its movement is smooth, while ordinary pedestrians can look different because of position, occlusion, or image quality. This paper studies how to detect such departures from the usual activity of a crowded scene without collecting examples of every event that should trigger an alarm. Its starting point is practical: normal video is easier to obtain than a representative collection of unusual incidents. The authors therefore train on normal activity and look for places where a learned account of that activity fails.
The method uses conditional generative adversarial networks, or conditional GANs. A generator learns to produce an image from a related input, while a discriminator learns to distinguish genuine input–output pairs from pairs containing a generated output. The paper trains separate networks for opposite directions of translation. One receives a video frame and generates its optical flow, an image representation of movement between adjacent frames. The other receives optical flow and generates the corresponding appearance image. Both learn from normal training videos. During detection, the generators translate the observed frame and motion into their expected counterparts. Regions that depart from learned normality may be reconstructed poorly, creating a signal for abnormality.
The two directions require different comparisons. Generated motion is compared directly with observed optical flow. Generated appearance is compared with the real frame through features from AlexNet, a network previously trained for generic object recognition. This feature comparison is intended to capture differences in visual content that a direct subtraction of image pixels did not express as usefully. The resulting appearance and motion discrepancy maps are normalized, brought to a common resolution, and combined into a spatial heatmap. The discriminator supports training; it does not provide the abnormality score at test time.
The authors evaluate on the UCSD and UMN crowd datasets and report stronger results than the comparison methods under frame detection and spatial localization protocols. The clearest numerical account concerns the contribution of each translation direction on UCSD Ped1. For frame-level detection, the appearance reconstruction branch achieves 84.1% area under the ROC curve, the motion reconstruction branch achieves 95.3%, and their combination reaches 97.4%. The localization analysis also exposes a weakness: the appearance discrepancy is spatially coarse and performs poorly on its own. A missed skateboard illustrates a broader boundary of the approach. An unusual object can escape detection when it is small, partly hidden, and moving like the pedestrians around it. The contribution is therefore a concrete way to turn normal-data reconstruction failures into local anomaly evidence, instead of a general guarantee that every abnormal event will be recognized.
Interesting ideas
Learn the ordinary case first. The paper shifts the training problem from describing abnormality to representing activity that is routinely observed. This works because collecting normal examples does not require anticipating the full variety of unusual events. The reusable idea is to build a reference for expected behavior and examine departures from it. That approach can be useful wherever positive examples of failure are scarce or unstable. Its essential qualification is that a departure must be interpreted relative to the reference that was learned: unfamiliarity alone does not establish danger, error, or importance.
Translate between related observations. Instead of reconstructing an input in precisely the same form, the generators connect appearance with motion. A frame supplies evidence about what should move, while movement supplies evidence about what visual content should occupy a region. Translation makes the relationship between observations part of the learning task. The transferable principle is to exploit paired descriptions of the same situation when either description alone leaves ambiguity. In another application, the useful pair would need to be justified by the task; the paper establishes the appearance–motion pairing for crowd video, not a universal recipe for choosing representations.
Match the comparison space to the signal. The authors do not insist that every generated output be evaluated through the same distance. A direct difference is useful for optical flow, whereas appearance is compared through an intermediate visual representation. This is a valuable engineering lesson: a reconstruction can differ in pixels without differing in the content that matters, and it can resemble an image locally while missing its important structure. The right comparison depends on the intended decision. A feature representation may improve sensitivity to meaningful differences, but it may also discard the spatial detail needed to explain exactly where the difference occurs.
Keep complementary evidence visible before combining it. The system retains separate appearance and motion discrepancy maps before producing its final heatmap. This separation makes the fusion analysis informative: it reveals which branch is already strong and which branch needs support. The same design principle applies to systems that combine several evidence sources. Preserve the individual signals long enough to inspect their failures, then test whether the combination helps the actual evaluation target. A strong combined score does not by itself establish that every component is equally capable or equally necessary.
Let training machinery disappear at deployment. The discriminators help the generators learn, but detection uses the generators and discrepancy calculations. The broader idea is to distinguish components needed to shape a representation from components needed to use it. This can make the final decision process easier to describe and inspect. In this paper, the alarm can be traced through an observed representation, its generated counterpart, and their difference. The paper does not report deployment costs, so this architectural separation should not be converted into a claim about speed or resource savings.
Evaluate presence separately from location. A system can recognize that something unusual appears somewhere in a frame without identifying its boundaries accurately. The paper’s appearance branch demonstrates this distinction particularly clearly: it provides useful frame-level evidence while struggling with localization. This lesson applies whenever a decision is accompanied by an explanation, highlighted region, or selected passage. Correctly flagging the containing unit and correctly isolating its problematic part are different achievements. They need separate evaluation, because a representation that supports the first may be too coarse for the second.
Deep dive: Abnormal event detection in videos using generative adversarial nets
How conditional GANs learn normal crowd appearance and motion, detect unusual video regions, and combine complementary error signals. · about 33 minutes to read
How Mova uses it
For Mova, the small transparent language system written in Rust, the useful connection is methodological instead of a direct transfer of the video architecture. The paper offers a way to reason about departures from an explicitly learned reference, to compare evidence at different levels of abstraction, and to keep the path from observation to warning inspectable. It does not establish that Mova implements GANs, appearance reconstruction, optical flow, or any equivalent language component. Any connection described here is a possible design direction, not a claim about completed functionality.
A plausible application would begin with a narrowly defined language task and a clearly identified collection of ordinary inputs. Mova could retain a transparent description of the patterns supported by that collection and flag cases that fit poorly. The borrowed idea would be the asymmetry between learning an ordinary case and enumerating every possible exceptional case. That is especially relevant when an exception has no stable vocabulary: an unfamiliar construction, an unsupported combination of features, or a mismatch between expected and observed structure may matter even when no dedicated exception label exists.
Such a component would need to avoid treating unusual language as incorrect language. The video paper already makes abnormality relative to a scene’s normal activity. A language system would face a corresponding boundary: what is uncommon in a reference collection may be appropriate in another domain, register, or language variety. A transparent implementation should therefore expose what reference supports the warning. The paper’s lesson is useful as a prompt to make that reference visible, not as evidence that a language warning derived from rarity would be reliable.
The appearance–motion pairing suggests another possible direction: compare related descriptions rather than examining an input in isolation. For a language system, those descriptions might be surface wording and an explicit structural analysis. A mismatch could then be reported as a relationship that the system could not account for. This remains an analogy. Frames and optical flow are paired observations with a specific construction procedure, whereas a linguistic analysis may itself contain uncertainty. The video results provide no validation for substituting linguistic representations into the same machinery.
Mova’s emphasis on transparency makes the paper’s separate discrepancy channels particularly relevant. A future checking component could retain distinct evidence about form, structure, or task constraints and explain which evidence contributed to a warning. Combining everything into an opaque score would lose the diagnostic benefit that the Ped1 branch analysis provides. The useful borrowing is the organization of evidence: preserve component outputs, inspect them separately, and establish whether their combination improves the intended decision.
The paper also cautions against overpromising localization. In language, a system might correctly identify a sentence that needs attention while selecting the wrong span as its explanation. The contrast between frame detection and pixel localization gives a concrete reason to evaluate these outcomes separately. A future Mova feature that highlights words or constructions should be assessed for the accuracy of those highlights, alongside any sentence-level decision. The paper supports that distinction in video; applying it to language would require its own evaluation.
Finally, the normalization procedure identifies a design question that a transparent implementation should settle explicitly. The video method scales discrepancies using information from the entire test video. A language feature processing a complete document could potentially adopt a document-relative reference, while an interactive feature would have a different information boundary. Mova could borrow the habit of making this boundary explicit. It should not inherit a whole-input scoring procedure while presenting its output as though each decision depended only on the material already encountered.
The problem and its context
Why abnormality resists a fixed label set
The paper addresses crowded-scene video surveillance, where the goal is to detect activity that departs from what normally occurs in an observed setting. This is different from recognizing a pre-defined list of objects or actions. A detector must respond to events whose appearance and movement may not have been available during training. The authors connect the problem to public-safety applications, but the technical task is narrower: identify unusual frames and localize unusual regions in video.
They identify related obstacles. Annotated datasets containing abnormal events are small, which constrains approaches that need substantial training data. At the same time, abnormality lacks an entirely objective definition. Whether an event counts as unusual depends on context, and uncertainty about that definition makes collecting reliable abnormal examples harder. The scarcity of data is therefore not just a matter of gathering more footage. It also reflects uncertainty about what should be labeled.
The paper’s vehicle example makes this dependence concrete. The relevant issue is not whether a vehicle is inherently abnormal. It is whether a vehicle moving through the observed campus scene belongs to the activity represented in the normal training videos. A generic object recognizer can identify an object category without deciding whether that category is expected at that location. The proposed method instead learns the regularities of the scene and uses reconstruction failure as evidence of a departure.
This formulation belongs to machine learning, but its training signal is more specific than a general instruction to discover anomalies. The authors supply normal video and pair each frame with motion computed from the next frame. That pairing tells the networks what output should accompany each input. No abnormal-event labels are needed to construct these training pairs. Nevertheless, the success of detection depends on whether the ordinary examples provide a useful reference for the situations encountered later.
Earlier generative approaches
The authors place their method within an existing strategy: describe normal activity and detect what does not fit. Earlier generative approaches represented visual evidence through engineered features, including optical flow and tracklets. A tracklet describes a short portion of a moving entity’s trajectory. These representations help summarize motion, after which a separate mechanism characterizes the normal patterns and measures departures from them.
The paper’s objection is not that motion features are irrelevant. Its own pipeline uses optical flow extensively. The distinction concerns where the representation of normal behavior comes from. Earlier methods rely on a chosen description of appearance or movement; this method trains deep networks to translate between visual representations using the normal videos of the task. The learned translation is intended to capture scene-specific relationships that are difficult to specify through feature design alone.
This is an important boundary in the paper’s contribution. It would be inaccurate to describe the approach as eliminating engineered processing altogether. Optical flow is computed before training and testing, and the final score includes a chosen feature extractor and an explicit fusion rule. What changes is the central representation-learning mechanism. The generators learn from the target scene’s normal frame–motion relationships instead of using only a fixed summary followed by a normality estimator.
The authors also discuss previous uses of convolutional networks for crowd anomaly detection. Those approaches adapt networks originally trained for other tasks, such as object recognition. One cited system adds a binary quantization layer to capture temporal patterns for abnormality segmentation. The present paper seeks to train the main generative components directly on the normal activity relevant to abnormality detection.
The closest comparison: learned reconstruction features
The closest earlier approach in the authors’ account uses stacked denoising autoencoders to learn appearance and motion representations. An autoencoder learns to reconstruct an input through an intermediate representation; a denoising variant is trained to recover useful structure despite corruption. The cited approach therefore already connects learned representations with video anomaly detection. The new paper does not introduce the broad idea that reconstruction can reveal unusual events.
Its stated differences concern depth, training, and the final detector. The earlier networks are described as relatively shallow and based on small image patches. The authors attribute this limitation to the risk of overfitting when deep autoencoders are trained on small abnormality datasets. They also note that the learned features require separately trained one-class support vector machines. These classifiers characterize the normal class, but their training is separate from the representation-learning process.
The proposed adversarial approach replaces that arrangement with generators trained alongside discriminators. The authors argue that the discriminator supplies an implicit learning signal and that the conditional GAN setup helps them train deeper generative networks on the same limited datasets. They also emphasize that no external anomaly classifier must be trained on the resulting representation. Detection comes from differences between observed and generated descriptions.
This argument has a clear experimental boundary. The paper motivates adversarial training as the reason deeper learning becomes practical, but its reported branch comparison does not isolate that claim against an otherwise identical non-adversarial system. The background establishes the authors’ rationale and the differences they intend to exploit. It should not be read as a controlled demonstration of every proposed advantage.
Image translation becomes a test of normality
The immediate architectural foundation is the conditional image-translation framework associated with Isola and colleagues. In that framework, an input image conditions generation of an output image, and the discriminator evaluates whether the pair is genuine. The authors adopt an encoder–decoder generator with skip connections and a discriminator that operates on image patches.
The conceptual change is the purpose of generation. Producing a convincing image is useful during training, but it is not the final application. The generator is asked to express the ordinary relationship between a frame and its movement. At detection time, an output that fails to match the observation becomes useful evidence. A local failure of generation is therefore not merely a defect to conceal; it is part of the detection mechanism.
This creates a tension that remains central throughout the paper. The generator must represent ordinary activity accurately enough that normal regions do not dominate the error map. At the same time, it must fail on the abnormal content that matters. Training on normal examples encourages this separation, but does not logically guarantee it. The experiments investigate whether the separation is useful in the evaluated scenes.
The method, step by step
Construct paired descriptions of normal video
Training begins with videos containing normal activity. For each frame, the authors compute optical flow from that frame and the following frame using the method attributed to Brox and colleagues. Optical flow describes image movement between observations. Here it is represented through horizontal motion, vertical motion, and movement magnitude.
The frame and its flow image describe related aspects of the same observed situation. The frame carries appearance: visible objects, textures, and scene layout. The flow carries movement associated with that appearance. This pairing is the foundation of the conditional learning task. The network is not asked to generate arbitrary plausible motion. It is asked to generate motion that agrees with the supplied frame under the ordinary patterns represented in training.
From normal video to an abnormality heatmap
The steps in order.
The normal training pairs for the appearance-to-motion direction are written as:
𝒳 = { (Fₜ, Oₜ) }
Here, 𝒳 is the training collection, Fₜ is the video frame at time t, and Oₜ is the optical flow computed using Fₜ and the following frame Fₜ₊₁. The braces denote a collection of paired observations. The target is therefore available through processing the normal video, without assigning an abnormality label to each location.
For the opposite direction, the same observations exchange their roles:
𝒳 = { (Oₜ, Fₜ) }
In this case, optical flow Oₜ is the input and frame Fₜ is the desired output. The symbol 𝒳 again denotes the relevant training collection. These are separate conditional learning tasks. Reversing the pair does not imply that appearance and motion contain identical information, or that either translation can be recovered perfectly.
Train a conditional generator and discriminator
Each direction has a generator and a discriminator. The generator receives an image together with noise and produces an output in the other representation:
p = G(x, z)
The symbol G denotes the generator, x is its conditioning image, z is a noise vector drawn from the distribution 𝒵, and p is the generated output. For frame-to-flow translation, x is an appearance frame and p is a flow image. For flow-to-frame translation, x is a flow image and p is an appearance reconstruction. The generated image retains the input’s spatial dimensions while changing what its channels represent.
The discriminator is conditioned on the input as well. It receives either a genuine pair consisting of x and its target y, or a pair consisting of x and the generated output p. Its scalar output expresses whether the pair is judged to come from the real data. This paired judgment matters: an output must be appropriate for its particular input, not merely resemble some plausible image.
The architecture follows the cited image-translation framework. The generator uses a U-net encoder–decoder with skip connections, which connect corresponding parts of the encoding and decoding paths. The discriminator evaluates patches. The paper refers readers to the architectural foundation for further details instead of specifying a new arrangement of every layer.
Training combines an explicit reconstruction objective with an adversarial objective. The reconstruction term asks the generator to stay close to the paired target:
ℒ_L1(x, y) = ‖y − G(x, z)‖₁
The symbol ℒ_L1 denotes the reconstruction loss, x is the conditioning input, y is its real target, and G(x, z) is the generated output under noise z. The L1 norm, indicated by the subscript 1, aggregates absolute discrepancies. This term gives the generator a direct target-based learning signal. It is distinct from the anomaly map later computed during detection.
The conditional adversarial term is:
ℒ_cGAN(G, D) = 𝔼_(x,y)∈𝒳[log D(x, y)] + 𝔼_x∈{Fₜ},z∈𝒵[log(1 − D(x, G(x, z)))]
Here, ℒ_cGAN is the conditional adversarial loss, G is the generator, and D is the discriminator. The expectation symbol 𝔼 denotes averaging over the indicated observations or noise draws. The first term evaluates genuine pairs from 𝒳. Pairs whose output was produced using a frame input and noise drawn from 𝒵 are evaluated by the second. The logarithm is written as log.
The displayed form describes the frame-to-flow direction. In the reverse direction, flow images become the conditioning inputs and frames become the targets. The discriminator learns to separate genuine pairs from generated ones, while the generator is trained to make its outputs harder to distinguish. The paper states that both reconstruction and adversarial losses are used, but does not supply a separate equation specifying their complete weighted combination. That missing expression should not be filled in with an assumed coefficient.
Restrict the learned reference to normal activity
Both generators learn from normal training sequences. This is the central restriction connecting the training task to anomaly detection. The authors expect a generator exposed to normal scene behavior to reconstruct ordinary objects and movement adequately, while producing less faithful outputs for events outside that experience.
Consider the vehicle example used to explain the method. When the frame containing the vehicle is translated into optical flow, the generated movement in the vehicle’s region does not match the observed movement. In the reverse direction, the vehicle’s real flow is translated into an appearance image that contains poorly structured content where the vehicle should be. Both failures provide possible evidence that the observed region does not fit the learned relationship.
The distinction between this intuition and a guarantee is essential. The network is trained to minimize losses on normal examples; it is not explicitly trained to maximize reconstruction errors for every possible abnormal object. Its behavior on unusual inputs depends on how the learned translation extends beyond the training data. The method succeeds when those extensions preserve ordinary content while failing in informative ways on abnormal content.
This also explains why the approach is scene-relative. Normality is represented through the training videos, including the placement and movement of ordinary activity. The authors argue that learning this spatial distribution helps with perspective variation. They illustrate that claim through localization examples, instead of introducing a separate perspective-correction procedure.
Generate the expected motion during testing
Only the generators are used from the adversarial pairs at test time. The discriminator does not decide whether a region is abnormal. Instead, the method compares observations with the representations produced by the generators.
For a test frame, the generated flow is:
p_O = G^(F→O)(F)
The symbol F is the observed frame, G^(F→O) is the trained frame-to-flow generator, and p_O is its generated optical-flow image. The superscript identifies the translation direction. The paper omits the explicit noise argument during this part of the description because the networks produce randomness internally through dropout.
The observed flow is then compared with that generated output:
Δ_O = O − p_O
Here, O is the optical flow computed from the test video, p_O is the generated flow, and Δ_O is their discrepancy map. The subtraction is local: corresponding image positions are compared. A region whose actual movement differs from the generated movement can therefore contribute spatial evidence to the abnormality map.
This comparison retains information about where the mismatch occurs. It is not initially reduced to a single score for the whole frame. That spatial structure allows the same underlying output to support both frame-level detection and abnormal-region localization. The evaluation protocols later determine how the map is converted into a decision.
The displayed expression is a subtraction. The detection description does not fully specify every channel-reduction or sign-handling operation needed for an implementation. It is therefore more precise to call Δ_O the stated motion discrepancy than to silently replace it with an unreported squared error, absolute distance, or other alternative.
Compare appearance in a feature representation
The reverse generator produces an appearance reconstruction:
p_F = G^(O→F)(O)
The symbol G^(O→F) denotes the trained flow-to-frame generator, O is observed optical flow, and p_F is the generated appearance image. The generator attempts to express what the scene should look like given its movement, according to the relationships learned from normal data.
The authors observe that abnormal regions may become poorly structured patches in this image. Nevertheless, directly subtracting appearance pixels is less useful than the corresponding operation in the flow representation. They therefore compare appearance through AlexNet features instead of relying on raw image differences.
AlexNet supplies a representation from its fifth convolutional layer before pooling. The paper selects this layer because it provides an abstract description while retaining spatial arrangement. A later representation that discards location would be less suitable for producing an abnormality map.
The appearance discrepancy is:
Δ_S = h(F) − h(p_F)
Here, h is the chosen AlexNet feature mapping, F is the observed appearance frame, p_F is the generated appearance frame, and Δ_S is their feature-space difference. The subscript S identifies the semantic comparison. In this context, “semantic” refers to a visual representation learned for generic object recognition; it does not mean that the detector has an explicit vocabulary of abnormal events.
This feature extractor introduces an important qualification to the training story. The generators learn from normal crowd video, but AlexNet was trained with labeled ImageNet images. Those labels concern generic objects, rather than abnormal crowd behavior. The pipeline therefore avoids abnormal-event supervision while still using an externally supervised visual representation.
The feature comparison also changes spatial precision. Its output is coarser than the flow discrepancy. That choice gives the system a more abstract appearance signal, but creates a localization problem that becomes visible in the branch analysis.
Normalize the maps within each test video
Before fusion, the appearance discrepancy is upsampled to the resolution of the motion discrepancy. The upsampled result is denoted Δ_S′. Upsampling aligns the maps spatially; it does not restore distinctions that were already lost in the feature representation.
The motion discrepancy is normalized as follows:
N_O(i, j) = Δ_O(i, j) / m_O
The symbols i and j identify an image position. N_O is the normalized motion discrepancy, Δ_O is the original motion discrepancy, and m_O is the maximum value found across its elements over the frames of the test video V. The normalization reference therefore belongs to the video as a whole.
The corresponding appearance normalization is:
N_S(i, j) = Δ_S′(i, j) / m_S
Here, N_S is the normalized appearance discrepancy, Δ_S′ is the upsampled appearance discrepancy, and m_S is its maximum value over the elements and frames of the same test video. The prime marks the spatially resized version of the feature discrepancy.
This procedure makes the two channels comparable relative to their own ranges. It also means that the score assigned to a location depends on the normalization reference established elsewhere in the video. A strong discrepancy in another frame can affect the scale against which the current discrepancy is expressed. That dependence matters when interpreting the method as a complete-video analysis instead of assuming an immediately available score for every arriving frame.
The equations do not describe a separate treatment for a zero-valued normalization maximum. They also do not establish a dataset-wide calibrated probability of abnormality. The normalized values are intermediate evidence used for fusion.
Combine appearance and motion evidence
The final heatmap is:
A = N_S + λN_O
The symbol A denotes the abnormality map, N_S is the normalized appearance discrepancy, N_O is the normalized motion discrepancy, and λ controls the motion contribution. The authors use λ = 2 throughout their experiments.
This is an explicit fusion rule rather than another trained classifier. It combines evidence that the observed appearance does not match its generated counterpart with evidence that the observed movement does not match its generated counterpart. The resulting map retains image position, so high-valued areas can be interpreted as candidate abnormal regions.
The fixed weight and normalization should be understood together. The coefficient does not act on raw, incomparable pixel and feature values. It acts after each channel has been scaled using its own video-level maximum. Even then, the paper does not show a controlled search over alternative weights or normalization schemes.
The complete decision path is consequently inspectable at several stages: the observed frame and flow, each generated counterpart, each discrepancy map, and their fused output. This visibility is useful for understanding a particular detection, although it does not establish that the heatmap’s highlighted region always corresponds to the correct cause of abnormality.
Experiments and results
Training setup and evaluated data
The generators are trained using UCSD training sequences. Input frames are resized to 256 × 256 pixels. The optimization procedure is stochastic gradient descent with momentum 0. 5, with each batch containing 1 item. Each network is trained for 10 epochs. These settings describe the experiment actually reported; they are not presented as the result of a broad architecture or optimization study.
The UCSD dataset contains the Ped1 and Ped2 subsets. Ped1 has 34 training sequences and 16 test sequences. Ped2 has 16 training videos and 12 test videos. The authors emphasize several challenges: limited image resolution, different moving-object types, and scenes that can contain several anomalies. Those conditions make both recognition and spatial isolation difficult.
UMN contains 11 videos across 3 scenes, totaling 7700 frames. The authors evaluate frame-level abnormality detection on this dataset as well. The training paragraph specifies UCSD training sequences, but does not separately detail an UMN training arrangement. The UMN evaluation therefore should not be expanded into a particular transfer-learning or scene-adaptation claim that the experimental description does not establish.
The paper’s evaluation and benchmarks distinguish detecting whether a frame contains abnormal content from locating that content. This distinction is central to interpreting the results. A heatmap can be useful for frame detection even when its highlighted area is too broad or misplaced for accurate localization.
What the evaluation measures
For frame-level evaluation, a threshold is applied to the abnormality map. If any pixel is predicted to be abnormal, the entire frame receives an abnormal label. Varying the threshold produces a receiver operating characteristic, or ROC, curve. This curve describes how true detections and false alarms change as the decision becomes more or less permissive.
The paper reports AUC, the area under that curve, and EER, the equal error rate. AUC summarizes performance across thresholds, with higher values indicating stronger discrimination. EER identifies the operating point where the relevant false-positive and false-negative rates coincide, with lower values preferred. Neither metric on its own determines the threshold that should be used in a particular deployment.
The frame rule is deliberately permissive about spatial extent. A small predicted region can be enough to mark the frame as abnormal. A method can therefore achieve useful frame recognition without closely outlining the object responsible. This is why frame results cannot substitute for the localization evaluation.
For the pixel-level protocol, the predicted abnormal region must cover at least 40% of the annotated abnormal pixels for the frame to count as a true positive. Otherwise, the frame is treated as a false positive under that protocol. This tests whether the spatial prediction overlaps the annotated event sufficiently, rather than merely appearing somewhere in the correct frame.
In spite of its name, this localization criterion should not be interpreted as a complete account of boundary quality. It imposes an overlap requirement within the evaluation procedure. It does not, by itself, report the accuracy of every predicted pixel or establish that a highlighted shape precisely follows an object.
The clearest numerical comparison
The Ped1 information-fusion experiment gives explicit frame-level AUC values for both translation directions and their combination. The appearance reconstruction branch is useful by itself, but the motion reconstruction branch is stronger. Combining them produces the highest reported AUC in this comparison.
Translation branches on UCSD Ped1, frame-level AUC
Combining appearance and motion gives the strongest frame-level discrimination.
The numbers
| System or setting | AUC % |
|---|---|
| Appearance reconstruction | 84.1 |
| Motion reconstruction | 95.3 |
| Fused method (this paper) | 97.4 |
These values support a specific conclusion: under the reported Ped1 frame protocol, the fused map ranks abnormal and normal frames more effectively than either component alone. The result does not show that the two branches are equally strong. It also does not reveal which individual examples account for the improvement.
The localization discussion reports 30.1% for the appearance branch and 66.2% for the motion branch. The authors attribute the weaker appearance result to the coarse spatial resolution of the feature discrepancy. Their explanation is consistent with the architecture: an abstract convolutional representation can preserve enough information to indicate unusual content while losing the detail needed to isolate it.
The numerical account does not state a corresponding fused localization percentage in the information-fusion paragraph. It would therefore be inappropriate to infer a value from the frame-level result or the qualitative claim that fusion improves localization. The evidence supports the authors’ account of complementary signals, while leaving that particular numerical comparison incomplete.
Comparisons with earlier approaches
The authors report that their approach outperforms the methods compared in the UCSD and UMN evaluations. They identify comparison tables for UCSD and UMN, along with ROC plots for Ped1. The UCSD baseline values are attributed to Xu and colleagues, while the UMN comparison values are attributed to Mousavi and colleagues.
The baseline families discussed elsewhere in the paper include engineered motion or appearance representations, convolutional features adapted from other tasks, and learned appearance–motion representations followed by one-class classifiers. These establish the methodological context for the reported advantage. They do not supply a complete numerical ranking in the running results discussion.
The distinction matters for a precise reading. The paper makes a broad superiority claim across its comparisons, but the explicit values that can be stated for individual settings are concentrated in the Ped1 branch analysis. Exact baseline AUC values, baseline EER values, and a separate numerical advantage for each dataset are not stated in that discussion. The claim should therefore be reported as the authors’ comparison result without inventing its size.
The use of previously published comparison values also differs from describing a fully repeated experimental campaign. The paper attributes those values to earlier studies. It does not establish that every baseline was retrained under a single newly harmonized implementation and tuning procedure. This does not invalidate the comparison, but it limits the experimental control that can be inferred from it.
What the visual examples add
The qualitative localization examples show that abnormal regions can be highlighted for different event types. The authors explain that ordinary pedestrians are reconstructed adequately, while abnormal objects produce less faithful outputs. This makes the intended mechanism visible: the anomaly score follows the mismatch between observation and generation.
The examples also support the authors’ claim that the learned representation captures where ordinary movement occurs in the scene. Perspective can make similar objects appear at different scales in different locations. Learning the scene’s spatial organization may help the generator account for such variation without an explicit perspective adjustment described in the detector.
However, the visual evidence has a different status from an isolated experiment. It demonstrates plausible behavior in selected cases; it does not quantify the contribution of spatial learning independently of the rest of the architecture. The reported ROC and branch results remain the principal quantitative evidence.
The skateboard failure is especially informative. The object is small, partly occluded, and moves at a speed comparable to ordinary pedestrians. These conditions weaken both kinds of discrepancy. Appearance supplies limited visible evidence, while movement does not strongly distinguish the object from normal activity. The failure shows why combining appearance and motion can help without making their combination exhaustive.
What the ablations show
Fusion helps, but the branches contribute differently
The paper includes a controlled comparison of the appearance branch, the motion branch, and their fusion on UCSD Ped1. This is its central component analysis. It directly addresses whether both translation directions are useful, rather than assuming that a more elaborate pipeline must be better.
For frame detection, the ordering is clear. Motion reconstruction provides stronger evidence than appearance reconstruction, and the combined map performs best. The result supports complementarity at the level of frame discrimination. Appearance contributes information that is useful in the combined setting even though its standalone result is weaker.
That conclusion should remain narrower than a claim that appearance always corrects motion failures. The paper does not break down detections by event category, object size, occlusion, or motion similarity. It therefore does not establish which types of frames benefit most from fusion. The skateboard example illustrates a plausible shared failure instead of a quantified category of errors.
The fusion result also depends on the complete scoring procedure. Each channel is normalized over the test video, and the motion channel receives the fixed coefficient used throughout the experiments. The analysis compares the resulting settings. It does not separate the contribution of complementary representations from the particular normalization and weighting that combine them.
Abstraction helps recognition more than localization
The appearance branch exposes a tradeoff between content sensitivity and spatial precision. Its AlexNet features are chosen to represent visual information at a relatively abstract level. That can make differences between a real object and a poor generated approximation useful for recognizing that a frame contains something unusual.
At the same time, the feature map has lower spatial resolution than the flow discrepancy. Upsampling places the map on a larger grid, but cannot recreate distinctions absent from the original representation. The authors use this limitation to explain the appearance branch’s weak localization performance.
The controlled comparison therefore supports a practical interpretation: the appearance signal can help answer whether unusual content is present, while motion supplies stronger evidence about where the mismatch occurs. This interpretation follows the reported branch behavior, but should not be treated as an absolute division of labor. Appearance retains spatial information, and motion also supports frame detection.
The paper reports that combining the channels refines the detected region. Without an explicit fused localization value in the branch discussion, the degree of refinement cannot be quantified from that account. The qualitative conclusion and the numerical branch weakness should be kept together rather than allowing either to substitute for the other.
Several design choices remain unanalyzed
The paper does not provide a matched ablation removing the adversarial loss while preserving the rest of the training setup. As a consequence, the experiments do not isolate how much of the detection result depends specifically on adversarial training rather than paired translation with reconstruction supervision.
There is also no reported sweep over fusion weights. The selected coefficient is used consistently, but its robustness to alternative values is not measured in the discussion. Likewise, the paper does not compare whole-video normalization against a fixed training-derived scale or an online alternative.
The appearance comparison is motivated by the authors’ observation that raw pixel differences are less informative. However, no numerical comparison is given between that alternative and the selected AlexNet feature difference. Nor is there a systematic comparison of feature layers. The reasoning for the chosen layer is plausible, but the magnitude of its contribution remains unspecified.
Finally, the qualitative observations about perspective and the missed skateboard are analyses of behavior rather than controlled ablations. They help explain why the detector can succeed or fail. They do not establish an independent causal effect for perspective learning, object size, pedestrian-like motion, or occlusion.
Limitations
Limits explicitly recognized by the authors
The authors begin by acknowledging that abnormality is not defined objectively across all settings. Their method addresses this difficulty by learning a reference from normal videos, but that choice does not remove the dependence on context. It relocates the definition into the activity represented by the training data.
They explicitly identify limited abnormality datasets as an obstacle for deep learning. Training without abnormal examples reduces reliance on such annotations, yet the experiments still use the available standard datasets. The possibility of collecting substantially more normal video is a motivation and an opportunity, rather than a large-scale result demonstrated in the reported study.
The appearance branch’s spatial limitation is also acknowledged. The authors associate its weak localization with the resolution of the semantic discrepancy map. This is not a minor implementation detail: the final application requires a location, while the feature representation intentionally trades some spatial detail for abstraction.
The skateboard example is an explicit failure. The authors suggest that small size, partial occlusion, and ordinary-looking movement contribute to the miss. Their explanation is qualified rather than established through a separate experiment. It nonetheless gives a concrete warning against equating abnormal object identity with guaranteed reconstruction failure.
The conclusion proposes Dynamic Images as future motion input, with the aim of representing information from more than the adjacent-frame relationship used for optical flow. That alternative is not evaluated. It marks an acknowledged direction for extending temporal representation, not a demonstrated improvement to the reported detector.
Reconstruction error is evidence, not a definition
A careful reader should distinguish the normal-only training condition from the stronger claim that abnormal events cannot be generated. The training condition is explicit. The stronger claim is the intuition underlying the method. Nothing in the reported objectives forces every abnormal input to have a large discrepancy.
An unfamiliar object may share visual or motion properties with ordinary training content. The skateboard failure illustrates this possibility. Conversely, an ordinary event may be reconstructed poorly because of visual difficulty, limited training coverage, or errors in the intermediate representation. The paper does not provide a complete analysis separating these possible sources of discrepancy.
This distinction affects how alarms should be interpreted. A high score indicates disagreement between observed and generated descriptions under the learned reference. It does not directly identify intent, danger, or a named event category. The detector produces spatial evidence of mismatch, not a semantic explanation of why the event should matter.
The same caution applies to the word “semantic” in the appearance comparison. AlexNet supplies generic visual features. Those features can make certain appearance differences more useful, but they do not establish an explicit understanding of scene rules. The system’s contextual normality still comes from the crowd-video training and the relationships learned by the generators.
The full pipeline has several information dependencies
The method avoids abnormal-event labels during training, but it does not learn every component solely from unlabeled crowd footage. AlexNet contributes features learned with object-label supervision. Optical flow is supplied by a separate estimation method. The anomaly map also depends on upsampling, normalization, and a fixed fusion rule.
These dependencies make the system more specific than a claim that adversarial learning alone detects abnormality. A generator may receive an imperfect motion representation, and the appearance branch is evaluated in a feature space not trained specifically for the abnormality task. The paper does not isolate sensitivity to errors in either component.
Whole-video normalization introduces another dependency. The maximum discrepancy is computed across the test video, so the final normalized value for an early frame can depend on a later frame. The procedure is well defined for a complete video, but it does not by itself specify an online detector whose decisions are final as each frame arrives.
Optical flow also uses the current frame and the following frame. This is part of the stated observation construction. A streaming application would need to account for that information requirement in addition to deciding how to replace or maintain the video-level normalization reference. The paper does not report such a deployment procedure.
Reporting and evaluation leave open questions
The experimental description gives training settings but does not report repeated runs or variability estimates. The stated results therefore do not establish how much they fluctuate with training randomness or other experimental choices. The absence of those measurements should not be replaced by an assumption that the reported ordering is perfectly stable.
The numerical discussion also leaves some comparisons incomplete. It names EER and AUC as evaluation measures, but does not enumerate exact baseline values or every fused localization result. This constrains how precisely the size of the reported advantage can be explained.
The localization criterion imposes the stated coverage requirement. It does not fully characterize the cleanliness, compactness, or boundary accuracy of a predicted region. A system can satisfy a coverage rule while producing a heatmap whose extent remains unsuitable for a more demanding application. The paper does not evaluate every possible use of spatial explanations.
The experiments do not establish general performance across arbitrary scenes or types of abnormality. UCSD and UMN supply the reported evidence. The training account does not provide a separately detailed UMN adaptation procedure, and the qualitative examples cannot substitute for a systematic cross-scene analysis.
Finally, the paper does not report the computational measurements needed to assess practical surveillance operation. Removing discriminators at test time simplifies which adversarial components are used, but the pipeline still computes flow, runs generators, extracts appearance features, and combines maps. Without timing or resource measurements, architectural simplicity should not become a claim about real-time performance.
What came after
A later citing work is Weakly-supervised Video Anomaly Detection with Robust Temporal Feature Magnitude Learning, published in 2021. Its title identifies a different emphasis: weak supervision and the learning of temporal feature magnitude. It places the present paper within a continuing effort to derive reliable anomaly evidence from video without requiring an exhaustive collection of precisely labeled unusual events.
The citation establishes that the later work engages with this research line. It does not establish that the later method retains the paired generators, reconstructs optical flow, uses AlexNet differences, or adopts the same fusion rule. Those details cannot be inferred merely from a citation or from the later title. Nor does the available account support a numerical comparison between the later method and the conditional-GAN detector.
The useful relationship is therefore a contrast in the stated learning problem. This paper develops a normal-only training strategy and obtains anomaly evidence from failed translation between appearance and movement. The later title explicitly foregrounds weak supervision and temporal features. Both concern how video representations can support anomaly detection, but the available evidence does not justify collapsing them into a single unchanged method.
Within the original paper, the proposed next step is more specific: investigate Dynamic Images as an alternative motion representation. That suggestion follows naturally from a remaining boundary of the method. Optical flow describes movement through adjacent observations, while the authors want to explore a representation incorporating a broader temporal account. The proposal is left open rather than accompanied by a result.
The enduring contribution of the conditional-GAN approach is its clear detection mechanism. Normal video supplies paired learning targets; generators express expected relationships; discrepancies reveal candidate departures; separate channels expose complementary strengths and weaknesses. Its strongest lesson for subsequent systems is to test that entire chain. A convincing generator is not automatically a useful detector, and a useful frame detector is not automatically an accurate localizer. The paper makes those distinctions visible through its architecture, its branch comparison, and its documented failure.
Cite
Cite as Mahdyar Ravanbakhsh, Moin Nabi, Enver Sangineto, Lucio Marcenaro, Carlo S. Regazzoni and Nicu Sebe. 2017. Abnormal event detection in videos using generative adversarial nets. Proceedings - International Conference on Image Processing.
@inproceedings{ravanbakhsh2017abnormal,
title = {{Abnormal event detection in videos using generative adversarial nets}},
author = {Mahdyar Ravanbakhsh, Moin Nabi, Enver Sangineto, Lucio Marcenaro, Carlo S. Regazzoni and Nicu Sebe},
booktitle = {Proceedings - International Conference on Image Processing},
year = {2017},
doi = {10.1109/icip.2017.8296547},
eprint = {1708.09644},
archivePrefix = {arXiv},
url = {https://doi.org/10.1109/icip.2017.8296547}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/ravanbakhsh-2017-abnormal-event-detection-videos-generative/
References
- W. Li, V. Mahadevan, and N. Vasconcelos, “Anomaly detection and localization in crowded scenes,” PAMI, 2014. OpenAlex ↗ · Scholar ↗
- J. Kim and K. Grauman, “Observe locally, infer globally: a space-time mrf for detecting abnormal activities with incremental updates,” in CVPR, 2009. OpenAlex ↗ · Scholar ↗
- V. Mahadevan, W. Li, and N. Vasconcelos, “Anomaly detection in crowded scenes,” in CVPR, 2010. OpenAlex ↗ · Scholar ↗
- R. Mehran, A. Oyama, and M. Shah, “Abnormal crowd behavior detection using social force model,” in CVPR, 2009. OpenAlex ↗ · Scholar ↗
- C. Lu, J. Shi, and J. Jia, “Abnormal event detection at 150 fps in matlab,” in ICCV, 2013. OpenAlex ↗ · Scholar ↗
- V. Saligrama and Z. Chen, “Video anomaly detection based on local statistical aggregates,” in CVPR, 2012. OpenAlex ↗ · Scholar ↗
- Y. Cong, J. Yuan, and J. Liu, “Sparse reconstruction cost for abnormal event detection,” in CVPR, 2011. OpenAlex ↗ · Scholar ↗
- A. Krizhevsky, I. Sutskever, and G. E. Hinton, “Imagenet classification with deep convolutional neural networks,” in NIPS, 2012. our card
- R. B. Girshick, “Fast R-CNN,” in ICCV, 2015. OpenAlex ↗ · Scholar ↗
- J. Donahue, Y. Jia, O. Vinyals, J. Hoffman, N. Zhang, E. Tzeng, and T. Darrell, “Decaf: A deep convolutional activation feature for generic visual recognition,” in ICML, 2014. our card
- A. Sharif Razavian, H. Azizpour, J. Sullivan, and S. Carlsson, “CNN features off-the-shelf: An astounding baseline for recognition,” in CVPRW, 2014. OpenAlex ↗ · Scholar ↗
- B. Zhou, À. Lapedriza, J. Xiao, A. Torralba, and A. Oliva, “Learning deep features for scene recognition using Places Database,” in NIPS, 2014. OpenAlex ↗ · Scholar ↗
- K. Simonyan and A. Zisserman, “Two-stream convolutional networks for action recognition,” in NIPS, 2014. OpenAlex ↗ · Scholar ↗
- H. Mousavi, S. Mohammadi, A. Perina, R. Chellali, and V. Murino, “Analyzing tracklets for the detection of abnormal crowd behavior,” in WACV, 2015. OpenAlex ↗ · Scholar ↗
- M. Ravanbakhsh, M. Nabi, H. Mousavi, E. Sangineto, and N. Sebe, “Plug-and-play cnn for crowd motion analysis: An application in abnormal event detection,” arXiv:1610.00307, 2016. OpenAlex ↗ · Scholar ↗
- M. Sabokrou, M. Fayyaz, M. Fathy, and R. Klette, “Fully convolutional neural network for fast anomaly detection in crowded scenes,” arXiv:1609.00866, 2016. OpenAlex ↗ · Scholar ↗
- D. Xu, Y. Yan, E. Ricci, and N. Sebe, “Detecting anomalous events in videos by learning deep representations of appearance and motion,” CVIU, 2016. OpenAlex ↗ · Scholar ↗
- I. J. Goodfellow, J. Pouget-Abadie, M. Mirza, B. Xu, D. Warde-Farley, S. Ozair, A. C. Courville, and Y. Bengio, “Generative adversarial nets,” in NIPS, 2014. OpenAlex ↗ · Scholar ↗
- R. Raghavendra, M. Cristani, A. Del Bue, E. Sangineto, and V. Murino, “Anomaly detection in crowded scenes: A novel framework based on swarm optimization and social force modeling,” in Modeling, Simulation and Visual Analysis of Crowds. 2013. OpenAlex ↗ · Scholar ↗
- H. Rabiee et al, “Novel dataset for fine-grained abnormal behavior understanding in crowd,” in AVSS, 2016. OpenAlex ↗ · Scholar ↗
- H. Mousavi, M. Nabi, H. K. Galoogahi, A. Perina, and V. Murino, “Abnormality detection with improved histogram of oriented tracklets,” in ICIAP, 2015. OpenAlex ↗ · Scholar ↗
- H. Rabiee et al, “Crowd behavior representation: an attribute-based approach,” SpringerPlus, vol. 5, no. 1, pp. 1179, 2016. OpenAlex ↗ · Scholar ↗
- H. Rabiee et al, “Detection and localization of crowd behavior using a novel tracklet-based model,” Journal of Machine Learning and Cybernetics (JMLC), 2017. OpenAlex ↗ · Scholar ↗
- X. Huang, W. Wang, G. Shen, X. Feng, and X. Kong, “Crowd activity classification using category constrained correlated topic model,” KSII TIIS, 2016. OpenAlex ↗ · Scholar ↗
- Tim Salimans, I. J. Goodfellow, Wo. Zaremba, V. Cheung, A. Radford, and X. Chen, “Improved techniques for training GANs,” in NIPS, 2016. our card
- A. Radford, L. Metz, and S. Chintala, “Unsupervised representation learning with deep convolutional generative adversarial networks,” ICLR, 2016. our card
- P. Isola, J. Zhu, T. Zhou, and A. A. Efros, “Image-to-image translation with conditional adversarial networks,” in CVPR, 2017. OpenAlex ↗ · Scholar ↗
- T. Brox, A. Bruhn, N. Papenberg, and J. Weickert, “High accuracy optical flow estimation based on a theory for warping,” in ECCV, 2004. OpenAlex ↗ · Scholar ↗
- O. Russakovsky, J. Deng, H. Su, J. Krause, S. Satheesh, S. Ma, Z. Huang, et al., “Imagenet large scale visual recognition challenge,” IJCV, 2015. our card
- H. Mousavi, M. Nabi, H. Kiani, A. Perina, and V. Murino, “Crowd motion monitoring using tracklet-based commotion measure,” in ICIP, 2015. OpenAlex ↗ · Scholar ↗
- H. Bilen, B. Fernando, E. Gavves, A. Vedaldi, and S. Gould, “Dynamic image networks for action recognition,” in CVPR, 2016. OpenAlex ↗ · Scholar ↗