Python Alert Reminder System Project
Python Alert Reminder System Project
ELINA MOHAPATRA
Registration Number: 2001289197
2020-24
1
Project Report on
Bachelor of
Technology in
Computer Science & Engineering
Submitted by
ELINA MOHAPATRA
ADI AVIJNAN DAS
Registration Number: 2001289197
Registration Number: 2001289195
This [Link]. Viva-Voce Examination of the Minor Project work submitted by the candidate
Elina Mohapatra bearing BPUT Registration Number: 2001289197 is held during 29th
November, 2021 and is accepted in partial fulfillment of the requirement for the award of the
degree of Bachelor of Technology in Computer Science & Engineering of Biju Patnaik
University of Technology, Odisha.
Place: Bhubaneswar
Date: 29-11, 2021 HOD, Dept. of CSE
3
DECLARATION
I, Soumyakant Tripathy declare that the Minor Project Work presented through this report was
carried out by me in accordance with the requirements and in compliance of the Academic
Regulations of the Biju Patnaik University of Technology (BAR) for the Bachelor of
Technology ([Link].) Degree Programed in Information Technology and that it has not been
submitted for any other academic award. Except where indicated by specific reference in the
text, the work is solely my own work. Work done in collaboration with, or with the assistance of,
others, has been acknowledged and is indicated as such. Any views expressed in the report are
those of the author.
ii
2
CERTIFICATE
This is to certify that the report of the Minor Project Work on the topic entitled “ ALERT
REMINDER NOTIFICATION WITH PYTHON”, which is submitted by Elina Mohapatra in
partial fulfillment of the requirement for the award of the of Bachelor of Technology in Computer
Science & Engineering of Biju Patnaik University of Technology, Odisha, is a bona fide record
of the candidate's own work carried out by him under my supervision.
3
ABSTRACT
In this project, This is an Android-based application in which an automatic alarm ringing system is
implemented. It focuses on doctor and patient interaction. Patients need not remember their
medicine dosage timings as they can set an alarm on their dosage timings. The alarm can be set for
multiple medicines and timings including date, time and medicine description. A notification will
be sent to them through email or message inside the system preferably chosen by the patients.
They can search doctor disease wise. The patients will get the contact details of doctors as per their
availability. Also the users can see different articles related to medical fields and health care tips.
The system focuses on easy navigation and good user interface. Many such Medical Reminder
Systems have been developed where a new hardware is required but in our work we have made an
attempt to develop a system which is economical, time-saving and supports medication adherence.
5
ACKNOWLEDGMENTS
I take this opportunity to express my gratitude to the people who have been instrumental in
the successful completion of this project. I am, in the first place, obliged and grateful to my
parents without whose support and care I could not have completed this project. I express my
deep gratitude towards my guide, Ranjeep Kumar Pradhan, HOD, Dept. of CSIT, Trident
Academy of Technology, Bhubaneswar, for his tremendous support, encouragement and
help.
I convey my sincere thanks to our HOD, Department of Computer Science & Information
Technology and the principal of Trident Academy of Technology, Bhubaneswar, for their
permission and cooperation in the completion of the project without experiencing any
hurdles. I would like to extend my gratitude to the Department of Computer Science &
Engineering, Trident Academy of Technology, Bhubaneswar, for their support and
cooperation.
Finally, I extend my appreciation to all my friends, teaching and non-teaching staffs, who
directly or indirectly helped me in this endeavor.
6
Date: 29-11, 2021
Regd. No: 2001289197
7
CONTENTS
Approval i
Declaration ii
Certificate iii
Abstract iv
Acknowledgements v
Contents vi
2 Introduction 2
2.1 Definition of Regression 2
2.1.1 Simple Linear Regression 3
2.1.2 Multi linear Regression 4
2.1.3 Non-Linear Regression 6
2.1.4 Overfitting in Regression 7
2.1.5 Support vector regression 8
2.1.6 Decission Tree regression 12
vi
8
4 EDA for Preprocessing 25
4.1.1 EDA 25
4.1.2 Data Preprocessing 27
4.1.3 Coding & Results 28
5.1 Conclusion 33
5.2 Future Scope 33
References 34
vii
9
CHAPTER 1
Many people struggle to remember to take their medication on time and as prescribed, leading to
potential health complications and reduced treatment efficancy. A simple and accessible solution
10
CHAPTER 2
INTRODUCTION
The category of patients involve all human beings-teachers, students, businessmen, housewives,
children and also all of us have a busy hectic schedule. Today’s life is full of responsibilities and
stress. So people are prone to diseases of different types and it is our duty to make ourselves stay fit
and healthy. If the patient stays at home then he or she might get someone to look after him/her but
when one is not at home, is out of the city or state away from home then it is hard for the family
members to call them and remind them their dosage timings every time. In our developing and
technology dependent life we totally rely on gadgets especially smart phones. Today everyone has a
smart phone. With this we get an opportunity to use technology in a better way so that it can be made
useful to us. And it plays an important part in our daily life and helps us staying fit in many ways.
The remarkable problem is that patients forget to take the proper medicines in proper proportion and
in proper time. Medication adherence, which refers to the degree or extent to which a patient takes
the right medication at the right time according to a doctor’s prescription, has recently emerged as a
serious issue because many studies have reported that non-adherence may critically affect the patient,
thereby raising medical costs .Medication non adherence is a common, complex, and costly problem
that contributes to poor treatment outcomes and consumes health care resources
So we are introducing an Android application whose objective is to remind the patients of their dosage
timings through Alarm Ringing system so that they can stay fit and healthy. Through navigation they can
search doctors and hospitals and contact details so that they can easily get proper treatment on time. This
application focuses on the people who forget to take medicines on time. It allows users to set an alarm along
with the fields of date, time and medicine description which will allow them to set alarm for
multiple medicines at different time intervals. The notification system will send a notification after setting
an alarm. The user can activate or deactivate the notification accordingly. It will be sent as
email or message as selected by the user. The patients can search doctor disease wise and area
wise which will provide easy searching facility along with doctor’s contact information, visiting
11
place and availability time. Medication reminders help in decreasing medication dispensing errors and
wrong dosages.
GOALS
The application is designed on Eclipse. It can be helpful in defense sector and emergency conditions (accidents) and
can spread health care awareness. It is life-saving, money saving and time saving application which is easy to use
and provides a good user interface.
Many Medication Systems have been developed based upon different platforms and concepts. Use of
healthcare related apps is growing but there are many issues related to their functionality. My Alert
Reminder is a medication reminder system for children. It runs on mobile devices such as smart phones,
providing user interfaces for configuring medication schedules and user alerts for reminding users about the
time and type of medication according to the configured medication schedule. Some systems use sensors,
radio-frequency identification (RFID), or motion detection technologies to ensure that patients actually take
their medications. Park et al proposed medication reminder synchronization system based on data
synchronization. It transmits OMA (open mobile alliance) DS (data synchronization) based messages
containing the patient’s medication data and the device configuration data to a remote manager/medical
staff. It also synchronizes data (including medication schedules)modified/generated by these personnel in the
medication server [1].Prasad B has discussed the approach of Medicine reminder pro. It is a free application
which supports up to 15 reminders. User can select them in either repeating or non-repeating alarm patterns.
Any hourly time interval between alarms can be selected, starting from the minimum of 1 hour. At the
scheduled time, application will produce a notification with an alarm, vibration or LED indication. [7] Zao et
all have developed Wedjat – Smart Phone Application which tries to avoid medicine administration errors
[8]. There are many loopholes of existing reminder systems. To list a few: They do not provide disease wise
searching of the Doctors, no optional notification only compulsion, no facility for scheduling
of appointments to the doctors .Some of the systems have a default alarm tone so the users cannot change
them. The scheduled reminder suggests any kind of medicine ,dose of medicine, etc. automatically without
doctor’s prescription, which can cause harm to the patients. Lastly, many of the systems available require
special hardware which need to be purchased. Sothis app would be of great help to peoples of various age
groups as it would be free of cost and easy to function .
12
OBJECTIVE FOR WORK
We are introducing an Android application whose objective is to remind the patients of their dosage
timings through Alarm Ringing system so that they can stay fit and healthy. Through navigation
they can search doctors and hospitals and contact details so that they can easily get proper treatment
on time. This application focusses on the people who forget to take medicines on time. It allows
users to set an alarm along with the fields of date, time and medicine description which will allow
them to set alarm for multiple medicines at different time intervals. The notification system will
send a notification after setting an alarm. The user can activate or deactivate the notification
accordingly. It will be sent as email or message as selected by the user. The patients can search
doctor disease wise and area wise which will provide easy searching facility along with doctor’s
contact information, visiting place and availability time. Medication reminders help in decreasing
medication dispensing errors and wrong dosages.
13
CHAPTER 3
Issues of low literacy must be recognized and strategies designed with this
limitation in consideration.
While designing and planning for this thesis, several papers had been gone
through to make it possible as it was very challenging to complete the job
with a limited knowledge. By taking into consideration of the Geriatric and
also the disabled people we took survey of them by asking the basic need
for them about medication .
Also they have used smartphone, which is mostly not used by elderly
people In “Pill Dispenser with alarm Via Smart phone notification system,
proposed a dispenser consisting of alarm system which helps to get alert in
the form of notification on smartphones or desktop.
15
.
CHAPTER 4
________________________________________
_
BENEFITS
16
CHAPTER 5
SYSTEM ANALYSIS
This section describes the architecture of the system. This system was developed
using python, therefore the users only need to execute the main python executable with
the relevant parameters described throughout this section in order to use it. A more
detailed explanation over the files and directories that make up the system is described
in the attachments section , under the User Guide section
Requirements
To proceed with the implementation of the system, we need to identify the
requirements that are needed for us to be able to conclude it. We can sum arise the
main system requirements that need to be taken into consideration throughout the
system implementation
Proposed System
The proposed system is based on Android Operating system which will remind
the users to take medicines on time through notification and automatic alarm
ringing system. Android is a Linux-based operating system designed primarily
for touch screen mobile devices such as smart phones and tablet computers ,
developed by Google in conjunction with the Open Handset Alliance. Android
was built from the ground-up to enable developers to create compelling mobile
applications that take full advantage of all a handset has to offer. The system is
specified on android operating system only because the market share of Android
is high. Android also comes with an application development framework(ADF),
17
which provides an API for application development and includes services for
building GUI applications, data access, and other component types.
CHAPTER 6
_____________________________________________
Python is one of the most popular programming languages for this task and it has
replaced many languages in the industry, one of the reason is its vast collection of
libraries .
About Python
There are a lot of reasons why Python is popular among developers and one of
them is that it has an amazingly large collection of libraries that users can work
with .
From developing to deploying and maintaining Python wants their developers
to be more productive .
Python is becoming hugely popular among machine learning experts .
Using python we can create our application using GUI interface such as Tkinter
Coding Implementation
import tkinter as tk
from tkinter import ttk
from datetime import datetime
from plyer import notification
import threading
import time
18
then we have to define the alarm
class AlarmApp:
def __init__(self, root):
[Link] = root
[Link]("Alarm App")
self.entry_time = [Link](root)
self.entry_time.pack(pady=5)
self.entry_message = [Link](root)
self.entry_message.pack(pady=5)
self.entry_medicine = [Link](root)
self.entry_medicine.pack(pady=5)
def set_alarm(self):
alarm_time_str = self.entry_time.get()
alert_message = self.entry_message.get()
medicine_name = self.entry_medicine.get()
20
define the notification :
[Link](
title=notification_title,
message=notification_message,
timeout=10
)
Main function:
if __name__ == "__main__":
root = [Link]()
app = AlarmApp(root)
[Link]()
21
RESULT
22
CHAPTER 7
It helps in reminding about the medicines. User can add details of the
dosage schedules. Using the date field one can enter the starting and
ending dates between which he has to take medicines. The time field
shows the time of dosage and on that time the alarm will get rung. The
user can add the description of the medicine, including name, purpose
and other related description. All the information will be saved in the
database. This makes any time availability of the patients’ records.
They can change the ringtone of the alarm from the ringtones stored in
the devices
Once the alarm is set then the user gets the notification. The users can
activate or deactivate this accordingly. If he does not require the notification he
can turn off it. If he requires this system then a notification will be sent into his
device. Again if he wants the notification in email form, he can select
the ‘Notification through Email Mode’ or if he requires it in a message format he
can go with ‘Notification through Message Mode’
23
CHAPTER 8
[Link] IMPLICATIONS
2. LIMITATIONS
24
o To narrow our findings we restricted our search to
automated technology. There are a great number of
studies that used text messaging, emails, and/or other
technologies to assist patients in adhering to their
health regimens that were not automated.
25
CHAPTER 9
_________________________________
DISCUSSIONS AND CONCLUSIONS
When reflecting on the use of text messages patients stated that the
messages were a way to feel more connected to their provider and engaged
in their health care.[18] Patients also reported that they were more likely to
adhere to a suggested regimen or advice if the message was personalized
[19] and if the reminder required an action from the patient such as turning
26
off the reminder.[20] However, care must be taken to observe patient
privacy and avoid the potential for others to view sensitive messages sent
to mobile phones. As technology changes to allow alerts to be presented in
a more discrete way this aspect might change. Further, while some patients
preferred letters mailed through the postal system, most preferred an
individual message sent directly to their personal mobile phone.
Automated reminders and alerts were effective across genders, age groups,
and socio-economic status. Appointment reminders increased attendance
regardless of the type of appointment. Automated reminders targeted at
modifying behaviors were also shown to be effective. Automated
appointment reminders increase attendance rates and have the potential to
decrease clinic costs due to missed appointments and reduce on the time it
takes for clinic staff to contact and remind patients of their appointments.
The literature also suggests that text messaging is an effective way to alert
patients of an upcoming appointment regardless of their age.
27
CHAPTER 10
_________________________________
Conclusion
28
mobile phone. This trend is likely to change as newer technologies
emerge, providers broaden their use of alerts to encompass a
greater breadth of purposes, and patients become more involved in
the management of their own healthcare.
29
REFERENCES
__________________________________
30