Skip to main content
. 2022 Oct 11;24(10):1450. doi: 10.3390/e24101450
Algorithm 1 WSCEC algorithm

Input: ECG set T; parameter k,m,s,ϵ

Output: Classification result T=j=0r+1T˜jQ˜4=j=04Q˜j

  • 1:

    Choose standard normal ECG signal Ts

  • 2:

    For every ECG signal Ti in T, acquire point cloud SF(Ti) after STFFT by Equation (4), where l=10, τ=1 and d=3

  • 3:

    Acquire point cloud SSPD(Ti,k) of Ti and SSPD(Ts,k) of Ts by kNN algorithm and Equation (5)

  • 4:

    Calculate scalar curvature at each point in SSPD(Ts,k) by Equation (11), take b as the minimum of the max scalar curvature and 3d(d1)ϵ

  • 5:

    Calculate scalar curvature at each point in SSPD(Ti,k) by Equation (11) and obtain curvature histogram H(m,b) by Equation (14)

  • 6:

    Calculate Wasserstein scalar curvature dispersion curTi(m,b,s) of Ti by Equation (16)

  • 7:

    Give the classification result T=j=0r+1T˜jQ˜4=j=04Q˜j by symptom description domain partition D=j=04Dj

  • 8:

    Output:T=j=0r+1T˜jQ˜4=j=04Q˜j