0% found this document useful (0 votes)
18 views16 pages

Conference Paper

This document presents a low-cost, real-time ECG monitoring and arrhythmia detection system using an AD8232 ECG sensor and ESP32 microcontroller, aimed at improving early detection of cardiovascular diseases. The system processes ECG signals, applies machine learning for classification, and enables wireless data transmission for remote monitoring. It offers advantages such as portability, cost-effectiveness, and support for telemedicine applications.

Uploaded by

kechemash19
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views16 pages

Conference Paper

This document presents a low-cost, real-time ECG monitoring and arrhythmia detection system using an AD8232 ECG sensor and ESP32 microcontroller, aimed at improving early detection of cardiovascular diseases. The system processes ECG signals, applies machine learning for classification, and enables wireless data transmission for remote monitoring. It offers advantages such as portability, cost-effectiveness, and support for telemedicine applications.

Uploaded by

kechemash19
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Cardiac Monitoring and Analysis Device

Ananthu J1 , Swaroop Krishna1 , Jithin JS1 , Parthip S1 , and Sankar


Ashok1
1
Department of Electrical and Electronics Engineering, College of
Engineering Perumon, Kollam, Kerala

Abstract
Cardiovascular diseases remain one of the leading causes of mortality world-
wide, necessitating early detection of arrhythmias. This paper presents a low-cost
real-time electrocardiogram (ECG) monitoring and arrhythmia detection system
using the AD8232 ECG sensor module integrated with an ESP32 microcontroller.
The system acquires ECG signals via electrodes, processes them using signal con-
ditioning and digital filtering techniques, and transmits the data to a laptop for
visualization and analysis. Feature extraction is performed using QRS detection
algorithms, and machine learning models trained on the MIT-BIH Arrhythmia
Database are used for classification. The proposed system demonstrates a cost-
effective and portable solution for real-time cardiac monitoring and preliminary
arrhythmia detection.
Keywords: ECG Monitoring, Arrhythmia Detection, AD8232, ESP32, Machine
Learning, Biomedical Signal Processing

1 Introduction

Cardiovascular diseases (CVDs) are one of the leading causes of death around the world.
According to global health reports, millions of people die every year due to heart-related
diseases such as heart attacks, arrhythmia, and heart failure. Early detection and con-
tinuous monitoring of cardiac activity are therefore extremely important for preventing
serious medical conditions and improving patient survival rates.
Electrocardiography (ECG) is a widely used diagnostic technique that records the elec-
trical activity of the heart over time. The ECG waveform contains important components
such as the P wave, QRS complex, and T wave, which provide valuable information about
heart rhythm and cardiac health. Doctors analyze these signals to detect abnormalities
such as irregular heartbeats, conduction disorders, and other cardiovascular problems.

1
Traditional ECG monitoring systems used in hospitals are usually large, expensive,
and require skilled medical personnel to operate. Patients must visit hospitals or diagnos-
tic centers for ECG testing, which makes continuous monitoring difficult. In many cases,
cardiac abnormalities occur unexpectedly and may not be detected during short-term
clinical examinations.
With the rapid advancement of embedded systems, microcontrollers, and biomedical
sensors, portable health monitoring devices have become increasingly popular. Embed-
ded technology allows the development of compact, low-cost, and power-efficient medical
devices capable of continuous physiological monitoring. These systems can acquire bi-
ological signals, process them using microcontrollers, and transmit the data to external
monitoring platforms.
In recent years, the integration of wireless communication and Internet of Things
(IoT) technology has further improved healthcare monitoring systems. Wireless ECG
monitoring devices enable remote patient observation, allowing doctors to analyze patient
data without requiring physical presence in hospitals. This approach is particularly useful
for elderly patients, individuals with chronic heart conditions, and people living in remote
areas.
The main objective of this project is to develop an embedded based external cardiac
monitoring and analysis device capable of acquiring ECG signals and analyzing heart
activity in real time. The proposed system uses ECG electrodes and sensors to capture
cardiac electrical signals, which are then processed by an embedded microcontroller.
The processed data can be displayed or transmitted for further analysis and medical
evaluation.
The developed system aims to provide a portable, reliable, and cost-effective solution
for continuous cardiac monitoring. By combining embedded technology with biomedical
signal processing, the device can assist in early detection of heart abnormalities and
support modern healthcare monitoring systems.

