Next Article in Journal
The Deformation Behavior and Bending Emissions of ZnO Microwire Affected by Deformation-Induced Defects and Thermal Tunneling Effect
Previous Article in Journal
Electrical Detection of Innate Immune Cells
Previous Article in Special Issue
IMU-Based Effects Assessment of the Use of Foot Orthoses in the Stance Phase during Running and Asymmetry between Extremities
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Communication

A Simple Low-Cost Electrocardiogram Synchronizer

by
Susana Amorós
1,*,
Carolina Gálvez-Montón
2,3,
Oriol Rodríguez-Leor
2,3 and
Juan Manuel O’Callaghan
1
1
School of Telecommunications Engineering, Universitat Politècnica de Catalunya, 08034 Barcelona, Spain
2
ICREC Research Program, Health Science Research Institute Germans Trias i Pujol, Can Ruti Campus, 08916 Badalona, Spain
3
CIBERCV, Instituto de Salud Carlos III, 28029 Madrid, Spain
*
Author to whom correspondence should be addressed.
Sensors 2021, 21(17), 5885; https://doi.org/10.3390/s21175885
Submission received: 6 July 2021 / Revised: 24 August 2021 / Accepted: 28 August 2021 / Published: 1 September 2021
(This article belongs to the Special Issue Biomedical Sensors-Recent Advances and Future Challenges)

Abstract

:
Electrocardiogram (ECG) synchronization is useful to avoid the effects of cardiac motion in medical measurements, and is widely used in standard medical imaging. A number of medical equipment include embedded commercial synchronizers. However, the use of independent synchronization modules is sometimes needed when several non-integrated instruments are used, or in the development of new medical instruments and procedures. We present a simple low-cost ECG synchronizer module based on an Arduino controller board that converts the ECG signal into a transistor-transistor-logic (TTL) one, allowing real-time medical measurements triggered at specific phases of the cardiac cycle. The device and conversion algorithm developed is optimized in vitro using synthetic and human ECG signals, and tested in vivo on three swine specimens. Error rates during the in vivo testing stage remain below the 2% of the cycles in all animals and critical false positives are less than 1%, which is sufficient for most applications. Possible algorithm updates are discussed if its performance needs to be improved.

1. Introduction

Electrocardiogram (ECG) synchronization is sometimes required to avoid the effects of cardiac motion in medical measurements performed on the chest and abdomen [1]. This technique is widely used in standard medical imaging techniques, including magnetic resonance imaging (MRI) [2,3], intracoronary optical coherent tomography (OCT) [4], and triggered angiography non-contrast enhanced (TRANCE) [5], to prevent motion artifacts, such as shadows and blurred contours, on images.
ECG synchronization is done by means of prospective or retrospective ECG triggering (ECG-T). Prospective ECG-T performs measurements only at a certain phase of the cardiac cycle (e.g., ventricular systole) chosen to meet the application requirements [6] and triggered by the desired physiological event (e.g., R-wave). In retrospective ECG-T, measurements are continuously performed at several phases of the cardiac cycle and afterwards correlated to the ECG phase and sorted accordingly. The optimal method depends on the application to be used [7].
Prospective ECG-T requires an algorithm to detect a specific cardiac event. Given that a large number of studies aim to automatically analyze ECGs, the literature provides numerous algorithms that can detect specific events, such as the QRS complex [8,9]. Despite this, not many synchronization devices can be found [10]. Most of them are embedded in medical equipment. However, the use of independent synchronization modules is needed when several non-integrated instruments are used, or in the development of new medical instruments and procedures.
In this work, we present a simple prospective ECG-T synchronizer that generates a transistor-transistor-logic (TTL) signal to be used in any TTL-compatible instrument. The system is based on an Arduino controller board and can be adjusted to trigger at any phase of the cardiac cycle, and to compensate for possible instrumentation delays. The code developed, 3-D print files, and component list are available online.

2. Materials and Methods

2.1. Hardware Set-Up

