SlideShare a Scribd company logo
1 of 18
Smart ECG
Andrea Lisanti
Dario Litardi
David Buscema
Smart ECG
The idea
A system to detect fibrillations in athletes using a
heartbeat sensor, like a heart rate monitor.
The athletes is notified if he is affected by atrial
fibrillation.
2
Smart ECG 3
What is a heart rate monitor?
A heart rate monitor is an electronic
device capable of measuring the
heartbeat and, from this, determining
the heart rate in real time during a
training.
It measures alarm threshold for the
aerobic zones on the basis of data on
the physiology of the user.
Smart ECG
The components
4
5
1. STM32 Nucleo F401RE board
2. Pulse sensor
3. Bluetooth module X-NUCLEO-IDB05A1
4. Arduino IDE to programming the board
5. Android application
321
4
Smart ECG
The architecture
5
Smart ECG
1. The STM32 Nucleo board detects the heartbeats through
the pulse sensor. The data are pre-processed and then
submitted to the machine learning algorithm
2. In case of atrial fibrillation, a notification is sent to the mobile
app via the Bluetooth board. Otherwise the device only sends
to the smartphone the heart beats.
6
How does SmartECG work?
Smart ECG
How to identify a heartbeat?
Based on:
โ— Threshold
โ— Time
Every heartbeat is defined
as the time between the
current heartbeat and the
previous one
7
Smart ECG
Heartbeat pre-processing
The heartbeats are pre-processed by obtaining five values that will be submitted
to the machine learning algorithm:
1. The average of the last three beats
2. The last beat
3. The second to last beat
4. The third to last beat
5. The average of the last ten beats
8
Mar, T., Zaunseder, S., Martínez, J. P., Llamedo, M., & Poll, R. (August 01, 2011). Optimization of ECG
Classification by Means of Feature Selection. Ieee Transactions on Biomedical Engineering, 58, 8, 2168-2177.
Smart ECG
Bluetooth communication
โ— Service, with universally unique identifier (UUID), exposes heartbeats data to
nearby devices
โ—‹ Every service defines or more characteristic
โ— Characteristic, with another UUID, implemented as a notification system.
Sends pre-processed heartbeats to the Android application
9
Smart ECG
Machine learning Algorithm
The Machine Learning algorithm used is K-nearest neighbor (KNN).
The algorithm was implemented in Java by Amazon Software Engineer Li Gong.
The algorithm was later slightly modified by us to be adapted to this project.
10
www.linkedin.com/in/gonglited
github.com/wihoho/KNN
Smart ECG
K-nearest neighbor (KNN) Algorithm
The KNN algorithm itself is fairly straightforward following these steps:
1. Choose the number of k and a distance metric.
2. Find the k nearest neighbors of the sample that we want to classify.
3. Assign the class label by majority vote
The class label of the new data point is then determined by a majority
vote among its k nearest neighbors.
11
Raschka, S. (2015). Python machine learning. Birmingham: Packt.
Smart ECG
Example of pre-processing Dataset
12
Dataset obtained from real
values.
Over 3000 instances,
already pre-processed
Smart ECG
Result of KNN
13
The accuracy of prediction is
always about 94%-97%
In this example it is
97.463768%
Smart ECG
SmartECG App
14
Initial Screen Bluetooth Connection
Smart ECG
SmartECG Home Screen
15
Shows Beats Per Minute (BPM) and in
case of fibrillation shows a notification
Smart ECG
SmartECG App
16
Navigation Drawer User Profile
Smart ECG
Links
โ— Github repository at https://github.com/dariolitardi/smartecgrepo
โ— http://www.st.com/en/evaluation-tools/nucleo-f401re.html
โ— http://www.st.com/en/ecosystems/x-nucleo-idb04a1.html
โ— https://pulsesensor.com/
17
Contacts
Andrea Lisanti at linkedin.com/in/andrea-lisanti
Dario Litardi at linkedin.com/in/dario-litardi-84851915b/
David Buscema at linkedin.com/in/david-buscema
Thank you for your attention