2
2 Literature Review

Several researchers have developed ECG monitoring systems using microcontrollers and
wireless communication technologies [2].
Early systems used analog circuits for ECG signal acquisition and displayed results
on dedicated monitors. Although effective, these systems lacked portability and remote
monitoring capabilities [1].
Recent studies focus on integrating embedded systems with IoT platforms for real-
time health monitoring. Microcontrollers such as Arduino, Raspberry Pi, and ESP32 are
commonly used in these systems [4].
Wearable ECG devices have also been developed for continuous monitoring during
daily activities. These devices use wireless communication technologies such as Bluetooth
and Wi-Fi to transmit data to smartphones or cloud platforms [6].
Advanced ECG signal analysis techniques such as QRS detection algorithms and
biomedical signal processing methods are widely used to analyze heart activity and detect
abnormalities [7].
Despite these developments, many existing systems remain costly or complex. There-
fore, a simplified, low-cost embedded ECG monitoring system is required for wider health-
care accessibility [8].

3 System Architecture

The system architecture of the proposed embedded based external cardiac monitoring and
analysis device consists of several interconnected modules that work together to acquire,
process, and analyze ECG signals. The overall architecture is designed to ensure reliable
signal acquisition, efficient processing, and real-time monitoring of cardiac activity.
The major components of the system are listed below:

• ECG Electrodes: Electrodes are attached to the human body to detect the elec-
trical signals generated by the heart. These electrodes capture the bioelectric signals
and send them to the ECG sensor module for further processing.

3
• ECG Sensor Module: The ECG sensor module (such as AD8232) is responsible
for extracting the weak cardiac electrical signals from the body. It performs initial
signal amplification and filtering to remove noise and interference caused by muscle
activity or external electrical sources.

• Signal Conditioning Unit: The signal conditioning circuit improves the qual-
ity of the ECG signal before it is processed by the microcontroller. It includes
amplification, filtering, and noise reduction techniques to ensure accurate signal
acquisition.

• Embedded Microcontroller Unit: The microcontroller acts as the central pro-


cessing unit of the system. It reads the analog ECG signals through an analog-to-
digital converter (ADC), processes the digital data, and performs calculations such
as heart rate estimation and signal analysis.

• Data Processing and Analysis Module: This module analyzes the ECG wave-
form to identify important features such as heart rate, rhythm patterns, and possible
irregularities. Signal processing algorithms are implemented to detect peaks in the
ECG waveform.

• Wireless Communication Module: The system includes wireless communica-


tion capabilities such as Wi-Fi or Bluetooth to transmit ECG data to external
devices like smartphones, computers, or cloud-based monitoring platforms.

• Display and Monitoring Interface: A monitoring interface is used to visualize


ECG waveforms and heart rate information. This interface may include a serial
monitor, mobile application, or computer-based monitoring software.

• Power Supply Unit: The entire system is powered using a battery or regulated
power supply. A stable power source is necessary to ensure continuous and reliable
operation of the device.

The interaction between these modules enables continuous monitoring of cardiac sig-
nals. The ECG electrodes first detect electrical signals generated by the heart, which are

4
then amplified and filtered by the sensor module. The conditioned signals are fed into
the embedded microcontroller for digital processing and analysis. Finally, the processed
data is displayed or transmitted wirelessly for monitoring and medical evaluation.
The modular architecture of the system allows easy integration with additional health-
care technologies such as cloud storage, mobile health applications, and remote medical
diagnostic systems.

4 Hardware Design

The hardware design of the proposed cardiac monitoring system focuses on accurate
acquisition of ECG signals and reliable processing using an embedded platform. The
system consists of several hardware modules including ECG electrodes, sensor module,
signal conditioning circuit, microcontroller unit, communication interface, and power
supply system.

4.1 ECG Electrodes

