Code Monkey home page Code Monkey logo

pavanparchuri / body-fitness-prediction Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 665 KB

⚡ BODY FITNESS PREDICTION is a Machine Learning based web application that is used to predict the fitness levels of a person (Active/Inactive).

Home Page: https://fitness-prediction.herokuapp.com/

License: MIT License

Jupyter Notebook 98.84% Python 0.47% HTML 0.36% CSS 0.32% Procfile 0.01%
machine-learning flask supervised-learning classification-algorithims gradient-boosting-classifier fitness fitness-app prediction

body-fitness-prediction's Introduction

Body-Fitness-Prediction

Click here to see the app Fitness Prediction App

INTRODUCTION:

Sedentary lifestyle is defined by the absence of physical activity practices throughout the day and causes a decrease in caloric expenditure. This behaviour is explained by the inappropriate lifestyle, for example, too much time sitting or lying down and still eating unhealthy foods during this time of immobilization. Currently, a third of the adult world population is physically inactive and this generates five million deaths per year (The Lancet, 2012). Additionally contributing to several chronic diseases, physical inactivity also influences mood, sleep quality and body weight.

Our system focuses more on user friendliness of all type of people and they can access anywhere. A user can give inputs such as step count, mood, calories burned, hours of sleep and weight in the website. We take those values and give it to machine learning model. Finally, it will predict whether the person is active or inactive based on their given data.

OBSERVATIONS:

● It was observed that when comparing the level of physical activity by the step count, people who are "happy" showed greater level when compared to the categories of "sad" and "neutral".

● In addition, "happy" people spend more energy (kilo calories) than "neutral" or "sad" people.

● "Happy" people demonstrate sleeping more hours of sleep when compared to the other categories. However, "sad" people also sleep more hours than "neutral" people.

● Self-perceived activity (active / inactive) also demonstrates differences in the case of the level of physical activity (by counting steps), "active" people tend to walk more steps, spend more calories and sleep more hours when compared to people self - called "inactive".

● From the given data there is no much variance in weights. However, some how we can say that less weight people tends to be more "happy" which in turn effects on activeness.

● Finally, the association between self-perception of activity with Mood, 46 percent of the people considered "sad" are "inactive" and 57 percent of the "happy" people are considered "active.

Jessica Selinger's study reports on the "law of least effort" and demonstrates that the body adjusts to the least effort, as the brain boycotts efforts to save energy costs. Therefore, physically demanding of the body improves health and increases the disposition. It is known that the practice of regular physical activity is a leading intervention for better physical and mental health.

PROJECT STRUCTURE:

This project has four parts:

  1. model.py — This contains code for the machine learning model to predict whether a person is active or inactive based on hours of sleep, body weight, mood (sad, neutral, and happy), steps count, and caloric expenditure.
  2. app.py — This contains Flask APIs that receives sales details through GUI or API calls, computes the predicted value based on our model and returns it.
  3. request.py — This uses requests module to call APIs defined in app.py and displays the returned value.
  4. HTML/CSS — This contains the HTML template and CSS styling to allow user to enter inputs and displays the physical activeness of the user (active/inactive).

CONCLUSION:

In this model, we are detecting whether the person is active or inactive based on steps count, mood, body weight and hours of sleep using Gradient Boosting Classifier model. The purpose of this application is to view the existing technology of machine learning in for health care and use present technology for the development by which the user can check his health. Our project will create a better environment and it can be used very effectively for better body fitness and health. It is useful for people who takes their health seriously and wants to be fit as they can check daily and review their activeness. With this application, a person can easily know whether he/she is active or not, can check his body fitness regularly to maintain better health, can improve person lifestyle so that he can recover a bit than before, easy to access this application, a person can maintain proper fitness with the help of this application.

body-fitness-prediction's People

Contributors

pavanparchuri avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

sp20-bcs-087

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.