More Related Content

What's hot

A portable electrocardiogram for realโ€‘time monitoring of cardiac
A portable electrocardiogram for realโ€‘time monitoring of cardiacA portable electrocardiogram for realโ€‘time monitoring of cardiac
A portable electrocardiogram for realโ€‘time monitoring of cardiac
ArhamSheikh1
ย 
Arduino based heartbeat monitoring system.
Arduino based heartbeat monitoring system.Arduino based heartbeat monitoring system.
Arduino based heartbeat monitoring system.
Arkadeep Dey
ย 
A Wireless Methodology of Heart Attack Detection
A Wireless Methodology of Heart Attack DetectionA Wireless Methodology of Heart Attack Detection
A Wireless Methodology of Heart Attack Detection
ijsrd.com
ย 
Internet of Things IoT Based Healthcare Monitoring System using NodeMCU and A...
Internet of Things IoT Based Healthcare Monitoring System using NodeMCU and A...Internet of Things IoT Based Healthcare Monitoring System using NodeMCU and A...
Internet of Things IoT Based Healthcare Monitoring System using NodeMCU and A...
ijtsrd
ย 

What's hot (20)

Implementation Of Real Time IoT Based Health monitoring system
Implementation Of Real Time IoT Based Health monitoring systemImplementation Of Real Time IoT Based Health monitoring system
Implementation Of Real Time IoT Based Health monitoring system
ย 
Heart Beat Monitoring System
Heart Beat Monitoring SystemHeart Beat Monitoring System
Heart Beat Monitoring System
ย 
REAL TIME HEART BEAT MONITORING SYSTEM USING PIC16F876 MICROCONTROLLER
REAL TIME HEART BEAT MONITORING SYSTEM USING PIC16F876 MICROCONTROLLERREAL TIME HEART BEAT MONITORING SYSTEM USING PIC16F876 MICROCONTROLLER
REAL TIME HEART BEAT MONITORING SYSTEM USING PIC16F876 MICROCONTROLLER
ย 
Real time heart monitoring system
Real time heart monitoring systemReal time heart monitoring system
Real time heart monitoring system
ย 
IOT based Patient Health Monitoring System using Raspberry pi 3
IOT based Patient Health Monitoring System using Raspberry pi 3IOT based Patient Health Monitoring System using Raspberry pi 3
IOT based Patient Health Monitoring System using Raspberry pi 3
ย 
A portable electrocardiogram for realโ€‘time monitoring of cardiac
A portable electrocardiogram for realโ€‘time monitoring of cardiacA portable electrocardiogram for realโ€‘time monitoring of cardiac
A portable electrocardiogram for realโ€‘time monitoring of cardiac
ย 
Continuous heart rate and body temperature monitoring system using arduino un...
Continuous heart rate and body temperature monitoring system using arduino un...Continuous heart rate and body temperature monitoring system using arduino un...
Continuous heart rate and body temperature monitoring system using arduino un...
ย 
Walking stick with heart attack detection
Walking stick with heart attack  detectionWalking stick with heart attack  detection
Walking stick with heart attack detection
ย 
Arduino based heartbeat monitoring system.
Arduino based heartbeat monitoring system.Arduino based heartbeat monitoring system.
Arduino based heartbeat monitoring system.
ย 
Real Time ECG and Saline Level Monitoring System Using Arduino UNO Processor
Real Time ECG and Saline Level Monitoring System Using Arduino UNO ProcessorReal Time ECG and Saline Level Monitoring System Using Arduino UNO Processor
Real Time ECG and Saline Level Monitoring System Using Arduino UNO Processor
ย 
IOT BASED BLACK BOX DEVICE FOR VEHICLE DETECTION
IOT BASED BLACK BOX DEVICE FOR VEHICLE DETECTIONIOT BASED BLACK BOX DEVICE FOR VEHICLE DETECTION
IOT BASED BLACK BOX DEVICE FOR VEHICLE DETECTION
ย 
A Wireless Methodology of Heart Attack Detection
A Wireless Methodology of Heart Attack DetectionA Wireless Methodology of Heart Attack Detection
A Wireless Methodology of Heart Attack Detection
ย 
Internet of Things IoT Based Healthcare Monitoring System using NodeMCU and A...
Internet of Things IoT Based Healthcare Monitoring System using NodeMCU and A...Internet of Things IoT Based Healthcare Monitoring System using NodeMCU and A...
Internet of Things IoT Based Healthcare Monitoring System using NodeMCU and A...
ย 
Heart rate monitor system
Heart rate monitor systemHeart rate monitor system
Heart rate monitor system
ย 
IRJET- IoT based Patient Health Monitoring System using Raspberry Pi-3
IRJET- IoT based Patient Health Monitoring System using Raspberry Pi-3IRJET- IoT based Patient Health Monitoring System using Raspberry Pi-3
IRJET- IoT based Patient Health Monitoring System using Raspberry Pi-3
ย 
Heartbeat monitor USING IC PIC16F72
Heartbeat monitor USING IC PIC16F72Heartbeat monitor USING IC PIC16F72
Heartbeat monitor USING IC PIC16F72
ย 
HEALTH MONITORING SYSTEM using mbed NXP LPC11U24
HEALTH MONITORING SYSTEM using mbed NXP LPC11U24HEALTH MONITORING SYSTEM using mbed NXP LPC11U24
HEALTH MONITORING SYSTEM using mbed NXP LPC11U24
ย 
Survey of a Symptoms Monitoring System for Covid-19
Survey of a Symptoms Monitoring System for Covid-19Survey of a Symptoms Monitoring System for Covid-19
Survey of a Symptoms Monitoring System for Covid-19
ย 
7c457e8657c654c22747faeda03f8e180c5d
7c457e8657c654c22747faeda03f8e180c5d7c457e8657c654c22747faeda03f8e180c5d
7c457e8657c654c22747faeda03f8e180c5d
ย 
IoT Based Patient Health Monitoring System
IoT Based Patient Health Monitoring SystemIoT Based Patient Health Monitoring System
IoT Based Patient Health Monitoring System
ย 

Similar to Presentazione finale

Brain controlled-car-for-disabled
Brain controlled-car-for-disabledBrain controlled-car-for-disabled
Brain controlled-car-for-disabled
shahnaazmd
ย 
Real Time Signal Quality Aware Internet of Things IOT Framework for FPGA Base...
Real Time Signal Quality Aware Internet of Things IOT Framework for FPGA Base...Real Time Signal Quality Aware Internet of Things IOT Framework for FPGA Base...
Real Time Signal Quality Aware Internet of Things IOT Framework for FPGA Base...
ijtsrd
ย 
-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
sairamreddy siddu
ย 
Vivek_Presentation1.pptx
Vivek_Presentation1.pptxVivek_Presentation1.pptx
Vivek_Presentation1.pptx
VishalLabde
ย 
healthcare supervising system to monitor heart rate to diagonize and alert he...
healthcare supervising system to monitor heart rate to diagonize and alert he...healthcare supervising system to monitor heart rate to diagonize and alert he...
healthcare supervising system to monitor heart rate to diagonize and alert he...
IJET - International Journal of Engineering and Techniques
ย 
Presentation22
Presentation22Presentation22
Presentation22
Farman Salih
ย 

Similar to Presentazione finale (20)

Smart ecg
Smart ecgSmart ecg
Smart ecg
ย 
Portable ECG Monitoring System using Lilypad And Mobile Platform-PandaBoard
Portable ECG Monitoring System using Lilypad And Mobile Platform-PandaBoardPortable ECG Monitoring System using Lilypad And Mobile Platform-PandaBoard
Portable ECG Monitoring System using Lilypad And Mobile Platform-PandaBoard
ย 
Pulse Plus: Engineered Heart Monitoring Device
Pulse Plus: Engineered Heart Monitoring  DevicePulse Plus: Engineered Heart Monitoring  Device
Pulse Plus: Engineered Heart Monitoring Device
ย 
IRJET- Heart Attack Detection by Heartbeat Sensing using Internet of thin...
IRJET-  	  Heart Attack Detection by Heartbeat Sensing using Internet of thin...IRJET-  	  Heart Attack Detection by Heartbeat Sensing using Internet of thin...
IRJET- Heart Attack Detection by Heartbeat Sensing using Internet of thin...
ย 
Design and implementation of portable electrocardiogram recorder with field ...
Design and implementation of portable electrocardiogram  recorder with field ...Design and implementation of portable electrocardiogram  recorder with field ...
Design and implementation of portable electrocardiogram recorder with field ...
ย 
IRJET- Design and Implementation of Low Cost Ecg Monitoring System using Smar...
IRJET- Design and Implementation of Low Cost Ecg Monitoring System using Smar...IRJET- Design and Implementation of Low Cost Ecg Monitoring System using Smar...
IRJET- Design and Implementation of Low Cost Ecg Monitoring System using Smar...
ย 
HEART RATE MONITORING SYSTEM USING IOT
HEART RATE MONITORING SYSTEM USING IOTHEART RATE MONITORING SYSTEM USING IOT
HEART RATE MONITORING SYSTEM USING IOT
ย 
ECG monitoring on android smartphone
ECG monitoring on android smartphone ECG monitoring on android smartphone
ECG monitoring on android smartphone
ย 
heart rate monitoring using mobile technology
heart rate monitoring using mobile technologyheart rate monitoring using mobile technology
heart rate monitoring using mobile technology
ย 
Brain controlled-car-for-disabled
Brain controlled-car-for-disabledBrain controlled-car-for-disabled
Brain controlled-car-for-disabled
ย 
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
ย 
Real Time Signal Quality Aware Internet of Things IOT Framework for FPGA Base...
Real Time Signal Quality Aware Internet of Things IOT Framework for FPGA Base...Real Time Signal Quality Aware Internet of Things IOT Framework for FPGA Base...
Real Time Signal Quality Aware Internet of Things IOT Framework for FPGA Base...
ย 
Angina Pectoris Predicting System using Embedded Systems and Big Data
Angina Pectoris Predicting System using Embedded Systems and Big DataAngina Pectoris Predicting System using Embedded Systems and Big Data
Angina Pectoris Predicting System using Embedded Systems and Big Data
ย 
Fpga based heartbeats monitor with
Fpga based heartbeats monitor withFpga based heartbeats monitor with
Fpga based heartbeats monitor with
ย 
-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
ย 
Vivek_Presentation1.pptx
Vivek_Presentation1.pptxVivek_Presentation1.pptx
Vivek_Presentation1.pptx
ย 
A Review of Physiological Parameters Monitoring Systems
A Review of Physiological Parameters Monitoring SystemsA Review of Physiological Parameters Monitoring Systems
A Review of Physiological Parameters Monitoring Systems
ย 
healthcare supervising system to monitor heart rate to diagonize and alert he...
healthcare supervising system to monitor heart rate to diagonize and alert he...healthcare supervising system to monitor heart rate to diagonize and alert he...
healthcare supervising system to monitor heart rate to diagonize and alert he...
ย 
Presentation22
Presentation22Presentation22
Presentation22
ย 

Recently uploaded

Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
ย 
Call Girls in Netaji Nagar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Netaji Nagar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort ServiceCall Girls in Netaji Nagar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Netaji Nagar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
ย 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
ย 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
ย 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
SUHANI PANDEY
ย 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
ย 

Recently uploaded (20)

Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
ย 
Intro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfIntro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdf
ย 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
ย 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
ย 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
ย 
Call Girls in Netaji Nagar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Netaji Nagar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort ServiceCall Girls in Netaji Nagar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Netaji Nagar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
ย 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
ย 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
ย 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
ย 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
ย 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
ย 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
ย 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
ย 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
ย 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
ย 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
ย 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
ย 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
ย 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
ย 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
ย 

Presentazione finale

  • 1. Smart ECG Andrea Lisanti Dario Litardi David Buscema
  • 2. Smart ECG The idea A system to detect fibrillations in athletes using a heartbeat sensor, like a heart rate monitor. The athletes is notified if he is affected by atrial fibrillation. 2
  • 3. Smart ECG 3 What is a heart rate monitor? A heart rate monitor is an electronic device capable of measuring the heartbeat and, from this, determining the heart rate in real time during a training. It measures alarm threshold for the aerobic zones on the basis of data on the physiology of the user.
  • 4. Smart ECG The components 4 5 1. STM32 Nucleo F401RE board 2. Pulse sensor 3. Bluetooth module X-NUCLEO-IDB05A1 4. Arduino IDE to programming the board 5. Android application 321 4
  • 6. Smart ECG 1. The STM32 Nucleo board detects the heartbeats through the pulse sensor. The data are pre-processed and then submitted to the machine learning algorithm 2. In case of atrial fibrillation, a notification is sent to the mobile app via the Bluetooth board. Otherwise the device only sends to the smartphone the heart beats. 6 How does SmartECG work?
  • 7. Smart ECG How to identify a heartbeat? Based on: โ— Threshold โ— Time Every heartbeat is defined as the time between the current heartbeat and the previous one 7
  • 8. Smart ECG Heartbeat pre-processing The heartbeats are pre-processed by obtaining five values that will be submitted to the machine learning algorithm: 1. The average of the last three beats 2. The last beat 3. The second to last beat 4. The third to last beat 5. The average of the last ten beats 8 Mar, T., Zaunseder, S., Martínez, J. P., Llamedo, M., & Poll, R. (August 01, 2011). Optimization of ECG Classification by Means of Feature Selection. Ieee Transactions on Biomedical Engineering, 58, 8, 2168-2177.
  • 9. Smart ECG Bluetooth communication โ— Service, with universally unique identifier (UUID), exposes heartbeats data to nearby devices โ—‹ Every service defines or more characteristic โ— Characteristic, with another UUID, implemented as a notification system. Sends pre-processed heartbeats to the Android application 9
  • 10. Smart ECG Machine learning Algorithm The Machine Learning algorithm used is K-nearest neighbor (KNN). The algorithm was implemented in Java by Amazon Software Engineer Li Gong. The algorithm was later slightly modified by us to be adapted to this project. 10 www.linkedin.com/in/gonglited github.com/wihoho/KNN
  • 11. Smart ECG K-nearest neighbor (KNN) Algorithm The KNN algorithm itself is fairly straightforward following these steps: 1. Choose the number of k and a distance metric. 2. Find the k nearest neighbors of the sample that we want to classify. 3. Assign the class label by majority vote The class label of the new data point is then determined by a majority vote among its k nearest neighbors. 11 Raschka, S. (2015). Python machine learning. Birmingham: Packt.
  • 12. Smart ECG Example of pre-processing Dataset 12 Dataset obtained from real values. Over 3000 instances, already pre-processed
  • 13. Smart ECG Result of KNN 13 The accuracy of prediction is always about 94%-97% In this example it is 97.463768%
  • 14. Smart ECG SmartECG App 14 Initial Screen Bluetooth Connection
  • 15. Smart ECG SmartECG Home Screen 15 Shows Beats Per Minute (BPM) and in case of fibrillation shows a notification
  • 17. Smart ECG Links โ— Github repository at https://github.com/dariolitardi/smartecgrepo โ— http://www.st.com/en/evaluation-tools/nucleo-f401re.html โ— http://www.st.com/en/ecosystems/x-nucleo-idb04a1.html โ— https://pulsesensor.com/ 17 Contacts Andrea Lisanti at linkedin.com/in/andrea-lisanti Dario Litardi at linkedin.com/in/dario-litardi-84851915b/ David Buscema at linkedin.com/in/david-buscema
  • 18. Thank you for your attention