Sie sind auf Seite 1von 7

Journal of Web Development and Web Designing

Volume 3 Issue 1

A Self-Diagnosis Medical Chatbot Using Artificial Intelligence


Divya S1, Indumathi V1, Ishwarya S1, Priyasankari M1, Kalpana Devi S2
1
UG students, 2Assistant Professor
Department of Computer Science and Engineering, Easwari Engineering College, Chennai--600089,
India
Email: divyashnavi18@gmail.com; indumathiveluchamy4@gmail.com;
ishusoundar123@gmail.com; mpriyasankari@gmail.com; kalpanasubramaniyan2010@gmail.com.

Abstract
To lead a good life healthcare is very much important. But it is very difficult to obtain the
consultation with the doctor in case of any health issues. The proposed idea is to create a
medical chatbot using Artificial Intelligence that can diagnose the disease and provide basic
details about the disease before consulting a doctor .To reduce the healthcare costs and
improve accessibility to medical knowledge the medical chatbot is built. Certain chatbots acts
as a medical reference books, which helps the patient know more about their disease and
helps to improve their health. The user can achieve the real benefit of a chatbot only when it
can diagnose all kind of disease and provide necessary information. A text-to-text diagnosis
bot engages patients in conversation about their medical issues and provides a personalized
diagnosis based on their symptoms. Hence, people will have an idea about their health and
have the right protection.

Keywords: Artificial Intelligence, Prediction, Pattern matching, Disease, Query processing

INTRODUCTION used in the dialog system. Mostly chatbots


Artificial Intelligence is based on how any uses natural language processing for
device perceives its Environment and takes interpreting the user input and generating
actions based on the perceived data to the corresponding response but certain
achieve the result successfully. It is the simpler systems searches for the keyword
study of intelligent agents. The term within the text and then provides a reply
"artificial intelligence" is applied when a based on the matching keywords or certain
machine mimics "cognitive" functions that pattern. Today, chatbots are part of virtual
humans associate with other human minds, assistants such as Google Assistant, and
such as "learning" and "problem solving. are accessed via many organizations' apps,
Artificial Intelligence gives the supreme websites, and on instant
power to mimic the human way of messaging platforms. Non-assistant
thinking and behaving to a computer. applications include chatbots used for
entertainment purposes, for research,
A chatbot (also known as and social bots which promote a particular
a talkbot, chatterbot, Bot, IMbot, interactiv product, candidate, or issue.
e agent, or ArtificialConversationalEntity)
is a computer program which conducts Chatbot’s are such kind of computer
a conversation via auditory or textual programs that interact with users using
methods. These programs are designed to natural languages. For all kind of chatbots
provide a clone of how a human will chat the flow is same, though each chatbot is
and thereby it acts as a conversational specific in its own area knowledge that is
partner rather than humans. For various one input from human is matched against
practical purposes like customer service or the knowledge base of chatbot. Chatbot’s
information acquisition, chatbot is being work basically on Artificial intelligence,

1 Page 1-7 © MAT Journals 2018. All Rights Reserved


Journal of Web Development and Web Designing
Volume 3 Issue 1

so using this capability we have decided to natural language to extract symptoms,


add some contribution to the Health which could make it easier for elderly, less
Informatics. technical users to communicate their
symptoms as well as make it relatively
The high cost of our healthcare system can straightforward to support spoken
often be attributed to the lack of patient language by adding NLG components. In
engagement after they leave clinics or its current form, our bot’s best application
hospitals. Various surveys in this area have would be as a preliminary diagnosis tool
proved that that chatbot can provide that patients could use to assess their
healthcare in low costs and improved symptoms before going to the doctor,
treatment if the doctors and the patient perhaps using the bot’s specialist referral
keep in touch after their consultation. To feature to choose the right care provider
answer the questions of the user chatbot is
used. There is very less number of LITERATURE SURVEY
chatbots in medical field. Simon Hoermann[1] discuss the current
evidence for the feasibility and
The proposed system provides a text-to- effectiveness of online one-on-one mental
text conversational agent that asks the user health interventions that use text-based
about their health issue .The user can chat synchronous chat. Synchronous written
as if chatting with a human. The bot then conversations (or “chats”) are becoming
ask the user a series of questions about increasingly popular as Web-based mental
their symptoms to diagnose the disease. It health interventions.This review is based
gives suggestions about the different on an evaluation of individual synchronous
symptoms to clarify the disease. Based on Web-based chat technologies. Through the
the reply from the user the accurate disease current evidence of the application of this
is found and it suggests the doctor who technology, the tentative support for mode
needs to be consulted in case of major of intervention is seen. Interventions
disease. The system remembers past utilizing text-based synchronous
responses and asks progressively more communication showed better outcomes
specific questions in order to obtain a good compared with Waitlist conditions and
diagnosis. The three primary components overall equivalent outcomes compared
of our system are (1) user validation and with Treatment As usual, and were at least
extraction of symptoms from the as good as the comparison interventions.
conversation with the user, However, the issue of whether these
(2) accurate mapping of extracted (and technologies are cost effective in clinical
potentially ambiguous) symptoms to practice remains a consideration for future
documented symptoms and their research studies.
corresponding codes in our database, and
(3) developing a personalized diagnosis as Saurav Kumar Mishra[2] says that the
well as referring the patient to an chatbot will act as a virtual doctor and
appropriate specialist if necessary. There makes possible for the patient to interact
are certain chatbots in the medical field with virtual doctor. Natural language
that already exists they are Your.MD, processing and pattern matching algorithm
Babylon, and Florence, but current for the development of this chatbot. It is
implementations focus on quickly developed using the python Language.
diagnosing patients by identifying Based on the survey given it is found that
symptoms based on pure system initiative the no of correct answer given by the
questions like natural conversation. Our chatbot is 80% and incorrect/ambiguous
system focuses solely on the analysis of answer given is 20%.From this survey of

