Skip to content

Shahmeerdv/ML-Project-main

Repository files navigation

🏋️ Athlete Injury Risk Analyzer

A Streamlit-based AI application to predict injury risk levels for athletes based on personal and training data. Features include real-time prediction, a fitness chatbot, CSV batch upload, BMI analysis, smart tips, and data logging.


🚀 Features

  • 🩺 Injury risk prediction (Low / Medium / High)
  • 💬 Fitness chatbot powered by GoosedevLuna
  • 📂 Upload CSV for batch predictions
  • 📊 BMI calculator and auto-classification
  • 📈 Dataset distribution chart
  • 🧠 Smart training & recovery tips
  • 📝 Prediction log saved automatically

📦 Installation

cd athlete-injury-risk-analyzer
pip install -r requirements.txt

▶️ Running the App

streamlit run app.py

📁 Required Files

  • app.py
  • model.pkl
  • chatbot.py
  • background.jpg
  • requirements.txt
  • (Optional) injury_data_balanced.csv

📘 Example CSV for Batch Prediction

Use the "📂 Upload & Predict" tab to upload a properly formatted CSV. You can download a sample CSV within the app UI.

Required columns:

Age, Sport, TrainingHours, SleepHours, PreviousInjury,
StressLevel, DietQuality, TrainingType, Weight, HeightCM

👤 Team Members

  • Muhammad Shahmeer
  • Huzaifa Khalid
  • Moeez Arif

📄 License

This project is for academic purposes only.


🌟 Show your support

If you like this project, star the repo! ⭐

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages