Analysis of Respiratory Sinus Arrhythmia with Neural Networks
Summary
This paper introduces a neural network-based approach for estimating respiratory rate from ECG signals by leveraging Respiratory Sinus Arrhythmia. It evaluates different deep learning architectures to automatically extract features, offering a scalable solution for non-invasive monitoring.
View Cached Full Text
Cached at: 09/10/26, 08:23 AM
# Analysis of Respiratory Sinus Arrhythmia with Neural Networks
Source: [https://arxiv.org/html/2609.05698](https://arxiv.org/html/2609.05698)
Julian Szymański[https://orcid.org/0000-0001-5029-6768](https://orcid.org/0000-0001-5029-6768)Affiliation:Gdansk University of Technology, Narutowicza 11/12, 80\-233 Gdansk, PolandE\-mail[\{julian\.szymanski, patryk\.orkisz\}@pg\.edu\.pl](mailto:{julian.szymanski,%20patryk.orkisz}@pg.edu.pl)Patryk Orkisz[https://orcid.org/0009-0008-2272-6423](https://orcid.org/0009-0008-2272-6423)Affiliation:Gdansk University of Technology, Narutowicza 11/12, 80\-233 Gdansk, PolandE\-mail[\{julian\.szymanski, patryk\.orkisz\}@pg\.edu\.pl](mailto:{julian.szymanski,%20patryk.orkisz}@pg.edu.pl)Higinio Mora[https://orcid.org/0000-0002-8591-0710](https://orcid.org/0000-0002-8591-0710)Affiliation:University of Alicante, 03690 San Vicente del Raspeig, Alicante; Spain;E\-mail[hmora@dtic\.ua\.es](mailto:[email protected])
###### Abstract
The paper introduces a neural network\-based approach for analyzing ECG signals to estimate respiratory rate by leveraging the phenomenon of Respiratory Sinus Arrhythmia \(RSA\)\. Our method employs a deep learning model trained to predict respiratory waveforms directly from ECG input data\. To achieve this, we developed and evaluated three different neural network architectures capable of automatically extracting relevant features from ECG signals without the need for manual preprocessing\. The proposed approach offers a robust and scalable solution for non\-invasive respiratory monitoring, with potential applications in healthcare and wearable technology\.
###### Keywords:
Deep Learning Heart Rate Variability Respiratory Sinus Arrhythmia Neural Networks ECG Analysis
## 1Introduction
The variability of vital parameters, such as heart and respiratory rates, is an indicator of overall health\. This variability reflects the body’s ability to proper respond to external stimuli and adaptation to surrounding conditions\. Electrocardiography \(ECG\) is one of the fundamental diagnostic tools for assessing cardiovascular health and is used to identify various conditions, ranging from acute and chronic myocardial injury to cardiac arrhythmias, structural heart disease, and inflammatory processes\.
ECG is not only used to evaluate physical health but also to assess mental well\-being\. This is because the heart is influenced by the sympathetic and parasympathetic branches of the autonomic nervous system \(ANS\)\. ANS regulates the function of various organs, including the endocrine and respiratory systems, in response to states of alertness or relaxation\. By leveraging the complementary nature of these two ANS branches, biomarkers of both physical and mental health can be determined\. Through ECG signal analysis using QRS complex detectors or R\-wave detection, time\-domain metrics of heart rate variability \(HRV\) can be derived\. Additionally, frequency\-domain HRV metrics can be obtained through spectral analysis of the ECG signal using Fourier transform methods\.\[[20](https://arxiv.org/html/2609.05698#bib.bib16)\]\.
Another non\-obvious physiological indicator that can be extracted from an ECG is the respiratory rate\. By analyzing heart rate variability \(HRV\), specifically the time differences between consecutive heartbeats \(known as RR intervals\), ECG\-Derived Respiration \(EDR\) can be obtained\. EDR refers to the extraction of respiratory information from ECG and serves as a noninvasive method for monitoring respiratory activity in cases where direct respiratory signals are not recorded\. This is possible due to the interactions between the cardiovascular and respiratory systems, a phenomenon known as Respiratory Sinus Arrhythmia \(RSA\)\[[23](https://arxiv.org/html/2609.05698#bib.bib12)\]\. RSA is a natural physiological variation in heart rate linked to the phases of respiration\. In a synchronized manner, the intervals between consecutive RR beats fluctuate with the breathing cycle\. This interaction between the two branches of the ANS is mediated by the vagus nerve, which influences heart activity\. During inhalation, vagal activity decreases, causing the heart rate to accelerate\. Conversely, during exhalation, vagal activity increases, leading to a slower heart rate\.
Traditional ECG signal processing algorithms have limitations, such as task\-specific design, manual feature extraction, and sensitivity to noise and patient variability\. Their multi\-stage processes also make them complex and less adaptable\. In contrast, neural network\-based algorithms outperform traditional methods, as demonstrated in numerous studies, by adapting, learning continuously, and handling multiple tasks\. They autonomously identify relevant features, making them more robust to noise and patient variations\. In this research, we propose a neural network algorithm for ECG signal analysis, enabling the estimation of HRV and RSA\. This approach outperforms traditional methods, particularly in noisy conditions, where its effectiveness becomes more apparent\. Additionally, it allows for easy model personalization through the integration of individual patient data\.
The rest of this paper is structured as follows\. Section 2 provides an overview of ECG signal processing methods used for prediction and regression tasks, with a particular focus on deep learning algorithms\. Section 3 presents our approach to processing ECG and respiratory signals, describing in detail the neural network architecture employed for R\-wave detection and nasal cannula signal regression\. Section 4 discusses the performance of the model in detecting R\-wave peaks and examines the results of experiments on respiratory rate prediction\. It also describes the training and testing process of the respiratory regression network and compares the proposed algorithm’s effectiveness with a classical method implemented in the NeuroKit library\. Finally, section 5 summarizes the obtained results and outlines directions for future research\.
## 2ECG Signal Analysis Methods
In ECG signal processing and analysis tasks, three groups of algorithms can be distinguished\[[2](https://arxiv.org/html/2609.05698#bib.bib4)\]—Traditional Algorithms, Machine Learning Algorithms and Deep Learning Algorithms\. Algorithms from these groups are used in tasks such as anomaly detection, classification, or signal delineation—segmentation of cardiac cycles into regions\[[19](https://arxiv.org/html/2609.05698#bib.bib11)\]\.
The first group includes rule\-based methods or traditional signal processing approaches, which involve feature extraction and classification stages for these tasks Typically, the first step is filtering using a filter\-based approach \(low pass, band pass, adaptive, etc\.\)\. Then, time\-domain and morphological features are extracted, usually based on signal windowing algorithms or transforms\. The final step is classification, which uses thresholding\-based algorithms\.
The next group consists of classical machine learning algorithms\.\[[2](https://arxiv.org/html/2609.05698#bib.bib4)\]describes the applications of methods such as Support Vector Machines \(SVM\), Decision Trees, Random Forest, Naïve Bayes, and K\-Nearest Neighbors \(KNN\) in ECG analysis\.
The last group of algorithms employs neural networks\. In the literature, a variety of approaches to ECG analysis using neural networks can be found\[[16](https://arxiv.org/html/2609.05698#bib.bib2)\], using different architectures, starting with those based on dense layers, moving through recurrent and convolutional layers, and ending with transformer architectures\[[12](https://arxiv.org/html/2609.05698#bib.bib1)\]\. In the wide range of applications of neural networks for ECG processing, we have outlined below the approaches related to HRV and EDR analysis\.
In the study\[[17](https://arxiv.org/html/2609.05698#bib.bib5)\], a dense network was used to assess human stress levels based on HRV analysis by selecting reliable HRV features from the time and frequency domains and classifying stress states\. In contrast, the study\[[15](https://arxiv.org/html/2609.05698#bib.bib6)\]implemented a convolutional network with a U\-NET architecture to detect entire QRS complexes and R\-wave peaks\. An enhancement to the classic U\-NET encoder\-decoder architecture was proposed by incorporating spatiotemporal feature extraction blocks\. A less complex architecture was presented in\[[11](https://arxiv.org/html/2609.05698#bib.bib15)\], where two recurrent layers were used to classify ECG signal samples to identify R\-wave peaks\. The study\[[6](https://arxiv.org/html/2609.05698#bib.bib7)\]introduced the HRV\-Transformer model for contactless heart rate measurement using a camera\. To enable real\-time heart rate detection, part of the Transformer decoder architecture was removed\.
In\[[9](https://arxiv.org/html/2609.05698#bib.bib8)\], the authors conducted a comprehensive review of QRS complex and ST\-T segment localization\. They categorized the methods into traditional and Deep Learning approaches and proposed an Ensemble Training\-based algorithm\. They trained two U\-NET\-based models: a convolutional and a recurrent network\.
The literature rarely addresses the respiratory waveform or pattern regression task, especially using end\-to\-end deep learning methods\. In most studies, researchers train models using datasets collected through photoplethysmography \(PPG\) or other biosensors, such as capnography \(which measuresCO2CO\_\{2\}concentration in inhaled and exhaled air\)\. In the paper\[[10](https://arxiv.org/html/2609.05698#bib.bib9)\], the authors used three different datasets: Capnobase, MIMIC\-II, and sEMG—to train and test various neural network architectures designed for the task of predicting respiratory flow using one\-step\-ahead prediction\. Subsequently, the peaks from the predicted impedance signals are extracted by identifying the maximum from a set of extrema points within small signal windows\. In\[[18](https://arxiv.org/html/2609.05698#bib.bib13)\], the authors conducted a literature review on the application of machine learning methods for determining the RR metric, confirming that this is not a widely explored research area\. They proposed an LSTM model and compared its performance with an ARIMA model in the task of respiratory time series forecasting using the BIDMC dataset\. The study\[[3](https://arxiv.org/html/2609.05698#bib.bib14)\]introduced a respiratory rate prediction algorithm that leverages both convolutional and recurrent layers\. Additionally, it presented other architectures such as RRWaveNet, RespWatch, CycleGAN, and RespNet, which utilize convolutional and dense layers or their combination with recurrent layers\. These architectures are characterized by a high number of parameters\. In most cases, existing neural models are employed for RR metric prediction rather than for respiratory waveform regression\.
## 3Neural Model for RSA Analysis
Code \-https://github\.com/patrykcommander/rsa\_analysis
To train a neural network model for regressing ECG signals to respiratory waveforms from a nasal cannula, a dedicated dataset was used, collected using the Aidmed One device by Aidlab\[[1](https://arxiv.org/html/2609.05698#bib.bib17)\]\. This device recorded single\-channel ECG waveforms along with the respiratory signal from the nasal cannula\. Preprocessing is applied to both types of signals, with the ECG preprocessing discussed first\.
Initially, a function that applies convolution to the one\-dimensional ECG signal was used to smooth the signal\. The length of the row vector, determined by the parameterkernel\_length=5kernel\\\_length=5, contained convolution kernel weights, each with a value of1/kernel\_length1/kernel\\\_length\.
The second step was made only for waveforms from our dataset\. The data was annotated using theecg\_peaksfunction from theNeuroKitpackage\. In contrast, the MIT\-BIH and Fantasia datasets already contain pre\-existing annotations\. The WFDB package\[[22](https://arxiv.org/html/2609.05698#bib.bib18)\]was used for processing these public datasets\.
In the next step, the ECG annotations were transformed\. Originally, the annotations were a vector of integers representing the sample indices at which R\-peaks are present\. A new vector, matching the shape of the corresponding ECG, was created, where each sample represents the likelihood of an R\-peak occurring at that position\.
The ECG waveforms and the transformed annotations were then divided into windows of equal duration, set to 10 seconds\. The windowing function included an additional parameter,overlap\_factoroverlap\\\_factor, which defines the degree of overlap between adjacent windows\.
Next, the signal is filtered to remove noise with a wavelet transform\. Then the preprocessed signal window is normalized to the range⟨−1,1⟩\\langle\-1,1\\rangleusing min\-max normalization\. Subsequently, downsampling has been performed for datasets with a sampling frequency greater than 100 Hz\.
The processed data was used for training, validation, and testing of three neural network architectures dedicated to R\-peak detection\. The first is based on recurrent layers\[[11](https://arxiv.org/html/2609.05698#bib.bib15)\], the second on a U\-Net architecture\[[15](https://arxiv.org/html/2609.05698#bib.bib6)\], and the last is designed using a Transformer encoder\. The Transformer\-based model is presented in Fig\.[1](https://arxiv.org/html/2609.05698#S3.F1)\.
CNNnetworkAdd & NormMulti\-HeadAttentionAdd & NormFeedForwardXXN×N\\timesPositionalEncodingLinear layerYYConv 3x1, 8Conv 3x1, 16Conv 3x1, 32XXEmbedding
Figure 1:Our model, based on a Transformer network, used for ECG signal classification\.Three CNN layers are used to increase the number of channels in the ECG input data\. Then, sine and cosine positional encoding is applied\. The Transformer encoder block is created using the following parameters:input\_dim=32input\\\_dim=32,num\_layers=2num\\\_layers=2,num\_heads=4num\\\_heads=4,dim\_feedforward=32dim\\\_feedforward=32,dropout=0\.2dropout=0\.2\. Finally, a linear layer with a sigmoid activation function is applied\.
Using metrics aligned with AAMI standards\[[5](https://arxiv.org/html/2609.05698#bib.bib20)\]and performance criteria, we decide to use in our further research model based on recurrent layers\[[11](https://arxiv.org/html/2609.05698#bib.bib15)\]\.
The last step prepares the data for the model used for respiratory rhythm reconstruction, using the previously trained detector\. It involves extending the input signal with two additional information: RRI \(time intervals between R\-peaks\) and RPA \(amplitudes of R\-peaks\)\. To adjust the dimension of the additional vectors to match the length of the ECG, linear interpolation was applied\. Next, the RRI channel is normalized using min\-max normalization to the range <0, 1\>\. The prepared data, along with the preprocessed respiratory waveforms, were used to design a neural network for respiratory regression\. Fig\.[2](https://arxiv.org/html/2609.05698#S3.F2)shows the result of introducing the additional channels\. This serves as the input data to the neural network\.
Figure 2:ECG waveforms, along with interpolated RRI and RPAFollowing the ECG preprocessing, the respiratory waveform preprocessing is described next\. The data were processed using the NeuroKit and Physio libraries\[[7](https://arxiv.org/html/2609.05698#bib.bib21)\]\[[8](https://arxiv.org/html/2609.05698#bib.bib19)\]\.
Initially, annotations were obtained semi\-automatically, then manually verified and corrected, serving as reference data for testing\.
The next step involves synchronizing the ECG and respiratory signal time series\. If timestamp differences occur at the sequence’s start or end, the signals are trimmed accordingly\.
Then, the entire sequence has been smoothed using a convolution function with a parameterkernel\_length= 100\.
In the next step, the transformation of the respiratory signal annotation vectors and the partition of the resulting time series into smaller windows were performed\. This was done in a similar way to the ECG waveforms\. As a result, windows of the respiratory signal, ECG, respiratory peak annotations, and respiratory cycle annotations were obtained\.
Each of the resulting respiratory windows was processed using a Butterworth band\-pass filter, with cutoff frequencies of 0\.05 Hz and 3 Hz\. The final operation is the transformation using thelog\_softmaxfunction, which ensures the appropriate value range for the loss function criterion used in the model\.
Figure 3:Respiratory signal annotationsFig\.[3](https://arxiv.org/html/2609.05698#S3.F3)shows an example of a window from the cannula signal after initial preprocessing\. In the first plot, the signal peaks, obtained using the NeuroKit library, are marked in red\. Then, using the Physio tool, the exhalation and inhalation phases are marked in light blue and purple, respectively, while the dark green points represent the average values of the exhalation and inhalation indices\.
The prepared in such a way dataset was filtered to remove signal windows in which the maximum respiratory frequency was below 9 breaths per minute\. This step is associated with limiting the RSA phenomenon\[[4](https://arxiv.org/html/2609.05698#bib.bib3)\]\. Typically, RSA is strongly related to the high\-frequency band \(HF\), which corresponds to a breathing rate of approximately 9\-24 breaths per minute\[[13](https://arxiv.org/html/2609.05698#bib.bib22)\]\. However, when the breathing rate exceeds a certain threshold, the RSA amplitude starts to decrease\. At breathing frequencies above around 0\.12 Hz \(approximately 7\.2 breaths per minute\), RSA starts vanishing\. With very fast breaths, such as during hyperventilation, the heart stops dynamically responds to the respiratory cycle, and RSA may become inconsistent\[[14](https://arxiv.org/html/2609.05698#bib.bib23)\]\. This indicates that there is a point at which the heart stops responding to respiration\.
Our model for respiratory regression from electrocardiographic data is presented in Fig\.[4](https://arxiv.org/html/2609.05698#S3.F4)\. It consists of two bidirectional LSTM layers, two linear layers, a single normalization layer, and a single interpolation layer, which was introduced to account for the nonidentical sampling frequencies of the ECG and respiratory signals\. The model was trained using our preprocessed dataset, with a nominal sampling frequency\. Initially, a weighted sum of the absolute error criterion \(L1L1\) and the normalized cross\-correlation \(NCCNCC\) coefficient was used as the loss function\. However, the best training results in the experiments were achieved using the Kullback\-Leibler \(DKLD\_\{KL\}\) divergence criterion in combination with the absolute error \(Formula[1](https://arxiv.org/html/2609.05698#S3.E1)\) , whereℒ\\mathcal\{L\}\- loss function,yy\- target,ypredy\_\{pred\}\- regression,α=0\.9\\alpha=0\.9,PP\- probability distribution of the ground truth,QQ\- probability distribution of the regression\.
ℒ\(y,ypred\)\\displaystyle\\mathcal\{L\}\(y,y\_\{\\text\{pred\}\}\)=\(1−α\)⋅L1\(y,ypred\)\+α⋅DKL\(P∥Q\)\\displaystyle=\(1\-\\alpha\)\\cdot L1\(y,y\_\{\\text\{pred\}\}\)\+\\alpha\\cdot D\_\{\\text\{KL\}\}\(P\\parallel Q\)\(1\)
XXBidirectional LSTMLayer normalizationLinear layerInterpolation layerBidirectional LSTMLinear layerYYParameters:input\_size==3hidden\_size==64dropout==0,6normalized\_shape==128in\_features==128out\_freatures==64interpolate\_ratio==0,2mode==’linear’input\_size==64hidden\_size==64in\_features==128out\_freatures==1
Figure 4:Our neural model for respiratory rhythm regression based on ECG signal
## 4Experiments and results discussion
We start the experiments with training a recurrent neural network, which has been used as an R\-wave peak detector\. We use for this the public MIT\-BIH dataset, followed by an evaluation of the model’s generalizability on the data sets: Fantasia and our obtained form Aidmed ECG\. The network achieved the following quality metrics: On the Fantasia dataset:acc=0\.999acc=0\.999,F1=0\.989F1=0\.989On our dataset:acc=0\.998acc=0\.998,F1=0\.968F1=0\.968These results indicate a high generalization capability of the model\. The detector was then used to increase the number of channels of the training data for the respiratory regression model\.
The respiratory regression model was trained for 30 epochs with a batch size parameter ofbatch\_size=32batch\\\_size=32\. The training dataset consisted of signal windows of 60s length, where the respiratory rate ranged within<6,9\><6,9\>breaths per minute \(BPM\)\. The Adam algorithm was used with a hyperparameter oflr=1e−3lr=1e\-3, alearning schedulerMultiStepLR with parametersstep\_size=15step\\\_size=15andγ=0\.1\\gamma=0\.1, and early stopping settings ofpatience=3patience=3,min\_delta=1e−5min\\\_delta=1e\-5\. However, the training time was not shortened\. In the final epoch, the model achieved NCC metric values of0\.9380\.938for the training data and0\.94360\.9436for the validation data\.
Fig\.[5](https://arxiv.org/html/2609.05698#S4.F5)presents an example from the last training epoch, illustrating the performance of our algorithm\. The first signal shows the model’s input data, consisting of normalized ECG, RRI, and RPA channels\. The second signal visualizes the normalized respiratory and regression values, along with the cycle separation points for these signals\.
Figure 5:Example of respiratory rate prediction based on ECG signalThe tests were conducted using signal windows of 180s in length, with a constant breathing frequency, as well as two samples of 235s in length with mixed breathing frequencies\. Three subsets were extracted from the dataset with a constant respiratory rate \(RR\): 12 examples with low RR \(<4,6\><4,6\>BPM\), 21 examples with medium RR \(<7,11\><7,11\>BPM\), and 8 examples with high RR \(<12,∞\><12,\\infty\>BPM\)\.
Table[1](https://arxiv.org/html/2609.05698#S4.T1)summarizes the metric values used to evaluate the quality of the designed neural model\. The metric "total waveforms duration" describes the total duration of waveforms for each test subset, "average loss function" refers to the loss function for the criterion described in[1](https://arxiv.org/html/2609.05698#S3.E1), "average NCC" represents the mean normalized cross\-correlation score, and "average RPE" is the mean relative percentage error\. The latter is computed between the normalized reference and regression values in the range<−1,1\><\-1,1\>using the formula[2](https://arxiv.org/html/2609.05698#S4.E2)\.
RPE=∑i=1N\|ypred\(i\)−ytrue\(i\)\|∑i=1N\|ytrue\(i\)\|\+ϵ×100\\text\{RPE\}=\\frac\{\\sum\_\{i=1\}^\{N\}\|y\_\{\\text\{pred\}\}^\{\(i\)\}\-y\_\{\\text\{true\}\}^\{\(i\)\}\|\}\{\\sum\_\{i=1\}^\{N\}\|y\_\{\\text\{true\}\}^\{\(i\)\}\|\+\\epsilon\}\\times 100\(2\)
Table 1:Test metric values within different ranges of BPMNext, we use theNeuroKitpackage to compare the performance of the developed algorithm with a classical approach\. The functionnk\.ecg\_rspwas used, which implements the Van Gent algorithm\[[21](https://arxiv.org/html/2609.05698#bib.bib10)\]to estimate respiratory rhythm\.
Table[2](https://arxiv.org/html/2609.05698#S4.T2)presents a numerical comparison of the quality of the obtained EDR\. The best values of the NCC and L1 metrics are highlighted in bold\.
Table 2:Comparison of our algorithm \(neural\) with NeuroKitAs it can be seen from the results presented in Table[2](https://arxiv.org/html/2609.05698#S4.T2), our neural network architecture performs respiratory waveform regression with significantly higher accuracy compared to the classical algorithm\. For 3 out of 4 test subsets, the model achieved better average L1 and NCC metrics\. The neural network exhibited lower regression accuracy only for high\-frequency waveforms, which is a consequence of the training methodology\. Due to information found in publications regarding the RSA phenomenon, training examples were limited, as described in Section[3](https://arxiv.org/html/2609.05698#S3)\. At breathing frequencies above around 0\.12 Hz \(approximately 7\.2 breaths per minute\), RSA starts vanishing\. With very fast breaths, such as during hyperventilation, the heart stops dynamically responds to the respiratory cycle, and RSA may become inconsistent\[[14](https://arxiv.org/html/2609.05698#bib.bib23)\]\.
## 5Conclusions and future works
The paper describes a neural algorithm for reconstructing respiratory waveforms based on the ECG signal while leveraging the RSA phenomenon\. The use of a recurrent network for R\-wave peak detection enabled the incorporation of additional information into the single\-channel input data, allowing for the training of an effective neural algorithm\. The analysis of experimental results indicated the superiority of the proposed method over the classical algorithm in terms of regression accuracy, as confirmed by the obtained metrics\.
Due to the decreasing correlation between breathing and heart rhythm at high RR values, the training data range was limited to respiratory frequencies between 6 and 9 breaths per minute\. However, testing was conducted on samples representing the full BPM range <4,∞\\infty\>\. As a result, the model’s performance deteriorated for extreme values outside the training range\. In future research, we plan to train the neural model using an unfiltered dataset that includes a broader range of samples to improve its generalization\. Experimental results confirmed the model’s effectiveness within the medium BPM range\. For lower respiratory frequencies, a significant drop in accuracy was observed, which may be caused by increased noise in the RRI channel and the small number of training examples representing this range\. A particularly noticeable drop in performance occurred for data with very high RR values, which is associated with a significant vanishing of the RSA phenomenon and reduced variability in the RRI signal\. It is worth noting that the physiological distribution of respiratory frequencies in humans can significantly impact the performance of general models, thus adding personalization to the model training may increase its performance\. In addition, we plan to expand the algorithm to use data from wearable devices and include signals with low and high respiratory frequencies\. We also aim to define a personal heart rate sensitivity threshold to breathing frequency and analyze the impact of factors like gender and age\. Since this threshold may vary daily, we also plan to identify predictive factors based on the subject’s condition\. Specifically, we intend to assess ANS branches activity using measurements of eyes activity \(e\.g\., saccadic movements, pupil dilation\) or EEG signals, which should enable the prediction of these threshold variations\.
## Acknowledgments
The work was founded partially by the Gdańsk University of Technology Grant Americium 3/1/2024/IDUB/II\.1b/Am\. The authors would like to thank Aidmed company \(https://www\.aidmed\.ai\) for providing devices for the experiments\.
## References
- \[1\]Aidlab designs wearables for researchers, physicians, and developers\.Note:https://www\.aidlab\.com/\[Accessed: 04\.02\.2025\]Cited by:[§3](https://arxiv.org/html/2609.05698#S3.p2.1)\.
- \[2\]V\. A\. Ardeti, V\. R\. Kolluru, G\. T\. Varghese, and R\. K\. Patjoshi\(2023\)An overview on state\-of\-the\-art electrocardiogram signal processing methods: traditional to ai\-based approaches\.Expert Systems with Applications217,pp\. 119561\.External Links:ISSN 0957\-4174Cited by:[§2](https://arxiv.org/html/2609.05698#S2.p1.1),[§2](https://arxiv.org/html/2609.05698#S2.p3.1)\.
- \[3\]W\. J\. Chin, B\. Kwan, W\. Y\. Lim, Y\. K\. Tee, S\. Darmaraju, H\. Liu, and C\. Goh\(2024\)A novel respiratory rate estimation algorithm from photoplethysmogram using deep learning model\.Diagnostics14\(3\)\.External Links:ISSN 2075\-4418Cited by:[§2](https://arxiv.org/html/2609.05698#S2.p7.1)\.
- \[4\]J\. W\. Denver, S\. F\. Reed, and S\. W\. Porges\(2007\)Methodological issues in the quantification of respiratory sinus arrhythmia\.Biological psychology74\(2\),pp\. 286–294\.Cited by:[§3](https://arxiv.org/html/2609.05698#S3.p19.1)\.
- \[5\]A\. for the Advancement of Medical Instrumentation\(2012\)Testing and reporting performance results of cardiac rhythm and st\-segment measurement algorithms\.ANSI Webstore\.Cited by:[§3](https://arxiv.org/html/2609.05698#S3.p10.1)\.
- \[6\]C\. Geng, C\. Wang, X\. Sun, M\. Liu, and H\. Song\(2023\)HRV\-transformer: transformer\-based non\-contact heart rate detection\.In2023 35th Chinese Control and Decision Conference \(CCDC\),Vol\.,pp\. 2392–2397\.Cited by:[§2](https://arxiv.org/html/2609.05698#S2.p5.1)\.
- \[7\]V\. Ghibaudo, J\. Granget, M\. Dereli, N\. Buonviso, and S\. Garcia\(2023\)A unifying method to study respiratory sinus arrhythmia dynamics implemented in a new toolbox\.eNeuro10\(10\)\.Cited by:[§3](https://arxiv.org/html/2609.05698#S3.p12.1)\.
- \[8\]A\. Goldberger, L\. Amaral, L\. Glass, J\. Hausdorff, P\. C\. Ivanov, R\. Mark, J\. E\. Mietus, G\. B\. Moody, C\. K\. Peng, and H\. E\. Stanley\(2000\)PhysioBank, physiotoolkit, and physionet: components of a new research resource for complex physiologic signals\.Circulation101\(23\),pp\. e215–e220\.Note:\[Online\]Cited by:[§3](https://arxiv.org/html/2609.05698#S3.p12.1)\.
- \[9\]C\. Han, W\. Que, S\. Wang, J\. Zhang, J\. Zhao, and L\. Shi\(2022\)QRS complexes and t waves localization in multi\-lead ecg signals based on deep learning and electrophysiology knowledge\.Expert Systems with Applications199,pp\. 117187\.External Links:ISSN 0957\-4174Cited by:[§2](https://arxiv.org/html/2609.05698#S2.p6.1)\.
- \[10\]A\. K\. Kumar, M\. Ritam, L\. Han, S\. Guo, and R\. Chandra\(2022\)Deep learning for predicting respiratory rate from biosignals\.Computers in Biology and Medicine144,pp\. 105338\.External Links:ISSN 0010\-4825Cited by:[§2](https://arxiv.org/html/2609.05698#S2.p7.1)\.
- \[11\]J\. Laitala, M\. Jiang, E\. Haulivuori, E\. Kasaeyan Naeini, A\. Airola, A\. M\. Rahmani, N\. Dutt, and P\. Liljeberg\(2020\)Robust ecg r\-peak detection using lstm\.InProceedings of the 35th annual ACM symposium on applied computing,pp\. 1104–1111\.Cited by:[§2](https://arxiv.org/html/2609.05698#S2.p5.1),[§3](https://arxiv.org/html/2609.05698#S3.p10.1),[§3](https://arxiv.org/html/2609.05698#S3.p8.1)\.
- \[12\]X\. Liu, H\. Wang, Z\. Li, and L\. Qin\(2021\)Deep learning in ecg diagnosis: a review\.Knowledge\-Based Systems227,pp\. 107187\.Cited by:[§2](https://arxiv.org/html/2609.05698#S2.p4.1)\.
- \[13\]S\. Nagarajan\(2014\)Heart rate variability during breathing at 0\.1 hz frequency in the standing position\.IOSR Journal of Dental and Medical Sciences13,pp\. 45–47\.Cited by:[§3](https://arxiv.org/html/2609.05698#S3.p19.1)\.
- \[14\]K\. Niizeki and T\. Saitoh\(2012\)Incoherent oscillations of respiratory sinus arrhythmia during acute mental stress in humans\.American journal of physiology\. Heart and circulatory physiology302,pp\. H359–67\.Cited by:[§3](https://arxiv.org/html/2609.05698#S3.p19.1),[§4](https://arxiv.org/html/2609.05698#S4.p9.1)\.
- \[15\]X\. Peng, H\. Zhu, X\. Zhou, C\. Pan, and Z\. Ke\(2023\)ECG signals segmentation using deep spatiotemporal feature fusion u\-net for qrs complexes and r\-peak detection\.IEEE Transactions on Instrumentation and Measurement72\(\),pp\. 1–12\.Cited by:[§2](https://arxiv.org/html/2609.05698#S2.p5.1),[§3](https://arxiv.org/html/2609.05698#S3.p8.1)\.
- \[16\]G\. Petmezas, L\. Stefanopoulos, V\. Kilintzis, A\. Tzavelis, J\. A\. Rogers, A\. K\. Katsaggelos, and N\. Maglaveras\(2022\)State\-of\-the\-art deep learning methods on electrocardiogram data: systematic review\.JMIR medical informatics10\(8\),pp\. e38454\.Cited by:[§2](https://arxiv.org/html/2609.05698#S2.p4.1)\.
- \[17\]Z\. Qin, M\. Li, L\. Huang, and Y\. Zhao\(2017\)Stress level evaluation using bp neural network based on time\-frequency analysis of hrv\.In2017 IEEE International Conference on Mechatronics and Automation \(ICMA\),Vol\.,pp\. 1798–1803\.Cited by:[§2](https://arxiv.org/html/2609.05698#S2.p5.1)\.
- \[18\]F\. Rodrigues, J\. Pereira, A\. Torres, and A\. Madureira\(2024\)Deep learning for predicting respiratory rate from physiological signals\.Procedia Computer Science237,pp\. 759–766\.Note:International Conference on Industry Sciences and Computer Science InnovationExternal Links:ISSN 1877\-0509Cited by:[§2](https://arxiv.org/html/2609.05698#S2.p7.1)\.
- \[19\]M\. A\. Serhani, H\. T\. El Kassabi, H\. Ismail, and A\. Nujum Navaz\(2020\)ECG monitoring systems: review, architecture, processes, and key challenges\.Sensors20\(6\),pp\. 1796\.Cited by:[§2](https://arxiv.org/html/2609.05698#S2.p1.1)\.
- \[20\]F\. Shaffer and J\. P\. Ginsberg\(2017\)An overview of heart rate variability metrics and norms\.Frontiers in public health5,pp\. 258\.Cited by:[§1](https://arxiv.org/html/2609.05698#S1.p2.1)\.
- \[21\]P\. Van Gent, H\. Farah, N\. Van Nes, and B\. Van Arem\(2019\)HeartPy: a novel heart rate algorithm for the analysis of noisy signals\.Transportation research part F: traffic psychology and behaviour66,pp\. 368–378\.Cited by:[§4](https://arxiv.org/html/2609.05698#S4.p7.1)\.
- \[22\]C\. Xie, L\. McCullum, A\. Johnson, T\. Pollard, B\. Gow, and B\. Moody\(2023\)Waveform database software package \(wfdb\) for python\.Note:PhysioNetCited by:[§3](https://arxiv.org/html/2609.05698#S3.p4.1)\.
- \[23\]F\. Yasuma and J\. Hayano\(2004\)Respiratory sinus arrhythmia: why does the heartbeat synchronize with respiratory rhythm?\.Chest125\(2\),pp\. 683–690\.Cited by:[§1](https://arxiv.org/html/2609.05698#S1.p3.1)\.Similar Articles
Deep Learning Approaches for Sleep Apnea Classification from Polysomnographic EEG Signals
This paper presents a comprehensive comparison of deep learning architectures, including Vision Transformers and Graph Attention Networks, for automated sleep apnea detection from multichannel EEG signals, achieving a best test AUC of 0.750 using a vision transformer trained on topological data analysis features.
DeepArrhythmia: Segment-Contextualized ECG Arrhythmia Classification via Selective Evidence Acquisition
DeepArrhythmia is a multimodal framework for beat-level ECG arrhythmia classification that combines raw ECG signals and waveform images, using segment-level confidence to selectively acquire physiological evidence for improved accuracy.
Quantifying Explainable AI-introduced signal noise on ECG data with Spectral Entropy
The paper proposes using spectral entropy as a metric to quantify noise introduced by explainability techniques in ECG arrhythmia classification, helping to distinguish true model signal from XAI-generated artifacts.
Recurrent Sinusoidal INRs for Efficient High-Fidelity Representation
This paper introduces a recurrent sinusoidal architecture for implicit neural representations that achieves higher fidelity with fewer parameters and optimization steps by exploiting harmonic line spectrum enrichment through sinusoidal recurrence.
HRVConformer: Neonatal Hypoxic-Ischemic Encephalopathy Classification from the Heart Rate signals
This paper introduces HRVConformer, a hybrid Convolution-Transformer architecture for classifying neonatal hypoxic-ischemic encephalopathy directly from raw heart rate signals, achieving an AUC of 83.23% and outperforming baseline models like ResNet50 and Transformer.