Datasets:
File size: 8,463 Bytes
e37e307 bb2ff87 e37e307 fe9c311 bea6815 fe9c311 49cb590 fe9c311 | 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 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 | ---
task_categories:
- video-classification
language:
- en
tags:
- Retail
- Action
- Video
- ICCV
- Multi-View
- Spatio-Temporal
- Localization
- Interactions
size_categories:
- 10K<n<100K
license: other
---
# RetailAction Dataset
[](https://retailvisionworkshop.github.io/)
**Paper**: *RetailAction: Dataset for Multi-View Spatio-Temporal Localization of Human-Object Interactions in Retail*
**Accepted at**: ICCV 2025 – Retail Vision Workshop
**Authors**: Davide Mazzini, Alberto Raimondi, Bruno Abbate, Daniel Fischetti, David M. Woollard
**Organization**: [Standard AI](https://standard.ai/)
---
## Overview
RetailAction is a large-scale dataset designed for **multi-view spatio-temporal localization of human–object interactions in real-world retail environments**.
Unlike previous action recognition datasets, RetailAction focuses on **precisely localizing customer–product interactions** (e.g., *take*, *put*, *touch*) in both **space and time**, across **multiple synchronized ceiling-mounted cameras** in operational convenience stores.
The dataset is released to advance research in:
- Fine-grained action recognition in retail
- Multi-view action localization
- Human–object interaction understanding
- Applications such as shopper behavior analysis, autonomous checkout, and retail analytics
---
## Key Features
- **Real-world scale**: 21,000 multi-view annotated samples (≈41 hours of video)
- **Multi-view recordings**: Each sample contains **two synchronized top-view videos** from ceiling-mounted cameras
- **Real customers**: 10,000+ unique shoppers across **10 convenience stores in the United States**
- **Interaction-centric labels**: Instead of bounding boxes around people, **point-based annotations** mark the exact location where an item is touched
- **Action categories**:
- `Take`: picking up an item
- `Put`: placing back an item
- `Touch`: hand contact without taking/placing
- **Efficient video clips**: Each video has ≤32 frames, selected via motion-aware frame scoring for maximum informativeness
- **Privacy preserved**: All data anonymized with facial blurring and removal of store identifiers
---
## Get Started
### Download the Dataset
To download the full dataset, you can use the following code. If you encounter any issues, please refer to the official Hugging Face documentation.
```bash
# Make sure you have git-lfs installed (https://git-lfs.com)
git lfs install
# When prompted for a password, use an access token with write permissions.
# Generate one from your settings: https://huggingface.co/settings/tokens
git clone https://huggingface.co/datasets/standard-cognition/RetailAction
```
### Extract the Dataset
```bash
# Navigate to the directory where the extraction script is located
cd data
# Extract the three dataset splits
tar -xf test.tar
tar -xf validation.tar
tar -xf train.tar
```
---
## Dataset Statistics
- **Total samples**: 21,000
- **Total video hours**: ~41h
- **Unique shoppers**: 10,000+
- **Stores**: 10 real-world locations
**Action distribution**:
- `Take`: 97.2%
- `Put`: ~2%
- `Touch`: <1%
**Number of actions per segment**:
- 0 actions: 9.1%
- 1 action: 84.7%
- 2 actions: 5.5%
- \>2 actions: 0.7%
**Duration distributions**:
- Segment duration: typically 10–50s
- Action duration: mostly ≤3s
**Store representation**:
- Store 1: 36.2%
- Store 2: 26.1%
- Store 3: 18.7%
- Store 4: 9.1%
- Remaining stores: 9.9% combined
---
## Dataset Splits
The dataset is partitioned by **unique shopper identity** to avoid leakage:
- **Train**: 17,222 samples
- **Validation**: 1,277 samples
- **Test**: 2,501 samples
Identifiers are anonymized and not released.
---
## File Structure
Each dataset sample contains:
```
sample_xxxxx/
├── rank0_video.mp4 # First camera view
├── rank1_video.mp4 # Second camera view
├── metadata.json # Metadata including sampling scores, poses, face positions and spatio-temporal labels for actions
```
### Annotations
The `metadata.json` file contains comprehensive annotations organized into several sections:
#### Action Labels
Each human-object interaction includes:
- **Action class**: `{take, put, touch}`
- **Temporal interval**: Normalized start/end times (0.0-1.0) relative to segment duration
- **Spatial coordinates**: `(x, y)` normalized coordinates for each camera view (`rank0`, `rank1`)
#### Camera Data (`action_cam`)
For each camera view (`rank0`, `rank1`):
- **Frame timestamps**: ISO 8601 timestamps for each video frame.
- **Face positions**: Detected face locations with `(col, row)` coordinates and timestamps of the subject of interest.
- **Sampling scores**: Motion-aware frame importance scores with timestamps
- **Pose data**: Full-body pose estimation is provided only for the subject of interest (i.e., the person with labeled actions). In videos with multiple people, only this subject has associated face positions and pose data.
- Joint coordinates for 18 body keypoints (head, shoulders, elbows, wrists, hands, waist, hips, knees, ankles, feet)
- Confidence scores for each joint detection
#### Segment Information
- **Temporal bounds**: Start and end timestamps for the entire video segment. `sampled_at_start` for every video starts at 1970-01-01T00:00:00 for anonymization purposes
---
## Spatial Metric Normalization (meters/pixels factor)
To fairly evaluate spatial localization, we convert distances from pixels to meters.
1. For each video, we estimate the **meters-per-pixel factor** (`m_px_factor`) based on bone lengths derived from 2D pose keypoints.
2. We compare measured pixel bone lengths to the average real-world bone lengths (computed from >10K 3D poses across multiple stores and cameras).
3. The ratio gives a per-video normalization factor used to compute Euclidean distances in meters between predicted and ground-truth interaction points.
### Average Bone Lengths in Meters
Computed from our 3D retail pose dataset:
```python
BONE_LENGTH_MEANS = {
("neck", "nose"): 0.19354,
("left_shoulder", "left_elbow"): 0.27096,
("left_elbow", "left_wrist"): 0.21228,
("right_shoulder", "right_elbow"): 0.27210,
("right_elbow", "right_wrist"): 0.21316,
("left_hip", "left_knee"): 0.39204,
("left_knee", "left_ankle"): 0.39530,
("right_hip", "right_knee"): 0.39266,
("right_knee", "right_ankle"): 0.39322,
("left_shoulder", "right_shoulder"): 0.35484,
("left_hip", "right_hip"): 0.17150,
("neck", "left_shoulder"): 0.18136,
("neck", "right_shoulder"): 0.18081,
("left_shoulder", "left_hip"): 0.51375,
("right_shoulder", "right_hip"): 0.51226,
}
```
### Fallback Factor
In cases where poses are incomplete or invalid and bone-based normalization cannot be computed, we apply a global average factor:
```python
M_PX_FACTOR_AVG = 3.07 # meters per 1000 pixels (approx.)
```
This ensures robust metric computation across all samples.
## Benchmark & Baselines
We provide a **DETR-based multi-view localization model** as baseline, evaluated with state-of-the-art backbones.
**Baseline performance (Test Set):**
| Model | Type | mAP | mAPs (spatial) | mAPt (temporal) |
|------------------|--------|------|----------------|-----------------|
| MoViNet-A2 | Conv | 33.5 | 43.8 | **60.9** |
| SlowFast-R101 | Conv | 40.2 | 50.4 | 53.2 |
| MViT-b | Transf | **41.7** | **55.6** | 58.2 |
| ViT-small | Transf | 28.3 | 42.4 | 46.9 |
| ViT-base | Transf | 31.1 | 45.7 | 47.0 |
| ViT-giant (frozen) | Transf | 38.5 | 50.3 | 58.0 |
---
## Citation
If you use this dataset, please cite:
```bibtex
@inproceedings{mazzini2025retailaction,
title={RetailAction: Dataset for Multi-View Spatio-Temporal Localization of Human-Object Interactions in Retail},
author={Mazzini, Davide and Raimondi, Alberto and Abbate, Bruno and Fischetti, Daniel and Woollard, David M.},
booktitle={ICCV Retail Vision Workshop},
year={2025}
}
```
## License
The dataset is released by Standard AI.
See the full license terms in the [LICENSE](./LICENSE) file.
## Contact
For questions or collaborations, please contact:
{davide, bruno, david.woollard}@standard.ai |