Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Real-world Anomaly Detection in Surveillance Videos

Deep ranking over weakly labeled videos learns to detect real-world surveillance anomalies

  • Problem Labeling every anomalous segment in long surveillance videos is too costly, and reconstruction-based detectors raise many false alarms. Video-level labels are cheap, but they do not say when an anomaly happens.
  • Method The authors treat each video as a bag of segments and train a fully connected network with a hinge ranking loss. Sparsity and smoothness terms push high scores onto few adjacent anomalous segments.
  • Results The method reaches 75.41 AUC on the new 1900-video dataset with the constraints, against 65.51 for Lu et al.

Why anomaly localization needs weak labels

Surveillance footage is long and anomalous events cover only a short part of it, so a useful detector has to say when an anomaly happens, not only that one occurs somewhere. Seen this way, anomaly detection acts as a coarse filter that flags windows departing from normal patterns, and a finer categorization step can follow.

Sparse-coding methods such as the one of Lu et al. learn a dictionary from the opening portion of a video and treat large reconstruction error as an anomaly. Such methods produce high false alarm rates for different normal behaviors, because the environment captured by a camera shifts over the day.

Normal behavior is hard to define exhaustively, and the same behavior can be normal under one set of conditions and anomalous under another. The approach here therefore uses both normal and anomalous videos, with only a video-level label saying whether a video contains an anomaly somewhere. Video-level tags are far cheaper to collect than temporal annotations of each anomalous part, which is what makes large training sets practical.

Videos as bags and segments as instances

Each video is cut into temporal segments, and a video is treated as a bag whose instances are its segments. A positive bag, taken from an anomalous video, is assumed to contain at least one anomalous instance, while every instance of a negative bag is normal. Because the instance labels inside positive bags are unknown, the learning signal has to come from bag labels alone.

A standard SVM with hinge loss needs a label for each example, so its classifier is defined over individual segments. The bag version scores each bag through its single strongest instance, so the objective depends on the top-scoring segment rather than on every segment.

With segment labels, a ranking would simply require the anomalous score to exceed the normal score, but those labels are absent here. The method instead compares the highest-scoring segment of the positive bag with the highest-scoring segment of the negative bag, written as \( \max_{i\in B_a} f(V_a^i) > \max_{i\in B_n} f(V_n^i) \). The top segment of a positive bag is the most likely true anomaly, while the top segment of a negative bag is a normal segment that looks most like an anomaly, so it acts as a hard negative that can cause false alarms.

Hinge ranking loss with sparsity and smoothness

The base loss is a hinge over the two selected segments, \[ l(B_a,B_n)=\max\big(0,\;1-\max_{i\in B_a} f(V_a^i)+\max_{i\in B_n} f(V_n^i)\big) \] The loss is zero once the top positive score exceeds the top negative score by a margin of 1, so the gradient stops after that margin is reached.

This base loss ignores temporal structure, although anomalies in practice often last only a short time, so the scores in a positive bag should be sparse with few active segments. A video is also a continuous sequence, so the scores of neighboring segments should change smoothly.

The full loss adds two terms to the base hinge, \[ l(B_a,B_n)+\lambda_1\sum_{i=1}^{n-1}\big(f(V_a^i)-f(V_a^{i+1})\big)^2+\lambda_2\sum_{i=1}^{n} f(V_a^i) \] where the first added term is the smoothness term and the second is the sparsity term. The smoothness term penalizes squared score differences between adjacent segments of the positive bag, and the sparsity term penalizes the total score mass of that bag, with weights \( \lambda_1 \) and \( \lambda_2 \).

For the reported model, \( \lambda_1 \) and \( \lambda_2 \) are both set to 8× 10−5, which the authors chose for best performance.

Network, features and optimization

C3D features are computed beforehand from the FC6 layer of a pre-trained 3D network, averaged over the 16-frame clips of each segment, giving a 4096-dimensional input per segment. Each clip feature is L2-normalized, and frames are resized to 240× 320 pixels at 30 fps before extraction. The learned part is a three-layer fully connected network with 512, 32 and 1 units, with 60% dropout between the layers.

The first layer uses ReLU and the last layer uses a sigmoid.

Each video is divided into 32 equal, non-overlapping segments, and the number 32 was set empirically. Multi-scale overlapping temporal segments were tried in the experiments and did not change detection accuracy.

Training uses Adagrad with an initial learning rate of 0.001, and each mini-batch holds 30 positive and 30 negative bags. Deeper networks were tried and did not improve detection accuracy.

Building the 1900-video surveillance dataset

Earlier benchmarks are small or staged: UCSD Ped1 and Ped2 hold 70 and 28 videos at one location, Avenue holds 37, UMN holds 5, and BOSS lists 12 videos with a length of 27 min. The two Subway datasets each contain one long video, with simple anomalies such as walking the wrong way and skipping payment. Several anomalies in these sets are unrealistic or performed by actors.

The new dataset covers 13 anomaly types: Abuse, Arrest, Arson, Assault, Accident, Burglary, Explosion, Fighting, Robbery, Shooting, Stealing, Shoplifting and Vandalism. Ten annotators searched YouTube and LiveLeak with text queries for each anomaly, including queries in several other languages. Videos were removed when they were edited, staged, not captured by CCTV, taken from news, shot by hand, compilations, or had an unclear anomaly.

