A Comprehensive Approach To Healthcare Chatbots Using SpaCy NLP And Naive Bayes Algorithm

Imagine a world where medical assistance is just a conversation away, where artificial intelligence helps navigate your health concerns with precision, by the intersection of machine learning and healthcare, our chatbot emerges as a powerful ally for patients everywhere. This research work focuses on developing a healthcare chatbot which provides diagnosis of patients by taking user-input symptoms, suggesting medications and also hospitals in a particular region. Both speech and text options are introduced to interact with the user. Firstly, the user is prompted to enter the symptoms faced by them, the symptoms are extracted from user input sentences using SpaCy NLP. These extracted symptoms are fed to a Multinomial Naïve Bayes Classifier for disease prediction. Additionally, chatbot also provides the required medications and the hospitals in the region from the data stored in the CSV and PDF files. The user interface of the chatbot is built using Flask. SQL is leveraged for user account management and to store the diagnosis history of the user. The dataset used for training is a CSV file consisting of 132 unique symptoms, 42 unique diseases and a total of 4,920 combinations of symptoms and associated diseases. The dataset is pre-processed in the form of 1s and 0s to make it suitable for our Multinomial Naive Bayes model which achieved a test accuracy of 95% which is better than the existing models having an accuracy of around 93%.

Authors

Institutions

Publication Details

Published
2024-11-29
DOI
https://doi.org/10.1109/idicaiei61867.2024.10842876
Citations
1
Primary Topic
Artificial Intelligence in Healthcare
Type
article
Field-Weighted Citation Impact
0.71
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A Comprehensive Approach To Healthcare Chatbots Using SpaCy NLP And Naive Bayes Algorithm

C. Soumya, G Shruthi, K C Sinchana, Sugnyan S Abbigeri
1 citations
Artificial Intelligence in Healthcare
0.71
article

A Comprehensive Approach To Healthcare Chatbots Using SpaCy NLP And Naive Bayes Algorithm

C. Soumya, G Shruthi, K C Sinchana, Sugnyan S Abbigeri
article en
1 citations

Abstract

Imagine a world where medical assistance is just a conversation away, where artificial intelligence helps navigate your health concerns with precision, by the intersection of machine learning and healthcare, our chatbot emerges as a powerful ally for patients everywhere. This research work focuses on developing a healthcare chatbot which provides diagnosis of patients by taking user-input symptoms, suggesting medications and also hospitals in a particular region. Both speech and text options are introduced to interact with the user. Firstly, the user is prompted to enter the symptoms faced by them, the symptoms are extracted from user input sentences using SpaCy NLP. These extracted symptoms are fed to a Multinomial Naïve Bayes Classifier for disease prediction. Additionally, chatbot also provides the required medications and the hospitals in the region from the data stored in the CSV and PDF files. The user interface of the chatbot is built using Flask. SQL is leveraged for user account management and to store the diagnosis history of the user. The dataset used for training is a CSV file consisting of 132 unique symptoms, 42 unique diseases and a total of 4,920 combinations of symptoms and associated diseases. The dataset is pre-processed in the form of 1s and 0s to make it suitable for our Multinomial Naive Bayes model which achieved a test accuracy of 95% which is better than the existing models having an accuracy of around 93%.

PES University (IN)
Openalex Percentile: Top 18%
Artificial Intelligence in Healthcare
0.71
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.