Skip to main content
BioMedical Engineering OnLine logoLink to BioMedical Engineering OnLine
. 2020 Jun 16;19:48. doi: 10.1186/s12938-020-00788-x

Multichannel ECG recording from waist using textile sensors

Milad Alizadeh Meghrazi 2,5,#, Yupeng Tian 1,2,#, Amin Mahnam 3, Presish Bhattachan 4, Ladan Eskandarian 5, Sara Taghizadeh Kakhki 1, Milos R Popovic 2,6, Milad Lankarany 1,2,6,
PMCID: PMC7296680  PMID: 32546233

Abstract

Background

The development of wearable health monitoring systems is garnering tremendous interest in research, technology and commercial applications. Their ability of providing unique capabilities in continuous, real-time, and non-invasive tracking of the physiological markers of users can provide insights into the performance and health of individuals. Electrocardiogram (ECG) signals are of particular interest, as cardiovascular disease is the leading cause of death globally. Monitoring heart health and its conditions such as ventricular disturbances and arrhythmias can be achieved through evaluating various features of ECG such as R-peaks, QRS complex, T-wave, and P-wave. Despite recent advances in biosensors for wearable applications, most of the currently available solutions rely solely on a single system attached to the body, limiting the ability to obtain reliable and multi-location biosignals. However, in engineering systems, sensor fusion, which is the optimal integration and processing of data from multiple sensors, has been a common theme and should be considered for wearables. In recent years, due to an increase in the availability and variety of different types of sensors, the possibility of achieving sensor fusion in wearable systems has become more attainable. Sensor fusion in multi-sensing systems results in significant enhancements of information inferences compared to those from systems with a sole sensor. One step towards the development of sensor fusion for wearable health monitoring systems is the accessibility to multiple reliable electrophysiological signals, which can be recorded continuously.

Results

In this paper, we develop a textile-based multichannel ECG band that has the ability to measure ECG from multiple locations on the waist. As a proof of concept, we demonstrate that ECG signals can be reliably obtained from different locations on the waist where the shape of the QRS complex is nearly comparable with recordings from the chest using traditional gel electrodes. In addition, we develop a probabilistic approach—based on prediction and update strategies—to detect R-peaks from noisy textile data in different statuses, including sitting, standing, and jogging. In this approach, an optimal search method is utilized to detect R-peaks based on the history of the intervals between previously detected R-peaks. We show that the performance of our probabilistic approach in R-peak detection is significantly better than that based on Pan–Tompkins and optimal-threshold methods.

Conclusion

A textile-based multichannel ECG band was developed to track the heart rate changes from multiple locations on the waist. We demonstrated that (i) the ECG signal can be detected from different locations on the waist, and (ii) the accuracy of the detected R-peaks from textile sensors was improved by using our proposed probabilistic approach. Despite the limitations of the textile sensors that might compromise the quality of ECG signals, we anticipate that the textile-based multichannel ECG band can be considered as an effective wearable system to facilitate the development of sensor fusion methodology for pervasive and non-invasive health monitoring through continuous tracking of heart rate variability (HRV) from the waist. In addition, from the commercialization point of view, we anticipate that the developed band has the potential to be integrated into garments such as underwear, bras or pants so that individuals can use it on a daily basis.

Keywords: Wearable electronics, Sensor fusion, Textile sensors, Multichannel ECG, R-peak detection, Probabilistic algorithm

Background

The ultimate goal of the wearable technology is to enable continuous access to humans’ physiological states. This is achievable through real-time tracking of physiological signals that can capture bio-information underlying the users’ health status. Wearable health monitoring systems allow clinicians and caretakers to continuously monitor changes in the patient’s vital signs. For example, ECG monitoring can be used for tracking the health conditions of people suffering from ventricular disturbances, arrhythmias and other diseases like diabetes and Parkinson’s disease [13]. Wearable health monitoring, in turn, empowers patients to be active in the optimal management of their chronic or acute conditions [4, 5] and provides non-intrusive monitoring of at-risk groups [6]. Therefore, wearable systems for continuous health monitoring provide proactive, affordable, and personalized health care services to the general population, especially individuals in need [7, 8].

Despite the ever-increasing use and commercialization of wearable electronics, limitations are impeding the success and utility of existing products for health monitoring. Devices such as smart watches are limited to a single location on the body (e.g., the wrist) [9], thereby restricting the access to different types of biosignals which are detectable from multiple locations on the body. While some systems such as Holter monitor can detect signals from multiple locations on the body, they are often obtrusive to day-to-day activities due to the presence of wires and the need for a clinician to position gel electrodes on the body. In addition, the embedded sensors are uncomfortable and have limited longevity. Current wearables, such as the Polar Belt [10] (© Polar Electro) and Myo™ armband [11] (North™, Waterloo, Canada, formerly Thalmic Labs) are obstructive as they must be worn as an addition to an individual’s day-to-day attire. To address these challenges, multi-sensing and processing approaches like sensor fusion might offer a unique solution, specifically if they can be integrated into comfortable, wearable, and multi-purpose electrodes like textile sensors.

Smart or electronic textiles (e-textiles) are textile products capable of interacting with the environment and the users. The development of e-textiles is made possible through flexible textile circuitry, which paves the way for a truly unobtrusive and universal garment-based wearable devices. Textile sensors have been used to sense biopotential [1214], temperature and humidity [15, 16], respiration [17], and pressure sensing [1820]. As such, e-textiles present a unique opportunity for unobtrusive integration of different sensing modalities in multiple locations on the body. In recent years, numerous studies have looked into the effects of electrode position, size, and skin contact pressure (holding pressure) on signal quality [2123]. In addition, other factors such as electrode to skin sensorial comfort, integration or construction techniques, and laundering/reusability need to be considered in the design, development and selection of textile electrodes for long-term ECG monitoring [24, 25]. Athos, Hexoskin, OMSignal and Hitoe are examples of textile-based electronic devices that can collect ECG signal from the torso. Silver-based conductive yarns, silicone-based electrodes, and conductive polymer coated fibers are used in these products to create the textiles electrodes [2628].

