Skip to main content
. 2019 Jul 21;19(14):3214. doi: 10.3390/s19143214
Algorithm 1. The algorithm of two convolutional stages of the DL-CCANet.
Input: Raw Two-Lead Heartbeats Aih, h=1,2, i=1,2,,N
Output: fi
1: Form ECG matrix Iih
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 Wlh, h=1,2, l=1,2,,L1
7:  Calculate the preliminary feature blocks of the first convolutional stage Ii,lh=IihWlh
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 V𝓁h, h=1,2, 𝓁=1,2,,L2
14:  Calculate the output of the second convolutional stage: oi,l={Ii,l1W𝓁1,Ii,l2W𝓁2}𝓁=1L2, l=1,2,,L1
15: end for
16:  Compute the binarized images oi,l={H(Ii,l1W𝓁1,Ii,l2W𝓁2)}𝓁L2L1
17:  Compute the one decimal image Ti,l=𝓁L22𝓁1H(Ii,l1W𝓁1,Ii,l2W𝓁2)
18:  Construct the histogram vector fi