You are on page 1of 8

Volume 8, Issue 5, May – 2023 International Journal of Innovative Science and Research Technology

ISSN No:-2456-2165

Digital Prescription and Disease Prediction


using Machine Learning
Indrajeet Acharya, Harish Yadav, Abhibhav Jadhav, Nithish Kumar Naicker, Sabanaz S. Peerzade
Dept. of Computer Engineering
Sinhgad College of Engineering, Pune, India

Abstract:- The healthcare industry is increasingly alternative to many years old paper-based prescriptions.
concerned about medical errors, which are the leading Electronic prescribing and dispensing processes of drugs
cause of death worldwide and also compromise patient whether in medical practice, follow up or research has
safety. This medical error is even more serious in become an integral partof pharmacy informatics [12]. Despite
developing countries where healthcare is not supported the fact that the e- Prescription system is an essential tool for
by technology. Because of the traditional paper-based the healthcare industry, e-Prescription adoption and
prescription system, World has an overall 8% – 25% utilization remain low in developing countries [13]. Many
median medication prescribing error rate that could be healthcare organizations around the world have implemented
avoided if an electronic prescription system was in place. electronic information systems to improve the process of
Therefore, this study aims to assess physicians’ recording information, but only a few have succeeded [14].
perceptions towards electronic prescription
implementation. Medicine and healthcare are some of the most crucial
parts of the economy and human life. There is a tremendous
Accurate and on-time analysis of any health-related amount of change in the world we are livingin now and the
problem is important for the prevention and treatment of world that existed a few weeks back. Everything has turned
the illness. The traditional way of diagnosis may not be gruesome and divergent. In this situation, where everything
sufficient in the case of a serious ailment. Developing a has turned virtual, the doctors and nurses are putting up
medical diagnosis system based on machine learning maximum efforts to save people’s lives even if they have to
(ML) algorithms for prediction of any disease can help in danger their own. There are also some remote villages which
a more accurate diagnosis than the conventional method. lack medical facilities. Virtual doctors are board-certified
We have designed a disease prediction system using doctors who choose to practice online via video and phone
multiple ML algorithms. The dataset used had more than appointments, rather than in-person appointments but this is
41 diseases for processing. Based on the symptoms, age, not possible in the case of emergency. Machines are always
and gender of an individual, the diagnosis system gives the considered better than humans as, without any human error,
output as the disease that the individual might be they can perform tasks more efficiently and with a consistent
suffering from. The Naïve Bayes algorithm gave the best level of accuracy. A disease predictor can be called a virtual
results as compared to the other algorithms. The accuracy doctor, which can predict the disease of any patient without
of the Naïve Bayes algorithm for the prediction was 99%. any human error. Also, in conditions like COVID-19 and
Our diagnosis model can act as a doctor for the early EBOLA, a disease predictor can be a blessing as it can
diagnosis of a disease to ensure the treatment can take identify a human’s disease without any physical contact.
place on time and lives can be saved. Some models of virtual doctors do exist, but they do not
comprise the required level of accuracy as all the parameters
Keywords:- Healthcare, Prescription System, Treatment, required are not being considered. The primary goal was to
Diagnosis, Machine Learning, Symptoms, Naive Bayes. develop numerous models to define which one of them
provides the most accurate predictions. While ML projects
I. INTRODUCTION vary in scale and complexity, their general structure is the
The health care industry has become increasingly same. Several rule-based techniques were drawn from
concerned about patient safety, which corresponds to societal machine learning to recall the development and deployment
trends [1]. Medication safety is one of the most important of the predictive model. Several models were initiated by
concerning issues in global health policy [2]. Medical error is using various machine learning (ML) algorithms that
a common encounter and represents an important public collected raw data and then bifurcated it according to
health problem posing a serious threat to patient safety. A symptoms.
medical error is an error occurred in the prescribing, The data-set was then processed in ML models like
dispensing, or administration of a drug [4]. It is an avoidable Naive Bayes. According to ML models, the accuracy varied.
negative impact of medical care, regardless of whether it is a While processing the data, the input parameters data-set was
visible or detrimental to the patient [4]. The use of an e- supplied to model, and the disease was received as an output.
prescriptions has the potential to improve the quality of
patient care at the pharmacy [1]. Indeed, a study shows a
significant improvements associated with an e-prescription
system implementation, including a 86% decrease in serious
medication errors, and an increase in Medicare formulary
adherence from 14% to 88% [11]. e-Prescription is an

