meghna2801 commited on
Commit
01cdecf
·
verified ·
1 Parent(s): 1759721

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +174 -3
README.md CHANGED
@@ -1,3 +1,174 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ ---
4
+ # AI Skating Coach - Figure Skating Element Recognition Dataset
5
+
6
+ **Clean 64-class version with multi-jump combinations preserved**
7
+
8
+ ## Overview
9
+
10
+ Figure skating skeleton pose sequences for action/element classification. Raw keypoint data extracted from competition videos and professional motion capture, presented in clean unmodified form.
11
+
12
+ - **Total samples:** 5,405
13
+ - **Training:** 4,324 sequences
14
+ - **Test:** 1,081 sequences
15
+ - **Classes:** 64 figure skating elements
16
+ - **Format:** Clean unaugmented data (no synthetic samples, no class weights)
17
+
18
+ ## Dataset Structure
19
+
20
+ ```
21
+ ├── train_data.pkl # Training sequences (4,324)
22
+ ├── train_label.pkl # Training labels
23
+ ├── test_data.pkl # Test sequences (1,081)
24
+ ├── test_label.pkl # Test labels
25
+ ├── label_mapping.json # Class IDs and names
26
+ └── dataset_info.json # Metadata
27
+ ```
28
+
29
+ ## Data Format
30
+
31
+ **Skeleton sequences:** `(num_samples, variable_frames, 17_keypoints, 3_coordinates)`
32
+
33
+ - **Frames:** Variable length from original footage (original temporal resolution preserved)
34
+ - **Duration:** Varies by element (typically 2-25 seconds at 30 fps)
35
+ - **Keypoints:** 17-point COCO format
36
+ - Head: nose, left/right eye, left/right ear
37
+ - Torso: shoulders, elbows, wrists, hips, knees, ankles
38
+ - **Coordinates:** (x, y, confidence) normalized to [-1, 1] range
39
+
40
+ ## Classes (64 Total)
41
+
42
+ ### Single Jump Elements (0-20)
43
+ Single rotation jumps: Axel, Flip, Lutz, Loop, Salchow, Toeloop
44
+ Rotations: 1x, 2x, 3x, 4x (where applicable)
45
+
46
+ **Examples:** 1Axel, 2Flip, 3Lutz, 4Toeloop
47
+
48
+ ### Multi-Jump Combinations (21-30)
49
+ Natural sequence patterns from competition:
50
+ - 1A+3T, 1A+3A
51
+ - 2A+3T, 2A+3A, 2A+1Eu+3S
52
+ - 3F+3T, 3F+2T+2Lo
53
+ - 3Lz+3T, 3Lz+3Lo
54
+ - Generic Combination (Comb)
55
+
56
+ ### Spins (31-62)
57
+ Rotational elements with position changes:
58
+ - **FCSp** (Foot Change Camel Spin): 31-34
59
+ - **CCoSp** (Catch Foot Combination Spin): 35-38
60
+ - **ChCamelSp** (Change Camel Spin): 39-42
61
+ - **ChComboSp** (Change Combination Spin): 43-46
62
+ - **ChSitSp** (Change Sit Spin): 47-50
63
+ - **FlySitSp** (Fly Sit Spin): 51-54
64
+ - **LaybackSp** (Layback Spin): 55-58
65
+
66
+ ### Step Sequences & Choreography (59-63)
67
+ Linear traveling skating patterns:
68
+ - **StepSeq1-4:** Graded step sequences (59-62)
69
+ - **ChoreSeq1:** Choreographed sequence (63)
70
+
71
+ ## Data Sources
72
+
73
+ 1. **MMFS Dataset** (4,915 sequences)
74
+ - 2D pose estimation from figure skating competition videos
75
+ - Multiple skaters, various competition levels
76
+
77
+ 2. **JSON Motion Capture** (253 sequences)
78
+ - Professional 3D mocap capture from 4 elite skaters
79
+ - Converted to 17-keypoint COCO format for consistency
80
+
81
+ 3. **Combined & Validated** (5,405 sequences)
82
+ - Merged MMFS and mocap data
83
+ - Deduplicated overlapping classes
84
+ - Combinations preserved for sequence modeling
85
+
86
+ ## Preprocessing
87
+ **Format unification:** 142-marker mocap → 17-keypoint COCO skeleton
88
+ **Temporal sampling:** Uniform to 150 frames per sequence
89
+ **Normalization:** Keypoint coordinates normalized to [-1, 1]
90
+ **Velocity features:** Computed for temporal dynamics
91
+ **Train/test split:** 80/20 stratified by class
92
+
93
+
94
+
95
+ -
96
+
97
+ ## Loading the Dataset
98
+
99
+ ### Python
100
+ ```python
101
+ import pickle
102
+ import json
103
+ import numpy as np
104
+
105
+ # Load training sequences and labels
106
+ with open('train_data.pkl', 'rb') as f:
107
+ X_train = pickle.load(f) # List of (150, 17, 3) arrays
108
+ with open('train_label.pkl', 'rb') as f:
109
+ y_train = pickle.load(f) # Array of class IDs (0-63)
110
+
111
+ # Load test data
112
+ with open('test_data.pkl', 'rb') as f:
113
+ X_test = pickle.load(f)
114
+ with open('test_label.pkl', 'rb') as f:
115
+ y_test = pickle.load(f)
116
+
117
+ # Load class mapping
118
+ with open('label_mapping.json', 'r') as f:
119
+ mapping = json.load(f)
120
+
121
+ # Inspect
122
+ print(f"Training: {len(X_train)} sequences, {X_train[0].shape}")
123
+ print(f"Classes: {len(np.unique(y_train))}")
124
+ print(f"Class weights: {np.bincount(y_train)}") # Raw distribution
125
+ ```
126
+
127
+ ### Convert to NumPy
128
+ ```python
129
+ import numpy as np
130
+
131
+ # Stack sequences into array
132
+ X_train_array = np.array(X_train) # (4324, 150, 17, 3)
133
+ X_test_array = np.array(X_test) # (1081, 150, 17, 3)
134
+ ```
135
+
136
+ ## Recommended Usage
137
+
138
+ ### Action Recognition
139
+ - CNN-LSTM architecture for 64-class classification
140
+ - Input: (batch, 150, 17, 3) sequences
141
+ - Output: 64-class softmax
142
+
143
+ ### Sequence Modeling
144
+ - Use combinations (classes 21-30) for multi-step skill prediction
145
+ - Temporal modeling with RNNs/Transformers
146
+ - Learn natural skill progression patterns
147
+
148
+ ### Transfer Learning
149
+ 1. Pretrain on combinations for sequence context
150
+ 2. Fine-tune on single jumps for element detection
151
+ 3. Apply to event/routine-level classification
152
+
153
+ ### Sports Analytics
154
+ - Skill difficulty assessment
155
+ - Athlete performance tracking
156
+ - Technique consistency analysis
157
+
158
+ ## Class Distribution
159
+
160
+ For detailed per-class sample counts, see `dataset_info.json`
161
+
162
+ **Imbalance ratio:** ~6x (largest/smallest class)
163
+ **Skew:** Toward more common elements (2-3 rotations, standard spins)
164
+
165
+
166
+
167
+
168
+
169
+ Dataset compiled from public figure skating competition videos and proprietary motion capture data. Use for research and educational purposes.
170
+
171
+ ---
172
+
173
+ **Generated:** February 2026
174
+