Skip to content

MedAssist is a medical question-and-answer chatbot that revolutionizes how you interact with medical data. MedAssist provides quick, accurate responses to both general medical inquiries and patient-specific questions.

Notifications You must be signed in to change notification settings

9keystrokes/MedAssist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MedAssist: Medical QnA Chatbot

Introduction

MedAssist is a medical question-and-answer chatbot that revolutionizes how I interact with medical data. MedAssist provides quick, accurate responses to both general medical inquiries and patient-specific questions. The main goal is to enhance medical report accessibility and comprehension. MedAssist achieves this through:

  • Transcription of medical reports into a more accessible format.
  • Providing answers to general medical questions.
  • Summarizing reports from multiple visits.
  • Identifying relevant information from patient history.

Architecture

MedAssist's architecture facilitates a seamless interaction between users and medical data. It incorporates:

  • A Jupyter Notebook-based Web UI for uploading reports and further interaction.
  • The creation of embeddings and indexes from medical transcripts.
  • The utilization of LangChain and HuggingFace frameworks for processing and answering questions.

MedAssist Architecture

Data Sources

The project leverages a diverse range of data sources to train the model, including:

Sample Data

Dataset Instruction Input Output
Wikidoc Answer this question truthfully Can you provide an overview of the lung's squamous cell carcinoma? Squamous cell carcinoma of the lung may be classified according to the WHO histological classification system into 4 main types: papillary, clear cell, small cell, and basaloid.
WikiPatient Answer this question truthfully When to seek urgent medical care when I have Alstrom syndrome? Call your healthcare provider if you or your child have symptoms of diabetes such as increased thirst and urination. Seek medical attention promptly if you think that your child cannot see or hear normally.
MT Samples Based on the given medical transcript generate prompt and answer to train LLM What was the patient's preoperative diagnosis? The patient's preoperative diagnosis was prostate cancer.

Modeling Approach

Opted for the Vicuna-13B model, fine-tuned with LoRA, PEFT, and bitsandbytes. The approach was validated through rigorous testing and has shown promising results in interpreting medical data.

Sample Results

Input Output
Input Output
Input Output
Input Output
Input Output
Input Output

Results & Future Work

MedAssist has shown remarkable proficiency in processing medical queries and summarizing patient reports. Future directions include expanding the model's training on medical corpuses, incorporating medical image analysis, and exploring its application in clinical research.

Installation

git clone https://github.com/9keystrokes/MedAssist.git
cd MedAssist
pip install -r requirements.txt

# Start the jupyter server by running
jupyter notebook

# Open your browser and open http://localhost:8888/inference and open a notebook

About

MedAssist is a medical question-and-answer chatbot that revolutionizes how you interact with medical data. MedAssist provides quick, accurate responses to both general medical inquiries and patient-specific questions.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published