File size: 5,140 Bytes
01cdecf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
license: mit
---
# AI Skating Coach - Figure Skating Element Recognition Dataset

**Clean 64-class version with multi-jump combinations preserved**

## Overview

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.

- **Total samples:** 5,405
- **Training:** 4,324 sequences
- **Test:** 1,081 sequences  
- **Classes:** 64 figure skating elements
- **Format:** Clean unaugmented data (no synthetic samples, no class weights)

## Dataset Structure

```
├── train_data.pkl          # Training sequences (4,324)
├── train_label.pkl         # Training labels
├── test_data.pkl           # Test sequences (1,081)
├── test_label.pkl          # Test labels
├── label_mapping.json      # Class IDs and names
└── dataset_info.json       # Metadata
```

## Data Format

**Skeleton sequences:** `(num_samples, variable_frames, 17_keypoints, 3_coordinates)`

- **Frames:** Variable length from original footage (original temporal resolution preserved)
- **Duration:** Varies by element (typically 2-25 seconds at 30 fps)
- **Keypoints:** 17-point COCO format
  - Head: nose, left/right eye, left/right ear
  - Torso: shoulders, elbows, wrists, hips, knees, ankles
- **Coordinates:** (x, y, confidence) normalized to [-1, 1] range

## Classes (64 Total)

### Single Jump Elements (0-20)
Single rotation jumps: Axel, Flip, Lutz, Loop, Salchow, Toeloop  
Rotations: 1x, 2x, 3x, 4x (where applicable)

**Examples:** 1Axel, 2Flip, 3Lutz, 4Toeloop

### Multi-Jump Combinations (21-30)
Natural sequence patterns from competition:
- 1A+3T, 1A+3A
- 2A+3T, 2A+3A, 2A+1Eu+3S
- 3F+3T, 3F+2T+2Lo
- 3Lz+3T, 3Lz+3Lo
- Generic Combination (Comb)

### Spins (31-62)
Rotational elements with position changes:
- **FCSp** (Foot Change Camel Spin): 31-34
- **CCoSp** (Catch Foot Combination Spin): 35-38
- **ChCamelSp** (Change Camel Spin): 39-42
- **ChComboSp** (Change Combination Spin): 43-46
- **ChSitSp** (Change Sit Spin): 47-50
- **FlySitSp** (Fly Sit Spin): 51-54
- **LaybackSp** (Layback Spin): 55-58

### Step Sequences & Choreography (59-63)
Linear traveling skating patterns:
- **StepSeq1-4:** Graded step sequences (59-62)
- **ChoreSeq1:** Choreographed sequence (63)

## Data Sources

1. **MMFS Dataset** (4,915 sequences)
   - 2D pose estimation from figure skating competition videos
   - Multiple skaters, various competition levels

2. **JSON Motion Capture** (253 sequences)
   - Professional 3D mocap capture from 4 elite skaters
   - Converted to 17-keypoint COCO format for consistency

3. **Combined & Validated** (5,405 sequences)
   - Merged MMFS and mocap data
   - Deduplicated overlapping classes
   - Combinations preserved for sequence modeling

## Preprocessing
 **Format unification:** 142-marker mocap → 17-keypoint COCO skeleton  
 **Temporal sampling:** Uniform to 150 frames per sequence  
 **Normalization:** Keypoint coordinates normalized to [-1, 1]  
 **Velocity features:** Computed for temporal dynamics  
 **Train/test split:** 80/20 stratified by class  



-

## Loading the Dataset

### Python
```python
import pickle
import json
import numpy as np

# Load training sequences and labels
with open('train_data.pkl', 'rb') as f:
    X_train = pickle.load(f)  # List of (150, 17, 3) arrays
with open('train_label.pkl', 'rb') as f:
    y_train = pickle.load(f)  # Array of class IDs (0-63)

# Load test data
with open('test_data.pkl', 'rb') as f:
    X_test = pickle.load(f)
with open('test_label.pkl', 'rb') as f:
    y_test = pickle.load(f)

# Load class mapping
with open('label_mapping.json', 'r') as f:
    mapping = json.load(f)

# Inspect
print(f"Training: {len(X_train)} sequences, {X_train[0].shape}")
print(f"Classes: {len(np.unique(y_train))}")
print(f"Class weights: {np.bincount(y_train)}")  # Raw distribution
```

### Convert to NumPy
```python
import numpy as np

# Stack sequences into array
X_train_array = np.array(X_train)  # (4324, 150, 17, 3)
X_test_array = np.array(X_test)    # (1081, 150, 17, 3)
```

## Recommended Usage

### Action Recognition
- CNN-LSTM architecture for 64-class classification
- Input: (batch, 150, 17, 3) sequences
- Output: 64-class softmax

### Sequence Modeling
- Use combinations (classes 21-30) for multi-step skill prediction
- Temporal modeling with RNNs/Transformers
- Learn natural skill progression patterns

### Transfer Learning
1. Pretrain on combinations for sequence context
2. Fine-tune on single jumps for element detection
3. Apply to event/routine-level classification

### Sports Analytics
- Skill difficulty assessment
- Athlete performance tracking
- Technique consistency analysis

## Class Distribution

For detailed per-class sample counts, see `dataset_info.json`

**Imbalance ratio:** ~6x (largest/smallest class)  
**Skew:** Toward more common elements (2-3 rotations, standard spins)





Dataset compiled from public figure skating competition videos and proprietary motion capture data. Use for research and educational purposes.

---

**Generated:** February 2026