Ilovepdf Merged
Ilovepdf Merged
Submitted by:
NIKITA (3BK20CS018)
PAWAN RAJU (3BK20CS020)
KASTURI (3BK20CS011)
ASHISH(3BK20CS004)
Certificate
This is to Certify that the Project work entitled “APPLYING ARTIFICIAL
INTELLIGENCE TO WEARABLE SENSOR DATA TO DIAGNOSE AND
PREDICT CARDIOVASCULAR DISEASE” is a bonafide work carried out by
NIKITA (3BK20CS018), PAWAN RAJU (3BK20CS020), KASTURI (3BK20CS011)
, ASHISH(3BK20CS004) of VII semester in partial fulfillment for the award of
Bachelor of Engineering in Department of Computer Science & Engineering of
Visvesvaraya Technological University, Belagavi during the year 2023- 2024. It is
certified that corrections/suggestions indicated for internal assessments have been
incorporated in the report deposited in departmental library. The project work phase 1 has
been approved as it satisfies the academic requirements in respect of project work
prescribed for the Bachelor of Engineering Degree
2…………………………………..
ACKNOWLEDGMENT
We would like to sincerely thank our Project Guide Prof. Viresha sugoor , and Project
Coordinator Prof. Suvarnalata hiremath for their valuable guidance, constant assistance,
support, endurance and constructive suggestions for the betterment of the project, without
which this project would not have been possible.
We would like to convey heart full thanks to our Head of Department Prof. Suvarnalata
Hiremath for giving us the opportunity to embark upon this topic and for her continue
encouragement throughout the preparation of this presentation.
We acknowledge and express our sincere thanks to our beloved Principal Dr.Ashok kumar
Vangeri for supporting our in the academic endeavors.
We also indebted to our friends for their continued moral and material support throughout the
course of the project report and in helping us finalize the presentation.
Our heartfelt thanks to all the staff members of CSE department, who have contributed bits,
bytes and words to accomplish this project.
NIKITA(3BK20CS018)
KASTURI (3BK20CS011)
ASHISH(3BK20CS004)
DECLARATION
We hereby declare that the project report entitled “APPLYING ARTIFICIAL INTILLEGENCE TO
WEARABLE SENSOR DATA TO DIAGNOSE AND PREDICT CARDIOVASCULAR DISEASE”
submitted by us to Institution/Visvesvaraya Technological University, Belagavi in Partial fulfillment of
the requirement for the award of the degree of BE in CSE is a record of bonafide Project work carried out
by us under the guidance of Prof.Viresha sugoor and Project coordinator Prof. Suvarnalata hiremath
We further declare that the work reported in this project followed the guidelines provided by the
VTU/Institute in preparing the project report.
Department Vision
The Vision of the department is to provide high academic goals to the students and
make them the world leaders both in Educational and Research through effective
Teaching & Learning.
Department Mission
Abstract
01 Introduction 01
1.1 Introduction 01
1.2 Overview 02
1.3 Objective 03
1.5 Methodology 03
02 Literature Survey 05
03 System Requirement 07
04 Design Of Projects 10
4.1 ML Model 10
05 Implementation 14
07 Conclusion 19
Reference 20
APPLYING ARTIFICIAL INTELLIGENCE TO WEARABLE SENSOR DATA TO DIAGNOSE AND PREDICT
CARDIOVASCULAR DISEASE
CHAPTER 1
INTRODUCTION
1.1 Introduction
1.1.1 AI & ML:
Artificial Intelligence (AI) and Machine Learning (ML) stand at the
forefront of technological evolution, reshaping the landscape of computing and
human-machine interactions. AI, a broad concept, encapsulates the
development of intelligent agents capable of mimicking human-like cognitive
functions, while ML, a subset of AI, focuses on creating algorithms that enable
machines to learn and improve from experience. The surge in interest and
progress in these fields is fueled by increased computational power, the
availability of vast datasets, and algorithmic refinements. AI applications,
ranging from Narrow AI tailored for specific tasks to the aspirational concept
of General AI with human-like abilities, have found their way into diverse
domains, influencing healthcare, finance, autonomous vehicles, and natural
language processing. Machine Learning, a driving force behind AI
advancements, involves training algorithms on data, enabling them to identify
patterns and make predictions autonomously. While these technologies bring
about transformative changes, ethical considerations, including bias in
algorithms and data privacy concerns, underline the importance of responsible
development and deployment. The impact of AI and ML is palpable in everyday
life, from virtual assistants to personalized healthcare solutions, heralding an
era of innovation with implications that extend far beyond the realms of
technology.
Artificial Intelligence (AI) and Machine Learning (ML) represent
transformative fields at the intersection of computer science and technology,
promising to reshape the way we perceive and interact with information and
systems. AI, a broad concept, encompasses the development of intelligent
agents capable of performing tasks that typically require human intelligence,
such as problem-solving, perception, speech recognition, and decision-making.
Machine Learning, a subset of AI, focuses on the creation of algorithms and
statistical models that enable computer systems to learn and improve from
experience without being explicitly programmed.
❖ Autonomous Vehicles
❖ Language Translation
❖ Image and Speech Recognition
❖ Predictive Maintenance in Manufacturing
❖ Customer Service Chatbots
❖ Credit Scoring and Risk Assessment
❖ Supply Chain Optimization
❖ Human Resources and Recruitment
1.1.3WHAT IS PYTHON :
1.2 Overview
According to the World Health Organization, heart disease is the first
leading cause of death in the high and second leading cause of death in low-
income countries. It has remained the leading cause of death at the global level
for the last 20 years. This project aims to analyze several data mining
techniques implemented in recent years for diagnosing heart disease.
At present, there are plenty of algorithms available that could detect and
predict heart anomalies from clinical reports. However, in this project, the
focus is more on discovering and extracting patterns from Electrocardiogram
(ECG or EKG) image reports. By digitizing ECG records, the need for time
consuming manual intervention for comprehending the report can be
eliminated. With digitization, the automation of diagnosis and analysis can be
achieved quicker.
1.3 Objective
This project seeks to address the pervasive issue of heart disease,
acknowledged as the foremost cause of death globally by the World Health
Organization for the past two decades. The primary objective is to scrutinize
and evaluate various data mining techniques implemented in recent years for
diagnosing heart disease. While numerous algorithms currently exist for
detecting and predicting heart anomalies from clinical reports, this project
uniquely shifts its focus to the realm of Electrocardiogram (ECG or EKG)
image reports. The pivotal goal is to discover and extract patterns within these
ECG records, a departure from traditional approaches, with the specific intent
of reducing the need for time-consuming manual intervention in
comprehending the reports. By advocating for the digitization of ECG records,
the project aims to streamline and expedite the automation of diagnosis and
analysis
1.6 SCOPE
❖ Global Significance of Heart Disease
❖ Focus on Analyzing Data Mining Techniques
❖ Multidimensional Exploration
❖ Automation of Diagnosis and Analysis
❖ Elimination of Manual Intervention
❖ Digitization of ECG Records
CHAPTER 2
LITERATURE SURVEY
CHAPTER 3
SYSTEM REQUIREMENT
➢ Python
➢ Google Collab
➢ Github
➢ Docker
➢ Stream It
➢ Browser
➢ Arduino IDE
➢ Jupyter
➢ Windows
The Uno differs from all preceding boards in that it does not use the
FTDI USB-to-serial driver chip. Instead, it features the Atmega16U2
(Atmega8U2 up to version R2) programmed as a USB-to-serial converter.
Revision 2 of the Uno board has a resistor pulling the 8U2 HWB line to ground,
making it easier to put into DFU mode. Revision 3 of the board has the
following new features:
Microcontroller ATmega328
Operating Voltage 5V
Input Voltage (recommended) 7-12V
Input Voltage (limits) 6-20V
Digital I/O Pins 14 (of which 6 provide PWM output)
Analog Input Pins 6
DC Current per I/O Pin 40 mA
DC Current for 3.3V Pin 50 mA
Flash Memory 32 KB of which 0.5 KB used bybbootloader
SRAM 2 KB
EEPROM 1 KB
Clock Speed 16 MHz
CHAPTER 4
DESIGN OF PROJECT
4.1 ML MODEL :
We tested various algorithms and then utilized the enable technique
to stack algorithms to enhance performance because it was a classification
problem.
Algorithms tested:
1. k-nearest neighbors (KNN)
2. Logistic Regression
3. Support Vector Machine (SVM)
4. Xgboost
5. GridSearchCV
4.1.4 Xgboost :
XGBoost is an implementation of gradient boosted decision trees
designed for speed and performance that is dominative competitive
machine learning.
4.1.4 GridSearchCV :
Under Voting-based Ensemble classification, three Machine
learning models like k-nearest neighbors (KNN), Support Vector Machine
(SVM) and Random Forest Classifier are stacked and voted to pick one
model which gives the highest accuracy.
CHAPTER 5
IMPLIMENTATION
Fig.5.1.DEVELOPMENT ARCHITECTURE
5.3.1 Python :
Python is a high-level, versatile programming language known for its
readability and simplicity. It's widely used for diverse applications, from web
development to data analysis and artificial intelligence. With a dynamic typing
system, Python supports object-oriented programming and emphasizes code
readability through indentation. It is interpreted, facilitating rapid development
and debugging. Python's extensive standard library includes modules for
various tasks, reducing reliance on external libraries. The language has a vibrant
community, contributing to its rich ecosystem of third-party libraries. Python is
cross-platform, making it compatible with Windows, macOS, and Linux. A
classic "Hello, World!" program demonstrates its straightforward syntax.
5.3.3 Docker :
Docker is a containerization platform simplifying application
deployment. It encapsulates applications and their dependencies into
lightweight, portable containers for consistent performance across diverse
environments. Operating as standalone units, these containers ensure seamless
deployment and scalability. Docker's client-server model facilitates easy
management, allowing developers to build, run, and share applications
efficiently. This technology has revolutionized software development, offering
a standardized approach that enhances portability and accelerates the
deployment process, making it a fundamental tool for modern DevOps
practices.
5.4.1 ECG(ELECTROCARDIOGRAM):
What is ECG:- An electrocardiogram (ECG) is a simple test
that can be used to check your heart's rhythm and electrical activity
The above dataset contains ECG image signals from both healthy
individuals and persons with cardiovascular problems.
All the ECG images from the above Mendeley dataset are parsed and
transformed per our business requirements. This is the most important phrase
of our application (data preparation, data cleaning, data engineering and feature
extraction).Each one of the images goes through various processes to extract
the data in resultant format.
CHAPTER 6
CHAPTER 7
CONCLUSION
REFERENCE
• Solam Lee, Y. Chu, Jiseung Ryu, Y. Park, Sejung Yang, S. Koh Published
in Yonsei medical journal 1 January 2022