Skip to main content
. 2019 Jul 21;19(14):3214. doi: 10.3390/s19143214
Algorithm 2. The algorithm of two convolutional stages of TL-CCANet.
Input: Raw Three-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 three-lead pending matrices Xh
4:  Compute the covariance matrix sijh of Xih and Xjh
5:  Solve the CCA model by the Lagrange multiplier technique to obtain the three-lead project directions ah, h = 1, 2, 3 and bh, h = 1, 2, 3
6:  Construct three-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 three-lead pending matrices
11:  Compute the covariance matrix sijh of Yih and Yjh
12:  Solve the CCA model to obtain the three-lead project directions ch, h = 1, 2, 3 and dh, h = 1, 2, 3
13:  Construct three-lead filter banks V𝓁h, h=1,2,3, 𝓁=1,2,,L2
14:  Calculate the output of the second convolutional stage: Oi,l={Ii,l1W𝓁1, Ii,l2W𝓁2, Ii,l3W𝓁3}𝓁=1L2, l=1,2,3,,L1
15: end for
16:  Compute the binarized images {H(Ii,l1W𝓁1, Ii,l2W𝓁2, Ii,l3W𝓁3)}, l = 1, 2, 3, …, L1
17:  Compute the one decimal image Ti,l=𝓁L22𝓁1H(Ii,l1W𝓁1,Ii,l2W𝓁2,Ii,l3W𝓁3)
18:  Construct the histogram vector fi