This left 950 anomalous videos, and 950 normal videos were gathered by the same rules, for 1900 videos totaling 128 hours. The authors state that the dataset has more than 15 times as many videos as existing anomaly datasets. The comparison table gives an average of 7247 frames per video for the new dataset.

Training needs only video-level labels, while testing needs the start and end frames of each anomaly, which several annotators labeled and were then averaged. The training split has 800 normal and 810 anomalous videos, and the testing split has 150 normal and 140 anomalous videos. Table 2 lists the number of videos for each anomaly category and for normal events, with training counts in brackets.

Comparison with Lu et al. and Hasan et al.

Evaluation uses frame-based ROC curves and their AUC, and equal error rate is not used because it does not reflect a short anomaly inside a long video. The Lu et al. baseline extracts 7000 cuboids per normal training video, reduces the gradient features with PCA, and scores anomalies by reconstruction error from a sparse dictionary. The binary classifier is a linear-kernel SVM on whole-video C3D features that separates all anomalous videos from all normal videos.

Table 3 reports AUC of 50.0 for the binary classifier, 50.6 for Hasan et al., 65.51 for Lu et al., 74.44 for the proposed method without constraints and 75.41 with the constraints. The gap between the two proposed variants is small, 75.41 against 74.44, and each AUC is a single value with no spread reported.

In the ROC comparison, the proposed method reaches higher true positive rates at low false positive rates, for example between 0.1 and 0.3. The authors attribute the binary classifier's failure to long untrimmed videos in which the anomaly covers only a short period, so whole-video features are not discriminative. Reconstruction error for Lu et al.

stays low on anomalous parts as well, and Hasan et al. gives high scores to new normal patterns. The authors take this comparison as evidence that training on both anomalous and normal videos is needed for a robust system.

False alarms on normal test videos

Since most real surveillance footage is normal, the evaluation looks only at normal test videos and counts how often they are flagged at a 50% threshold. Lower values mean fewer false alarms.

In Table 4, Hasan et al. has a false alarm rate of 27.2, Lu et al. has 3.1 and the proposed method has 1.9.

The authors connect the lower rate to training on both normal and anomalous videos, which they say helps the model learn more general normal patterns.

How anomaly scores change during training

The training-iteration analysis tracks anomaly scores on one training anomalous video at iterations 1000, 3000, 5000 and 8000. The analysis covers one training video, so it illustrates localization on that example rather than across the training set.

Qualitative cases and failure modes

The qualitative set has eight testing videos: four anomalous videos showing animal abuse, an explosion, a road accident and a shooting, two normal videos, and two failure cases. On the two normal videos the scores stay close to 0 throughout, so no false alarms are raised. The burglary video, a person entering an office through a window in a dark night scene, is missed.

Flying insects occluding the camera cause false alarms, and a sudden gathering of people watching a relay race in the street is also flagged.

Anomalous activity recognition baselines

The dataset also serves as an activity recognition benchmark, since the anomalous videos carry event labels that the anomaly detector does not use. The authors use 50 videos per event, split 75/25 for training and testing, and report the baselines under four-fold cross validation.

The first baseline averages C3D features over 16-frame clips into a 4096-dimensional vector, L2-normalizes it and classifies with a nearest neighbor classifier. The second baseline is TCNN, which replaces the fifth 3d-max-pooling layer of C3D with a tube of interest pooling layer and outputs one feature vector per video.

Accuracy is 23.0 for C3D and 28.4 for TCNN. The authors attribute the low accuracy to long untrimmed, low-resolution surveillance videos and to large intra-class variation from viewpoint, illumination and background noise.

Limitations

The method misses a dark night burglary and produces false alarms from occlusion and crowd behavior. All anomaly experiments use C3D features as the segment representation.

The number of segments, 32, was chosen empirically, and multi-scale overlapping segments did not change detection accuracy in the authors' experiments. Deeper networks were reported not to give better detection accuracy.

The AUC values are single numbers, and the gain from the sparsity and smoothness constraints is small, 75.41 against 74.44. Lu et al. and Hasan et al. are run through their own code and implementation, as described in the comparison setup. Activity recognition is evaluated with two baselines only, under a 75/25 split and four-fold cross validation.

Paper info

Authors
Waqas Sultani, Chen Chen, Mubarak Shah
Venue
arXiv · Preprint
First published
2018-1-12
Added
2026-11-12
Updated
2019-2-14
Version
v3
arXiv
1801.04264
Category
cs.CV
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Waqas Sultani, Chen Chen, Mubarak Shah (2018). Real-world Anomaly Detection in Surveillance Videos. arXiv:1801.04264v3. https://arxiv.org/abs/1801.04264v3

BibTeX
@misc{sultani2018real,
  title = {{Real-world Anomaly Detection in Surveillance Videos}},
  author = {Waqas Sultani and Chen Chen and Mubarak Shah},
  year = {2018},
  eprint = {1801.04264},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1801.04264v3}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up