As shown in Figure 1, an Arduino-based controller board (UNO R3 board, ELEGOO Shenzhen, China) was connected to a multiparameter monitor (PM-8000 Vet, Mindray, Shenzhen, China) and to the triggering port of a TTL-enabled instrument. To oversee the conversion, both connections were probed by a digital oscilloscope (PicoScope 2000 series, Pico Technology, Saint Neots, UK) and the whole system was monitored by a laptop (GL63 8RD, MSI, Taipei, Taiwan). To secure the connections, the controller board was kept in a 3-D-printed shell equipped with SMA connectors that were cabled to the input and output board pins. Coaxial cables were used to connect the various units. BNC connectors were used everywhere except at the controller ports. A pair of BNC tees were included to connect the digital oscilloscope to monitor the controller’s input and output signal.

2.2. Algorithm for ECG to TTL Conversion

The controller board used the analog ECG signal, e c g , from the monitor as an input and the algorithm performed its conversion to a digital TTL signal as schematized in Figure 2. We used the R-wave to compute the heart rate and establish the ECG phase. To avoid false triggers from other ECG waves, and the effect of the baseline wander, a well-known low-frequency artifact appearing in ECG signals, we combined the use of a two-point finite difference estimate of the ECG derivative and a time-dependent threshold following a quasi-exponential decay [11].
The initial phase of the ECG was established at the point where the ECG derivative is maximum (Figure 2 and Figure 3). At this point, the value of the threshold is set to be equal to the computed estimate of the ECG derivative. At 5-ms intervals, the estimate of the derivative of the ECG is re-computed and compared to the running value of the threshold. If this estimate is below the threshold, the threshold is decreased following a quasi-exponential law; otherwise, the heart rate estimate is updated comparing the current time with the previous time when the threshold was exceeded and the threshold is re-set to the current estimate of the ECG derivative. The trigger condition (Figure 3) is decided upon detection of the proper phase of the ECG cycle. In our algorithm, this is quantified through a parameter ( d t M P ) that sets the time between the trigger event and the next prospective maximum of the ECG derivative. This parameter can also be used to take into account instrumentation delays, such as the time between the TTL pulse at the instrument input and the time the measurement is really performed, or delays caused by the ECG monitor equipment. Finally, our algorithm in Figure 3 is set to perform the synchronization on the raising edge of the TTL pulse, so the TTL level has to be lowered shortly after the trigger event (relative to the ECG period). Modification to trigger on the trailing TTL pulse edge is straightforward: it only requires exchanging “high” and “low” in the diagram in Figure 3.
Overall, the algorithm follows the steps below, which are illustrated in Figure 2:
1.
Estimate the first derivative of the ECG ( e c g ) using finite differences between two samples 5   ms apart ( Δ t = 5   ms ):
e c g = e c g ( t + Δ t ) e c g ( t )
2.
Compare e c g to the predefined threshold, t h r .
a.
If e c g > t h r and the last R-wave detection was more than 20 ms ago, the i -th R-wave was detected. Thus, update the H R and the t h r values:
H R ( b e a t s m i n ) = 60 T j
t h r = e c g
where T j ( s ) = t i t i 1 is the heart rate period and t i , t i 1 are the times (in seconds) for two consecutive R-wave detections.
b.
Otherwise, decrease t h r and return to step 1:
t h r = t h r · ( 1 x )
where 0 < x < 1 Notice that x sets the decay rate of the time-dependent threshold t h r . A value of x too close to 1 sets a very rapid decay of the threshold and makes the triggering vulnerable to noise and other waves in the ECG that may generate false-positive triggers. Conversely, a value of x too close to 0 may cause missing the subsequent R-wave, particularly in the presence of baseline wander.
3.
Wait until t t i > ( T j d t M P ) and set a high TTL state, where t is the current time and d t M P is the parameter set to compensate for instrument delay and to set the ECG trigger phase.
4.
Set a low TTL state if it has been high for 25 ms or more. Then, return to step 1.

2.3. System Adjustment and Tests

