{
 "name": "tutorial-cs11-knee-angle",
 "title": "Tutorial CS-11: From keypoints to a knee angle over a stride",
 "description": "Turn a keypoint table into a knee angle, gate it, beat the left–right swaps, line the cycles up and average them into one curve with an error band, and find out which part of the curve is a measurement.",
 "homepage": "https://apopt.com/data/tutorials/cs11-knee-angle/",
 "licenses": [
  {
   "name": "CC BY 4.0",
   "path": "https://creativecommons.org/licenses/by/4.0/"
  }
 ],
 "created": "2026-12-03",
 "keywords": [
  "tutorial",
  "case study",
  "pose",
  "knee angle",
  "running",
  "cleaning",
  "error band"
 ],
 "resources": [
  {
   "name": "clean-knee_curve_x.csv",
   "path": "clean/knee_curve_x.csv",
   "url": "https://apopt.com/data/tutorials/cs11-knee-angle/clean/knee_curve_x.csv",
   "format": "csv",
   "mediatype": "text/csv",
   "bytes": 562,
   "hash": "sha256:0d3f61327e43f45f840471e06981fecda48e6977ccc13d49da884d1577abdae4",
   "description": "Cleaned copy written by the tutorial",
   "rows": 35,
   "schema": {
    "fields": [
     {
      "name": "pct_cycle",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "mean_deg",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "sd_deg",
      "type": "number",
      "unit": null,
      "description": null
     }
    ],
    "missingValues": [
     ""
    ]
   }
  },
  {
   "name": "clean-swing_knee_n.csv",
   "path": "clean/swing_knee_n.csv",
   "url": "https://apopt.com/data/tutorials/cs11-knee-angle/clean/swing_knee_n.csv",
   "format": "csv",
   "mediatype": "text/csv",
   "bytes": 3329,
   "hash": "sha256:63f23a0c496eada716ea912d0234f16ae5002b351a13b6d2842fa39a2ea1843f",
   "description": "Cleaned copy written by the tutorial",
   "rows": 117,
   "schema": {
    "fields": [
     {
      "name": "frame",
      "type": "number",
      "unit": "count",
      "description": "frame number from 0 at 30 frames per second"
     },
     {
      "name": "t_s",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "bent_knee_deg",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "smoothed_deg",
      "type": "number",
      "unit": null,
      "description": null
     }
    ],
    "missingValues": [
     ""
    ]
   }
  },
  {
   "name": "clean-swing_knee_s.csv",
   "path": "clean/swing_knee_s.csv",
   "url": "https://apopt.com/data/tutorials/cs11-knee-angle/clean/swing_knee_s.csv",
   "format": "csv",
   "mediatype": "text/csv",
   "bytes": 3351,
   "hash": "sha256:20c824c3b410d0b956144a06327fe08ef8c5d2a888e82241c4d51c4bdf26eabd",
   "description": "Cleaned copy written by the tutorial",
   "rows": 117,
   "schema": {
    "fields": [
     {
      "name": "frame",
      "type": "number",
      "unit": "count",
      "description": "frame number from 0 at 30 frames per second"
     },
     {
      "name": "t_s",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "bent_knee_deg",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "smoothed_deg",
      "type": "number",
      "unit": null,
      "description": null
     }
    ],
    "missingValues": [
     ""
    ]
   }
  },
  {
   "name": "clean-swing_knee_x.csv",
   "path": "clean/swing_knee_x.csv",
   "url": "https://apopt.com/data/tutorials/cs11-knee-angle/clean/swing_knee_x.csv",
   "format": "csv",
   "mediatype": "text/csv",
   "bytes": 3288,
   "hash": "sha256:09b722dfbec877516ca7d1589a1e8faf11dc47394cf20677d804d2230be8cc16",
   "description": "Cleaned copy written by the tutorial",
   "rows": 117,
   "schema": {
    "fields": [
     {
      "name": "frame",
      "type": "number",
      "unit": "count",
      "description": "frame number from 0 at 30 frames per second"
     },
     {
      "name": "t_s",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "bent_knee_deg",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "smoothed_deg",
      "type": "number",
      "unit": null,
      "description": null
     }
    ],
    "missingValues": [
     ""
    ]
   }
  },
  {
   "name": "expected-printed-output.txt",
   "path": "expected/printed-output.txt",
   "url": "https://apopt.com/data/tutorials/cs11-knee-angle/expected/printed-output.txt",
   "format": "text",
   "mediatype": "text/plain",
   "bytes": 1159,
   "hash": "sha256:238611207b756d882a38b100b098483db1b9723a7e421c286b9e81426eb7509e",
   "description": "Everything the tutorial prints, cell by cell"
  },
  {
   "name": "raw-form3_30fps_yolo26n-pose.csv",
   "path": "raw/form3_30fps_yolo26n-pose.csv",
   "url": "https://apopt.com/data/tutorials/cs11-knee-angle/raw/form3_30fps_yolo26n-pose.csv",
   "format": "csv",
   "mediatype": "text/csv",
   "bytes": 44416,
   "hash": "sha256:eee8c1f2f9be12ed5bd7fffe4a9916c88379c1c2c9d9387a7140b6474d695b1b",
   "description": "the same clip with the nano model, YOLO26n (117 rows)",
   "rows": 117,
   "schema": {
    "fields": [
     {
      "name": "frame",
      "type": "number",
      "unit": "count",
      "description": "frame number from 0 at 30 frames per second"
     },
     {
      "name": "nose_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "nose_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_eye_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_eye_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_eye_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_eye_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_ear_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_ear_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_ear_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_ear_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_shoulder_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_shoulder_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_shoulder_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_shoulder_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_elbow_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_elbow_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_elbow_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_elbow_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_wrist_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_wrist_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_wrist_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_wrist_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_hip_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_hip_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_hip_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_hip_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_knee_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_knee_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_knee_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_knee_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_ankle_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_ankle_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_ankle_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_ankle_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "nose_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_eye_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_eye_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_ear_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_ear_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_shoulder_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_shoulder_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_elbow_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_elbow_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_wrist_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_wrist_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_hip_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_hip_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_knee_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_knee_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_ankle_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_ankle_c",
      "type": "number",
      "unit": null,
      "description": null
     }
    ],
    "missingValues": [
     ""
    ]
   }
  },
  {
   "name": "raw-form3_30fps_yolo26s-pose.csv",
   "path": "raw/form3_30fps_yolo26s-pose.csv",
   "url": "https://apopt.com/data/tutorials/cs11-knee-angle/raw/form3_30fps_yolo26s-pose.csv",
   "format": "csv",
   "mediatype": "text/csv",
   "bytes": 43658,
   "hash": "sha256:83b5b93661ee327f8645dac92c060394c7c1f6a0825a015149dab7183d692947",
   "description": "the same clip with the small model, YOLO26s (115 rows; two frames without a person)",
   "rows": 115,
   "schema": {
    "fields": [
     {
      "name": "frame",
      "type": "number",
      "unit": "count",
      "description": "frame number from 0 at 30 frames per second"
     },
     {
      "name": "nose_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "nose_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_eye_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_eye_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_eye_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_eye_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_ear_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_ear_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_ear_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_ear_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_shoulder_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_shoulder_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_shoulder_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_shoulder_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_elbow_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_elbow_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_elbow_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_elbow_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_wrist_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_wrist_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_wrist_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_wrist_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_hip_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_hip_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_hip_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_hip_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_knee_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_knee_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_knee_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_knee_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_ankle_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_ankle_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_ankle_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_ankle_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "nose_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_eye_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_eye_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_ear_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_ear_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_shoulder_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_shoulder_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_elbow_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_elbow_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_wrist_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_wrist_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_hip_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_hip_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_knee_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_knee_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_ankle_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_ankle_c",
      "type": "number",
      "unit": null,
      "description": null
     }
    ],
    "missingValues": [
     ""
    ]
   }
  },
  {
   "name": "raw-form3_30fps_yolo26x-pose.csv",
   "path": "raw/form3_30fps_yolo26x-pose.csv",
   "url": "https://apopt.com/data/tutorials/cs11-knee-angle/raw/form3_30fps_yolo26x-pose.csv",
   "format": "csv",
   "mediatype": "text/csv",
   "bytes": 109362,
   "hash": "sha256:3effd7ccedb60cddd81227215cc05b9001014fae57d4a1443a46ffcc7f15f8ad",
   "description": "keypoints of every frame of a hand-drawn runner seen from the side, YOLO26x (117 rows, 52 columns)",
   "rows": 117,
   "schema": {
    "fields": [
     {
      "name": "frame",
      "type": "number",
      "unit": "count",
      "description": "frame number from 0 at 30 frames per second"
     },
     {
      "name": "nose_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "nose_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_eye_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_eye_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_eye_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_eye_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_ear_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_ear_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_ear_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_ear_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_shoulder_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_shoulder_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_shoulder_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_shoulder_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_elbow_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_elbow_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_elbow_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_elbow_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_wrist_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_wrist_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_wrist_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_wrist_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_hip_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_hip_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_hip_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_hip_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_knee_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_knee_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_knee_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_knee_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_ankle_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_ankle_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_ankle_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_ankle_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "nose_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_eye_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_eye_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_ear_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_ear_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_shoulder_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_shoulder_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_elbow_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_elbow_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_wrist_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_wrist_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_hip_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_hip_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_knee_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_knee_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_ankle_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_ankle_c",
      "type": "number",
      "unit": null,
      "description": null
     }
    ],
    "missingValues": [
     ""
    ]
   }
  }
 ],
 "sources": [
  {
   "title": "Data-Driven Athletics tutorials (IRSRI, 2027)"
  }
 ]
}
