TEEGALA KRISHNA REDDY ENGINEERING COLLEGE
(Approved By AICTE , Affiliated To JNTUH, Accredited By NBA And NAAC)
Department of Computer Science & Engineering
HEAD OF THE DEPARTMENT
Dr. CH. V
. PHANI KRISHNA
Professor
PROJECT CO-ORDINATOR
Mrs. P.SWETHA
Assistant Professor
SUPERVISOR
Mrs B. Rajeshwari
Assistant Professor
NAME OF THE STUDENTS
Y
. Vamshi Krishna- 22R91A05R6
Raparthi Rahul- 22R91A05L4
L.Sarthak Kumar- 22R91A05L9
HEART DISEASE PREDICTION USING
LOGISTIC REGRESSION AND SVM
CONTENTS
INTRODUCTION
ABSTRACT
EXISTING SYSTEM
PROPOSED SYSTEM
SYSTEM REQUIREMENTS
SYSTEM ARCHITECTURE
MODULES
UML DIAGRAMS
REFERENCES
INTRODUCTION
Heart disease is one of the leading causes of death worldwide, affecting
millions of people each year. Early detection and accurate diagnosis of
heart disease are crucial in preventing severe complications and
reducing mortality rates. Traditional methods of diagnosis, such as ECG,
cholesterol tests, and stress tests, require medical expertise and are often
time-consuming and expensive.To overcome these challenges, machine
learning algorithms such as Support Vector Machine (SVM) and
Logistic Regression (LR) can be used to develop an efficient and
automated heart disease prediction system. These algorithms analyze
patient data, including age, blood pressure, cholesterol levels, heart rate,
and other medical parameters, to predict the likelihood of heart disease.
ABSTRACT
Heart disease remains a leading cause of mortality worldwide,
necessitating early detection and accurate prediction models to
improve patient outcomes. This study explores the effectiveness of
Support Vector Machine (SVM) and Logistic Regression (LR) in
predicting heart disease based on medical attributes such as age,
blood pressure, cholesterol levels, and other clinical parameters.
SVM, known for its robustness in high-dimensional spaces, is
compared with LR, a widely used statistical method for binary
classification. This comparative analysis highlights the strengths and
limitations of both techniques, aiding in the selection of appropriate
predictive models for heart disease diagnosis in clinical settings.
EXISTING SYSTEM
The current system for heart disease diagnosis mainly relies on
manual medical checkups and tests conducted by doctors. This
includes: Physical Examination – Checking blood pressure, heart
rate, and symptoms, Medical Tests– ECG, cholesterol tests, stress
tests, and angiography, Doctor’s Expertise – Doctors analyze
test results and patient history to diagnose heart disease.
LIMITATIONS
1.Time-Consuming– Medical tests take time.
2.Expensive– Some tests (e.g., angiography) are costly.
3.Human Dependency– Requires expert doctors for accurate
diagnosis.
PROPOSED SYSTEM
The proposed system uses Machine Learning (SVM and Logistic
Regression) to predict heart disease risk based on patient attributes like
age, blood pressure, cholesterol, heart rate, and ECG results.
ADVANTAGES:
1. Fast and Automated – Provides instant predictions.
2.Accurate and Data-Driven – Uses machine learning to analyze health
data.
3. Cost-Effective – Reduces reliance on expensive medical tests.
4.Early Detection – Identifies risk before severe symptoms appear.
SYSTEM REQUIREMENTS
 SOFTWARE REQUIREMENTS
o Programming Language: Python(version: 3.13.3)
o Libraries:
• streamlit
• streamlit-option-menu
• scikit-learn
o Operating System: Windows 11
o Platform: VSCode
 HARDWARE REQUIREMENTS
o Processor: Intel Core i5
o RAM: Minimum 4GB
o Storage: SSD recommended for faster access
SYSTEM ARCHITECTURE
MODULES
We have to use following Modules for Heart Disease Prediction
• Data Collection Module: Collect heart disease data from datasets (e.g., Heart
Disease Dataset or hospital records).
• Data Preprocessing Module: Handle missing values. Encode categorical
data. Split dataset (Training set, Testing set).
• Prediction Module: Predict heart disease risk based on new patient input
using trained SVM or Logistic Regression model.
• Deployment Module: Integrate the trained model into a Web App using:
Flask /Fast API for backend API. Simple Web UI or Hospital Software
Interface for real-time predictions.
UML DIAGRAMS
CLASS DIAGRAM
USE CASE DIAGRAM
SEQUENCE DIAGRAM
ACTIVITY DIAGRAM
REFERENCES
[1]. Mr. ChalaBeyene, Prof. Pooja Kamat, “Survey on Prediction and
Analysis the Occurrence of Heart Disease Using Data Mining
Technique”, International Journal of Pure and Applied Mathematics,
2018.
[2]. Mohan, Senthilkumar, Chandrasegar Thirumalai, and Gautam
Srivastava, “Effective heart disease prediction using hybrid machine
learning techniques” IEEE Access 7 (2019): 81542-81554.
[3]. Ali, Liaqat, et al, “An optimized stacked support vector machines
based expert system for the effective prediction of heart failure” IEEE
Access 7 (2019): 54007-54014.
THANK YOU

