Medibot Using NLP Seminar Report PDF
Medibot Using NLP Seminar Report PDF
Seminar report on
MEDIBOT USING NLP
Submitted by
MUHAMMED JASIR.P
Reg no: 17130679
Guided by
Mrs. SAANI H
Seminar Report 2019-2020 Medibot using NLP
INSTITUTE OF PRINTING TECHNOLOY
& GOVERNMENT POLYTECHNIC
COLLEGE SHORANUR, KERALA
Certificate
lace :
P
Date :
MUHAMMED JASIR.P
Reg.No: 17130679
Seminar Report 2019-2020 1 Medibot using NLP
CONTENTS
bstract
A
1. Introduction ……………………………………………3
2. What is NLP ? …………………………………………5
3. Components of NLP…………………………………..7
3.1. Natural language understanding ………………………….7
3.2. Natural language generation …………………………….10
4. Tasks in NLP ……………………………………......12
5. Applications of NLP ………………………………....14
6. What is chatbot ? ...........................................................16
7. How chatbots work ? .....................................................18
8. Where can we use chatbots ? .........................................22
9. Importance of medical chatbot ………………………..24
10. Medibot technology …………………………………..26
10.1. Proposed system………………………………………...26
10.2. Proposed method ………………………………………..27
11. Future scope …………………………………………..32
12. Conclusion ……………………………………………33
13. References …………………………………………….34
Seminar Report 2019-2020 2 Medibot using NLP
ABSTRACT
1. Phonology
Phonology is the part of Linguistics which refers to the
systematic arrangement of sound . The term phono- which means voice
or sound , and the suffix –logy refers to word or speech, whereas it could
be explained as, "phonology proper is concerned with the function,
behaviour and organization of sounds as linguistic items. Phonology
include semantic use of sound to encode meaning of any Human
language.
2. Morphology
The different parts of the word represent the smallest units of
meaning known as Morphemes . Morphology which comprise of Nature
of words , are initiated by morphemes . The interpretation of morpheme
stays same across all the words, just to understand the meaning humans
can break any unknown word into morphemes . For example, adding
the suffix –ed to a verb, conveys that the action of the verb took place
in the past . The words that cannot be divided and have meaning by
themselves are called Lexical morpheme (e.g.: table, chair) The words
(e.g. -ed, -ing, -est, -ly, -ful) that are combined with the lexical morpheme
are known as Grammatical morphemes (eg. Worked, Consulting,
Smallest, Likely, Use) . Those grammatical morphemes that occurs in
combination called bound morphemes ( eg. -ed, -ing) Grammatical
morphemes can be divided into bound morphemes and derivational
morphemes.
Seminar Report 2019-2020 9 Medibot using NLP
3. Lexical
In Lexical , humans, as well as NLP systems , interpret the meaning
of individual words , the first of these being a part-of-speech tag to each
word. In this processing , words that can act as more than one
part-of-speech are assigned the most probable part-of speech tag based on
the context in which they occur. At the lexical level, Semantic
representations can be replaced by the words that have one meaning . In
NLP system, the nature of the representation varies according to the
semantic theory deployed.
4. Syntactic
This level emphasis to scrutinize the words in a sentence so as to
uncover the grammatical structure of the sentence. Both grammar and
parser are required in this level. The output of this level of processing is
representation of the sentence that divulge the structural dependency
relationships between the words . Not all NLP applications require a full
parse of sentences .Syntax conveys meaning in most languages because
order and dependency contribute to connotation. For example, the two
sentences: ‘The cat chased the mouse.’ and ‘The mouse chased the cat.’
differ only in terms of syntax, yet convey quite different meanings.
5. Semantic
In semantic most people think that meaning is determined,
however, this is not it is all the levels that bestow to meaning. Semantic
processing determines the possible meanings of a sentence by pivoting on
the interactions among word-level meanings in the sentence. This level of
processing can incorporate the semantic disambiguation of words with
multiple senses , For example, amongst other meanings, ‘file’ as a noun can
mean either a binder for gathering papers, or a tool to form one’s
fingernails, The semantic level scrutinizes words for their dictionary
elucidation, but also for the elucidation they derive from the milieu of the
sentence. Semantics milieu that most words have more than one
Seminar Report 2019-2020 10 Medibot using NLP
elucidation but that we can spot the appropriate one by looking at the rest of
the sentence.
6. Discourse
While syntax and semantics travail with sentence-length units, the
discourse level of NLP travail with units of text longer than a sentence
i.e, it does not interpret multi sentence texts as just sequence
sentences, apiece of which can be elucidated singly.
7. Pragmatic:
Pragmatic is concerned with the firm use of language in
situations and utilizes nub over and above the nub of the text for
understanding the goal and to explain how extra meaning is read into
texts without literally being encoded in them . This requisite much
world knowledge , including the understanding of intentions, plans,
and goals
Application or Speaker :
This is only for maintaining the model of the situation . Here the
speaker just initiates the process doesn’t take part in the language
generation . It stores the history , structures the content that is potentially
relevant and deploys a representation of what it actually knows. All
these form the situation, while selecting subset of propositions that
speaker has. The only requirement is the speaker has to make sense of
the situation.
Seminar Report 2019-2020 12 Medibot using NLP
4. Tasks in NLP
1. Syntax :
Syntax refers to the arrangement of words in a sentence such that they
make grammatical sense. In NLP, syntactic analysis is used to assess
how the natural language aligns with the grammatical rules.
Computer algorithms are used to apply grammatical rules to a group of
words and derive meaning from them , here are some syntax techniques
that can be used:
2. Semantics
Semantics refers to the meaning that is conveyed by a text. Semantic
analysis is one of the difficult aspects of Natural Language Processing that
Seminar Report 2019-2020 13 Medibot using NLP
has not been fully resolved yet. It involves applying computer algorithms to
understand the meaning and interpretation of words and how sentences
are structured, here are some techniques in semantic analysis:
2. chatbot :
A chatbot is a piece of software that conducts a conversation via
auditory or textual methods . Such programs are often designed to
convincingly simulate how a human would behave as a conversational
partner . Chatbots are typically used in dialog systems for various
practical purposes including customer service or information acquisition.
Some chatbots use sophisticated natural language processing systems,
but many simpler ones scan for keywords within the input, then pull a
reply with the most matching keywords, or the most similar wording
pattern , from a database.
3. Speech Recognition :
Speech recognition is the ability of a machine or program to identify
words and phrases in spoken language and convert them to a
machine-readable format. Rudimentary speech recognition software has a
limited
Seminar Report 2019-2020 15 Medibot using NLP
vocabulary of words and phrases, and it may only identify these if they are
spoken very clearly. More sophisticated software has the ability to
accept natural speech. Speech recognition works using algorithms
through acoustic and language modeling . Acoustic modeling represents
the relationship between linguistic units of speech and audio signals ;
language modeling matches sounds with word sequences to help
distinguish between words that sound similar.
4. Machine Translation :
Machine translation (MT) is automated translation . It is the process by
which computer software is used to translate a text from one natural
language (such as English) to another (such as Spanish) .To process
any translation, human or automated , the meaning of a text in the
original (source) language must be fully restored in the target language,
i.e. the translation. While on the surface this seems straightforward , it is
far more complex. Translation is not a mere word-for-word substitution.
A translator must interpret and analyze all of the elements in the text
and know how each word may influence another. This requires
extensive expertise in grammar, syntax (sentence structure), semantics
(meanings ), etc. , in the source and target languages , as well as
familiarity with each local region. Google translator is an example for
machine translation
5. Advertisement matching :
Targeted advertising is a form of advertising, including online, that is
directed towards audiences with certain traits, based on the product or
person the advertiser is promoting , Targeted matching works by
matching appropriate ads with keywords which basically
recommendation of as based our history and searching habit
However , most of the bots today are rule based bots that give
the user a menu and the user navigates through the menu like
telephonic complaint booking systems but in text . Secondly , most
of the bots are closed domain bots meaning they are focused on one
particular task and are trained for that field only . Alexa , Siri are
examples of open domain bots. However, bots for restaurant booking
are closed domain bots . Closed domain bots can be both, powered
by artificial intelligence or be rule based . While the users expect
open domain bots that are intelligent in all aspects .
The goal of a bot system isn't just that . The goal of a bot
system remains to automate a service using a conversational
interface that allows the user to access the service from the
platforms they frequently visit . This goes to say one mustn't be
dissuaded from building a rule based bot that indeed works for the
reason that the bot isn't intelligent like a super human. That being
said, we must pursue building intelligent systems since the more
intelligent they are in terms of understanding the end user , more will
they be useful.
hatbot knows the answer only because his or her name is in the
C
associated pattern. Similarly, chatbots respond to anything relating it to
the associated patterns. But it can not go beyond the associated pattern .
To take it to an advanced level algorithms can help.
With the help of equation , word matches are found for given some
sample sentences for each class . Classification score identifies the class
with the highest term matches but it also has some limitations . The score
signifies which intent is most likely to the sentence but does not
guarantee it is the perfect match Highest score only provides the relativity
base.
Seminar Report 2019-2020 21 Medibot using NLP
So , NLU is responsible for recognize the words and NLG provides the
appropriate replies with the help of classification methods and database.
Seminar Report 2019-2020 22 Medibot using NLP
8. Where can we use chatbots ?
1. Medical :
Chatbots have also made their way into health care by easing the burden
on medical professionals by facilitating faster medical diagnosis,
answering health-related questions, booking appointments ,personal
health assistance, age based medical dosage and lots more
2. Marketing :
Chatbots are monitoring users’ behavior, shopping patterns and habits,
and accordingly sending messages. Imagine that you are a bakery brand
and you have a user who is on a diet. By following the user’s habits and
by answering simple questions, a chatbot can collect data that helps them
to be more personalized and also spread the brands ads
3. Customer support :
Chatbots can be trained to respond customer service questions and
provide fast solutions, 24/7. For the user, this is an advantage because
they can get instant answers to their questions at any time, without
needing to wait on a human. Businesses can reduce costs by up to 30%
by using chatbots for customer service.
4. Banking :
Chatbots are helping banks enhance customer satisfaction by
answering a host of their queries within seconds. Today, most customers
want prompt replies to their questions and the IVR system often puts their
Seminar Report 2019-2020 23 Medibot using NLP
calls in queues , user can easily check the statements .chatbot make a vital
role in online transaction
5. personal assistant :
The chatbot will communicate with the user with the help of natural
language processing so Chatbot can use as Personal Assistance . It
will be able to not only control your schedule on Google calendars but
also will be able build an immaculate resume , so it make our daily life
easier
6. social media :
messaging apps have eclipsed social media apps in terms of attracting
new active users, which is hardly surprising . Here, chatbots have a
massive role to play because they enable users to search content via their
preferred messaging apps , also chatbot provide customer support in
social media
Seminar Report 2019-2020 24 Medibot using NLP
The old chatbot are client communications systems and their best effort
is a question and answer page on a website. Bot can facilitate to get the
common health related question and prediction of disease without a
human interference.
E. Disease Prediction :
Depending on the disease symptoms SVM algorithm can predict the
disease.
Seminar Report 2019 -2020 27 Medibot using NLP
Figure 4 : System Architecture
F. Online API :
Use Google API for voice-text and text-voice conversion. The
Chatbot API sends query to chatbot and get related answer and refer this
answer analysis on that and display answer on android app. Get medicine
related data like medicine name, medicine expiry details and so on from
medicine API.
When user ask question to the scheme, logic of the complaint is
recognized by applying NLP. Sense of the words is found using part of
speech tagging and Word Net dictionary by using this sentiment analysis.
2. If the first sentence does not contain w, we find the word from the
first sentence, which is most similar to w . This word is denoted as
~w. If the similarity is greater than the preset threshold, we fill the
first sentence’s vector entry with the corresponding index of ~w in the
first sentence. If the similarity is not greater than the threshold, we
fill the vector’s entry with 0.
2. h ttps://www.edureka.co/pythonnatural-
language-processing-course
3. http://www.ijecs.in/index.php/ijecs/article/view/720-
"Sanative Chatbot For Health Seekers", JECS Volume 05
Issue 3 March 2016 Page No.16022-16025.