Related Experiment Video
Updated: Jul 6, 2025

Author Spotlight: Advancing the Study of Brain-Heart Interplay with a Comprehensive EEGLAB Plugin for Multimodal Signal Analysis
Published on: April 26, 2024
Open-source software for respiratory rate estimation using single-lead electrocardiograms
Jesse D Roberts1, Richard D Walton2,3, Virginie Loyer2,3
1Departments of Anesthesia, Pediatrics, and Medicine, Massachusetts General Hospital, Boston, MA, USA.
Abstract:
Respiratory rate (RR) is a critical vital sign used to assess pulmonary function. Currently, RR estimating instrumentation is specialized and bulky, therefore unsuitable for remote health monitoring. Previously, RR was estimated using proprietary software that extract surface electrocardiogram (ECG) waveform features obtained at several thoracic locations. However, developing a non-proprietary method that uses minimal ECG leads, generally available from mobile cardiac monitors is highly desirable. Here, we introduce an open-source and well-documented Python-based algorithm that estimates RR requiring only single-stream ECG signals. The algorithm was first developed using ECGs from awake, spontaneously breathing adult human subjects. The algorithm-estimated RRs exhibited close linear correlation to the subjects' true RR values demonstrating an R2 of 0.9092 and root mean square error of 2.2 bpm. The algorithm robustness was then tested using ECGs generated by the ischemic hearts of anesthetized, mechanically ventilated sheep. Although the ECG waveforms during ischemia exhibited severe morphologic changes, the algorithm-determined RRs exhibited high fidelity with a resolution of 1 bpm, an absolute error of 0.07 ± 0.07 bpm, and a relative error of 0.67 ± 0.64%. This optimized Python-based RR estimation technique will likely be widely adapted for remote lung function assessment in patients with cardiopulmonary disease.
Related Concept Videos
Assessment of Ventilation I: Respiratory Rate
A Ventilation assessment is critical for monitoring a patient's health status. Respiration, one of the most accessible vital signs, provides insights into the function of numerous body systems and can indicate serious health issues, such as brainstem injuries from head trauma.
Critical Guidelines for Assessing Ventilation:
Special considerations while measuring oxygen saturation
Ensuring accuracy in vital sign recordings while prioritizing patient comfort and minimizing anxiety is...
Electrocardiogram Fundamentals
An electrocardiogram (ECG) is a diagnostic tool for identifying cardiac conditions such as arrhythmias, conduction abnormalities, and myocardial ischemia.
Definition
An electrocardiogram (ECG) visualizes the heart's electrical activity by tracing the electrical movement associated with each heartbeat on a graph or monitor. As the heart beats, an electrical wave passes through it, correlating with the cardiac cycle events.
Parts of an ECG
An ECG utilizes electrodes on the skin...
Electrocardiogram
Three major waveforms are present in a typical ECG recording: the P wave, the QRS complex, and...

