arXiv:2609.05698cs.LGSep 2026

Manuscript Offprint

arXiv:2609.05698

Analysis of Respiratory Sinus Arrhythmia with Neural Networks

Julian Szymanski, Patryk Orkisz, Higinio Mora

Julian Szymański¹[0000-0001-5029-6768],

Patryk Orkisz¹[0009-0008-2272-6423],

Higinio Mora²[0000-0002-8591-0710]

¹ Gdansk University of Technology,

Narutowicza 11/12, 80-233 Gdansk, Poland

{julian.szymanski, patryk.orkisz}@pg.edu.pl

² University of Alicante,

03690 San Vicente del Raspeig, Alicante; Spain;

hmora@dtic.ua.es

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

1 Introduction

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].

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]. 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.

References (22)