ECG electrodes are used to detect the electrical activity generated by the heart. These
electrodes are attached to specific positions on the human body such as the chest or
limbs. The electrodes convert the biopotential signals produced by the heart into electrical
signals that can be processed by electronic circuits.
For this project, three electrodes are typically used: the positive electrode, negative
electrode, and reference electrode. These electrodes help capture differential voltage
signals produced by cardiac activity.

4.2 ECG Sensor Module

The ECG sensor module is responsible for extracting and amplifying weak cardiac electri-
cal signals. The AD8232 ECG sensor module is commonly used due to its high accuracy
and low power consumption.
The sensor performs the following functions:

5
• Amplification of small ECG signals

• Filtering of unwanted noise and interference

• Output of a clean analog ECG signal

This module simplifies the design of biomedical signal acquisition systems by inte-
grating multiple signal conditioning stages.

4.3 Signal Conditioning Circuit

The ECG signals obtained from the human body are extremely small and susceptible to
noise. Therefore, signal conditioning circuits are used to improve signal quality.
The signal conditioning stage typically includes:

• Instrumentation amplifiers for signal amplification

• High-pass filters to remove baseline drift

• Low-pass filters to eliminate high-frequency noise

• Notch filters to suppress power line interference (50/60 Hz)

These circuits ensure that the ECG waveform is clear and suitable for digital process-
ing.

4.4 Microcontroller Unit

The embedded microcontroller acts as the central processing unit of the system. In this
project, an ESP32 microcontroller is used due to its powerful processing capability and
built-in wireless communication features.
The microcontroller performs the following tasks:

• Reading analog ECG signals using ADC

• Converting signals into digital format

6
• Processing ECG waveform data

• Calculating heart rate

• Transmitting data to monitoring devices

The ESP32 also supports Wi-Fi and Bluetooth communication, which allows the
system to transmit ECG data wirelessly.

4.5 Communication Module

The communication module enables transmission of ECG data to external devices for
monitoring and analysis. Wireless communication technologies such as Bluetooth or Wi-
Fi are commonly used.
This allows ECG signals to be viewed on devices such as:

• Smartphones

• Personal computers

• Remote medical monitoring systems

Wireless data transmission improves accessibility and supports remote healthcare


monitoring.

4.6 Power Supply Unit

A stable power supply is necessary for reliable system operation. The device can be
powered using a rechargeable lithium battery or USB power source.
Voltage regulators are used to maintain a constant voltage level for sensitive compo-
nents such as the ECG sensor and microcontroller. Proper power management also helps
reduce noise in ECG signals.

7
Figure 1: Circuit diagram of the embedded based external cardiac monitoring and analysis
device

4.7 Protection and Safety Circuits

Since the device interacts directly with the human body, safety is an important consid-
eration. Protection circuits are included to prevent electrical hazards and ensure safe
operation.
These safety measures include:

• Current limiting resistors

• Isolation circuits

• Proper grounding

• Over-voltage protection

These features help ensure safe and reliable operation of the cardiac monitoring sys-
tem.

8
5 Hardware Implementation

The hardware implementation of the proposed external cardiac monitoring device involves
the integration of ECG electrodes, the ECG sensor module, an embedded microcontroller,
and a power supply unit. The components were carefully assembled to ensure accurate
ECG signal acquisition and reliable system performance.
In the implemented prototype, three ECG electrodes were placed on the human body
to detect electrical signals generated by the heart. These electrodes were connected to the
AD8232 ECG sensor module, which is designed to amplify and filter weak biopotential
signals. The sensor module removes unwanted noise and produces a clean analog ECG
signal suitable for digital processing.
The analog output from the ECG sensor module was connected to the analog input
pin of the ESP32 microcontroller. The built-in analog-to-digital converter (ADC) of
the ESP32 converts the analog ECG signal into digital data. The microcontroller then
processes the data to analyze the ECG waveform and calculate the heart rate.
A USB connection or rechargeable battery was used to provide power to the system.
Voltage regulation circuits ensure that stable power is supplied to both the ECG sensor
module and the microcontroller. Proper grounding and shielding techniques were also
implemented to reduce electrical interference during signal acquisition.
During testing, the ECG waveform was successfully captured and displayed using
a monitoring interface. The implemented hardware prototype proved to be compact,
lightweight, and suitable for portable cardiac monitoring applications. The system can
also be extended to support wireless data transmission and integration with mobile health
monitoring platforms.