IJISRT23MAY572 www.ijisrt.com 3830


Volume 8, Issue 5, May – 2023 International Journal of Innovative Science and Research Technology
ISSN No:-2456-2165
II. RELATED WORK which Logistic tree is used.

A. General: D. Multiple Disease Prediction Using Machine Learning


A review of literature can be defined as a body of the text Algorithms Comparetivily (2020):
that mainly focuses on review of all the crucial data points Author – Smita S. Gunjal
and/or method that gives us a different approach towards a
specific topic. It displays information in a very explicit and This paper proposing such a system which will flaunt a
subjective field and typically the info in a very explicit simple and elegant User Interface and also be time efficient.
subject field among a particular or fundamental quantity. Its In order to make it less time consuming we are aiming at a
final goal is to bring the reader and people up so far with more specific questionnaire which will be followed by the
current literature that is on a subject and forms of the idea for system. Our aim with this system is to be the connecting
one or more goal, like future analysis that will be by required bridge between doctors and patients. The main feature will
within the space and also precedes a search proposal. There be the machine learning, in which we will be using
are numerous work that have been done related to disease algorithms such as Naïve Bayes Algorithm, K-Nearest
prediction system using different Machine Learning Algorithm, Decision Tree Algorithm, Random Forest
algorithms and achieved different results for different Algorithm and Support Vector Machine, which willhelp us in
methods in medical field. getting accurate predictions and also will find which
algorithm gives a faster and efficient result by comparatively-
B. Disease Prediction Using Machine Learning (2020): comparing. Another feature that our system will comprise of
Author – Chauhan Raj H. is Doctor’s Consultation.
Description: This system is used to predict disease
according to symptoms. This system uses decision tree III. PROPOSED SYSTEM
classifier for evaluating the model. This system is used by
end-users. The system will predict disease based on Our project is stand on multiple disease prediction in
symptoms. This system uses Machine Learning Technology. accordance with symptoms entered by patient. We are
For predicting diseases, the decision tree classifier algorithm proposing such a system that will flaunt a simple, cost
is used. We have named this system as'AI THERAPIST'. This effective, elegant User Interface and also be time efficient.
system is for those people who arealways fretting about their Our proposed system bridges the gap between doctors and
health, for this reason, we provide some features which patients which will help both classes of users to achieve their
acknowledge them and enhance their mood too. So, there is a goal. This system is used to predict diseases according to
feature for the awareness of health 'Disease Predictor', which symptoms. In this proposed system we are going to take down
recognize disease according to symptoms. five symptoms from the users and evaluate them by applying
algorithms such as Naïve bayes. Also, we are going to ask
C. Disease Prediction Using Machine Learning (2019): our users to enter their login details that we are going to store
Author – Kedar Pingale. in our database so that the user can use this prediction for
This system is used to predict most of the chronic future use. Lastly, with the input provided by the user, we will
diseases. It accepts the structured and textual type of data as predict the disease associated to those symptoms and also
input to the machine learning model. This system is used by provide prescription that could be effective against that
end users. System will predict disease on the basis of disease in the form of a report that would contain the details
symptoms. This system uses Machine Learning Technology. regarding the symptoms provided by the user, the disease
For predicting diseases Naïve Bayes algorithm, for clustering predicted by the algorithms and the required prescription
KNN algorithm, final output will be in the form of 0 or 1 for (along with where to get them).

Fig. 1: Proposed System for Disease Prediction

IJISRT23MAY572 www.ijisrt.com 3831


Volume 8, Issue 5, May – 2023 International Journal of Innovative Science and Research Technology
ISSN No:-2456-2165
A. System Implementation  Objective
A framework for multiple disease predication system
 Loading the Dataset: based on the symptoms using Naïve bayes supervised
 We first load the given dataset machine learning algorithms. Also the application interface
 After that we import the required library packages. Data which will help the patient and the doctor to stay connected.
Pre-processing
 We do reshape and data augmentations. Defining the  Scope of the Project
Model The aim of this study is to test the proposed hypothesis
 We define the model as sequential or Functional. that supervised ML algorithms can improve health care by the
 Now we decide the number of layers to be used, Number accurate and early detection of diseases. There is a demand to