Our algorithm was optimized using the demonstration ECG signal provided by the multiparameter (D001-D002) and that from a human patient (P101-P112). In order to stress the conditions, a sinusoidal wave was added to the demonstration signal to simulate a baseline wander; likewise, the human patient was asked to make abrupt movements during tests. The main aim during the adjustment stage was to ensure that the TTL signal would only be high when an R-wave occurred. In case of a false positive (FP), i.e., a transition to a high TTL state not produced by an R-wave, the device would trigger a measurement in a phase of the cardiac cycle different to that expected. In case of a false negative (FN), i.e., a non-detected R-wave, the high TTL state immediately after an omitted R-wave might be compromised given that the computed value of T j might be corrupted. In the initial adjustment, performed in an electronics lab, the parameter x was set to x = 0.14% to make the trigger robust to baseline wander, to other waves in the ECG, and to noise.
Finally, our device was used in a veterinary surgical room on six anesthetized swine specimens during 29 days of follow-up. Only three swine ECGs recorded are included in this paper. They are representative of the device operation throughout the whole campaign. In some of the three swine specimens, several ECG signals were traced, recording a total of seven ECG-TTL signals (S101, S201–S204, S301–S302, where the first two characters indicate the specimen).
Animal studies were performed under the local Animal Experimentation Unit Ethical Committee and Government Authorities (Generalitat de Catalunya; Code:10388) approval, and comply with guidelines concerning the use of animals in research and teaching as defined by the Guide for the Care and Use of Laboratory Animals [12]. Three crossbreed Landrace X Large White male pigs (34.3 ± 4.3 kg) were pre-medicated with an intramuscular (IM) injection of atropine (0.04 mg/kg; BBraun, Barcelona, Spain) and sedated with dexmedetomidine (0.03 mg/kg, IM; Dexdor®, Orion Pharma, Espoo, Finland), midazolam (0.3 mg/kg, IM; Laboratorios Normon, Barcelona, Spain), and butorphanol (0.3 mg/kg, IM; Butomidor®, Richter Pharma AG, Wels, Austria). Then, anaesthetic induction was carried out with an intravenous (IV) bolus of propofol (2–4 mg/kg; Propovet®, Zoetis, Barcelona, Spain). Animals underwent endotracheal intubation, and anesthesia was maintained by 2% isoflurane (IsoVet®, BBraun), inhalation. For intra-operative analgesia, several bolus of fentanyl (0.075 mg/kg/45 min, IV; Fentadon®, Dechra, Bladel, The Netherlands) were delivered. At the end of the surgical intervention, Tulatromicin (2.5 mg/kg, IM; Draxxin®, Pfizer Animal Health, Madrid, Spain) was administered as antibiotherapy, and a transdermal fentanyl patch was applied to allow analgesic post-operative care (Durogesic®, Janssen-Cilag, Madrid, Spain). Finally, pigs were recovered, and housed until the experimental endpoint.

2.4. Availability and Cost

Once development is complete, the system can operate without the laptop and digital oscilloscope, which were only required to oversee the proper system operation in the development stage. As shown in Figure 1, the system can be placed in a single unit, inserted between the ECG monitor and the instrument to be synchronized. All parts are available at general-purpose vending sites for less than 70 €. These include Arduino UNO Rev3 or ELEGOO UNO R3, BNC male cables (×2), jumper wire cables, BNC female connectors (×2), and a 9 V 1000 mA power source (see the detailed component list including prices and vendor website links in the Data Availability Statement)
The controller board shell was 3-D-printed using a standard 3-D printer (Sigma R19 3D, BCN3D Technologies, Inc.), but it could also have been sent to an external 3-D-printing service (e.g., CIM UPC) without altering the price significantly.

3. Results

Algorithm and System Operation