6 Software Implementation

The software component is responsible for signal acquisition, processing, and data com-
munication.
The microcontroller is programmed using embedded C through the Arduino IDE. The

9
Figure 2: Hardware implementation of the proposed system

10
software performs the following functions:

• Continuous sampling of ECG signals

• Analog-to-digital conversion

• Noise filtering and signal conditioning

• Heart rate calculation

• Data transmission to external devices

Algorithms are implemented to detect peaks in the ECG waveform, which are used
to calculate heart rate and detect irregular patterns.

7 Working Principle

The working process of the proposed system involves multiple stages from signal acqui-
sition to data analysis.

1. ECG electrodes detect electrical impulses generated by the heart.

2. The signal conditioning circuit amplifies and filters the signal.

3. The microcontroller converts the analog signal into digital form.

4. Embedded algorithms analyze the ECG waveform.

5. Heart rate and abnormalities are detected.

6. Processed data is transmitted to a monitoring system.

This process allows real-time monitoring of cardiac activity and helps identify poten-
tial heart conditions.

11
8 Results and Discussion

The proposed embedded based external cardiac monitoring system was successfully de-
signed and implemented to acquire ECG signals and analyze heart activity in real time.
Experimental testing was carried out to evaluate the performance of the system under
different operating conditions.
The ECG electrodes were attached to the human body to capture cardiac electrical
signals. These signals were detected by the ECG sensor module and transmitted to the
microcontroller for processing. The signal conditioning circuit successfully amplified and
filtered the weak ECG signals, allowing the system to obtain a clear waveform.
The microcontroller continuously sampled the analog ECG signals and converted them
into digital data using its built-in analog-to-digital converter (ADC). The acquired signals
were processed using embedded algorithms to detect peaks in the ECG waveform. Based
on the detected peaks, the heart rate was calculated accurately.
The experimental results showed that the system was able to display ECG waveforms
and heart rate values in real time. The ECG waveform clearly showed the important
components such as the P wave, QRS complex, and T wave, which are essential for
analyzing cardiac activity.
The device demonstrated stable operation during continuous monitoring. The signal
filtering techniques helped reduce noise caused by motion artifacts and external electrical
interference. This improved the accuracy and reliability of the captured ECG signals.
In addition, the wireless communication capability of the system allowed ECG data
to be transmitted to external monitoring devices. This enables remote observation of
patient health and supports telemedicine applications.
The developed prototype was tested on multiple subjects to verify its reliability and
consistency. The results obtained were comparable to standard ECG monitoring methods
used in clinical environments.
Overall, the system demonstrated effective performance in terms of signal acquisition,
processing speed, and monitoring capability. The proposed device provides a portable
and cost-effective solution for continuous cardiac monitoring and early detection of heart

12
abnormalities.

9 ADVANTAGES OF THE PROPOSED SYSTEM

The proposed embedded based external cardiac monitoring system offers several advan-
tages compared to conventional ECG monitoring systems.

• Portability: The compact and lightweight design of the system allows it to be


easily carried and used in different environments such as homes, clinics, and remote
locations.

• Cost-Effective Solution: The use of low-cost embedded components reduces the


overall cost of the device compared to traditional hospital ECG machines, making
it accessible for wider healthcare applications.

• Real-Time Monitoring: The system enables continuous monitoring of cardiac


activity and provides real-time ECG waveform visualization and heart rate analysis.

• Early Detection of Cardiac Abnormalities: Continuous monitoring helps in


identifying irregular heart rhythms and other cardiac abnormalities at an early
stage, which can improve patient safety and treatment outcomes.

• Wireless Data Transmission: The integration of wireless communication tech-


nologies allows ECG data to be transmitted to external devices for remote moni-
toring and analysis.

• Low Power Consumption: The embedded design ensures efficient power utiliza-
tion, allowing the system to operate for long durations using battery power.

• Ease of Use: The device is simple to operate and does not require complex medical
equipment, making it suitable for use by patients at home.

• Support for Remote Healthcare: The system can be integrated with telemedicine
platforms, enabling doctors to monitor patient health remotely and provide timely
medical advice.

13
10 APPLICATIONS OF THE PROPOSED SYS-

TEM

The proposed embedded based external cardiac monitoring and analysis device can
be applied in several healthcare and research areas due to its portability, real-time
monitoring capability, and low cost.

– Continuous Cardiac Monitoring: The device can be used for continuous


monitoring of heart activity in patients with cardiovascular diseases, helping
doctors track changes in heart rhythm over long periods.

– Home Healthcare Systems: Patients can monitor their heart condition at


home without frequent hospital visits, making healthcare more convenient and
accessible.

– Remote Patient Monitoring: The system can transmit ECG data to doc-
tors through wireless communication, enabling remote diagnosis and medical
consultation.

– Telemedicine Applications: The device can be integrated with telemedicine


platforms to support virtual healthcare services and remote medical assistance.

– Emergency Health Monitoring: Portable ECG monitoring devices can


assist in emergency situations by providing quick information about a patient’s
heart condition.

– Medical Research and Education: The system can be used in biomedical


research laboratories and educational institutions to study ECG signals and
cardiac behavior.

– Wearable and Smart Health Devices: The proposed system can be in-
tegrated with wearable health monitoring technologies and smart healthcare
devices for continuous physiological monitoring.

14
11 CONCLUSION

This paper presented the design and implementation of an embedded based exter-
nal cardiac monitoring and analysis device for real-time ECG signal acquisition and
monitoring. The proposed system integrates ECG electrodes, a sensor module, sig-
nal conditioning circuits, and an embedded microcontroller to capture and process
cardiac electrical signals efficiently.

The developed device is capable of continuously monitoring heart activity and de-
tecting important ECG waveform components such as the P wave, QRS complex,
and T wave. The use of proper signal amplification and filtering techniques ensures
improved signal quality and reliable ECG data acquisition.

The system was successfully tested and demonstrated the ability to measure heart
rate and display ECG signals in real time. The compact design and low power
consumption make the device suitable for portable applications and continuous
health monitoring.

The proposed device provides a cost-effective solution compared to traditional hos-


pital ECG machines and can be used in home healthcare, remote patient monitoring,
and telemedicine applications. Continuous cardiac monitoring using such embed-
ded systems can help in early detection of heart abnormalities and improve patient
safety.

Future improvements may include integration with mobile applications, cloud-based


health monitoring systems, and advanced signal processing algorithms for more
accurate diagnosis and long-term health data analysis.

References

[1] J. G. Webster, Medical Instrumentation: Application and Design, 4th ed., John
Wiley & Sons, 2014.

15
[2] S. M. Rangayyan, Biomedical Signal Analysis: A Case Study Approach, IEEE
Press, 2015.

[3] Analog Devices, AD8232 Heart Rate Monitor Front End Datasheet, Analog
Devices Inc.

[4] Espressif Systems, ESP32 Technical Reference Manual, Espressif Systems,


2020.

[5] G. B. Moody and R. G. Mark, “The Impact of the MIT-BIH Arrhythmia


Database,” IEEE Engineering in Medicine and Biology Magazine, vol. 20, no.
3, pp. 45–50, 2001.

[6] Y. Zheng, X. Ding, C. C. Y. Poon, et al., “Unobtrusive Sensing and Wearable


Devices for Health Monitoring,” IEEE Transactions on Biomedical Engineer-
ing, vol. 61, no. 5, pp. 1538–1554, 2014.

[7] P. S. Hamilton, “Open Source ECG Analysis Software Documentation,” Com-


puters in Cardiology, pp. 101–104, 2002.

[8] World Health Organization, “Cardiovascular Diseases (CVDs) Fact Sheet,”


WHO, 2023.

[9] M. Elgendi, “Fast QRS Detection with an Optimized Knowledge-Based


Method,” Sensors, vol. 13, no. 5, pp. 5472–5491, 2013.

[10] L. Sörnmo and P. Laguna, Bioelectrical Signal Processing in Cardiac and Neu-
rological Applications, Academic Press, 2005.

16

You might also like