Code Monkey home page Code Monkey logo

kalyanm45 / openhealth Goto Github PK

View Code? Open in Web Editor NEW
25.0 1.0 5.0 62.67 MB

This repository houses machine learning models and pipelines for predicting various diseases, coupled with an integration with a Large Language Model for Diet and Food Recommendation. Each disease prediction task has its dedicated directory structure to maintain organization and modularity.

License: GNU General Public License v3.0

Jupyter Notebook 96.93% Python 0.84% HTML 1.89% CSS 0.24% JavaScript 0.10%
multi-disease-prediction ai-healthcare ai-in-healthcare diet-recommender medical-ai mlops-workflow disease-detection disease-prediction ai-for-healthcare

openhealth's Introduction

OpenHealth: A Comprehensive AI Tool for Remote Health Care (Under Development)

Project Logo

Connect with me on social media and explore my work:

LinkedIn GitHub Medium Twitter Sponsor Hema Kalyan Murapaka

Special Thanks to GitHub Sponsors

About The Project

In an era where healthcare demands precision, accessibility, and personalised solutions, "OpenHealth" emerges as a groundbreaking initiative at the intersection of technology and medicine. This comprehensive project focuses on Multi-Disease Detection, employing a diverse set of algorithms, including traditional machine learning models, deep learning models, transfer learning, and hybrid models such as VGG-19, ResNet50, Random Forest, and Gradient Boosting. Diseases across specific organs, such as the brain, kidney, heart, liver, and lungs, are accurately predicted, and model performance is rigorously assessed through metrics like accuracy, precision, recall, and F1-score. Adding a layer of sophistication, "OpenHealth" integrates with large language models from Open-source libraries like Hugging Face and GenerativeAI from Google, providing personalised information based on individual health profiles. Furthermore, the project extends its impact by incorporating an AI dietitian and food recommender, tailoring dietary recommendations to individual health conditions. Meticulous organisation is ensured through dedicated directory structures, fostering a modular and maintainable framework. Leveraging Machine Learning operations like Dockers, Data Version Control, and MLflow enhances the overall efficiency and reliability of healthcare systems. In essence, "OpenHealth" represents a transformative force that leverages cutting-edge technologies to usher in a new era of healthcare characterised by accuracy, personalization, and efficiency.

Library Requirements

  • Pandas
  • Numpy
  • Scikit-learn
  • Seaborn
  • Matplotlib
  • Flask
  • DVC
  • Catboost
  • XGBoost
  • MLflow
  • Google.generativeai
  • Streamlit

Getting Started

This will help you understand how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.

Installation Steps

Option 1: Installation from GitHub

Follow these steps to install and set up the project directly from the GitHub repository:

  1. Clone the Repository

    • Open your terminal or command prompt.
    • Navigate to the directory where you want to install the project.
    • Run the following command to clone the GitHub repository:
      git clone https://github.com/KalyanMurapaka45/OpenHealth.git
      
  2. Create a Virtual Environment (Optional but recommended)

    • It's a good practice to create a virtual environment to manage project dependencies. Run the following command:
      conda create -p <Environment_Name> python==<python version> -y
      
  3. Activate the Virtual Environment (Optional)

    • Activate the virtual environment based on your operating system:
      conda activate <Environment_Name>/
      
  4. Install Dependencies

    • Navigate to the project directory:
      cd [project_directory]
      
    • Run the following command to install project dependencies:
      pip install -r requirements.txt
      
  5. Run the Project

    • Start the project by running the appropriate command.
      python app.py
      
  6. Access the Project

    • Open a web browser or the appropriate client to access the project.

Option 2: Installation from DockerHub (Coming Soon)

If you prefer to use Docker, you can install and run the project using a Docker container from DockerHub:

  1. Pull the Docker Image

    • Open your terminal or command prompt.
    • Run the following command to pull the Docker image from DockerHub:
      docker pull kalyan45/<IMAGE>
      
      This command downloads the Docker image from the DockerHub.
  2. Run the Docker Container

    • Start the Docker container by running the following command. Adjust the port mapping as needed:
      docker run -p 5000:5000 kalyan45/<IMAGE>
      
      This command launches the project within a Docker container.
  3. Access the Project

    • Open a web browser or the appropriate client to access the project.

API Key Setup

To use this project, you need an API key from Google Gemini Large Language Model. Follow these steps to obtain and set up your API key:

  1. Get API Key:

    • Visit the Provided Link Click Here.
    • Follow the instructions to create an account and obtain your API key.
  2. Set Up API Key:

    • Create a file named .env in the project root.
    • Add your API key to the .env file:
      API_KEY=your_api_key_here

    Note: Keep your API key confidential. Do not share it publicly or expose it in your code.

Contributing

Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

Report bugs: If you encounter any bugs, please let us know. Open up an issue and let us know the problem.

Contribute code: If you are a developer and want to contribute, follow the instructions below to get started!

  1. Fork the Project
  2. Create your Feature Branch
  3. Commit your Changes
  4. Push to the Branch
  5. Open a Pull Request

Suggestions: If you don't want to code but have some awesome ideas, open up an issue explaining some updates or improvements you would like to see!

Don't forget to give the project a star! Thanks again!

License

This project is licensed under the Open Source Initiative (OSI) approved GNU General Public License v3.0 License - see the LICENSE.txt file for details.

Contact Details

Hema Kalyan Murapaka - [email protected]

Acknowledgements

We'd like to extend our gratitude to all individuals and organizations who have played a role in the development and success of this project. Your support, whether through contributions, inspiration, or encouragement, has been invaluable. Thank you for being a part of our journey.

openhealth's People

Contributors

kalyanm45 avatar reddisandeep avatar vinay8605 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

openhealth's Issues

model missing BrainModel.h5 and Kidney_Model.h5 file not found

Already email sent about the below issue :
Can you please send models over the email. Thanks.

However, while opening app.py, this error is encountered:
File "/root/medai/OpenHealth/app.py", line 18, in

brain_model = load_model('Artifacts\Brain_Tumour\BrainModel.h5')
kidney_model = load_model('Artifacts\Kidney_Disease\Kidney_Model.h5')

BrainModel.h5 file not found

Congrates on the good job.

However, while opening app.py, this error is encountered:
File "/root/medai/OpenHealth/app.py", line 18, in
brain_model = load_model('Artifacts\Brain_Tumour\BrainModel.h5')

BrainModel.h5 missing

Hello, I like this project and trying to build it locally.
After a successful install , when I run the "python app.py" it fails with the below error.
"
OSError: No file or directory found at Artifacts\Brain_Tumour\BrainModel.h5
OSError: No file or directory found at Artifacts\Kidney_Disease\Kidney_Model.h5
"
Do we need to manually download these h5 files (BrainModel.h5 and Kidney_Model.h5) ? Please share the file path.

Also just for testing , removed these two lines from app.py
brain_model = load_model('Artifacts\Brain_Tumour\BrainModel.h5')
kidney_model = load_model('Artifacts\Kidney_Disease\Kidney_Model.h5')

and page loading in localhost:5000 but none of the links are working.
Do we need to add any other configuration? please confirm.

Thanks

You need to train the model, As the complete project is in the development stage, we are working on another model but as this model is big, I didn't track it in this version. Better implement it on your own or else mail me ill send you the model files.

          You need to train the model, As the complete project is in the development stage, we are working on another model but as this model is big, I didn't track it in this version. Better implement it on your own or else mail me ill send you the model files.

Originally posted by @KalyanM45 in #6 (comment)

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.