Instrumentation & Measurement Magazine 24-2 - 41

belief networks (DBN). A DBN was created using stacked, restricted Boltzmann machines (RBM). An RBM is a two-layer
neural network with an input layer and a hidden layer. The approach was tested by synthetically contaminating ECG from
the MIT-BIH Atrial Fibrillation Database with a motion artifact
from the MIT-BIH Noise Stress Test Database. The MIT-BIH
Noise Stress Test Database was used to train an autoregressive
model to generate additional motion artifact to contaminate
the full 110 hours of ECG. The ECG was segmented into 129beat segments. The DBN classified nearly all the " clean " ECG
segments (no added motion artifact) as uncontaminated. This
included clean ECG segments with AF, which is crucial as
clinically relevant changes in the ECG should not be misinterpreted as contaminants. The percentage of ECG segments
classified as contaminated increased as SNR decreased, with
nearly all the ECG segments labeled as contaminated at an
SNR of -10 dB with precision and recall of 97.7% and 100%, respectively. AF detection accuracy with clean ECG was above
80% but dropped below 70% at an SNR of -20 dB. By detecting
and rejecting contaminated ECG segments, the AF detection
accuracy remained above 80%, even at an SNR of -20 dB.

Identification
The research in ECG biosignal quality analysis for the sole purpose of contaminant identification is exceedingly sparse. We
present two techniques that were developed by our research
group.
We proposed non-fiducial-based features with an ML-based
approach using random forests to identify contaminants in
ECG [23], [24]. ECG from the Normal Sinus Rhythm Database
were preprocessed using a high-pass filter to remove any existing baseline wandering and 60 Hz notch filter to remove power
line interference. To identify the contaminant type, we extracted
a set of non-fiducial-based features from 86,180 15-second ECG
segments. The features included statistical descriptions of the
raw ECG, wavelet detail and approximation coefficients, and
independent component analysis (ICA) components. The
statistical descriptions were mean, skewness, range, kurtosis, and power. The wavelet decomposition was performed
to the 7th level using the Daubechies3 mother wavelet. Since
ICA requires multiple channels, the 15-second segments were
further divided into 3-second subsegments that were aligned
and provided as an input to the FastICA algorithm to calculate four components. A total of 249 features were extracted,
which were reduced to 53 features using recursive feature elimination and cross-validated selection (RFECV) technique. The
features were fed to a 1024 random forest. Noise from the MITBIH Noise Stress Test Database was used to contaminate the
preprocessed ECG artificially. The ECG was corrupted using
baseline wandering, EMG, motion artifact, and their combinations at 0 dB, -5 dB, -10 dB, and -15 dB SNR levels. One-third of
the database was reserved for testing, while the rest was used
for training. The precision and recall were 81% and 70%, respectively, when any noise in a combination was identified.
We also used support vector machines (SVMs) to identify
contaminant types in surface EMG [12]; this SVM approach
April 2021	

can be adapted to ECG. Data used in this research included
226 5-second EMG segments recorded from human subjects
during static contractions and 226 5-second simulated EMG
segments. Five types of contaminants were considered in this
research: ECG interference, motion artifact, power line interference, amplifier saturation, and additive white Gaussian
noise. At low SNR (< -10 dB), the average classification accuracy of the five contaminants was >95%. As the SNR increased,
the classification accuracy decreased with the performance
approaching random guessing for SNR = 20 dB, which was expected as the contaminants are negligible at this point and are
hard to distinguish from each other.

