All models

S3R

Video anomaly detector that uses a learned dictionary of normal events to score video snippets.

Video · 231 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (148 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Task
Video
Parameters
81.4M
Operations
231
Framework
PyTorch
Recurrent
No
Published
ECCV 2022
Cited by
144 (as of 28 October 2026)
Authors
Jhih-Ciang Wu, He-Yen Hsieh, Ding-Jie Chen and others
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m19913
Graph hash
bf2a3846966ab78b0c5060fbec1bf11938de41698151c3d1153412d6de01d4f2
Skeleton hash
8343754cbe37e024507694015306e84d383a1c6ab8204ab6ce85eaca347a6ec6
Architecture hash
d2cce98e9ad9ddcbd4fd83987c2b5039c9d49089d3d257d0bbf8fb96394790fc
Diagram SHA-256
cd11e9fe53873040eabbfd24ec0c71e6d7c43bced66790991cc35463be584b30
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

S3R is a video anomaly detector: its job is to localize unexpected actions or activities in a video sequence. The paper wants one approach for two training settings, the one-class setting, which assumes all training data are normal, and the weakly-supervised setting, which needs only video-level normal or anomaly labels. This model is the weakly-supervised one, the setting the official code implements.

The starting point is a dictionary learned from anomaly-free training videos, an overcomplete basis in which a sample is explained by a sparse combination of atoms. Two network modules use that dictionary in opposite ways: en-Normal reconstructs the normal-event feature of a video snippet, and de-Normal filters the normal-event feature out. Self-supervised techniques also generate pseudo normal and anomaly samples for training the detector.

The network does not read raw frames, and the repository points to I3D features already extracted for the shanghaitech and ucf-crime datasets. Its results table lists an AUC of 97.40% on shanghaitech with the I3D backbone. On ucf-crime it lists 85.99%.

Key idea. S3R models anomaly at the feature level with a learned dictionary, using paired en-Normal and de-Normal modules to reconstruct snippet features and filter out normal events.

  • S3R
  • Self-Supervised Sparse Representation
  • video anomaly detection
  • VAD
  • weakly-supervised VAD
  • dictionary learning
  • en-Normal
  • de-Normal
  • anomaly detection

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@inbook{Wu_2022, title={Self-supervised Sparse Representation for Video Anomaly Detection}, ISBN={9783031197789}, ISSN={1611-3349}, url={http://dx.doi.org/10.1007/978-3-031-19778-9_42}, DOI={10.1007/978-3-031-19778-9_42}, booktitle={Computer Vision – ECCV 2022}, publisher={Springer Nature Switzerland}, author={Wu, Jhih-Ciang and Hsieh, He-Yen and Chen, Ding-Jie and Fuh, Chiou-Shann and Liu, Tyng-Luh}, year={2022}, pages={729–745} }