File size: 2,749 Bytes
c7c030a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ee91704
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
---
language:
  - en
license: apache-2.0  
tags:
  - video-anomaly-detection
  - computer-vision
  - temporal-action-localization
  - ucf-crime
  - i3d-features
datasets:
  - sultani/real-world-anomaly-detection-in-surveillance-videos  
task_categories:
  - video-classification
size_categories:
  - 1GB<n 
pretty_name: UCF-Crime I3D Features
pipeline_tag: video-classification  
widget:
  - example_title: Example Video Features
    example_code: |
      import h5py
      import numpy as np
      with h5py.File('ucf_crime_features_labeled.h5', 'r') as f:
          features = np.array(f['Abuse/Abuse001_x264/features'][:10])  
          labels = np.array(f['Abuse/Abuse001_x264/labels'][:10])
      print("Features shape:", features.shape)
      print("Labels:", labels)
subdir_list:
  - abuse
  - arrest
  - assault
  - arrest_features
  - arson_features
  - assault_features
  - burglary_features
  - explosion_features
  - fighting_features 
  - normal_features
  - roadaccidents_features
  - robbery_features
  - shooting_features
  - shoplifting_features
  - stealing_features
  - vandalism_features
  
data_files:
  - train: ucf_crime_features_labeled.h5  # Single file with splits via metadata
  - validation: ucf_crime_features_labeled.h5
  - test: ucf_crime_features_labeled.h5
---



# UCF-Crime: Precomputed I3D Features with Temporal Annotations

This dataset provides pre-extracted 1024-dimensional I3D RGB features along with frame-level temporal anomaly labels for videos from the UCF-Crime dataset.

---

## Dataset Characteristics

### **Features**
- 1024-dimensional I3D RGB feature vectors  
- Extracted from **64 uniformly sampled frames per video**  
- Feature tensor shape: **[64, 1024]** 

### **Temporal Annotations**
- Mapped from original anomaly intervals  
- Re-scaled to match the 64 sampled frames  
- Only videos with valid annotations are included  

### **Coverage**
- Videos that contain complete temporal anomaly intervals  
- Suitable for supervised learning tasks

---

## Recommended Usage

This dataset is ideal for:

- Frame-level binary classification  
- Reconstruction-based anomaly detection  
- Temporal convolutional networks (TCN)  
- Transformer-based sequence models  
- Sequential anomaly scoring models  

Since features are already extracted, experiments are **lightweight and GPU-efficient**.

---

## Loading the Dataset
The Data Loader code has also been provided. Please refer to that.


---
## Citation
@inproceedings{sultani2018real,
  title={Real-world Anomaly Detection in Surveillance Videos},
  author={Sultani, Waqas and Chen, Chen and Shah, Mubarak},
  booktitle={Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition},
  pages={4469--4478},
  year={2018}
}