DISEASE PREDICTION SYSTEM DOCUMENTATIONFinal
DISEASE PREDICTION SYSTEM DOCUMENTATIONFinal
HAWASSA UNIVERSITY
COLLEGE OF ENGINEERING AND TECHNOLOGY
DEPARTMENT OF COMPUTER SCIENCE
By :
Amanu Seifu
Barnabas Mengesha
Selamawit Tamene
HAWASSA, ETHIOPIA
MARCH 2024
Approval letter
This Group Project entitled as “Disease Prediction System ” has been read and approved as meeting the
preliminary project requirements of the Department of Computer Science for partial fulfillment degree of
Bachelor of Science in Computer Science, University of Hawassa, Hawassa, Ethiopia.
Name Signature
1. Amanu Seifu _____________________
2. Barnabas Mengesha _____________________
3. Selamawit Tamene _____________________
I certify that this project satisfies all the requirements as a project for the degree of
Bachelor of Science in Computer science.
I
Acknowledgement
First and foremost, our heartfelt appreciation goes to the Almighty God for his mercy and grace which
accompanied us during the development of the proposal as well as the accomplishment of this project.
We would like to express our sincerest thanks to our advisor Mr. Ayele .for his constructive comment and support
in supervising this research proposal starting from title selection.
Furthermore, we would like to thank department of informatics faculty, Hawassa University for giving us the
chance to conduct this study.
Lastly but not least, we want to express our gratitude towards our family and fellow friends for encouragement
during our work on our proposal.
II
Table of contents
Approval Letter……………………………………………………………………………………………I
Acknowledgement…………………………………………………………………II
List of tables…….…………………………………………………………………V
List of figures………………………………………………………………………VI
List of acronyms/abbreviations……………………………………………………VII
Abstract……………………………………………………………………………VIII
CHAPER ONE……………………………………………………………………1
1 INTRODUCTION .........................................................................................1
1.1 Background ............................................................................................................................... 1
1.9FeasibilityStudy .....................................................................................................................…10
1.9.1 Technical Feasibility .............................................................................................................. 10
CHAPTER TWO……………………………………………………………….13
CHAPTER THREE………………………………………………………………..16
CHAPTER FOUR………………………………………………………………..41
4.SYSTEM DESIGN…………………………………………………………...41
4.1 Introduction ....................................................................................................................... ….41
IV
4.5.2 ER Diagram ....................................................................................................................... 52
4.5.4 Normalization……………………………………………………………………………………………………………………………….55
CHAPTER FIVE……………………………………………………………………………….59
REFFERENCE……………………………………………………………………………………………………………………………………………59
APPENDIX…………………………………………………………………………………………………………………………………………………62
LIST OF TABLES
V
TABLE -15--------------------------- Disease Table
List of figures
FIGURE-4....................................Activity Diagram
FIGURE-5....................................Class Diagram
FIGURE-12....................................Architectural Design
FIGURE-13....................................Logical View
FIGURE-14....................................Process View
FIGURE-15....................................Deployment View
FIGURE-16....................................ER Diagram
VI
List of acronyms/ abbreviations
PHP Hypertext Preprocessor
JS Java Script
CD Compact Disk
VII
Abstract
This paper presents a disease prediction system developed using PHP programming language. The system utilizes
machine learning algorithms to analyze patient data and predict the likelihood of developing certain diseases. The
system takes into consideration various factors such as medical history, lifestyle choices, and genetic
predisposition to generate accurate predictions. The user-friendly interface allows healthcare professionals to
input patient information and receive real-time predictions, enabling early detection and prevention of diseases.
The system demonstrates promising results in terms of accuracy and efficiency, making it a valuable tool for
improving healthcare outcomes.
VIII
CHAPTER ONE
1. INTRODUCTION
1.1Background of the study
It may have happened so many times when we or someone we know requires quick medical attention, but they
are not available for any reason. The Health Prediction System is an end-user support and online consultation
initiative that accurately predicts sickness based on patient input. The proposed technology enables users to
receive immediate guidance on their health issues via an intelligent health care system online. The smart health
prediction system is loaded with various symptoms as well as diseases/illnesses related with those systems. The
system allows users to discuss their symptoms and difficulties, and the system then evaluates the patient's
symptoms to look for any illnesses that may be related with them. Here are some sophisticated data mining
strategies for predicting the most likely sickness that could be related with the patient's symptoms.(1)
When someone is currently ill, they must visit a doctor, which is both time-consuming and expensive. It can also
be challenging for users who are not close to doctors and hospitals because the sickness cannot be detected. So, if
the preceding method can be done using automated software that saves time and money.(2)
Disease Predictor is a web-based application that predicts a user's disease based on their symptoms. Data sets
from numerous health-related websites were collected for the Disease Prediction system. illness Predictor will
allow consumers to predict the possibility of an illness based on the symptoms provided. People are constantly
eager to learn new things, especially as the internet becomes more popular by the day. When an issue arises,
individuals frequently want to search it up on the Internet. (2)
The suggested system's goal is to accurately forecast diseases based on users' or patients' symptoms and then
provide prescriptions or treatments, as well as nearby doctors with detailed information. (1)
Patients can seek medical assistance at any time and discuss their condition or health concerns to receive a quick
diagnosis. Doctors may gain more patients online. (1)
Page 1
1.2Statement of the problem
Nodaway’s in Health Industry there are various problems related to machines or devices which will give wrong
or unaccepted results, so to avoid those results and get the correct and desired results we are building a program
or project which will give the accurate predictions based on information provided by the user and also based on
the data that are available in that machine.[3]
The health industry in information yet and knowledge poor and this industry is very vast industry which has lot of
work to be done. So the problem here is that many people goes to hospitals or clinic to know how is their health
and how much they are improving in the given days, but they have to travel to get to know there answers and
sometimes the patients may or may not get the results based on various factors such as doctor might be on leave
or some whether problem so he might not have come to the hospital and many more reasons will be there so to
avoid all those reasons and confusion we are making a project which will help all those person's and all the
patients who are in need to know the condition of their health, and at sometimes if the person has been observing
few symptoms and he/she is not sure about the disease he/she is encountered with so this will lead to various
diseases in future.[4]
So, to avoid that and get to know the disease in early stages of the symptoms this disease prediction will help a lot
to the various people's ranging from children to teenagers to adults and also the senior citizens.
Page 2
1.3Objectives of the project
1.3.1 General Objective
The general objective of this project is to develop a web based disease prediction system that predicts the disease
of the patient using all their information’s and the symptoms. (4)
Page 4
1.6 Methodology
1.6.1 Data collection
Interview
This is one of the methods used for the collection of data through direct communication by raising different
questions for Doctors/specialists about health related issue and how the existing system works. It gives us the
chance to raising new issues, asking questions back, collecting qualitative data.
Observation
This is another type of method for collecting data and information in which could witness the actual events which
happen in the organization. To understand system process we collect information by physical observation existing
system. The existing system of most hospitals/clinics in Hawassa is a face to face questionnaire between the
patient and the doctor and has many paper and document that store information.
Document and websites
Data collection has been done from the internet and from written documents to identify the disease here the real
symptoms of the disease are collected i.e. no dummy values are entered. The symptoms of the disease are
collected from different health related websites and documents.
Page 5
System Architecture Design: Define the overall architecture of the disease prediction system, outlining
the components, modules, and technologies that will be used. Consider the integration of databases and
user interfaces.
User Interface Design: Design an intuitive and user-friendly interface for inputting data, visualizing
predictions, and accessing personalized health insights. Consider the usability and accessibility of the
interface for both healthcare professionals and individuals.
Data Security and Privacy Measures: Integrate security protocols and privacy measures to protect
sensitive health data, ensuring compliance with regulatory standards such as HIPAA and GDPR.
Testing and Validation: Conduct thorough testing to validate the predictive accuracy and performance
of the system. Use techniques such as cross-validation, precision-recall analysis, and receiver operating
characteristic (ROC) curves to assess the model's predictive capabilities.
Feedback and Iterative Refinement: Gather feedback from users and stakeholders to refine the system,
incorporating improvements based on real-world usage and evolving healthcare needs.
By following this methodology, the system analysis and design process ensures the development of a robust,
accurate, and user-centric disease prediction system that has the potential to positively impact proactive
healthcare and disease prevention strategies.
Page 8
Integrated Development Environments (IDEs); IDE provides essential features for writing, editing, and
managing the code, such as Visual Studio Code, PHP Storm, or Sublime Text. It also provides essential features
like syntax highlighting, code completion, and project navigation, offering a conducive environment for PHP
code development.
Web Server
Apache: A web server to host PHP web applications, providing the infrastructure to serve PHP scripts and
process HTTP requests.
It serves as the platform for hosting and executing PHP code, delivering web content and supporting the
execution of PHP scripts.
Database Management System
MySQL: Robust open-source relational database management systems suitable for storing and managing health
data.
Web Development Technologies
HTML, CSS, JavaScript: Fundamental web development languages for creating user interfaces and interactive
web applications.
1. Hardware Requirements
Laptop / PC: to perform all the activities concerning to the project.
Flash : to save and transfer file
Compact disk(CD):to backup files
Printer : to print the document
2. Software Requirements
Operating System: Support for common operating systems such as Windows, mac OS, or Linux,
depending on the development and deployment environment.
Development Tools: Installation of appropriate programming languages (e.g., PHP) and their respective
libraries, as well as integrated development environments (IDEs) for coding and testing.
Database Management System: Selection and installation of a suitable database system (e.g., MySQL)
for securely storing and managing health data.
Page 9
Web Development Tools: If the project includes web-based interfaces, installation of web development
tools, frameworks, and libraries for creating user-friendly interfaces.
Adobe photo shop :Edit photo
MS office: For writing documents and presentation
Web browser: To search different information at the time of doing the system and to run the proposed
system.
Visual studio (VS code): To write the code
XAMPP /WAMP server: To make database and make server
MySQL server : For the Database
38,045birr
Total
Page 11
Table 1.2: Schedule Breakdown
Dec 30 - Jan 06
Jan 23 - Feb 09
Dec 20 - 27
Feb 12 - 19
Jan 09 - 23
No Project phases
1 Introduction
2 Description of the
Existing System
3
System Features
4
System Design
5
Conclusion
Page 12
CHAPTER TWO
DESCRIPTION OF EXISTING SYSTEM
1. Personalized care: In-person discussions allow healthcare providers to build a personal rapport with patients,
leading to a better understanding of their individual health history and lifestyle, which can contribute to more
accurate disease prediction.
2. Non-verbal cues: Healthcare providers can observe the patient's body language, facial expressions, and other
non-verbal cues that may provide valuable information about their symptoms and overall health.
3. Immediate feedback: Healthcare providers can ask follow-up questions and seek immediate clarification from
patients, leading to a more comprehensive understanding of their symptoms and contributing factors.
4. Patient education: In-person discussions provide an opportunity for healthcare providers to educate patients
about disease symptoms, risk factors, and preventive measures, empowering them to take an active role in their
healthcare.
5. Cultural considerations: In-person interactions allow healthcare providers to consider cultural nuances and
sensitivities when discussing symptoms and potential disease prediction, leading to more culturally competent
care.
6. Enhanced empathy: Face-to-face communication allows healthcare providers to demonstrate empathy and
understanding, which can positively impact the patient's overall experience and willingness to share important
information.
Page 15
CHAPTER THREE
SYETEM FEATURES
3.1 Introduction
Functional Requirements
Functional requirement is the requirement describing the behavior of the system as it relates to the system’s functionality
that describes what the system does.
The functional requirements of a disease prediction system outline the specific capabilities and functionalities necessary for
the system to effectively analyze health data, develop predictive models, and provide valuable insights to support proactive
healthcare management. Here's an outline of the key functional requirements for a disease prediction system:
User Registration: Users (both medical professionals and individuals) should be able to create accounts and
provide necessary information.
Input Data Collection: The system should collect and store relevant data, including medical history, genetic
information, and lifestyle details.
Disease Prediction: Based on the input data, the system should predict the likelihood of various diseases and
provide risk assessment scores.
Personalized Recommendations: Generate personalized recommendations for preventive measures and
lifestyle modifications based on predicted risks.
Reporting and Visualization: Provide interactive reports and visualizations of disease predictions and risks for
users and healthcare professionals.
Non-Functional Requirements
Functional requirement describes what a software system should do, while Non-functional requirement is any requirement
which specifies how the system performs a certain function. It will describe how a system should work and what limits
there are on its functionality. Non-functional requirements for a disease prediction system encompass aspects related to
system performance, usability, security, and regulatory compliance. Here's an outline of the key non-functional
requirements for a disease prediction system:
Performance: The system should provide fast and reliable predictions, ensuring minimal delay in processing.
Security and Privacy: Ensure data security and privacy compliance in handling sensitive user health information.
Usability: The user interface should be intuitive, accessible, and user-friendly for both healthcare professionals
and individuals.
Page 16
Scalability: The system should be able to handle a large volume of user data and adapt to changing user bases.
Accuracy: The disease prediction model should exhibit high
Page 17
Figure 3.1: use case diagram
view symptoms
Register
Answer questions
<<include>> S
<<include>> users feedback
patient
<<include>>
Change password <<include>>
<<include>> Add symptoms
<<include>>
<<include>>
Change name LOGIN
<<include>>
<<iinclude>>
View disease
<<include>>
See previous result
<<include>> Admin
Admin checkup
LOGOUT
Change password
Add disease
Page 18
Description of use cases
Table 3.1: Description of Login use case
Use case ID SUC-001
Use Case Name Login
Actors User/patient, Admin
Description It allows users to access the system by entering their credentials.
Pre-condition The user must have a valid account in the system and must know their
username and password to access the system.
1.Users navigates to the login page
2.Users enters their user name and password
Normal Flow 3.System verifies the credentials against the database
4.If the credentials are correct, the user is granted access to the
system
Post-condition The user is successfully logged into the system and can access its
features and functionalities.
Alternative Flow 1. If the user enters incorrect credentials, they are prompted to re-enter
their username and password.
2.If the user forgets their password, they can click on a “Forgot
Password” link to reset it.
Page 19
Table 3.2: Description of Add symptoms use case
Use case ID SUC-002
Use Case Name Add Symptoms
Actors Admin
Description It allows administrators to input the new symptoms into the system for
analysis and inclusion in the system’s database.
Pre-condition The admin must be logged into the system and have the necessary
permissions to add new symptoms.
1. Admin navigates to the “Add symptoms” section of the system.
2. Admin inputs the new symptoms into the designated fields.
Normal Flow 3. Admin submits the new symptoms for inclusion in the system’s
database.
4. The system processes the new symptoms and adds them to the
database.
Post-condition The new symptoms are successfully added to the system’s database and
can be used for future disease prediction.
Alternative Flow If the admin is unsure about the classification or relevance of the new
symptoms, they can consult with a medical expert or other admins for
guidance before adding them to the database.
Page 20
Table 3.3: Description of register use case
Actors Patient
Description It represents the functionality for registering a new user or entity within
a system.
Post-condition A new user account is created and added to the system’s database and
the user gains access to the system using the newly created account
credentials.
Page 21
Alternative Flow If the user provided information is incomplete or contains error, the
system prompts the user to correct the issues before proceeding with
registration.
Post-condition The user is able to identify the most relatable disease based on the
symptoms he/she inserted.
Alternative Flow If the user cannot find a specific symptom, they may utilize the other
functionality within the system to insert the desired information.
Page 22
Table 3.5: Description of change password use case
Post-condition The user’s login credentials are updated with the new password,
enabling future access to the system using the modified credentials.
Alternative Flow If the user provided current password is incorrect or the new password
does not meet the specified requirements, the system prompts the user
to rectify the issue before proceeding with the password change
operation.
Page 23
Table 3.6: Description of give symptoms use case
Actors Patient
Description It involves a user inputting their symptoms into a diagnostic tool to
determine potential health issues and it will also analyze the symptoms
and provide possible causes or conditions that may be related.
Pre-condition The user must have access to a diagnostic tool or platform where they
can input their symptoms.
1. The user enters their symptoms into the diagnostic tool or
platform.
Normal Flow 2. The system analyzes the symptoms and generates potential
health issue suggestions based on the input.
3. The system displays the list of potential health issues to the
user.
4. The user reviews the suggestions and considers seeking medical
advice or further evaluation.
Post-condition The system generates potential health issue suggestions for the user.
Alternative Flow The system uses the detailed information to generate more accurate
health issue suggestions for the user.
Page 24
Table 3.7: Description of change name use case
Page 25
Table 3.8: Description of view previous result use case
Use case ID SUC-008
Use Case Name View previous result
Actors Patient
Description This use case visually represent the interaction between the user and the
system by allowing an authorized user to view their previous results or
outcomes in the system.
Pre-condition The user must be logged into the system and the user must have the
necessary permissions to view previous
1. User selects the option to view previous results.
2. System retrieves and displays the user's previous results.
Normal Flow 3. Use case ends.
Post-condition The user successfully views their previous results.
Alternative Flow If the user does not have the necessary permissions to view previous
results, an error message is displayed, and the use case ends.
Page 26
Table 3.9: Description of give feedback use case
Page 27
Table 3.10: Description of analyze questionnaire use case
Page 28
Table 3.11: Description of see result use case
Post-condition The user successfully views the analysis results of their questionnaire.
Alternative Flow If the user does not have any submitted questionnaires for analysis,
they will be prompted to submit a questionnaire first before viewing
analysis results.
Page 29
3.2.2 Sequence diagram
Sequence diagrams in UML shows how object interact with each other and the order those interactions
occur. It’s important to note that they show the interactions for a particular scenario. The processes are
represented vertically and interactions are show as arrows. This article explains the purpose and the basics
of Sequence diagrams.
Page 30
Figure 3.3: sequence diagram for Admin
Page 31
3.2.3 Activity diagram
Activity diagrams describe the work flow behavior of a system. Activity diagrams are similar to state
diagrams because activities are the state of doing something. The diagrams describe the state of activities
by showing the sequence of activities performed. Activity diagrams can show activities that are
conditional or parallel.
Figure 3.4: Activity diagram START
Signup/Login
Authentication
Valid
Dash board
Users collection of
data and symptoms
Check collection of
data is valid
Yes
Feedback
STOP
Page 32
3.2.4 Class diagram
Class diagrams are widely used to describe the types of objects in a system and their
relationships. Class diagrams model class structure and contents using design elements such as
classes, packages and objects. Class diagrams describe three different perspectives when
designing a system, conceptual, specification, and implementation. These perspectives become
evident as the diagram is created and help solidify the design. Class diagrams are arguably the
most used UML diagram type. It is the main building block of any object oriented solution. It
shows the classes in a system, attributes and operations of each class and the relationship
between each class. In most modeling tools a class has three parts, name at the top, attributes in
the middle and operations or methods at the bottom. In large systems with many classes related
classes are grouped together to create class diagrams.
Fig3.4 Class diagram
Page 33
3.2.5 User Interface Design
Prototyping, which is a stage in interface design with the singular aim of meeting the usability
goal of the product, is an iterative design process that involves creating a simplified version of a
product or system. The purpose of prototyping is to test and refine the design solution before
investing time and money into development. By creating a prototype, designers can evaluate the
usability, functionality, and overall user experience of their design solution.
The user interface design for a disease prediction system should prioritize ease of use,
accessibility, and the effective communication of predictive insights to both healthcare
professionals and individuals. Here's an outline of considerations and features for the user
interface design:
Clean and Intuitive Layout: The user interface should feature a clean and intuitive
layout, with well-organized menus, navigation elements, and visual hierarchy to guide
users through the system.
Dashboard Overview: A dashboard providing an overview of key insights, recent
predictions, and personalized risk assessments can serve as the central hub for users to
access relevant information at a glance.
Data Input Forms: Clear and concise forms for inputting health data, allowing users to
provide essential information such as patient demographics, medical history, genetic
factors, lifestyle choices, and other relevant variables for predictive modeling.
Accessibility Considerations: Adherence to accessibility standards and best practices to
ensure that the user interface is accessible to individuals with diverse needs, potentially
including support for assistive technologies and adherence to accessibility guidelines.
By incorporating these features into the user interface design, the disease prediction system can
provide an engaging, informative, and user-friendly experience, supporting proactive health
management and facilitating the effective utilization of predictive insights in healthcare decision-
making.
Page 34
Figure 3.5 user interface for the home page
Page 35
Figure 3.6 user interface for the login page
Page 36
Figure 3.7 user interface for the Admin dashboard
Page 37
Figure 3.8 user interface for the users symptom input
Page 38
Figure 3.9 user interface for the result page
Page 39
Figure 3.10 User interface for the feedback
The above UI prototype demonstrates a product's design and functionality to stakeholders, clients,
and potential users. A prototype gives stakeholders a better understanding of how users interact
with the product, website, or application while it's in the design and development process. It
allows user to fail fast and iterate quickly, ultimately leading to a better end result.
Page 40
CHAPTER FOUR
SYSTEM DESIGN
4.1INTRODUCTION
The disease prediction system project aims to develop a software application that can predict the
likelihood of an individual developing a certain disease based on the symptoms given by the
users.(17) The system will have a user-friendly interface that allows healthcare professionals to
input patient data, view predictions, and make informed decisions about treatment and
prevention strategies. The system will also have the capability to generate reports and
visualizations to help users understand the reasoning behind the predictions.
Overall, the disease prediction system project seeks to improve healthcare outcomes by enabling
early detection and intervention for individuals at risk of developing certain diseases.
Technical Specifications: The SDD specifies the technical details of the system, such
as programming languages, frameworks, libraries, and tools that will be used. It
provides guidelines for implementing various system features and functionalities using
PHP and other relevant technologies.
Page 41
Module Design: The SDD breaks down the system into smaller modules or components
and describes the design of each module. It specifies the responsibilities, interfaces,
inputs, outputs, and interactions of each module to ensure seamless integration and
functionality.
User Interface Design: The SDD details the design of the user interface, including wire
frames, mock ups, layouts, navigation flow, and user interactions. It ensures that the
user interface is intuitive, user-friendly, and meets the requirements of the disease
prediction system.
Data Flow Diagrams: SDD includes data flow diagrams that illustrate how data flows
through the system, from input (user symptoms) to processing (disease prediction) to
output (prediction results). It helps visualize the data flow and interactions between
different system components.
Scalability and Performance: The SDD addresses scalability and performance
considerations by describing how the system can handle increasing loads, optimize
resource utilization, and ensure efficient operation. It includes strategies for scaling the
system to accommodate growing user base and data volume.
Overall, the purpose of the SDD is to document the design of the disease prediction system in a
clear and organized manner so that all stakeholders can understand how it functions and how it
will be implemented.
4.3 Scope
The scope for system design in the Disease Prediction system is extensive and encompasses
various aspects crucial for its successful implementation.(19)
Some key areas within the scope of system design for this system include:
This study will focus on developing a web-based system to predict the occurrences of disease on
the basis of various symptoms. This system will let users to give symptoms and according to
those symptoms, the system will predict a disease.
It also helps for the urgent guidance on their illness according to the details and symptoms they
will feed to the web-based application.
It also includes:
System Architecture:
Design a scalable architecture that can handle large volumes of patient data efficiently.
Implement a robust database management system to store and retrieve medical records
securely.
Develop an intuitive user interface for seamless interaction between healthcare
professionals and the system.
Page 42
User Interface Development:
Design an intuitive graphical user interface (GUI) allowing healthcare professionals to
input patient information easily.
Integration of Medical Database:
Integrate a comprehensive medical database containing information about various
diseases, symptoms, treatments, medications, etc.
Ensure seamless connectivity between the prediction system and the database for quick
retrieval of relevant information during diagnosis.
Real-Time Updates:
Implement real-time monitoring capabilities to track changes in patients' health
conditions continuously.
Data Privacy Measures:
Incorporate robust security measures such as encryption techniques to protect sensitive
patient information from unauthorized access or breaches.
Having the scope of the system design for a disease prediction system based on these
components and considerations, the system creates a comprehensive and effective solution for
predicting specific diseases.
Page 43
4.4 Architectural Design
The conceptual model that describes a system's behavior, structure, and other aspects is called
systems architecture. A system's formal description and representation, structured to facilitate
inference about the system's behaviors and structures, is called an architecture description.
System components, their outwardly evident characteristics, and the connections between them
can all be included in a system design.(20) The database server, user browser, and local server
comprise the three layers of the system architecture model that are depicted in the diagram below.
Page 44
4.4.1 Logical View
The logical view of system architecture design provides a high-level abstraction that focuses on
the structure and behavior of the system's components and their interactions, without concern for
implementation details or physical deployment.[21]
A logical view of a disease prediction system can be represented using a high-level architectural
diagram that shows the key components and their interactions.
Page 45
4.4.2 Process View
Process View is a way of looking at work as a series of steps or actions that transform inputs into
outputs.(22) It helps to understand how different processes interact and communicate with each
other, and how they affect the performance and quality of the system. Process View can be used
to design, analyze, improve, and manage work processes of our platforms. This figure design
view below shows the core features and interaction within the patient interface, so that the
patients/users can navigate, see results and perform various activities. It includes the key parts
such as symptoms, user accounts as well as account creation, registration, and log in
processes. Through such elements, stakeholders would get a picture of how their patients/users
navigate the disease predicting management system.
Page 46
4.4.3 Deployment View
Deployment diagrams model the physical architecture of a system. Deployment diagrams show
the relationships between the software and hardware components in the system and the physical
distribution of the processing. It consists of nodes and their relationships. (23) Deployment
diagrams are used for describing the hardware components where software components are
deployed. They are mainly used by system engineers. These diagrams are used to describe the
physical components (hardware), their distribution and association. To clarify it in details we can
visualize deployment diagrams as the hardware components/nodes on which software
components reside. So the usage of deployment diagrams can be described as follows:
To model the hardware topology of a system.
To model embedded system.
To model hardware details for a client/server system.
To model hardware details of a distributed application.
To design the hardware components efficiently.
FIG: 4.4 Deployment view
This architectural design provides a structured framework for developing and implementing the
Disease Prediction System, ensuring scalability, reliability, and efficiency in predicting potential
diseases based on user symptoms.
Page 47
4.5 Database Design
Database design is the process of organizing data according to a database model. The designer
or database administrator can determine what data must be stored and how the data elements
interrelate. With this information, they can begin to fit the data to the database model. A database
management system manages the data accordingly [24].
The process of database design involves classifying data and identifying interrelationships. By
determining the relationships and dependencies among the different pieces of data it is possible
to organize the data into a logical structure which can then be mapped into the storage objects
supported by the database management system.
The main objectives of database design in DBMS are to construct logical and physical designs
models of the database system under consideration. A well-designed database should be capable
of handling a large amount of data and at the same time provide faster access to the data. It
should also provide data integrity and security. To elaborate Logical design involves mapping
the conceptual design to a specific data model, such as relational, hierarchical, or network, and
defining the constraints, keys, and indexes for each entity. Physical design involves choosing the
storage structures, file organizations, and access methods that optimize the performance, security,
and availability of the database. The logical model is largely focused on data needs, and
considerations must be made in terms of monolithic concerns, and so the stored physical data
must be stored independently of physical conditions. The physical database design model, on the
other hand, involves a translation of the logical design model of the database by maintaining
control of physical media utilizing hardware resources and software systems such as Database
Management System (DBMS).
The following points describe the significant considerations that may be considered while
stressing the importance of database design.
Ensures simplicity: A well-designed database makes it easy to write queries and access
data in a user-friendly way.
Eliminates redundancies: A good database design avoids unnecessary data duplication,
which saves disk space.
Page 48
Enables analysis: A structured database design allows for effective data retrieval,
reporting, and analytics, which can help online learning platforms measure and improve
their performance.
Maintains accuracy: A reliable database design ensures that the data stored is valid,
complete, and up-to-date.
Page 49
2. Symptom Table:
3. Disease Table:
Attribute Data type Constraint
ID int(10) NOT NULL
Disease_ID int(100) PRIMARY KEY
Cause Varchar(255) NOT NULL
Disease_name Varchar(100) NOT NULL
4. Result table:
Page 50
5. Feedback table
Attribute Data type Constraint
F_ID Varchar(10) Primary key
Message Varchar(200) NOT NULL
Name Varchar(30) NOT NULL
Email Varchar(20) NOT NULL
6. Admin table
Attribute Data type Constraint
ID int(30) PRIMARY KEY
User Name Varchar(255) NOT NULL
Password Varchar(100) NUT NULL
Page 51
4.5.2 ER Diagram
An entity relationship model is a way of representing the data and its relationships in a
database. It uses symbols to show the entities, attributes, and relationships that are relevant to a
specific domain of knowledge. An entity relationship model can help to design and understand a
database by showing the logical and physical structure of the data and how it can be manipulated.
An E-R diagram, or entity-relationship diagram, is a way of representing the data and its
relationships in a database. It uses symbols to show the entities, attributes, and relationships that
are relevant to a specific domain of knowledge. An E-R diagram can help to design and
understand a database by showing its logical and physical structure. An E-R diagram consists of
symbols that represent entities, attributes, and relationships. An entity is a thing of interest that
can be identified and distinguished from others. An attribute is a property or characteristic of an
entity. A relationship is an association or connection between two or more entities. The
following diagram is the entity relationship diagram for Disease prediction system.
FIG: 4.4; ER diagram
Page 52
4.5.3 Relational database design
Relational database design focuses on the logical structure of the database, including the tables,
their relationships, and the constraints that govern those relationships. It involves designing the
database schema, specifying the tables, columns, primary keys, foreign keys, and relationships
between tables.
Relationships:
The database establishes relationships between tables to maintain data integrity and coherence.
1. Patient Table ↔ Symptom Table:
One-to-Many relationship: A patient can report multiple symptoms.
User/Patient Symptom
User ID Symptoms_ID
Username ID
Password Symptoms_name
contact
Reg_date Disease_ID
Result
Page 53
Produces
Symptom Disease
Symptoms_ID User ID ID
ID Disease_ID
Symptoms_name Disease_name Disease_name
Disease_ID Cause
User/Patient User_result
User ID ID
Username Experience
Password Comments
contact User_name
Reg_date Email
Result C_date
Disease
Admin ID
A_ID Disease_ID
Username Disease_name
Password
Cause
Page 54
4.5.4 Normalization
Normalizing database tables is crucial for reducing redundancy, ensuring data consistency, and
maintaining data integrity. Let's normalize the table by taking examples(based on assumptions
about relationships) into their first, second, and third normal forms:
Eg. Un normalized symptom table
1. First Normal Form (1NF): Ensures each table has atomic values and no repeating groups.
So, in our case we need to separate multiple values in symptom_name into individual rows.
Page 55
2. Second Normal Form (2NF): In addition to 1NF, it eliminates partial dependencies by
removing columns dependent on only a portion of the primary key.
Identify the primary keys to ensure that all attributes are fully dependent on them.
We introduce a new table symptoms detail with columns symptom id, symptom name and
disease id.
Table: Symptoms_Details
Symptom _ID Symptom _name Disease _Id
SI1 Feeling tired 1
SI1 Easily upset 1
SI1 Grouchy 1
SI2 Gritty 2
SI2 Burning 2
SI2 Stinging in the eye 2
SI3 Redness on the eye 2
SI4 Blurred vision 3
Another table symptoms meta with columns ID and symptom id as the primary key.
Table :Symptoms_Meta
ID Symptom _ID
1. SI1
2. SI2
3. SI3
4. SI4
3. Third Normal Form (3NF): In addition to 2NF, it further eliminates transitive dependencies
by ensuring all attributes are dependent only on the primary key.
So, in our case no further normalization is required as we have already ensured that all attributes
directly depends on the primary key in the normalized tables.
Page 56
By normalizing the original symptoms tables into the first, second and third normal forms, we
achieve a structurally organized database that avoids data redundancy and maintains data
integrity effectively.
Page 57
CHAPTER FIVE
5.1 CONCLUSION
So, Finally we conclude by saying that, this project Disease prediction using PHP is very much
useful in everyone's day to day life and it is mainly more important for the healthcare sector,
because they are the one that daily uses these systems to predict the diseases of the patients based
on their general information and there symptoms that they are been through. Now a day's health
industry plays major role in curing the diseases of the patients so this is also some kind of help
for the health industry to tell the user and also it is useful for the user in case he/she doesn't want
to go to the hospital or any other clinics, so just by entering the symptoms and all other useful
information the user can get to know the disease he/she is suffering from and the health industry
can also get benefit from this system by just asking the symptoms from the user and entering in
the system and in just few seconds they can tell the exact and up to some extent the accurate
diseases. If health industry adopts this project then the work of the doctors can be reduced and
they can easily predict the disease of the patient. The Disease prediction is to provide prediction
for the various and generally occurring diseases that when unchecked and sometimes ignored can
turns into fatal disease and cause lot of problem to the patient and as well as their family
members.
5.2 RECOMMENDATION
The user has not received a prescription recommendation from this project. Prescription
recommendations can therefore be included in the project. A user's medical history can be
recorded in a log, and prescription recommendations can be put into action.
Engage healthcare professionals in the development process to ensure that the system aligns with
clinical best practices and effectively supports medical decision-making.
Implement processes for ongoing validation, testing, and refinement of predictive models to
enhance accuracy and relevance in real-world healthcare scenarios.
Page 58
REFERENCES
[1] Dr.shivi Sharma, 5 may 2021, disease prediction using machine learning, Retrieved from;
chrome-
[3] Parra, G., Bradnam, K., & Korf, I. (2007). CEGMA: a pipeline to accurately annotate core
genes in eukaryotic genomes. Bioinformatics, 23(9), 1061-1067.
[4] Bodenheimer, T. (2005). Helping patients improve their health-related behaviors: what
system changes do we need?. Disease Management, 8(5), 319-330.
[5] Subahi, A. F., Khalaf, O. I., Alotaibi, Y., Natarajan, R., Mahadev, N., & Ramesh, T. (2022).
Modified Self-Adaptive Bayesian algorithm for smart heart disease prediction in IoT
system. Sustainability, 14(21), 14208.
[6] Ahmed, Z., Mohamed, K., Zeeshan, S., & Dong, X. (2020). Artificial intelligence with
multi-functional machine learning platform development for better healthcare and precision
medicine. Database, 2020, baaa010.
[7] Jagadeeswari, V., Subramaniyaswamy, V., Logesh, R., & Vijayakumar, V. (2018). A study
on medical Internet of Things and Big Data in personalized healthcare system. Health
information science and systems, 6, 1-20.
[8]Thapa, C., & Camtepe, S. (2021). Precision health data: Requirements, challenges and
existing techniques for data security and privacy. Computers in biology and medicine, 129,
104130.
[9] Jenkins, D. A., Sperrin, M., Martin, G. P., & Peek, N. (2018). Dynamic models to predict
health outcomes: current status and methodological challenges. Diagnostic and prognostic
research, 2(1), 1-9.
[10] Manogaran, G., Varatharajan, R., Lopez, D., Kumar, P. M., Sundarasekar, R., & Thota, C.
(2018). A new architecture of Internet of Things and big data ecosystem for secured smart
healthcare monitoring and alerting system. Future Generation Computer Systems, 82, 375-387.
[11] Simpson, R. L. (1994). Ensuring patient data, privacy, confidentiality and security. Nursing
Management, 25(7), 18-22.
Page 59
[12] Laskar, M. T. R., Hossain, M. T., Kamal, A. R. M., & Rashid, N. (2016). Automated disease
prediction system (ADPS): a user input-based reliable architecture for disease
prediction. International Journal of Computer Applications, 133(15), 24-29.
[14] Balsamo, S., Di Marco, A., Inverardi, P., & Simeoni, M. (2004). Model-based performance
prediction in software development: A survey. IEEE Transactions on Software
Engineering, 30(5), 295-310.
[15] Davis, M. E., & Phillips, J. A. (2007). Learning PHP & MySQL: Step-by-Step Guide to
Creating Database-Driven Web Sites. " O'Reilly Media, Inc.".
[16] Chawla, N. V., & Davis, D. A. (2013). Bringing big data to personalized healthcare: a
patient-centered framework. Journal of general internal medicine, 28, 660-665.
[17] The SDD also details the design decisions that have been made throughout the development
process and provides rationale for those decisions.
[18] Kumari, Y., Bai, P., Waqar, F., Asif, A. T., Irshad, B., Raj, S., ... & Asif, A. T. (2023).
Advancements in the management of endocrine system disorders and arrhythmias: a
comprehensive narrative review. Cureus, 15(10).
[19] Peffers, K., Tuunanen, T., Rothenberger, M. A., & Chatterjee, S. (2007). A design science
research methodology for information systems research. Journal of management information
systems, 24(3), 45-77.
[20]Sage, A. P., & Lynch, C. L. (1998). Systems integration and architecting: An overview of
principles, practices, and perspectives. Systems Engineering: The Journal of The International
Council on Systems Engineering, 1(3), 176-227.
[22] Luján-Mora, S., & Trujillo, J. (2006). Physical modeling of data warehouses using UML
component and deployment diagrams: design and implementation issues. Journal of Database
Management (JDM), 17(2), 12-42.
Page 60
[23] "Wikipedia," january 2024. [Online]. Available:
https://en.wikipedia.org/wiki/Database_design. [Accessed 11 feburary 2024].
[24] [Online]. Available: https://en.wikipedia.org/wiki/Entity%E2%80%93relationship_model.
[Accessed 12 feburary 2024].
[25]Colquhoun, H. L., Squires, J. E., Kolehmainen, N., Fraser, C., & Grimshaw, J. M. (2017).
Methods for designing interventions to change healthcare professionals’ behaviour: a systematic
review. Implementation Science, 12(1), 1-11.
extension://efaidnbmnnnibpcajpcglclefindmkaj/https://ijcrt.org/papers/IJCRT2105229.pdf
Page 61
APPENDIX I
DISEASE PREDICTOR
submit
Page 62
APPENDEX II
These are the questions we analyzed which while making the document
1. How does the existing system work?
2. What is the organizational structure of the current system?
3. What are the existing systems drawbacks?
4. What are the key symptoms and risk factors associated with the diseases to be predicted?
5. Are there any specific generic factors that need to be considered for the disease prediction?
6. How frequently do patients visit healthcare providers for monitoring their health?
7. What demographic information should be collected from patients for disease prediction?
8. What are the main challenges faced by healthcare provider in predicting and diagnosing
disease accurately?
Page 63