of nodes to be used in the model and also the evaluation make such a system that will help end users to predict
metrics. Compiling the Model. diseases on the basis of symptoms given in it without visiting
hospitals. By doing so, it will decrease the rush at OPD‟s of
 It defines the loss function, optimizer, and weights. hospitals and bring down the workload on medical staff.
Model Fit
 Training Data, Testing Data.
B. System Architecture

Fig. 2: Architecture of Disease Prediction System.

C. Algorithm theorem that can be defined as:

 Naïve Bayes P(d|h) is the probability of data d given that the


Naive Bayes is an easy however amazingly powerful rule hypothesis h was true. P(h) is the probability of hypothesis h
for prognosticative modelling. One of the simplest ways that being true (regardless of the data). This is called the prior
of choosing the foremost probable hypothesis given the info probability of h. P(d) is the probability of the data (regardless
that we've that we are able to use as our previous information of the hypothesis).
regarding the matter. Bayes’ Theorem provides how that we
are able to calculate the likelihood of a hypothesis given our IV. RESULT AND DISCUSSION
previous information. Naive Bayes classifier assumes that the
presence of a specific feature in an exceedingly class is Now the working and results of our system is displayed
unrelated to the presence of the other feature here. Various Screenshots with their explanation can be
shown below on how the system will work and helppeople in
It is a machine learning algorithm for classification contacting the doctor in no time and predicting the disease.
problems and is based on Bayes’ probability theorem. The
primary use of this is to do text classification which involves These are the screenshots of the Digital Prescription and
high dimensional training data sets. We used the Bayes Disease Prediction Application:

IJISRT23MAY572 www.ijisrt.com 3832


Volume 8, Issue 5, May – 2023 International Journal of Innovative Science and Research Technology
ISSN No:-2456-2165

Fig. 3: Start Screen of Digital Prescription

Firstly, When the patient, doctor and pharmacist will open the app they will see this interface. The display isshowing smart
health on the screen and then after few seconds the login page will be displayed to the user.

P(h|d) = P (d|h)·P (h) /P (d)

Where P(h|d) is the probability of hypothesis h given the data d. This is called the posterior probability.

Fig. 4: Registration and Login Page

The register and login page will show the user to select Now the various dashboards from each user can be
the option from Doctor, Patient and Lab/Pharmacy. Here if shown as given below:
the user is new it has to first register and then it canlogin to
the system. Else user can login directly.

IJISRT23MAY572 www.ijisrt.com 3833


Volume 8, Issue 5, May – 2023 International Journal of Innovative Science and Research Technology
ISSN No:-2456-2165

Fig. 5: Doctor’s Dashboard

After login doctor can see this dashboard in front of patient. Doctor can create and edit his/her profile accordingto
him/her. Through this doctor can see the history of the the requirement.
patient and add prescription according to the health of the

Fig. 6: Patient’s Dashboard

IJISRT23MAY572 www.ijisrt.com 3834


Volume 8, Issue 5, May – 2023 International Journal of Innovative Science and Research Technology
ISSN No:-2456-2165
Patient can see the prescription added by the doctor on his Medicine, Pharmacy Details, Search Medicine and Medicine
/her dashboard. Various functions such as Chatbot, Remainder.
Appointment, Disease Prediction, Doctor list, Order Online

Fig. 7: Pharmacist’s Dashboard

Pharmacist can add the details of the medicine, description about the medicine and price rate. The report ofthe test can be
generated and send to the user through mailof the user.

Fig. 8: Chid’s Profile on CareTracker

IJISRT23MAY572 www.ijisrt.com 3835


Volume 8, Issue 5, May – 2023 International Journal of Innovative Science and Research Technology
ISSN No:-2456-2165

This is the chatbot which patient can use to get suggestions on some common doubts and medicines.

Fig. 9: Disease Prediction from Symptoms

Here the patient will get the option to input 5 symptoms also like to acknowledge the support and assistance provided
and according to the input the model will predict the output by the technical staff who helped us to set up andmaintain the
as it is trained from the dataset. Theoutput will be shown in experimental system.
the output box and accordingly the patient can decide what he
wanted to do. Whether to go to the doctor or do the normal Finally, we would like to extend our heartfelt
medications. appreciation to our families and friends for their
encouragement and unwavering support throughout the
V. CONCLUSION process of writing this research paper.

Thus through this application, patient can get REFERENCES


information about his or her health in no time without visiting
the doctor in person. It will save both patient and doctor time. [1.] Kauppinen H, Ahonen R, Timonen J. The impact of
Patient can treat the common disease on its own. Also, the electronic prescriptions on medication safety in
perception of the user has a significant impact on the Finnish community pharmacies: a survey of
successful implementation of an e- prescription system. To pharmacists. Int J Med Inform. 2017;100:56–62. doi:
be successful in e-prescription system implementation, health 10.1016/j.ijmedinf.2017.01.014 [PubMed] [CrossRef]
care organizations should improve the computer technical [Google Scholar]
skill of physicians’ providing training on digital device usage, [2.] Hanna K, Riitta A, Johanna T. The impact of electronic
and improve internet connectivity. As a limitation, the study prescriptions on medication safety in Finnish
was a cross-sectional which has inherited limitation of a community pharmacies: A survey of pharmacists.
cross- section study. In addition to this the sample size of the 2017; [PubMed] [Google Scholar]
study was a little bit smaller. [3.] Apple JL. The classification of medication errors. Nurs
Manage. 1976;7(12):23–9. doi: 10.1097/00006247-
The manuscript presented the technique of predicting 197612000-00009 [PubMed] [CrossRef] [Google
the disease based on the symptoms of an individual patient. Scholar]
The Naïve Bayes model gave the highest accuracy of 99% for [4.] Grober ED, Bohnen JMA. Defining medical error. Can
the prediction of diseases using the above-mentioned factors. J Surg. 2005;48(1):39–44. [PMC free article]
Once the disease is predicted, we could easily manage the [PubMed] [Google Scholar]
medicine resources required for the treatment. This model [5.] Porterfield A, Engelbert K, Coustasse A. Electronic
would help in lowering the cost required in dealing with the prescribing: improving the efficiency and accuracy of
disease and would also improve the recovery process. prescribing in the ambulatory care setting. Perspect
Heal Inf Manag [Internet]. 2014. Apr 1;11(Spring):1g–
ACKNOWLEDGMENT 1g. Available from:
https://pubmed.ncbi.nlm.nih.gov/24808808 [PMC
We would like to express our sincere gratitude to all free article] [PubMed] [Google Scholar]
those who have contributed to the successful completion of [6.] Neoh CF, Zainal INA, Hameed MA, Khan TM,
this research paper on the Digital Prescription and disease Ming LC. Development and progress of pharmaco
Prediction using machine Learning. First and foremost, we informatics in pharmaceutical and health sciences. J
would like to acknowledge our supervisor for providing us Young Pharm. 2015;7(3):155–63. [Google Scholar]
with invaluable guidance and support throughout the partial [7.] Feldman AM. Understanding Health Care Reform:
completion of project. We are grateful to the facultymembers Bridging the Gap Between Myth and Reality. CRC
who provided us with their insights, feedback, and Press; 2011. [Google Scholar]
suggestions that helped us to refine our research. We would

IJISRT23MAY572 www.ijisrt.com 3836


Volume 8, Issue 5, May – 2023 International Journal of Innovative Science and Research Technology
ISSN No:-2456-2165
[8.] HASANAIN RA, COOPER H. Solutions to overcome
technical and social barriers to electronic health
records implementation in Saudi public and private
hospitals. J Health Inform Dev Ctries. 2014;8(1).
[Google Scholar]
[9.] ChauhanRaj H., NaikDaksh N. ,Halpati,Rinal A.,
Patel,SagarkumarJ. ,&PrajapatiMr. A.D. (2020).
Disease Prediction using Machine Learning.
International Research Journal of Engineering and
Technology, 7(5), 2000-2002.
[10.] Pingale,Kedar.,Surwase,Sushant.,Kulkarni,Vaibhav.,
Sarage,Saura bh., & Karve, Prof. Abhijeet .(2019).
Disease Prediction using Machine Learning.
International Research Journal of Engineering and
Technology, 6(12), 2810-2813. Dalip Vijay Kumar,
“GPS and GSM based Passenger Tracking System”,
International Journal of Computer Applications (0975
— 8887) Volume 100-No.2, August 2014

IJISRT23MAY572 www.ijisrt.com 3837

You might also like