In this paper, we describe the development and assessment of a textile-based multichannel ECG band that measures ECG from multiple locations on the waist. This band contains four knitted textile sensors. Two types of conductive yarns are selected, creating silver-based and carbon-based textile sensors. Using a data acquisition board designed in-house for multichannel textile sensing, we show that ECG signals can be reliably obtained from different locations on the waist where the shape of the QRS complex is reasonably similar to those recorded from the chest using traditional gel electrodes. As well, we develop a novel probabilistic approach for detecting R-peaks that enables heart rate variability (HRV) to be continuously monitored during different tasks, namely, sitting, standing, and jogging. Our investigation suggests that the developed textile-based band can be considered as the first step towards the development of sensor fusion methodology for pervasive and non-invasive health monitoring through continuous tracking of HRV from the waist. Although the developed waist band is used as a proof of principle in this paper, we anticipate that this textile-based band can be integrated into garments such as underwear, bras or pants.

The organization of this paper is as follows. In “Results”, we show that the R-peaks can be reliably detected from different locations on the waist using our textile-based ECG band. As well, the performance of the proposed algorithm for R-peak detection from textile sensors is compared with that of the conventional algorithms. Concluding remarks, discussions, and future directions are provided in “Discussion”. Finally, “Materials and methods” are provided in four sections, namely, textile sensors, multichannel ECG recording units, signal processing algorithm, and statistical tests.

Results

In this paper, ECG signals were simultaneously recorded from four different locations on the waist using textile sensors (see "Materials and methods" for the exact locations of the sensors), as well as a reference ECG signal from the chest using gel electrode from 6 subjects. All the tests were conducted in accordance with a Research Ethics Board (REB) approved by the University of Toronto. All participants gave their consent to participate after being informed of the nature and objectives of the experiment. Data were recorded during two stationary statuses, namely, sitting and standing, each of which lasts for 2 min. Following the same protocol, ECG signals were recorded during jogging to compare the performance of the proposed algorithm for R-peak detection, i.e., History-Dependent Inverse Gaussian (HDIG), vs. conventional algorithms, namely, optimal-threshold and Pan–Tompkins (PT) [29]. The detected R-peaks were compared with those detected (simultaneously) from the chest using gel electrode (which is considered as the reference signal), and the accuracy (ACC) and F1 score were calculated (see Additional file 1: Appendix A for more details). The ACC and F1-score are the major statistics to quantify the quality of binary classifications (R-peak detection). Both measures lie within [0,1], where 0 and 1 represent the worst and best performances, respectively.

Textile sensors are reliable for continuous detection of R-peaks from the waist

Figure 1 shows two examples of recorded ECG signals and detected R-peaks using silver and carbon electrodes. As can be seen in this figure, the recorded ECG signals from the waist using both silver and carbon textile sensors are reliable enough to accurately track the heart rate.

Fig. 1.

Fig. 1

Two ECG signals recorded in the sitting status from the waist using carbon (left) and silver electrodes (right)

Figure 2 shows the performance of each textile sensor for sitting and standing statuses by the mean and standard deviation of ACC and F1-score of the detected R-peaks.

Fig. 2.

Fig. 2

Performance of textile sensors in R-peak detection from the waist. The HDIG algorithm is used for R-peak detection. The accuracy (left) and F1-score (right) of the detected R-peaks in different states (sitting and standing) are calculated with respect to those detected by gel electrode (chest)

As it is obvious, the accuracy of detection of R-peaks from the waist using both silver and carbon sensors is comparable with that detected from the gel electrode (chest), confirming that the heart rate can be monitored from waist using textile electrodes in the stationary statuses.

Proposed R-peak detection algorithm for textile-based recordings is robust to motion artifact

Nearly all textile-based sensors induce slowly varying motion artifacts into the signal [30]. Although such artifacts can be reduced by the use of appropriate electronic circuits as well as wearable designs which maintain a consistent skin–electrode connection with enough pressure, the presence of motion artifact in textile sensors is inevitable (see [3138] for other alternative ways to reduce motion artifact in textile sensors). This necessitates the use of effective signal processing algorithms. Here, we show that exploiting the HDIG algorithm for peak detection (i.e., the 4th step of the proposed algorithm, see "Materials and methods") significantly enhances the ACC and F1-score of heart rate. The performance of the HDIG method is compared to that of the optimal-threshold method for both sitting and standing statuses. Figure 3 shows that both accuracy and F1-score of the R-peaks detected by the HDIG method are significantly higher than those obtained by the optimal-threshold method (p < 0.05 for both measures).

Fig. 3.

Fig. 3

The detection performance of HDIG vs. optimal-threshold methods (see Additional file 1: Appendix B) for sitting and standing states. Both accuracy and F1-score measures of the HDIG method are significantly higher than that of the optimal-threshold method. One-way ANOVA test (F-distribution) is used, p-values for F1-score and ACC are, 0.014 and 0.004, respectively

To further explore the robustness of the proposed probabilistic approach to motion artifact, the performance of this method is compared to that of the optimal-threshold and PT [29] methods during the jogging status in which motion artifact occurs more often. Figure 4a shows a segment of the recorded ECG from the waist during jogging. This signal is highly contaminated by motion artifact (slowly varying signal), and the R-peaks are barely detectable by visual inspection. The detected R-peaks using HDIG, optimal threshold, and PT [29] are shown in Fig. 4b. One can observe that all the R-peaks are correctly detected by the HDIG method, and neither false positive (FP) nor false negative (FN) is produced. However, the optimal-threshold and PT methods produce several FP and FN in this segment of the recorded signal.

