Project Docmentation
Project Docmentation
INTRODUCTION
1.1 GENERAL
Primary Health Care is a backbone of Health Service delivery for Tamilnadu. The
Primary Health Centre (PHC) is the first contact point between the village
community and the medical officer. The Purpose of PHCs is to provide an integrated
curative and preventive health care to the rural population especially for Pregnant
women and children below 5 years. The PHCs are hubs for 5-6 sub-centres that cover
3-4 villages and are operated by an Auxiliary Nurse Midwife (ANM).
The goal is to reduce Maternal Mortality Rate (MMR) and Infant Mortality Rate
(IMR) in rural areas as well as to incorporate the immunization and Nutrition for the
infant and children till five years from its birth.
In Tamilnadu, about 60% of the total population are living in rural areas. According
to the State Health Management Information System (SHMIS) data 2019,
Tamilnadu’s Maternal Mortality Ratio (MMR) is 57 per one lakh live births.
Tamilnadu’s Infant Mortality Rate (IMR) is 16 per 1,000 live births in 2017, as per
the latest Sample Registration System (SRS) data. Rural Tamilnadu has registered
infant deaths to 19 per 1,000 live births in 2017.
The Current rate of decline in MMR & IMR is not up to the level expected and needs
to improve significantly to achieve the MMR and IMR goals set as part of the
Millennium Development Goals (MDGs).
CHAPTER 1 Page 1 of 88
To achieve the MDG’s there is a need for technology-based system at village level
for tracking the eligible couples, maternal mothers, antenatal check-up’s, Pregnancy
outcome, post-natal check-up’s, Infant health and immunization
This scheme helps improving the health status of the mother and child as well as
improving the deliveries in institutions. Earlier, the scheme was offering Rs. 12,000
to the pregnant mothers. With the revision of the scheme, the monetary assistance
has been hiked by Rs. 6000. Now, maternal’s will receive Rs. 18,000. Every
maternal will get a nutritional kit. This kit will contain health mix, dry dates, iron
tonic, protein biscuits, ghee, disinfectants, towel and tablets.
CHAPTER 1 Page 2 of 88
Three of the six services viz. immunization, health check-up and referral services
are related to health and are provided through National Health Mission and Public
Health Infrastructure. The services are offered at Anganwadi Centres through
Anganwadi Workers (AWWs) at grassroots level.
Malnourished and sick children who cannot be managed by the ANM / AWW are
provided referral services through ICDS. All such cases are listed by the AWW and
referred to the medical officer.
More than 80% of the maternal deaths can be prevented by increasing the
institutional deliveries and ensuring a proper Ante- Natal Care (ANC). ANC visits
form a crucial part of the Ante-Natal Care as they provide counselling to maternal’s
about the care to be taken during pregnancy and in the preparation of childbirth.
Thus, the ANC visits play a significant role in deterring the morbidity and mortality
of both maternal and new-born. Important issues forming a part of consultation
include making plans for transportation to health care centre during labor,
recognizing the danger signs of serious health problems and identifying the woman
as a high-risk maternal, making arrangements for a blood donor if needed.
Bringing the maternal’s for the Ante-Natal check-ups, ensuring they take a minimum
of two TT injections and encouraging the pregnant women to give births in
authorized health centres are few of the important roles of a Village Health Nurse
(VHN) to avert the maternal deaths and stillbirths.
It is thus, very essential to enable the pregnant woman to recognize the obstetric
complications when they occur and seek care from doctors or VHN without any
delay.
CHAPTER 1 Page 3 of 88
It also helps VHN in identifying the high-risk pregnant women. The system also
assists the VHN by letting her know the list of pregnant women having due dates
(The estimated date of delivery) within one month.
However, there is no prevailing system that enables the VHN to monitor the Ante-
Natal visits done by the pregnant women. Smart Pregnancy System thus aims to
assist the VHN, by letting her know the schedule and status of ANC visits and
Tetanus doses of each and every registered pregnant woman.
From a medical point of view, cloud offers a special channel to access electronic
medical records easily. This ability of quick access to personal medical history can
speed up treatment, help to avoid complications, and even saves lives. Cloud also
can make it easy for the Maternal women to locate and keep track of their own
medical history.
CHAPTER 1 Page 4 of 88
Mobile phone technology is used to improve Primary health services in rural areas.
Mobile based management system that assists Village Health Nurse (VHN) to
provide better maternal health care services by automating the data collection and
decision-making process. These Mobile Application ease the process of
communicating data from remote rural communities to central locations, and
obtaining real time data with low cost.
Data mining is the process of extracting hidden knowledge from large volumes of
raw data and is used to discover knowledge out of data and presenting it in a form
that is easily understood by humans. Health Prediction plays an important role in
data mining. The Health Prediction system associate’s user support and on-line
consultation with mobile Application.
CHAPTER 1 Page 5 of 88
The Medical Officers were usually not available during the night hours as they
stayed in nearby towns. The absence of Medical Officers during an emergency at
night, particularly at the time of a delivery increases the risk for women coming for
delivery. Thus, in case of an emergency, the access of the maternal to the health
facility becomes a genuine problem.
CHAPTER 1 Page 6 of 88
1.3.1 MAIN FEATURES OF PROPOSED SYSTEM:
1. Creating an easy and cost-effective service for the people of the rural areas
Trying to investigate and overcome the weaknesses of the current pregnancy
monitoring systems.
2. VHN use the platform to enter real time data on digitised maternity case
sheets. These case sheets include digitised Safe Childbirth Checklist along
with provision for digital vital recording.
3. Alerts and notifications inform VHN or medical officer about high-risk cases
so they can receive timely support.
4. A Live dashboard helps VHN and medical officer monitor all cases in real-
time; identify and manage high-risk cases; refer cases to higher centres; and
make urgent decisions if necessary.
5. Design and implementation of an Android based mobile application for health
workers to ensure that all pregnant women are getting the proper nutrition
messages for them while they actually needed.
6. Offering real time communication between the pregnant woman, VHN,
medical officer through SMS (Short Message Service) as well as mobile
application.
7. Offering User friendly desktop interface application for the PHC staff to
interact with the system.
8. Information of the maternal is forwarded simultaneously to the Gram
panchayat demanding for the government schemes and facilities for
maternal’s and child.
9. Offering guidance and address to the VHN as well as the health care centre.
10. Offering multiple languages (English and Tamil) in the system.
CHAPTER 1 Page 7 of 88
Fig.1.1 PROPOSED SYSTEM (a)
CHAPTER 1 Page 8 of 88
CHAPTER 2
LITERATURE SURVEY
Description: The Healthcare system is the mobile application that stores the large
amount of private data of a maternal’s or users. Since the collected maternal Health
Information (PHI) is private information of maternal's and plays a critical role in
medical diagnosis and treatment. It is essential to strictly limit the access of these
data to authorized users only in order to ensure the security of these data and preserve
the maternal's’ privacy. However, the security and privacy protection of the stored
data is a major unsolved issue. So, the proposed system provides security for that
users’ data. The mobile healthcare applications provide easy access to medical care
information anytime and anywhere. This is not possible every time, sometimes
because of busy schedules we can’t take care of our health. So, they proposed to
build an application for the mobile healthcare System using cloud. The system
provides disease-oriented information. Main features of this health care system are
to provide disease-oriented information, the primary solution to particular disease.
The system also provides privacy. This system or application is most useful in
emergency cases
Keywords: Access control, Cloud computing, Mobile Health, Privacy
Limitations: Issues in security and privacy
CHAPTER 2 Page 9 of 88
Title-2: “Secure Healthcare for maternal's Using Cloud Computing”
Author: Rujuta Kambli, Ravi Yadav, Tejas Shetye, Suraj Nikam
Title-3: “Biometric Security for Cloud Data using Fingerprint and Palm Print”
Author: Sahithi, S. Anirudh, A. Swaroop, B. Ruth Ramy, K.
CHAPTER 2 Page 10 of 88
Title-4: “Cloud Computing: A New Era of Saving Precious Lives in the developing
World”
Author: Santanu Koley, Rashi Agarwal, Renu Jain
Description: Cloud Computing, nowadays used for saving cost, space, computer
hardware and software, can be implemented on a newly designed system with cloud
computing approach is a solution for remote districts, villages in hilarious regions
where mobile networks exist. It provides a better solution for the hospital or primary
health centre for humans. The developing countries are still fighting with fewer
doctors in those areas. The situation is already worse for poor and illiterate people
in terms of finding a doctor in such an area. Existing systems in major parts are based
on manual paper work and independent standalone applications in some districts'/
small towns' hospitals and primary health centres which results in waste of resources,
high construction and maintenance costs and are difficult to manage and maintain.
The main objective of proposing cloud-based solutions is to reduce the cost
(construction and maintenance), to reduce data loss risk, to gather all the hospitals
on one platform to better access maternal's' medical information for easy
management and maintenance. The proposed cloud computing solution is intended
to be used by hospitals and primary health centres of third world countries; however,
the solution is generic and can be used by hospitals of any country and the
community-based hospitals. This approach also saves a massive amount of
paperwork and is able to save trees to fulfil one step ahead to the greener world. In
future the proposed system will have a huge impact on human life and we will feel
goodness by dedicating this system for humankind.
CHAPTER 2 Page 11 of 88
Title-5: “Integrated Health Care System Using Cloud Computing”
Author: Olaniyan, O.M Ogude Cyril Chibuzor Onuah
Title-6: “Post and Pre Natal-Tracking in Rural Areas using Cloud Computing
and ICT”
Author: Sridhar Amirneni, Siddhitha Sundari B. Surya Ravindran.
Description: They track the pregnant woman right from the early pregnancy stage
till the child turns the age of five. The health conditions of the pregnant woman are
constantly monitored and the growth of the foetus is kept in track ensuring their
safety. The child’s health is maintained by providing vaccinations which prevents
fatal diseases. The entire system is a cloud-based system so that the information is
easily accessible and cost-effective. This also disseminates the information in real
time and is helpful in getting timely and quality medical care.
Keywords: Immunization, Cloud Computing, E-Health, Natal Care, Aadhar Card
Limitations: Lack of prediction
CHAPTER 2 Page 12 of 88
Title-7: “Mobile Cloud Computing for Emergency Healthcare Model:
Framework”
Author: Ali Nirabi Shihab A. Hameed
Description: They present Mobile cloud computing for emergency health care
model (MCCEH) model using a cloud computing server that aims to reduce response
time to save the maternal's life. When a person is exposed to a health problem,
MCCEH model will allow users to search for the nearest medical centre or nearest
specialists related to specific specialization and the results will show the availability
timetable for every specialist and whether he is available at this time or not, the user
will be able to choose specialist based on previous experiences may able to read
previous feedback and opinions.
CHAPTER 2 Page 13 of 88
Title-9: “Privacy Preserving Healthcare Data using Cloud Computing”
Author: Thavamani, S. Rajakumar, M.
CHAPTER 2 Page 14 of 88
CHAPTER 3
SYSTEM REQUIREMENTS
The hardware requirements may serve as the basis for a contract for the
implementation of the system and should therefore be a complete and consistent
specification of the whole system.
Processor : Core i5
Speed : 2.66 GHZ and above
RAM Memory : 4 GB
Hard disk : 500GB
microcontroller platforms.
2. Cross-Platform - The Arduino Software (IDE) runs on Windows, Macintosh
OSX, and Linux operating systems. Most microcontroller systems are limited
to Windows.
CHAPTER 3 Page 15 of 88
3.1.1.2 FINGERPRINT SENSOR
1. FINGERPRINT ENROLLMENT
The fingerprint is captured during the registration of maternal. The
captured fingerprints will then be “read” using pattern recognition algorithms.
The digital representation, known as a Biometric template is stored in the
database.
2. FINGERPRINT VERIFICATION
The fingerprints are scanned and converted to the equivalent biometric
template. This biometric template is then matched against all the enrolled
templates stored in the database. If the template matches any of the maternal
enrolled in the database, then the maternal is authenticated. If no match is
found in the database then she is not allowed to proceed.
The software requirements provide a basis for creating the software requirements
specification. It is useful in estimating cost, planning team activities, performing
tasks and tracking the team’s and tracking the team’s progress throughout the
development activity.
CHAPTER 3 Page 16 of 88
3.2.1 SOFTWARE DESCRIPTION
3.2.1.1 ANDROID
Android is an open source and Linux-based Operating System for mobile devices
such as smartphones and tablet computers. Android applications are usually
developed in the Java language using the Android Software Development Kit.
Android Studio is the official integrated development environment for Google's
Android operating system, built on JetBrains' IntelliJ IDEA software and designed
specifically for Android development.
FEATURES OF ANDROID
1. Beautiful UI - Android OS basic screen provides an intuitive user interface.
2. Storage - SQLite, a lightweight relational database
3. Web browser - Based on the open-source Web Kit layout engine, coupled
with Chrome's V8 JavaScript engine supporting HTML5 and CSS3.
For the server-side application and web user interface, ASP.net and the C#
programming language will be preferred. The SQL Server database is intended to be
used for storing and managing demographic and health records of maternal’s.
CHAPTER 3 Page 17 of 88
3.2.1.3 HTTP PROTOCOL
HTTP means Hypertext Transfer Protocol. HTTP is the underlying protocol used by
the World Wide Web and this protocol defines how messages are formatted and
transmitted, and what actions Web servers and browsers should take in response to
various commands. HTTP service is used to pull data into its own applications.
When a client enters a URL in the browser, HTTP actually sends an HTTP
command to the Web server directing it to fetch and transmit the requested Web
page. The other main standard that controls how the World Wide Web works is
HTML, which covers how Web pages are formatted and displayed.
PHP stands for Hypertext Pre-processor. PHP is a very popular and widely-used
open source server-side scripting. PHP runs on various platforms and it is compatible
with almost all servers used today such Apache, IIS, etc. PHP can be integrated with
the number of popular databases, including MySQL, Oracle, Microsoft SQL Server,
Sybase.
MYSQL is used as a database at the webserver and PHP is used to fetch data from
the database. Our application will communicate with the PHP page with necessary
parameters and PHP will contact MYSQL database and will fetch the result and
return the results
The database consists of a number of tables; some are fixed while some are created
dynamically.
In PHP you can use the mysqli_connect () function. All communication between
PHP and the MySQL database server takes place through this connection.
CHAPTER 3 Page 18 of 88
3.3 TECHNOLOGY/TOOLS
As the technological demands are increasing, the medical systems have been updated
with the new advanced technologies. However, there are still several challenges,
such as to carry the remotely located information and the remote connectivity issues,
mainly present in the PHC systems and then the cost is also a big issue while
updating the existing systems with the new developments.
Therefore, the cloud computing platform is one of the best solutions in the current
age to fight against the issues. It is based on the medical organizational specifications
and requirements for communication, including the security requirements, private
cloud computing environment is designed and modelled where the medical
information of pregnant women and children who are registered in the premises of
the PHC is accessed and monitored in real-time.
Data mining helps to discover hidden patterns, as well as descriptive, predictive, and
comprehensible models in all kinds of data. As a result, data mining can identify
patterns, relationships and models, which support predictive and decision-making
processes for diagnosis and treatment planning. The discovered models can be called
predictive models, which can be integrated in PHC as well as Government hospital
information systems that are able to decrease the time of decision-making.
Automatic medical diagnosis for providing First-aid in PHC tend to benefit from
collected datasets and decision support systems. This study proposes a method for
predicting the Maternal women's conditions regardless of their medical records. The
dataset comes from a Government Hospital information system, enlisting the
Symptoms, treatment for each maternal’s according to their health record.
CHAPTER 3 Page 19 of 88
3.3.3 MIT APP INVENTOR
3.3.4 XAMPP
XAMPP also provides PhpMyAdmin which gives a GUI tool for managing your
MySQL databases.it can also be used in installing XAMPP for Windows or MAC.
It is basically a local host or a local server. This local server works on desktop or
laptop computers. The use of XAMPP is to test the clients or website before
uploading it to the remote web server. This XAMPP server software gives you the
suitable environment for testing MYSQL, PHP, Apache and Perl on the local
computer.
CHAPTER 3 Page 20 of 88
CHAPTER 4
PROJECT DESCRIPTION
4.1 INTRODUCTION
In Tamilnadu, thousands of children and maternal women suffer from one or more
forms of malnutrition. Primary health nurses could not provide the necessary service
to them. Even today, the maternal mortality rate (MMR) and the number of stillbirths
in Tamilnadu are higher.
The proposed System will facilitate monitoring of universal access to maternal and
child health services by all pregnant women and children. It is designed to capture
and track all pregnant women and all new born up to five years of age. The system
aims to reduce the MMR by digitalizing the work of the Village Health Nurse in the
rural areas, by enabling them to monitor the pregnancies of the women in their area
with the help of cloud computing technologies, data mining and mobile application.
This application can be easily used by any health worker in Tamilnadu.
The Rural PHC’s are managed by the VHN or Medical Officer. Most pregnant
women receive insufficient or no prenatal care or no antenatal care during
pregnancy. The lack of transportation makes it difficult for pregnant women. Most
of the PHC in rural areas are maintaining their records manually that leads to lack of
fast retrieval of the previous status and making decisions to provide first-aid will be
very difficult during the time of emergency situation. Both pregnant women and
children have to carry the records with them physically on each visit to the Medical
officer and there is a possibility of losing the data. Hence, retrieval of data in proper
order is difficult.
CHAPTER 4 Page 21 of 88
4.3 PROJECT OBJECTIVES
1. To reduce Maternal Mortality Rate (MMR) and Child Mortality Rate in Rural
Areas
2. To enhance the capability of the maternal to look after the normal health and
nutritional needs of the child in the age group of below 5 years through proper
nutrition and health education.
3. To reduce the time spent on manual paperwork, increase the accuracy and
availability of village healthcare data in an electronic format, and thus
improve the effectiveness of the service
CHAPTER 4 Page 22 of 88
4.5 CHALLENGES
1. There were data privacy and confidentiality issues that were not discussed
openly by the staff officials.
5. The system needs to be matured in terms of planning for strategic health needs
assessment and sustainability issues.
6. There was a lack of evidence about the benefits of e-health systems; this lack
of evidence made the experts hesitant to develop focused policies for the
efficient use of systems.
7. Also identified was the need to develop systematic ways to make the
government-level officials aware of the key benefits of the application and its
requirements.
8. Poor network bandwidth and electric power interruption at the data centre
CHAPTER 4 Page 23 of 88
4.6 ALGORITHMS IMPLEMENTED
The decision tree forms a predictive model which maps the input to a predicted value
based on the input’s attributes. Each interior node in the tree corresponds to an
attribute and each arc from a parent to a child node represents a possible value or a
set of values of that attribute. The construction of the tree begins with a root node
and the input set.
An attribute is assigned to the root and arcs and sub-nodes for each set of values are
created. The input set is then split by the values so that each child node receives only
the part of the input set which matches the attribute value as specified by the arc to
the child node. The process then repeats itself recursively for each child until
splitting is no longer feasible. Either a single classification (predicted value) can be
applied to each element in the divided set, or some other threshold is reached.
Decision trees can be used for different recommender systems approaches.
4.6.1.1 ALGORITHM
1) Assign all training instances to the root of the tree. Set current node to root
node.
2) For each attribute
a. Partition all data instances at the node by the value of the attribute.
b. Compute the information gain ratio from the partitioning.
3) Identify features that result in the greatest information gain ratio. Set this
feature to be the splitting criterion at the current node.
a) If the best information gain ratio is 0, tag the current node as a leaf and
return.
4) Partition all instances according to the attribute value of the best feature.
5) Denote each partition as a child node of the current node.
CHAPTER 4 Page 24 of 88
6) For each child node:
a) If the child node is “pure” (has instances from only one class) tag it as a
leaf and return.
b) If not set the child node as the current node and recurse to step 2.
CHAPTER 4 Page 25 of 88
recommends the treatment plans of maternal1 which are Treatment A and Treatment
D to target maternal N.
4.6.2.1 ALGORITHM
for i= 0 to xarr.size {
meanX += xarr.elemetAt(i)
meanY += yarr.elemetAt(i) }
meanX /=xarr.size
CHAPTER 4 Page 26 of 88
meany /=yarr.size
return(sim)
4.6.3 EXAMPLE
IF Abdominal pain = yes AND Shoulder pain= yes AND vaginal bleeding = yes
AND Feeling dizzy = yes AND fever = no
means Drugs or surgery is used to remove the ectopic tissue so organs are not
damaged
CHAPTER 4 Page 27 of 88
CHAPTER 5
SYSTEM DESIGN
5.1 GENERAL
The system can involve all spheres of the medical care during the entire duration of
the pregnancy as well as the post-natal care. The medical officer or VHN from the
rural area refers the maternal women to GH during Emergency cases. The high
priority cases can be monitored in real time by the specialists and the treatment can
be imparted through the VHN. This also helps to maintain the Electronic Medical
History of the women as well as their children. Each and every child’s immunization
can also be tracked online. While this gives an insight on the health status of the
rural area, it also helps the census of the country.
Doctors are not available at the rural PHC at a moment’s notice. This system allows
the doctor to access Maternal details from the city and guide the VHN with the
procedures to be followed in times of need.
The frequency of check-up and dates are also updated into the system. Based on the
diagnosis of the problem, the maternal are categorized into groups and they are
assigned to systems that would manage each of the categories. Postnatal health
management includes preterm birth monitoring, organ development chart, bone
development chart and immunization of the child. The child is immunized to major
diseases.
CHAPTER 5 Page 28 of 88
5.2 SYSTEM ARCHITECTURE
1. PHC diagnoses the maternal and checks the medical condition. These reports
are then uploaded to the cloud through the network by VHN after being
authenticated.
4. After studying the case the GH reverts back with suggestions, treatment
procedures, schedule, and other details to the cloud.
CHAPTER 5 Page 29 of 88
Medical data is growing huge that each and every activity of the maternal is being
recorded and this maternal history can be used for the further prediction of the drugs
for the maternal whose is suffering from the similar problem.
When a new maternal is added to the database, the maternal’s medical history is
analysed and that maternal is categorized to the already existing groups. These
attributes will be compared with the new maternal symptoms. Training data sets are
created to identify the disease by using Decision Tree algorithm. Once disease is
diagnosed, the list of medicine available for that disease is analysed.
CHAPTER 5 Page 30 of 88
5.3 OVERALL FLOW DIAGRAM
CHAPTER 5 Page 31 of 88
CHAPTER 6
PROJECT IMPLEMENTATION
6.1.2 EXPLANATION
1. Admin part
2. Nurse part
CHAPTER 6 Page 32 of 88
1. ADMIN PART
After logging in the system as verified admin, she creates login credentials for
nurse, doctor etc. The admin will carry out Data preparation, Data transformation,
Feature extraction.
A. DATA PREPARATION:
The medications and illness data will be stored in the Database of the Doctor
dashboard. In order to build this system in real time, the datasets are taken
from the Thuvariman Primary Health Care, Madurai. For the real time
application, the healthcare data can be accessed from the cloud where the data
is getting updated every second. Initially the size of data was 120.
B. DATA TRANSFORMATION:
In this step, the dataset is explored and necessary data is selected and the
dataset is converted into machine understandable form.
C. FEATURE EXTRACTION:
Feature extraction is the process to reduce the size of data so as to only take
informative, non-redundant and relevant data.
2. NURSE PART
Nurse has to login with the username and password given to her by the admin
working at the Primary Health Care centre. The nurse will carry out maternal profile
generation, Prediction of health and immunization for infants.
CHAPTER 6 Page 33 of 88
A.MATERNAL PROFILE GENERATION:
During this stage, for every maternal and child, a profile is created which
contains various information. For every maternal, there will be a health record
documenting the maternal Clinical History (MCH). If the new maternal is
admitted, then the whole process starts from the beginning, i.e., from the
processing of data and the creation of a new maternal health record. In the
case of an existing maternal, the system updates the record as per
requirements.
B. PREDICTION OF HEALTH:
The system uses the set from and matches the symptoms already stored in the
GH database. It helps to determine possible causes and treatments.
C.IMMUNIZATION:
Doses of OPV-1, OPV-2, OPV-3 and measles are considered as the mandatory
vaccinations that are to be given within one year after birth.
6.1.3 ADVANTAGES
CHAPTER 6 Page 34 of 88
6.1.4 RETRIEVAL OF MATERNAL RECORD
The system will enable maternal medical records to be shared electronically with
GH, other PHC’s etc. But there are many disadvantages in usage of a maternal record
system which includes the Barcode system, Smart cards and ID cards. They are:
The PHC’s are committed in maintaining maternal privacy while sharing data to
improve the diagnosis and treatment of maternal, by introducing the technique of
finger print in the system.
CHAPTER 6 Page 35 of 88
The emergency data set such as her blood type, current trimester, any complications
and contact person information. It can be accessed using her finger in the emergency
medical situation when the maternal is unconscious
The advantages of the fingerprint medical retrieval system over other systems are:
CHAPTER 6 Page 36 of 88
6.2.2 EXPLANATION
The decision tree algorithm is used for training of the prediction model. When the
algorithm is applied, it generates a rule set based on the observed pattern of data. On
the basis of this rule set, the system training is done and the model is created.
Once the system training is done, our prediction model will be ready for using.
a. Entering Symptoms
b. Disease Prediction
c. Treatment
Entering Symptoms: The VHN takes the symptoms from the maternal women
which they are feeling at that moment and runs a data mining algorithm in the cloud
to detect the disease from which the user may be suffering.
Disease prediction: The predictive model predicts the disease a person might have
based on the user entered symptoms.
CHAPTER 6 Page 37 of 88
6.2.3 TECHNOLOGY
The decision tree forms a predictive model which maps the input to a predicted value
based on the input’s attributes. Each interior node in the tree corresponds to an
attribute and each arc from a parent to a child node represents a possible value or a
set of values of that attribute.
Pseudocode
root.recommendations←recommendation list(symptoms)
return root
else
Let Symptomsv be the subset of Symptoms that have the value v for A
return root
CHAPTER 6 Page 38 of 88
6.3 MOBILE APPLICATION DEVELOPMENT
6.3.2 EXPLANATION
VHN has to login with the username and password. VHN can view all the maternal
medical history. The VHN prepares an immunization requirement and follow-up
chart for each new-born registered. Thus, it also helps ensure the availability of
vaccine dosage at each institution.
At first registration, each woman will be allocated a unique username (or registration
number) and a temporary password, which she can change later.
CHAPTER 6 Page 39 of 88
After registration, women will start using smart applications. Every pregnant woman
has her own profile in the Smart application, displaying the medical records.
6.3.3 ADVANTAGES
CHAPTER 6 Page 40 of 88
CHAPTER 7
CHAPTER 7 Page 41 of 88
After logging in the system as verified admin, the admin will carry out new listings
of doctors, nurse through that panel and the list can be modified or deleted. Admin
will prepare the Dataset for pre-processing.
The access right of each user is assigned according to his/ her roles and duties in
delivering maternal care.
CHAPTER 7 Page 42 of 88
Each user should only use his/ her own account to access the system. To safeguard
data privacy, all accesses by users to system will be logged and are subject to audit
and inspection.
They record on the electronic health record about personal story, treatments,
response and progress toward health care for monitoring. Obtain information about
past and ongoing treatments and medications and the results to ensure the best care
is provided.
CHAPTER 7 Page 43 of 88
Fig 7.6 LIST OF MATERNAL’S AND INFANTS
Applying simple passwords can allow entry to unauthorized user into the system.
Maternal information are vital keys to administering proper care thus an incomplete
or wrong Maternal health records can lead to wrong medication. The use of
biometric technology in health applications has great benefits over other means of
authentication methods.
CHAPTER 7 Page 44 of 88
Fig 7.8 RETRIEVAL OF INFORMATION
The system uses the set from and matches the symptoms already stored in the GH
database. It helps to determine possible causes and treatments.
CHAPTER 7 Page 45 of 88
First step is to Choose a symptom and answer simple questions using our application
to find a possible diagnosis for health issue.
The system contains some in built symptoms and also it provides a text field to enter
additional symptoms. These symptoms are used as key to search and sort in the GH
database.
CHAPTER 7 Page 46 of 88
7.3 MOBILE APPLICATION DEVELOPMENT
mHealth may improve the ability of healthcare providers in rural areas to provide
care and to improve access to care. It is also used for disease surveillance, treatment
support, epidemic outbreak tracking and chronic disease management.
On logging in the system as nurse, she can carry out entering Symptoms, disease
Prediction and Precautions.
There will be two login pages containing one for VHN and other for maternal.
CHAPTER 7 Page 47 of 88
Fig 7.13 AREA-WISE MATERNAL INFORMATION
CHAPTER 7 Page 48 of 88
7.4 ANALYSIS AND INTERPRETATION OF RESULTS
Evaluation results
We used maternal’s in our dataset (pre-collected data) as test users (target maternal).
Before pre-processing, we had 100 maternal’s and 20 of them removed while data
processed. We have 80 maternal’s used in system and we tested all of these 80
maternal’s. For each of these tests maternal, we aimed to generate top-K
recommendation plans. We tried to determine K which is number of disease &
treatment generated empirically. The average number of disease & treatment used
per maternal is measured as 6.04 and so it is 6 approximately. As a logical
interpretation, we picked two close numbers to this average number 6 as K which
are 5 and 10. Hence, we evaluated this system for both K=5 and K=10.
CHAPTER 7 Page 49 of 88
CHAPTER 8
SOURCE CODE
DISEASE PREDICT.PHP
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-
fit=no">
<title>Welcome to Public Health Care center</title>
<link rel="shortcut icon" href="../assets/images/fav.jpg">
<link rel="stylesheet" href="../assets/css/bootstrap.min.css">
<link rel="stylesheet" href="../assets/css/fontawsom-all.min.css">
<link rel="stylesheet" href="../assets/css/animate.css">
<link rel="stylesheet" type="text/css" href="../assets/css/style.css" />
</head>
<body>
CHAPTER 8 Page 50 of 88
</ul>
</div>
<div class="col-lg-5 d-none d-lg-block right-item">
<ul>
<li><a><i class="fab fa-github"></i></a></li>
<li><a><i class="fab fa-google-plus-g"></i></a></li>
<li> <a><i class="fab fa-pinterest-p"></i></a></li>
<li><a><i class="fab fa-twitter"></i></a></li>
<li> <a><i class="fab fa-facebook-f"></i></a></li>
</ul>
</div>
</div>
</div>
</div>
<div id="nav-head" class="header-nav">
<div class="container">
<div class="row">
<div class="col-lg-2 col-md-3 no-padding col-sm-12 nav-img">
<img src="../assets/images/logo.jpg" alt="">
<a data-toggle="collapse" data-target="#menu" href="#menu" ><i class="fas
d-block d-md-none small-menu fa-bars"></i></a>
</div>
<?php
include_once "../nurse_menu1.php";
?>
<!--
<div class="col-sm-2 d-none d-lg-block appoint">
<button class="btn btn-info">Book an Appointment</button>
</div>
CHAPTER 8 Page 51 of 88
-->
</div>
</div>
</div>
</header>
<!-- ################# With Medical Starts Here#######################-
-->
<section class="with-medical" >
<div class="container" style="margin-top: 100px;min-height: 400px">
<div class="row">
<div class="col-lg-12">
<h2>Disease Prediction Dashboard</h2>
<table>
<tr><td><label>Symptom</label></td><td><select id="symptom"
name="symptom" class="form-control"></select></td></tr>
<tr><td colspan="2" align="center"><input type="button" id="btnPredict"
name="btnPredict" onclick="bindResult1()" value="Submit" class="btn btn-
primary"> </td></tr>
</table>
<table id="resultTAB" name="resultTAB">
<table>
<tr>
<td><label>Diagnosis</label> </td>
<td>
<textarea name="diagnosis" id="diagnosis" cols='75' rows='10'
readonly="true"></textarea>
</td>
</tr>
<tr>
CHAPTER 8 Page 52 of 88
<td><label>Treatment</label> </td>
<td>
<textarea name="treatment" id="treatment" cols='75' rows='10'
readonly="true"></textarea>
</td>
</tr>
</table>
<p><div id='resultDIV' name='resultDIV'></div></p>
</div>
</div>
</div>
</section>
<!-- ################# Key Features Starts Here#######################---
>
<script src="../assets/js/jquery-3.2.1.min.js"></script>
<script src="../assets/js/bootstrap.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
//load_disease_data();
load_symptom_data()
});
function load_disease_data()
{
var action = "load_disease_data";
$.ajax({
url:"../action.php",
method:"POST",
data:{action:action},
success:function(data)
CHAPTER 8 Page 53 of 88
{
$('#disease').html(data);
}
});
}
function load_symptom_data()
{
// var disease = $("#disease").val();
var action = "load_symptom_data";
$.ajax({
url:"../action.php",
method:"POST",
data:{action:action},
success:function(data)
{
$('#symptom').html(data);
}
});
}
function bindResult()
{
var disease = $("#disease").val();
var symptom = $("#symptom").val();
var action = "bind_medical_result";
$.ajax({
url:"../action.php",
method:"POST",
data:{disease:disease, symptom:symptom, action:action},
success:function(data)
CHAPTER 8 Page 54 of 88
{
$('#resultDIV').html(data);
}
});
}
function bindResult1()
{
var symptom = $("#symptom").val();
alert(symptom);
var action = "new_bind_medical_result";
$.ajax({
url:"../action.php",
method:"POST",
data:{symptom:symptom, action:action},
dataType:"json",
success:function(data)
{
$('#diagnosis').val(data.diagnosis);
$('#treatment').val(data.treatment);
//document.write("<style>#resultTAB.visibility:visible;</style>");
}
});
}
</script>
</body>
</html>
ACTION.PHP
<?php
ob_start();
CHAPTER 8 Page 55 of 88
session_start();
ob_get_flush();
$object = new Crud();
if(isset($_POST["action"]))
{
//load_area_wise_maternal
if($_POST["action"] == "load_area_wise_maternal")
{
$qry1="select * from maternal_master where
phc_area='".$_SESSION['phc_area']."'";
//echo $qry1;
$count1 = $object->record_count($qry1);
if ($count1 > 0)
{
$res1 = $object->multiple_record_return($qry1);
echo "<br><div class='page-header'> <h3>Area-wise Maternal
Information</h3> </div> ";
echo "<br><table border='1' style='border-collapse:separate;border-
spacing:5px 5px;'><tr><th>PHC ID</th><th>Maternal Name</th><th>Father
Name</th><th>Gender</th><th>Address</th><th>Mobile Number</th></tr>";
foreach ($res1 as $field)
{
$user_img = "../upload/" . $field['photo1'];
echo "<tr><td>$field[phc_id]</td>
</td><td>$field[pat_name]</td><td>$field[fat_name]</td><td>$field[gender]</td
><td>$field[addr]</td><td>$field[mobile1]</td>
<td><input type=button id='$field[phc_id]' name='$field[phc_id]' value='Know
Health History' onclick='bindHistory(this.id)' class='btn btn-primary'></td>
CHAPTER 8 Page 56 of 88
</tr>";
}
echo "</table>";
}
else
{
echo "<h3>No Record Found </h3>";
}
}
//bind_maternal_health_history
if($_POST["action"] == "bind_maternal_health_history")
{
$phc_pat_id = mysqli_real_escape_string($object->connect, $_POST["phc_no"]);
//$brand_name = mysqli_real_escape_string($object->connect,
$_POST["brand_name"]);
echo "<br><div class='page-header'> <h3>Medical History</h3> </div> ";
$sql2="select * from maternal_health_history where phc_id='$phc_pat_id'";
//echo $sql2;
$count1 = $object->record_count($sql2);
if ($count1 > 0)
{
$res2 = $object->multiple_record_return($sql2);
echo "<table border='1'><tr><th>Complaint</th><th>Symptom</th><th>Doctor
Comment</th><th>Visit Date</th><th>PHC Center</th></tr>";
foreach ($res2 as $field)
{
echo
"<tr><td>$field[complaint]</td><td>$field[symptom]</td><td>$field[doctor_sug
gest]</td><td>$field[visit_date]</td><td>$field[phc_name]</td></tr>";
CHAPTER 8 Page 57 of 88
}
echo "</table>";
echo "<br><p><a href='../phc_nurse_maternal_info' class='btn btn-
primary'>BACK</a></p>";
}
else
{
echo "<h2>No Record Found </h2>";
}
}
//phc_maternal_history_review
if($_POST["action"] == "phc_maternal_history_review")
{
$phc_pat_id = mysqli_real_escape_string($object->connect,
$_POST["phc_pat_id"]);
$sql="select * from maternal_master where phc_id='".$phc_pat_id."'";
$count1 = $object->record_count($sql);
if ($count1 > 0)
{
$res1 = $object->multiple_record_return($sql);
echo "<br><div class='page-header'> <h3>Maternal Personal Information</h3>
</div> ";
echo "<br><table border='1' style='border-collapse:separate;border-
spacing:5px 5px;'><tr><th>PHC ID</th><th>Maternal Name</th><th>Father
Name</th><th>Gender</th><th>Address</th><th>Mobile Number</th></tr>";
foreach ($res1 as $field)
{
$user_img = "../upload/" . $field['photo1'];
echo "<tr><td>$phc_pat_id</td>
CHAPTER 8 Page 58 of 88
</td><td>$field[pat_name]</td><td>$field[fat_name]</td><td>$field[gender]</td
><td>$field[addr]</td><td>$field[mobile1]</td></tr>";
}
echo "</table>";
echo "<br><div class='page-header'> <h3>Medical History</h3> </div> ";
$sql2="select * from maternal_health_history where phc_id='$phc_pat_id'";
//echo $sql2;
$res2 = $object->multiple_record_return($sql2);
echo "<table
border='1'><tr><th>Complaint</th><th>Symptom</th><th>Doctor
Comment</th><th>Visit Date</th><th>PHC Center</th></tr>";
foreach ($res2 as $field)
{
echo
"<tr><td>$field[complaint]</td><td>$field[symptom]</td><td>$field[doctor_sug
gest]</td><td>$field[visit_date]</td><td>$field[phc_name]</td></tr>";
}
echo "</table>";
}
else
{
echo "<h2>No Record Found </h2>";
}
}
if($_POST["action"] == "dynamic_item_bind")
{
$colname = mysqli_real_escape_string($object->connect, $_POST["category"]);
CHAPTER 8 Page 59 of 88
//$brand_name = mysqli_real_escape_string($object->connect,
$_POST["brand_name"]);
CHAPTER 8 Page 60 of 88
}
//new_medical_Insert
if($_POST["action"] == "new_medical_Insert")
{
$age = mysqli_real_escape_string($object->connect, $_POST["age"]);
$hb = mysqli_real_escape_string($object->connect, $_POST["hb"]);
$bmi = mysqli_real_escape_string($object->connect, $_POST["bmi"]);
$sys_bp = mysqli_real_escape_string($object->connect, $_POST["sys_bp"]);
$dia_bp = mysqli_real_escape_string($object->connect, $_POST["dia_bp"]);
$pro_mg = mysqli_real_escape_string($object->connect, $_POST["pro_mg"]);
$glucose = mysqli_real_escape_string($object->connect, $_POST["glucose"]);
$blur_vision = mysqli_real_escape_string($object->connect,
$_POST["blur_vision"]);
$unusual_thirst = mysqli_real_escape_string($object->connect,
$_POST["unusual_thirst"]);
$dizziness = mysqli_real_escape_string($object->connect, $_POST["dizziness"]);
$swelling = mysqli_real_escape_string($object->connect, $_POST["swelling"]);
$disease = mysqli_real_escape_string($object->connect, $_POST["disease"]);
$treatment = mysqli_real_escape_string($object->connect, $_POST["treatment"]);
$query = "
INSERT INTO medical_dataset
(age,hb,bmi,sys_bp,dia_bp,pro_mg,glucose,blur_vision,unusual_thirst,dizziness,s
welling,disease,treatment)
VALUES
('".$age."','".$hb."','".$bmi."','".$sys_bp."','".$dia_bp."','".$pro_mg."','".$glucose."','
".$blur_vision."','".$unusual_thirst."','".$dizziness."','".$swelling."','".$disease."','".
$treatment."')";
//echo $query;
$object->execute_query($query);
CHAPTER 8 Page 61 of 88
echo 'Data Inserted';
}
//new_medical_insert
if($_POST["action"] == "new_medical_Load")
{
$record_per_page = 5;
$page = '';
if(isset($_POST["page"]))
{
$page = $_POST["page"];
}
else
{
$page = 1;
}
$start_from = ($page - 1) * $record_per_page;
echo $object->get_data_new_medical_load_table("SELECT * FROM
medical_dataset ORDER BY id DESC LIMIT $start_from, $record_per_page");
echo '<br /><div align="center">';
echo $object->new_medical_make_pagination_link("SELECT * FROM
medical_dataset ORDER BY id", $record_per_page);
echo '</div><br />';
}
//new_medical_Fetch_Single_Data
if($_POST["action"] == "new_medical_Fetch_Single_Data")
{
$output = '';
$query = "SELECT * FROM medical_dataset WHERE id =
'".$_POST["user_id"]."'";
CHAPTER 8 Page 62 of 88
$result = $object->execute_query($query);
while($row = mysqli_fetch_array($result))
{
$output["age"] = $row['age'];
$output["hb"] = $row['hb'];
$output["bmi"] = $row['bmi'];
$output["sys_bp"] = $row['sys_bp'];
$output["dia_bp"] = $row['dia_bp'];
$output["pro_mg"] = $row['pro_mg'];
$output["glucose"] = $row['glucose'];
$output["blur_vision"] = $row['blur_vision'];
$output["unusual_thirst"] = $row['unusual_thirst'];
$output["dizziness"] = $row['dizziness'];
$output["swelling"] = $row['swelling'];
$output["disease"] = $row['disease'];
$output["treatment"] = $row['treatment'];
//$output["image"] = '<img src="upload/'.$row['image'].'" class="img-thumbnail"
width="50" height="35" />';
//$output["user_image"] = $row['image'];
}
echo json_encode($output);
}
if($_POST["action"] == "new_medical_Edit")
{
$age = mysqli_real_escape_string($object->connect, $_POST["age"]);
$hb = mysqli_real_escape_string($object->connect, $_POST["hb"]);
$bmi = mysqli_real_escape_string($object->connect, $_POST["bmi"]);
$sys_bp = mysqli_real_escape_string($object->connect, $_POST["sys_bp"]);
$dia_bp = mysqli_real_escape_string($object->connect, $_POST["dia_bp"]);
CHAPTER 8 Page 63 of 88
$pro_mg = mysqli_real_escape_string($object->connect, $_POST["pro_mg"]);
$glucose = mysqli_real_escape_string($object->connect, $_POST["glucose"]);
$blur_vision = mysqli_real_escape_string($object->connect,
$_POST["blur_vision"]);
$unusual_thirst = mysqli_real_escape_string($object->connect,
$_POST["unusual_thirst"]);
$dizziness = mysqli_real_escape_string($object->connect, $_POST["dizziness"]);
$swelling = mysqli_real_escape_string($object->connect, $_POST["swelling"]);
$disease = mysqli_real_escape_string($object->connect, $_POST["disease"]);
$treatment = mysqli_real_escape_string($object->connect, $_POST["treatment"]);
$query = "UPDATE medical_dataset SET
age='".$age."',hb='".$hb."',bmi='".$bmi."',sys_bp='".$sys_bp."',dia_bp='".$dia_bp."
',pro_mg='".$pro_mg."',glucose='".$glucose."',blur_vision='".$blur_vision."',unusu
al_thirst='".$unusual_thirst."',dizziness='".$dizziness."',swelling='".$swelling."',dis
ease='".$disease."',treatment='".$treatment."' WHERE id =
'".$_POST["user_id"]."'";
$object->execute_query($query);
echo 'Data Updated';
//echo $query;
}
if($_POST["action"] == "new_medical_Delete")
{
$query = "DELETE FROM medical_dataset WHERE id =
'".$_POST["user_id"]."'";
$object->execute_query($query);
echo "Data Deleted";
}
//USER_LOGIN
if($_POST["action"] == "USER_LOGIN")
CHAPTER 8 Page 64 of 88
{
$user1 = mysqli_real_escape_string($object->connect, $_POST["user1"]);
$pass1 = mysqli_real_escape_string($object->connect, $_POST["pass1"]);
$user_type = mysqli_real_escape_string($object->connect,
$_POST["user_type"]);
if ($user_type=="DOCTOR")
{
$query="select * from employ where login1='$user1' and pass1='$pass1' and
design='Doctor'";
}
else if ($user_type=="NURSE")
{
$query="select * from employ where login1='$user1' and pass1='$pass1' and
design='Nurse'";
}
//echo $query;
$count1 = $object->record_count($query);
if ($count1>0)
{
$_SESSION['usertype']=$user_type;
$_SESSION['username']=$user1;
$area_name = $object->single_record_return("select phc_area from employ
where login1='$user1' and pass1='$pass1' and design='Nurse'");
$_SESSION['phc_area'] = $area_name;
echo $user_type;
}
else
{
echo "error";
CHAPTER 8 Page 65 of 88
}
}
if($_POST["action"] == "medical_Load")
{
$record_per_page = 5;
$page = '';
if(isset($_POST["page"]))
{
$page = $_POST["page"];
}
else
{
$page = 1;
}
$start_from = ($page - 1) * $record_per_page;
echo $object->get_data_medical_load_table("SELECT * FROM medical_data
ORDER BY id DESC LIMIT $start_from, $record_per_page");
echo '<br /><div align="center">';
echo $object->medical_make_pagination_link("SELECT * FROM medical_data
ORDER BY id", $record_per_page);
echo '</div><br />';
}
//emp_Insert
if($_POST["action"] == "medical_Insert")
{
$disease = mysqli_real_escape_string($object->connect, $_POST["disease"]);
$symptom = mysqli_real_escape_string($object->connect, $_POST["symptom"]);
$diagnosis = mysqli_real_escape_string($object->connect, $_POST["diagnosis"]);
$treatment = mysqli_real_escape_string($object->connect, $_POST["treatment"]);
CHAPTER 8 Page 66 of 88
$query = "
INSERT INTO medical_data
(disease_name,symptom,diagnosis,treatment)
VALUES ('".$disease."','".$symptom."','".$diagnosis."','".$treatment."')";
//echo $query;
$object->execute_query($query);
echo 'Data Inserted';
}
//employ_Fetch_Single_Data
if($_POST["action"] == "medical_Fetch_Single_Data")
{
$output = '';
$query = "SELECT * FROM medical_data WHERE id = '".$_POST["user_id"]."'";
$result = $object->execute_query($query);
while($row = mysqli_fetch_array($result))
{
$output["disease_name"] = $row['disease_name'];
$output["symptom"] = $row['symptom'];
$output["diagnosis"] = $row['diagnosis'];
$output["treatment"] = $row['treatment'];
}
echo json_encode($output);
}
if($_POST["action"] == "medical_Edit")
{
$disease = mysqli_real_escape_string($object->connect, $_POST["disease"]);
$symptom = mysqli_real_escape_string($object->connect, $_POST["symptom"]);
$diagnosis = mysqli_real_escape_string($object->connect, $_POST["diagnosis"]);
$treatment = mysqli_real_escape_string($object->connect, $_POST["treatment"]);
CHAPTER 8 Page 67 of 88
$query = "UPDATE medical_data SET disease_name =
'".$disease."',symptom='".$symptom."',diagnosis='".$diagnosis."',treatment='".$tre
atment."' WHERE id = '".$_POST["user_id"]."'";
$object->execute_query($query);
echo 'Data Updated';
//echo $query;
}
if($_POST["action"] == "medical_Delete")
{
$query = "DELETE FROM medical_data WHERE id = '".$_POST["user_id"]."'";
$object->execute_query($query);
echo "Data Deleted";
}
//load_disease_data
if($_POST["action"] == "load_disease_data")
{
$res1 = $object->multiple_record_return("select * from disease");
echo "<option value='Choose'>Choose</option>";
foreach ($res1 as $field)
{
$login1 = $field['disease_name'];
echo "<option value='$login1'>$login1</option>";
}
}
//load_symptom_data
if($_POST["action"] == "load_symptom_data")
{
$res1 = $object->multiple_record_return("select * from medical_data");
echo "<option value='Choose'>Choose</option>";
CHAPTER 8 Page 68 of 88
foreach ($res1 as $field)
{
$login1 = $field['symptom'];
echo "<option value='$login1'>$login1</option>";
}
}
//bind_medical_result
if($_POST["action"] == "bind_medical_result")
{
$disease = mysqli_real_escape_string($object->connect, $_POST["disease"]);
$symptom = mysqli_real_escape_string($object->connect, $_POST["symptom"]);
$qry1="select * from medical_data where disease_name='".$disease."' and
symptom='".$symptom."'";
$count1 = $object->record_count($qry1);
if ($count1 > 0)
{
echo "<table border='1'>";
$res1 = $object->multiple_record_return($qry1);
foreach ($res1 as $field)
{
echo "<tr><td>Diagnosis</td><td>$field[diagnosis]</td></tr>";
echo "<tr><td>treatment</td><td>$field[treatment]</td></tr>";
}
echo "</table>";
}
else
{
echo "<h3>No Record</h3>";
}
CHAPTER 8 Page 69 of 88
}
//load_maternal_result
if($_POST["action"] == "load_maternal_result")
{
echo "<h4>Prediction Result</h4>";
$sql="select * from predict_result";
$res1 = $object->multiple_record_return($sql);
echo "<table><tr><th>Disease</th><th>Treatment</th></tr>";
foreach ($res1 as $field)
{
echo "<tr><td>$field[disease]</td><td>$field[treatment]</td></tr>";
}
echo "</table>";
}
//new_medical_bind_result
if($_POST["action"] == "new_medical_bind_result")
{
// data:{age:age, hb:hb, bmi:bmi, sys_bp:sys_bp, dia_bp:dia_bp, pro_mg:pro_mg,
glucose:glucose, blur_vision:blur_vision, unusual_thirst:unusual_thirst,
dizziness:dizziness, swelling:swelling, action:action},
$age = mysqli_real_escape_string($object->connect, $_POST["age"]);
$hb = mysqli_real_escape_string($object->connect, $_POST["hb"]);
$bmi = mysqli_real_escape_string($object->connect, $_POST["bmi"]);
$sys_bp = mysqli_real_escape_string($object->connect, $_POST["sys_bp"]);
$dia_bp = mysqli_real_escape_string($object->connect, $_POST["dia_bp"]);
$pro_mg = mysqli_real_escape_string($object->connect, $_POST["pro_mg"]);
$glucose = mysqli_real_escape_string($object->connect, $_POST["glucose"]);
$blur_vision = mysqli_real_escape_string($object->connect,
$_POST["blur_vision"]);
CHAPTER 8 Page 70 of 88
$unusual_thirst = mysqli_real_escape_string($object->connect,
$_POST["unusual_thirst"]);
$dizziness = mysqli_real_escape_string($object->connect, $_POST["dizziness"]);
$swelling = mysqli_real_escape_string($object->connect, $_POST["swelling"]);
$output = '';
$query="select * from medical_dataset where age='".$age."' and hb='".$hb."' and
bmi='".$bmi."' and sys_bp='".$sys_bp."' and dia_bp='".$dia_bp."' and
pro_mg='".$pro_mg."' and glucose='".$glucose."' and blur_vision='".$blur_vision."'
and unusual_thirst='".$unusual_thirst."' and dizziness='".$dizziness."' and
swelling='".$swelling."'";
//echo $query;
$count1 = $object->record_count($query);
if ($count1>0)
{
$qry5="delete from predict_result";
$object->execute_query($qry5);
echo "<br><h4>Predict Result</h4><br>";
// $result = $object->execute_query($query);
$res1 = $object->multiple_record_return($query);
echo "<table border='1'>";
foreach ($res1 as $field) {
$disease = $field['disease'];
$treatment = $field['treatment'];
$qry5="insert into predict_result (disease,treatment) values
('".$disease."','".$treatment."')";
$res5 = $object->execute_query($qry5);
echo "<tr><td>Disease</td><td>$field[disease]</td></tr>";
echo "<tr><td>Treatment</td><td>$field[treatment]</td></tr>";
}
CHAPTER 8 Page 71 of 88
echo "</table>";
//echo "<p><a href='../predict_result/ class='btn btn-primary'>CLICK TO
REVIEW RESULT </a></p>";
/* while($row = mysqli_fetch_array($result))
{
$output["diagnosis"] = $row['diagnosis'];
$output["treatment"] = $row['treatment'];
}
echo json_encode($output);
*/
}
else
{
echo "<h2>No Result Found </h2>";
}
}
//new_bind_medical_result
if($_POST["action"] == "new_bind_medical_result")
{
$symptom = mysqli_real_escape_string($object->connect, $_POST["symptom"]);
$output = '';
$query="select * from medical_data where symptom='".$symptom."'";
$result = $object->execute_query($query);
while($row = mysqli_fetch_array($result))
{
$output["diagnosis"] = $row['diagnosis'];
$output["treatment"] = $row['treatment'];
}
echo json_encode($output);
CHAPTER 8 Page 72 of 88
}
//disease_Load
if($_POST["action"] == "disease_Load")
{
$record_per_page = 5;
$page = '';
if(isset($_POST["page"]))
{
$page = $_POST["page"];
}
else
{
$page = 1;
}
$start_from = ($page - 1) * $record_per_page;
echo $object->get_data_disease_load_table("SELECT * FROM disease ORDER
BY id DESC LIMIT $start_from, $record_per_page");
echo '<br /><div align="center">';
echo $object->disease_make_pagination_link("SELECT * FROM disease
ORDER BY id", $record_per_page);
echo '</div><br />';
}
//emp_Insert
if($_POST["action"] == "disease_Insert")
{
$disease_name = mysqli_real_escape_string($object->connect,
$_POST["disease_name"]);
$query="select * from disease where disease_name='$disease_name'";
$count1 = $object->record_count($query);
CHAPTER 8 Page 73 of 88
if ($count1>0)
{
echo "exists";
}
else
{
$query = "
INSERT INTO disease
(disease_name)
VALUES ('".$disease_name."')";
$object->execute_query($query);
echo 'Data Inserted';
}
}
if($_POST["action"] == "disease_Delete")
{
$query = "DELETE FROM disease WHERE id = '".$_POST["user_id"]."'";
$object->execute_query($query);
echo "Data Deleted";
}
//ADMIN_LOGIN
if($_POST["action"] == "ADMIN_LOGIN")
{
$user1 = mysqli_real_escape_string($object->connect, $_POST["user1"]);
$pass1 = mysqli_real_escape_string($object->connect, $_POST["pass1"]);
$query="select * from admin where user1='$user1' and pass1='$pass1'";
//echo $query;
$count1 = $object->record_count($query);
if ($count1>0)
CHAPTER 8 Page 74 of 88
{
$_SESSION['usertype']="ADMINISTRATOR";
$_SESSION['username']=$user1;
echo "admin";
}
else
{
echo "error";
}
}
//phc_maternal_Load
if($_POST["action"] == "phc_maternal_Load")
{
$record_per_page = 5;
$page = '';
if(isset($_POST["page"]))
{
$page = $_POST["page"];
}
else
{
$page = 1;
}
$start_from = ($page - 1) * $record_per_page;
echo $object->get_data_phc_maternal_load_table("SELECT * FROM
maternal_master ORDER BY id DESC LIMIT $start_from, $record_per_page");
echo '<br /><div align="center">';
CHAPTER 8 Page 75 of 88
echo $object->phc_maternal_make_pagination_link("SELECT * FROM
maternal_master ORDER BY id", $record_per_page);
echo '</div><br />';
}
//phc_maternal_Delete
if($_POST["action"] == "phc_maternal_Delete")
{
$phc_id = $object->single_record_return("select phc_id from maternal_master
where id = ".$_POST["user_id"]."");
$query = "DELETE FROM maternal_master WHERE id =
'".$_POST["user_id"]."'";
echo $query;
$object->execute_query($query);
$query = "DELETE FROM maternal_child WHERE phc_id = '".$phc_id."'";
$object->execute_query($query);
$query = "DELETE FROM maternal_health_history WHERE phc_id =
'".$phc_id."'";
$object->execute_query($query);
echo "Data Deleted";
}
?>
CHAPTER 8 Page 76 of 88
CHAPTER 9
OUTCOMES
1. Helping the women who are out of PHC services during pregnancy
2. As doctors are insufficient in the rural areas, VHN can monitor them under
the supervision of the proposed system.
4. Monitoring the health position of the rural pregnant woman as they could not
face any complex condition that leads them into death.
5. As all the women are not so literate to read and write in the application, voice-
based messaging and audio-based facility is provided.
6. They can notice priory through the systems analysis if any irregular condition
arises. So, they can move for the GH or PHC for the betterment of the maternal
and child. As a result, maternal and baby could be saved.
7. Gynaecological department of any GH can use the system and the system
could be merged with main i.e. national health care system in future. So, all
the doctors can see the information.
CHAPTER 9 Page 77 of 88
9.1 COMPARISON OF DEVELOPED SYSTEM WITH CURRENT
SYSTEM
CHAPTER 9 Page 78 of 88
CHAPTER 10
CONCLUSION
In Tamilnadu, the information of the medical records of both maternal and children
was recorded manually on different sets of registers at each level. This setup resulted
in information duplicity, and retrieval of information over time became difficult
because of degradation of the paper registers.
The proposed system would meet the requirements as it monitors the health of the
mother and child in all angles and would be able to address the criticality of any
situation. It also helps easy access by urban doctors through cloud computing to
provide better knowledge and conclusion on the maternal condition. This intensive
tracking at both prenatal and postnatal conditions will contribute to the decrease in
child mortality rate in rural areas. The most important feature of this solution is that
the PHC now has complete information on pregnant women and children that
previously was not available.
The model of this application can easily provide the proper facilities of delivering
nutrition messages to mothers by VHN. The primary aim of the current development
was to discover high yield interventions that will help the society optimize cost of
operations, improve efficiency, and ultimately, save lives.
The data mining Algorithms involve entering side effects in the System, and
recommending medication. The application takes the contribution of different
manifestations from the Maternal women, does the examination of the entered side
effects, and gives a solution.
CHAPTER 10 Page 79 of 88
10.1 FUTURE ENHANCEMENT
Future work is to done to improve the accuracy of prediction by using soft computing
techniques and to create a powerful tool to assist physicians in their decision making
for the prediction of maternal health.
CHAPTER 10 Page 80 of 88
CHAPTER 11
REFERENCES
[1] Sridhar Amirneni, Siddhitha Sundari B. Surya Ravindran, “Post and Prenatal
Tracking in Rural Areas using Cloud Computing and ICT”, Institute of
Electrical and Electronics Engineering (IEEE), 2016.
[3] Feng Xue-yuan, Li Peng, Qiao Pei-li, “Computer Aided Diagnosis Based on
K-means Collaborative Filtering Algorithm”, International Journal of
Hybrid Information Technology, Volume 9, No.4, pp. 59-68, 2016.
[4] Rujuta Kambli, Ravi Yadav, Suraj Nikam, Tejas Shetye, “Secure Healthcare
for maternal's Using Cloud Computing”, International Journal of Science
and Research (IJSR), Volume 5 Issue 4, ISSN 2319-7064, April 2016.
[5] Alaa Saleh, Mohammad Moayad Mansour, Nizar Zarka, “Mobile Healthcare
System”, Institute of Electrical and Electronics Engineering (IEEE), June
2016.
CHAPTER 11 Page 81 of 88
[6] Jaspreet Singh Phul, Sonia Vatta,” Diagnose and Predict Diabetic Heart
Diseases Using Data Mining Classification Techniques”, International
Journal of Advanced Research in Science and Engineering, Volume: 05,
Issue: 11, ISSN: 2319-8354, November 2016.
[7] Ajay Jangra, Niharika Singh, Upasana Lakhina, “Mobile Healthcare Cloud
as a Service”, International Journal of Scientific & Engineering Research,
Volume 7, Issue 12, ISSN 2229-5518, December-2016.
[9] Kauser Ahmed P, “Analysis of Data Mining Tools for Disease Prediction”,
Journal of Pharmaceutical Science and Research Volume 9(10), 1886-1888,
ISSN: 0975-1459,2017.
CHAPTER 11 Page 82 of 88
[12] Anagha Joshi, Mrunal Joshi, Shrutika Ponde, Uzma Maniyar, “Data Analysis
Tool for Rural Area Hospitals to Identify and Predict Malnourished
Children”, Vishwakarma Journal of Engineering Research
Volume 1 Issue 1, ISSN: 2456-8465, March 2017.
[13] Amol Arora, Himdeep Bohra, Piyush Gaikwad, Rushabh Bhand, Manisha R
Patil,” Health Prediction and Medical Diagnosis using Naive Bayes”,
International Journal of Advanced Research in Computer and Communication
Engineering, Volume 6, Issue 4, ISSN 2278-1021, April 2017.
[14] Robin Humne,” Mobile Application for Health Prediction Using Data
Mining and Tracking Data for Health Monitoring”, International Journal of
Advanced Research in Computer Engineering & Technology (IJARCET)
Volume 6, Issue 4, ISSN: 2278 – 1323, April 2017.
CHAPTER 11 Page 83 of 88
[18] Albar M. Vasi, Shratik J. Mishra, Vinay S. Menon, Prof. K. Jayamalini,
“General Disease Prediction System”, International Research Journal of
Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 05 Issue:
03, March 2018.
[19] Ali Nirabi, Shihab A. Hameed, “Mobile Cloud Computing for Emergency
Healthcare Model: Framework”, International Conference on Computer and
Communication Engineering (ICCCE), September 2018.
[21] Chibuzor Onuah, Olaniyan, O.M Ogude Cyril, “Integrated Health Care
System Using Cloud Computing”, International Journal of Science and
Engineering Applications, Volume 8, Issue 4, ISSN:2319–7560,2019.
CHAPTER 11 Page 84 of 88
[24] K.Bala Sita Ramireddy, G.Pooja reddy, M.Trinath basu, K.Vasanthi, Ravi
Kumar Tenali,” Smart E-Health Prediction System Using Data Mining”,
International Journal of Innovative Technology and Exploring Engineering
(IJITEE), Volume-8 Issue-6, ISSN: 2278-3075, April 2019.
[26] Neha S. Mahamuni, Karan A. Jagtap, Rudra A. Godse, Smita S. Gunjal, Prof.
Suchita Wankhade,” Multiple Disease Prediction Using Different Machine
Learning Algorithms Comparatively”, International Journal of Advanced
Research in Computer and Communication Engineering Vol. 8, Issue 12,
December 2019.
[28] Krishna Kant Agrawal, Shivam Sharma, Shagun Tomar, Shubham Kumar,”
Disease Prediction for the Deprived using Machine Learning”, International
Journal of Innovative Technology and Exploring Engineering (IJITEE) ISSN:
2278-3075, Volume-9 Issue-7, May 2020.
CHAPTER 11 Page 85 of 88
Page 86 of 88
Page 87 of 88
Page 88 of 88