AI / Machine Learning

ObesityAI — Obesity Level Prediction Web App

A full-stack web application that predicts a user's obesity level based on lifestyle and health data, powered by a machine learning model served through a Flask API.

ObesityAI — Obesity Level Prediction Web App
AI / Machine Learning

ObesityAI — Obesity Level Prediction Web App

ObesityAI is a complete web platform that predicts obesity risk levels using a machine learning model trained on health and lifestyle indicators. Users sign up, log in, and fill out a detailed health assessment form covering factors such as age, height, weight, family history, eating habits, physical activity, water intake, and mode of transportation. The form data is sent to a PHP backend, which forwards it as JSON to a Python Flask API running the trained ML model. The model returns a prediction — such as Normal Weight or Overweight Level II — which is displayed instantly to the user. The system includes full user authentication (sign up/login), a clean form-based UI, and a smooth handoff between the PHP frontend and the Python-based prediction engine.

Python, Flask, PHP, MySQL, Machine Learning, Bootstrap · Completed 2025
The Approach

I built the frontend and user authentication system (sign up, login, session handling) using PHP and MySQL, and designed the prediction form to capture all the health and lifestyle variables the model needed. On submission, PHP packages the form data into JSON and sends it via cURL to a Flask API endpoint. The Flask backend loads the trained machine learning model, runs the prediction, and returns the result as JSON, which PHP then decodes and displays back to the user. This approach let me combine a traditional PHP/MySQL web stack with a Python-based ML service, keeping the model logic separate and independently maintainable from the web application.

Project image
Project image
Project image
Project image
More Work

Related Projects

View all projects