Fig. 4.

Fig. 4

A segment of ECG signal during jogging, which is simultaneously recorded from the chest and the waist, is shown in a. R-peaks are detected in B using PT [29] (left), optimal-threshold (middle) and HDIG (right) methods. The R-peaks of the chest ECG is plotted as the reference

In the jogging status where motion artifact is consistently larger than that in the stationary statuses (sitting and standing), the performance of HDIG is significantly more reliable than that of simple threshold (p < 0.001) and PT [29] (p < 0.001). Figure 5 shows the F1-score of the detected R-peaks using these algorithms during jogging (the results of both silver and carbon sensors are combined). It is to be noted that in the jogging status, due to the poor quality of the textile-ECG, true negative (TN) is high and therefore the true negative rate (TNTN+FP) is near 1. Therefore, we use F1-score to quantify the performance of the detected R-peak in the jogging state.

Fig. 5.

Fig. 5

The R-peak detection performance of HDIG, optimal-threshold, and PT methods during jogging. One-way ANOVA test is used, p-values are 0.00062 and 0.00011 for HDIG vs. optimal threshold and HDIG vs. PT, respectively

Heart rate can be reliably monitored from different locations on the waist: implications for sensor fusion

The ACC and F1-score of the detected R-peaks from various locations on the waist, namely, front, back, cross-I and cross-II (see "Materials and methods"), are evaluated in this section. The HDIG method is used to detect R-peaks from ECG signals recorded from each location on the waist. Figure 6 shows the ACC and F1-score of the detected R-peaks in the sitting and standing statuses for each location on the waist.

Fig. 6.

Fig. 6

