Final Project Report
Final Project Report
BELAGAVI – 5900 18
A PROJECT REPORT ON
“Chronic Kidney Disease Prediction and Diet Recommendation using
Machine learning”
Submitted By:
LIKHITHA PATEL H R [4VV17IS023]
THEJASWINI T N [4VV17IS050]
SANJAY SHARMA V [4VV18IS407]
SPOORTHI M N [4VV18IS410]
2020-2021
CERTIFICATE
This is to certify that the project report entitled “Chronic Kidney Disease Prediction and Diet
Recommendation using Machine learning” is a bonafide work carried out by Likitha Patel H
R(4VV17IS023), Thejaswini T N (4VV17IS050), Sanjay Sharma V (4VV18IS407), Spoorthi M N
(4VV18IS410), students of 8 semester Information Science and Engineering, Vidyavardhaka College
of Engineering, Mysuru in partial fulfillment for the award of the degree of Bachelor of Engineering
in Information Science & Engineering of the Visvesvaraya Technological University, Belagavi,
during the academic year 2020-2021. It is certified that all the suggestions and corrections indicated for
the internal assessment have been incorporated in the report deposited in the department library. The
project report has been approved as it satisfies the requirements in respect of project work prescribed
for the said degree.
1)
2)
ACKNOWLEDGEMENT
If words are considered as the tokens of acknowledges, then the words play the heralding role of
expressing our gratitude. With proud gratitude we thank God Almighty for all the blessings showered
on us and for completing our project successfully. We owe our gratitude to The Principal, Dr. B
Sadashive Gowda for his wholehearted support and for his kind permission to undergo the project. We
wish to express our deepest gratitude to Dr. A B Rajendra, Head of Department, Information Science
and Engineering, VVCE, for his profound alacrity in our project and his valuable suggestions. We
gracefully thank our Project guide Dr.D Khasim Vali, Associate Professor in Information Science and
Engineering, VVCE who gave us throughout our project period with their valuable suggestions and for
devoting their precious time in making this project a success. We also thank the project coordinator
Prof. Gowrishankar B S, Assistant Professor in Information Science and Engineering, VVCE for his
encouragement and support. In the end, we are anxious to offer our sincere thanks to our family
members and friends for their valuable suggestions, encouragement and unwavering support.
THEJASWINI T N [4VV17IS050]
SPOORTHI M N [4VV18IS410]
ABSTRACT
The large amount of data that are generated from healthcare are too complex to analyzed
manually Legitimately analyzing clinical records approximately patients wellbeing expect the
plausibility of an event of various infections. In expansion, Procuring data concerning
specialists of that specific infection as per the prerequisite facilitates legitimate and proficient
determination of disease. Nowadays doctors are more focused on corona disease by forgetting
other diseases which are present. No proper treatments are given for chronic kidney disease
which is also a major disease in the world. Early prediction and proper medication for
betterment is the right way to help the people and physicians. By the use of Machine learning
techniques data can be analysed easily to provide better treatments for patients. Analysis of
data and prediction of disease can be early done through machine learning. Machine learning
plays a vital role in the healthcare industry and helps in prediction of disease from the datasets
by using machine learning techniques like K-Nearest Neighbor, Naive Bayes, Decision tree
and others.
CONTENTS
LIST OF FIGURES
Chronic Kidney Disease Prediction and Diet Recommendation using
Machine learning
CHAPTER 1
INTRODUCTION
Healthcare industry generates terabytes of data every year. The medical documents maintained
are a pool of information regarding patients. The task of extracting useful information or quality
healthcare is tricky and important. By analysing these voluminous data, we can predict the
occurrence of the disease and safe guard people. Thus, an intelligent system for disease
prediction plays a major role in controlling the disease and maintaining the good health status
for people by providing accurate and trustworthy disease risk prediction.
Machine learning is field concerned with the study of large and numerous variable information.
In Health Care discerning, Machine learning guarantees to help doctors to form perfect
determination, suggests the leading medicines for the patient’s, spot patients at high-risk for
pitiable results and particularly progressing patient’s physical condition whereas minimizing
costs. Machine learning has demonstrated a victory in forecast and conclusion of different basic
illness.
Chronic Kidney disease is worldwide health disease with higher burden with regard to the
wellbeing within the show circumstance. Chronic Kidney infection is characterized as a
glomerular filtration rate(GFR)<60mL/min or Kidney harm or both for at slightest a period of
3 months. End-stage renal illness is completely connected with mortality. Chronic Kidney is
recognized with research facility tests. Major downside of this disease is, most of the time CKD
is recognized at its last stage and which too leads to kidney failure. Within the early stages of
chronic kidney illness, there will be few signs or side effects. CKD may not ended up clear
until kidney work is altogether disabled.
Chronic kidney malady can be advance to conclusion organize of kidney failure, which is fatal
without dialysis or a kidney transplantation. CKD is complicated illness by influencing the
parts of the body by causing anemia, cardiovascular disease, Decreased Immune system, harm
to central nervous system. It is exceptionally critical to urge check-up patient within short
period of time.
System is an health care application which is an efficient tool for disease prediction.
System is an real time application which is meant for physician and peoples.
System is an automation for chronic kidney disease prediction.
System makes use of “Machine learning” algorithms for CKD prediction. ▪ System
also predict the stages of the CKD patients.
System predicts CKD prediction based on the attributes such as age, sugar, serum
creatinine, hyper tension and some others.
System provides Diet suggestion for the CKD patients based on the variations in the
attributes from the dataset.
The Health care need more support for its development and developing countries like India.
Previously prediction of CKD was done by checking and testing the various attributes which
is depended on the kidney disease. Result of the test will test more time and some hospitals
will not give proper test report because of amount. Patients are getting high risk for their
treatment in critical condition .Another method is to check whether the patient had high blood
pressure, a history of cardiovascular disease, the patient’s relative who have kidney disease
and dialysis of kidney takes more time to analysis the working of kidney. Suppose we are
available data set which contains the attributes which affects the CKD and that data is collected
and build the model which helps patients that provide the CKD prediction and Diet
recommendation for the CKD patients.
Prediction is a statement about future events. Chronic Kidney Disease Prediction has become
the need of the patients and Physician. Although future events are uncertain, so accurate
prediction is not possible. This paper includes a decision-making support model that can be
helpful for doctors to provide better medication and also for patients, it provides diet
recommendation which has to be maintained . The comparision the execution of Naïve Bayes,
decision tree, K-Nearest Neighbor classifier on the basis of its accuracy for CKD prediction.
. Stages of CKD is anticipated based on the GFR rate. Show the diet suggestion video for the
CKD patient for better recovery.
As shown in fig 1.1 Architecture of Proposed system for CKD prediction for health industry,
Firstly the data set which fits the model, then model will be able to provide CKD Prediction
and along with the stages which will be beneficial for patients to make better decisions on their
health and diet suggests on the attributes which is affecting the CKD.
On click of button output will be generated, no too much time required for CKD
prediction. ▪ No need to analyze manually.
Proposed system can be used in medical department for the prediction of CKD .
Proposed system can be used by patients to know the if the CKD is present or not
by inputting data such as “age”, “blood pressure”, “serum cretanine”, “sugar” and
“bacteria” etc.
Proposed system provide diet recommendation for the CKD patients for better
recovery.
• System is an health care application which is an efficient tool for disease prediction.
• System is an real time application which is meant for physician and peoples.
• System is an real time application which is meant for physician and peoples.
• System is an automation for chronic kidney disease prediction.
• System provides Diet suggestion for the CKD patients based on the variations in the
attributes from the dataset. System can be extended to an android application that
displays the diet recommendation and doctor recommendation for the CKD patient for
better improvement of the health.
CHAPTER 2
REQUIREMENT SPECIFICATION
Limitations of C++:
C++ can be thought as an Object Oriented layer on top of C.
It involves manual memory management.
Ugly pointer arithmetic.
Ugly syntactical constructs.
Limitations of JAVA/J2EE:
Java programmers must use java front to back during development cycle.
It is not appropriate for many graphical or numerical intensive applications.
.NET provides solution to all the above-mentioned problems.
Limitations of SQL:
SQL is most commonly used database.
It has a lot of capabilities(ex. For loop and functions)
Easy to maintain
Data warehouse function for decision support, integration closely related to many other
server software, good cost,performance,etc.
This section consists of the reviews of various technical and review articles on data mining techniques
applied to predict Kidney Disease.
• J.Van Eyck, J.Ramon, F.Guiza, G.Meyfroidt, M.Bruynooghe, G.Van den Berghe, K.U.Leuven
et al. Explored data mining techniques for predicting acute kidney injury after elective cardiac
surgery with Gaussian process & machine learning techniques (classification task & regression
task).
• Abeer Y. Al-Hyari et al .proposed in their research by using Artificial Neural Network (NN),
Decision Tree (DT) and Naïve Bayes (NB) to predict chronic kidney disease. The proposed NN
algorithm as well as the other data mining algorithms demonstrated high potential in successful
kidney disease.
• Xudong Song, Zhanzhi Qiu, Jianwei Mu et al .introduced data mining decision tree
classification method, and proposed a new variable precision rough set decision tree
classification algorithm based on weighted limit number explicit region.
• Divya Jain et al presented effect of diabetes on kidney using C4.5 algorithm with Tanagra tool.
The performance of classifier is evaluated in terms of recall, precision and error rate.
• Koushal Kumar and Abhishek et al .their research describes comparison of all three neural
networks such as (MLP, LVQ, RBF) on the basis of its accuracy, time taken to build model,
and training data set size.
In 2015, Konstantina Kourou et.al [1] proposed a study of Machine learning applications in cancer
prognosis and prediction. In this paper, they have presented a review of various recent ML approaches
that are applied for the prediction of cancer detection. Here they have presented review of newly
published content for the work done so far in cancer detection. In 2015 P.Swathi Baby et. al [2] proposed
a project to diagnosis and prediction system based on predictive mining. Here kidney disease data set
is used and analysed using Weka and Orange software. Here the Machine learning algorithms such as
AD Trees, J48, K star , Naïve Bayes, Random forest are used for the performance study of each
algorithm which gives the Statistical analysis and predicting kidney diseases using the algorithms. Their
observation shows that the best algorithms K-Star and Random Forest for the used Dataset ,where Build
the models are less time(0 sec and 0.6 sec) and the ROC values are 1. In 2015, Konstantina Kourou
et.al [1] proposed a study of Machine learning applications in cancer prognosis and prediction. In this
paper, they have presented a review of various recent ML approaches that are applied for the prediction
of cancer detection. Here they have presented review of newly published content for the work done so
far in cancer detection. In 2015 P.Swathi Baby et. al [2] proposed a project to diagnosis and prediction
system based on predictive mining. Here kidney disease data set is used and analysed using Weka and
Orange software. Here the Machine learning algorithms such as AD Trees, J48, K star , Naïve Bayes,
Random forest are used for the performance study of each algorithm which gives the Statistical analysis
and predicting kidney diseases using the algorithms. Their observation shows that the best algorithms
K-Star and Random Forest for the used Dataset ,where Build the models are less time(0 sec and 0.6
sec) and the ROC values .
CHAPTER 3
SOFTWARE REQUIREMENT SPECIFICATION
3.1 Introduction
The presentation of the Software Requirements Specification (SRS) gives a review of the
whole SRS with reason, scope, definitions, abbreviations, contractions, references and diagram
of the SRS. The point of this report is to assemble, dissect, and give a top to bottom knowledge
of the total "Chronic disease prediction" by characterizing the difficult articulation in detail.
The point-by-point necessities of the Indian car purchasing conduct – client related capacities
are given in this archive.
3.2 Purpose
The Purpose of the Software Requirements Specification is to give the specialized, Functional
and non-useful highlights, needed to build up a web application App. The whole application
intended to give client adaptability to finding the briefest as well as efficient way. To put it
plainly, the motivation behind this SRS record is to give an itemized outline of our product
item, its boundaries and objectives. This archive depicts the task's intended interest group and
its UI, equipment and programming prerequisites. It characterizes how our customer, group
and crowd see the item and its usefulness.
Scope
The Scope of this framework is to presents a survey on information digging strategies
utilized for the expectation of Chronic disease prediction. It is obvious from the framework
that information mining strategy, similar to grouping, is profoundly productive in expectation
of Indian car.
3.3.1 Python:
Python is a deciphered, significant level, broadly useful programming language. Made by Guido van
Rossum and first delivered in 1991, Python's plan reasoning accentuates code meaningfulness with its
prominent utilization of critical whitespace. Its language develops and object-arranged methodology
plan to assist software engineers with composing clear, consistent code for little and huge scope
ventures.
Python is progressively composed and trash gathered. It underpins numerous programming standards,
including procedural, object-arranged, and practical programming. Python is frequently portrayed as a
"batteries included" language because of its thorough standard library.
3.3.2 Flask:
Flask is a miniature web system written in Python. It is delegated a microframework in light of the fact
that it doesn't need specific apparatuses or libraries.[3] It has no information base deliberation layer,
structure approval, or whatever other segments where prior outsider libraries give normal capacities. In
any case, Flask upholds augmentations that can include application includes as though they were
executed in Flask itself. Augmentations exist for object-social mappers, structure approval, transfer
dealing with, different open confirmation advancements and a few basic system related devices.
Augmentations are refreshed unmistakably more as often as possible than the center Flask program
.
3.3.3 Anaconda:
Anaconda is a free and open-source circulation of the programming dialects Python and R . The
dissemination accompanies the Python translator and different bundles identified with AI and
information science.
Essentially, the thought behind Anaconda is to make it simple for individuals inspired by those fields
to introduce all (or a large portion) of the bundles required with a solitary establishment.
An open source bundle and condition the executives framework called Conda, which makes it simple
to introduce/update bundles and make/load situations.
AI libraries like TensorFlow, scikit-learn and Theano. Information science libraries like pandas,
NumPy and Dask. Perception libraries like Bokeh, Datashader, matplotlib and Holoviews. Jupyter
Notebook, a shareable note pad that joins live code, representations and text.
3.3.4 Numpy:
NumPy is the principal bundle for logical registering with Python. It contains in addition to
other things:
3.3.5 Pandas:
pandas is an open source, BSD-authorized library giving elite, simple to-utilize information structures
and information investigation apparatuses for the Python programming language.
pandas is a Num FOCUS supported undertaking. This will help guarantee the achievement of
improvement of pandas as an a-list open-source venture, and makes it conceivable to give to the task.
3.5 OVERVIEW
Following a section of this document will focus on describing the system in terms of product
functions. In the next section, we will address specific requirements of the system, which will
enclose functional requirements and non-functional requirements.
Figure 3: Overview
• The selected datasets are trained using SVN Naïve Bayes and KNN
General constraints
• The system should have enough RAM and Disk Storage Space.
• The results generated have to be entered in to the system and any error or any value
entered out of the boundary will not be understood by the system.
b) Process: Preprocessing will find missing value and also does feature remove
d) Error handling: If the input file is not a valid one Feature selection: Selection of the data
from a dataset.
c) Output: Selected data will be displayed Splitting of the Data: Training data and Test Data
b) Process: It will split the data into the train set and test set
c) Output: Dataset will be displayed as Train set and Test set and it will be tested for the
specific algorithms and performance analysis will be carried out
Functional requirements:
Data Collection
Data Preprocessing
Regression Algorithm
Prediction
Comparison
Study
3. Performing data mining algorithms The data mining algorithms include (Decision tree
,Naïve Bayes and KNN).
4. The algorithm helps in predicting the result based on the
parameters
5. The analysis help in the prediction of Disease
Product Functions
1. Uploading Data Uploading data sets.
2. Perform Prediction is done by each algorithm based on the constraints.
3. Comparison Study Prediction results and its stages of each algorithm is represented through
graph.
• HARD-DISK :500GB
• FRAMEWORK : Flask
• LIBRARIES :Pandas,Numpy,Sklearn,Scikit
CHAPTER 4
SYSTEM DESIGN
4.1 INTRODUCTION
The Software Design will be used to aid in software development for android application by
providing the details for how the application should be built. Within the Software Design,
specifications are narrative and graphical documentation of the software design for the project
includes use case models, sequence diagrams, and other supporting requirement information.
4.2 SCOPE
The design Document is for a primary level system, which will work as a basement for building
a system that provides a base level of functionality to show feasibility for large-scale
production use. The software Design Document, the focus placed on the generation and
modification of the documents. The system will be used in conjunction with other pre-existing
systems and will consist largely of a document interaction faced that abstracts document
interactions and handling of the document objects. This Document provides the Design
specifications of “Chronic Disease detection”.
LEVEL 0 DFD: Here Dataset will be given as input and will be processed for further
implementation.
LEVEL 1 DFD: Using python libraries and algorithms prediction will be carried out
sequence diagram depict cooperations among classes as far as a trade of messages after some
time. They're likewise called occasion charts. A grouping chart is a decent method to envision
and approve different runtime situations. These can assist with anticipating how a framework
will act and to find duties a class may need to have during the time spent demonstrating another
framework.
Use case graphs are utilized to accumulate the prerequisites of a framework including inside
and outside impacts. These prerequisites are generally plan necessities. Consequently, when a
framework is investigated to accumulate its functionalities, use cases are readied and
entertainers are distinguished.
CHAPTER 5
IMPLEMENTATION
5.1 Introduction
The project is implemented using Python which is an object oriented programming language and
procedure oriented programming language. Object oriented programming is an approach that provides
a way of modularizing program by creating partitioned memory area of both data and function that can
be used as a template for creating copies of such module on demand.
This project is implemented using python programming language. Python is dynamically typed and
garbage-collected. It supports multiple programming paradigms, including procedural, object-oriented,
and functional programming. Python is often described as a "batteries included" language due to its
comprehensive standard library. The machine Learning techniques are used in this project.
Machine learning is a type of artificial intelligence (AI) that provides computers with the ability to learn
without being explicitly programmed. Machine learning focuses on the development of
Computer Programs that can change when exposed to new data. In this article, we’ll see basics of
Machine Learning, and implementation of a simple machine learning algorithm using python.
Machine learning involves a computer to be trained using a given data set, and use this training to
predict the properties of a given new data. For example, we can train a computer by feeding it 1000
images of cats and 1000 more images which are not of a cat, and tell each time to the computer whether
a picture is cat or not. Then if we show the computer a new image, then from the above training, the
computer should be able to tell whether this new image is a cat or not. The process of training and
prediction involves the use of specialized algorithms. We feed the training data to an algorithm, and
the algorithm uses this training data to give predictions on a new test data. One such algorithm
is K-Nearest-Neighbor classification (KNN classification). It takes a test data, and finds k
nearest data values to this data from test data set. Then it selects the neighbor of maximum
frequency and gives its properties as the prediction result.
Most insurers recognize the value of machine learning in driving better decision-
making and streamlining business processes. Research for the Accenture Technology
Vision 2018 shows that more than 90 percent of insurers are using, plan to use or
considering using machine learning or AI in the claims or underwriting process.
Some of the challenges insurers typically encounter when adopting machine learning are.
Right data source The quality of data used to train predictive models is equally
important as the quantity, in the case of machine learning. The datasets need to be
representative and balanced so that they can give a better picture and avoid bias. This
is important to train predictive models. Generally, insurers struggle to provide relevant
data for training AI models
Difficulty in predicting returns It’s not very easy to predict improvements that
machine learning can bring to a project. For example, it’s not easy to plan or budget a
project using machine learning, as the funding needs may vary during the project,
based on the findings. Therefore, it is almost impossible to predict the return on
investment. This makes it hard to get everyone on board the concept and invest in it.
Data security The huge amount of data used for machine learning algorithms has
created an additional security risk for insurance companies. With such an increase in
collected data and connectivity among applications, there is a risk of data leaks and
security breaches. A security incident could lead to personal information falling into
the wrong hands. This creates fear in the minds of insurers.
5.4 Architecture:
Stage1:
There are 25 features and 1 class label for every chronic kidney disease record, and the
features include basic etc age, bp, sugar, serum creatine, sodium, haemoglobin etc.
Stage2:
Data Cleaning:
The data can have many irrelevant and missing parts. To handle this part, data cleaning
is done. It involves handling of missing data, analysis of data, feature engineering,noisy
data etc.
Missing Data:
This situation arises when some data is missing in the data. It can be handled in various
ways.
Some of them are:
1. Ignore the tuples:
This approach is suitable only when the dataset we have is quite large and
multiple values are missing within a tuple.
2. Fill the Missing values:
There are various ways to do this task. You can choose to fill the missing values
manually, by attribute mean or the most probable value
Stage 3:
The obtained data from stage is taken into consideration then data is trained using the
classification algorithm and obtained result is analysed and Showed in the graph using
python library.
The obtained data is also trained using Machin Learning Algorithms like KNN, Naïve bayes
and decision tree. The obtained result are compared for better Accuracy.
KNN
KNN is also a lazy algorithm (as opposed to an eager algorithm). this means is that it does not
use the training data points to do any generalization. In other words, there is no explicit training
phase or it is very minimal. This also means that the training phase is pretty fast . Lack of
generalization means that KNN keeps all the training data. To be more exact, all (or most) the
training data is needed during the testing phase.
KNN Algorithm is based on feature similarity: How closely out-of-sample features resemble
our training set determines how we classify a given data point:
KNN can be used for classification — the output is a class membership (predicts a class — a
discrete value). An object is classified by a majority vote of its neighbors, with the object being
assigned to the class most common among its k nearest neighbors. It can also be used for
regression — output is the value for the object (predicts continuous values). This value is the
average (or median) of the values of its k nearest neighbors.
KNN
Input: uploading datasets
begin
1. Scan the dataset (storage servers). Retrieval of required data for mining from the
servers such as database, cloud, excel sheet etc.
2. Determine Parameter K= number of nearest neighbours.
3. Calculate the distance between the query-instance and all the training samples.
There are many distance functions but Euclidean is the most commonly used
measure.
4. Sort the distance and determine nearest neighbours based on the K-th minimum
distance.
5. Gather the category X of the nearest neighbours.
6. Use simple majority of the category of nearest neighbors as the Prediction value of
the query instance end .
1. Calculate “d(x, xi)” i =1, 2, ….., n; where d denotes the Euclidean distance between
the points.
2. def euclidean_distance(x,y):
3. return sqrt(sum(pow(a-b,2) for a, b in zip(x, y)))
4. Arrange the calculated n Euclidean distances in non-decreasing order.
5. Let k be a +ve integer, take the first k distances from this sorted list.
6. Find those k-points corresponding to these k-distances.
7. Let ki denotes the number of points belonging to the ith class among k points i.e. k ≥ 0
8. If ki >kj i ≠ j then put x in class i.
Naïve Bayes:
Naive Bayes is a statistical classification technique based on Bayes Theorem. It is one of the
simplest supervised learning algorithms. Naive Bayes classifier is the fast, accurate and
reliable algorithm. Naive Bayes classifiers have high accuracy and speed on large datasets.
Naive Bayes classifier assumes that the effect of a particular feature in a class is independent
of other features. For example, a loan applicant is desirable or not depending on his/her
income, previous loan and transaction history, age, and location. Even if these features are
Department of ISE, VVCE Page 31
Chronic Kidney Disease Prediction and Diet Recommendation using
Machine learning
interdependent, these features are still considered independently. This assumption simplifies
computation, and that's why it is considered as naive. This assumption is called class
conditional independence
begin
1. Scan the dataset (storage servers) .Retrieval of required data for mining from the
servers such as database, cloud, excel sheet etc.
2. Calculate the probability of each attribute value. Here for each attribute we calculate
the probability of occurrence.
3. Multiply the probabilities by p. For each class, here we multiple the results of each
attribute with p and final results are used for classification.
4. Compare the values and classify the attribute values to one of the predefined set of
class.
end
Naïve Bayes:
• Derivation:
• D : Set of tuples
• Each Tuple is an ‘n’ dimensional attribute vector
• X : (x1,x2,x3,…. xn)
• Let there be ‘m’ Classes : C1,C2,C3…Cm
• Naïve Bayes classifier predicts X belongs to Class Ci iff
• P (Ci/X) > P(Cj/X) for 1<= j <= m , j <> i Maximum Posteriori Hypothesis
• P(Ci/X) = P(X/Ci) P(Ci) / P(X)
aximize P(X/Ci) P(Ci) as P(X) is constant With many attributes, it is computationally
expensive to evaluate P(X/Ci). Naïve Assumption of “class conditional independence”
• ∏= = n k P X Ci P xk Ci 1 ( xk./ Ci)
• P(X/Ci) = P(x1/Ci) * P(x2/Ci) *…* P(xn/ Ci)
Decision Tree
Input: uploading
datasets begin
PSEUDOCODE:
Information Gain
infoGain(examples, attribute,
entropyOfSet) gain = entropyOfSet
for value in attributeValues(examples,
attribute):
sub = subset(examples, attribute, value) gain -=
(number in sub)/(total number of examples) * entropy(sub)
return gain
Entropy
entropy(examples)
'''
log2(x) = log(x)/log(2)
'''
result = 0
# handle target attributes with arbitrary labels
dictionary = summarizeExamples(examples,
targetAttribute) for key in dictionary:
proportion = dictionary[key]/total number of examples result -=
CHAPTER 6
TESTING
6.1 Introduction
Testing is the way toward running a framework with the expectation of discovering blunders. Testing
upgrades the uprightness of the framework by distinguishing the deviations in plans and blunders in
the framework. Testing targets distinguishing blunders – prom zones. This aides in the avoidance of
mistakes in the framework. Testing additionally adds esteems to the item by affirming the client's
necessity.
he primary intention is to distinguish blunders and mistake get-prom zones in a framework. Testing
must be intensive and all around arranged. A somewhat tried framework is as terrible as an untested
framework. Furthermore, the cost of an untested and under-tried framework is high. The execution is
the last and significant stage. It includes client preparation, framework testing so as to guarantee the
effective running of the proposed framework. The client tests the framework and changes are made by
their requirements. The testing includes the testing of the created framework utilizing different sorts
of information. While testing, blunders are noted and rightness is the mode.
and usability tests series of tests are performed for the proposed system are ready for user acceptance
testing.
necessary yield in a particular configuration. The yield design on the screen is discovered to be right.
The organization was planned in the framework configuration time as indicated by the client needs.
For the printed copy likewise, the yield comes according to the predefined prerequisites by the client.
Subsequently yield testing didn't bring about any amendment for the framework.
6.4 Validation
Toward the consummation of the reconciliation testing, the product is totally amassed as bundle
interfacing blunders have been revealed and adjusted and a last arrangement of programming tests
starts in approval testing. Approval testing can be characterized from multiple points of view,
however a straightforward definition is that the approval succeeds when the product work in a way
that is normal by the client. After approval test has been directed as follows:
CHAPTER 7
Conclusion
The application of data mining techniques for predictive analysis is very important in the
health field because it gives us the power to chronic diseases earlier and therefore save
people‟s lives through the anticipation of cure. In this application, Data Mining algorithms,
Decision tree, KNN and Naive Bayes, to predict patients with health care data, and patients
who are healthy. Simulation results showed that Naive Bayes classifier proved its
performance in predicting with best results in terms of minimum execution time.
REFERENCES
[1] Konstantina Kourou et.al, “Machine learning applications in cancer prognosis and
prediction” Computational and structural bitechnology Journal, Elsevier.
[2] P.Swathi Baby, T. Panduranga Vital ,”Statistical Analysis and Predicting Kidney Diseases
using Machine Learning Algorithms” International Journal of Engineering Research &
Technology (IJERT) ISSN: 2278-018, Vol. 4 Issue 07, July-2015,206-210.
[6]Prediction of kidney disease stages using data mining algorithms El-Houssainy A. Radya ,
Ayman S. Anwarb,
[7] DATA MINING CLASSIFICATION ALGORITHMS FOR KIDNEY DISEASE
PREDICTION
Dr. S. Vijayarani1 , Mr.S.Dhayanand2 .
[8] Deep EHR: Chronic Disease Prediction Using Medical Notes Jingshu Liu Zachariah Zhang
[9] Comparative Study of Chronic Kidney Disease Prediction using KNN and SVM Parul
Sinha. [10] Disease Prediction and Doctor Recommendation SystemDhanashri Gujar1,
Rashmi Biyani2, Tejaswini Bramhane3[6]Chronic Diseases Diagnosis using Machine
Learning, Shweta Ganiger.
[11]A Literature Review on Kidney Disease Prediction using Data Mining Classification
Technique Suman Bala1 , Krishan Kuma.
SNAPSHOTS
Chronic Kidney Disease Prediction And Diet Recommendation Using Machine
Learning
Registration Page
Login Page
Prediction Page
Recommendation Page