|
Algorithm 1. The algorithm of two convolutional stages of the DL-CCANet. |
|
Input:
|
Raw Two-Lead Heartbeats
|
|
Output:
|
fi
|
| 1: |
Form ECG matrix
|
| 2: |
for the first convolutional stage do
|
| 3: |
Form the two-lead pending matrices Xh
|
| 4: |
Compute the covariance matrix sij of Xi and Xj
|
| 5: |
Solve the CCA model by the Lagrange multiplier technique to obtain the two-lead project directions a, b
|
| 6: |
Construct two-lead filter banks
|
| 7: |
Calculate the preliminary feature blocks of the first convolutional stage
|
| 8: |
end for
|
| 9: |
for the second convolutional stage do
|
| 10: |
Form the two-lead pending matrices |
| 11: |
Compute the covariance matrix sij of Yi and Yj
|
| 12: |
Solve the CCA model to obtain the two-lead project directions c, d
|
| 13: |
Construct two-lead filter banks
|
| 14: |
Calculate the output of the second convolutional stage:
|
| 15: |
end for
|
| 16: |
Compute the binarized images
|
| 17: |
Compute the one decimal image
|
| 18: |
Construct the histogram vector fi
|