Overall, as summoned in Figure 4, both in vitro with the demonstration ECG signal and in vivo with human or swine subjects, R-waves were successfully detected and properly transformed to a TTL signal. Even in vivo with swine specimens and very noisy signals the conversion was performed adequately (Figure 4c).
Nonetheless, as detailed in Figure 5a, in vivo with the human patient and the swine specimens, some TTL high states did not become low before the next R-wave, thus omitting it, and resulting in an unexpected type of FN. Nevertheless, the next high TTL immediately after this type of FN did not appear corrupted. Some FP did occur too (Figure 5b). Table 1 quantifies the number of errors that occurred for each trace measured. Traces are chronologically sorted according to when they were measured; note that the error is reduced to zero during the adjustment stage in which the value of x was adjusted and minor code modifications were made.
To validate the behavior of the device, the obtained TTL signal is compared in Figure 6 to the ideal TTL signal that should result from the algorithm, which can only be computed ex post using the pre-recorded ECG signal. By comparing the times when the algorithm pulls high TTL states to when they should have been pulled, the precision of the device can be estimated (Table 2). Note that Table 2 focuses only on the non-error waves, therefore excluding the FP and FN waves. On average, the TTL signal during adjustment stages was advanced relative to its proper timing by 47.04 ± 4.62 ms with the demonstration ECG and 42.30 ± 72.52 ms with the human patient ECG. Note that with the human ECG during the adjustment stage (P101–P107), the average was 34.94 ± 99.37 ms, which changed to 52.60 ± 34.92 ms during the remaining measurements (P108–P112). During testing, the TTL signal was also slightly advanced 33.27 ± 10.83 ms ( 4.92 ± 1.66 % average relative to the ECG period). Note that the QRS interval of a normal ECG should not exceed 100 ms [13].

4. Discussion

We present a simple, cost-efficient, and versatile device that allows the synchronization of electronic measuring instruments to electrocardiographic signals with low error rates. The device was improved in vitro using synthetic ECG signals and human ECGs, and tested in vivo on six swine specimens during 29 days of follow-up.
Overall, errors during in vivo testing remain below 2% and critical FPs appear in less than 1% of the cycles. The TTL signal is slightly advanced 33.27 ± 10.83 ms. Note that, on average, the anesthetized swine ECG signals show a periodicity of 0.66 s per cycle; hence, the resulting TTL signal is advanced by about 5 ± 2 % per cycle.
Our device has proven to be a low-budget straightforward solution able to track the ECG and provide a synchronous TTL signal that allows prospective ECG-T of any TTL-compatible electronic measuring device, preventing cardiac motion artifacts when acquiring medical measurements, and without significantly increasing the cost of the measuring system. Given the unavailability of such independent modules in the literature, the hardware and algorithms presented in this work will be useful when non-integrated instruments have to be used, or when developing new medical instruments and procedures. Nonetheless, the performance of our module was only tested on healthy specimens; its performance under several cardiopathies will be assessed using ECG signals as these become available. Updated performance information will be posted online (see the Data Availability Statement below).
The precision obtained during this study was sufficient for the application it was used for. However, in order to improve its performance, two updates may be included: (1) the analog to digital conversion of the ECG signal should be performed at the microcontroller board sample rate (in our case, 9600 bauds). Additionally, (2) the threshold value could be further decreased if the amount of FPs is to be reduced since the value used does not seem to condition the appearance of FNs. Finally, FNs may also be reduced by decreasing the threshold with a true exponential function, t h r = t h r · e t h r · x rather than the first-order approximation used herein.
Moreover, during this study, the device was used to trigger measurements in the event of an R-wave, but it can be customized to trigger at any phase of the cardiac cycle by simply modifying the delay between the R-wave detected and the start of the TTL pulse.

Author Contributions

Conceptualization, S.A. and J.M.O.; methodology, S.A., C.G.-M. and J.M.O.; software, S.A.; validation, S.A., C.G.-M. and O.R.-L.; formal analysis, S.A.; investigation, S.A., C.G.-M., O.R.-L. and J.M.O.; resources, J.M.O. and C.G.-M.; data curation, S.A.; writing—original draft preparation, S.A.; writing—review and editing, C.G.-M. and J.M.O.; visualization, S.A., C.G.-M. and J.M.O.; supervision, J.M.O. project administration, J.M.O. and C.G.-M.; funding acquisition, J.M.O. and C.G.-M. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by grants from the Instituto de Salud Carlos III [PI18/00256], the Fundació La MARATÓ de TV3 (20153530/31), the Sociedad Española de Cardiología, and the Generalitat de Catalunya [2017-SGR-483]. This work was also funded by CaixaImpulse (CI20/00230), and the Red de Terapia Celular—TerCel [RD16/0011/0006] and CIBER Cardiovascular [CB16/11/00403] projects, as part of the Plan Nacional de I+D+I, and cofunded by ISCIII-Subdirección General de Evaluación y el Fondo Europeo de Desarrollo Regional (FEDER). F.M. acknowledges support from the Catalan Government through COFUND and the Unidad de Excelencia Maria de Maeztu MDM-2016-0600.

