A flask based app for use in healthcare.
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.
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:
- Tensorflow
- Keras
- Natural Language processing (NLTK)
- Flask-Cors
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.
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.
Next, for Covid-19 specific application, another JSON dataset is used.
Link: https://contribute.geeksforgeeks.org/wp-content/uploads/WHO.txt
Modifications have been made to the dataset made by merging the first two datasets, creating the final dataset stored in the file "intents.json"
Initial webpage:
Chatbox open:
Answering queries: