Jambo1988 commited on
Commit
d7722ef
·
verified ·
1 Parent(s): d9c88ac

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +188 -0
README.md ADDED
@@ -0,0 +1,188 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+
3
+ # ASTime
4
+
5
+ ASTime, short for **Activity State Transition Timestamp**, is a video dataset for studying real-time perception of human activity changes from a robotic perspective. Instead of only providing the start and end time of an activity segment, ASTime explicitly annotates the **transition timestamp**: the moment at which a new human activity state becomes semantically distinguishable from the previous state.
6
+
7
+ The released dataset contains anonymized, muted, untrimmed long videos collected in constructed home-like laboratory environments, together with JSON annotations for activity-state transition timestamp localization. The train/test split is subject-disjoint to evaluate generalization to unseen participants.
8
+
9
+ ## 📌 Dataset Summary
10
+
11
+ The statistics below are computed from the files in this repository under `Videos/` and `Annotations/`.
12
+
13
+ | Split | Subjects | Videos | Standard annotation JSON files | Transition events | Duration | Frames |
14
+ |---|---:|---:|---:|---:|---:|---:|
15
+ | Train | 14 | 128 | 128 | 2,924 | `13:20:56.116` | 1,440,358 |
16
+ | Test | 2 | 33 | 33 | 545 | `02:37:54.942` | 283,964 |
17
+ | Total | 16 | 161 | 161 | 3,469 | `15:58:51.058` | 1,724,322 |
18
+
19
+ Quick file facts:
20
+
21
+ - 🎞️ Video format: MP4 / H.264.
22
+ - 🔇 Audio: no audio streams are present in the released videos.
23
+ - 🖼️ Resolution and frame rate: most videos are `1920 x 1080` at about `30 FPS`; two videos are `3840 x 2160` at `30 FPS`.
24
+
25
+
26
+
27
+ Label vocabulary:
28
+
29
+ - 3 basic postures: `standing`, `sitting`, and `lying`.
30
+ - 18 non-posture action terms, such as `reading`, `using a phone`, `falling`, `stomachache`, and `carrying heavy objects`.
31
+ - Composite labels combine a posture with one or more action terms, for example `sitting, using a phone` or `sitting, using a phone, eating`.
32
+
33
+ ## 🗂️ Dataset Structure
34
+
35
+ The dataset has two main components: video files and JSON annotations.
36
+
37
+ | Component | Path pattern | Description |
38
+ |---|---|---|
39
+ | 🎬 Training videos | `Videos/train/P001_train/*.MP4` ... `Videos/train/P014_train/*.MP4` | Untrimmed videos for the training subjects. |
40
+ | 🎬 Test videos | `Videos/test/P015_test/*.MP4`, `Videos/test/P016_test/*.MP4` | Untrimmed videos for the held-out test subjects. |
41
+ | 🏷️ Training labels | `Annotations/ASTime_Annotations_train/annotation_train_labels/*.json` | Standard activity-state transition labels for training videos. |
42
+ | 🏷️ Test labels | `Annotations/ASTime_Annotations_test/annotation_test_label/*.json` | Standard activity-state transition labels for test videos. |
43
+ | 💬 Training captions | `Annotations/ASTime_Annotations_train/annotation_train_captioned/*.json` | Auxiliary natural-language captioned annotations for training videos. |
44
+
45
+ Naming follows the same anonymized subject/video ID convention across videos and annotations:
46
+
47
+ | Item | Example |
48
+ |---|---|
49
+ | Subject folder | `P001_train`, `P015_test` |
50
+ | Video file | `P001_train_1-1.MP4` |
51
+ | Standard label file | `P001_train_1-1.json` |
52
+ | Video ID / JSON key | `P001_train_1-1` |
53
+
54
+ The subject IDs are anonymized as `P001` through `P016`. The training split contains `P001` to `P014`, and the testing split contains `P015` and `P016`.
55
+
56
+ ## 📝 Annotation Format
57
+
58
+ Annotations are stored as JSON files. Each JSON file contains a single top-level key, which is the video ID. The value is a list of transition-event annotations.
59
+
60
+ ### Video-Annotation Matching
61
+
62
+ Use the shared video ID, i.e. the file stem without extension, to locate the corresponding standard annotation file.
63
+
64
+ | Video | Annotation |
65
+ |---|---|
66
+ | `Videos/train/P001_train/P001_train_1-1.MP4` | `Annotations/ASTime_Annotations_train/annotation_train_labels/P001_train_1-1.json` |
67
+ | `Videos/test/P015_test/P015_test_1-1.MP4` | `Annotations/ASTime_Annotations_test/annotation_test_label/P015_test_1-1.json` |
68
+
69
+ ### Standard Label Example
70
+
71
+ Standard label files use compact activity-state labels in the `text` field:
72
+
73
+ ```json
74
+ {
75
+ "P001_train_1-1": [
76
+ {
77
+ "t1_caption": "",
78
+ "start_time": 8.0,
79
+ "timestamp": 11.0,
80
+ "end_time": 19.0,
81
+ "text": "sitting, using a laptop",
82
+ "flag": 0
83
+ }
84
+ ]
85
+ }
86
+ ```
87
+
88
+ ### Captioned Annotation Example
89
+
90
+ The training split also includes an auxiliary captioned version in `annotation_train_captioned/`. In these files, `t1_caption` describes the previous state and `text` describes the target state in natural language:
91
+
92
+ ```json
93
+ {
94
+ "P001_train_1-1": [
95
+ {
96
+ "t1_caption": "This person is sitting.",
97
+ "start_time": 8.0,
98
+ "timestamp": 11.0,
99
+ "end_time": 19.0,
100
+ "text": "The person is sitting on a couch and using a laptop.",
101
+ "flag": 0
102
+ }
103
+ ]
104
+ }
105
+ ```
106
+
107
+ Field definitions:
108
+
109
+ | Field | Type | Description |
110
+ |---|---|---|
111
+ | `t1_caption` | string | Previous-state natural-language caption when available. This field is empty in the standard label annotations and populated in the auxiliary training caption files. |
112
+ | `start_time` | float | Start time, in seconds, of the temporal window associated with the transition event. |
113
+ | `timestamp` | float | Activity-state transition timestamp, in seconds. This is the target timestamp to localize. |
114
+ | `end_time` | float | End time, in seconds, of the temporal window associated with the transition event. |
115
+ | `text` | string | Target activity-state label or natural-language target-state caption, depending on the annotation directory. |
116
+ | `flag` | integer | Auxiliary annotation flag retained from the annotation process. In the current release, 3,413 events have `flag = 0` and 56 events have `flag = 1`. |
117
+
118
+ For the main activity-state transition timestamp task, use:
119
+
120
+ - Training labels: `Annotations/ASTime_Annotations_train/annotation_train_labels/`
121
+ - Test labels: `Annotations/ASTime_Annotations_test/annotation_test_label/`
122
+
123
+ The directory `Annotations/ASTime_Annotations_train/annotation_train_captioned/` provides an auxiliary natural-language captioned version of the training annotations. In those files, `text` is a natural-language target-state caption and `t1_caption` describes the previous state.
124
+
125
+ All standard label annotations satisfy:
126
+
127
+ ```text
128
+ start_time <= timestamp <= end_time
129
+ ```
130
+
131
+
132
+
133
+
134
+
135
+ ## 📊 Activity-State Statistics
136
+
137
+ ### Posture Distribution
138
+
139
+ | Posture | Train | Test | Total |
140
+ |---|---:|---:|---:|
141
+ | standing | 1,341 | 223 | 1,564 |
142
+ | sitting | 1,257 | 230 | 1,487 |
143
+ | lying | 326 | 92 | 418 |
144
+
145
+ ### Atomic Action-Term Distribution
146
+
147
+ Counts in this table are computed by splitting composite labels after the posture term. Multi-action labels therefore contribute to multiple action terms.
148
+
149
+ | Action term | Count |
150
+ |---|---:|
151
+ | using a phone | 448 |
152
+ | drinking | 384 |
153
+ | reading | 370 |
154
+ | eating | 271 |
155
+ | writing | 217 |
156
+ | using a laptop | 216 |
157
+ | carrying heavy objects | 184 |
158
+ | taking off jacket | 184 |
159
+ | putting on a jacket | 180 |
160
+ | posture only | 175 |
161
+ | headache | 168 |
162
+ | stomachache | 162 |
163
+ | pouring | 149 |
164
+ | picking up | 129 |
165
+ | reaching elevated objects | 116 |
166
+ | falling | 66 |
167
+ | washing | 58 |
168
+ | operating a microwave | 52 |
169
+ | making coffee | 46 |
170
+
171
+
172
+
173
+ ## 🎯 Intended Use
174
+
175
+ ASTime is intended for research on:
176
+
177
+ - activity-state transition timestamp localization;
178
+ - human activity recognition in long, untrimmed videos;
179
+ - robotic perception of human state changes;
180
+ - temporal understanding of daily-living, object-manipulation, information-interaction, and health/safety-related activities.
181
+
182
+ The subject-disjoint split should be used when evaluating generalization to unseen people.
183
+
184
+ ## 🔒 Privacy and Ethics
185
+
186
+ The released videos are anonymized and muted. Faces are blurred, and the video files contain no audio streams. Data collection was conducted in constructed home-like laboratory environments rather than private residences. Participants provided informed consent for dataset collection and release under the dataset's permitted usage terms.
187
+
188
+ Users should not attempt to identify participants or reverse anonymization. The dataset should be used only in ways consistent with the repository license and data-use terms.