Using Artificial Intelligence To Detect Heart Disease Analysis of Grid Search To Increase Accuracy and Deploying Custom Models Online
Using Artificial Intelligence To Detect Heart Disease Analysis of Grid Search To Increase Accuracy and Deploying Custom Models Online
Using Artificial Intelligence To Detect Heart Disease Analysis of Grid Search To Increase Accuracy and Deploying Custom Models Online
ISSN No:-2456-2165
Abstract:- In this paper, I discuss a method for detecting These illnesses are generally associated with blood
cardiac illness utilising artificial intelligence and machine vessel blockages or narrowing, which can lead to heart attacks,
learning algorithms, and making these systems publicly strokes, and angina. Heart disorders come in a variety of
available. We demonstrate how artificial intelligence may forms, including those that damage the heart's rhythm, valve,
be used to forecast if someone would get cardiac disease. A or muscle. Machine learning is greatly useful for evaluating
python-based application is created for healthcare whether anybody has had cardiac disease. In either event, if
research in this study since it is more dependable and aids they are anticipated in advance, physicians would find it much
in tracking and establishing various kinds of health simpler to gather vital information for diagnosing and treating
monitoring apps. We demonstrate categorical variable patients.
manipulation and the conversion of categorical columns in
data processing. We tested a range of machine learning II. THE PROBLEM
models to achieve the goal of the research and compared
the accuracy of each of these models to find the most Numerous studies and investigations have been
accurate. We outline the key stages of application conducted on reducing the risk of heart disease. Based on
development, including the gathering of databases, blood pressure, smoking habits, cholesterol and blood pressure
applying logistic regression, parameter tuning, assessing levels, diabetes, and data from population studies, it is now
the features of the dataset, deploying the model and possible to forecast the development of heart disease [4].
connecting it to the front-end using APIs. These prediction algorithms have been modified by
researchers into simpler score sheets that patients may use to
Keywords:- Artificial Intelligence, Machine Learning, determine their risk of developing heart disease. A common
Healthcare, AI in Healthcare. risk prediction criterion used in algorithms for heart disease
prediction is the Framingham Risk Score (FRS). The goal of
I. INTRODUCTION this work was to create a classification algorithm-based
intelligent system for heart disease prediction based on risk
In England, CVD (Cardio Vascular Disease) causes close factor categories.
to 34% of all fatalities, compared to 40% in the European
Union. As risk factors for CVD become more common in
formerly low-risk nations, the rate of CVD is expected to
climb globally. At the current rate of 80%, cardiovascular
disease (CVD) will surpass infectious illness as the leading
cause of death in the majority of developing countries by 2020
[1]. Not only is CVD a major cause of death, but it also ranks
first in the world for years of life lost due to impairment. The
graph below analyses leading death causes globally. [2]
A. Data
We used publicly available heart disease data ay UCI,
obtained through the following creators: Fig 1: Correlation plot
Hungarian Institute of Cardiology. Budapest: Andras
Janosi, M.D. We performed data exploration to analyse the
University Hospital, Zurich, Switzerland: William dependence of variables with high correspondence to the
Steinbrunn, M.D. presence of the disease condition. This was done using
University Hospital, Basel, Switzerland: Matthias Matplotlib in Python to visualise the obtained data and its
Pfisterer, M.D. correlation with the presence of a heart disease.
Grid Search Algorithm will iterate through each of the Fig 2: Working of Grid Search
points in the graph below and compare the accuracy each
hyperparameter. Therefore, the grid search algorithm iterates through the
following number of cases:
For example, say there is a model which has 2
hyperparameters, each having exactly 3 possible values. The 𝑁 = 𝑛1 . 𝑛2 . 𝑛3 . . . 𝑛𝑛
Grid Search Algorithm will iterate through each of the points
in the graph below and compare the accuracy each Where 𝑛1 is the number of possibilities in the first
hyperparameter. hyperparameter, 𝑛2 is the number of possibilities in the
second hyperparameter and so on till n hyperparameters.
𝐻𝑃1 = [𝑎, 𝑏, 𝑐]
𝐻𝑃2 = [𝑥, 𝑦, 𝑧]
Where N is the set of all iterations that the grid search [1]. Jack Stewart, Gavin Manmathan and Peter Wilkinson
will perform. Such as set is called a Cartesian product of 𝐻𝑃1 “Primary prevention of cardiovascular disease: A review
of contemporary guidance and literature,” National
and 𝐻𝑃2 . Library of Medicine
[2]. Lauren F Friedman “Just 2 things cause a quarter of all
Now, as we can see above, grid search checks for each of deaths in the world,” Business Insider
the parameter’s combinations possible. On the other hand, an [3]. “Cardiovascular diseases (CVDs),” WHO
algorithm like random search would look through a random set [4]. Zaibunnisa L. H. Malik, Momin Fatema, Nikam Pooja
of these parameter combinations for better computation times. and Gawandar Ankita “Heart disease prediction using
artificial intelligence,” IJERT
Therefore, GridSearch results in maximum accuracy but [5]. “Heart disease dataset,” UCI Machine Learning
can be slightly slow to compute. However, for out of 7000 Repository
patients, the GridSearch code ran in less than second. [8] [6]. Petro Liashchynskyi and Pavlo Liashchynskyi “Grid
search, random search, genetic algorithm: a big
VI. DEPLOYMENT comparison for NAS,” ArXiv.org
[7]. Tong Yu and Hong Zhu “Hyper-Parameter optimization:
A review of algorithms and applications,” ArXiv.org
VII. RESULTS
VIII. CONCLUSION