2 Page 1-7 © MAT Journals 2018. All Rights Reserved


Journal of Web Development and Web Designing
Volume 3 Issue 1

chatbot and analysis of result suggested were collected and then those questions
that this software can be used for teaching were divided into categories depending on
and as a virtual doctor for awareness and the type of question. According to the
primary care. number of questions in each category the
resultant categories were ranked.
DivyaMadhu[3] proposed an idea in Questions were based on quries, where
which the AI can predict the diseases 47% are of posed questions. Other
based on the symptoms and give the list of categories has less than 7%. The system
available treatments If a person’s body is has not been specially designed for the
analyzed periodically, it is possible to task of supporting natural dialog in
predict any possible problem even before chatbots or, providing responses to student
they start to cause any damage to the body. queries
Some Challenges are research and
implementation costs, and government PROPOSED SYSTEM
regulations for the successful In the proposed system the user dialogue is
implementation of personalized medicine, a linear design that proceeds from
they are not mentioned in the paper. symptom extraction, to symptom mapping,
where it identifies the corresponding
HameedullahKazi[4], describes the symptom, then diagnosis the patient
development of a chatbot for medical whether it’s a major or minor disease and
students, that is based on the open source if it’s a major one an appropriate doctor
AIML based Chatterbean. The AIML will be referred to the patient, the doctor
based chatbot is customized to convert details will be extracted from the database,
natural language queries into relevant SQL the user will be identified by the login
queries. A total of 97 question samples details which is stored in the database.

Fig1: Finite state graph

In fig1, Chatbot’s dialogue design is off by asking about the user’s email and
represented using finite state graph. In password for login and then enters a loop
order to achieve an accurate diagnosis, the of symptom extraction states until it
logic for state transitions are made, natural acquires sufficient information for a
language generation templates were used, diagnosis. Users have the option of
and system initiative to the user and get entering the loop again to talk to the doctor
responses from the user. Besides its about another set of symptoms after
greetings and goodbye states, our agent receiving their first diagnosis and the
has three main conversational phases: another option is that the user can view
acquisition of basic information, symptom their history of chats about what they have
extraction, and diagnosis. Our bot starts discussed.
3 Page 1-7 © MAT Journals 2018. All Rights Reserved
Journal of Web Development and Web Designing
Volume 3 Issue 1

Fig2: Functional Architecture