Quantification
Contaminants in the ECG can be quantified discretely and
qualitatively or quantified continuously and quantitatively.
A discrete scale categorizes ECG segments into a finite set of
quality bins, which may be dependent on the application. For
example, an ECG segment labeled as acceptable for heart rate
estimation, which requires the detection of the relatively large
QRS complexes in the ECG, may not be acceptable for myocardial ischemia detection, which requires the characterization
of the small changes in the ST-segment. A continuous scale
provides flexibility to appropriately map signal quality into
discrete categories based on the application. The following
two techniques demonstrate discrete and continuous scales for
the quantification of signal quality in ECG.
Clifford et al. [25] proposed 13 signal quality indices (SQIs)
to rate ECG on a scale from 0 (clean) to 4 (extreme noise): 1)
agreement between two different QRS detection algorithms;
2) skewness; 3) kurtosis; 4) power ratio of the range 5-20 Hz
to the range 5-40 Hz; 5) power ratio of the range 0-1 Hz to the
range 5-40 Hz; 6) average ratio peak to peak amplitudes of
each QRS and its respective baseline; 7) relative energy of QRS
complex; 8) standard deviation of the QRS complex; 9) the relative amplitude of the high-frequency noise; 10) signal purity;
11) sample entropy; 12) the square root of the instantaneous
power of the range 40-45 Hz after filtering using a 0.05-second
normalized Hamming window FIR filter; and 13) the periodic
component analysis (PiCA) periodicity measure of the ECG
waveform. The SQIs were fed to a support vector machine
(SVM). Testing showed that a combination of all the SQIs,
apart from the first, seventh, and eighth SQIs, provided the
optimal performance. This approach was tested on 2289 5-second ECG segments from the 2011 PhysioNet/Computing in
Cardiology (PCinC) Challenge dataset contaminated with the
different types of noise in the MIT-BIH Noise Stress Test Database and 33,979 5-second ECG segments from the MIT-BIH
arrhythmia database. The accuracy was 80.10% ± 0.54% using five-fold cross-validation on the simulated dataset (PCinC
Challenge dataset). The accuracy was 88.07% ± 0.32% on the
real dataset (Physionet MIT-BIH arrhythmia database).
We developed an SQI that rates the quality of a 30-second ECG segment on a continuous scale by estimating the
SNR [26]-[28]. SNR calculations require the power of the signal and the power of the noise. Individual PQRST waveforms

IEEE Instrumentation & Measurement Magazine	41



Instrumentation & Measurement Magazine 24-2

Table of Contents for the Digital Edition of Instrumentation & Measurement Magazine 24-2