F1 score and accuracy of different locations, sitting and standing for the combined silver and carbon sensors (ANOVA test, for each state (sitting–standing–jogging), for 4 groups (1) back, (2) front, (3) cross-I and (4) cross-II

Although the accuracy of detected R-peaks is sufficiently high for all four locations, back and front sensors have relatively better performances. As shown in Fig. 5 (compared to Fig. 6), the performance of R-peak detection significantly reduces during the jogging status. However, this performance can be compensated by exploiting multiple sensors using sensor fusion. Although this is not the focus of this paper, the evidence of R-peak detection from multiple locations on the waist can be considered as the first step toward the development of sensor fusion methodologies to detect various features of ECG from the waist.

Shape of QRS complex is preserved in the recorded ECG from the waist

Despite the fact that R-peak detection is the major step in estimating the heart rate variability, other features in the ECG signals like the QRS complex are useful for classifying heart-related diseases. In this section, we quantify the similarity between the shape of the QRS complex recorded from the waist (using textile electrodes) and that from the chest (using gel electrode). The similarity measure can be written as:

Similarity=1-1NLi=1Nm=1LQRSichestm-QRSiwaistm21NLi=1Nm=1LQRSichestm2, 1

where QRSichest and QRSiwaist indicate the ith QRS segment of the ECG signal recorded from chest and waist, respectively. All QRS segments are with the same length of L. As the similarity measure is normalized to the (average) energy of the QRS from chest (see [1]), this measure is positive and less than or equal to 1, where 1 represents the full match between QRSichest and QRSiwaist. For each recorded ECG signal, the segments of the QRS complex are obtained by selecting 300 ms before and after the correctly detected R-peaks (i.e., true positive R-peaks). Figure 7 shows the selected QRS segments from a sample of recorded ECG.

Fig. 7.

Fig. 7

QRS segments obtained from ECG signals recorded from chest (top) and waist (bottom). The amplitude of each segment is normalized to its R-peak value

As can be observed from this figure, the shapes of the QRS complex of the chest and the waist are almost similar. The similarity measure is calculated for both types of textile sensors during stationary statuses. Figure 8 demonstrates that the QRS similarity measure (between waist and chest) is reasonably high (> 0.8) for both carbon and silver sensors. However, it is worth mentioning that the QRS duration appears to be longer in the waist-ECG compared to that in the gel electrode. Therefore, an accurate estimation of P-wave and other features of ECG such as PQ interval and T-wave using textile sensors might be compromised (see Discussion for further details on the limitations of textile sensors).

Fig. 8.

Fig. 8

The QRS similarity measure for carbon and silver sensors

Discussion

Sensor fusion in wearable technology

Sensor fusion is the optimal integration and processing of data from multiple sensors that provide both redundancy and complementary data by maximizing information content. Sensor fusion reduces system’s sensitivity and uncertainty due to errors and artifacts, resulting in increased signal-to-noise ratios (SNR), enhanced system robustness and reliability, improved resolution and precision, and increased the dimensionality of measurements [6, 9, 39]. Sensor fusion has already received tremendous attention in automotive automation [40], mobile robot navigation [41], and target tracking [42]. In addition, sensor fusion techniques have been widely used in human movement analysis by using inertial measurement units (IMU) and respiration activity measurements given multiple physiological recordings. IMU-based sensor fusion have been used for pedestrian navigation (with GPS) [43] and human movement analysis in 3D orientations [44]. In respiration analysis, respiratory patterns have been analyzed with multiple ECG recordings [45] and data fusion techniques (e.g., modified Kalman filter [46]). Multi-sensing techniques, specifically in wearable sensors where the data can be highly contaminated by noise, facilitate the development of sensor fusion methods. Therefore, utilizing fusion techniques to interpret multi-sensor data from wearables is the next step towards optimizing health monitoring systems.

Limitations of textile-based waist band for extracting various features of ECG

The quality of the waist-ECG signal and the accuracy of R-peaks depend on the body position. For example, in the sitting position, the quality of ECG was relatively similar for all different locations on the waist (no significant difference between different locations). This quality is reasonably high for all locations in standing position, however, the F1-score and ACC of “back” location were significantly higher than those of “cross-I” and “cross-II” locations (ANOVA p-value of F-statistic for both F1-score and ACC was < 0.05 for all pairwise comparisons). Despite the good enough similarity (> 0.8) of the QRS complex in the textile-ECG (waist) and gel-ECG (chest), the quality of various features of textile-ECG is compromised. For example, the QRS interval is prolonged and the amplitude of P-wave is reduced (not distinguishable from the baseline) in textile-ECG. Thus, the textile sensors might not be recommended when information of precise characteristics of ECG is to be inferred. In addition, textile sensors are highly sensitive (compared to the gel electrodes) to motions artifacts. In the jogging status, the quality of ECG and the performance of R-peak detection are influenced by large amount of motion artifacts.

Although the developed waist band provides a prototype for sensing ECG from multiple locations on the waist, further considerations on the textile sensors, electronics, and algorithms can improve the quality of ECG signals. Specifically, with respect to electronics, having textile-compatible electronics, e.g., placing pre-amplifiers subsequently after the textile sensors (i.e., active electrodes), can significantly improve the quality of ECG signals which in turn enhances the performance of R-peak detection algorithms. We investigate this line of research in our future studies.

Implication of the multichannel ECG band for the development of sensor fusion methods

In non-stationary and time-varying body positions, i.e., the jogging status, a combination of locations might provide high-quality ECG signals. This capitalizes on the importance of optimal integration of multiple sensors, i.e., sensor fusion, for different body positions in wearable health monitoring systems. It is to be noted that all the ECG sensors in the multichannel ECG band provide a common signal. However, information underlying different features of the ECG signal, e.g., QRS complex, is not distributed uniformly between those sensors. Each sensor, in certain positions of the human body, might contain different information (of a common signal); thus, sensor fusion might be applied to better integrate data and infer information.

We anticipate that textile sensors and sensor fusion methodologies have the capability of non-invasively measuring and effectively processing a wide range of biometric signals. Therefore, e-textiles together with sensor fusion techniques can provide deep insights into an individual’s vital signs while increasing the quality, reliability, robustness, and precision of measurements. Systems utilizing this methodology can be used for widespread biological signal monitoring and feedback during the day-to-day activities and clinical settings [4749].

Conclusion

In this paper, we developed a textile-based multichannel ECG band that tracks heart rate changes from multiple locations on the waist. A data acquisition board was designed for multichannel recording through textile sensors. As well, we developed a novel probabilistic approach to detect R-peaks from noisy ECG signals recorded by the textile sensors. We showed that the R-peaks can be reliably detected from different locations on the waist, and the shape of the QRS complex is comparable with that recorded from the chest using traditional gel electrodes.

Materials and methods

Textile sensors (textile development)

Different types of materials have been used to produce conductive textile electrodes, these materials can be embedded into fabrics as conductive fibers, such as carbon, copper, or silver. In this paper, two different types of conductive textile electrodes were developed using silver-plated nylon yarns and carbon-coated nylon yarns. These yarns are the most frequently used conductive yarns in the smart textile industry. In order to compare the effect of these materials on ECG signal quality, textile-based multichannel ECG bands were knitted in a double jersey structure on a V-bed 18” gauge flat knitting machine. The textile electrodes were produced using Stoll flatbed knitting machines (Reutlingen, Germany) at Myant Inc. (Toronto, Canada). The electrode knitting structure can be seen in Fig. 9. Digital photographs were taken using Oitez USB microscope. Each band has 4 electrodes located at the iliac crest (×2) and across the frontal plane on the back (×2) (Fig. 10). The contact area of each textile electrode was 4.5 cm2 and the holding pressure of the textile electrodes in the band was 10 mmHg. The base band, which was the foundation for the electrodes, was made of a stretchable and washable fabric, regularly used in underwear/bra, waist/chest bands.

Fig. 9.

Fig. 9

Photograph of textile sensors, silver (a, b), and carbon (c, d)

Fig. 10.

Fig. 10

Photograph of the whole band. Schematic of gel electrode placement on chest and waist band electrode locations + vectors

Multichannel ECG recording unit

Recording ECG with dry textile electrodes is generally challenging as the electrode–skin contact impedance is high, and it significantly varies between the electrodes [50]. This attenuates the signal before it can be amplified, and accordingly reduces the signal-to-noise ratio. In addition, the mismatch between electrodes results in high levels of interference noise on the signal [51]. In this paper, a custom-made biosignal recording system is developed to simultaneously record 8-channel ECG signals. Figure 11 shows an image of the developed 8-channel ECG measuring unit.

Fig. 11.

Fig. 11

Photo of the designed board

The block diagram of the electronic circuit is depicted in Fig. 12.

Fig. 12.

Fig. 12

Block diagram 8-channel custom-made ECG recording circuit

As shown in Fig. 12, the first stage includes diodes for high-voltage protection, low-tolerance series resistors for limiting the current, and a differential passive low-pass filter for RF rejection (4 kHz cut-off frequency). The gain of the instrumentation amplifier was set to 10. An integrator circuit was implemented from instrumentation output to its reference as a negative feedback that acts as a high-pass filter with cut-off frequency of 0.16 Hz. The next amplifier has an adjustable gain between 5 and 100 and it works as a second-order low-pass filter with a cut-off frequency of 40 Hz. The last analog stage is a second-order high-pass filter (at 0.16 Hz) with a gain of 3.6. Therefore, the total high-pass filtering is of the third order. The cut-off frequencies were set based on the requirements for ECG monitoring which suggests maximum of 0.5 Hz for ECG monitoring applications and minimum 35 Hz for low-pass filtering [1]. The gain of all 8 channels was calibrated to be about 3000. This value was found appropriate to have a minimum quantization error while avoiding the amplifiers to saturate frequently due to motion artifact. The ground electrode was connected to the mid-rail driven by an operational amplifier. The outputs of all 8-channels go to the 12-bit resolution ADC of a STM32 microcontroller (multiplexing ADC) which transmits the data to a computer through Bluetooth. The circuit is powered with a 3.6 V battery and the sampling frequency was 200 Hz.

Three simultaneous recordings of ECG signals from chest (gel electrode, channel 4) and waist (silver textile electrode, channels 2 and 3) are plotted in Fig. 13.

Fig. 13.

Fig. 13

Screenshot of simultaneously recorded ECG signals (three channels in this example) using the developed recording unit. Note: channel 1 is grounded, and not shown in this figure

Signal processing (algorithm)

This part is a detailed explanation of the different steps used for the proposed algorithm.

Background, prior works, and proposed algorithm

The ECG signal is nonlinear and non-stationary. ECG signal processing and feature extractions are more robust with nonlinear methods [52]. The most important features of an ECG signal (see Fig. 14) are: P-wave (atrial depolarization), T-wave (ventricular repolarization), and the QRS complex (ventricular depolarization). The QRS complex is the most prominent feature in an ECG signal, which has been widely used for the diagnosis of cardiac diseases and the assessment of the irregularities in the heart rhythm [53]. The accurate and efficient detection of R-peaks from the ECG signal is essential for further post-processing and classification of ECG signals. Due to the non-stationary nature of an ECG signal, and relatively high sensitivity of wearable sensors to motion artifacts and other external interferences, accurate detection of R-peaks from the waist is challenging in wearable technology. From a signal processing point of view [29], discrete wavelet transformation [54], empirical mode decomposition [55, 56], Hilbert transformation [5759], and artificial neural network [60] are the most recognized methods for R-peak detection (see [53] for the details of each method). It is to be noted that almost all of these approaches characterize heart rate variability (equivalent to transient changes of R–R intervals, i.e., the interval between two adjacent R-peaks) as a deterministic continuous process—rather than a random (Poisson point) process where RR intervals indicate the time difference between electrical impulses from the heart’s conduction system that represent ventricular contractions [3]. By incorporating Poisson point process model of the dynamics of RR intervals, a novel probabilistic approach is developed in this paper to estimate the RR intervals (and accordingly detect R-peaks) in real-time. Our proposed algorithm consists of four building blocks: (1) pre-processing (denoising), (2) energy calculations, (3) smoothing and (4) R-peak detection. The details of each block are described as follows. For better understanding the performance of each step, Fig. 15 shows the results of each step on a 5-s sample ECG signal.

Fig. 14.

Fig. 14

Most significant features of a typical ECG signal

Fig. 15.

Fig. 15

Schematic representation of the proposed algorithm

Pre-processing

We use a discrete wavelet transform for denoising and pre-processing the recorded ECG signals. The sym6 wavelet is utilized to decompose the signal up to 5 levels. The fifth approximate coefficient is subtracted from the signal to eliminate the baseline drift (de-trending the signal). The rigsure threshold method is applied to the detailed coefficients to remove the high-frequency components. Finally, the de-noised signal is reconstructed from the thresholded detailed coefficients.

Energy calculation

To enhance the representation of the R-peaks, the energy of the derivative of the pre-processed signal, x(t), is calculated:

Enxt=dxtdt2, 2

where En[.] denotes the time-varying energy of the derivative of the pre-processed signal x(t).

The goal of this step is to amplify the effects of instances with abrupt changes (i.e., increase the signal-to-noise ratio R=localmaximalpeaknearbysmallerpeaks), hence R-peaks will be detected with higher probability (with respect to the adjacent smaller peaks).

Smoothing

To eliminate the fluctuations surrounding the local peaks in the calculated energy (see [2]), En[x] is filtered by a narrow Gaussian kernel (µ = 0, σkernel = 300 ms):

Zt=EnxtNμ,σ2, 3

where “*” indicates convolution, and N(.) is a zero-mean Gaussian kernel with a standard deviation of σ. This step helps better detection of R-peaks by smoothing the fluctuations near the peak of the energy signal.

R-peak detection

An iterative probabilistic approach is developed—based on prediction and update strategies—to detect the peaks of Z(t). We use an optimal search method to detect peaks based on the History-Dependent Inverse Gaussian (HDIG) point process model of heartbeat intervals [3, 61]. Given any R-peak index uk, the RR interval is calculated based on HDIG model using the previously detected R-peaks within the 25-s interval preceding uk. The HDIG model provides precise probabilistic definitions of heart rate variability that can be updated at any desired time resolution. The time-varying parameters of the HDIG point process model are estimated by the local maximum likelihood estimation of instantaneous heart rate variability [3]. The search for the next R-peak, in prediction step, is performed within the interval I=(uk+RR(k)-a,uk+RR(k)+a) for some chosen a (a = 300 ms in this work). The new R-peak, uk+1, is calculated, in the update step, as the maximum of Z(t) for t ɛ I. In fact, the HDIG model is incorporated to predict the interval within which the next R-peak occurs. Then, the detected R-peak in this interval updates the predicted RR interval.

It is to be noted that we compare the performance of this probabilistic method (based on HDIG) in detecting R-peaks with that of the optimal-threshold method (see Additional file 1: Appendix B for details on this method). Therefore, steps 1–3 of our algorithm are the same for both methods.

Statistical tests

The ANOVA tests are performed to compare different groups and to decide if they are significantly different. All ANOVA tests are performed for pairwise comparisons, i.e., two groups in each test. For example, for comparing the F1-scores of HDIG and that of PT, in the jogging state, all (jogging) samples from different electrodes across the waist are included. Then, the pairwise ANOVA test is performed: F-statistic is calculated and the corresponding p-values are shown.

For pairwise comparisons, the ANOVA test and t-test are almost equivalent. Both tests consider the difference between groups by comparing their mean and standard deviation. ANOVA test is more appropriate than t-test when ≥ 3 groups are to be compared. And, we choose ANOVA test over t-test to be consistent with the possible “comparisons for ≥ 3 groups” in the future work, e.g., it might be needed to compare multiple (≥ 10) electrode materials. Thus, ANOVA tests can be performed for all 10 groups, and if the results were significant, the group with the highest mean can be selected.

Supplementary information

12938_2020_788_MOESM1_ESM.docx (73.3KB, docx)

Additional file 1. Details of optimal-threshold method & statistical measures of R-peaks. This section includes two appendices, namely, A) statistical measures of the performance of detected R-peaks, and B) optimal-threshold method.

Acknowledgements

We acknowledge Myant Inc. for providing all textile materials and the waist band for the present study.

Abbreviations

ECG

Electrocardiogram

PT

Pan–Tompkins

HDIG

History-dependent inverse Gaussian

Authors’ contributions

Conceptualizing the study: MAM, YT, and ML. Writing the manuscript: MAM, YT, AM, LE, and ML. Data acquisition: PB and AM. Algorithm development: YT, STK, and ML. Textile development: MAM and LE. Hardware development: AM and ML. Edit and review the paper: YT, MP, and ML. All authors read and approved the final manuscript.

Funding

The present study was supported by Dr. Lankarany's start-up grant and NSERC Discovery Grant (RGPIN-2020-05868).

Availability of data and materials

The datasets recorded and analyzed during the present study are available from the corresponding author on reasonable request.

Ethics approval and consent to participate

All the tests were conducted in accordance with a Research Ethics Board (REB) approved by the University of Toronto. All participants gave their consent to participate after being informed of the nature and objectives of the experiment.

Consent for publication

The authors agree for publication of the present study.

Competing interests

The authors declare no competing interests.

Footnotes

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Milad Alizadeh Meghrazi and Yupeng Tian contributed equally.

Supplementary information

Supplementary information accompanies this paper at 10.1186/s12938-020-00788-x.

