Skip to content

AkankshaJagdish/medchatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

medchatbot

A flask based app for use in healthcare.

Overview

This project is a a chatbot that answers simple queries about healthcare related topics. Often, younger people do not know much about simple medicines they can take to alleviate common issues such as colds and fevers, and this project attempts to fill in this gap.

In the present situation, we are unable to provide healthcare support 24/7 in a quick and efficient manner, due to dearth of medical professionals. This chatbot will ensure that general queries of potential patients are quickly answered and they are easily directed to the correct person for their problem.

In the future, such chatbots can play an important role in getting relevant health information to the right stakeholders at the right time.

Design Description

A Flask prediction API serves as backend to a HTML and JavaScript frontend. This is a retrieval based chatbot.

This chatbot uses deep learning techniques. The chatbot will be trained on the dataset which contains categories (intents), pattern and responses.

A special recurrent neural network (LSTM) is used to classify which category the user’s message belongs to and then the bot will give a random response from the list of responses.

The modules required are:

  1. Tensorflow
  2. Keras
  3. Natural Language processing (NLTK)
  4. Flask-Cors

Dataset

Two specialised datasets have been merged to create a dataset for technical answers, which has then been modified to suit the current purpose. This modification creates the final dataset.

1st Dataset:

https://www.kaggle.com/datasets/tusharkhete/dataset-for-medicalrelated-chatbots

This has a multitude of medical issues and simple treatments for them in JSON format.

2nd Dataset:

Next, for Covid-19 specific application, another JSON dataset is used.

Link: https://contribute.geeksforgeeks.org/wp-content/uploads/WHO.txt

Final Dataset

Modifications have been made to the dataset made by merging the first two datasets, creating the final dataset stored in the file "intents.json"

Resulting WebApp

Initial webpage:

image

Chatbox open:

image

Answering queries:

image

image