|
Download deepethogram/README.md from ShinSeungJ/behavert-data: direct link, hf CLI and curl.
- Browser
- Download file 3 kB
-
https://huggingface.co/datasets/ShinSeungJ/behavert-data/resolve/main/deepethogram/README.md
- Command line
-
hf download hf://datasets/ShinSeungJ/behavert-data/deepethogram/README.md
-
curl -L -o README.md https://huggingface.co/datasets/ShinSeungJ/behavert-data/resolve/main/deepethogram/README.md
3 kB
| # DeepEthogram — keypoints added by BehaVERT | |
| The **DeepEthogram** mouse open-field dataset (Bohnslav et al., eLife 2021) | |
| comes with videos and frame-level behavior labels but no pose. We trained a | |
| YOLOv12 pose model on frames we annotated ourselves and ran it on all 20 videos | |
| to produce keypoints. These files are the input to the BehaVERT DeepEthogram | |
| experiment (paper Table 9). | |
| ``` | |
| deepethogram/ | |
| ├── keypoints/mouseXX.csv # 20 files, our pose predictions | |
| ├── labels/mouseXX_labels.csv # 20 files, original DeepEthogram labels | |
| └── pose_videos/mouseXX.mp4 # 20 videos with the predicted keypoints drawn on | |
| ``` | |
| ## 1. Keypoints — `keypoints/mouseXX.csv` | |
| - A header row, then one row per video frame, aligned 1:1 with the rows of the label file. | |
| - 22 columns = 11 keypoints × (x, y): `nose_x, nose_y, left_ear_x, …, body_center_y`. | |
| - Coordinates are normalized to [0, 1] by the frame width and height. | |
| - One mouse per video. | |
| | Index | Keypoint | Index | Keypoint | | |
| |---|---|---|---| | |
| | 0 | nose | 6 | tail base | | |
| | 1 | left ear | 7 | left hindpaw | | |
| | 2 | right ear | 8 | right hindpaw | | |
| | 3 | base of neck | 9 | tail tip | | |
| | 4 | left forepaw | 10 | body center | | |
| | 5 | right forepaw | | | | |
| **How they were made.** | |
| 1. Frames from the DeepEthogram videos were hand-annotated with the 11 keypoints. | |
| 2. A YOLOv12 pose model was trained on them. | |
| 3. The model was run on every frame of all 20 videos. | |
| 4. Frames where the mouse was not detected were filled by interpolation. | |
| 5. The confidence values were removed, leaving 22 coordinates per frame. | |
| Frames per video: | |
| | Videos | Frames each | | |
| |---|---| | |
| | mouse00–02, 18 | 36,578 | | |
| | mouse03–04 | 36,573 | | |
| | mouse05, 11, 12, 19 | 36,577 | | |
| | mouse06–07 | 18,258 | | |
| | mouse08–10 | 18,278 | | |
| | mouse13–14 | 15,866 | | |
| | mouse15–16 | 16,228 | | |
| | mouse17 | 16,230 | | |
| ## 2. Labels — `labels/mouseXX_labels.csv` | |
| The original DeepEthogram label files, unchanged. They have a header, an index | |
| column, and one-hot columns | |
| `background, Locomote, Rear, FaceGroom, BodyGroom, Defecate` (one row per | |
| frame). BehaVERT uses the position of the active column as the class | |
| (`background = 0` … `Defecate = 5`). | |
| ## 3. Pose videos — `pose_videos/mouseXX.mp4` | |
| The original videos with the predicted keypoints overlaid, so the quality of | |
| the pose estimates can be checked by eye. They are not needed for training. | |
| ## 4. Use with BehaVERT | |
| `configs/deepethogram/behavior.yaml` in the | |
| [BehaVERT repository](https://github.com/ShinSeungJ/BehaVERT). | |
| ## 5. License and citation | |
| The keypoints are our work, shared under | |
| [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). The labels and the | |
| video frames in `pose_videos/` come from the DeepEthogram example dataset | |
| (<https://github.com/jbohnslav/deepethogram>) and remain subject to its terms. | |
| Please cite Bohnslav et al., *DeepEthogram, a machine learning pipeline for | |
| supervised behavior classification from raw pixels*, eLife 2021, together with | |
| BehaVERT. | |