Skip to main content
. 2021 Oct 25;379(2212):20200258. doi: 10.1098/rsta.2020.0258
Algorithm 1. Forward stepwise subset selection.
Variables:
SCandidate—Candidate set
STarget—Target set
XECG—Single-lead ECG
F1ECGF1 scores for the addition of single-lead ECG
F1best,i—The best F1 scores in step i
PECG—The p-value measuring the improvement for the addition of single-lead ECG
Xbest, i—The best single-lead ECG in step i
Pseudo code:
Initialize
SCandidate={XI,XII,XIII,XaVR,XaVL,XaVF,XV1,XV2,XV3,XV4,XV5,XV6}, STarget={}, F1best, 0=0
For i in 1:12
  For XECG in SCandidate
   Calculate F1ECG by training a model using STarget+XECG for 10 times
   Calculate PECG by conducting t-tests between F1best,i1 and F1ECG
  If min (PECG) < 0.05
   Xbest,i= argmin(PECG)
   Remove Xbest,i from SCandidate, Add Xbest,i to STarget
   F1best,i=F1Xbest,i
  Else
   Break
Output STarget as the optimal subset