References

  • 1.Kligfield P, Gettes LS, Bailey JJ, Childers R, Deal BJ, Hancock EW, et al. Recommendations for the Standardization and Interpretation of the Electrocardiogram: part I: The Electrocardiogram and Its Technology A Scientific Statement From the American Heart Association Electrocardiography and Arrhythmias Committee, Council on Clinical Cardiology; the American College of Cardiology Foundation; and the Heart Rhythm Society Endorsed by the International Society for Computerized Electrocardiology. J Am Coll Cardiol. 2007;49(10):1109–1127. doi: 10.1016/j.jacc.2007.01.024. [DOI] [PubMed] [Google Scholar]
  • 2.Pagani M, Malfatto G, Pierini S, Casati R, Masu AM, Poli M, et al. Spectral analysis of heart rate variability in the assessment of autonomic diabetic neuropathy. J Auton Nerv Syst. 1988;23(2):143–153. doi: 10.1016/0165-1838(88)90078-1. [DOI] [PubMed] [Google Scholar]
  • 3.Barbieri R, Matten EC, Alabi AA, Brown EN. A point-process model of human heartbeat intervals: new definitions of heart rate and heart rate variability. Am J Physiol Heart Circ Physiol. 2005;288(1):H424–H435. doi: 10.1152/ajpheart.00482.2003. [DOI] [PubMed] [Google Scholar]
  • 4.JDRF Continuous Glucose Monitoring Study Group Continuous glucose monitoring and intensive treatment of type 1 diabetes. N Engl J Med. 2008;359(14):1464–1476. doi: 10.1056/NEJMoa0805017. [DOI] [PubMed] [Google Scholar]
  • 5.Fensli R, Gunnarson E, Gundersen T. A wearable ECG-recording system for continuous arrhythmia monitoring in a wireless tele-home-care situation. In: 18th IEEE Symposium on Computer-Based Medical Systems (CBMS’05). 2005. p. 407–12.
  • 6.Yang G-Z, editor. Body Sensor Networks [Internet]. London: Springer-Verlag; 2006. https://www.springer.com/gp/book/9781846284847. Accessed 3 Jun 2019.
  • 7.Milenković A, Otto C, Jovanov E. Wireless sensor networks for personal health monitoring: issues and an implementation. Comput Commun. 2006;29(13):2521–2533. [Google Scholar]
  • 8.Pantelopoulos A, Bourbakis NG. A survey on wearable sensor-based systems for health monitoring and prognosis. IEEE Trans Syst Man Cybern. 2010;40(1):1–12. [Google Scholar]
  • 9.Gravina R, Alinia P, Ghasemzadeh H, Fortino G. Multi-sensor fusion in body sensor networks: state-of-the-art and research challenges. Inf Fusion. 2017;1(35):68–80. [Google Scholar]
  • 10.Tabazadeh A, Jensen EJ, Toon OB, Drdla K, Schoeberl MR. Role of the stratospheric polar freezing belt in denitrification. Science. 2001;291(5513):2591–2594. doi: 10.1126/science.1057228. [DOI] [PubMed] [Google Scholar]
  • 11.Technical Features and Functionalities of Myo Armband An overview on related literature and advanced applications of myoelectric armbands mainly focused on arm prostheses. Int J Smart Sens Intellig Syst. 2018;11:1. [Google Scholar]
  • 12.Finni T, Hu M, Kettunen P, Vilavuo T, Cheng S. Measurement of EMG activity with textile electrodes embedded into clothing. Physiol Meas. 2007;28(11):1405–1419. doi: 10.1088/0967-3334/28/11/007. [DOI] [PubMed] [Google Scholar]
  • 13.Xu PJ, Zhang H, Tao XM. Textile-structured electrodes for electrocardiogram. Textile Progress. 2008;40(4):183–213. [Google Scholar]
  • 14.Löfhede J, Seoane F, Thordstein M. Textile electrodes for eeg recording—a pilot study. Sensors (Basel). 2012;12(12):16907–16919. doi: 10.3390/s121216907. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 15.Kinkeldei T, Zysset C, Cherenack KH, Tröster G. A textile integrated sensor system for monitoring humidity and temperature. In: 2011 16th international solid-state sensors, actuators and microsystems conference. 2011. p. 1156–9.
  • 16.Mattana G, Kinkeldei T, Leuenberger D, Ataman C, Ruan JJ, Molina-Lopez F, et al. Woven temperature and humidity sensors on flexible plastic substrates for E-textile applications. IEEE Sens J. 2013;13(10):3901–3909. [Google Scholar]
  • 17.Merritt CR, Nagle HT, Grant E. Textile-based capacitive sensors for respiration monitoring. IEEE Sens J. 2009;9(1):71–78. [Google Scholar]
  • 18.Lee J, Kwon H, Seo J, Shin S, Koo JH, Pang C, et al. Conductive fiber-based ultrasensitive textile pressure sensor for wearable electronics. Adv Mater Weinheim. 2015;27(15):2433–2439. doi: 10.1002/adma.201500009. [DOI] [PubMed] [Google Scholar]
  • 19.Meyer J, Arnrich B, Schumm J, Troster G. Design and modeling of a textile pressure sensor for sitting posture classification. Sens J IEEE. 2010;1(10):1391–1398. [Google Scholar]
  • 20.Holleczek T, Rüegg A, Harms H, Tröster G. Textile pressure sensors for sports applications. In: 2010 IEEE Sensors. 2010. p. 732–7.
  • 21.Muhammad Sayem AS, Hon Teay S, Shahariar H, Luise Fink P, Albarbar A. Review on smart electro-clothing systems (SeCSs) Sensors. 2020;20(3):587. doi: 10.3390/s20030587. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 22.Takeshita T, Yoshida M, Takei Y, Ouchi A, Hinoki A, Uchida H, et al. Relationship between contact pressure and motion artifacts in ECG measurement with electrostatic flocked electrodes fabricated on textile. Sci Rep. 2019;9(1):1–10. doi: 10.1038/s41598-019-42027-x. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 23.Wearable sensors for ECG measurement: a review | Emerald Insight. https://www.emerald.com/insight/content/doi/10.1108/SR-06-2017-0110/full/html. Accessed 5 May 2020.
  • 24.An X, Tangsirinaruenart O, Stylios GK. Investigating the performance of dry textile electrodes for wearable end-uses. J Text Instit. 2019;110:1. doi: 10.1080/00405000.2018.1508799. [DOI] [Google Scholar]
  • 25.Eskandarian L, Lam E, Rupnow C, Alizadeh Meghrazi M, Robust Naguib HE, Yarns Multifunctional Conductive. Multifunctional conductive yarns for biomedical textile computing. ACS Appl Electron Mater. 2020 doi: 10.1021/acsaelm.0c00171. [DOI] [Google Scholar]
  • 26.Feasibility of a T-shirt-type wearable electrocardiography monitor for detection of covert atrial fibrillation in young healthy adults| scientific reports. https://www.nature.com/articles/s41598-019-48267-1. Accessed 5 May 2020. [DOI] [PMC free article] [PubMed]
  • 27.Steinberg C, Philippon F, Sanchez M, Fortier-Poisson P, O’Hara G, Molin F, et al. A novel wearable device for continuous ambulatory ECG recording: proof of concept and assessment of signal quality. Biosensors. 2019;9(1):17. doi: 10.3390/bios9010017. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 28.Villar R, Beltrame T, Hughson RL. Validation of the Hexoskin wearable vest during lying, sitting, standing, and walking activities. Appl Physiol Nutr Metab. 2015;40(10):1019–1024. doi: 10.1139/apnm-2015-0140. [DOI] [PubMed] [Google Scholar]
  • 29.Pan J, Tompkins WJ. A real-time QRS Detection Algorithm. IEEE Trans Biomed Eng. 1985;32(3):230–236. doi: 10.1109/TBME.1985.325532. [DOI] [PubMed] [Google Scholar]
  • 30.Acar G, Ozturk O, Golparvar AJ, Elboshra TA, Böhringer K, Yapici MK. Wearable and flexible textile electrodes for biopotential signal monitoring: a review. Electronics. 2019;8(5):479. [Google Scholar]
  • 31.Taji B, Shirmohammadi S, Groza V. Measuring skin-electrode impedance variation of conductive textile electrodes under pressure. In 2014. p. 1083–8.
  • 32.Meziane N, Yang S, Shokoueinejad M, Webster JG, Attari M, Eren H. Simultaneous comparison of 1 gel with 4 dry electrode types for electrocardiography. Physiol Meas. 2015;36(3):513–529. doi: 10.1088/0967-3334/36/3/513. [DOI] [PubMed] [Google Scholar]
  • 33.Ag R. Triboelectric noise. ISA Trans. 1970;1(9):154–158. [Google Scholar]
  • 34.Cömert A, Hyttinen J. Investigating the possible effect of electrode support structure on motion artifact in wearable bioelectric signal monitoring. Biomed Eng Online. 2015;15(14):44. doi: 10.1186/s12938-015-0044-2. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 35.Priniotakis G, Westbroek P, Van Langenhove L, Hertleer C. Electrochemical impedance spectroscopy as an objective method for characterization of textile electrodes. Trans Instit Meas Control. 2007;1(29):271–281. [Google Scholar]
  • 36.Wu W, Pirbhulal S, Sangaiah AK, Mukhopadhyay SC, Li G. Optimization of signal quality over comfortability of textile electrodes for ECG monitoring in fog computing based medical applications. Future Gener Comput Syst. 2018;1(86):515–526. [Google Scholar]
  • 37.Webster JG. Reducing motion artifacts and interference in biopotential recording. IEEE Trans Biomed Eng. 1984;31(12):823–826. doi: 10.1109/TBME.1984.325244. [DOI] [PubMed] [Google Scholar]
  • 38.Simakov A, Webster J. Motion artifact from electrodes and cables. Iran J Elect Comput Eng. 2010;1(9):139–143. [Google Scholar]
  • 39.Thomopoulos SCA. Sensor Integration And Data Fusion Sensor Fusion II: human and Machine Strategies. Int Soc Optics Photon. 1990;1990:178–191. doi: 10.1117/12.969974.short. [DOI] [Google Scholar]
  • 40.Stiller C, Puente León F, Kruse M. Information fusion for automotive applications—an overview. Inf Fusion. 2011;12(4):244–252. [Google Scholar]
  • 41.Kam M, Xiaoxun Z, Kalata P. Sensor fusion for mobile robot navigation. Proc IEEE. 1997;85(1):108–119. [Google Scholar]
  • 42.Smith D, Singh S. Approaches to multisensor data fusion in target tracking: a survey. IEEE Trans Knowl Data Eng. 2006;18(12):1696–1710. [Google Scholar]
  • 43.Bancroft JB, Lachapelle G. Data fusion algorithms for multiple inertial measurement units. Sensors. 2011;11(7):6771–6798. doi: 10.3390/s110706771. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 44.Bergamini E, Ligorio G, Summa A, Vannozzi G, Cappozzo A, Sabatini AM. Estimating orientation using magnetic and inertial sensors and different sensor fusion approaches: accuracy assessment in manual and locomotion tasks. Sensors. 2014;14(10):18625–18649. doi: 10.3390/s141018625. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 45.Moody G, Mark R, Zoccola A, Mantero S. Derivation of respiratory signals from multilead ECGs. Computers in Cardiology. 1985;1:12. [Google Scholar]
  • 46.Nemati S, Malhotra A, Clifford GD. Data fusion for improved respiration rate estimation. EURASIP J Adv Signal Process. 2010;2010:1–10. doi: 10.1155/2010/926305. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 47.Liu K, Gebraeel NZ, Shi J. A data-level fusion model for developing composite health indices for degradation modeling and prognostic analysis. IEEE Trans Autom Sci Eng. 2013;10(3):652–664. [Google Scholar]
  • 48.Chung W, Bhardwaj S, Punvar A, Lee D, Myllylae R. A fusion health monitoring using ECG and accelerometer sensors for elderly persons at home. In: 2007 29th annual international conference of the IEEE Engineering In Medicine And Biology Society. 2007. p. 3818–21. [DOI] [PubMed]
  • 49.Sanfilippo F, Pettersen KY. A sensor fusion wearable health-monitoring system with haptic feedback. In: 2015 11th International conference on innovations in information technology (IIT). 2015. p. 262–6.
  • 50.Pani D, Achilli A, Bonfiglio A. Survey on textile electrode technologies for electrocardiographic (ECG) monitoring, from metal wires to polymers. Adv Mater Technol. 2018;3(10):1800008. [Google Scholar]
  • 51.Webster JG. Medical instrumentation: application and design. New York: Wiley; 2009. p. 736. [Google Scholar]
  • 52.Nayak S, Bit A, Dey A, Mohapatra B, Pal K. A review on the nonlinear dynamical system analysis of electrocardiogram signal. J Healthc Eng. 2018;2(2018):1–19. doi: 10.1155/2018/6920420. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 53.Yadav A, Grover N. A review of r peak detection techniques of electrocardiogram (ecg) J Eng Technol. 2017;8(2):15. [Google Scholar]
  • 54.Jenkal W, Latif R, Toumanari A, Dliou A, Bcharri O, Maoulainine FMR. An efficient algorithm of ECG signal denoising using the adaptive dual threshold filter and the discrete wavelet transform. Biocybern Biomed Eng. 2016;36(3):499–508. [Google Scholar]
  • 55.Tang J-T, Hua X-R, Cao Z-M, Ren Z-Y, Duan S-L. Hilbert-Huang transformation and noise suppression of magnetotelluric sounding data. Chin J Geophys Chin Ed. 2008;1(51):603–610. [Google Scholar]
  • 56.Pal S, Mitra M. Detection of ECG characteristic points using multiresolution wavelet analysis based selective coefficient method. Measurement. 2010;43(2):255–261. [Google Scholar]
  • 57.Kohler B-U, Hennig C, Orglmeister R. The principles of software QRS detection. IEEE Eng Med Biol Mag. 2002;21(1):42–57. doi: 10.1109/51.993193. [DOI] [PubMed] [Google Scholar]
  • 58.Nishant M, Balwalli S, Nikunj M, et al. Hilbert Transform Based Adaptive ECG R-Peak Detection Technique. Int J Electr Comput Eng. 2012;2(5):639–643. [Google Scholar]
  • 59.Prasad ST, Varadarajan S. Heart rate detection using hilbert transform. In 2013.
  • 60.Boussaa M, Issam A, Atibi M, abdellatif B. ECG Image Classification in Real time based on the Haar-like Features and Artificial Neural Networks. In 2015.
  • 61.Barbieri R, Brown EN. Analysis of heartbeat dynamics by point process adaptive filtering. IEEE Trans Biomed Eng. 2006;53(1):4–12. doi: 10.1109/tbme.2005.859779. [DOI] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

12938_2020_788_MOESM1_ESM.docx (73.3KB, docx)

Additional file 1. Details of optimal-threshold method & statistical measures of R-peaks. This section includes two appendices, namely, A) statistical measures of the performance of detected R-peaks, and B) optimal-threshold method.

Data Availability Statement

The datasets recorded and analyzed during the present study are available from the corresponding author on reasonable request.


Articles from BioMedical Engineering OnLine are provided here courtesy of BMC

RESOURCES