| Algorithm 1. Automated non-Delineation Feature Extraction Pipeline |
| Input: Raw ECG data |
| Output: |
| Step 1: lead selection |
| Lead II is extracted |
| Whereas , represents second column for any given row for T samples. Therefore . The signals are resized where denotes truncation for signals longer than L samples and zero-padding for shorter signals. |
| Step 2: Automatic R-Peak Detection |
| , located in |
| Step 3: RR Rhythm Descriptors |
| If , RR interval vector |
| For |
| All RR Descriptors |
|
|
| If , |
| Step 4: QRS-Width Proxy Descriptors |
| If , the peak-width vector is |
| where each width is estimated at half-maximum peak prominence. The extracted descriptors are |
|
|
| If no valid widths are available, |
| These are QRS-width proxy descriptors. As such, they do not rely on explicit delineation of the onset and offset of the QRS complexes. |
| Step 5: Global Spectral Descriptors |
| The FFT magnitude spectrum of the aligned ECG signal is |
| The extracted spectral descriptors are |
|
|
| If |
| then |
| Step 6: Feature Vector Assembly |
| The final handcrafted descriptor vector is |