Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🏃 AI Sports Injury Risk Detection

An AI-powered Sports Injury Risk Detection system using Computer Vision, Pose Estimation, Biomechanics and Machine Learning.


📌 Project Overview

This project aims to detect potential sports injuries before they occur by analyzing an athlete's body movements from video.

The system extracts body landmarks using Google's MediaPipe Pose Landmarker, calculates biomechanical joint angles, analyzes movement patterns, and predicts injury risk using machine learning.


Features

  • 🎥 Video Processing
  • 🧍 Human Pose Estimation
  • 📍 Landmark Extraction
  • 📊 CSV Export of Body Keypoints
  • 🦴 Skeleton Visualization
  • 📐 Joint Angle Calculation
  • 🦵 Knee Angle Tracking
  • 🤖 Injury Risk Prediction (Upcoming)
  • 📈 Dashboard Visualization (Upcoming)

Tech Stack

  • Python
  • OpenCV
  • MediaPipe Tasks API
  • NumPy
  • Pandas
  • Scikit-Learn
  • TensorFlow
  • Git
  • GitHub

Project Structure

Sports-Injury-Risk-Detection
│
├── Milestone 1
│
├── Milestone 2
│   ├── backend
│   │
│   └── pose_estimation
│       ├── video_reader.py
│       ├── pose_detector.py
│       ├── landmark_extractor.py
│       ├── csv_exporter.py
│       ├── visualize_skeleton.py
│       ├── joint_angle_calculator.py
│       ├── calculate_knee_angles.py
│       └── angle_exporter.py
│
├── models
│
└── outputs

Milestone Progress

✅ Milestone 1

Project setup


✅ Milestone 2

Completed Pose Estimation Pipeline

✔ Video Reader

✔ Pose Detection

✔ Landmark Extraction

✔ CSV Export

✔ Skeleton Visualization

✔ Joint Angle Calculation

✔ Knee Angle CSV Export


Milestone 3 (In Progress)

  • Hip Angles
  • Elbow Angles
  • Shoulder Angles
  • Biomechanical Features
  • Gait Analysis

📊 Current Results

Pose Detection Accuracy

  • Frames Processed: 484
  • Detection Rate: 100%

Landmark Extraction

  • Total Landmarks: 15,972

Joint Angle Extraction

  • Knee Angles exported for all frames.

Future Work

  • Injury Risk Prediction
  • Deep Learning Models
  • Athlete Dashboard
  • Real-Time Webcam Detection
  • Injury Alerts
  • Performance Analytics

Author

Rachit Patnaik

B.Tech Computer Science (Data Science)

ITER, SOA University

GitHub: https://github.com/Rachit-Patnaik

LinkedIn: https://linkedin.com/in/rachit-patnaik-87933a332


⭐ If you like this project, consider giving it a Star.

About

AI-powered Sports Injury Risk Detection using Computer Vision, Pose Estimation, Biomechanics and Machine Learning.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages