Heart Diesease Prediction and Recommendation System Using Machine Learning
Heart Diesease Prediction and Recommendation System Using Machine Learning
Heart Diesease Prediction and Recommendation System Using Machine Learning
There are millions of people right now experiencing suffering through heart disease. Prediction of
these disease is very necessary for the survival of any individuals. In this paper the disease is
accurately predicted by looking at the symptoms of a patient. Algorithmic models such as naïve
bayes, random forest, logistic regression and KNN have been used to predict the disease. Once the
disease is predicted by the system, it then recommend which type of doctor to consult. Over this an
interactive interface is built for recommendation.
TABLE OF CONTENTS
CHAPTER No. TITLE PAGE No.
ABSTRACT V
LIST OF FIGURES Viii
LIST OF TABLES Ix
1. INTRODUCTION 12
1.1 RELATED WORK 12
1.2 PROPOSED SYSTEM 13
1.3 ADVANTAGES OF 14
PROPOSED SYSTEM
2. MACHINE LEARNING MODELS 15
2.1 K-NEAREST NEIGHBOR 15
2.2 RANDOM FOREST 15
CLASSIFICATION
2.3 DECISION TREE 16
CLASSIFICATION
2.4 RECOMMENDATION 16
SYSTEM
3. RESULTS AND DISCUSSIONS 17
4. CONCLUSION 22
REFERENCES 23
APENDIX 26
LIST OF FIGURES
3.1 HISTOGRAM 19
DEPICTION OF
ATTRIBUTES OF
DATASET
3.2 NUMBER OF PATIENT 20
WHICH DON’T HAVE HEART
DISEASE
3.3 GRAPHICAL 20
REPRESENTATION OF KN
3.4 WELCOME PAGE FOR 21
USERS
3.5 MEDICAL REPORT FOR 21
VERIFICATION
3.6 ANALYSIS OF MULTIPLE 22
PATIENTS TO AVOID
LATENCY
3.7 DOCTOR APPOINTMENT 22
PORTAL
LIST OF TABLES
9
CHAPTER 1
INTRODUCTION
12
2) Data is splitted using entropy on an attribute
Gain (T, X) = Entropy(T) - Entropy(T,X)
T – Target Variable
X- Feature to be split on
3) The decision tree algorithm is fitted into the training set
4) The test set results are predicted and its accuracy is generated.
5) Finally we visualize the test set
6) The results are calculated using Gini index and it is in the form of
confusion matrix.
formula for Gini index is
Gini=1−∑ni=1(pi)2
where pi is the probability of an object being classified to a class.
14