SlideShare a Scribd company logo
1 of 21
FPGA Design and Implementation of
Electrocardiogram Biomedical
Embedded System
Nur Sabrina Risman, Siti Norhayati Md Yassin, Sia Chen Wei, Dr Hau Yuan Wen, Dr Nazrul Anuar
Nayan
Universiti Kebangsaan Malaysia, 43600 UKM Bangi, Selangor, Malaysia
Universiti Teknologi Malaysia, UTM Skudai, 81300 Johor, Malaysia
Outline
• Introduction
• Objective
• ECG-SoC System Functionality
• Methodology
• Results and Discussions
• Conclusions
Outline 2
Introduction
Introduction
3
Cardiovascular disease account
the largest proportion of deaths up
to 48 % (world health statistics report 2012)
• It is estimated that 7.3 million were
due to the Coronary heart disease.
• 6.2 million are stroke problem.
• Human heart rate activity can be
electrically recorded in the form of
electrocardiogram (ECG) signal using
a non-invasive tool.
• ECG can readily reveal a number of
heart malfunctions or disorders.
Introduction 4
The main challenges of an ECG devices arises from the…
• Processing huge amount of large scale ECG data analysis in parallel.
• Real-time computation under stringent time constraint.
• Transmission of huge amount data over a communication link to a large
set of computing devices on another location under life critical condition.
• portable ECG monitoring device is desired with improved accuracy and
integrates more functionality to fit in homecare services with acceptable
performance.
Objectives
1. To prototype the ECG-SoC on Altera Cyclone II DE2 board to form an
embedded portable system which suitable for home care and health
monitoring.
2. To performs ECG pre-processing and heart rate variability (HRV)
feature extraction based on offline dataset using ECG-SoC
hardware/software co-design technique.
Objective 5
Figure 1. Block diagram of ECG pre-processing and HRV feature extraction
ECG-SoC System Functionality 7
ECG-SoC System Functionality
Introduction 8
•The squaring function is replaced by the absolute function to speed up the
computation by toggling all negative peaks that possible to generate positive
values.
•The moving window integration is applied to smooth out the data.
•After QRS complex detection, the ECG signal is transformed into the valley-
like signal which has two peaks with significant different height. To detect
heartbeat from ECG signal, the R peaks of QRS complex are used.
•In the R-R interval module, the peak of the ECG signal is detected by
comparing the current value with next eight values. The larger values than the
next eight values and greater than a set threshold level are treated as the R
peak values of ECG.
Introduction 9
• In the next block unit, the interpolation is done between two R-R intervals to
obtain a continuous R-R intervals result from the calculation of the detected
peaks. The reciprocal of the R-R interval is heart rate value in Hertz (s-1).
• However, common unit for heart rate is min-1. To gain the heart rate value
in min-1, multiply the reciprocal of the R-R interval by 60. The continuous
heart rate is then resampled at 4 Hz.
• Then, Fast Fourier Transform (FFT) is applied to the resampled signal to
get the power spectrum of the R-R interval data. The FFT is performed for
both real and imaginary parts.
Methodology
• The ECG-SoC architecture consists of both hardware and software
partitions.
Methodology 10
Hardware partitions Software partitions
on chip memory
phase-locked loop
I/O controllers.
Quartus II
SOPC Builder
Nios II IDE
Nios II-Linux cross compiler
Figure 2 ECG-SoC Cyclone II FPGA
ECG-SoC System Functionality 11
Introduction 12
 The hardware partition (3) consists of on chip memory or external
memory controllers, phase-locked loop and I/O controllers.
 The memory modules store the image of embedded operation system
which consists of program, MIT-BIH offline database, and other
important files, as well as temporary storage during application
execution.
 The phase-locked loop controls the system clock signal and running
frequency.
 While, the I/O controller communicates and transmit the data external to
the outside world.
 Among all these peripherals, there is a system bus which provides a
communication channel according to Avalon bus switch fabric protocol.
A. System Hardware Architecture Design
B. Nios II-Linux Embedded Operating
System Development
C. ECG Biomedical Signal Processing
Applications with software
configuration
D. System Integration
Figure 3. ECG-SoC Design Methodology
13
Introduction 14
A. System Hardware Architecture Design
 The general purpose Nios II CPU, memory and other standard