The above Figure proceeds with the users cough, fever, and nausea”), the system will
login where the users’ details will be easily identify it. But however, the system
stored in the database. Then the user can should also be able to handle input like,
start their conversation with the chatbot “When I read, I’m okay at first, but over
and it will be stored in the database for time, my eyes seem to get tired, and I start
future reference. The chatbot will clarify to see double.” In this case, the system
the users symptoms with serious of should extract substrings like “eyes tired”
questions and the symptom conformation and “see double” (and not substrings like
will be done. The disease will be “read” or “okay”).
categorized as minor and major disease.
Chatbot will reply whether it’s a major or MAPPING EXTRACTED
minor disease. If it’s a major one user will SYMPTOMS WITH TRAINED
be suggested with the doctor details for DATASETS
further treatment. Given some extracted substring from the
user’s input, we generate a list of
USER VALIDATION AND suggested closest symptoms .We then ask
EXTRACTION OF SYMPTOMS the user to confirm if they have any of the
The validation of the user login details suggested symptoms. Based on their reply
occurs here. Then Symptoms are extracted few diseases are being shortlisted. Then
using String Searching Algorithm where further symptom clarification and
substring representing the symptoms is symptom suggestions are being done by
identified in the natural language text asking the users a series of questions and
input. When users give directly the the mapping of the symptoms to the exact
symptom name such as(e.g. “I have a disease is done.

4 Page 1-7 © MAT Journals 2018. All Rights Reserved


Journal of Web Development and Web Designing
Volume 3 Issue 1

Fig 3: Specifying the disease

SPECIFYING THE DISEASE AND to the end user by sending the doctor
REFERRING A DOCTOR details .And if it is a minor issue the
This process carries the list of diseases in chatbot specifies the disease and alerts the
the database and each symptom being end user with a first aid or remedy and
entered is compared to the symptoms of asks to visit a doctor shortly.
the common diseases. Next symptom is
checked until a matching one is found. The RESULT AND DISCUSSIONS:
diseases are shortlisted based on the end The project result is as follows
users input on the question evaluation. The The user will have text to text
accurate disease is identified and specified communication with the chatbot and get
to the end user by the chatbot. The chatbot the specific disease and the user can also
checks whether the identified disease is a get their previous chat history through
major issue or minor issue based on the their details which are stored in the
conditions built in the chatbot. If it is a database.
major issue the chatbot refers a specialist

Fig4: Result Prediction

5 Page 1-7 © MAT Journals 2018. All Rights Reserved


Journal of Web Development and Web Designing
Volume 3 Issue 1

The above figure shows how the user text Health Interventions: Systematic
with the chatbot and the accurate result Review”, Journal of Medical Internet
will be shown to the user at the end of Research ,volume: 19 , issue 8 , August
symptom clarification. Then the user can 2017.
view their previous chat to know what they 2. Saurav Kumar Mishra,
have discussed earlier. DhirendraBharti, Nidhi Mishra,”
Dr.Vdoc: A Medical Chatbot that
CONCLUSION AND FUTURE SCOPE Acts as aVirtual Doctor”, Journal of
From the review of various journals, it is Medical Science and Technology
concluded that, the usage of Chatbot is ,Volume: 6, Issue 3,2017.
user friendly and can be used by any 3. DivyaMadhu,Neeraj Jain C. J,
person who knows how to type in their ElmySebastain, ShinoyShaji,
own language in mobile app or desktop AnandhuAjayakumar,” A Novel
version. A medical chatbot provides Approach for Medical Assistance
personalized diagnoses based on Using Trained
symptoms. In the future, the bot’s Chatbot”,International Conference on
symptom recognition and diagnosis Inventive Communication and
performance could be greatly improved by Computational Technologies(ICICCT
adding support for more medical features, 2017).
such as location, duration, and intensity of 4. HameedullahKazi,B.S.
symptoms, and more detailed symptom Chowdhry,ZeeshaMemon,
description. The implementation of ”MedChatBot: An UMLS based
Personalized Medical assistant heavily Chatbot for Medical Students”,
relies on AI algorithms as well as the International Journal of Computer
training data. At last, the implementation Applications (0975 – 8887)Volume 55–
of personalized medicine would No.17, October 2016.
successfully save many lives and create a 5. DoinaDrăgulescu,AdrianaAlbu,”Medi
medical awareness among the people. As cal Predictions System”,
said before, the future era is the era of International Journal of Engineering
messaging app because people going to Research and Applications , ISSN:
spend more time in messaging app than 2248-9622 ,Vol. 2, Issue 3 , pp.1988-
any other apps. Thus medical chatbot has 1996, May-Jun 2015.
wide and vast future scope. No matter how 6. Abbas SaliimiLokman,
far people are, they can have this medical JasniMohamadZain,FakultiSistemKom
conversation. The only requirement they puter, KejuruteraanPerisian,”
need is a simple desktop or smartphone Designing a Chatbot for Diabetic
with internet connection. The efficient of Patients”,ACM Transactions on
the chatbot can be improved by adding Management Information Systems
more combination of words and increasing (TMIS), Volume 4, Issue 2, August
the use of database so that of the medical 2015 .
chabot could handle all type of diseases. 7. PavlidouMeropi,Antonis S.
Even voice conversation can be added in Billis,Nicolas D.
the system to make it more easy to use. Hasanagas,CharalambosBratsas,Ioanni
sAntoniou,Panagiotis D.
REFERENCES Bamidis,”Conditional Entropy Based
1. SimonHoermann, Kathryn L McCabe, Retrieval Model in Patient-Carer
David N Milne, Rafael A Calvo1,“ Conversational Cases”,2017 IEEE
Application of Synchronous Text- 30th International conference on
Based Dialogue Systems in Mental Computer-Based Medical System.

6 Page 1-7 © MAT Journals 2018. All Rights Reserved


Journal of Web Development and Web Designing
Volume 3 Issue 1

8. BenildaEleonor V. Comendador, Bien 9. Gillian Cameron, David Cameron,


Michael B. Francisco, Jefferson S. Gavin Megaw ,Raymond
Medenilla, Sharleen Mae T. Nacion, Bond,MauriceMulvenna ,Siobhan
and Timothy Bryle E. Serac, O’Neill, Cherie Armour, Michael
“Pharmabot: A Pediatric Generic McTear,“Towards a chatbot for
Medicine Consultant Chatbot digital counselling”,Journal of
“,Journal of Automation and Control Medical Internet Research, 4(1), pp.
Engineering Vol. 3, No. 2, April 2015. e3.

7 Page 1-7 © MAT Journals 2018. All Rights Reserved

Das könnte Ihnen auch gefallen