This project predicts the number of calories burned during physical exercise using Machine Learning.
It leverages physiological and workout-related parameters such as Gender, Age, Height, Weight, Duration, Heart Rate, and Body Temperature to generate accurate, data-driven predictions.
The system is implemented using Python and Streamlit, and deployed as a web application that provides real-time calorie predictions with visual insights.
- ✅ Predicts calories burned based on user inputs.
- ✅ Uses Random Forest Regressor (best model) for high accuracy.
- ✅ Displays feature importance and prediction visualizations.
- ✅ Interactive Streamlit web interface.
- ✅ Easy deployment — works locally or via Streamlit Cloud.
- Data Collection – Combined
exercise.csvandcalories.csvdatasets. - Preprocessing – Encoding gender, scaling numerical values, and removing non-predictive columns.
- Model Training – Trained Linear Regression and Random Forest models.
- Evaluation – Compared models using MAE, MSE, RMSE, and R² Score.
- Deployment – Built a Streamlit app for real-time prediction.
| Component | Tool / Library |
|---|---|
| Language | Python 3 |
| Web Framework | Streamlit |
| ML Library | Scikit-learn |
| Data Handling | Pandas, NumPy |
| Visualization | Matplotlib, Seaborn |
| Model | MAE | MSE | RMSE | R² Score |
|---|---|---|---|---|
| Linear Regression | 8.44 | 131.99 | 11.49 | 0.967 |
| Random Forest Regressor | 1.71 | 7.13 | 2.67 | 0.998 |
✅ Random Forest was selected as the final model due to superior accuracy and generalization.
git clone https://github.com/PKrishnaS/calories-burner.git
cd calories-burner