No label
Instrumentation & Measurement Magazine 24-2 - No label
Instrumentation & Measurement Magazine 24-2 - Cover2
Instrumentation & Measurement Magazine 24-2 - 1
Instrumentation & Measurement Magazine 24-2 - 2
Instrumentation & Measurement Magazine 24-2 - 3
Instrumentation & Measurement Magazine 24-2 - 4
Instrumentation & Measurement Magazine 24-2 - 5
Instrumentation & Measurement Magazine 24-2 - 6
Instrumentation & Measurement Magazine 24-2 - 7
Instrumentation & Measurement Magazine 24-2 - 8
Instrumentation & Measurement Magazine 24-2 - 9
Instrumentation & Measurement Magazine 24-2 - 10
Instrumentation & Measurement Magazine 24-2 - 11
Instrumentation & Measurement Magazine 24-2 - 12
Instrumentation & Measurement Magazine 24-2 - 13
Instrumentation & Measurement Magazine 24-2 - 14
Instrumentation & Measurement Magazine 24-2 - 15
Instrumentation & Measurement Magazine 24-2 - 16
Instrumentation & Measurement Magazine 24-2 - 17
Instrumentation & Measurement Magazine 24-2 - 18
Instrumentation & Measurement Magazine 24-2 - 19
Instrumentation & Measurement Magazine 24-2 - 20
Instrumentation & Measurement Magazine 24-2 - 21
Instrumentation & Measurement Magazine 24-2 - 22
Instrumentation & Measurement Magazine 24-2 - 23
Instrumentation & Measurement Magazine 24-2 - 24
Instrumentation & Measurement Magazine 24-2 - 25
Instrumentation & Measurement Magazine 24-2 - 26
Instrumentation & Measurement Magazine 24-2 - 27
Instrumentation & Measurement Magazine 24-2 - 28
Instrumentation & Measurement Magazine 24-2 - 29
Instrumentation & Measurement Magazine 24-2 - 30
Instrumentation & Measurement Magazine 24-2 - 31
Instrumentation & Measurement Magazine 24-2 - 32
Instrumentation & Measurement Magazine 24-2 - 33
Instrumentation & Measurement Magazine 24-2 - 34
Instrumentation & Measurement Magazine 24-2 - 35
Instrumentation & Measurement Magazine 24-2 - 36
Instrumentation & Measurement Magazine 24-2 - 37
Instrumentation & Measurement Magazine 24-2 - 38
Instrumentation & Measurement Magazine 24-2 - 39
Instrumentation & Measurement Magazine 24-2 - 40
Instrumentation & Measurement Magazine 24-2 - 41
Instrumentation & Measurement Magazine 24-2 - 42
Instrumentation & Measurement Magazine 24-2 - 43
Instrumentation & Measurement Magazine 24-2 - 44
Instrumentation & Measurement Magazine 24-2 - 45
Instrumentation & Measurement Magazine 24-2 - 46
Instrumentation & Measurement Magazine 24-2 - 47
Instrumentation & Measurement Magazine 24-2 - 48
Instrumentation & Measurement Magazine 24-2 - 49
Instrumentation & Measurement Magazine 24-2 - 50
Instrumentation & Measurement Magazine 24-2 - 51
Instrumentation & Measurement Magazine 24-2 - 52
Instrumentation & Measurement Magazine 24-2 - 53
Instrumentation & Measurement Magazine 24-2 - 54
Instrumentation & Measurement Magazine 24-2 - 55
Instrumentation & Measurement Magazine 24-2 - 56
Instrumentation & Measurement Magazine 24-2 - 57
Instrumentation & Measurement Magazine 24-2 - 58
Instrumentation & Measurement Magazine 24-2 - 59
Instrumentation & Measurement Magazine 24-2 - 60
Instrumentation & Measurement Magazine 24-2 - 61
Instrumentation & Measurement Magazine 24-2 - 62
Instrumentation & Measurement Magazine 24-2 - 63
Instrumentation & Measurement Magazine 24-2 - 64
Instrumentation & Measurement Magazine 24-2 - 65
Instrumentation & Measurement Magazine 24-2 - 66
Instrumentation & Measurement Magazine 24-2 - 67
Instrumentation & Measurement Magazine 24-2 - 68
Instrumentation & Measurement Magazine 24-2 - 69
Instrumentation & Measurement Magazine 24-2 - 70
Instrumentation & Measurement Magazine 24-2 - 71
Instrumentation & Measurement Magazine 24-2 - 72
Instrumentation & Measurement Magazine 24-2 - 73
Instrumentation & Measurement Magazine 24-2 - 74
Instrumentation & Measurement Magazine 24-2 - 75
Instrumentation & Measurement Magazine 24-2 - 76
Instrumentation & Measurement Magazine 24-2 - 77
Instrumentation & Measurement Magazine 24-2 - 78
Instrumentation & Measurement Magazine 24-2 - 79
Instrumentation & Measurement Magazine 24-2 - 80
Instrumentation & Measurement Magazine 24-2 - 81
Instrumentation & Measurement Magazine 24-2 - 82
Instrumentation & Measurement Magazine 24-2 - 83
Instrumentation & Measurement Magazine 24-2 - 84
Instrumentation & Measurement Magazine 24-2 - 85
Instrumentation & Measurement Magazine 24-2 - 86
Instrumentation & Measurement Magazine 24-2 - 87
Instrumentation & Measurement Magazine 24-2 - 88
Instrumentation & Measurement Magazine 24-2 - 89
Instrumentation & Measurement Magazine 24-2 - 90
Instrumentation & Measurement Magazine 24-2 - 91
Instrumentation & Measurement Magazine 24-2 - 92
Instrumentation & Measurement Magazine 24-2 - 93
Instrumentation & Measurement Magazine 24-2 - 94
Instrumentation & Measurement Magazine 24-2 - 95
Instrumentation & Measurement Magazine 24-2 - 96
Instrumentation & Measurement Magazine 24-2 - 97
Instrumentation & Measurement Magazine 24-2 - 98
Instrumentation & Measurement Magazine 24-2 - 99
Instrumentation & Measurement Magazine 24-2 - 100
Instrumentation & Measurement Magazine 24-2 - 101
Instrumentation & Measurement Magazine 24-2 - 102
Instrumentation & Measurement Magazine 24-2 - 103
Instrumentation & Measurement Magazine 24-2 - 104
Instrumentation & Measurement Magazine 24-2 - 105
Instrumentation & Measurement Magazine 24-2 - 106
Instrumentation & Measurement Magazine 24-2 - 107
Instrumentation & Measurement Magazine 24-2 - 108
Instrumentation & Measurement Magazine 24-2 - 109
Instrumentation & Measurement Magazine 24-2 - 110
Instrumentation & Measurement Magazine 24-2 - 111
Instrumentation & Measurement Magazine 24-2 - 112
Instrumentation & Measurement Magazine 24-2 - 113
Instrumentation & Measurement Magazine 24-2 - 114
Instrumentation & Measurement Magazine 24-2 - 115
Instrumentation & Measurement Magazine 24-2 - 116
Instrumentation & Measurement Magazine 24-2 - 117
Instrumentation & Measurement Magazine 24-2 - 118
Instrumentation & Measurement Magazine 24-2 - 119
Instrumentation & Measurement Magazine 24-2 - 120
Instrumentation & Measurement Magazine 24-2 - 121
Instrumentation & Measurement Magazine 24-2 - 122
Instrumentation & Measurement Magazine 24-2 - 123
Instrumentation & Measurement Magazine 24-2 - 124
Instrumentation & Measurement Magazine 24-2 - 125
Instrumentation & Measurement Magazine 24-2 - 126
Instrumentation & Measurement Magazine 24-2 - 127
Instrumentation & Measurement Magazine 24-2 - 128
Instrumentation & Measurement Magazine 24-2 - 129
Instrumentation & Measurement Magazine 24-2 - 130
Instrumentation & Measurement Magazine 24-2 - 131
Instrumentation & Measurement Magazine 24-2 - 132
Instrumentation & Measurement Magazine 24-2 - Cover3
Instrumentation & Measurement Magazine 24-2 - Cover4
https://www.nxtbook.com/allen/iamm/26-6
https://www.nxtbook.com/allen/iamm/26-5
https://www.nxtbook.com/allen/iamm/26-4
https://www.nxtbook.com/allen/iamm/26-3
https://www.nxtbook.com/allen/iamm/26-2
https://www.nxtbook.com/allen/iamm/26-1
https://www.nxtbook.com/allen/iamm/25-9
https://www.nxtbook.com/allen/iamm/25-8
https://www.nxtbook.com/allen/iamm/25-7
https://www.nxtbook.com/allen/iamm/25-6
https://www.nxtbook.com/allen/iamm/25-5
https://www.nxtbook.com/allen/iamm/25-4
https://www.nxtbook.com/allen/iamm/25-3
https://www.nxtbook.com/allen/iamm/instrumentation-measurement-magazine-25-2
https://www.nxtbook.com/allen/iamm/25-1
https://www.nxtbook.com/allen/iamm/24-9
https://www.nxtbook.com/allen/iamm/24-7
https://www.nxtbook.com/allen/iamm/24-8
https://www.nxtbook.com/allen/iamm/24-6
https://www.nxtbook.com/allen/iamm/24-5
https://www.nxtbook.com/allen/iamm/24-4
https://www.nxtbook.com/allen/iamm/24-3
https://www.nxtbook.com/allen/iamm/24-2
https://www.nxtbook.com/allen/iamm/24-1
https://www.nxtbook.com/allen/iamm/23-9
https://www.nxtbook.com/allen/iamm/23-8
https://www.nxtbook.com/allen/iamm/23-6
https://www.nxtbook.com/allen/iamm/23-5
https://www.nxtbook.com/allen/iamm/23-2
https://www.nxtbook.com/allen/iamm/23-3
https://www.nxtbook.com/allen/iamm/23-4
https://www.nxtbookmedia.com