Cardiac Clarity: Harnessing Machine Learning for Accurate Heart-Disease Prediction

Project Code :TCMAPY1810

Objective

The project, Cardiac Clarity, develops a heart disease prediction system using machine learning algorithms like GaussianNB, SVM, XGBoost, and a Stacking Classifier. It processes structured patient data (e.g., age, cholesterol, blood pressure) to classify heart disease presence. Explainable AI techniques (SHAP) are integrated into advanced models to enhance interpretability and trust. A Flask-based web interface allows users to input data and view predictions with explanations. The system balances high accuracy with transparency, aiding in better understanding of health risk factors.

Abstract

This project explores the application of machine learning algorithms to detect the presence of heart disease using structured patient data. The aim is to build a classification system that can accurately predict whether a person is likely to have heart disease, based on features such as age, blood pressure, cholesterol levels, and other health indicators. The dataset consists of 1000 entries with 13 key features and one target variable. Four algorithms are implemented: Gaussian Naive Bayes, Support Vector Machine, XGBoost with Explainable AI, and a Stacking Classifier also enhanced with Explainable AI. The integration of explainability provides transparency by highlighting which features contribute most to the prediction. A web interface built with HTML, CSS, JavaScript, and Flask allows users to interact with the system. The model outputs are shown with explanations, supporting interpretability. Overall, the project combines predictive accuracy and model interpretability in a simple and interactive system.

Keywords: Heart disease, Machine learning, Classification, XGBoost, GaussianNB, SVM, Stacking, Explainable AI, Prediction, Flask.

NOTE: Without the concern of our team, please don't submit to the college. This Abstract varies based on student requirements.

Block Diagram

Specifications

H/W CONFIGURATION:

Processor                                 - I3/Intel Processor

Hard Disk                                - 160GB

Key Board                               - Standard Windows Keyboard

Mouse                                     - Two or Three Button Mouse

Monitor                                   - SVGA

RAM                                       - 8GB

S/W CONFIGURATION:

β€’      Operating System                    :  Windows 7/8/10

β€’      Server side Script                    :  HTML, CSS, Bootstrap & JS

β€’      Programming Language         :  Python

β€’      Libraries                                  :  Flask, Pandas, MySQL. Connector, Scikit-Learn

β€’      IDE/Workbench                      :  VS Code

β€’      Technology                             :  Python 3.8+

β€’      Server Deployment                 :  Xampp Server

Demo Video