silent-cipher / Gen-AI-Hackathon

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gen AI Hackathon

Deploy

Overview

The Gen AI Hackathon project aims to utilize machine learning for healthcare by developing a web application that can detect various diseases such as asthma, cancer, diabetes, and stroke. The application provides real-time diagnosis based on predictive modeling. If a disease is detected, the user receives preventive measures and can engage in further conversation with a llm chatbot specialized in that disease.

Features

  • Real-time disease detection using machine learning
  • Personalized preventive measures for detected diseases
  • Interactive llm chatbot for further consultation
  • User authentication with sign-up and sign-in functionality
  • Easy-to-use interface with intuitive navigation

Step-by-Step Process in llm

  1. User signs up or signs in to the platform.
  2. On the home page, the user can navigate to the diagnosis page.
  3. In the diagnosis page, the user fills out a form providing necessary information.
  4. Based on the input, the application predicts whether the user has any of the specified diseases.
  5. If a disease is detected, preventive measures are provided to the user.
  6. The user can engage in further conversation with a disease-specific llm chatbot on the chat page.

Unique Idea Brief

We have worked on both aspects of the problem statement, i.e, Disease Diagnosis , treatment Recommendation.

The disease diagnosis part consists of the identification of disease based on information received from user through form-filling. Then ML model specific to that disease is used for the diagnosis of the particular disease.

The recommendation process plans out a detailed report regarding causes, symptoms, medical prescription and changes to be made in living style.

There is a LLM based chat-doctor finetuned on dataset (link mentioned at last), which can given guidance on general medical related questions.

Workflow

WorkFlow

Frontend

Sign Up Page

1

Home Page

2

Diagnosis Page

3

Form Page

4

6

7

Chat Page

5

Getting Started

  1. Clone the repository:

    https://github.com/shivam6862/Gen-AI-Hackathon.git
    cd Gen-AI-Hackathon
  2. Install dependencies and Run the application:

    cd frontend
    npm install
    npm run dev
  3. Install dependencies and Run the application:

    cd backend
    python -m venv env [for windows]
    pip install -r requirements.txt
    cd genaimechbackend
    python manage.py runserver
  4. Give .env in backend/genaimechbackend/genaimechbackend/.env

    HOST=
    PROJECT_NAME=
    DB_USERNAME=
    PASSWORD=
    SECRET_KEY=
  5. Access the application at port

  6. The finetuning is done on Intel/Mistral-7B-v0.1-int4-inc, the code for fine-tuning is written under medical_finetune.py. The file can be run using below command

python medical_finetune.py --bf16 True --use_ipex True --max_seq_length 512

Finetuning

Kaggle dataset

Contributors

TEAMID -

Team name - genaimech

About


Languages

Language:Jupyter Notebook 46.0%Language:TypeScript 25.7%Language:CSS 15.5%Language:Python 12.2%Language:Roff 0.6%Language:JavaScript 0.0%