Institutional Review Board Statement

The study was conducted under the local Animal Experimentation Unit Ethical Committee and Government Authorities (Generalitat de Catalunya; Code:10388) approval, and comply with guidelines concerning the use of animals in research and teaching as defined by the Guide for the Care and Use of Laboratory Animals.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data is contained within the article, the rest are available online at https://github.com/susanaamoros/ECGsynchronizerhttps://github.com/susanaamoros/ECGsynchronizer: Arduino code, 3D print files for the controller board case and connection diagrams. Board assembly pictures, connection diagrams, component list (including prices and vendor website links), and a dynamic update of Table 1 with extended data sets will be found online.

Acknowledgments

We thank Albert Aguasca and Antoni Broquetas for their guidance during the development of this work. We are also grateful to the Center of Comparative Medicine and Bioimaging of Catalonia (CMCiB) for their contribution in the animal model execution.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Le Roy, J.; Zarqane, H.; Azais, B.; Vernhet Kovacsik, H.; Mura, T.; Okerlund, D.; Lacampagne, A.; Amedro, P. Impact of Motion Correction Algorithms on Image Quality in Children Undergoing Coronary Computed Tomography Angiography A Comparison with Regular Monophasic and Multiphasic Acquisitions. Circ. Cardiovasc. Imaging 2019, 12, e009650. [Google Scholar] [CrossRef] [PubMed]
  2. Ladrova, M.; Martinek, R.; Nedoma, J.; Hanzlikova, P.; Nelson, M.D.; Kahankova, R.; Brablik, J.; Kolarik, J. Monitoring and Synchronization of Cardiac and Respiratory Traces in Magnetic Resonance Imaging: A Review. IEEE Rev. Biomed. Eng. 2021. [Google Scholar] [CrossRef] [PubMed]
  3. Martinek, R.; Brablik, J.; Kolarik, J.; Ladrova, M.; Nedoma, J.A.N.; Jaros, R.; Soustek, L.; Kahankova, R.; Fajkus, M.; Vojtisek, L.; et al. A Low-Cost System for Seismocardiography-Based Cardiac Triggering: A Practical Solution for Cardiovascular Magnetic Resonance Imaging at 3 Tesla. IEEE Access 2019, 7, 118608–118629. [Google Scholar] [CrossRef]
  4. Zamorano, J.L.; Bax, J.; Knuuti, J.; Lancellotti, P.; Pinto, F.; Popescu, B.A.; Sechtem, U. The ESC Textbook of Cardiovascular Imaging. Chapter 3: Cardiac CT—Basic principles. In The ESC Textbook of Cardiovascular Imaging, 3rd ed.; Zamorano, J.L., Bax, J., Knuuti, J., Sechtem, U., Lancellotti, P., Pinto, F., Popescu, B.A., Eds.; Oxford University Press: Oxford, UK, 2021; pp. 57–65. ISBN 9780198849353. [Google Scholar]
  5. Osanai, T.; Kazumata, K.; Kobayashi, S.; Fujima, N.; Kurisu, K.; Shimoda, Y.; Houkin, K. Electrocardiogram-Triggered Angiography Non-Contrast-Enhanced (TRANCE) Imaging to Assess Access Route Before Diagnostic Cerebral Angiography. World Neurosurg. 2018, 119, 237–241. [Google Scholar] [CrossRef] [PubMed]
  6. Le Roy, J.; Azais, B.; Zarqane, H.; Vernhet Kovacsik, H.; Mura, T.; Lacampagne, A.; Amedro, P. Selection of optimal cardiac phases for ECG-triggered coronary CT angiography in pediatrics. Phys. Med. 2021, 81, 155–161. [Google Scholar] [CrossRef] [PubMed]
  7. Sabarudin, A.; Sun, Z.; Khairuddin, A. Coronary CT angiography with single-source and dual-source CT: Comparison of image quality and radiation dose between prospective ECG-triggered and retrospective ECG-gated protocols. Int. J. Cardiol. 2013, 168, 746–753. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  8. Lai, D.; Zhang, F.; Wang, C. A Real-time QRS Complex Detection Algorithm Based on Differential Threshold Method. In Proceedings of the 2015 IEEE International Conference on Digital Signal Processing (DSP), Singapore, 21–24 July 2015; pp. 129–133. [Google Scholar]
  9. Hou, Z.; Dong, Y.; Xiang, J.; Li, X.; Yang, B. A Real-Time QRS Detection Method Based on Phase Portraits and Box-Scoring Calculation. IEEE Sens. J. 2018, 18, 3694–3702. [Google Scholar] [CrossRef]
  10. Lafruitl, G.; Cornelis, J.; Group, R.; Brussel, V.U. An ECG Trigger Module for the Acquisition of Cardiac MR Images. In Proceedings of the Computers in Cardiology 1994, Bethesda, MD, USA, 25–28 September 1994; pp. 533–536. [Google Scholar]
  11. Ruppert, M.G.; Harcombe, D.M.; Ragazzon, M.R.P.; Moheimani, S.O.R.; Fleming, A.J. A review of demodulation techniques for amplitude-modulation atomic force microscopy. Beilstein J. Nanotechnol. 2017, 8, 1407–1426. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  12. National Research Council 2011. Guide for the Care and Use of Laboratory Animals, 8th ed.; The National Academies Press: Washington, DC, USA, 2011; ISBN 978-0-309-38629-6. [Google Scholar] [CrossRef]
  13. Becker, D.E. Fundamentals of Electrocardiography Interpretation. Anesth. Prog. 2006, 53, 53–64. [Google Scholar] [CrossRef] [Green Version]
