Skip to content

About

Machine learning model for predicting calorie expenditure using feature engineering, Gradient Boosting, and XGBoost.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

Calorie Expenditure Prediction

A Machine Learning solution developed for the Kaggle Playground Series competition.

The project predicts calorie expenditure during exercise using physiological measurements, engineered health metrics, and ensemble regression models.


🏆 Competition

  • Kaggle Playground Series - Season 5 Episode 5
  • Problem Type: Regression
  • Final Rank: 2543 / 4316 Teams

📖 Project Overview

Accurately estimating calorie expenditure is important for fitness tracking and health monitoring.

This project applies feature engineering techniques based on exercise science and trains machine learning models to predict burned calories.


🎯 Objective

Predict the number of calories burned during physical activity.


📊 Dataset

The dataset includes:

  • Age
  • Height
  • Weight
  • Duration
  • Heart Rate
  • Body Temperature
  • Gender

⚙️ Feature Engineering

Several health-related features were engineered, including:

  • Calories Estimated
  • Body Mass Index (BMI)
  • Basal Metabolic Rate (BMR)
  • Total Daily Energy Expenditure (TDEE)
  • Lean Body Mass (LBM)
  • Body Fat Percentage
  • Activity Factor
  • BMI Categories
  • Fat Categories

These engineered features significantly improved the predictive performance.


🤖 Models

Models used:

  • Gradient Boosting Regressor
  • XGBoost Regressor

Cross-validation was used during model evaluation.


📈 Evaluation

Regression models were evaluated using:

  • RMSLE (Root Mean Squared Logarithmic Error)

The final predictions were exported for Kaggle submission.


📸 Screenshots

Dataset

Dataset

Feature Engineering

Feature Engineering

Model

Model

Submission

Submission


🛠️ Technologies

  • Python
  • Pandas
  • NumPy
  • Scikit-learn
  • XGBoost
  • Matplotlib
  • Seaborn
  • Jupyter Notebook

📂 Project Structure

notebooks/
screenshots/
README.md
requirements.txt

👨‍💻 My Contribution

This solution was fully developed by me.

Responsibilities included:

  • Data preprocessing
  • Feature engineering
  • Health metric calculation
  • Model training
  • Cross-validation
  • Prediction generation
  • Kaggle submission creation

🚀 Installation

pip install -r requirements.txt

Run the notebook to reproduce the results.


👤 Author

Karim Maher

Data Science | Machine Learning | Flutter | Digital Marketing

About

Machine learning model for predicting calorie expenditure using feature engineering, Gradient Boosting, and XGBoost.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages