Analyze real electrocardiograms (EKGs) with Python and SciPy.
This is the first in a series of videos on analyzing QRS complexes and EKGs with Python code. Stay tuned for upcoming tutorials.
Tutorial in written form: https://medium.com/@protobioengineering/list/heart-and-electrocardiogram-analysis-9ed30d0083b4
For those using earlier versions of SciPy, to import the electrocardiogram dataset, write `scipy.misc.electrocardiogram()`.
Ninja Nerd EKG Basics:
https://www.youtube.com/watch?v=CNN30YHsJw0
6-second ECG game: https://skillstat.com/tools/ecg-simulator/
Disclaimer:
Please do not use this video, dataset, code, or related articles to diagnose yourself or anybody else with a heart issue or any other health problem. Do not make medical decisions based off of this dataset, any articles by Proto, or any code written by us, yourself, or others. If you are concerned about your health or the health of others, please consult a licensed physician.
Chapters:
0:00 What are electrocardiograms?
0:52 Disclaimer (None of this is medical advice. Please see a licensed physician!)
1:06 What other EKG tutorials are missing
1:30 How medical professionals look at EKGs
2:00 How we'll use SciPy for Python to analyze heartbeats
2:46 Starting coding on Kaggle.com
3:19 Importing SciPy and other libraries
4:48 Loading the EKG with electrocardiogram()
5:31 Plotting the EKG data
6:31 Zooming in on the graph to see heartbeats (AKA "QRS complexes")
7:44 What does a "QRS complex" tell us about the heart?
8:32 Parts of the QRS complex
9:05 "Labeling" the real EKG data by eye
10:19 "Bad" heartbeats, AKA "arrhythmias"
12:18 What our code will ACTUALLY do given this info
12:27 More on heartbeats and the waves of the QRS complex
14:09 Go watch Ninja Nerd's EKG Basics video
14:28 Starting the code
15:26 Finding the R waves with SciPy's find_peaks() function
17:49 Plotting the R waves
20:13 Topics for the next video
Key Terms:
* electrocardiogram (ECG/EKG)
* arrhythmia
* atrial flutter
* atria / atrium, ventricles
* QRS complex
* R wave, P wave, T wave, etc.
* depolarization, repolarization
* SciPy, NumPy, Pandas, Matplotlib