Figure 1. Block diagram of the hardware set-up comprising a controller board, a multiparameter monitor to capture and record the ECG, and a digital oscilloscope. The laptop and oscilloscope are used to oversee the ECG to TTL conversion during the development tests. They can be suppressed once development is complete.
Figure 1. Block diagram of the hardware set-up comprising a controller board, a multiparameter monitor to capture and record the ECG, and a digital oscilloscope. The laptop and oscilloscope are used to oversee the ECG to TTL conversion during the development tests. They can be suppressed once development is complete.
Sensors 21 05885 g001
Figure 2. ECG to TTL conversion algorithm: (1) compute the first derivative, e c g , as the difference between two samples distanced Δ t ; (2) compare e c g to a predefined threshold, t h r (black line); whenever e c g > t h r (red circle), an R-wave is detected; (3) wait T d t M P seconds and set a high TTL state (red line); (4) after 25   ms , set the TTL to low and return to step 1.
Figure 2. ECG to TTL conversion algorithm: (1) compute the first derivative, e c g , as the difference between two samples distanced Δ t ; (2) compare e c g to a predefined threshold, t h r (black line); whenever e c g > t h r (red circle), an R-wave is detected; (3) wait T d t M P seconds and set a high TTL state (red line); (4) after 25   ms , set the TTL to low and return to step 1.
Sensors 21 05885 g002
Figure 3. ECG to TTL algorithm diagram.
Figure 3. ECG to TTL algorithm diagram.
Sensors 21 05885 g003
Figure 4. ECG (blue) and TTL (red) signals (a) when adding a sinusoidal wave to the demonstration ECG signal, (b) when using the ECG from a moving human patient, and (c) when using the ECG from an anesthetized swine specimen.
Figure 4. ECG (blue) and TTL (red) signals (a) when adding a sinusoidal wave to the demonstration ECG signal, (b) when using the ECG from a moving human patient, and (c) when using the ECG from an anesthetized swine specimen.
Sensors 21 05885 g004
Figure 5. ECG (blue) and TTL (red) signals showing (a) false negatives when using the ECG from a moving human patient (top) and from an anesthetized swine specimen (bottom). (b) False positives using human (top) and swine (bottom) specimens.
Figure 5. ECG (blue) and TTL (red) signals showing (a) false negatives when using the ECG from a moving human patient (top) and from an anesthetized swine specimen (bottom). (b) False positives using human (top) and swine (bottom) specimens.
Sensors 21 05885 g005
Figure 6. ECG (blue), TTL (red), and ideal TTL (black) signals (a) when adding a sinusoidal wave to the demonstration ECG signal; (b) when using the ECG from a moving human patient; and (c) when using the ECG from an anesthetized swine specimen. Note that comparisons on the TTL signals should be made on the raised edge of the pulses.
Figure 6. ECG (blue), TTL (red), and ideal TTL (black) signals (a) when adding a sinusoidal wave to the demonstration ECG signal; (b) when using the ECG from a moving human patient; and (c) when using the ECG from an anesthetized swine specimen. Note that comparisons on the TTL signals should be made on the raised edge of the pulses.
Sensors 21 05885 g006
Table 1. Quantification of the errors that occurred for every trace measured (# stands for “number”).
Table 1. Quantification of the errors that occurred for every trace measured (# stands for “number”).
StageSourceTrace# Cycles# FP/# R-Waves (%)# FN/# R-Waves (%)Error (%)
AdjustmentDemoD001200.000.000.00
D002500.000.000.00
HumanP101640.009.389.38
P102600.006.676.67
P103610.008.208.20
P104591.6910.1711.86
P105671.4917.9119.40
P106650.001.541.54
P107644.690.004.69
P108630.000.000.00
P109660.000.000.00
P110130.000.000.00
P111640.000.000.00
P112670.000.000.00
TestingSwineS1011360.740.000.74
S2011380.720.000.72
S2021370.730.000.73
S2031340.000.000.00
S2041360.000.000.00
S3012210.001.811.81
S3021590.000.630.63
Table 2. Comparison between the time when high TTL states are pulled by the algorithm ( t a ) and by the ideal signal ( t i ): Δ t = t i t a (ms) for each R-wave. FP and FN were excluded.
Table 2. Comparison between the time when high TTL states are pulled by the algorithm ( t a ) and by the ideal signal ( t i ): Δ t = t i t a (ms) for each R-wave. FP and FN were excluded.
StageSourceTrace Mean   ( Δ t ) STD   ( Δ t )
AdjustmentDemoD00149.305.64
D00244.783.60
HumanP10130.92108.08
P10218.6115.26
P10335.3466.13
P10436.01156.14
P10522.43278.18
P10653.0042.34
P10748.2629.47
P10849.5329.27
P10957.6231.38
P11051.7027.87
P11143.8534.65
P11260.2851.43
TestingSwineS10141.0716.60
S20137.1218.68
S20234.5413.59
S20330.453.74
S20436.623.41
S30127.0113.47
S30226.066.36
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Amorós, S.; Gálvez-Montón, C.; Rodríguez-Leor, O.; O’Callaghan, J.M. A Simple Low-Cost Electrocardiogram Synchronizer. Sensors 2021, 21, 5885. https://doi.org/10.3390/s21175885

AMA Style

Amorós S, Gálvez-Montón C, Rodríguez-Leor O, O’Callaghan JM. A Simple Low-Cost Electrocardiogram Synchronizer. Sensors. 2021; 21(17):5885. https://doi.org/10.3390/s21175885

Chicago/Turabian Style

Amorós, Susana, Carolina Gálvez-Montón, Oriol Rodríguez-Leor, and Juan Manuel O’Callaghan. 2021. "A Simple Low-Cost Electrocardiogram Synchronizer" Sensors 21, no. 17: 5885. https://doi.org/10.3390/s21175885

APA Style

Amorós, S., Gálvez-Montón, C., Rodríguez-Leor, O., & O’Callaghan, J. M. (2021). A Simple Low-Cost Electrocardiogram Synchronizer. Sensors, 21(17), 5885. https://doi.org/10.3390/s21175885

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop