Healthcare Chatbot System Using Artificial Intelligence
Healthcare Chatbot System Using Artificial Intelligence
* * *
Harshit Bhavsar , Dr. S.K.Wagh , Prof. Amol Kamble ,
[email protected] [email protected] [email protected]
symptoms and to provide medical suggestions coherent conversation using NLP in different
according to it, to reduce the time and cost languages. For example, we can say Amazon AI’s
required for the process. It is a system that like Alexa, Siri but they are digital voice assistant
communicates with users using Natural and a chatbot has text-based interaction with users.
Language processing rather we can say it is a These systems gain knowledge using web resources
computer program that uses NLP for or with human assistance. In the current pandemic
interaction. The chatbot works on provided situation going to a hospital is a high-risk activity so
input by the user, It takes sentence keywords our chatbot will provide necessary guidelines and
and makes decisions to solve the user's query medical recommendations to the user according to
and answers it accordingly. Some of these their health conditions and current symptoms. In our
calculations like Rank calculation and paper, we are trying to develop a healthcare chatbot
sentence similarity are performed with the that will help people who need medical assistance at
help of TF-IDF, Stemming, n-grams and home.
cosine similarity. Basically, our system uses
machine learning techniques to solve user's II. RESEARCH GAP
queries regarding healthcare by using
suitable algorithms. The system allows users The chatbot used by the various sectors for services
to create their profile to specify their is kind of scripted. They help their users with some
symptoms, to suggest doctors and dosage previously defined queries. Research is being
reminders. This chatbot can be used by carried out in the development of standard tedious
normal humans in any kind of emergency chatbots to be active and responsive and carry out
situation where it can play the role of adviser the communication in a normal/natural language.
to people about primary care before This all process requires the involvement of
consulting a doctor or sometimes it will work Machine Learning and Natural Language Processing
as a doctor for minor and short term health techniques in the system. There are many ways to do
issues like cold, headache, etc. Along with this so. Selecting a significant technique is completely
chatbot will be a support for the needy who based on the domain of the chatbot, the features it
require urgent solutions. A user can be able to intends to provide, the language used for
recognize the actual disease by providing communication, the user, etc. All the issues
symptoms of it. As if a person will also know mentioned above need to be examined while
about the solutions or we can say precautions working on the implementation of chatbot.
and remedies that they should take
accordingly. III. LITERATURE SURVEY
Authorized licensed use limited to: Somaiya University. Downloaded on October 12,2024 at 06:33:17 UTC from IEEE Xplore. Restrictions apply.
978-1-6654-1571-2/21/$31.00 ©2021 IEEE 1174
The paper describes the detailed use of various experimental results using score graphs. The author
algorithms like N-gram, Stemming, TF-IDF, and conveys that the approach used by him is suitable for
cosine similarity. This paper states how one can use any domain for chatbot which will upgrade the
these algorithms so that he could get an optimized productivity and performance of the chatbot. [7]
result quickly. It describes various queries and ways
to handle them by chatbot. For convenience they This research came up with development of a
also gave test cases for algorithms and also chatbot system with an emotional model/system. To
explained functional Architecture of databases. understand human interactions, computers need to
Basically, chatbot quality and [2] make extra efforts. In this paper, emotions,
sentiments and personality factors are implemented
Here In this paper, chatbot is created for the in the chatbot. They have used several public
healthcare purposes, which provides a healthcare datasets and AIML techniques at a time of
assistant to the user. A user can interact with a implementation of a model and performed five
healthcare assistant using a dialog interface. It gives phases in the research from which we collected some
functionalities like disease detection from user's ideas to improve the chatbot performance in the
symptoms, medical term description, doctors healthcare domain also. Basically the proposed
suggestions, Scheduling treatments, system was a kind of simple interview. They have
tracking/monitoring user's health parameters. They shown their experimental results using statistical
have checked overall performance in both analysis format. [8]
environments i.e. Offline and Online. Also they
performed many experiments to check the system IV. SYSTEM ARCHITECTURE
quality/performance. In the last few years, many
literature work has been done on this topic to create The Figure 1 shows the architecture of the chatbot
an eHealth environment for the ease of patients or system.
we can say for patients convenience. [3]
Remove all punctuation marks from a sentence or we can say all the stop words are removed from the sentences
which makes the process easy to process for further steps.
Here in the below figure we can see that, the underlined punctuations are removed after the process.
Tokenizing means splitting a statement, paragraph or a whole document into words . Those words or smaller
units known as tokens. Here, In the below image we can see a tokenized text document.
Here, In Fig 4 we can see a tokenized text document
Authorized licensed use limited to: Somaiya University. Downloaded on October 12,2024 at 06:33:17 UTC from IEEE Xplore. Restrictions apply.
Fig 4 : Tokenization
Stemming is a technique which is used to extract the actual / base form of the words by removing affixes. In the
below image we can see that the words lives and joking are extracted into their base forms live and joke
respectively.
In Fig 5 we can see that the words lives and joking are extracted into their base forms live and joke respectively
Fig 5 :Stemming
TF—IDF means Term Frequency Inverse Document Frequency. This is a concept which uses to measure the
quantity of word in documents. Basically, it computes a weight of a single word which implies the importance of
that word in the document. In short, this method is used in the term text mining. In fig 7 output of an example is
shown.
Fig 7 : TF-IDF
Computing the similarity between texts is necessary. Search engines required to simulate the significance of a
document to a query. In fig 8, it shows the similarity result.
Authorized licensed use limited to: Somaiya University. Downloaded on October 12,2024 at 06:33:17 UTC from IEEE Xplore. Restrictions apply.
Fig 8 : Similarity
Detection Test Using General Word Percentage Corpus GWP Terms Terms Term
Number Ratio Present Detected Detection
Approach : Ratio
1 0.923 1 2 0.500
Here, we take some sample to test. We would
check that our Chatbot detects medical 2 0.800 3 1 0.330
nomenclature messages for our sample:
1. Hello bot! I am feeling well today! And I am 3 0.900 1 0 0.000
having a severe headache.
2. I can't deal with this headache, also I feel like 4 0.860 3 3 1.000
vomiting. I think My digestion is not okay.
3. Is brain cancer curable? I think I am suffering 5 0.200 1 1 1.000
from it.
4. I think I have typhoid. Average 0.736 1.8 1.4 0.566
5. I am feeling like vomiting.
Table 1 : Illustration of term detection ratio GWP Ratio= Total Number of unrelated medical
Ratio Calculation words / total number of words
Authorized licensed use limited to: Somaiya University. Downloaded on October 12,2024 at 06:33:17 UTC from IEEE Xplore. Restrictions apply.
SR. Questions Possible Answers
NO.
1 What is your Male Female
gender?
2 What is your age 18-25 26-35 36-45 46-55 Over 55
range?
3 How to cure for Stretch the Use heating pad or Taking dosage of
cramp muscle which is warm water bag vitamin B
cramped and on tightened supplements to
tenderly rub it. muscles. get rid of cramps.
4 How to cure for If you are feeling Take the dosage Give a sponge Get plenty of
Cold and Fever? unwell, take a of aspirin. Contact bath with blood- rest, take
Paracetamol. a doctor if fever is warm water. steam.
longer than that
and doesn’t
respond to the
dosage.
5 I’m having This can be a Jaundice describes
symptoms of jaundice, You a yellowish tint to
yellow eyes and should consult a the skin as well as
nails? doctor. whiteness of eyes
turns yellow.
Table 3 :Review of result
Purpose Accuracy
Level
Answer : You can wait upto 3 to 4 days. Still if you have fever longer than this, Consult a doctor.
Authorized licensed use limited to: Somaiya University. Downloaded on October 12,2024 at 06:33:17 UTC from IEEE Xplore. Restrictions apply.
VI. LIMITATIONS AND [3] Marco Polignano, Fedelucio Narducci, Andrea
FUTURE WORK Iovine, Cataldo Musto, Marco De Gemmis, and
Giovanni Semeraro, “A Personal Health Assistant
In this paper, we presented the healthcare chatbot for the Italian Language” 2020, IEEE.
which will help people to find solution for their
health problems at home. Currently we are working [4] Aleksandra Przegalinska, Leon Ciechanowski,
on only primary diseases but sooner we will Anna Stroz, Peter Gloor, Grzegorz Mazurek, Kelley
upgrade it with major diseases. We will try to make School of Business, Indiana University “In bot, we
healthcare chatbot more accurate. More features trust A new methodology of chatbot performance
will be added such as booking appointments, measures” 2019, Elsevier, ScienceDirect.
digital prescription, connecting with a consultant,
accessing all reports. [5] Ashwini Shangrapawar, Ankita Ravekar, Sakshi
Kale, Nidhi Kumari, Aman Shende, PankajTaklikar,
VII. CONCLUSION “Artificial Intelligence based Healthcare Chatbot
System” International Research Journal of
Engineering and Technology, e-ISSN: 2395-0056,
In this paper, we presented Healthcare Chatbot that p-ISSN: 2395-0072, Volume: 07 Issue: 02/Feb 2020
provides medical help to the patients for some of the
common diseases. The chatbot offers user the [6] Lekha Athota, Vinod Kumar Shukla, Nitin
medical help in the absence of doctor which will Pandey, Ajay Rana, “Chatbot for Healthcare System
help to improve the productivity & availability of Using Artificial Intelligence” 2020 8th International
the medical sector. The conversation between the Conference on Reliability, Infocom Technologies
system and user is performed through a chatbot and Optimization Amity University.
interface which is a simple way of interaction. There
are lots of models of medical chatbots out there [7] Manyu Dhyani, Rajiv Kumar G. L. Bajaj
which are comparatively high cost for a common Institute of Technology and Management, Greater
people and we are trying to control this kind of Noida, Uttar Pradesh, India “An intelligent Chatbot
inconvenience in our Healthcare Chatbot System. using deep learning with Bidirectional RNN and
This is actually a kind of symptom checker system, attention model” Elsevier, 16 May 2020.
which recognizes the patient's disease with 76% of
accuracy. Many models of medical chatbots out [8] Rhio Sutoyoa, Andry Chowandaa,, Agnes
there which are quite unaffordable for a general Kurniatia, Rini Wongsoa “Designing an
person but we are trying to overcome this limitation. Emotionally Realistic Chatbot Framework to
After the successful implementation of the system Enhance Its Believability with AIML and
we will work on appending more features or we can Information States” Elsevier, ScienceDirect, 19 Sept
say functions to the chatbot using appropriate 2019.
security. Additional functions might be booking
appointments, digital prescription, connecting with [9] M. Dahiya, Dept. of Computer Science,
a consultant, accessing all reports and so on. Maharaja Surajmal Institute, Janakpuri, India, “A
Healthcare chatbots have potential to improve the Tool of Conversation: Chatbot” JCSE International
healthcare sector. Journal of Computer Sciences and Engineering, 30
May 2017
VIII. REFERENCES
[10] Bhagyashree Mohanta, Dr. Srikanta Patnaik,
[1] Kavitha B. R., Dr. Chethana R. Murthy, Department of Computer Science & Engineering
“Chatbot for Healthcare System using Artificial S’O’A University Bhubaneswar, India, Dr. Priti Das
Intelligence” 2019, IJARIIT. Department of Pharmacology SCB Medical College
and Hospital Cuttack, India, “paradigm shift in
[2] Dinesh Kalla, Fnu Samaah, “Chatbot for Medical digital healthcare system using Artificial
Treatment using NLTK Lib”, IOSR Journal of Intelligence, IOT and 5G Communication” 2019
Computer Engineering (Jan - Feb 2020). (ICAML).
[13] S. Devi, Z. A. M. Merchant, M. S. Siddiqui, [15] Mrs Rashmi Dharwadkar1, Dr.Mrs. Neeta A.
and M. Lobo, ``Arti_cial Deshpande, A Medical
intelligence based personal assistant,'' Asian J. ChatBot, International Journal of Computer Trends
Converg. Technol., vol. 5, and Technology
no. 1, pp. 1_4, 2019. (IJCTT) – Volume 60 Issue 1- June 2018
Authorized licensed use limited to: Somaiya University. Downloaded on October 12,2024 at 06:33:17 UTC from IEEE Xplore. Restrictions apply.
[16] Flora Amato, Stefano Marrone, “Chatbots
meet eHealth:
automat zing healthcare, May-2018.
Authorized licensed use limited to: Somaiya University. Downloaded on October 12,2024 at 06:33:17 UTC from IEEE Xplore. Restrictions apply.