Heart disease prediction based on the machine learning algorithms

  • 1.
    TEEGALA KRISHNA REDDYENGINEERING COLLEGE (Approved By AICTE , Affiliated To JNTUH, Accredited By NBA And NAAC) Department of Computer Science & Engineering HEAD OF THE DEPARTMENT Dr. CH. V . PHANI KRISHNA Professor PROJECT CO-ORDINATOR Mrs. P.SWETHA Assistant Professor
  • 2.
    SUPERVISOR Mrs B. Rajeshwari AssistantProfessor NAME OF THE STUDENTS Y . Vamshi Krishna- 22R91A05R6 Raparthi Rahul- 22R91A05L4 L.Sarthak Kumar- 22R91A05L9 HEART DISEASE PREDICTION USING LOGISTIC REGRESSION AND SVM
  • 3.
    CONTENTS INTRODUCTION ABSTRACT EXISTING SYSTEM PROPOSED SYSTEM SYSTEMREQUIREMENTS SYSTEM ARCHITECTURE MODULES UML DIAGRAMS REFERENCES
  • 4.
    INTRODUCTION Heart disease isone of the leading causes of death worldwide, affecting millions of people each year. Early detection and accurate diagnosis of heart disease are crucial in preventing severe complications and reducing mortality rates. Traditional methods of diagnosis, such as ECG, cholesterol tests, and stress tests, require medical expertise and are often time-consuming and expensive.To overcome these challenges, machine learning algorithms such as Support Vector Machine (SVM) and Logistic Regression (LR) can be used to develop an efficient and automated heart disease prediction system. These algorithms analyze patient data, including age, blood pressure, cholesterol levels, heart rate, and other medical parameters, to predict the likelihood of heart disease.
  • 5.
    ABSTRACT Heart disease remainsa leading cause of mortality worldwide, necessitating early detection and accurate prediction models to improve patient outcomes. This study explores the effectiveness of Support Vector Machine (SVM) and Logistic Regression (LR) in predicting heart disease based on medical attributes such as age, blood pressure, cholesterol levels, and other clinical parameters. SVM, known for its robustness in high-dimensional spaces, is compared with LR, a widely used statistical method for binary classification. This comparative analysis highlights the strengths and limitations of both techniques, aiding in the selection of appropriate predictive models for heart disease diagnosis in clinical settings.
  • 6.
    EXISTING SYSTEM The currentsystem for heart disease diagnosis mainly relies on manual medical checkups and tests conducted by doctors. This includes: Physical Examination – Checking blood pressure, heart rate, and symptoms, Medical Tests– ECG, cholesterol tests, stress tests, and angiography, Doctor’s Expertise – Doctors analyze test results and patient history to diagnose heart disease. LIMITATIONS 1.Time-Consuming– Medical tests take time. 2.Expensive– Some tests (e.g., angiography) are costly. 3.Human Dependency– Requires expert doctors for accurate diagnosis.
  • 7.
    PROPOSED SYSTEM The proposedsystem uses Machine Learning (SVM and Logistic Regression) to predict heart disease risk based on patient attributes like age, blood pressure, cholesterol, heart rate, and ECG results. ADVANTAGES: 1. Fast and Automated – Provides instant predictions. 2.Accurate and Data-Driven – Uses machine learning to analyze health data. 3. Cost-Effective – Reduces reliance on expensive medical tests. 4.Early Detection – Identifies risk before severe symptoms appear.
  • 8.
    SYSTEM REQUIREMENTS  SOFTWAREREQUIREMENTS o Programming Language: Python(version: 3.13.3) o Libraries: • streamlit • streamlit-option-menu • scikit-learn o Operating System: Windows 11 o Platform: VSCode  HARDWARE REQUIREMENTS o Processor: Intel Core i5 o RAM: Minimum 4GB o Storage: SSD recommended for faster access
  • 9.
  • 10.
    MODULES We have touse following Modules for Heart Disease Prediction • Data Collection Module: Collect heart disease data from datasets (e.g., Heart Disease Dataset or hospital records). • Data Preprocessing Module: Handle missing values. Encode categorical data. Split dataset (Training set, Testing set). • Prediction Module: Predict heart disease risk based on new patient input using trained SVM or Logistic Regression model. • Deployment Module: Integrate the trained model into a Web App using: Flask /Fast API for backend API. Simple Web UI or Hospital Software Interface for real-time predictions.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
    REFERENCES [1]. Mr. ChalaBeyene,Prof. Pooja Kamat, “Survey on Prediction and Analysis the Occurrence of Heart Disease Using Data Mining Technique”, International Journal of Pure and Applied Mathematics, 2018. [2]. Mohan, Senthilkumar, Chandrasegar Thirumalai, and Gautam Srivastava, “Effective heart disease prediction using hybrid machine learning techniques” IEEE Access 7 (2019): 81542-81554. [3]. Ali, Liaqat, et al, “An optimized stacked support vector machines based expert system for the effective prediction of heart failure” IEEE Access 7 (2019): 54007-54014.
  • 16.