<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.1d3 20150301//EN" "http://jats.nlm.nih.gov/publishing/1.1d3/JATS-journalpublishing1.dtd">
<article article-type="research-article" dtd-version="1.1d3" xml:lang="en" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">
<front>
<journal-meta>
<journal-id journal-id-type="nlm-ta">PLoS ONE</journal-id>
<journal-id journal-id-type="publisher-id">plos</journal-id>
<journal-id journal-id-type="pmc">plosone</journal-id>
<journal-title-group>
<journal-title>PLOS ONE</journal-title>
</journal-title-group>
<issn pub-type="epub">1932-6203</issn>
<publisher>
<publisher-name>Public Library of Science</publisher-name>
<publisher-loc>San Francisco, CA USA</publisher-loc>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="publisher-id">PONE-D-21-02517</article-id>
<article-id pub-id-type="doi">10.1371/journal.pone.0249843</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Research Article</subject>
</subj-group>
<subj-group subj-group-type="Discipline-v3">
<subject>Research and analysis methods</subject><subj-group><subject>Bioassays and physiological analysis</subject><subj-group><subject>Electrophysiological techniques</subject><subj-group><subject>Cardiac electrophysiology</subject><subj-group><subject>Electrocardiography</subject></subj-group></subj-group></subj-group></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Computer and information sciences</subject><subj-group><subject>Neural networks</subject></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Biology and life sciences</subject><subj-group><subject>Neuroscience</subject><subj-group><subject>Neural networks</subject></subj-group></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Computer and information sciences</subject><subj-group><subject>Network analysis</subject><subj-group><subject>Signaling networks</subject></subj-group></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Engineering and technology</subject><subj-group><subject>Signal processing</subject><subj-group><subject>Signal filtering</subject></subj-group></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Medicine and health sciences</subject><subj-group><subject>Health care</subject><subj-group><subject>Health care facilities</subject><subj-group><subject>Hospitals</subject><subj-group><subject>Intensive care units</subject></subj-group></subj-group></subj-group></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>People and places</subject><subj-group><subject>Population groupings</subject><subj-group><subject>Professions</subject><subj-group><subject>Medical personnel</subject><subj-group><subject>Nurses</subject></subj-group></subj-group></subj-group></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Medicine and health sciences</subject><subj-group><subject>Health care</subject><subj-group><subject>Health care providers</subject><subj-group><subject>Nurses</subject></subj-group></subj-group></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Engineering and technology</subject><subj-group><subject>Measurement</subject></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Physical sciences</subject><subj-group><subject>Mathematics</subject><subj-group><subject>Applied mathematics</subject><subj-group><subject>Algorithms</subject></subj-group></subj-group></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Research and analysis methods</subject><subj-group><subject>Simulation and modeling</subject><subj-group><subject>Algorithms</subject></subj-group></subj-group></subj-group></article-categories>
<title-group>
<article-title>Determining respiratory rate from photoplethysmogram and electrocardiogram signals using respiratory quality indices and neural networks</article-title>
<alt-title alt-title-type="running-head">Determining respiratory rate from heart activity signals using respiratory quality indices and neural networks</alt-title>
</title-group>
<contrib-group>
<contrib contrib-type="author" corresp="yes" xlink:type="simple">
<contrib-id authenticated="true" contrib-id-type="orcid">https://orcid.org/0000-0003-0467-7791</contrib-id>
<name name-style="western">
<surname>Baker</surname> <given-names>Stephanie</given-names></name>
<role content-type="https://casrai.org/credit/">Conceptualization</role>
<role content-type="https://casrai.org/credit/">Investigation</role>
<role content-type="https://casrai.org/credit/">Methodology</role>
<role content-type="https://casrai.org/credit/">Software</role>
<role content-type="https://casrai.org/credit/">Writing – original draft</role>
<role content-type="https://casrai.org/credit/">Writing – review &amp; editing</role>
<xref ref-type="aff" rid="aff001"><sup>1</sup></xref>
<xref ref-type="corresp" rid="cor001">*</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple">
<contrib-id authenticated="true" contrib-id-type="orcid">https://orcid.org/0000-0002-0608-065X</contrib-id>
<name name-style="western">
<surname>Xiang</surname> <given-names>Wei</given-names></name>
<role content-type="https://casrai.org/credit/">Supervision</role>
<role content-type="https://casrai.org/credit/">Writing – review &amp; editing</role>
<xref ref-type="aff" rid="aff002"><sup>2</sup></xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple">
<contrib-id authenticated="true" contrib-id-type="orcid">https://orcid.org/0000-0002-2295-6818</contrib-id>
<name name-style="western">
<surname>Atkinson</surname> <given-names>Ian</given-names></name>
<role content-type="https://casrai.org/credit/">Supervision</role>
<role content-type="https://casrai.org/credit/">Writing – review &amp; editing</role>
<xref ref-type="aff" rid="aff003"><sup>3</sup></xref>
</contrib>
</contrib-group>
<aff id="aff001">
<label>1</label>
<addr-line>College of Science and Engineering, James Cook University, Cairns, Queensland, Australia</addr-line>
</aff>
<aff id="aff002">
<label>2</label>
<addr-line>School of Engineering and Mathematical Sciences, La Trobe University, Melbourne, Victoria, Australia</addr-line>
</aff>
<aff id="aff003">
<label>3</label>
<addr-line>eResearch Centre, James Cook University, Townsville, Queensland, Australia</addr-line>
</aff>
<contrib-group>
<contrib contrib-type="editor" xlink:type="simple">
<name name-style="western">
<surname>Chen</surname> <given-names>Chi-Hua</given-names></name>
<role>Editor</role>
<xref ref-type="aff" rid="edit1"/>
</contrib>
</contrib-group>
<aff id="edit1">
<addr-line>Fuzhou University, CHINA</addr-line>
</aff>
<author-notes>
<fn fn-type="conflict" id="coi001">
<p>The authors have declared that no competing interests exist.</p>
</fn>
<corresp id="cor001">* E-mail: <email xlink:type="simple">stephanie.baker@jcu.edu.au</email></corresp>
</author-notes>
<pub-date pub-type="collection">
<year>2021</year>
</pub-date>
<pub-date pub-type="epub">
<day>8</day>
<month>4</month>
<year>2021</year>
</pub-date>
<volume>16</volume>
<issue>4</issue>
<elocation-id>e0249843</elocation-id>
<history>
<date date-type="received">
<day>24</day>
<month>1</month>
<year>2021</year>
</date>
<date date-type="accepted">
<day>25</day>
<month>3</month>
<year>2021</year>
</date>
</history>
<permissions>
<copyright-year>2021</copyright-year>
<copyright-holder>Baker et al</copyright-holder>
<license xlink:href="http://creativecommons.org/licenses/by/4.0/" xlink:type="simple">
<license-p>This is an open access article distributed under the terms of the <ext-link ext-link-type="uri" xlink:href="http://creativecommons.org/licenses/by/4.0/" xlink:type="simple">Creative Commons Attribution License</ext-link>, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.</license-p>
</license>
</permissions>
<self-uri content-type="pdf" xlink:href="info:doi/10.1371/journal.pone.0249843"/>
<abstract>
<p>Continuous and non-invasive respiratory rate (RR) monitoring would significantly improve patient outcomes. Currently, RR is under-recorded in clinical environments and is often measured by manually counting breaths. In this work, we investigate the use of respiratory signal quality quantification and several neural network (NN) structures for improved RR estimation. We extract respiratory modulation signals from the electrocardiogram (ECG) and photoplethysmogram (PPG) signals, and calculate a possible RR from each extracted signal. We develop a straightforward and efficient respiratory quality index (RQI) scheme that determines the quality of each moonddulation-extracted respiration signal. We then develop NNs for the estimation of RR, using estimated RRs and their corresponding quality index as input features. We determine that calculating RQIs for modulation-extracted RRs decreased the mean absolute error (MAE) of our NNs by up to 38.17%. When trained and tested using 60-sec waveform segments, the proposed scheme achieved an MAE of 0.638 breaths per minute. Based on these results, our scheme could be readily implemented into non-invasive wearable devices for continuous RR measurement in many healthcare applications.</p>
</abstract>
<funding-group>
<award-group id="award001">
<funding-source>
<institution>Australian Government Research Training Program Scholarship</institution>
</funding-source>
<principal-award-recipient>
<contrib-id authenticated="true" contrib-id-type="orcid">https://orcid.org/0000-0003-0467-7791</contrib-id>
<name name-style="western">
<surname>Baker</surname> <given-names>Stephanie</given-names></name>
</principal-award-recipient>
</award-group>
<funding-statement>This work was supported by the Australian Government Research Training Program Scholarship.</funding-statement>
</funding-group>
<counts>
<fig-count count="5"/>
<table-count count="3"/>
<page-count count="17"/>
</counts>
<custom-meta-group>
<custom-meta id="data-availability">
<meta-name>Data Availability</meta-name>
<meta-value>The data used for this paper is from the Medical Information Mart for Intensive Care (MIMIC) database. In particular, the data is from the MIMIC waveform database, which is an open access database accessible at <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.13026/c2607m" xlink:type="simple">https://doi.org/10.13026/c2607m</ext-link> The code for this work is available at: <ext-link ext-link-type="uri" xlink:href="https://github.com/stephb23/RespiratoryRate" xlink:type="simple">https://github.com/stephb23/RespiratoryRate</ext-link>.</meta-value>
</custom-meta>
</custom-meta-group>
</article-meta>
</front>
<body>
<sec id="sec001" sec-type="intro">
<title>Introduction</title>
<p>Respiratory rate (RR) is a fundamental physiological parameter, and abnormality in this vital sign is one of the earliest indicators of critical illness. One recent study found that elevated respiratory rate was a key predictor of clinical deterioration within 48 hours of discharge from the emergency department [<xref ref-type="bibr" rid="pone.0249843.ref001">1</xref>]. Another classical study determined that the occurrence of at least one RR ≥ 27 breaths per minute (BrPM) in a 72 hour period was a strong predictor of cardiac arrest [<xref ref-type="bibr" rid="pone.0249843.ref002">2</xref>]. Elevated RR has also been linked to increased mortality [<xref ref-type="bibr" rid="pone.0249843.ref003">3</xref>], while relative changes in RR have been shown to indicate patient stability [<xref ref-type="bibr" rid="pone.0249843.ref004">4</xref>]. In children, elevated RR is a primary indicator of pneumonia, an infection that is the most common cause of death in children aged 0-5 [<xref ref-type="bibr" rid="pone.0249843.ref005">5</xref>, <xref ref-type="bibr" rid="pone.0249843.ref006">6</xref>]. Clearly, abnormalities or variations in the RR are key indicators of clinical deterioration.</p>
<p>Despite the clinical significance of RR, several studies have noted that it is historically less recorded than other vital signs [<xref ref-type="bibr" rid="pone.0249843.ref001">1</xref>, <xref ref-type="bibr" rid="pone.0249843.ref007">7</xref>–<xref ref-type="bibr" rid="pone.0249843.ref009">9</xref>]. This has somewhat improved with the introduction of the Modified Early Warning Score [<xref ref-type="bibr" rid="pone.0249843.ref007">7</xref>], which incorporates measurement of RR. However, one study observed that nurses still don’t measure RR in 50% of cases [<xref ref-type="bibr" rid="pone.0249843.ref009">9</xref>]. Time constraints and the lack of equipment for measuring RR were both cited as reasons for not monitoring this parameter.</p>
<p>This lack of recording can be partially attributed to the fact that there is a lack of tools available for automatically measuring RR. Currently, most methods for automatic RR measurement rely on oronasal systems incorporating sensors including capnography, temperature, and moisture sensors [<xref ref-type="bibr" rid="pone.0249843.ref005">5</xref>]. However, these have not been widely adopted, with issues related to cost, wearability, and accuracy identified for existing automated devices [<xref ref-type="bibr" rid="pone.0249843.ref005">5</xref>].</p>
<p>Manual measurement remains the accepted method for determining RR. To obtain RR, it is recommended that healthcare staff count the number of breaths a patient takes over a one-minute period [<xref ref-type="bibr" rid="pone.0249843.ref006">6</xref>]. However, several studies have found that both doctors and nurses estimate respiratory rate over shorter time periods, or without counting the breath at all [<xref ref-type="bibr" rid="pone.0249843.ref010">10</xref>, <xref ref-type="bibr" rid="pone.0249843.ref011">11</xref>]. Accuracy of manual RR calculations can be affected by patient awareness [<xref ref-type="bibr" rid="pone.0249843.ref009">9</xref>], as well as time constraints, interruptions from patients and other staff, and patient agitation [<xref ref-type="bibr" rid="pone.0249843.ref005">5</xref>, <xref ref-type="bibr" rid="pone.0249843.ref011">11</xref>].</p>
<p>In addition to the complications associated with obtaining an accurate manual RR measurement, there is also a significant time cost. One study found that as much as 7.2% of nurses’ time was spent performing patient assessment, including measurement of RR [<xref ref-type="bibr" rid="pone.0249843.ref012">12</xref>]. There are approximately 3 million registered nurses in America, earning an average of $75,510 USD per annum each as of May 2018 [<xref ref-type="bibr" rid="pone.0249843.ref013">13</xref>]. Thus, the total financial cost incurred by time nurses spend on patient assessment exceeds 16 billion USD per year.</p>
<p>Given the major limitations in measuring RR, it is clear that a reliable method of automatic and continuous monitoring of this vital sign in a non-invasive manner would significantly improve patient outcomes in hospitals. Additionally, given the usefulness of RR as an early indicator of critical illness, continuous at-home measurement of RR could be lifesaving for at-risk patients living alone.</p>
<p>Several recent studies have investigated the use of photoplethysmogram (PPG) and electrocardiogram (ECG) signals to derive RR in a wearable and non-invasive manner [<xref ref-type="bibr" rid="pone.0249843.ref014">14</xref>–<xref ref-type="bibr" rid="pone.0249843.ref019">19</xref>]. Respiration modulates the ECG and PPG signals in three main ways—baseline wander (BW) modulation, amplitude modulation (AM) and respiratory sinus arrhythmia (RSA) modulation, more commonly known as frequency modulation (FM). These modulations are caused by movement associated with breathing, and various responses to the change in intrathoracic pressure during respiration [<xref ref-type="bibr" rid="pone.0249843.ref020">20</xref>].</p>
<p>In order to accurately estimate RR, several recent studies have developed respiratory quality indices (RQIs) to determine which of the extracted modulations are of the highest quality [<xref ref-type="bibr" rid="pone.0249843.ref017">17</xref>, <xref ref-type="bibr" rid="pone.0249843.ref018">18</xref>, <xref ref-type="bibr" rid="pone.0249843.ref021">21</xref>]. This in turn allows for identification of which modulation-extracted RRs are realistic, thus allowing for more accurate estimation of actual RR.</p>
<p>Interestingly, there are very few studies that have attempted to estimate RR from PPG and ECG using machine learning (ML). The best performing ML-enabled technique was presented in [<xref ref-type="bibr" rid="pone.0249843.ref017">17</xref>], where a mean absolute error (MAE) of 0.71 BrPM was achieved using linear regression. While these are reasonably good results, we will demonstrate that they can be improved upon by instead using neural networks (NNs) in combination with our own novel RQI scheme.</p>
<p>In this work, we develop an RQI scheme for assessing the quality of modulation-extraction respiration signals. The proposed scheme uses statistics regarding the signal variation to assign ‘good’ or ‘bad’ ratings to RRs calculated from modulation-extracted signals. We train and test multiple neural networks, comparing the performance in two scenarios: one where only RR features are used as features, and the other where both RR and corresponding RQIs are used.</p>
<p>The remainder of this paper is structured as follows. Section II describes the methodology utilized for obtaining signal quality and an overall RR estimation using various NN structures. Section III presents results and discussion before Section IV concludes the paper and provides recommendations for future work. Acronyms and abbreviations used throughout this work are defined in <xref ref-type="table" rid="pone.0249843.t001">Table 1</xref> below for the convenience of the reader.</p>
<table-wrap id="pone.0249843.t001" position="float">
<object-id pub-id-type="doi">10.1371/journal.pone.0249843.t001</object-id>
<label>Table 1</label>
<caption>
<title>Acronyms and abbreviations.</title>
</caption>
<alternatives>
<graphic id="pone.0249843.t001g" mimetype="image" position="float" xlink:href="info:doi/10.1371/journal.pone.0249843.t001" xlink:type="simple"/>
<table border="0" frame="box" rules="all">
<colgroup>
<col align="left" valign="middle"/>
<col align="left" valign="middle"/>
</colgroup>
<thead>
<tr>
<th align="center">Abbreviation</th>
<th align="center">Definition</th>
</tr>
</thead>
<tbody>
<tr>
<td align="center">AM</td>
<td align="center">Amplitude modulation</td>
</tr>
<tr>
<td align="center">BiLSTM</td>
<td align="center">Bidirectional long short-term memory</td>
</tr>
<tr>
<td align="center">BrPM</td>
<td align="center">Breaths per minute</td>
</tr>
<tr>
<td align="center">BrTBr</td>
<td align="center">Breath-to-breath</td>
</tr>
<tr>
<td align="center">BTB</td>
<td align="center">Beat-to-beat</td>
</tr>
<tr>
<td align="center">BW</td>
<td align="center">Baseline wander</td>
</tr>
<tr>
<td align="center">DCV</td>
<td align="center">Differential coefficient of variation</td>
</tr>
<tr>
<td align="center">ECG</td>
<td align="center">Electrocardiogram</td>
</tr>
<tr>
<td align="center">FM</td>
<td align="center">Frequency modulation</td>
</tr>
<tr>
<td align="center">HR</td>
<td align="center">Heart rate</td>
</tr>
<tr>
<td align="center">ICU</td>
<td align="center">Intensive care unit</td>
</tr>
<tr>
<td align="center">LOA</td>
<td align="center">Limit of agreement</td>
</tr>
<tr>
<td align="center">LSTM</td>
<td align="center">Long short-term memory</td>
</tr>
<tr>
<td align="center">MAE</td>
<td align="center">Mean absolute error</td>
</tr>
<tr>
<td align="center">MD</td>
<td align="center">Mean difference</td>
</tr>
<tr>
<td align="center">MIMIC</td>
<td align="center">Medical Information Mart for Intensive Care</td>
</tr>
<tr>
<td align="center">ML</td>
<td align="center">Machine learning</td>
</tr>
<tr>
<td align="center">NN</td>
<td align="center">Neural network</td>
</tr>
<tr>
<td align="center">PCC</td>
<td align="center">Pearson’s correlation coefficient</td>
</tr>
<tr>
<td align="center">PPG</td>
<td align="center">Photoplethysmograph</td>
</tr>
<tr>
<td align="center">RMSE</td>
<td align="center">Root mean square error</td>
</tr>
<tr>
<td align="center">RQI</td>
<td align="center">Respiratory quality index</td>
</tr>
<tr>
<td align="center">RR</td>
<td align="center">Respiratory rate</td>
</tr>
<tr>
<td align="center">RSA</td>
<td align="center">Respiratory sinus arrhythmia</td>
</tr>
<tr>
<td align="center">SQI</td>
<td align="center">Signal quality index</td>
</tr>
</tbody>
</table>
</alternatives>
</table-wrap>
</sec>
<sec id="sec002" sec-type="materials|methods">
<title>Methodology</title>
<sec id="sec003">
<title>Obtaining data</title>
<p>Data for this work was obtained from the open-source Medical Information Mart for Intensive Care (MIMIC-III) database [<xref ref-type="bibr" rid="pone.0249843.ref022">22</xref>], which features an extremely large number of records from patients admitted to intensive care units (ICUs) between 2001-2012. Data used to conduct this research was first accessed in 2019. To train the neural networks, ECG and PPG signals were needed to derive RR from the BW, AM, and FM modulations. Additionally, a reference “true” RR signal was needed to provide the neural networks with an expected output RR. As such, the PhysioBank ATM tool [<xref ref-type="bibr" rid="pone.0249843.ref023">23</xref>] was used to obtain a list of all records containing ECG, PPG, and respiratory waveforms from the MIMIC-III database. Then, a Python script was developed to download all relevant records as MATLAB-compatible files, utilizing several functions from the Waveform Database Toolbox [<xref ref-type="bibr" rid="pone.0249843.ref024">24</xref>]. After running this script, a total of 8,781 records were obtained. No exclusions were made based on patient demographics, diagnoses or treatments received, as we aimed to develop an all-inclusive scheme that could measure respiratory rate irrespective of whether respiration was being affected by health conditions or respiratory support treatments. Patient demographics are also not attached to many of the waveform records used, however an overview of patient demographics across the entire MIMIC-III database is presented in the original paper describing the database [<xref ref-type="bibr" rid="pone.0249843.ref022">22</xref>].</p>
</sec>
<sec id="sec004">
<title>Preprocessing data</title>
<p>The primary preprocessing performed was the denoising of ECG and PPG signals. Many of the ECG and PPG signals were affected by baseline wander that could be attributed both to respiration and other movement. Thus, baseline wander was removed from each signal using a low-pass Chebyshev filter and stored for later use.</p>
<p>After removing the low-frequency BW components from the signals, it was observed that many ECG signals still appeared noisy. To denoise the ECG signals, a seventh-order Savitsky-Golay filter was utilized. This filter type was chosen due as they are well-known to preserve small details of a waveform, such as the Q- and S-waves found in ECG signals.</p>
<p>After signals were denoised, all records including ECG, PPG and respiratory signals were split into segments. In this work, we trialled three different segment lengths to determine the most suitable length for accurate RR prediction. The segments chosen were 20, 30, and 60 seconds. These segment lengths are commonly used in the literature, allowing for fair comparison. They also each enable very frequent RR estimation, while also providing a wide enough window to accurately calculate even very low RRs. At this point, any segment with a missing signal or flat-lining signal was discarded.</p>
<p>For each record segment, the R-waves (or peaks) of the ECG signals were found, as well as the peaks of the PPG and reference RR signals. Additionally, the beat-to-beat intervals were calculated for PPG and ECG signals, and the breath-to-breath (BrTBr) interval was calculated for RR signals. Heart rate (HR) was then calculated from both the PPG and ECG signals, before RR was calculated from the reference respiration signal. This extracted information was then used by our purpose-built signal quality index (SQI) as described in the next section, to determine the overall quality of the segment and thus the segment’s suitability for training and testing the neural networks.</p>
<p>Furthermore, the RR of each segment was calculated by finding the average period between peaks of the respiration signal. This period represents one full breath, and thus the RR was calculated using the following formula:
<disp-formula id="pone.0249843.e001"><alternatives><graphic id="pone.0249843.e001g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0249843.e001" xlink:type="simple"/><mml:math display="block" id="M1"><mml:mtable displaystyle="true"><mml:mtr><mml:mtd columnalign="right"><mml:mrow><mml:mi>R</mml:mi> <mml:msub><mml:mi>R</mml:mi> <mml:mrow><mml:mtext>true</mml:mtext></mml:mrow></mml:msub> <mml:mo>=</mml:mo> <mml:mfrac><mml:mn>60</mml:mn> <mml:mrow><mml:mi>m</mml:mi> <mml:mi>e</mml:mi> <mml:mi>a</mml:mi> <mml:mi>n</mml:mi> <mml:mo>(</mml:mo> <mml:mi>B</mml:mi> <mml:mi>r</mml:mi> <mml:mi>T</mml:mi> <mml:mi>B</mml:mi> <mml:msub><mml:mi>r</mml:mi> <mml:mn>1</mml:mn></mml:msub> <mml:mo>,</mml:mo> <mml:mi>B</mml:mi> <mml:mi>r</mml:mi> <mml:mi>T</mml:mi> <mml:mi>B</mml:mi> <mml:msub><mml:mi>r</mml:mi> <mml:mn>2</mml:mn></mml:msub> <mml:mo>,</mml:mo> <mml:mo>…</mml:mo> <mml:mo>,</mml:mo> <mml:mi>B</mml:mi> <mml:mi>r</mml:mi> <mml:mi>T</mml:mi> <mml:mi>B</mml:mi> <mml:msub><mml:mi>r</mml:mi> <mml:mi>n</mml:mi></mml:msub> <mml:mo>)</mml:mo></mml:mrow></mml:mfrac></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></alternatives> <label>(1)</label></disp-formula>
where ‘BrTBr’ represents a breath-to-breath interval measured in seconds, ‘n’ is the number of BrTBr intervals within the respiratory signal segment, and the ‘RR<sub>true</sub>’ is taken as the “true RR” for that segment.</p>
</sec>
<sec id="sec005">
<title>Signal quality assessment</title>
<p>Signal quality assessment is vital to ensure that neural networks are learning from realistic data. One significant work [<xref ref-type="bibr" rid="pone.0249843.ref025">25</xref>] found that simple conditional statements can be used to effectively assess the quality of PPG, ECG, and blood pressure signals. In these works, various sanity checks were performed to determine the quality of a signal, such as ensuring that heart rate (HR) and beat-to-beat (BTB) intervals were within reasonable ranges. Reasonable range for RR were determined based on clinical medicine resources</p>
<p>In this work, PPG and ECG signals are considered with respect to calculating RR, and as such the quality of the respiration signal is also vital. As such, this work develops an SQI tool based on conditional statements relevant to the problem in order to successfully classify a record containing PPG, ECG and respiration signals as either “good” or “bad” based on a series of conditional statements. This is described by the following algorithm:</p>
<p><bold>Algorithm 1 Signal quality index algorithm</bold></p>
<p specific-use="line"><bold>Input</bold>: hr_ppg, hr_ecg, ppg_peak_ratio, ecg_peak_ratio, ppg_btb_ratio, ecg_btb_ratio, true_rr, true_rr_peak_ratio, true_rr_brtbr_ratio</p>
<p specific-use="line"><bold>Output</bold>: signal_quality</p>
<p specific-use="line">1: <bold>if</bold> [(abs(hr_ppg—hr_ecg) &lt; 10) &amp; (hr_ppg &gt; 40) &amp; (hr_ppg &lt; 180) &amp; (ppg_peak_ratio &lt; 1.5) &amp;</p>
<p specific-use="line"> (ecg_peak_ratio &lt; 1.5) &amp; (ptp_btb_ratio &lt; 1.5) &amp;</p>
<p specific-use="line"> (ecg_btb_ratio &lt; 1.5) &amp; (true_rr &gt; 8) &amp;</p>
<p specific-use="line"> (true_rr &lt; 35) &amp; (true_rr_peak_ratio &lt; 1.5)</p>
<p specific-use="line"> &amp; (true_rr_brtbr_ratio &lt; 1.5)] <bold>then</bold></p>
<p specific-use="line">2:   signal_quality = 1</p>
<p specific-use="line">3: <bold>else</bold></p>
<p specific-use="line">4:   signal_quality = 0</p>
<p specific-use="line">5: <bold>else if</bold></p>
<p>In this algorithm, <italic>hr_ppg</italic> and <italic>hr_ecg</italic> are the HR values calculated from the PPG and ECG signals, respectively. They are compared to each other to verify that they were acceptably similar, then <italic>hr_ppg</italic> was checked to ensure that HR was within the physiologically probable range of 40-180 bpm [<xref ref-type="bibr" rid="pone.0249843.ref026">26</xref>]. Meanwhile, <italic>ppg_peak_ratio, ecg_peak_ratio</italic> and <italic>true_rr_peak_ratio</italic> represent the ratio of the maximum to minimum peak heights for the PPG, ECG and reference RR signals respectively, and <italic>ppg_btb_ratio, ecg_btb_ratio</italic> and <italic>true_rr_brtbr_ratio</italic> represent the ratio of maximum to minimum PPG signal BTB intervals, ECG signal BTB intervals and reference RR signal BrTBr intervals respectively. It was checked that each of these ratios was &lt;1.5 to ensure that there was acceptable consistency within each individual signal, as consistency is a strong indicator of signal quality. Lastly, <italic>true_rr</italic> represents the RR extracted from the reference signal using <xref ref-type="disp-formula" rid="pone.0249843.e001">Eq 1</xref>, and it was checked that this fell within the conservative range of 8-35, substantially broader than the 15-30 BrPM defined as normal RR [<xref ref-type="bibr" rid="pone.0249843.ref027">27</xref>]. Records that met all criteria were assigned a <italic>signal_quality</italic> of 1, meaning “good”, while failure to meet any criteria resulted in a <italic>signal_quality</italic> of 0, or “bad”.</p>
<p>After testing all segments with the SQI tool, there were 19,084 “good” 20-second segments, 7,301 “good” 30-second segments, and 1,300 “good” 60-second segments for use in training and testing the model. The next stage was to extract features from each of these signals for use in training the neural networks. This was a multi-step process, which begins with the extraction of respiration-induced modulations from the ECG and PPG signal as discussed in the following subsection.</p>
</sec>
<sec id="sec006">
<title>Extracting respiratory signals from ECG and PPG</title>
<p>Respiration can modulate the ECG and PPG signals in three key ways—baseline wander (BW) modulation, amplitude modulation (AM) and frequency modulation (FM) caused by respiratory sinus arrhythmia. These modulations are shown in comparison to signals unaffected by respiration (without modulation) in <xref ref-type="fig" rid="pone.0249843.g001">Fig 1</xref>. As previously discussed, one or more respiratory modulations may be absent from the PPG and ECG signals of some patients. As such, endeavouring to extract all three key modulations from both the ECG and PPG signal will greatly enhance a neural network’s ability to estimate true RR.</p>
<fig id="pone.0249843.g001" position="float">
<object-id pub-id-type="doi">10.1371/journal.pone.0249843.g001</object-id>
<label>Fig 1</label>
<caption>
<title>Sample ECG and PPG signals with and without effects of respiratory modulation.</title>
<p>(A) unaffected by respiratory modulation. (B) affected by baseline wander. (C) affected by amplitude modulation. (D) affected by frequency modulation.</p>
</caption>
<graphic mimetype="image" position="float" xlink:href="info:doi/10.1371/journal.pone.0249843.g001" xlink:type="simple"/>
</fig>
<sec id="sec007">
<title>Extracting respiratory signals</title>
<p>In the context of respiration, BW is the overall shift in the baseline of an ECG or PPG signal due to respiration, as is shown in <xref ref-type="fig" rid="pone.0249843.g001">Fig 1B</xref>. BW was obtained by low-pass filtering the ECG and PPG signals. Hereafter the BW signals extracted from the PPG and ECG signals are denoted as PPG-BW and ECG-BW, respectively. Meanwhile, AM presents as the variation in peak heights in the ECG and PPG signals, after BW has been removed, as shown in <xref ref-type="fig" rid="pone.0249843.g001">Fig 1C</xref>. Finally, FM presents in ECG or PPG signals as varying beat duration, as shown in <xref ref-type="fig" rid="pone.0249843.g001">Fig 1D</xref>. Thus, AM and FM respiration signals are easily derived from the peak heights and BTB intervals of the waveforms, respectively. The AM and FM signals extracted from PPG and ECG are henceforth denoted as PPG-AM, PPG-FM, ECG-AM, and ECG-FM.</p>
<p>After BW, AM and FM signals were extracted from the PPG and ECG signal, peaks and troughs of each signal were calculated and stored in six separate vectors. Breath-to-breath intervals, as well as the intervals between trough locations, were also calculated and stored in six additional vectors. These parameters were then used by the developed respiratory quality index (RQI) tool described in the following subsection.</p>
<p>Finally, a possible respiratory rate was derived from each signal by finding the average period between peaks (the breath-to-breath interval), and thus determining the number of breaths per minute. This process is mathematically defined as:
<disp-formula id="pone.0249843.e002"><alternatives><graphic id="pone.0249843.e002g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0249843.e002" xlink:type="simple"/><mml:math display="block" id="M2"><mml:mtable displaystyle="true"><mml:mtr><mml:mtd columnalign="right"><mml:mrow><mml:mi>R</mml:mi> <mml:msub><mml:mi>R</mml:mi> <mml:mrow><mml:mtext>signal</mml:mtext></mml:mrow></mml:msub> <mml:mo>=</mml:mo> <mml:mfrac><mml:mn>60</mml:mn> <mml:mrow><mml:mi>m</mml:mi> <mml:mi>e</mml:mi> <mml:mi>a</mml:mi> <mml:mi>n</mml:mi> <mml:mo>(</mml:mo> <mml:mi>B</mml:mi> <mml:mi>r</mml:mi> <mml:mi>T</mml:mi> <mml:mi>B</mml:mi> <mml:msub><mml:mi>r</mml:mi> <mml:mn>1</mml:mn></mml:msub> <mml:mo>,</mml:mo> <mml:mi>B</mml:mi> <mml:mi>r</mml:mi> <mml:mi>T</mml:mi> <mml:mi>B</mml:mi> <mml:msub><mml:mi>r</mml:mi> <mml:mn>2</mml:mn></mml:msub> <mml:mo>,</mml:mo> <mml:mo>…</mml:mo> <mml:mi>B</mml:mi> <mml:mi>r</mml:mi> <mml:mi>T</mml:mi> <mml:mi>B</mml:mi> <mml:msub><mml:mi>r</mml:mi> <mml:mi>n</mml:mi></mml:msub> <mml:mo>)</mml:mo></mml:mrow></mml:mfrac></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></alternatives> <label>(2)</label></disp-formula>
where ‘BrTBr’ is a breath-to-breath interval, ‘n’ is the number of BrTBr intervals within the extracted signal, and the ‘signal’ of RR<sub>signal</sub> is the PPG-BW, PPG-AM, PPG-FM, ECG-BW, ECG-AM or ECG-FM.</p>
<p>Overviews of the distribution of modulation-derived respiratory rates, along with the distribution of true respiratory rates, are presented for the 20-second segment dataset in <xref ref-type="supplementary-material" rid="pone.0249843.s001">S1 Table</xref>, the 30-second segment dataset in <xref ref-type="supplementary-material" rid="pone.0249843.s002">S2 Table</xref>, and the 60-second segment dataset in <xref ref-type="supplementary-material" rid="pone.0249843.s003">S3 Table</xref>.</p>
</sec>
</sec>
<sec id="sec008">
<title>Respiratory quality assessment</title>
<p>The development of an RQI scheme that assigns each modulation-extracted respiratory signal a quality rating on some scale could improve RR estimation algorithms, as knowledge about the quality of each estimated RR can enhance the networks ability to determine true RR based.</p>
<p>In this work, we propose a efficient and effective RQI scheme that considers the variance in peak heights (ph), trough depths (td), and the distances between peak pairs (p-p) and trough pairs (t-t) for any given extracted RR signal.</p>
<p>Consistency is a key indicator of respiratory signal quality, and as such we propose the differential coefficient of variation (DCV) metric, a variation on the the coefficient of variation, to quantify how much variation is in the signal. We calculate the DCV for peak heights, trough depths, peak-to-peak distances and trough-to-trough distances as follows:
<disp-formula id="pone.0249843.e003"><alternatives><graphic id="pone.0249843.e003g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0249843.e003" xlink:type="simple"/><mml:math display="block" id="M3"><mml:mtable displaystyle="true"><mml:mtr><mml:mtd columnalign="right"><mml:mrow><mml:mi>D</mml:mi> <mml:mi>C</mml:mi> <mml:mi>V</mml:mi> <mml:mo>=</mml:mo> <mml:mrow><mml:mn>1</mml:mn> <mml:mo>-</mml:mo> <mml:mfrac><mml:mi>σ</mml:mi> <mml:mi>μ</mml:mi></mml:mfrac></mml:mrow></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></alternatives> <label>(3)</label></disp-formula>
where <italic>σ</italic> represents the standard deviation (SD) and <italic>μ</italic> represents the mean of the vector of data. Then, we calculate the DCV for the four properties of interest—peak height, trough depths, distance between peak pairs, and distance between trough pairs. These are denoted as DCV<sub>ph</sub>, DCV<sub>td</sub>, DCV<sub>p-p</sub> and DCV<sub>t-t</sub> in <xref ref-type="disp-formula" rid="pone.0249843.e004">Eq (4)</xref>, respectively.</p>
<p>As is shown in <xref ref-type="disp-formula" rid="pone.0249843.e004">Eq (4)</xref>, we then find the average of the four DCVs. In <xref ref-type="disp-formula" rid="pone.0249843.e003">Eq (3)</xref>, most values will fall between 0-1, but there is a possibility of negative values where there is no consistency. The <bold><italic>max</italic></bold> calculation in the following equation is used to ensure that the resulting RQI-C value falls between 0 and 1, even in the highly unlikely case where there is no consistency in any of the DCVs.
<disp-formula id="pone.0249843.e004"><alternatives><graphic id="pone.0249843.e004g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0249843.e004" xlink:type="simple"/><mml:math display="block" id="M4"><mml:mtable displaystyle="true"><mml:mtr><mml:mtd columnalign="right"><mml:mrow><mml:mi>R</mml:mi> <mml:mi>Q</mml:mi> <mml:mi>I</mml:mi> <mml:mo>=</mml:mo> <mml:mtext>max</mml:mtext> <mml:mo>(</mml:mo> <mml:mo>∑</mml:mo> <mml:mfrac><mml:mrow><mml:mi>D</mml:mi> <mml:mi>C</mml:mi> <mml:msub><mml:mi>V</mml:mi> <mml:mrow><mml:mtext>ph</mml:mtext></mml:mrow></mml:msub> <mml:mo>+</mml:mo> <mml:mi>D</mml:mi> <mml:mi>C</mml:mi> <mml:msub><mml:mi>V</mml:mi> <mml:mrow><mml:mtext>td</mml:mtext></mml:mrow></mml:msub> <mml:mo>+</mml:mo> <mml:mi>D</mml:mi> <mml:mi>C</mml:mi> <mml:msub><mml:mi>V</mml:mi> <mml:mrow><mml:mtext>p-p</mml:mtext></mml:mrow></mml:msub> <mml:mo>+</mml:mo> <mml:mi>D</mml:mi> <mml:mi>C</mml:mi> <mml:msub><mml:mi>V</mml:mi> <mml:mrow><mml:mtext>t-t</mml:mtext></mml:mrow></mml:msub></mml:mrow> <mml:mn>4</mml:mn></mml:mfrac> <mml:mo>,</mml:mo> <mml:mn>0</mml:mn> <mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></alternatives> <label>(4)</label></disp-formula></p>
<p>The calculated RQI will be 0 in the case where there is no consistency, and 1 in the case where there is perfect consistency. As consistency is the best indicator of signal quality, higher RQI values indicate better quality signals.</p>
<p>This scheme was used to calculate an RQI for each of the six modulation-extracted respiratory signals in every record; PPG-BW, ECG-BW, PPG-AM, ECG-AM, PPG-FM, and ECG-FM.</p>
</sec>
<sec id="sec009">
<title>Feature selection</title>
<p>We developed two separate feature vectors to analyse the performance of neural networks with and without the RQI features as inputs. For the first test, we selected solely the modulation-extracted RRs, resulting in a six-feature input vector as follows:
<disp-formula id="pone.0249843.e005"><alternatives><graphic id="pone.0249843.e005g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0249843.e005" xlink:type="simple"/><mml:math display="block" id="M5"><mml:mtable displaystyle="true"><mml:mtr><mml:mtd columnalign="right"><mml:mrow><mml:mo>[</mml:mo> <mml:mi>R</mml:mi> <mml:msub><mml:mi>R</mml:mi> <mml:mrow><mml:mtext>ECG-BW</mml:mtext></mml:mrow></mml:msub> <mml:mo>,</mml:mo> <mml:mi>R</mml:mi> <mml:msub><mml:mi>R</mml:mi> <mml:mrow><mml:mtext>PPG-BW</mml:mtext></mml:mrow></mml:msub> <mml:mo>,</mml:mo> <mml:mi>R</mml:mi> <mml:msub><mml:mi>R</mml:mi> <mml:mrow><mml:mtext>ECG-AM</mml:mtext></mml:mrow></mml:msub> <mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mtr> <mml:mtr><mml:mtd columnalign="right"><mml:mrow><mml:mi>R</mml:mi> <mml:msub><mml:mi>R</mml:mi> <mml:mrow><mml:mtext>PPG-AM</mml:mtext></mml:mrow></mml:msub> <mml:mo>,</mml:mo> <mml:mi>R</mml:mi> <mml:msub><mml:mi>R</mml:mi> <mml:mrow><mml:mtext>ECG-FM</mml:mtext></mml:mrow></mml:msub> <mml:mo>,</mml:mo> <mml:mi>R</mml:mi> <mml:msub><mml:mi>R</mml:mi> <mml:mrow><mml:mtext>PPG-FM</mml:mtext></mml:mrow></mml:msub> <mml:mo>]</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></alternatives></disp-formula></p>
<p>For the second test, we created a feature vector that included RQIs calculated using our proposed scheme, along with the modulation-extracted RRs. The resultant twelve-feature vector is as follows:
<disp-formula id="pone.0249843.e006"><alternatives><graphic id="pone.0249843.e006g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0249843.e006" xlink:type="simple"/><mml:math display="block" id="M6"><mml:mtable displaystyle="true"><mml:mtr><mml:mtd columnalign="right"><mml:mrow><mml:mo>[</mml:mo> <mml:mi>R</mml:mi> <mml:mi>Q</mml:mi> <mml:msub><mml:mi>I</mml:mi> <mml:mrow><mml:mtext>ECG-BW</mml:mtext></mml:mrow></mml:msub> <mml:mo>,</mml:mo> <mml:mi>R</mml:mi> <mml:msub><mml:mi>R</mml:mi> <mml:mrow><mml:mtext>ECG-BW</mml:mtext></mml:mrow></mml:msub> <mml:mo>,</mml:mo> <mml:mi>R</mml:mi> <mml:mi>Q</mml:mi> <mml:msub><mml:mi>I</mml:mi> <mml:mrow><mml:mtext>PPG-BW</mml:mtext></mml:mrow></mml:msub> <mml:mo>,</mml:mo> <mml:mi>R</mml:mi> <mml:msub><mml:mi>R</mml:mi> <mml:mrow><mml:mtext>PPG-BW</mml:mtext></mml:mrow></mml:msub> <mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mtr> <mml:mtr><mml:mtd columnalign="right"><mml:mrow><mml:mi>R</mml:mi> <mml:mi>Q</mml:mi> <mml:msub><mml:mi>I</mml:mi> <mml:mrow><mml:mtext>ECG-AM</mml:mtext></mml:mrow></mml:msub> <mml:mo>,</mml:mo> <mml:mi>R</mml:mi> <mml:msub><mml:mi>R</mml:mi> <mml:mrow><mml:mtext>ECG-AM</mml:mtext></mml:mrow></mml:msub> <mml:mo>,</mml:mo> <mml:mi>R</mml:mi> <mml:mi>Q</mml:mi> <mml:msub><mml:mi>I</mml:mi> <mml:mrow><mml:mtext>PPG-AM</mml:mtext></mml:mrow></mml:msub> <mml:mo>,</mml:mo> <mml:mi>R</mml:mi> <mml:msub><mml:mi>R</mml:mi> <mml:mrow><mml:mtext>PPG-AM</mml:mtext></mml:mrow></mml:msub> <mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mtr> <mml:mtr><mml:mtd columnalign="right"><mml:mrow><mml:mi>R</mml:mi> <mml:mi>Q</mml:mi> <mml:msub><mml:mi>I</mml:mi> <mml:mrow><mml:mtext>ECG-FM</mml:mtext></mml:mrow></mml:msub> <mml:mo>,</mml:mo> <mml:mi>R</mml:mi> <mml:msub><mml:mi>R</mml:mi> <mml:mrow><mml:mtext>ECG-FM</mml:mtext></mml:mrow></mml:msub> <mml:mo>,</mml:mo> <mml:mi>R</mml:mi> <mml:mi>Q</mml:mi> <mml:msub><mml:mi>I</mml:mi> <mml:mrow><mml:mtext>PPG-FM</mml:mtext></mml:mrow></mml:msub> <mml:mo>,</mml:mo> <mml:mi>R</mml:mi> <mml:msub><mml:mi>R</mml:mi> <mml:mrow><mml:mtext>PPG-FM</mml:mtext></mml:mrow></mml:msub> <mml:mo>,</mml:mo> <mml:mo>]</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></alternatives></disp-formula></p>
<p>These two feature vectors were constructed for every record that was classified as ‘good’ by the SQI tool.</p>
</sec>
<sec id="sec010">
<title>Neural network structure</title>
<p>In this work, we use a bidirectional long short-term memory (BiLSTM) network structure to predict respiratory rate from the input features. BiLSTM cells are updated using the same mathematical structure as unidirectional long short-term memory cells, but the data is passed through the network both as-is (forwards) and in reversed order (backwards). The results of these operations is then concatenated before passing to the next layer. The mathematical structure of a single forward or backwards pass is described by the following equations, with interested readers referred to the original paper that introduced LSTM for further details regarding mathematical theory [<xref ref-type="bibr" rid="pone.0249843.ref028">28</xref>].
<disp-formula id="pone.0249843.e007"><alternatives><graphic id="pone.0249843.e007g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0249843.e007" xlink:type="simple"/><mml:math display="block" id="M7"><mml:mtable displaystyle="true"><mml:mtr><mml:mtd columnalign="right"><mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mover accent="true"><mml:mi>c</mml:mi><mml:mo stretchy="true">˜</mml:mo></mml:mover></mml:mrow><mml:mtext>t</mml:mtext></mml:msub></mml:mrow> <mml:mo>=</mml:mo> <mml:mtext>tanh</mml:mtext> <mml:mo>(</mml:mo> <mml:msub><mml:mi>w</mml:mi> <mml:mtext>c</mml:mtext></mml:msub> <mml:mo>[</mml:mo> <mml:mspace width="0.166667em"/><mml:msub><mml:mi>a</mml:mi> <mml:mrow><mml:mo>(</mml:mo> <mml:mtext>t</mml:mtext><mml:mo>-</mml:mo> <mml:mn>1</mml:mn> <mml:mo>)</mml:mo></mml:mrow></mml:msub> <mml:mo>,</mml:mo> <mml:msub><mml:mi>x</mml:mi> <mml:mtext>t</mml:mtext></mml:msub> <mml:mo>]</mml:mo> <mml:mspace width="0.166667em"/><mml:mo>+</mml:mo> <mml:msub><mml:mi>b</mml:mi> <mml:mtext>c</mml:mtext></mml:msub> <mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></alternatives> <label>(5)</label></disp-formula>
<disp-formula id="pone.0249843.e008"><alternatives><graphic id="pone.0249843.e008g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0249843.e008" xlink:type="simple"/><mml:math display="block" id="M8"><mml:mtable displaystyle="true"><mml:mtr><mml:mtd columnalign="right"><mml:mrow><mml:msub><mml:mi>f</mml:mi> <mml:mtext>t</mml:mtext></mml:msub> <mml:mo>=</mml:mo> <mml:mi>σ</mml:mi> <mml:mo>(</mml:mo> <mml:msub><mml:mi>w</mml:mi> <mml:mtext>f</mml:mtext></mml:msub> <mml:mo>[</mml:mo> <mml:mspace width="0.166667em"/><mml:msub><mml:mi>a</mml:mi> <mml:mrow><mml:mo>(</mml:mo> <mml:mtext>t</mml:mtext> <mml:mo>-</mml:mo> <mml:mn>1</mml:mn> <mml:mo>)</mml:mo></mml:mrow></mml:msub> <mml:mo>,</mml:mo> <mml:msub><mml:mi>x</mml:mi> <mml:mtext>t</mml:mtext></mml:msub> <mml:mo>]</mml:mo> <mml:mspace width="0.166667em"/><mml:mo>+</mml:mo> <mml:msub><mml:mi>b</mml:mi> <mml:mtext>f</mml:mtext></mml:msub> <mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></alternatives> <label>(6)</label></disp-formula>
<disp-formula id="pone.0249843.e009"><alternatives><graphic id="pone.0249843.e009g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0249843.e009" xlink:type="simple"/><mml:math display="block" id="M9"><mml:mtable displaystyle="true"><mml:mtr><mml:mtd columnalign="right"><mml:mrow><mml:msub><mml:mi>u</mml:mi> <mml:mtext>t</mml:mtext></mml:msub> <mml:mo>=</mml:mo> <mml:mi>σ</mml:mi> <mml:mo>(</mml:mo> <mml:msub><mml:mi>w</mml:mi> <mml:mtext>u</mml:mtext></mml:msub> <mml:mo>[</mml:mo> <mml:mspace width="0.166667em"/><mml:msub><mml:mi>a</mml:mi> <mml:mrow><mml:mo>(</mml:mo> <mml:mtext>t</mml:mtext> <mml:mo>-</mml:mo> <mml:mn>1</mml:mn> <mml:mo>)</mml:mo></mml:mrow></mml:msub> <mml:mo>,</mml:mo> <mml:msub><mml:mi>x</mml:mi> <mml:mtext>t</mml:mtext></mml:msub> <mml:mo>]</mml:mo> <mml:mspace width="0.166667em"/><mml:mo>+</mml:mo> <mml:msub><mml:mi>b</mml:mi> <mml:mtext>u</mml:mtext></mml:msub> <mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></alternatives> <label>(7)</label></disp-formula>
<disp-formula id="pone.0249843.e010"><alternatives><graphic id="pone.0249843.e010g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0249843.e010" xlink:type="simple"/><mml:math display="block" id="M10"><mml:mtable displaystyle="true"><mml:mtr><mml:mtd columnalign="right"><mml:mrow><mml:msub><mml:mi>o</mml:mi> <mml:mtext>t</mml:mtext></mml:msub> <mml:mo>=</mml:mo> <mml:mi>σ</mml:mi> <mml:mo>(</mml:mo> <mml:msub><mml:mi>w</mml:mi> <mml:mtext>o</mml:mtext></mml:msub> <mml:mo>[</mml:mo> <mml:mspace width="0.166667em"/><mml:msub><mml:mi>a</mml:mi> <mml:mrow><mml:mo>(</mml:mo> <mml:mtext>t</mml:mtext> <mml:mo>-</mml:mo> <mml:mn>1</mml:mn> <mml:mo>)</mml:mo></mml:mrow></mml:msub> <mml:mo>,</mml:mo> <mml:msub><mml:mi>x</mml:mi> <mml:mtext>t</mml:mtext></mml:msub> <mml:mo>]</mml:mo> <mml:mspace width="0.166667em"/><mml:mo>+</mml:mo> <mml:msub><mml:mi>b</mml:mi> <mml:mtext>o</mml:mtext></mml:msub> <mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></alternatives> <label>(8)</label></disp-formula>
<disp-formula id="pone.0249843.e011"><alternatives><graphic id="pone.0249843.e011g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0249843.e011" xlink:type="simple"/><mml:math display="block" id="M11"><mml:mtable displaystyle="true"><mml:mtr><mml:mtd columnalign="right"><mml:mrow><mml:msub><mml:mi>c</mml:mi> <mml:mtext>t</mml:mtext></mml:msub> <mml:mo>=</mml:mo> <mml:msub><mml:mi>u</mml:mi> <mml:mtext>t</mml:mtext></mml:msub> <mml:mo>•</mml:mo> <mml:mrow><mml:msub><mml:mrow><mml:mover accent="true"><mml:mi>c</mml:mi><mml:mo stretchy="true">˜</mml:mo></mml:mover></mml:mrow><mml:mtext>t</mml:mtext></mml:msub></mml:mrow> <mml:mo>+</mml:mo> <mml:msub><mml:mi>f</mml:mi> <mml:mtext>t</mml:mtext></mml:msub> <mml:mo>•</mml:mo> <mml:msub><mml:mi>c</mml:mi> <mml:mrow><mml:mo>(</mml:mo> <mml:mtext>t</mml:mtext> <mml:mo>-</mml:mo> <mml:mn>1</mml:mn> <mml:mo>)</mml:mo></mml:mrow></mml:msub></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></alternatives> <label>(9)</label></disp-formula>
<disp-formula id="pone.0249843.e012"><alternatives><graphic id="pone.0249843.e012g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0249843.e012" xlink:type="simple"/><mml:math display="block" id="M12"><mml:mtable displaystyle="true"><mml:mtr><mml:mtd columnalign="right"><mml:mrow><mml:msub><mml:mi>a</mml:mi> <mml:mtext>t</mml:mtext></mml:msub> <mml:mo>=</mml:mo> <mml:msub><mml:mi>o</mml:mi> <mml:mtext>t</mml:mtext></mml:msub> <mml:mo>•</mml:mo> <mml:mtext>tanh</mml:mtext> <mml:mo>(</mml:mo> <mml:msub><mml:mi>c</mml:mi> <mml:mtext>t</mml:mtext></mml:msub> <mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></alternatives> <label>(10)</label></disp-formula>
where <italic>w</italic><sub>c</sub>, <italic>w</italic><sub>f</sub>, <italic>w</italic><sub>u</sub> and <italic>w</italic><sub>o</sub> refer to the learned weights for their respective operations, while <italic>b</italic><sub>c</sub>, <italic>b</italic><sub>f</sub>, <italic>b</italic><sub>u</sub> and <italic>b</italic><sub>o</sub> are the learned biases. These are learnt during training using the Adam optimization algorithm [<xref ref-type="bibr" rid="pone.0249843.ref029">29</xref>], a common optimization algorithm that uses adaptive learning rates and momentum to converge quickly and efficiently on the true optimal solution. Additionally, the parameter <italic>a</italic><sub>(t-1)</sub> refers to the output of the previous layer, while <italic>x</italic><sub>t</sub> is the input for timestep <italic>t</italic>. <xref ref-type="disp-formula" rid="pone.0249843.e011">Eq (9)</xref> utilizes the results of Eqs (<xref ref-type="disp-formula" rid="pone.0249843.e007">5</xref>)–(<xref ref-type="disp-formula" rid="pone.0249843.e009">7</xref>) as well as the cell state of the previous time step, <italic>c</italic><sub>(t-1)</sub> to update the cell state, and <xref ref-type="disp-formula" rid="pone.0249843.e012">Eq (10)</xref> uses the resultant <italic>c</italic><sub>c</sub> as well as the output gate results. The ‘•’ symbol in Eqs (<xref ref-type="disp-formula" rid="pone.0249843.e011">9</xref>) and (<xref ref-type="disp-formula" rid="pone.0249843.e012">10</xref>) represents element-wise matrix multiplication, and the function <italic>σ</italic>() in Eqs (<xref ref-type="disp-formula" rid="pone.0249843.e008">6</xref>)–(<xref ref-type="disp-formula" rid="pone.0249843.e010">8</xref>) is the sigmoid activation function, which is defined as <inline-formula id="pone.0249843.e013"><alternatives><graphic id="pone.0249843.e013g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0249843.e013" xlink:type="simple"/><mml:math display="inline" id="M13"><mml:mrow><mml:mi>σ</mml:mi> <mml:mrow><mml:mo>(</mml:mo> <mml:mi>z</mml:mi> <mml:mo>)</mml:mo></mml:mrow> <mml:mo>=</mml:mo> <mml:mfrac><mml:mn>1</mml:mn> <mml:mrow><mml:mn>1</mml:mn> <mml:mo>+</mml:mo> <mml:msup><mml:mi>e</mml:mi> <mml:mo>-</mml:mo></mml:msup> <mml:mi>z</mml:mi></mml:mrow></mml:mfrac></mml:mrow></mml:math></alternatives></inline-formula>.</p>
<p>The neural network structure utilised in this work includes three hidden BiLSTM layers each comprised of the forward and backwards passes followed by the concatenation operation. The first two hidden layers return a sequence of all hidden cell states, hence the high number of concatenation operations. The third hidden layer outputs only the final state of each cell from both the forward and backwards pass, and these are then concatenated. The network structure is illustrated in <xref ref-type="fig" rid="pone.0249843.g002">Fig 2</xref> below.</p>
<fig id="pone.0249843.g002" position="float">
<object-id pub-id-type="doi">10.1371/journal.pone.0249843.g002</object-id>
<label>Fig 2</label>
<caption>
<title>Structure of the BiLSTM model.</title>
</caption>
<graphic mimetype="image" position="float" xlink:href="info:doi/10.1371/journal.pone.0249843.g002" xlink:type="simple"/>
</fig>
<p>The NN structure included 128 hidden units per hidden layer and a batch size of 1024 to enable good generalization without overfitting. The aforementioned Adam optimization [<xref ref-type="bibr" rid="pone.0249843.ref029">29</xref>] function is used to update weights and biases during training, while the mean absolute error (MAE) is used as the loss function.</p>
</sec>
<sec id="sec011">
<title>Training and testing</title>
<p>In this work, the NN structure was trained and tested six times to compare the performance of the network using the six different feature vectors, as follows:</p>
<list list-type="bullet">
<list-item>
<p>All 12 features, as calculated from 20-second segments</p>
</list-item>
<list-item>
<p>The 6 RR features only, as calculated from 20-second segments</p>
</list-item>
<list-item>
<p>All 12 features, as calculated from 30-second segments</p>
</list-item>
<list-item>
<p>The 6 RR features only, as calculated from 30-second segments</p>
</list-item>
<list-item>
<p>All 12 features, as calculated from 60-second segments</p>
</list-item>
<list-item>
<p>The 6 RR features only, as calculated from 60-second segments</p>
</list-item>
</list>
<p>The data was pseudorandomly shuffled before being split into subsets for training, validating, and testing. 80% of the data was used for training the NNs, 10% was used for fine-tuning hyperparameters through the validation process, and the remaining 10% of unseen data was utilized to fairly test the models.</p>
</sec>
</sec>
<sec id="sec012" sec-type="conclusions">
<title>Results and discussion</title>
<p>After training and testing all of the NN configurations, statistical and graphical analysis was conducted to assess the performance of each network. In terms of statistical analysis, several informative metrics were considered: mean absolute error (MAE), root mean square error (RMSE), and Pearson’s correlation coefficient (PCC). Furthermore, Bland Altman analysis was conducted by calculating the bias or mean difference (MD), the difference or width between the limits of agreement (LOAs), and the percentage of results (of mean vs. difference between true and predicted RRs) that fall between said LOAs.</p>
<p>MAE gives key insight into how skilled the network is at producing a reasonable prediction for RR. RMSE is indicative of how many high-range errors there are, and thus provides information about whether the network has fit appropriately to the data. PCC indicates the level of linear correlation, and will give a result between 0 and ±1, representing no correlation and total positive/negative correlation respectively.</p>
<p>In terms of the Bland Altman analysis metrics, a low MD along with narrow LOAs is a good indicator of strong agreement between the two methods of measurement. In Bland Altman analysis, each data point is the result of comparing the mean of the two measurement methods with the difference between their predictions. If the majority of these results fall within the LOAs, then this further indicates a strong level of agreement between the two measurements. As such, a high-performing network would have low MD, low LOA width, and a high percentage of results within the LOAs.</p>
<p>The results of calculating these metrics for the BiLSTM NNs trained using each feature vector are shown in <xref ref-type="table" rid="pone.0249843.t002">Table 2</xref>. These results clearly indicate that the inclusion of RQIs calculated using our proposed scheme greatly improves the success of machine learning in estimating true RR. <xref ref-type="table" rid="pone.0249843.t002">Table 2</xref> shows that the inclusion of RQI features reduced the MAE by up to 36.89% when compared to the equivalent networks that were trained using solely the modulation-extracted RRs. Significant improvements RMSE and PCC are all also visible across all NN structures considered. In all cases, including RQI features increased the level of agreement between true and predicted RR measurements, narrowing the LOA width. MDs were extremely small across all networks.</p>
<table-wrap id="pone.0249843.t002" position="float">
<object-id pub-id-type="doi">10.1371/journal.pone.0249843.t002</object-id>
<label>Table 2</label>
<caption>
<title>Performance of BiLSTM NN using various feature vectors for estimating respiratory rate.</title>
</caption>
<alternatives>
<graphic id="pone.0249843.t002g" mimetype="image" position="float" xlink:href="info:doi/10.1371/journal.pone.0249843.t002" xlink:type="simple"/>
<table border="0" frame="box" rules="all">
<colgroup>
<col align="left" valign="middle"/>
<col align="left" valign="middle"/>
<col align="left" valign="middle"/>
<col align="left" valign="middle"/>
<col align="left" valign="middle"/>
<col align="left" valign="middle"/>
<col align="left" valign="middle"/>
<col align="left" valign="middle"/>
</colgroup>
<thead>
<tr>
<th align="center">Segment Length</th>
<th align="center">Features</th>
<th align="center">MAE (BrPM)</th>
<th align="center">RMSE (BrPM)</th>
<th align="center">PCC</th>
<th align="center">MD</th>
<th align="center">LOA Width</th>
<th align="center">% in LOAs</th>
</tr>
</thead>
<tbody>
<tr>
<td align="center" rowspan="2">20 seconds</td>
<td align="center">RR &amp; RQIs</td>
<td align="char" char=".">0.821</td>
<td align="char" char=".">2.236</td>
<td align="char" char=".">0.891</td>
<td align="char" char=".">-0.08</td>
<td align="char" char=".">8.76</td>
<td align="char" char=".">95.44%</td>
</tr>
<tr>
<td align="center">RR Only</td>
<td align="char" char=".">1.301</td>
<td align="char" char=".">2.776</td>
<td align="char" char=".">0.829</td>
<td align="char" char=".">-0.16</td>
<td align="char" char=".">10.87</td>
<td align="char" char=".">92.77%</td>
</tr>
<tr>
<td align="center" rowspan="2">30 seconds</td>
<td align="center">RR &amp; RQIs</td>
<td align="char" char=".">0.747</td>
<td align="char" char=".">1.926</td>
<td align="char" char=".">0.901</td>
<td align="char" char=".">0.14</td>
<td align="char" char=".">7.54</td>
<td align="char" char=".">95.21%</td>
</tr>
<tr>
<td align="center">RR Only</td>
<td align="char" char=".">1.116</td>
<td align="char" char=".">2.430</td>
<td align="char" char=".">0.839</td>
<td align="char" char=".">-0.04</td>
<td align="char" char=".">9.53</td>
<td align="char" char=".">93.43%</td>
</tr>
<tr>
<td align="center" rowspan="2">60 seconds</td>
<td align="center">RR &amp; RQIs</td>
<td align="char" char=".">0.638</td>
<td align="char" char=".">1.575</td>
<td align="char" char=".">0.932</td>
<td align="char" char=".">-0.15</td>
<td align="char" char=".">6.17</td>
<td align="char" char=".">95.38%</td>
</tr>
<tr>
<td align="center">RR Only</td>
<td align="char" char=".">0.711</td>
<td align="char" char=".">1.731</td>
<td align="char" char=".">0.919</td>
<td align="char" char=".">-0.14</td>
<td align="char" char=".">6.79</td>
<td align="char" char=".">96.15%</td>
</tr>
</tbody>
</table>
</alternatives>
</table-wrap>
<p>
<xref ref-type="table" rid="pone.0249843.t002">Table 2</xref> also shows that the BiLSTM network model performs strongly regardless of the segment length used to derive the RR and RQIs, however MAE is shown to decrease as segment length is increased. The overall lowest MAE was 0.638, achieved by the network trained on RRs &amp; RQIs extracted from 60 second segments. As the inclusion of RQI features is shown to reduce MAE, the remainder of our analysis will focus on the networks trained with both RR &amp; RQI features.</p>
<p>To further analyse the predictive performance of the BiLSTM network, the error histograms in <xref ref-type="fig" rid="pone.0249843.g003">Fig 3</xref> were created to graphically investigate the spread of errors in RR predictions. To create these figures, all errors were rounded to the nearest 0.25 to allow for better visualisation. These figures reiterate the high accuracy of the systems trained using both RR and RQI features.</p>
<fig id="pone.0249843.g003" position="float">
<object-id pub-id-type="doi">10.1371/journal.pone.0249843.g003</object-id>
<label>Fig 3</label>
<caption>
<title/>
<p>Error Histograms for RR Estimation using RR &amp; RQI features derived from: (A) 20-second PPG &amp; ECG segments. (B) 30-second PPG &amp; ECG segments. (C) 60-second PPG &amp; ECG segments.</p>
</caption>
<graphic mimetype="image" position="float" xlink:href="info:doi/10.1371/journal.pone.0249843.g003" xlink:type="simple"/>
</fig>
<p>We further analyse the performance of the BiLSTM network when trained on records with different segment lengths via the Bland Altman plots in <xref ref-type="fig" rid="pone.0249843.g004">Fig 4</xref>. Bland Altman plots are used to assess the level of agreement between two measurement methods—in this case, we compare the predictions made by our proposed BiLSTM model against the reference RR measurement from the MIMIC-III database. The difference between the two measurements is plotted against the mean of the two measurements, and as such a high density around the central ‘mean difference’ line within the ‘limits of agreement’ indicates strong agreement between two schemes. In each plot, the difference vs. mean results were often extremely close together and appeared to overlap. As such, density color scales are included in <xref ref-type="fig" rid="pone.0249843.g004">Fig 4</xref> to better illustrate the concentration of points. As can be seen from this plot, there is a high density of points along the mean difference line, with 95.44%, 95.21%, and 95.38% of results falling within the limits of agreement for the models utilising features extracted from 20-second, 30-second, and 60-second ECG and PPG segments, respectively. This indicates a strong correlation between the true RRs and those predicted by our proposed network, regardless of the segment length used for feature extraction.</p>
<fig id="pone.0249843.g004" position="float">
<object-id pub-id-type="doi">10.1371/journal.pone.0249843.g004</object-id>
<label>Fig 4</label>
<caption>
<title/>
<p>Bland Altman Plots for RR Estimation using RR &amp; RQI features derived from (A) 20-second PPG &amp; ECG segments. (B) 30-second PPG &amp; ECG segments. (C) 60-second PPG &amp; ECG segments.</p>
</caption>
<graphic mimetype="image" position="float" xlink:href="info:doi/10.1371/journal.pone.0249843.g004" xlink:type="simple"/>
</fig>
<p>To further assess the correlation between the true and predicted values for RR, the regression plots in <xref ref-type="fig" rid="pone.0249843.g005">Fig 5</xref> were constructed. In each figure, the thick black line represents what ‘perfect’ correlation would look like, while the dashed black line is the actual correlation achieved by the network. From this regression plot, it is clear that there is a strong correlation between the predictions made by the BiLSTM model and the reference RRs obtained from the MIMIC-III database, regardless of the segment length used to derive the features. In each plot, the actual correlation line falls very close to the ideal correlation line, and very few data points are outliers in the trend.</p>
<fig id="pone.0249843.g005" position="float">
<object-id pub-id-type="doi">10.1371/journal.pone.0249843.g005</object-id>
<label>Fig 5</label>
<caption>
<title/>
<p>Regression Plots for RR Estimation using RR &amp; RQI features derived from: (A) 20-second PPG &amp; ECG segments. (B) 30-second PPG &amp; ECG segments. (C) 60-second PPG &amp; ECG segments.</p>
</caption>
<graphic mimetype="image" position="float" xlink:href="info:doi/10.1371/journal.pone.0249843.g005" xlink:type="simple"/>
</fig>
<p>Overall, the proposed BiLSTM model shows low error and a high level of agreement with gold-standard measurement, regardless of which segment length is used for feature extraction. Performance increased as segment length increased, but even shorter segments showed strong results. In all cases, the inclusion of features calculated based on our proposed RQI scheme greatly improves the performance of the BiLSTM neural network. Therefore, it is clear that a BiLSTM model utilising extracted RRs and our proposed RQIs would significantly improve RR calculation in clinical and at-home environments, with longer ECG and PPG segments for feature extraction leading to the most accurate predictions.</p>
<sec id="sec013">
<title>Comparison to previous works</title>
<p>The results obtained by our BiLSTM models compare well to previous works when the feature vectors with both modulation-extracted RRs and corresponding RQIs were used, regardless of the segment length that these features were extracted from. This is shown in <xref ref-type="table" rid="pone.0249843.t003">Table 3</xref>. It is clear that the proposed model outperforms the previous state-of-the-art schemes for RR estimation from ECG and PPG signals, achieving significantly better MAE and comparable RMSE. Unfortunately, PCC was not provided by previous works in <xref ref-type="table" rid="pone.0249843.t003">Table 3</xref> so could not be considered when making comparisons to the literature.</p>
<table-wrap id="pone.0249843.t003" position="float">
<object-id pub-id-type="doi">10.1371/journal.pone.0249843.t003</object-id>
<label>Table 3</label>
<caption>
<title>Comparison to previous works.</title>
</caption>
<alternatives>
<graphic id="pone.0249843.t003g" mimetype="image" position="float" xlink:href="info:doi/10.1371/journal.pone.0249843.t003" xlink:type="simple"/>
<table border="0" frame="box" rules="all">
<colgroup>
<col align="left" valign="middle"/>
<col align="left" valign="middle"/>
<col align="left" valign="middle"/>
<col align="left" valign="middle"/>
</colgroup>
<thead>
<tr>
<th align="center" rowspan="2"/>
<th align="center"/>
<th align="center" colspan="2">Error Metrics (BrPM)</th>
</tr>
<tr>
<th align="center">Segment Length (s)</th>
<th align="center">MAE (BrPM)</th>
<th align="center">RMSE (BrPM)</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">Orphanidou [<xref ref-type="bibr" rid="pone.0249843.ref014">14</xref>]</td>
<td align="center">60</td>
<td align="center">1.80</td>
<td align="center">N/A</td>
</tr>
<tr>
<td align="left">Karlen [<xref ref-type="bibr" rid="pone.0249843.ref015">15</xref>]</td>
<td align="center">60</td>
<td align="center">N/A</td>
<td align="center">2.3</td>
</tr>
<tr>
<td align="left">Birrenkott [<xref ref-type="bibr" rid="pone.0249843.ref017">17</xref>]</td>
<td align="center">32</td>
<td align="center">0.71<xref ref-type="table-fn" rid="t003fn001"><sup>1</sup></xref>, 3.12<xref ref-type="table-fn" rid="t003fn002"><sup>2</sup></xref></td>
<td align="center">N/A</td>
</tr>
<tr>
<td align="left">Pirhonen [<xref ref-type="bibr" rid="pone.0249843.ref019">19</xref>]</td>
<td align="center">N/A</td>
<td align="center">1.764</td>
<td align="center">3.996
</td>
</tr>
<tr>
<td align="left">BiLSTM + RQI</td>
<td align="center">20</td>
<td align="center">0.821</td>
<td align="center">2.236</td>
</tr>
<tr>
<td align="left">BiLSTM + RQI</td>
<td align="center">30</td>
<td align="center">0.747</td>
<td align="center">1.926</td>
</tr>
<tr>
<td align="left">BiLSTM + RQI</td>
<td align="center">60</td>
<td align="center">0.638</td>
<td align="center">1.575</td>
</tr>
</tbody>
</table>
</alternatives>
<table-wrap-foot>
<fn id="t003fn001">
<p><sup>1</sup> Based on testing against 42 Capnobase [<xref ref-type="bibr" rid="pone.0249843.ref030">30</xref>] records</p>
</fn>
<fn id="t003fn002">
<p><sup>2</sup> Based on testing against 53 records MIMIC-II [<xref ref-type="bibr" rid="pone.0249843.ref031">31</xref>] records</p>
</fn>
<fn id="t003fn003">
<p><sup>3</sup> Based on testing against 42 Capnobase [<xref ref-type="bibr" rid="pone.0249843.ref030">30</xref>] records, results varied based on window length selected and on signal used (PPG or ECG)</p>
</fn>
</table-wrap-foot>
</table-wrap>
<p>Compared to the works presented in <xref ref-type="table" rid="pone.0249843.t003">Table 3</xref>, our BiLSTM models with RR and RQI features perform extremely strongly regardless of segment length used to extract these parameters. The RMSEs of all models were lower than the previous works in the literature. In terms of MAE, the model trained using 60s segments outperformed all previous works. One work [<xref ref-type="bibr" rid="pone.0249843.ref017">17</xref>] reported a lower MAE of 0.71 BrPM on the Capnobase database than was achieved by our models based on 20s and 30s signal segments, however the MAE of [<xref ref-type="bibr" rid="pone.0249843.ref017">17</xref>] rose to 3.12 BrPM when the scheme was applied to the larger and more comprehensive MIMIC database. As our work is based on MIMIC data, the latter result is more comparable. Overall, our LSTM models both outperform the literature in terms of MAE.</p>
<p>Interestingly, our enhanced results were achieved even where the short window length of 20 seconds was used. Accuracy increased with time, however the risk of artefacts impacting the signal quality also increases with the length of the segment. This suggests that our scheme could predict RR faster, while also achieving a lower error.</p>
<p>It is also worth noting that the previous works largely relied on very small datasets. Through using a large database for this work, it has been possible to thoroughly validate the performance of the network across a large and diverse set of patients. Our results were obtained through testing our scheme on 1,909 segments, compared to other recent works such as [<xref ref-type="bibr" rid="pone.0249843.ref017">17</xref>, <xref ref-type="bibr" rid="pone.0249843.ref019">19</xref>] where 95 and 29 records were used to obtain the results in <xref ref-type="table" rid="pone.0249843.t003">Table 3</xref>, respectively. This ultimately means that our network is more likely to translate to real-world application with success, while many of the previous works would need to be validated on larger databases.</p>
</sec>
</sec>
<sec id="sec014" sec-type="conclusions">
<title>Conclusion</title>
<p>In this work, an RQI scheme was developed to enhance the performance of neural networks utilizing the respiratory modulations of ECG and PPG signals to estimate true RR. The proposed RQI scheme was implemented and tested to evaluate improvements in the performance of NNs in predicting RR from modulation-extracted RR estimates, with exceptional results.</p>
<p>When RQIs were used alongside modulation-extracted RRs as input features, a bidirectional LSTM model was able to achieve the low MAE of 0.821 BrPM. This is a significant improvement when compared to other works in the literature, and proves that RQIs can greatly enhance the performance of neural networks.</p>
<p>With further validation on non-ICU data, this scheme would likely be suitable for at-home healthcare monitoring due to the wearable nature of PPG and ECG sensors. In our future work, we will investigate this application.</p>
<p>The results of this paper show that a device implementing our proposed RQI scheme with a BiLSTM NN would be suitable for continuous and non-invasive monitoring of respiratory rate, using hardware that is already in place in many healthcare environments. We suggest that this algorithm would be suitable for clinical use. With further validation on persons outside of ICU, it would also be suitable for at-home health monitoring. This scheme could greatly improve early prediction of potentially fatal conditions, enhance remote healthcare, and ultimately improve patient outcomes.</p>
</sec>
<sec id="sec015" sec-type="supplementary-material">
<title>Supporting information</title>
<supplementary-material id="pone.0249843.s001" mimetype="application/pdf" position="float" xlink:href="info:doi/10.1371/journal.pone.0249843.s001" xlink:type="simple">
<label>S1 Table</label>
<caption>
<title>Respiratory rate distribution in 20-second segment dataset.</title>
<p>(PDF)</p>
</caption>
</supplementary-material>
<supplementary-material id="pone.0249843.s002" mimetype="application/pdf" position="float" xlink:href="info:doi/10.1371/journal.pone.0249843.s002" xlink:type="simple">
<label>S2 Table</label>
<caption>
<title>Respiratory rate distribution in 30-second segment dataset.</title>
<p>(PDF)</p>
</caption>
</supplementary-material>
<supplementary-material id="pone.0249843.s003" mimetype="application/pdf" position="float" xlink:href="info:doi/10.1371/journal.pone.0249843.s003" xlink:type="simple">
<label>S3 Table</label>
<caption>
<title>Respiratory rate distribution in 60-second segment dataset.</title>
<p>(PDF)</p>
</caption>
</supplementary-material>
</sec>
</body>
<back>
<ref-list>
<title>References</title>
<ref id="pone.0249843.ref001">
<label>1</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Mochizuki</surname> <given-names>K</given-names></name>, <name name-style="western"><surname>Shintani</surname> <given-names>R</given-names></name>, <name name-style="western"><surname>Mori</surname> <given-names>K</given-names></name>, <name name-style="western"><surname>Sato</surname> <given-names>T</given-names></name>, <name name-style="western"><surname>Sakaguchi</surname> <given-names>O</given-names></name>, <name name-style="western"><surname>Takeshige</surname> <given-names>K</given-names></name>, <etal>et al</etal>. <article-title>Importance of respiratory rate for the prediction of clinical deterioration after emergency department discharge: a single-center, case-control study</article-title>. <source>Acute Medicine &amp; Surgery</source>. <year>2017</year>;<volume>4</volume>(<issue>2</issue>):<fpage>172</fpage>–<lpage>178</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1002/ams2.252" xlink:type="simple">10.1002/ams2.252</ext-link></comment> <object-id pub-id-type="pmid">29123857</object-id></mixed-citation>
</ref>
<ref id="pone.0249843.ref002">
<label>2</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Fieselmann</surname> <given-names>JF</given-names></name>, <name name-style="western"><surname>Hendryx</surname> <given-names>MS</given-names></name>, <name name-style="western"><surname>Helms</surname> <given-names>CM</given-names></name>, <name name-style="western"><surname>Wakefield</surname> <given-names>DS</given-names></name>. <article-title>Respiratory rate predicts cardiopulmonary arrest for internal medicine inpatients</article-title>. <source>Journal of General Internal Medicine</source>. <year>1993</year>;<volume>8</volume>(<issue>7</issue>):<fpage>354</fpage>–<lpage>360</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1007/BF02600071" xlink:type="simple">10.1007/BF02600071</ext-link></comment> <object-id pub-id-type="pmid">8410395</object-id></mixed-citation>
</ref>
<ref id="pone.0249843.ref003">
<label>3</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Goldhill</surname> <given-names>DR</given-names></name>, <name name-style="western"><surname>McNarry</surname> <given-names>AF</given-names></name>, <name name-style="western"><surname>Mandersloot</surname> <given-names>G</given-names></name>, <name name-style="western"><surname>McGinley</surname> <given-names>A</given-names></name>. <article-title>A physiologically-based early warning score for ward patients: The association between score and outcome</article-title>. <source>Anaesthesia</source>. <year>2005</year>;<volume>60</volume>(<issue>6</issue>):<fpage>547</fpage>–<lpage>553</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1111/j.1365-2044.2005.04186.x" xlink:type="simple">10.1111/j.1365-2044.2005.04186.x</ext-link></comment> <object-id pub-id-type="pmid">15918825</object-id></mixed-citation>
</ref>
<ref id="pone.0249843.ref004">
<label>4</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Subbe</surname> <given-names>CP</given-names></name>, <name name-style="western"><surname>Davies</surname> <given-names>RG</given-names></name>, <name name-style="western"><surname>Williams</surname> <given-names>E</given-names></name>, <name name-style="western"><surname>Rutherford</surname> <given-names>P</given-names></name>, <name name-style="western"><surname>Gemmell</surname> <given-names>L</given-names></name>. <article-title>Effect of introducing the modified early warning score on clinical outcomes, cardio-pulmonary arrests and intensive care utilisation in acute medical admissions</article-title>. <source>Anaesthesia</source>. <year>2003</year>;<volume>58</volume>(<issue>8</issue>):<fpage>797</fpage>–<lpage>802</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1046/j.1365-2044.2003.03258.x" xlink:type="simple">10.1046/j.1365-2044.2003.03258.x</ext-link></comment> <object-id pub-id-type="pmid">12859475</object-id></mixed-citation>
</ref>
<ref id="pone.0249843.ref005">
<label>5</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Ginsburg</surname> <given-names>AS</given-names></name>, <name name-style="western"><surname>Lenahan</surname> <given-names>JL</given-names></name>, <name name-style="western"><surname>Izadnegahdar</surname> <given-names>R</given-names></name>, <name name-style="western"><surname>Ansermino</surname> <given-names>JM</given-names></name>. <article-title>A systematic review of tools to measure respiratory rate in order to identify childhood pneumonia</article-title>. <source>American Journal of Respiratory and Critical Care Medicine</source>. <year>2018</year>;<volume>197</volume>(<issue>9</issue>):<fpage>1116</fpage>–<lpage>1127</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1164/rccm.201711-2233CI" xlink:type="simple">10.1164/rccm.201711-2233CI</ext-link></comment> <object-id pub-id-type="pmid">29474107</object-id></mixed-citation>
</ref>
<ref id="pone.0249843.ref006">
<label>6</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Karlen</surname> <given-names>W</given-names></name>, <name name-style="western"><surname>Gan</surname> <given-names>H</given-names></name>, <name name-style="western"><surname>Chiu</surname> <given-names>M</given-names></name>, <name name-style="western"><surname>Dunsmuir</surname> <given-names>D</given-names></name>, <name name-style="western"><surname>Zhou</surname> <given-names>G</given-names></name>, <name name-style="western"><surname>Dumont</surname> <given-names>GA</given-names></name>, <etal>et al</etal>. <article-title>Improving the accuracy and efficiency of respiratory rate measurements in children using mobile devices</article-title>. <source>PLoS ONE</source>. <year>2014</year>;<volume>9</volume>(<issue>6</issue>):<fpage>e99266</fpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1371/journal.pone.0099266" xlink:type="simple">10.1371/journal.pone.0099266</ext-link></comment> <object-id pub-id-type="pmid">24919062</object-id></mixed-citation>
</ref>
<ref id="pone.0249843.ref007">
<label>7</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>McBride</surname> <given-names>J</given-names></name>, <name name-style="western"><surname>Knight</surname> <given-names>D</given-names></name>, <name name-style="western"><surname>Piper</surname> <given-names>J</given-names></name>, <name name-style="western"><surname>Smith</surname> <given-names>GB</given-names></name>. <article-title>Long-term effect of introducing an early warning score on respiratory rate charting on general wards</article-title>. <source>Resuscitation</source>. <year>2005</year>;<volume>65</volume>(<issue>1</issue>):<fpage>41</fpage>–<lpage>44</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.resuscitation.2004.10.015" xlink:type="simple">10.1016/j.resuscitation.2004.10.015</ext-link></comment> <object-id pub-id-type="pmid">15797273</object-id></mixed-citation>
</ref>
<ref id="pone.0249843.ref008">
<label>8</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Hodgetts</surname> <given-names>TJ</given-names></name>, <name name-style="western"><surname>Kenward</surname> <given-names>G</given-names></name>, <name name-style="western"><surname>Vlachonikolis</surname> <given-names>IG</given-names></name>, <name name-style="western"><surname>Payne</surname> <given-names>S</given-names></name>, <name name-style="western"><surname>Castle</surname> <given-names>N</given-names></name>. <article-title>The identification of risk factors for cardiac arrest and formulation of activation criteria to alert a medical emergency team</article-title>. <source>Resuscitation</source>. <year>2002</year>;<volume>54</volume>(<issue>2</issue>):<fpage>125</fpage>–<lpage>131</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/S0300-9572(02)00100-4" xlink:type="simple">10.1016/S0300-9572(02)00100-4</ext-link></comment> <object-id pub-id-type="pmid">12161291</object-id></mixed-citation>
</ref>
<ref id="pone.0249843.ref009">
<label>9</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Hogan</surname> <given-names>J</given-names></name>. <article-title>Why don’t nurses monitor the respiratory rates of patients?</article-title> <source>British Journal of Nursing</source>. <year>2006</year>;<volume>15</volume>(<issue>9</issue>):<fpage>489</fpage>–<lpage>492</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.12968/bjon.2006.15.9.21087" xlink:type="simple">10.12968/bjon.2006.15.9.21087</ext-link></comment> <object-id pub-id-type="pmid">16723921</object-id></mixed-citation>
</ref>
<ref id="pone.0249843.ref010">
<label>10</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Philip</surname> <given-names>K</given-names></name>, <name name-style="western"><surname>Richardson</surname> <given-names>R</given-names></name>, <name name-style="western"><surname>Cohen</surname> <given-names>M</given-names></name>. <article-title>Staff perceptions of respiratory rate measurement in a general hospital</article-title>. <source>British Journal of Nursing</source>. <year>2013</year>;<volume>22</volume>(<issue>10</issue>):<fpage>570</fpage>–<lpage>574</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.12968/bjon.2013.22.10.570" xlink:type="simple">10.12968/bjon.2013.22.10.570</ext-link></comment> <object-id pub-id-type="pmid">23752455</object-id></mixed-citation>
</ref>
<ref id="pone.0249843.ref011">
<label>11</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Ansell</surname> <given-names>H</given-names></name>, <name name-style="western"><surname>Meyer</surname> <given-names>A</given-names></name>, <name name-style="western"><surname>Thompson</surname> <given-names>S</given-names></name>. <article-title>Why don’t nurses consistently take patient respiratory rates</article-title>. <source>British Journal of Nursing</source>. <year>2014</year>;<volume>23</volume>(<issue>8</issue>):<fpage>414</fpage>–<lpage>418</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.12968/bjon.2014.23.8.414" xlink:type="simple">10.12968/bjon.2014.23.8.414</ext-link></comment> <object-id pub-id-type="pmid">24763296</object-id></mixed-citation>
</ref>
<ref id="pone.0249843.ref012">
<label>12</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Hendrich</surname> <given-names>A</given-names></name>. <article-title>A 36-hospital time and motion study: how do medical-surgical nurses spend their time?</article-title> <source>The Permanente Journal</source>. <year>2008</year>;<volume>12</volume>(<issue>3</issue>):<fpage>25</fpage>–<lpage>34</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.7812/tpp/08-021" xlink:type="simple">10.7812/tpp/08-021</ext-link></comment> <object-id pub-id-type="pmid">21331207</object-id></mixed-citation>
</ref>
<ref id="pone.0249843.ref013">
<label>13</label>
<mixed-citation publication-type="other" xlink:type="simple">Bureau of Labor Statistics. Occupational employment and wages, May 2014: registered nurses. Washington D.C.: Bureau of Labor Statistics; 2014. Available from: <ext-link ext-link-type="uri" xlink:href="http://www.bls.gov/oes/current/oes291141.htm" xlink:type="simple">http://www.bls.gov/oes/current/oes291141.htm</ext-link>.</mixed-citation>
</ref>
<ref id="pone.0249843.ref014">
<label>14</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Orphanidou</surname> <given-names>C</given-names></name>. <article-title>Derivation of respiration rate from ambulatory ECG and PPG using ensemble empirical mode decomposition: comparison and fusion</article-title>. <source>Computers in Biology and Medicine</source>. <year>2017</year>;<volume>81</volume>:<fpage>45</fpage>–<lpage>54</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.compbiomed.2016.12.005" xlink:type="simple">10.1016/j.compbiomed.2016.12.005</ext-link></comment> <object-id pub-id-type="pmid">28012294</object-id></mixed-citation>
</ref>
<ref id="pone.0249843.ref015">
<label>15</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Karlen</surname> <given-names>W</given-names></name>, <name name-style="western"><surname>Garde</surname> <given-names>A</given-names></name>, <name name-style="western"><surname>Myers</surname> <given-names>D</given-names></name>, <name name-style="western"><surname>Scheffer</surname> <given-names>C</given-names></name>, <name name-style="western"><surname>Ansermino</surname> <given-names>JM</given-names></name>, <name name-style="western"><surname>Dumont</surname> <given-names>GA</given-names></name>. <article-title>Estimation of respiratory rate from photoplethysmographic imaging videos compared to pulse oximetry</article-title>. <source>IEEE Journal of Biomedical and Health Informatics</source>. <year>2015</year>;<volume>19</volume>(<issue>4</issue>):<fpage>1331</fpage>–<lpage>1338</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/JBHI.2015.2429746" xlink:type="simple">10.1109/JBHI.2015.2429746</ext-link></comment> <object-id pub-id-type="pmid">25955999</object-id></mixed-citation>
</ref>
<ref id="pone.0249843.ref016">
<label>16</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Pimentel</surname> <given-names>MAF</given-names></name>, <name name-style="western"><surname>Johnson</surname> <given-names>AEW</given-names></name>, <name name-style="western"><surname>Charlton</surname> <given-names>PH</given-names></name>, <name name-style="western"><surname>Birrenkott</surname> <given-names>D</given-names></name>, <name name-style="western"><surname>Watkinson</surname> <given-names>PJ</given-names></name>, <name name-style="western"><surname>Tarassenko</surname> <given-names>L</given-names></name>, <etal>et al</etal>. <article-title>Toward a robust estimation of respiratory rate from pulse oximeters</article-title>. <source>IEEE Transactions on Biomedical Engineering</source>. <year>2017</year>;<volume>64</volume>(<issue>8</issue>):<fpage>1914</fpage>–<lpage>1923</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/TBME.2016.2613124" xlink:type="simple">10.1109/TBME.2016.2613124</ext-link></comment> <object-id pub-id-type="pmid">27875128</object-id></mixed-citation>
</ref>
<ref id="pone.0249843.ref017">
<label>17</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Birrenkott</surname> <given-names>DA</given-names></name>, <name name-style="western"><surname>Pimentel</surname> <given-names>MAF</given-names></name>, <name name-style="western"><surname>Watkinson</surname> <given-names>PJ</given-names></name>, <name name-style="western"><surname>Clifton</surname> <given-names>DA</given-names></name>. <article-title>A robust fusion model for estimating respiratory rate from photoplethysmography and electrocardiography</article-title>. <source>IEEE Transactions on Biomedical Engineering</source>. <year>2018</year>;<volume>65</volume>(<issue>9</issue>):<fpage>2033</fpage>–<lpage>2041</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/TBME.2017.2778265" xlink:type="simple">10.1109/TBME.2017.2778265</ext-link></comment> <object-id pub-id-type="pmid">29989939</object-id></mixed-citation>
</ref>
<ref id="pone.0249843.ref018">
<label>18</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Khreis</surname> <given-names>S</given-names></name>, <name name-style="western"><surname>Ge</surname> <given-names>D</given-names></name>, <name name-style="western"><surname>Rahman</surname> <given-names>HA</given-names></name>, <name name-style="western"><surname>Carrault</surname> <given-names>G</given-names></name>. <article-title>Breathing Rate Estimation Using Kalman Smoother With Electrocardiogram and Photoplethysmogram</article-title>. <source>IEEE Transactions on Biomedical Engineering</source>. <year>2020</year>;<volume>67</volume>(<issue>3</issue>):<fpage>893</fpage>–<lpage>904</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/TBME.2019.2923448" xlink:type="simple">10.1109/TBME.2019.2923448</ext-link></comment> <object-id pub-id-type="pmid">31217092</object-id></mixed-citation>
</ref>
<ref id="pone.0249843.ref019">
<label>19</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Pirhonen</surname> <given-names>M</given-names></name>, <name name-style="western"><surname>Vehkaoja</surname> <given-names>A</given-names></name>. <article-title>Fusion enhancement for tracking of respiratory rate through intrinsic mode functions in photoplethysmography</article-title>. <source>Biomedical Signal Processing and Control</source>. <year>2020</year>;<volume>59</volume>:<fpage>101887</fpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.bspc.2020.101887" xlink:type="simple">10.1016/j.bspc.2020.101887</ext-link></comment></mixed-citation>
</ref>
<ref id="pone.0249843.ref020">
<label>20</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Charlton</surname> <given-names>PH</given-names></name>, <name name-style="western"><surname>Birrenkott</surname> <given-names>DA</given-names></name>, <name name-style="western"><surname>Bonnici</surname> <given-names>T</given-names></name>, <name name-style="western"><surname>Pimentel</surname> <given-names>MAF</given-names></name>, <name name-style="western"><surname>Johnson</surname> <given-names>AEW</given-names></name>, <name name-style="western"><surname>Alastruey</surname> <given-names>J</given-names></name>, <etal>et al</etal>. <article-title>Breathing rate estimation from the electrocardiogram and photoplethysmogram: a review</article-title>. <source>IEEE Reviews in Biomedical Engineering</source>. <year>2017</year>;<volume>11</volume>(<issue>99</issue>):<fpage>2</fpage>–<lpage>20</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/RBME.2017.2763681" xlink:type="simple">10.1109/RBME.2017.2763681</ext-link></comment> <object-id pub-id-type="pmid">29990026</object-id></mixed-citation>
</ref>
<ref id="pone.0249843.ref021">
<label>21</label>
<mixed-citation publication-type="other" xlink:type="simple">Birrenkott DA, Pimentel MAF, Watkinson PJ, Clifton DA. Robust estimation of respiratory rate via ECG- and PPG-derived respiratory quality indices. In: Proc. of the Annual International Conference of the IEEE Engineering in Medicine and Biology Society. Orlando, FL, USA; 2016. p. 676–679.</mixed-citation>
</ref>
<ref id="pone.0249843.ref022">
<label>22</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Johnson</surname> <given-names>AEW</given-names></name>, <name name-style="western"><surname>Pollard</surname> <given-names>TJ</given-names></name>, <name name-style="western"><surname>Shen</surname> <given-names>L</given-names></name>, <name name-style="western"><surname>Lehman</surname> <given-names>LWH</given-names></name>, <name name-style="western"><surname>Feng</surname> <given-names>M</given-names></name>, <name name-style="western"><surname>Ghassemi</surname> <given-names>M</given-names></name>, <etal>et al</etal>. <article-title>MIMIC-III, a freely accessible critical care database</article-title>. <source>Scientific Data</source>. <year>2016</year>;<volume>3</volume>:<fpage>160035</fpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1038/sdata.2016.35" xlink:type="simple">10.1038/sdata.2016.35</ext-link></comment> <object-id pub-id-type="pmid">27219127</object-id></mixed-citation>
</ref>
<ref id="pone.0249843.ref023">
<label>23</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Goldberger</surname> <given-names>AL</given-names></name>, <name name-style="western"><surname>Amaral</surname> <given-names>LA</given-names></name>, <name name-style="western"><surname>Glass</surname> <given-names>L</given-names></name>, <name name-style="western"><surname>Hausdorff</surname> <given-names>JM</given-names></name>, <name name-style="western"><surname>Ivanov</surname> <given-names>PC</given-names></name>, <name name-style="western"><surname>Mark</surname> <given-names>RG</given-names></name>, <etal>et al</etal>. <article-title>PhysioBank, PhysioToolkit, and PhysioNet: components of a new research resource for complex physiologic signals</article-title>. <source>Circulation</source>. <year>2000</year>;<volume>101</volume>(<issue>23</issue>):<fpage>E215</fpage>–<lpage>220</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1161/01.CIR.101.23.e215" xlink:type="simple">10.1161/01.CIR.101.23.e215</ext-link></comment> <object-id pub-id-type="pmid">10851218</object-id></mixed-citation>
</ref>
<ref id="pone.0249843.ref024">
<label>24</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Silva</surname> <given-names>I</given-names></name>, <name name-style="western"><surname>Moody</surname> <given-names>GB</given-names></name>. <article-title>An open-source toolbox for analysing and processing PhysioNet databases in MATLAB and Octave</article-title>. <source>Journal of Open Research Software</source>. <year>2014</year>;<volume>2</volume>(<issue>1</issue>):<fpage>27</fpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.5334/jors.bi" xlink:type="simple">10.5334/jors.bi</ext-link></comment> <object-id pub-id-type="pmid">26525081</object-id></mixed-citation>
</ref>
<ref id="pone.0249843.ref025">
<label>25</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Orphanidou</surname> <given-names>C</given-names></name>, <name name-style="western"><surname>Bonnici</surname> <given-names>T</given-names></name>, <name name-style="western"><surname>Charlton</surname> <given-names>P</given-names></name>, <name name-style="western"><surname>Clifton</surname> <given-names>D</given-names></name>, <name name-style="western"><surname>Vallance</surname> <given-names>D</given-names></name>, <name name-style="western"><surname>Tarassenko</surname> <given-names>L</given-names></name>. <article-title>Signal-quality indices for the electrocardiogram and photoplethysmogram: Derivation and applications to wireless monitoring</article-title>. <source>IEEE Journal of Biomedical and Health Informatics</source>. <year>2015</year>;<volume>19</volume>(<issue>3</issue>):<fpage>832</fpage>–<lpage>838</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/JBHI.2014.2338351" xlink:type="simple">10.1109/JBHI.2014.2338351</ext-link></comment> <object-id pub-id-type="pmid">25069129</object-id></mixed-citation>
</ref>
<ref id="pone.0249843.ref026">
<label>26</label>
<mixed-citation publication-type="book" xlink:type="simple">
<name name-style="western"><surname>Talley</surname> <given-names>NJ</given-names></name>, <name name-style="western"><surname>O’Connor</surname> <given-names>S</given-names></name>. <source>Clinical Examination—A Systematic Guide to Physical Diagnosis</source>. <edition designator="7">7th ed</edition>. <publisher-loc>Chatswood, NSW</publisher-loc>: <publisher-name>Elsevier Australia</publisher-name>; <year>2014</year>.</mixed-citation>
</ref>
<ref id="pone.0249843.ref027">
<label>27</label>
<mixed-citation publication-type="book" xlink:type="simple">
<name name-style="western"><surname>Coffey</surname> <given-names>T</given-names></name>. <source>First Aid Manual</source>. <edition designator="9">9th ed</edition>. <publisher-loc>Australia</publisher-loc>: <publisher-name>Healthcorp Pty Limited</publisher-name>; <year>2016</year>.</mixed-citation>
</ref>
<ref id="pone.0249843.ref028">
<label>28</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Hochreiter</surname> <given-names>S</given-names></name>. <name name-style="western"><surname>Schmidhuber</surname> <given-names>J</given-names></name>. <article-title>Long short-term memory</article-title>. <source>Neural Computing</source>. <year>1997</year>; <volume>9</volume>: <fpage>1735</fpage>–<lpage>1780</lpage> <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1162/neco.1997.9.8.1735" xlink:type="simple">10.1162/neco.1997.9.8.1735</ext-link></comment> <object-id pub-id-type="pmid">9377276</object-id></mixed-citation>
</ref>
<ref id="pone.0249843.ref029">
<label>29</label>
<mixed-citation publication-type="other" xlink:type="simple">Kingma D. P., Ba J. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980. 2014</mixed-citation>
</ref>
<ref id="pone.0249843.ref030">
<label>30</label>
<mixed-citation publication-type="other" xlink:type="simple">Karlen W, Turner M, Cooke E, Dumont G, Ansermino M. CapnoBase: Signal database and tools to collect, share and annotate respiratory signals; 2010.</mixed-citation>
</ref>
<ref id="pone.0249843.ref031">
<label>31</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Saeed</surname> <given-names>M</given-names></name>, <name name-style="western"><surname>Villarroel</surname> <given-names>M</given-names></name>, <name name-style="western"><surname>Reisner</surname> <given-names>A</given-names></name>, <name name-style="western"><surname>Clifford</surname> <given-names>G</given-names></name>, <name name-style="western"><surname>Lehman</surname> <given-names>Lw</given-names></name>, <name name-style="western"><surname>Moody</surname> <given-names>G</given-names></name>, <etal>et al</etal>. <article-title>Multiparameter Intelligent Monitoring in Intensive Care II (MIMIC-II): A Public-Access Intensive Care Unit Database</article-title>. <source>Critical Care Medicine</source>. <year>2011</year>;<volume>39</volume>:<fpage>952</fpage>–<lpage>60</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1097/CCM.0b013e31820a92c6" xlink:type="simple">10.1097/CCM.0b013e31820a92c6</ext-link></comment> <object-id pub-id-type="pmid">21283005</object-id></mixed-citation>
</ref>
</ref-list>
</back>
<sub-article article-type="aggregated-review-documents" id="pone.0249843.r001" specific-use="decision-letter">
<front-stub>
<article-id pub-id-type="doi">10.1371/journal.pone.0249843.r001</article-id>
<title-group>
<article-title>Decision Letter 0</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author">
<name name-style="western">
<surname>Chen</surname>
<given-names>Chi-Hua</given-names>
</name>
<role>Academic Editor</role>
</contrib>
</contrib-group>
<permissions>
<copyright-year>2021</copyright-year>
<copyright-holder>Chi-Hua Chen</copyright-holder>
<license xlink:href="http://creativecommons.org/licenses/by/4.0/">
<license-p>This is an open access article distributed under the terms of the <ext-link ext-link-type="uri" xlink:href="http://creativecommons.org/licenses/by/4.0/" xlink:type="simple">Creative Commons Attribution License</ext-link>, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.</license-p>
</license>
</permissions>
<related-object document-id="10.1371/journal.pone.0249843" document-id-type="doi" document-type="article" id="rel-obj001" link-type="peer-reviewed-article"/>
<custom-meta-group>
<custom-meta>
<meta-name>Submission Version</meta-name>
<meta-value>0</meta-value>
</custom-meta>
</custom-meta-group>
</front-stub>
<body>
<p>
<named-content content-type="letter-date">22 Feb 2021</named-content>
</p>
<p>PONE-D-21-02517</p>
<p>Determining respiratory rate from photoplethysmogram and electrocardiogram signals using respiratory quality indices and neural networks</p>
<p>PLOS ONE</p>
<p>Dear Dr. Baker,</p>
<p>Thank you for submitting your manuscript to PLOS ONE. After careful consideration, we feel that it has merit but does not fully meet PLOS ONE’s publication criteria as it currently stands. Therefore, we invite you to submit a revised version of the manuscript that addresses the points raised during the review process.</p>
<p>Please submit your revised manuscript by Apr 08 2021 11:59PM. If you will need more time than this to complete your revisions, please reply to this message or contact the journal office at <email xlink:type="simple">plosone@plos.org</email>. When you're ready to submit your revision, log on to <ext-link ext-link-type="uri" xlink:href="https://www.editorialmanager.com/pone/" xlink:type="simple">https://www.editorialmanager.com/pone/</ext-link> and select the 'Submissions Needing Revision' folder to locate your manuscript file.</p>
<p>Please include the following items when submitting your revised manuscript:</p>
<p><list list-type="bullet"><list-item><p>A rebuttal letter that responds to each point raised by the academic editor and reviewer(s). You should upload this letter as a separate file labeled 'Response to Reviewers'.</p></list-item><list-item><p>A marked-up copy of your manuscript that highlights changes made to the original version. You should upload this as a separate file labeled 'Revised Manuscript with Track Changes'.</p></list-item><list-item><p>An unmarked version of your revised paper without tracked changes. You should upload this as a separate file labeled 'Manuscript'.</p></list-item></list></p>
<p>If you would like to make changes to your financial disclosure, please include your updated statement in your cover letter. Guidelines for resubmitting your figure files are available below the reviewer comments at the end of this letter.</p>
<p>If applicable, we recommend that you deposit your laboratory protocols in protocols.io to enhance the reproducibility of your results. Protocols.io assigns your protocol its own identifier (DOI) so that it can be cited independently in the future. For instructions see: <ext-link ext-link-type="uri" xlink:href="http://journals.plos.org/plosone/s/submission-guidelines#loc-laboratory-protocols" xlink:type="simple">http://journals.plos.org/plosone/s/submission-guidelines#loc-laboratory-protocols</ext-link></p>
<p>We look forward to receiving your revised manuscript.</p>
<p>Kind regards,</p>
<p>Chi-Hua Chen, Ph.D.</p>
<p>Academic Editor</p>
<p>PLOS ONE</p>
<p>Journal Requirements:</p>
<p>When submitting your revision, we need you to address these additional requirements.</p>
<p>1. Please ensure that your manuscript meets PLOS ONE's style requirements, including those for file naming. The PLOS ONE style templates can be found at</p>
<p><ext-link ext-link-type="uri" xlink:href="https://journals.plos.org/plosone/s/file?id=wjVg/PLOSOne_formatting_sample_main_body.pdf" xlink:type="simple">https://journals.plos.org/plosone/s/file?id=wjVg/PLOSOne_formatting_sample_main_body.pdf</ext-link> and</p>
<p><ext-link ext-link-type="uri" xlink:href="https://journals.plos.org/plosone/s/file?id=ba62/PLOSOne_formatting_sample_title_authors_affiliations.pdf" xlink:type="simple">https://journals.plos.org/plosone/s/file?id=ba62/PLOSOne_formatting_sample_title_authors_affiliations.pdf</ext-link></p>
<p>2. Thank you for providing the date(s) when patient medical information was initially recorded. Please also include the date(s) on which your research team accessed the databases/records to obtain the retrospective data used in your study.</p>
<p>3. To meet our data availability requrements, please provide the data used for this study. This may be a supplementary table that includes basic demographic information and measurements of the six modulation-extracted respiratory signals.</p>
<p>4.Please provide a summary table of patient demographics.</p>
<p>5.Thank you for stating the following in the Acknowledgments Section of your manuscript:</p>
<p>"This work was supported by the Australian Government Research Training Program</p>
<p>Scholarship."</p>
<p>We note that you have provided funding information that is not currently declared in your Funding Statement. However, funding information should not appear in the Acknowledgments section or other areas of your manuscript. We will only publish funding information present in the Funding Statement section of the online submission form.</p>
<p>Please remove any funding-related text from the manuscript and let us know how you would like to update your Funding Statement. Currently, your Funding Statement reads as follows:</p>
<p>"The authors received no specific funding for this work."</p>
<p>Please include your amended statements within your cover letter; we will change the online submission form on your behalf.</p>
<p>[Note: HTML markup is below. Please do not edit.]</p>
<p>Reviewers' comments:</p>
<p>Reviewer's Responses to Questions</p>
<p><!-- <font color="black"> --><bold>Comments to the Author</bold></p>
<p>1. Is the manuscript technically sound, and do the data support the conclusions?</p>
<p>The manuscript must describe a technically sound piece of scientific research with data that supports the conclusions. Experiments must have been conducted rigorously, with appropriate controls, replication, and sample sizes. The conclusions must be drawn appropriately based on the data presented. <!-- </font> --></p>
<p>Reviewer #1: Partly</p>
<p>**********</p>
<p><!-- <font color="black"> -->2. Has the statistical analysis been performed appropriately and rigorously? <!-- </font> --></p>
<p>Reviewer #1: I Don't Know</p>
<p>**********</p>
<p><!-- <font color="black"> -->3. Have the authors made all data underlying the findings in their manuscript fully available?</p>
<p>The <ext-link ext-link-type="uri" xlink:href="http://www.plosone.org/static/policies.action#sharing" xlink:type="simple">PLOS Data policy</ext-link> requires authors to make all data underlying the findings described in their manuscript fully available without restriction, with rare exception (please refer to the Data Availability Statement in the manuscript PDF file). The data should be provided as part of the manuscript or its supporting information, or deposited to a public repository. For example, in addition to summary statistics, the data points behind means, medians and variance measures should be available. If there are restrictions on publicly sharing data—e.g. participant privacy or use of data from a third party—those must be specified.<!-- </font> --></p>
<p>Reviewer #1: No</p>
<p>**********</p>
<p><!-- <font color="black"> -->4. Is the manuscript presented in an intelligible fashion and written in standard English?</p>
<p>PLOS ONE does not copyedit accepted manuscripts, so the language in submitted articles must be clear, correct, and unambiguous. Any typographical or grammatical errors should be corrected at revision, so please note any specific errors here.<!-- </font> --></p>
<p>Reviewer #1: Yes</p>
<p>**********</p>
<p><!-- <font color="black"> -->5. Review Comments to the Author</p>
<p>Please use the space provided to explain your answers to the questions above. You may also include additional comments for the author, including concerns about dual publication, research ethics, or publication ethics. (Please upload your review as an attachment if it exceeds 20,000 characters)<!-- </font> --></p>
<p>Reviewer #1: In “Determining respiratory rate from photoplethysmogram and electrocardiogram signals using respiratory quality indices and neural networks” by Baker, Xiang, and Atkinson, the authors propose a method to approximate Respiratory Rate (RR) from other common signals (ECG, PPG) and based on idealized neural network models fit (using ‘Adam Optimization’).</p>
<p>A key result appears to be in Table 1 where including RQI lowers errors and increases correlation. I appreciate Table 2, comparison to previous works. This paper overall appears sound. My biggest concerns with lack of clarity, basic definitions of functions (see below), and a seeming lack of care or experience in thinking through figures are disappointing. But hopefully these issues can be fixed.</p>
<p>1) Consistent with PLoS policy, the authors should make all of the code for their models freely available at a public repository.</p>
<p>They should also have the scripts to generate the exact figures and not just the minimal working model.</p>
<p>This to me is the most crucial part of having this paper accepted because aspects of the models that are not easily understood with the current descriptions (see below).</p>
<p>2) All of the acronyms are quite hard to follow. I strongly urge the authors to add a table upfront to define the many acronyms/abbreviations.</p>
<p>3) Eq (5)—(10): what is the function \\sigma()? Or is this \\sigma just the std. dev from eq (3)? I understand tanh() is commonly used to represent a sigmoidal nonlinear saturation, a commonly used transfer function in neural networks. Also if the variable c_t are matrices, what are the state variables? Also I’m not quite familiar with Adam Optimization… the extent of my experience in deep neural nets is that the large # of params begs to use</p>
<p>standard gradient decent. I and other readers would greatly appreciate it if the authors please explain these details and say a few words about the</p>
<p>optimization algorithm.</p>
<p>4) Figures 1–4 need axes title, labels, units, numbers. I’ve never seen anything so bare unless it was part of a schematic that is part of a larger figure.</p>
<p>For readability, the authors should consider making these all into 1 figure with labels. In its current form, it is really hard to see anything they are trying to communicate.</p>
<p>5) Same comments for Figs 6–8, 9–11, 12–14: please combine the figures; this would make it easier for readers to digest your results.</p>
<p>6) In Table 2: presumably the other methods [14—19] did not have PCC? If so, that would important to include; if not, please state this.</p>
<p>Minor: MAE is not defined in the abstract but all other acronyms are. Mean absolute error defined on line 57. Please define what it is or don’t use the abbreviation.</p>
<p>**********</p>
<p><!-- <font color="black"> -->6. PLOS authors have the option to publish the peer review history of their article (<ext-link ext-link-type="uri" xlink:href="https://journals.plos.org/plosone/s/editorial-and-peer-review-process#loc-peer-review-history" xlink:type="simple">what does this mean?</ext-link>). If published, this will include your full peer review and any attached files.</p>
<p>If you choose “no”, your identity will remain anonymous but your review may still be made public.</p>
<p><bold>Do you want your identity to be public for this peer review?</bold> For information about this choice, including consent withdrawal, please see our <ext-link ext-link-type="uri" xlink:href="https://www.plos.org/privacy-policy" xlink:type="simple">Privacy Policy</ext-link>.<!-- </font> --></p>
<p>Reviewer #1: No</p>
<p>[NOTE: If reviewer comments were submitted as an attachment file, they will be attached to this email and accessible via the submission site. Please log into your account, locate the manuscript record, and check for the action link "View Attachments". If this link does not appear, there are no attachment files.]</p>
<p>While revising your submission, please upload your figure files to the Preflight Analysis and Conversion Engine (PACE) digital diagnostic tool, <ext-link ext-link-type="uri" xlink:href="https://pacev2.apexcovantage.com/" xlink:type="simple">https://pacev2.apexcovantage.com/</ext-link>. PACE helps ensure that figures meet PLOS requirements. To use PACE, you must first register as a user. Registration is free. Then, login and navigate to the UPLOAD tab, where you will find detailed instructions on how to use the tool. If you encounter any issues or have any questions when using PACE, please email PLOS at <email xlink:type="simple">figures@plos.org</email>. Please note that Supporting Information files do not need this step.</p>
</body>
</sub-article>
<sub-article article-type="author-comment" id="pone.0249843.r002">
<front-stub>
<article-id pub-id-type="doi">10.1371/journal.pone.0249843.r002</article-id>
<title-group>
<article-title>Author response to Decision Letter 0</article-title>
</title-group>
<related-object document-id="10.1371/journal.pone.0249843" document-id-type="doi" document-type="peer-reviewed-article" id="rel-obj002" link-type="rebutted-decision-letter" object-id="10.1371/journal.pone.0249843.r001" object-id-type="doi" object-type="decision-letter"/>
<custom-meta-group>
<custom-meta>
<meta-name>Submission Version</meta-name>
<meta-value>1</meta-value>
</custom-meta>
</custom-meta-group>
</front-stub>
<body>
<p>
<named-content content-type="author-response-date">23 Mar 2021</named-content>
</p>
<p>Reviewer 1: Thank you for your detailed and insightful review of our manuscript. Your feedback was very helpful. We have incorporated all of your suggestions into our revision.</p>
<supplementary-material id="pone.0249843.s004" mimetype="application/pdf" position="float" xlink:href="info:doi/10.1371/journal.pone.0249843.s004" xlink:type="simple">
<label>Attachment</label>
<caption>
<p>Submitted filename: <named-content content-type="submitted-filename">Response to Reviewers.pdf</named-content></p>
</caption>
</supplementary-material>
</body>
</sub-article>
<sub-article article-type="aggregated-review-documents" id="pone.0249843.r003" specific-use="decision-letter">
<front-stub>
<article-id pub-id-type="doi">10.1371/journal.pone.0249843.r003</article-id>
<title-group>
<article-title>Decision Letter 1</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author">
<name name-style="western">
<surname>Chen</surname>
<given-names>Chi-Hua</given-names>
</name>
<role>Academic Editor</role>
</contrib>
</contrib-group>
<permissions>
<copyright-year>2021</copyright-year>
<copyright-holder>Chi-Hua Chen</copyright-holder>
<license xlink:href="http://creativecommons.org/licenses/by/4.0/">
<license-p>This is an open access article distributed under the terms of the <ext-link ext-link-type="uri" xlink:href="http://creativecommons.org/licenses/by/4.0/" xlink:type="simple">Creative Commons Attribution License</ext-link>, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.</license-p>
</license>
</permissions>
<related-object document-id="10.1371/journal.pone.0249843" document-id-type="doi" document-type="article" id="rel-obj003" link-type="peer-reviewed-article"/>
<custom-meta-group>
<custom-meta>
<meta-name>Submission Version</meta-name>
<meta-value>1</meta-value>
</custom-meta>
</custom-meta-group>
</front-stub>
<body>
<p>
<named-content content-type="letter-date">26 Mar 2021</named-content>
</p>
<p>Determining respiratory rate from photoplethysmogram and electrocardiogram signals using respiratory quality indices and neural networks</p>
<p>PONE-D-21-02517R1</p>
<p>Dear Dr. Baker,</p>
<p>We’re pleased to inform you that your manuscript has been judged scientifically suitable for publication and will be formally accepted for publication once it meets all outstanding technical requirements.</p>
<p>Within one week, you’ll receive an e-mail detailing the required amendments. When these have been addressed, you’ll receive a formal acceptance letter and your manuscript will be scheduled for publication.</p>
<p>An invoice for payment will follow shortly after the formal acceptance. To ensure an efficient process, please log into Editorial Manager at <ext-link ext-link-type="uri" xlink:href="http://www.editorialmanager.com/pone/" xlink:type="simple">http://www.editorialmanager.com/pone/</ext-link>, click the 'Update My Information' link at the top of the page, and double check that your user information is up-to-date. If you have any billing related questions, please contact our Author Billing department directly at <email xlink:type="simple">authorbilling@plos.org</email>.</p>
<p>If your institution or institutions have a press office, please notify them about your upcoming paper to help maximize its impact. If they’ll be preparing press materials, please inform our press team as soon as possible -- no later than 48 hours after receiving the formal acceptance. Your manuscript will remain under strict press embargo until 2 pm Eastern Time on the date of publication. For more information, please contact <email xlink:type="simple">onepress@plos.org</email>.</p>
<p>Kind regards,</p>
<p>Chi-Hua Chen, Ph.D.</p>
<p>Academic Editor</p>
<p>PLOS ONE</p>
<p>Additional Editor Comments (optional):</p>
<p>Reviewers' comments:</p>
<p>Reviewer's Responses to Questions</p>
<p><!-- <font color="black"> --><bold>Comments to the Author</bold></p>
<p>1. If the authors have adequately addressed your comments raised in a previous round of review and you feel that this manuscript is now acceptable for publication, you may indicate that here to bypass the “Comments to the Author” section, enter your conflict of interest statement in the “Confidential to Editor” section, and submit your "Accept" recommendation.<!-- </font> --></p>
<p>Reviewer #1: All comments have been addressed</p>
<p>**********</p>
<p><!-- <font color="black"> -->2. Is the manuscript technically sound, and do the data support the conclusions?</p>
<p>The manuscript must describe a technically sound piece of scientific research with data that supports the conclusions. Experiments must have been conducted rigorously, with appropriate controls, replication, and sample sizes. The conclusions must be drawn appropriately based on the data presented. <!-- </font> --></p>
<p>Reviewer #1: Yes</p>
<p>**********</p>
<p><!-- <font color="black"> -->3. Has the statistical analysis been performed appropriately and rigorously? <!-- </font> --></p>
<p>Reviewer #1: Yes</p>
<p>**********</p>
<p><!-- <font color="black"> -->4. Have the authors made all data underlying the findings in their manuscript fully available?</p>
<p>The <ext-link ext-link-type="uri" xlink:href="http://www.plosone.org/static/policies.action#sharing" xlink:type="simple">PLOS Data policy</ext-link> requires authors to make all data underlying the findings described in their manuscript fully available without restriction, with rare exception (please refer to the Data Availability Statement in the manuscript PDF file). The data should be provided as part of the manuscript or its supporting information, or deposited to a public repository. For example, in addition to summary statistics, the data points behind means, medians and variance measures should be available. If there are restrictions on publicly sharing data—e.g. participant privacy or use of data from a third party—those must be specified.<!-- </font> --></p>
<p>Reviewer #1: Yes</p>
<p>**********</p>
<p><!-- <font color="black"> -->5. Is the manuscript presented in an intelligible fashion and written in standard English?</p>
<p>PLOS ONE does not copyedit accepted manuscripts, so the language in submitted articles must be clear, correct, and unambiguous. Any typographical or grammatical errors should be corrected at revision, so please note any specific errors here.<!-- </font> --></p>
<p>Reviewer #1: Yes</p>
<p>**********</p>
<p><!-- <font color="black"> -->6. Review Comments to the Author</p>
<p>Please use the space provided to explain your answers to the questions above. You may also include additional comments for the author, including concerns about dual publication, research ethics, or publication ethics. (Please upload your review as an attachment if it exceeds 20,000 characters)<!-- </font> --></p>
<p>Reviewer #1: Thanks for making the request edits. From what I can tell, the research looks technically sound now.</p>
<p>**********</p>
<p><!-- <font color="black"> -->7. PLOS authors have the option to publish the peer review history of their article (<ext-link ext-link-type="uri" xlink:href="https://journals.plos.org/plosone/s/editorial-and-peer-review-process#loc-peer-review-history" xlink:type="simple">what does this mean?</ext-link>). If published, this will include your full peer review and any attached files.</p>
<p>If you choose “no”, your identity will remain anonymous but your review may still be made public.</p>
<p><bold>Do you want your identity to be public for this peer review?</bold> For information about this choice, including consent withdrawal, please see our <ext-link ext-link-type="uri" xlink:href="https://www.plos.org/privacy-policy" xlink:type="simple">Privacy Policy</ext-link>.<!-- </font> --></p>
<p>Reviewer #1: No</p>
</body>
</sub-article>
<sub-article article-type="editor-report" id="pone.0249843.r004" specific-use="acceptance-letter">
<front-stub>
<article-id pub-id-type="doi">10.1371/journal.pone.0249843.r004</article-id>
<title-group>
<article-title>Acceptance letter</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author">
<name name-style="western">
<surname>Chen</surname>
<given-names>Chi-Hua</given-names>
</name>
<role>Academic Editor</role>
</contrib>
</contrib-group>
<permissions>
<copyright-year>2021</copyright-year>
<copyright-holder>Chi-Hua Chen</copyright-holder>
<license xlink:href="http://creativecommons.org/licenses/by/4.0/">
<license-p>This is an open access article distributed under the terms of the <ext-link ext-link-type="uri" xlink:href="http://creativecommons.org/licenses/by/4.0/" xlink:type="simple">Creative Commons Attribution License</ext-link>, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.</license-p>
</license>
</permissions>
<related-object document-id="10.1371/journal.pone.0249843" document-id-type="doi" document-type="article" id="rel-obj004" link-type="peer-reviewed-article"/>
</front-stub>
<body>
<p>
<named-content content-type="letter-date">30 Mar 2021</named-content>
</p>
<p>PONE-D-21-02517R1 </p>
<p>Determining respiratory rate from photoplethysmogram and electrocardiogram signals using respiratory quality indices and neural networks </p>
<p>Dear Dr. Baker:</p>
<p>I'm pleased to inform you that your manuscript has been deemed suitable for publication in PLOS ONE. Congratulations! Your manuscript is now with our production department. </p>
<p>If your institution or institutions have a press office, please let them know about your upcoming paper now to help maximize its impact. If they'll be preparing press materials, please inform our press team within the next 48 hours. Your manuscript will remain under strict press embargo until 2 pm Eastern Time on the date of publication. For more information please contact <email xlink:type="simple">onepress@plos.org</email>.</p>
<p>If we can help with anything else, please email us at <email xlink:type="simple">plosone@plos.org</email>. </p>
<p>Thank you for submitting your work to PLOS ONE and supporting open access. </p>
<p>Kind regards, </p>
<p>PLOS ONE Editorial Office Staff</p>
<p>on behalf of</p>
<p>Professor Chi-Hua Chen  </p>
<p>Academic Editor</p>
<p>PLOS ONE</p>
</body>
</sub-article>
</article>