peripherals are defined to form a standard Nios II system using SOPC
Builder.
 SOPC Builder generates multiple Verilog HDL (.v) files and the system
configuration file (.ptf) which later is going to be used in configuring.
 The compilation process is then started to perform the synthesis,
fitting and timing analysis process to generate the netlist and hardware
programming file (.sof/.pof) which is ready to be downloaded into Altera
FPGA development board in final system integration.
Introduction 15
B. Nios II-Linux Embedded Operating System Development
Nios II-Linux is a terminal-based Linux embedded operating system,
which it can run and compile Linux based programs and libraries.
To compile the Nios II-Linux kernel of ECG-SoC, the system
configuration files (.ptf) of the targeted hardware system generated by
SOPC Builder is required to configure and compiling the Linux kernel.
Moreover, the Linux kernel, peripheral device kernel library also needs to
be identified and installed.
Methodology 16
C. ECG Biomedical Signal Processing Applications with software
configuration
This task requires the embedded software development of the ECG
biomedical signal processing modules, such as ECG signal pre-processing
and HRV feature extraction based on the well established algorithm.
The embedded software also generates output data files which later
executed by a host PC for graph plotting for post analysis.
Since Nios II-Linux is an embedded OS with the target processor set to
Altera Nios II CPU, the ECG biomedical signal processing application
software program must be cross compiled before it is executed by the Nios II
processor. This task can be done by using the binary tool chain and libraries.
The kernel is then recompiled again to produce a new zImage file and ready
to be downloaded into the Altera FPGA development board.
Introduction 17
D. System Integration
In the final system integration, the hardware programming file (.sof) and
the updated Nios II-Linux zImage file is both downloaded into Altera
Cyclone II platform for system functionality verification and perform the
evaluation.
Results and Discussions
• Table 1. contains description of
the ECG system specifications.
Results and Discussions 18
Specifications Values
Sampling Frequency 200 Hz
Threshold Value 8000 Hz
Resampling Frequency 4 Hz
Total ECG data 120 000
FFT Count 1024
Results and Discussions 19
Figure 3. Differential Signal Figure 4. Smoothed Signal
Results and Discussions 20
Figure 5. Interpolation Figure 6. Resampling
Results and Discussions 21
Figure 7. FFT output Figure 8. Integrated power spectrum versus
Frequency
Conclusion
• This paper has presented a SoC based ECG biomedical embedded
system (ECG-SoC) design using hardware/software co-design technique
and Altera technology to perform ECG pre-processing and HRV feature
extraction based on offline dataset.
• The main limitation of this system is the time consuming embedded
software execution causes the system performance bottleneck.
• For the future recommendation ; -
a) the hardware accelerator is desired to boost up the computation
performance.
b) The ECG signal acquisition unit is designed for online monitoring
c) Integrates state-of-the-art algorithm for heart disease detection as
a decision support system.
Conclusion
22

More Related Content

What's hot (20)

Smart Fabrics by Sunil Bandotra
Smart Fabrics by Sunil BandotraSmart Fabrics by Sunil Bandotra
Smart Fabrics by Sunil Bandotra
 
Polytronics
PolytronicsPolytronics
Polytronics
 
6 g mobile technology
6 g mobile technology6 g mobile technology
6 g mobile technology
 
Mems microphone
Mems microphoneMems microphone
Mems microphone
 
Electronics and communication
 Electronics and communication  Electronics and communication
Electronics and communication
 
3D ICs
3D ICs3D ICs
3D ICs
 
Presentation on Industrial training in VLSI
Presentation on Industrial training in VLSI Presentation on Industrial training in VLSI
Presentation on Industrial training in VLSI
 
Smart dust
Smart dustSmart dust
Smart dust
 
Smart fabrics
Smart fabricsSmart fabrics
Smart fabrics
 
3 d integrated circuits
3 d integrated circuits3 d integrated circuits
3 d integrated circuits
 
wearable technology
 wearable technology wearable technology
wearable technology
 
Flexible electronic skin
Flexible electronic skinFlexible electronic skin
Flexible electronic skin
 
EC6612 VLSI Design Lab Manual
EC6612 VLSI Design Lab ManualEC6612 VLSI Design Lab Manual
EC6612 VLSI Design Lab Manual
 
Neural interfacing
Neural interfacingNeural interfacing
Neural interfacing
 
Electronic stethoscope academic white paper
Electronic stethoscope academic white paperElectronic stethoscope academic white paper
Electronic stethoscope academic white paper
 
Wearable Biosensors
Wearable BiosensorsWearable Biosensors
Wearable Biosensors
 
Mems ppt svit
Mems ppt svitMems ppt svit
Mems ppt svit
 
FLEXIBLE ELECTRONIC SKIN
FLEXIBLE ELECTRONIC SKINFLEXIBLE ELECTRONIC SKIN
FLEXIBLE ELECTRONIC SKIN
 
WEARABLE BIOSENSORS
WEARABLE BIOSENSORSWEARABLE BIOSENSORS
WEARABLE BIOSENSORS
 
inter vehicle communication
inter vehicle communicationinter vehicle communication
inter vehicle communication
 

Similar to FPGA Design and Implementation of Electrocardiogram Biomedical Embedded System

-1348064572-13. electronics - ijeceierd - design and - sapna katiyar - unpaid
 -1348064572-13. electronics - ijeceierd - design and - sapna katiyar - unpaid -1348064572-13. electronics - ijeceierd - design and - sapna katiyar - unpaid
-1348064572-13. electronics - ijeceierd - design and - sapna katiyar - unpaidsairamreddy siddu
 
An ECG-on-Chip for Wearable Cardiac Monitoring Devices
An ECG-on-Chip for Wearable Cardiac Monitoring Devices An ECG-on-Chip for Wearable Cardiac Monitoring Devices
An ECG-on-Chip for Wearable Cardiac Monitoring Devices ecgpapers
 
International Journal of Computational Engineering Research (IJCER)
International Journal of Computational Engineering Research (IJCER) International Journal of Computational Engineering Research (IJCER)
International Journal of Computational Engineering Research (IJCER) ijceronline
 
An Efficient System Of Electrocardiogram Data Acquisition And Analysis Using ...
An Efficient System Of Electrocardiogram Data Acquisition And Analysis Using ...An Efficient System Of Electrocardiogram Data Acquisition And Analysis Using ...
An Efficient System Of Electrocardiogram Data Acquisition And Analysis Using ...IJTET Journal
 
Implementation of an Improved Microcontroller Based Moving Message Display Sy...
Implementation of an Improved Microcontroller Based Moving Message Display Sy...Implementation of an Improved Microcontroller Based Moving Message Display Sy...
Implementation of an Improved Microcontroller Based Moving Message Display Sy...IOSR Journals
 
Implementation of an Improved Microcontroller Based Moving Message Display Sy...
Implementation of an Improved Microcontroller Based Moving Message Display Sy...Implementation of an Improved Microcontroller Based Moving Message Display Sy...
Implementation of an Improved Microcontroller Based Moving Message Display Sy...IOSR Journals
 
Implementation of an Improved Microcontroller Based Moving Message Display Sy...
Implementation of an Improved Microcontroller Based Moving Message Display Sy...Implementation of an Improved Microcontroller Based Moving Message Display Sy...
Implementation of an Improved Microcontroller Based Moving Message Display Sy...IOSR Journals
 
Implementation of an Improved Microcontroller Based Moving Message Display Sy...
Implementation of an Improved Microcontroller Based Moving Message Display Sy...Implementation of an Improved Microcontroller Based Moving Message Display Sy...
Implementation of an Improved Microcontroller Based Moving Message Display Sy...IOSR Journals
 
ECG SIGNAL ACQUISITION, FEATURE EXTRACTION AND HRV ANALYSIS USING BIOMEDICAL ...
ECG SIGNAL ACQUISITION, FEATURE EXTRACTION AND HRV ANALYSIS USING BIOMEDICAL ...ECG SIGNAL ACQUISITION, FEATURE EXTRACTION AND HRV ANALYSIS USING BIOMEDICAL ...
ECG SIGNAL ACQUISITION, FEATURE EXTRACTION AND HRV ANALYSIS USING BIOMEDICAL ...IAEME Publication
 
FPGA BASED HEARTBEATS MONITOR WITH FINGERTIP OPTICAL SENSOR
FPGA BASED HEARTBEATS MONITOR WITH FINGERTIP OPTICAL SENSOR FPGA BASED HEARTBEATS MONITOR WITH FINGERTIP OPTICAL SENSOR
FPGA BASED HEARTBEATS MONITOR WITH FINGERTIP OPTICAL SENSOR ijcseit
 
FPGA BASED HEARTBEATS MONITOR WITH FINGERTIP OPTICAL SENSOR
FPGA BASED HEARTBEATS MONITOR WITH FINGERTIP OPTICAL SENSORFPGA BASED HEARTBEATS MONITOR WITH FINGERTIP OPTICAL SENSOR
FPGA BASED HEARTBEATS MONITOR WITH FINGERTIP OPTICAL SENSORijcseit
 
Fpga based heartbeats monitor with
Fpga based heartbeats monitor withFpga based heartbeats monitor with
Fpga based heartbeats monitor withijcseit
 
A 32 channel modular multi input data acquisition system for
A 32 channel modular multi input data acquisition system forA 32 channel modular multi input data acquisition system for
A 32 channel modular multi input data acquisition system forAlexander Decker
 
A 32 channel modular multi input data acquisition system for
A 32 channel modular multi input data acquisition system forA 32 channel modular multi input data acquisition system for
A 32 channel modular multi input data acquisition system forAlexander Decker
 
Embedded processor system for controllable period-width multichannel pulse wi...
Embedded processor system for controllable period-width multichannel pulse wi...Embedded processor system for controllable period-width multichannel pulse wi...
Embedded processor system for controllable period-width multichannel pulse wi...TELKOMNIKA JOURNAL
 
Design and Implementing Novel Independent Real-Time Software Programmable DAQ...
Design and Implementing Novel Independent Real-Time Software Programmable DAQ...Design and Implementing Novel Independent Real-Time Software Programmable DAQ...
Design and Implementing Novel Independent Real-Time Software Programmable DAQ...Editor IJCATR
 
Making of a PD Data Acqusition System
Making of a PD Data Acqusition SystemMaking of a PD Data Acqusition System
Making of a PD Data Acqusition SystemVishal Mathur
 

Similar to FPGA Design and Implementation of Electrocardiogram Biomedical Embedded System (20)

-1348064572-13. electronics - ijeceierd - design and - sapna katiyar - unpaid
 -1348064572-13. electronics - ijeceierd - design and - sapna katiyar - unpaid -1348064572-13. electronics - ijeceierd - design and - sapna katiyar - unpaid
-1348064572-13. electronics - ijeceierd - design and - sapna katiyar - unpaid
 
An ECG-on-Chip for Wearable Cardiac Monitoring Devices
An ECG-on-Chip for Wearable Cardiac Monitoring Devices An ECG-on-Chip for Wearable Cardiac Monitoring Devices
An ECG-on-Chip for Wearable Cardiac Monitoring Devices
 
International Journal of Computational Engineering Research (IJCER)
International Journal of Computational Engineering Research (IJCER) International Journal of Computational Engineering Research (IJCER)
International Journal of Computational Engineering Research (IJCER)
 
An Efficient System Of Electrocardiogram Data Acquisition And Analysis Using ...
An Efficient System Of Electrocardiogram Data Acquisition And Analysis Using ...An Efficient System Of Electrocardiogram Data Acquisition And Analysis Using ...
An Efficient System Of Electrocardiogram Data Acquisition And Analysis Using ...
 
Implementation of an Improved Microcontroller Based Moving Message Display Sy...
Implementation of an Improved Microcontroller Based Moving Message Display Sy...Implementation of an Improved Microcontroller Based Moving Message Display Sy...
Implementation of an Improved Microcontroller Based Moving Message Display Sy...
 
Implementation of an Improved Microcontroller Based Moving Message Display Sy...
Implementation of an Improved Microcontroller Based Moving Message Display Sy...Implementation of an Improved Microcontroller Based Moving Message Display Sy...
Implementation of an Improved Microcontroller Based Moving Message Display Sy...
 
Implementation of an Improved Microcontroller Based Moving Message Display Sy...
Implementation of an Improved Microcontroller Based Moving Message Display Sy...Implementation of an Improved Microcontroller Based Moving Message Display Sy...
Implementation of an Improved Microcontroller Based Moving Message Display Sy...
 
E010132736
E010132736E010132736
E010132736
 
Implementation of an Improved Microcontroller Based Moving Message Display Sy...
Implementation of an Improved Microcontroller Based Moving Message Display Sy...Implementation of an Improved Microcontroller Based Moving Message Display Sy...
Implementation of an Improved Microcontroller Based Moving Message Display Sy...
 
ECG SIGNAL ACQUISITION, FEATURE EXTRACTION AND HRV ANALYSIS USING BIOMEDICAL ...
ECG SIGNAL ACQUISITION, FEATURE EXTRACTION AND HRV ANALYSIS USING BIOMEDICAL ...ECG SIGNAL ACQUISITION, FEATURE EXTRACTION AND HRV ANALYSIS USING BIOMEDICAL ...
ECG SIGNAL ACQUISITION, FEATURE EXTRACTION AND HRV ANALYSIS USING BIOMEDICAL ...
 
Report
ReportReport
Report
 
bds project final documentation
bds project final documentation bds project final documentation
bds project final documentation
 
FPGA BASED HEARTBEATS MONITOR WITH FINGERTIP OPTICAL SENSOR
FPGA BASED HEARTBEATS MONITOR WITH FINGERTIP OPTICAL SENSOR FPGA BASED HEARTBEATS MONITOR WITH FINGERTIP OPTICAL SENSOR
FPGA BASED HEARTBEATS MONITOR WITH FINGERTIP OPTICAL SENSOR
 
FPGA BASED HEARTBEATS MONITOR WITH FINGERTIP OPTICAL SENSOR
FPGA BASED HEARTBEATS MONITOR WITH FINGERTIP OPTICAL SENSORFPGA BASED HEARTBEATS MONITOR WITH FINGERTIP OPTICAL SENSOR
FPGA BASED HEARTBEATS MONITOR WITH FINGERTIP OPTICAL SENSOR
 
Fpga based heartbeats monitor with
Fpga based heartbeats monitor withFpga based heartbeats monitor with
Fpga based heartbeats monitor with
 
A 32 channel modular multi input data acquisition system for
A 32 channel modular multi input data acquisition system forA 32 channel modular multi input data acquisition system for
A 32 channel modular multi input data acquisition system for
 
A 32 channel modular multi input data acquisition system for
A 32 channel modular multi input data acquisition system forA 32 channel modular multi input data acquisition system for
A 32 channel modular multi input data acquisition system for
 
Embedded processor system for controllable period-width multichannel pulse wi...
Embedded processor system for controllable period-width multichannel pulse wi...Embedded processor system for controllable period-width multichannel pulse wi...
Embedded processor system for controllable period-width multichannel pulse wi...
 
Design and Implementing Novel Independent Real-Time Software Programmable DAQ...
Design and Implementing Novel Independent Real-Time Software Programmable DAQ...Design and Implementing Novel Independent Real-Time Software Programmable DAQ...
Design and Implementing Novel Independent Real-Time Software Programmable DAQ...
 
Making of a PD Data Acqusition System
Making of a PD Data Acqusition SystemMaking of a PD Data Acqusition System
Making of a PD Data Acqusition System
 

Recently uploaded

Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesPrabhanshu Chaturvedi
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 

Recently uploaded (20)

Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and Properties
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 

FPGA Design and Implementation of Electrocardiogram Biomedical Embedded System

  • 1. FPGA Design and Implementation of Electrocardiogram Biomedical Embedded System Nur Sabrina Risman, Siti Norhayati Md Yassin, Sia Chen Wei, Dr Hau Yuan Wen, Dr Nazrul Anuar Nayan Universiti Kebangsaan Malaysia, 43600 UKM Bangi, Selangor, Malaysia Universiti Teknologi Malaysia, UTM Skudai, 81300 Johor, Malaysia
  • 2. Outline • Introduction • Objective • ECG-SoC System Functionality • Methodology • Results and Discussions • Conclusions Outline 2
  • 3. Introduction Introduction 3 Cardiovascular disease account the largest proportion of deaths up to 48 % (world health statistics report 2012) • It is estimated that 7.3 million were due to the Coronary heart disease. • 6.2 million are stroke problem. • Human heart rate activity can be electrically recorded in the form of electrocardiogram (ECG) signal using a non-invasive tool. • ECG can readily reveal a number of heart malfunctions or disorders.
  • 4. Introduction 4 The main challenges of an ECG devices arises from the… • Processing huge amount of large scale ECG data analysis in parallel. • Real-time computation under stringent time constraint. • Transmission of huge amount data over a communication link to a large set of computing devices on another location under life critical condition. • portable ECG monitoring device is desired with improved accuracy and integrates more functionality to fit in homecare services with acceptable performance.
  • 5. Objectives 1. To prototype the ECG-SoC on Altera Cyclone II DE2 board to form an embedded portable system which suitable for home care and health monitoring. 2. To performs ECG pre-processing and heart rate variability (HRV) feature extraction based on offline dataset using ECG-SoC hardware/software co-design technique. Objective 5
  • 6. Figure 1. Block diagram of ECG pre-processing and HRV feature extraction ECG-SoC System Functionality 7 ECG-SoC System Functionality
  • 7. Introduction 8 •The squaring function is replaced by the absolute function to speed up the computation by toggling all negative peaks that possible to generate positive values. •The moving window integration is applied to smooth out the data. •After QRS complex detection, the ECG signal is transformed into the valley- like signal which has two peaks with significant different height. To detect heartbeat from ECG signal, the R peaks of QRS complex are used. •In the R-R interval module, the peak of the ECG signal is detected by comparing the current value with next eight values. The larger values than the next eight values and greater than a set threshold level are treated as the R peak values of ECG.
  • 8. Introduction 9 • In the next block unit, the interpolation is done between two R-R intervals to obtain a continuous R-R intervals result from the calculation of the detected peaks. The reciprocal of the R-R interval is heart rate value in Hertz (s-1). • However, common unit for heart rate is min-1. To gain the heart rate value in min-1, multiply the reciprocal of the R-R interval by 60. The continuous heart rate is then resampled at 4 Hz. • Then, Fast Fourier Transform (FFT) is applied to the resampled signal to get the power spectrum of the R-R interval data. The FFT is performed for both real and imaginary parts.
  • 9. Methodology • The ECG-SoC architecture consists of both hardware and software partitions. Methodology 10 Hardware partitions Software partitions on chip memory phase-locked loop I/O controllers. Quartus II SOPC Builder Nios II IDE Nios II-Linux cross compiler
  • 10. Figure 2 ECG-SoC Cyclone II FPGA ECG-SoC System Functionality 11
  • 11. Introduction 12  The hardware partition (3) consists of on chip memory or external memory controllers, phase-locked loop and I/O controllers.  The memory modules store the image of embedded operation system which consists of program, MIT-BIH offline database, and other important files, as well as temporary storage during application execution.  The phase-locked loop controls the system clock signal and running frequency.  While, the I/O controller communicates and transmit the data external to the outside world.  Among all these peripherals, there is a system bus which provides a communication channel according to Avalon bus switch fabric protocol.
  • 12. A. System Hardware Architecture Design B. Nios II-Linux Embedded Operating System Development C. ECG Biomedical Signal Processing Applications with software configuration D. System Integration Figure 3. ECG-SoC Design Methodology 13
  • 13. Introduction 14 A. System Hardware Architecture Design  The general purpose Nios II CPU, memory and other standard peripherals are defined to form a standard Nios II system using SOPC Builder.  SOPC Builder generates multiple Verilog HDL (.v) files and the system configuration file (.ptf) which later is going to be used in configuring.  The compilation process is then started to perform the synthesis, fitting and timing analysis process to generate the netlist and hardware programming file (.sof/.pof) which is ready to be downloaded into Altera FPGA development board in final system integration.
  • 14. Introduction 15 B. Nios II-Linux Embedded Operating System Development Nios II-Linux is a terminal-based Linux embedded operating system, which it can run and compile Linux based programs and libraries. To compile the Nios II-Linux kernel of ECG-SoC, the system configuration files (.ptf) of the targeted hardware system generated by SOPC Builder is required to configure and compiling the Linux kernel. Moreover, the Linux kernel, peripheral device kernel library also needs to be identified and installed.
  • 15. Methodology 16 C. ECG Biomedical Signal Processing Applications with software configuration This task requires the embedded software development of the ECG biomedical signal processing modules, such as ECG signal pre-processing and HRV feature extraction based on the well established algorithm. The embedded software also generates output data files which later executed by a host PC for graph plotting for post analysis. Since Nios II-Linux is an embedded OS with the target processor set to Altera Nios II CPU, the ECG biomedical signal processing application software program must be cross compiled before it is executed by the Nios II processor. This task can be done by using the binary tool chain and libraries. The kernel is then recompiled again to produce a new zImage file and ready to be downloaded into the Altera FPGA development board.
  • 16. Introduction 17 D. System Integration In the final system integration, the hardware programming file (.sof) and the updated Nios II-Linux zImage file is both downloaded into Altera Cyclone II platform for system functionality verification and perform the evaluation.
  • 17. Results and Discussions • Table 1. contains description of the ECG system specifications. Results and Discussions 18 Specifications Values Sampling Frequency 200 Hz Threshold Value 8000 Hz Resampling Frequency 4 Hz Total ECG data 120 000 FFT Count 1024
  • 18. Results and Discussions 19 Figure 3. Differential Signal Figure 4. Smoothed Signal
  • 19. Results and Discussions 20 Figure 5. Interpolation Figure 6. Resampling
  • 20. Results and Discussions 21 Figure 7. FFT output Figure 8. Integrated power spectrum versus Frequency
  • 21. Conclusion • This paper has presented a SoC based ECG biomedical embedded system (ECG-SoC) design using hardware/software co-design technique and Altera technology to perform ECG pre-processing and HRV feature extraction based on offline dataset. • The main limitation of this system is the time consuming embedded software execution causes the system performance bottleneck. • For the future recommendation ; - a) the hardware accelerator is desired to boost up the computation performance. b) The ECG signal acquisition unit is designed for online monitoring c) Integrates state-of-the-art algorithm for heart disease detection as a decision support system. Conclusion 22

Editor's Notes

  1. Time constraints refer to the limitations on the start and end times of each task in a project's critical path, which is the sequence of tasks that cannot be delayed without delaying the entire project.
  2. The filtered output is differentiated to provide complex slope information for peak detection. The squaring function is replaced by the absolute function to speed up the computation by toggling all negative peaks that possible to generate positive values. The moving window integration is applied to smooth out the data. After QRS complex detection, the ECG signal is transformed into the valley-like signal which has two peaks with significant different height. To detect heartbeat from ECG signal, the R peaks of QRS complex are used. In the R-R interval module, the peak of the ECG signal is detected by comparing the current value with next eight values. The larger values than the next eight values and greater than a set threshold level are treated as the R peak values of ECG [13]. In the next block unit, the interpolation is done between two R-R intervals to obtain a continuous R-R intervals result from the calculation of the detected peaks. The reciprocal of the R-R interval is heart rate value in Hertz (s-1). However, common unit for heart rate is min-1. To gain the heart rate value in min-1, multiply the reciprocal of the R-R interval by 60. The continuous heart rate is then resampled at 4 Hz. Then, Fast Fourier Transform (FFT) is applied to the resampled signal to get the power spectrum of the R-R interval data. The FFT is performed for both real and imaginary parts. All the values were essential for power spectral analysis according to (1).
  3. The hardware partition (3) consists of on chip memory or external memory controllers, phase-locked loop and I/O controllers. The memory modules store the image of embedded operation system which consists of program, MIT-BIH offline database, and other important files, as well as temporary storage during application execution. The phase-locked loop controls the system clock signal and running frequency. While, the I/O controller communicates and transmit the data external to the outside world. Among all these peripherals, there is a system bus which provides a communication channel according to Avalon bus switch fabric protocol.
  4. System Hardware Architecture Design The general purpose Nios II CPU, memory and other standard peripherals are defined to form a standard Nios II system using SOPC Builder. The configuration involved the reset vector and exception vector of the Nios II processor, the base address and interrupt priority (IRQ) assignment of every peripheral, as well as their clock signal source. SOPC Builder generates multiple Verilog HDL (.v) files and the system configuration file (.ptf) which later is going to be used in configuring and compiling the software module, as well as Nios II-Linux Kernel. The compilation process is then started to perform the synthesis, fitting and timing analysis process to generate the netlist and hardware programming file (.sof/.pof) which is ready to be downloaded into Altera FPGA development board in final system integration. Nios II-Linux Embedded Operating System Development Nios II-Linux is a terminal-based Linux embedded operating system, which it can run and compile Linux based programs and libraries. To compile the Nios II-Linux kernel of ECG-SoC, the system configuration files (.ptf) of the targeted hardware system generated by SOPC Builder is required to configure and compiling the Linux kernel. Select the target processor to execute the Linux kernel as well as a memory module to load the kernel image. Moreover, the Linux kernel, peripheral device kernel library also needs to be identified and installed. ECG Biomedical Signal Processing Applications with software configuration This task requires the embedded software development of the ECG biomedical signal processing modules, such as ECG signal pre-processing and HRV feature extraction based on the well established algorithm as described in Section II. The embedded software also generates output data files which later executed by a host PC for graph plotting for post analysis. Since Nios II-Linux is an embedded OS with the target processor set to Altera Nios II CPU, the ECG biomedical signal processing application software program must be cross compiled before it is executed by the Nios II processor. This task can be done by using the binary tool chain and libraries. In addition to that, any cross compiled C/C++ executable program that is written for Nios II-Linux must be included inside Nios II-Linux zImage file. The kernel is then recompiled again to produce a new zImage file and ready to be downloaded into the Altera FPGA development board. System Integration In the final system integration, the hardware programming file (.sof) and the updated Nios II-Linux zImage file is both downloaded into Altera Cyclone II DE2-115 platform for system functionality verification and perform the evaluation.
  5. Linux Build root A second option for compiling kernel and filesystem is to work under Linux instead of Windows and Cygwin. The advantage is that some makefiles need only slight modification from the original.If you want to use initramfs, than you must use Linux because bugs in Cygwin make it impossible to get a working filesystem. Most people in the Nios Forum use the Buildroot environment which runs on a real Linux OS rather than Cygwin. Support on compiling applications is often offered for Buildroot only and not for the Altera IDE.It is very difficult to port the Makefiles to the Altera IDE sometimes, so therefore its easier to work on Linux.So in order to compile some applications like the OpenSSL libraries I set up a Linux machine.
  6. In addition to that, any cross compiled C/C++ executable program that is written for Nios II-Linux must be included inside Nios II-Linux zImage file.
  7. Table I contains descriptions of the ECG system specification. This paper used 200 Hz, sampling frequency for the ECG signals and threshold values is 8000 Hz. Meanwhile, to reduce the dimensionality of heart rate data, 4 Hz the resampling frequency has been chosen. The 120 000 is the offline ECG data come out of the MIT-BIH database which store in pen drive in text file format. With the larger ECG dataset will make the processing become more accurate.
  8. Fig. 4 shows the output graph plotted using Matlab software which represents the slope of the ECG signal. Noted that each data is converted to its absolute value to cover all negative peaks of ECG signals. Fig. 5 shows the values are greater than in Fig. 4 which is performed right before the smoothing operation by moving window integration.
  9. The peaks are detected in the R-R intervals as shown in Fig. 6 for the interpolation. While, the resampling of ECG signals after interpolation was illustrated in Fig. 7.
  10. Fig. 8 depicted the FFT output to identify the peaks in the ECG signal. Thus, noise can be removed from ECG signal.