High altitude disease risk early identification method and system fusing dynamic changes of heart-lung function
By collecting and analyzing electrocardiogram signals, respiratory signals, and environmental data, a multidimensional feature vector was constructed and a deep learning model was used to solve the problem of not capturing dynamic coupling changes in lung function in the high altitude disease risk assessment center, thus achieving accurate identification and early warning of early risks.
Patent Information
- Application Number
- CN202611212786.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-11
- Publication Date
- 2026-11-27
AI Technical Summary
Existing methods for assessing the risk of high altitude diseases do not fully consider the dynamic coupling changes in cardiopulmonary function, leading to delayed or misjudgment of early risk identification. In particular, the synergistic relationship between cardiac compensatory response and respiratory function changes in high-altitude hypoxic environments has not been effectively captured.
By collecting continuous electrocardiogram and respiratory signals, combined with environmental air pressure and blood oxygen saturation data, a multidimensional feature vector sequence is constructed. Using a nonlinear state-space projection model and a long short-term memory network model with multi-head self-attention mechanism, the risk of altitude sickness can be identified in real time.
It enables sensitive identification of early risks of altitude sickness, improves the sensitivity and specificity of risk prediction, reduces the false alarm rate, and can detect potential early signs of altitude sickness at an earlier stage.
Smart Images

Figure CN123166594A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of early warning technology for altitude sickness, and more specifically, to a method and system for early identification of altitude sickness risk that integrates dynamic changes in cardiopulmonary function. Background Technology
[0002] Currently, cloud-based human physiological indicator monitoring technology has made some progress in the field of respiratory health management. For example, patent document CN120514364A discloses a cloud-based human respiratory indicator monitoring and management method and system. This method collects indicators such as the user's respiratory rate and depth, sets initial thresholds based on physiological characteristics such as age, gender, and health status, and uses density clustering and multivariate regression to dynamically and adaptively adjust the respiratory indicators. It also incorporates environmental parameters such as temperature, humidity, and air quality to establish a correlation model for detecting and warning of respiratory abnormalities. However, this type of method mainly focuses on feature extraction and threshold optimization of the respiratory signal itself, without fully considering the dynamic coupling changes between the cardiopulmonary system. Especially in high-altitude hypoxic environments, there is a close physiological coupling relationship between cardiac compensatory responses (such as heart rate variability and cardiac output adjustment) and changes in respiratory function. Relying solely on respiratory indicators is insufficient to accurately identify the early risks of high-altitude diseases (such as acute mountain sickness and high-altitude pulmonary edema), because changes in cardiopulmonary function in high-altitude environments are often synergistic and non-linear. Early abnormalities may first manifest as subtle changes in cardiopulmonary coupling characteristics, rather than significant deviations in a single respiratory indicator.
[0003] To address the aforementioned technical limitations, existing methods for assessing altitude sickness risk largely rely on static physiological parameters (such as blood oxygen saturation and heart rate) or subjective symptom scores (such as the Lake Louise scoring system), lacking continuous monitoring and fusion analysis of the dynamic coupling process of cardiopulmonary function. On the one hand, static indicators struggle to capture the compensatory evolution trajectory of the body under hypoxic stress, easily leading to delayed or misjudgments in risk identification. On the other hand, existing dynamic monitoring technologies fail to effectively integrate time-series data from both the cardiopulmonary and cardiovascular systems, lacking modeling methods to reveal the development patterns of altitude sickness from the perspective of dynamic characteristics such as cardiopulmonary coupling strength and phase synchronicity. Therefore, how to construct a high-dimensional feature system integrating dynamic changes in cardiopulmonary function based on real-time cardiopulmonary signals collected by wearable devices or cloud platforms, and how to establish an early identification model for altitude sickness risk through adaptive learning mechanisms, has become a pressing technical challenge in the interdisciplinary field of altitude medicine and smart healthcare. Summary of the Invention
[0004] The purpose of this invention is to provide a method and system for early identification of altitude sickness risk that integrates dynamic changes in cardiopulmonary function, aiming to solve the problem that existing altitude sickness risk assessment methods do not fully consider the dynamic coupling changes in cardiopulmonary function, leading to delayed or misjudged early risk identification.
[0005] This invention is achieved through the following technical solution: A method for early identification of altitude sickness risk that integrates dynamic changes in cardiopulmonary function includes the following steps: The system collects continuous electrocardiogram and respiratory signals of the target user in a high-altitude environment, and simultaneously collects ambient air pressure data and the target user's real-time blood oxygen saturation data. R-wave localization was performed on continuous electrocardiogram signals, heart rate interval sequences were extracted, and the time-domain, frequency-domain, and nonlinear entropy characteristics of heart rate variability were calculated. Based on continuous respiratory signals, the corresponding respiratory cycle sequence, respiratory amplitude variation coefficient, and respiratory rate trend component were extracted. Based on the beat-by-beat heart rate interval sequence and respiratory cycle sequence, a time-frequency domain cardiopulmonary coupling strength index and a cardiopulmonary phase synchronization index are calculated; wherein, the time-frequency domain cardiopulmonary coupling strength index is the coherence coefficient between the power spectral density of the heart rate interval and the power spectral density of the respiratory signal within the respiratory frequency band; the cardiopulmonary phase synchronization index is the phase lock value between the instantaneous phase of the heart rate interval and the instantaneous phase of the respiratory signal. The time-domain features, frequency-domain features, and nonlinear entropy features of heart rate variability, the coefficient of variation of respiratory amplitude, the trend component of respiratory frequency, the time-frequency domain cardiopulmonary coupling strength index, the cardiopulmonary phase synchronization index, the real-time blood oxygen saturation data, and the ambient air pressure data are constructed into a multidimensional feature vector sequence. The multidimensional feature vector sequence is segmented by a sliding window with a fixed window length and a fixed step size to form a high-dimensional feature time series that reflects the dynamic evolution of cardiopulmonary function. A high-dimensional feature time series is input into a pre-trained nonlinear state-space projection model, which outputs a low-dimensional latent variable sequence; wherein, the low-dimensional latent variable sequence represents the continuous dynamic change pattern of an individual's cardiopulmonary compensation trajectory under hypoxia exposure. The current low-dimensional latent variable sequence is input into a long short-term memory network model based on a multi-head self-attention mechanism, and the model outputs the current altitude sickness risk probability value; wherein, the long short-term memory network model is trained with sample data to fit the mapping relationship between the low-dimensional latent variable sequence and the altitude sickness risk level. When the probability value of altitude sickness risk is greater than or equal to the preset risk judgment threshold for N consecutive time steps, an early warning signal for altitude sickness is triggered.
[0006] Optionally, the specific process of collecting continuous electrocardiogram and respiratory signals of the target user in a high-altitude environment, and simultaneously collecting ambient air pressure data and the target user's real-time blood oxygen saturation data is as follows: The system collects continuous ECG signals of the target user in a high-altitude environment using a wearable ECG sensor at a first preset sampling frequency; it simultaneously collects continuous respiratory signals of the target user using a respiratory-sensing surface chromatograph at a second preset sampling frequency; it simultaneously records ambient air pressure data using a barometric pressure sensor; and it simultaneously records real-time blood oxygen saturation data of the target user using a fingertip pulse oximeter. The same timestamp reference is added to the continuous electrocardiogram signal, the continuous respiratory signal, the ambient air pressure data and the real-time blood oxygen saturation data to obtain a physiological and environmental dataset. The sliding window mid-range filter is applied to the data of each channel in the physiological and environmental dataset to remove baseline drift and motion artifacts, and abnormal data points exceeding the preset amplitude range or preset gradient range are removed to obtain continuous electrocardiogram signal, continuous respiratory signal, environmental air pressure data sequence and real-time blood oxygen saturation data sequence after synchronization alignment and noise reduction processing.
[0007] Optionally, the specific process of performing R-wave localization on continuous electrocardiogram signals, extracting beat-by-beat heart rate interval sequences, and calculating the time-domain, frequency-domain, and nonlinear entropy characteristics of heart rate variability is as follows: For the continuous ECG signal after synchronization alignment and denoising, a joint detection algorithm based on second derivative and adaptive amplitude threshold is used to identify the R wave peak position, extract the time interval between adjacent R wave peak positions, and form the original beat-by-beat heart rate interval sequence. Ectopic heartbeat identification and removal operations are performed on the original beat-by-beat heart rate interval sequence. Heart rate intervals that exceed the preset median threshold range of the preceding adjacent intervals are marked as abnormal intervals and deleted. The deleted intervals are filled by linear interpolation of the preceding and following normal intervals to obtain the corrected beat-by-beat heart rate interval sequence. Based on the corrected beat-by-beat heart rate interval sequence, the standard deviation of all normal intervals and the root mean square of the difference between adjacent normal intervals are calculated as the temporal characteristics of heart rate variability. Based on the corrected beat-by-beat heart rate interval sequence, the Lomb-Scargle periodogram method is used to calculate the corresponding power spectral density integral values in the preset low-frequency band and preset high-frequency band, respectively, to obtain the low-frequency power and high-frequency power, and the ratio of low-frequency power to high-frequency power is calculated as the frequency domain feature of heart rate variability. Based on the length of the corrected beat-by-beat heart rate interval sequence, the embedding dimension and similarity tolerance are adaptively determined, and the sample entropy value is calculated as a nonlinear entropy feature of heart rate variability; wherein, the sample entropy value characterizes the degree of dynamic change in complexity and regularity of the beat-by-beat heart rate interval sequence under high-altitude hypoxia exposure.
[0008] Optionally, the specific process of extracting the corresponding respiratory cycle sequence, respiratory amplitude variation coefficient, and respiratory frequency trend component based on the continuous respiratory signal is as follows: For the continuous respiratory signal after synchronization alignment and noise reduction, a joint recognition algorithm based on zero-crossing detection and peak and trough localization is used to mark the inspiratory start point and expiratory end point cycle by cycle, and the time interval between adjacent inspiratory start points is calculated to form the original respiratory cycle sequence. An abnormal cycle removal operation is performed on the original respiratory cycle sequence. Respiratory cycles that exceed the preset multiple threshold range of the sliding median of the respiratory cycle are marked as abnormal cycles and deleted. Cubic spline interpolation is used to fill in the positions of the deleted cycles to obtain the corrected respiratory cycle sequence. The instantaneous respiratory rate sequence is calculated based on the corrected respiratory cycle sequence. Singular spectrum analysis is performed on the instantaneous respiratory rate sequence to decompose it into trend component, oscillation component and noise component. The trend component is extracted as the respiratory rate trend component. The respiratory rate trend component represents the long-term adaptive drift trajectory of the body's respiratory rhythm under high-altitude hypoxia exposure. Based on the continuous respiratory signal after synchronization alignment and noise reduction, the peak amplitude of inspiratory air and the trough amplitude of expiratory air are extracted in each respiratory cycle. The difference between the peak amplitude of inspiratory air and the trough amplitude of expiratory air in each respiratory cycle is taken as the respiratory amplitude of each respiratory cycle, and a respiratory amplitude sequence is generated. The ratio of the standard deviation to the mean of the respiratory amplitude sequence is calculated as the respiratory amplitude variation coefficient; wherein, the respiratory amplitude variation coefficient characterizes the dynamic change in the degree of fluctuation of respiratory driving force under high-altitude hypoxia stress.
[0009] Optionally, the specific process for calculating the time-frequency domain cardiopulmonary coupling strength index and cardiopulmonary phase synchronicity index based on the beat-by-beat heart rate interval sequence and respiratory cycle sequence is as follows: The corrected beat-by-beat heart rate interval sequence and the corrected respiratory cycle sequence were subjected to cubic spline interpolation at equal intervals, and then resampled to a preset uniform frequency to obtain the resampled heart rate interval signal and the resampled respiratory signal. Continuous wavelet transforms were performed on the resampled heart rate interval signal and the resampled respiratory signal to generate the heart rate interval time spectrum matrix and the respiratory signal time spectrum matrix, respectively. The frequency trajectory corresponding to the maximum energy value at each moment is extracted from the respiratory signal time spectrum matrix as the main respiratory frequency trajectory. The dynamic respiratory frequency band range is determined with the main respiratory frequency trajectory as the center and according to the preset frequency band width. Within the dynamic respiratory frequency band, the wavelet coherence coefficients of the heart rate interval time spectrum matrix and the respiratory signal time spectrum matrix are calculated time by time, and the absolute value of the wavelet coherence coefficients is taken as the time-frequency domain cardiopulmonary coupling strength index. Hilbert transform was performed on the resampled heart rate interval signal and the resampled respiratory signal respectively to extract the instantaneous phase sequence of the heart rate interval and the instantaneous phase sequence of the respiratory signal; Calculate the mean sine and cosine components of the phase difference between the instantaneous phase of the heart rate interval and the instantaneous phase of the respiratory signal within a preset sliding time window, and use the square root of the sum of the squares of the mean sine and cosine components as an indicator of cardiopulmonary phase synchronicity.
[0010] Optionally, the specific construction process of the nonlinear state-space projection model is as follows: Obtain historical multidimensional feature vector sequences of multiple sample users under different plateau exposure durations, and divide each historical multidimensional feature vector sequence into a historical high-dimensional feature time series according to the fixed window length and the fixed step size; Each feature dimension contained in all historical high-dimensional feature time series is standardized to obtain a set of standardized high-dimensional feature time series. A kernel principal component analysis model with radial basis functions as kernel functions is constructed. The standardized high-dimensional feature time series set is used as input to solve for the eigenvalues and eigenvectors of the kernel matrix. The number of principal components to be retained is determined according to the cumulative variance contribution rate threshold. The number of retained principal components is used as the preset dimension of the low-dimensional latent variables. Based on the number of principal components retained and their corresponding eigenvectors, a nonlinear projection mapping relationship is established from the standardized high-dimensional feature space to the low-dimensional latent variable space; The kernel function type, kernel function parameters, normalization parameters, and nonlinear projection mapping relationship are saved as parameters for the nonlinear state-space projection model, thus completing the model construction.
[0011] Optionally, the specific construction process of the long short-term memory network model based on the multi-head self-attention mechanism is as follows: Obtain historical low-dimensional latent variable sequences and corresponding altitude sickness risk level labels of multiple sample users during their exposure to high altitudes to form a training sample set; A sliding window is used to extract each historical low-dimensional latent variable sequence to generate an input tensor with a fixed time step, and the input tensor is divided into a training subset and a validation subset according to the time series. A neural network model consisting of a multi-head self-attention layer and a long short-term memory network layer is constructed. The multi-head self-attention layer is used to extract the global dependencies between different time steps within the low-dimensional latent variable sequence, and the long short-term memory network layer is used to capture the forward dependency features of the low-dimensional latent variable sequence along the time axis. The input tensors in the training subset are passed sequentially through a multi-head self-attention layer and a long short-term memory network layer to obtain a hidden state sequence. The hidden state vector at the last time step of the hidden state sequence is taken and mapped through a fully connected layer and an activation function to output the probability value of altitude sickness at the current time. The error between the probability value of altitude sickness risk and the true risk level label is measured by the binary cross-entropy loss function, and the network weight parameters are iteratively updated by the time-based backpropagation algorithm. Training is terminated when the loss function value of the validation subset does not decrease within a preset number of consecutive rounds, and the network weight parameters are saved as parameters of the long short-term memory network model.
[0012] Based on the same inventive concept, this invention also provides an early risk identification system for altitude sickness that integrates dynamic changes in cardiopulmonary function, used to implement the aforementioned method for early risk identification of altitude sickness that integrates dynamic changes in cardiopulmonary function, comprising: The multi-source signal synchronous acquisition module is used to synchronously acquire the target user's continuous electrocardiogram signal, continuous respiratory signal, ambient air pressure data and real-time blood oxygen saturation data in a high-altitude environment. After attaching a unified timestamp reference to the data of each channel, it performs sliding window mid-range filtering and outlier removal, and outputs a physiological and environmental data sequence that has been synchronized, aligned and denoised. The physiological feature extraction module has its input end connected to the output end of the multi-source signal synchronous acquisition module. It is used to perform R-wave localization and ectopic heartbeat removal on continuous electrocardiogram signals, extract the beat-by-beat heart rate interval sequence, and calculate the time-domain, frequency-domain, and nonlinear entropy features of heart rate variability. At the same time, it performs respiratory cycle segmentation and abnormal cycle removal on continuous respiratory signals, and extracts the respiratory cycle sequence, respiratory amplitude variation coefficient, and respiratory frequency trend component. The cardiopulmonary coupling analysis module has its input end connected to the output end of the physiological feature extraction module. It is used to calculate the time-frequency domain cardiopulmonary coupling strength index and cardiopulmonary phase synchronization index based on the beat-by-beat heart rate interval sequence and respiratory cycle sequence. The time-frequency domain cardiopulmonary coupling strength index is the absolute value of the wavelet coherence coefficient of the heart rate interval time spectrum and the respiratory signal time spectrum within the dynamic respiratory frequency band. The cardiopulmonary phase synchronization index is the phase lock value of the instantaneous phase of the heart rate interval and the instantaneous phase of the respiratory signal. The multidimensional feature sequence construction module has its input connected to the outputs of the multi-source signal synchronous acquisition module, the physiological feature extraction module, and the cardiopulmonary coupling analysis module, respectively. It is used to construct multidimensional feature vector sequences from the time-domain features, frequency-domain features, and nonlinear entropy features of heart rate variability, respiratory amplitude variation coefficient, respiratory frequency trend component, time-frequency domain cardiopulmonary coupling strength index, cardiopulmonary phase synchronization index, real-time blood oxygen saturation data, and environmental air pressure data. It then forms a high-dimensional feature time series reflecting the dynamic evolution of cardiopulmonary function by segmenting the data through a sliding window with a fixed window length and a fixed step size. The nonlinear projection dimensionality reduction module connects its input to the output of the multidimensional feature sequence construction module. It is used to input high-dimensional feature time series into a pre-built kernel principal component analysis model and output a low-dimensional latent variable sequence through radial basis kernel function nonlinear projection mapping. The low-dimensional latent variable sequence represents the continuous dynamic change pattern of cardiopulmonary compensation trajectory of an individual under hypoxia exposure. The temporal risk identification module is connected to the output of the nonlinear projection dimensionality reduction module. It is used to input the current low-dimensional latent variable sequence into a pre-trained long short-term memory network model based on multi-head self-attention mechanism, and output the current altitude disease risk probability value. The early warning triggering module is connected to the output of the time-series risk identification module. It is used to trigger an early warning signal for altitude sickness when the probability value of altitude sickness risk is greater than or equal to a preset risk discrimination threshold for N consecutive time steps.
[0013] Based on the same inventive concept, the present invention also provides an electronic device, including a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to perform the above-described method for early identification of altitude sickness risk by incorporating dynamic changes in cardiopulmonary function.
[0014] Based on the same inventive concept, the present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-described method for early identification of altitude sickness risk by incorporating dynamic changes in cardiopulmonary function.
[0015] The technical solution of the present invention has at least the following advantages and beneficial effects: Based on traditional respiratory index monitoring, this study introduces time-frequency domain cardiopulmonary coupling strength indicators and cardiopulmonary phase synchronization indicators of continuous electrocardiogram signals and respiratory signals, quantifying the dynamic relationship between heart rate variability and respiratory rhythm. By capturing the coupled dynamic changes of the cardiopulmonary system compensatory response under high-altitude hypoxia, this study overcomes the shortcomings of existing technologies that only focus on respiratory signals or static physiological parameters while ignoring the cooperative evolution law between systems, enabling earlier and more sensitive detection of potential precursors of altitude sickness.
[0016] This method integrates time-domain, frequency-domain, and nonlinear entropy features of heart rate variability, coefficient of variation of respiratory amplitude, trend component of respiratory rate, cardiopulmonary coupling features, and multi-source heterogeneous data such as ambient air pressure and blood oxygen saturation into a multidimensional feature vector sequence. By using the sliding window technique, a high-dimensional time series reflecting the dynamic evolution of cardiopulmonary function is formed. This not only covers the autonomous regulation information of a single system but also integrates the real-time changes of environmental driving factors and the body's oxygenation status, providing a richer and more discriminative data foundation for subsequent risk modeling.
[0017] By mapping high-dimensional dynamic features to low-dimensional latent variable sequences through a nonlinear state-space projection model, noise and redundant information in the original signal are effectively eliminated, while the continuous dynamic change pattern of cardiopulmonary compensation trajectory is preserved. This can reveal the nonlinear evolution law of cardiopulmonary function in different individuals under hypoxia exposure in a compact form, and provide an interpretable dynamic basis for distinguishing between normal adaptation process and pathological deviation.
[0018] A long short-term memory network model based on multi-head self-attention mechanism is used to model long-term temporal dependencies in low-dimensional latent variable sequences. By adaptively focusing on cardiopulmonary coupling abnormal patterns at key time nodes through self-attention mechanism, it can learn the potential representations of early risk signs from historical evolution trajectories, improve the sensitivity and specificity of altitude sickness risk probability prediction, and reduce the false negative and false positive rates caused by static threshold judgment or subjective symptom scores. Attached Figure Description
[0019] Figure 1 This is a flowchart illustrating the method for early identification of altitude sickness risk based on dynamic changes in cardiopulmonary function, according to an embodiment of the present invention. Figure 2 This is a schematic diagram of the structure of an early risk identification system for altitude sickness based on dynamic changes in cardiopulmonary function, according to an embodiment of the present invention. Detailed Implementation
[0020] The following is a detailed description of the embodiments, in conjunction with the accompanying drawings.
[0021] Reference Figure 1 A method for early identification of altitude sickness risk that integrates dynamic changes in cardiopulmonary function includes the following steps: Step 1: Collect continuous electrocardiogram and respiratory signals of the target user in a high-altitude environment, and simultaneously collect ambient air pressure data and the target user's real-time blood oxygen saturation data.
[0022] In some embodiments, the specific process of acquiring continuous electrocardiogram and respiratory signals of the target user in a high-altitude environment, and simultaneously acquiring ambient air pressure data and the target user's real-time blood oxygen saturation data is as follows: The system collects continuous ECG signals of the target user in a high-altitude environment using a wearable ECG sensor at a first preset sampling frequency; it simultaneously collects continuous respiratory signals of the target user using a respiratory-sensing surface chromatograph at a second preset sampling frequency; it simultaneously records ambient air pressure data using a barometric pressure sensor; and it simultaneously records real-time blood oxygen saturation data of the target user using a fingertip pulse oximeter. The same timestamp reference is added to the continuous electrocardiogram signal, the continuous respiratory signal, the ambient air pressure data and the real-time blood oxygen saturation data to obtain a physiological and environmental dataset. The sliding window mid-range filter is applied to the data of each channel in the physiological and environmental dataset to remove baseline drift and motion artifacts, and abnormal data points exceeding the preset amplitude range or preset gradient range are removed to obtain continuous electrocardiogram signal, continuous respiratory signal, environmental air pressure data sequence and real-time blood oxygen saturation data sequence after synchronization alignment and noise reduction processing.
[0023] Step 2: Locate the R-wave in the continuous ECG signal, extract the beat-by-beat heart rate interval sequence, and calculate the time-domain, frequency-domain, and nonlinear entropy characteristics of heart rate variability; based on the continuous respiratory signal, extract the corresponding respiratory cycle sequence, respiratory amplitude variation coefficient, and respiratory frequency trend component.
[0024] In some embodiments, the specific process of performing R-wave localization on continuous electrocardiogram signals, extracting beat-by-beat heart rate interval sequences, and calculating the time-domain, frequency-domain, and nonlinear entropy characteristics of heart rate variability is as follows: For the continuous ECG signal after synchronization alignment and denoising, a joint detection algorithm based on second-order differentiation and adaptive amplitude thresholding is used to identify the R-wave peak position, and the time interval between adjacent R-wave peak positions is extracted to construct the original beat-by-beat heart rate interval sequence. The preprocessed continuous ECG signal can be assumed to be a discrete-time sequence with a sampling frequency of [missing information]. The first-order and second-order forward differences of the signal are calculated as follows:
[0025]
[0026] in, This indicates the first continuous electrocardiogram signal after preprocessing in a discrete-time series. The signal amplitude at each sampling point; This is the discrete-time index (sampling point number). Corresponding to the sampling frequency Time point of collection ; ECG signal at sampling point The first-order forward difference at a given point approximates the local rate of change of the signal (the first derivative), and is used to characterize the slope features of the waveform's rise or fall. ECG signal at sampling point The second-order forward difference approximates the local curvature change (second derivative) of the signal, which is used to enhance the response to the steep edges of the QRS group (such as the R-wave peak). To enhance the response of steep rising or falling edges of the R-wave and suppress low-frequency baseline drift and high-frequency electromyographic noise, a quadratic differential enhancement sequence was constructed. Asymmetric weighted combination was used to highlight the slope energy of the QRS complex. The quadratic differential enhancement sequence was applied at discrete sampling points. The value at the location is calculated using the following formula:
[0027] in, The constructed second-differential enhancement sequence at discrete sampling points The value at that point is used to enhance the steep edge response of the QRS complex (especially the R wave) in the electrocardiogram signal and suppress noise; These are the second-order differential weighting coefficients; This is a first-order differential compensation coefficient used to balance the detection sensitivity of steep R-waves and broad R-waves. .
[0028] An adaptive detection threshold is defined and dynamically adjusted based on the amplitude of the enhancement sequence of recently confirmed R-waves. Let the... The amplitude of each identified R-wave peak in the enhancement sequence is , ,in For the first The threshold update rule is as follows: (The sampling point number corresponds to the peak position of each R-wave.)
[0029] in, For discrete sampling points An adaptive detection threshold is used to determine whether the amplitude of the current ECG signal enhancement sequence meets the R-wave candidate condition; The threshold attenuation coefficient is... ; To prevent false detections due to excessively low threshold values, the basic noise threshold value can be set to 2 to 3 times the standard deviation of the initial quiet segment of the signal. This is to prevent false detections due to excessively low threshold values during periods without signal fluctuations. The number of most recent R-waves retained within the moving average window, i.e., the number of confirmed R-wave peak amplitudes involved in the averaging calculation; For the first The amplitude of the confirmed R-wave in the enhancement sequence; This means taking the larger of the baseline noise threshold and the recent average amplitude of the R-wave, ensuring that the lower limit of the threshold is not lower than the baseline noise level; It is a local standard deviation estimate of the enhanced sequence of multiple sampling points (excluding the near-term examination area) before the current time, used to adapt to the instantaneous fluctuation of ECG signal amplitude in high-altitude environments; This is a noise adaptive adjustment factor used to adjust the contribution weight of local standard deviation to the final threshold, adapting to the instantaneous fluctuations in ECG signal amplitude in high-altitude environments; initially, when no R wave is detected, .
[0030] For every moment The following logical decision is executed to determine the candidate point of the R-wave peak: The amplitude threshold constraint is shown in the following formula:
[0031] The local maximum constraint is shown in the following equation:
[0032] in, To enhance the sequence at the previous adjacent sampling point The value at; To enhance the sequence at the next adjacent sampling point The value at; The hard constraint condition for the physiological refractory period is shown in the following formula:
[0033] in, This refers to the sampling point number where the previous real R-wave, confirmed by the algorithm, was located. This is the minimum refractory period constant in cardiac electrophysiology. ; When a candidate point simultaneously satisfies the amplitude threshold constraint, the local maximum constraint, and the physiological refractory period hard constraint, the R-wave peak position is recorded, and the amplitude is updated. and refresh the threshold. , for subsequent testing.
[0034] Let the sequence of continuously detected R-wave peak positions be... The original beat-by-beat heart rate interval sequence Calculate using the following formula:
[0035] in, The first beat of the original heart rate interval sequence The element represents the element. The R wave and the first The time interval between each R wave; For the first The sampling point number corresponding to the peak position of each R-wave.
[0036] Ectopic heartbeat identification and removal operations are performed on the original beat-by-beat heart rate interval sequence. Heart rate intervals that exceed the preset median threshold range of the preceding adjacent intervals are marked as abnormal intervals and deleted. The deleted intervals are filled by linear interpolation of the preceding and following normal intervals to obtain the corrected beat-by-beat heart rate interval sequence. Based on the corrected beat-by-beat heart rate interval sequence, the standard deviation of all normal intervals and the root mean square of the difference between adjacent normal intervals are calculated as the temporal characteristics of heart rate variability. Based on the corrected beat-by-beat heart rate interval sequence, the Lomb-Scargle periodogram method is used to calculate the corresponding power spectral density integral values in the preset low-frequency band and preset high-frequency band, respectively, to obtain the low-frequency power and high-frequency power, and the ratio of low-frequency power to high-frequency power is calculated as the frequency domain feature of heart rate variability. Based on the length of the corrected beat-by-beat heart rate interval sequence, the embedding dimension and similarity tolerance are adaptively determined, and the sample entropy value is calculated as a nonlinear entropy feature of heart rate variability; wherein, the sample entropy value characterizes the degree of dynamic change in complexity and regularity of the beat-by-beat heart rate interval sequence under high-altitude hypoxia exposure.
[0037] In some embodiments, the specific process of extracting the corresponding respiratory cycle sequence, respiratory amplitude variation coefficient, and respiratory frequency trend component based on the continuous respiratory signal is as follows: For the continuous respiratory signal after synchronization alignment and denoising, a joint recognition algorithm based on zero-crossing detection and peak / trough localization is used to mark the inspiratory start point and expiratory end point cycle by cycle. The time interval between adjacent inspiratory start points is calculated to form the original respiratory cycle sequence. The preprocessed continuous respiratory signal can be set as follows: Its discrete sampling sequence is , The sampling frequency is To eliminate residual baseline shift, the detrending sequence of the respiratory signal is calculated as shown in the following formula:
[0038] in, The detrended respiratory signal at the sampling point The value at; For the continuous respiratory signal after synchronization alignment and denoising processing, the first time in the discrete time series... The signal amplitude at each sampling point; The sliding average half-window width is used to estimate the local baseline; This is the offset index, and its value range is... , indicating relative to the current sampling point The offset; The zero-crossing detection function is defined as follows:
[0039] in, For zero-crossing detection functions at discrete sampling points The output value at that location takes the value of The value indicates that the point is identified as a candidate point for the start of inhalation. Time indicates a non-candidate point; The detrended respiratory signal at the previous adjacent sampling point The signal amplitude at that location; satisfies The sampling point locations are denoted as the inhalation initiation candidate point set. .
[0040] In the interval between two adjacent candidate zero crossing points Internally, the peaks of inspiratory and troughs of expiration are located by determining local extrema, as shown in the following formula:
[0041]
[0042] in, Indicates the first The sampling point number corresponding to the inspiratory peak located within each candidate respiratory cycle interval; Indicates the first The sampling point number corresponding to the expiratory trough located within each candidate respiratory cycle interval; This indicates the first zero-crossing detection function that identifies the zero-crossing point. The discrete-time sampling sequence number corresponding to each candidate inhalation start point; Indicates the relationship with the first The discrete-time sampling number corresponding to the next inhalation start candidate point adjacent to each candidate point; To ensure the physiological rationality of the respiratory cycle, amplitude and time constraints are introduced, as shown in the following formula:
[0043] in, The destressed respiratory signal at the first Inspiratory peak position within one respiratory cycle The signal amplitude at that location; The destressed respiratory signal at the first ventricular trough position within one respiratory cycle The signal amplitude at that location; The minimum effective respiratory amplitude threshold; The shortest respiratory cycle physiological limit (e.g., 0.5s) is defined as the minimum respiratory cycle physiological limit; candidate inspiratory initiation points that meet the amplitude and time constraints are identified as effective inspiratory initiation points.
[0044] Based on the confirmed inspiratory initiation sequence The original respiratory cycle sequence is calculated as shown in the following formula:
[0045] in, The first of the original respiratory cycle sequence The element represents the element. The duration of an effective respiratory cycle; For the first The discrete sampling point number corresponding to the valid inhalation start point; For the first The discrete sampling point number corresponding to each effective intake start point; This represents the total number of effective inhalation initiation points.
[0046] An abnormal cycle removal operation is performed on the original respiratory cycle sequence. Respiratory cycles that exceed the preset multiple threshold range of the sliding median of the respiratory cycle are marked as abnormal cycles and deleted. Cubic spline interpolation is used to fill in the positions of the deleted cycles to obtain the corrected respiratory cycle sequence. The instantaneous respiratory rate sequence is calculated based on the corrected respiratory cycle sequence. Singular spectrum analysis is performed on the instantaneous respiratory rate sequence to decompose it into trend component, oscillation component and noise component. The trend component is extracted as the respiratory rate trend component. The respiratory rate trend component represents the long-term adaptive drift trajectory of the body's respiratory rhythm under high-altitude hypoxia exposure. Based on the continuous respiratory signal after synchronization alignment and noise reduction, the peak amplitude of inspiratory air and the trough amplitude of expiratory air are extracted in each respiratory cycle. The difference between the peak amplitude of inspiratory air and the trough amplitude of expiratory air in each respiratory cycle is taken as the respiratory amplitude of each respiratory cycle, and a respiratory amplitude sequence is generated. The ratio of the standard deviation to the mean of the respiratory amplitude sequence is calculated as the respiratory amplitude variation coefficient; wherein, the respiratory amplitude variation coefficient characterizes the dynamic change in the degree of fluctuation of respiratory driving force under high-altitude hypoxia stress.
[0047] Step 3: Based on the beat-by-beat heart rate interval sequence and respiratory cycle sequence, calculate the time-frequency domain cardiopulmonary coupling strength index and the cardiopulmonary phase synchronization index; wherein, the time-frequency domain cardiopulmonary coupling strength index is the coherence coefficient of the power spectral density of the heart rate interval and the power spectral density of the respiratory signal within the respiratory frequency band; the cardiopulmonary phase synchronization index is the phase lock value between the instantaneous phase of the heart rate interval and the instantaneous phase of the respiratory signal.
[0048] In some embodiments, the specific process of calculating the time-frequency domain cardiopulmonary coupling strength index and the cardiopulmonary phase synchronicity index based on the beat-by-beat heart rate interval sequence and the respiratory cycle sequence is as follows: The corrected beat-by-beat heart rate interval sequence and the corrected respiratory cycle sequence were subjected to cubic spline interpolation at equal intervals, and then resampled to a preset uniform frequency to obtain the resampled heart rate interval signal and the resampled respiratory signal. Continuous wavelet transforms were performed on the resampled heart rate interval signal and the resampled respiratory signal to generate the heart rate interval time spectrum matrix and the respiratory signal time spectrum matrix, respectively. The frequency trajectory corresponding to the maximum energy value at each moment is extracted from the respiratory signal time spectrum matrix as the main respiratory frequency trajectory. The dynamic respiratory frequency band range is determined with the main respiratory frequency trajectory as the center and according to the preset frequency band width. Within the dynamic respiratory frequency band, the wavelet coherence coefficients of the heart rate interval time spectrum matrix and the respiratory signal time spectrum matrix are calculated time by time, and the absolute value of the wavelet coherence coefficients is taken as the time-frequency domain cardiopulmonary coupling strength index. Hilbert transform was performed on the resampled heart rate interval signal and the resampled respiratory signal respectively to extract the instantaneous phase sequence of the heart rate interval and the instantaneous phase sequence of the respiratory signal; Calculate the mean sine and cosine components of the phase difference between the instantaneous phase of the heart rate interval and the instantaneous phase of the respiratory signal within a preset sliding time window, and use the square root of the sum of the squares of the mean sine and cosine components as an indicator of cardiopulmonary phase synchronicity.
[0049] Step 4: Construct a multidimensional feature vector sequence from the time-domain features, frequency-domain features, and nonlinear entropy features of the heart rate variability, the coefficient of variation of the respiratory amplitude, the trend component of the respiratory frequency, the time-frequency domain cardiopulmonary coupling strength index, the cardiopulmonary phase synchronization index, the real-time blood oxygen saturation data, and the ambient air pressure data. Segment the multidimensional feature vector sequence using a sliding window with a fixed window length and a fixed step size to form a high-dimensional feature time series that reflects the dynamic evolution of cardiopulmonary function.
[0050] In some embodiments, the heart rate variability time-domain features, heart rate variability frequency-domain features, heart rate variability nonlinear entropy features, respiratory amplitude variation coefficient, respiratory rate trend component, time-frequency domain cardiopulmonary coupling strength index, cardiopulmonary phase synchronization index, real-time blood oxygen saturation data, and ambient air pressure data extracted in the preceding steps are aligned along a unified time axis. At each common sampling time point, all the above features and the original data are concatenated and combined to form a single feature vector with multiple dimensions. Since the extraction time intervals of each feature and data may differ, they must first be strictly synchronized in time using interpolation or resampling methods to ensure that each feature vector corresponds to a comprehensive description of cardiopulmonary function at the same moment.
[0051] Based on the temporal continuity of physiological monitoring data, the multidimensional feature vectors at all time points are arranged in chronological order to form a multidimensional feature vector sequence that changes over time. Each frame in the multidimensional feature vector sequence fully depicts the individual's electrocardiographic activity, respiratory rhythm and driving characteristics, dynamic coupling relationship between the heart and lungs, body oxygenation level, and comprehensive state information of external hypoxic environmental pressure at the corresponding time.
[0052] To capture the gradual evolution of cardiopulmonary compensatory function during high-altitude hypoxia exposure, rather than isolated instantaneous states, a fixed time window length and a fixed window sliding step size are defined. Starting from the initial moment of the multidimensional feature vector sequence, all feature vectors contained within a continuous period are extracted using this fixed window length, forming a feature matrix for the first time segment. The rows of this feature matrix correspond to different time points arranged sequentially within the time window, and the columns correspond to all feature dimensions contained at each moment, thus completely preserving the fluctuation patterns and interrelationships of various cardiopulmonary function indicators within a short time interval within a single time segment.
[0053] The time window is shifted backward along the time axis by a fixed step, and feature vectors within the next equal-time interval are extracted to form a second feature matrix. This sliding extraction operation is repeated until the time window covers the end of the entire multidimensional feature vector sequence. The feature matrix obtained from each window movement constitutes a time sample unit, which contains the coordinated change trajectory of multidimensional indicators of cardiopulmonary function during that specific time period.
[0054] By combining the feature matrices obtained from all sliding window extractions in chronological order, a high-dimensional feature time series reflecting the dynamic evolution of cardiopulmonary function over time is formed. This high-dimensional feature time series not only preserves the multimodal physiological information at a single time point, but also explicitly encodes the temporal patterns of electrocardiographic features, respiratory features, cardiopulmonary coupling features, and the co-evolution of environmental and oxygenation parameters during high-altitude adaptation through the arrangement of continuous time segments. This provides a structured input representation for subsequent nonlinear state-space projection models to extract latent variables reflecting individual hypoxia compensation trajectories.
[0055] Step 5: Input the high-dimensional feature time series into the pre-trained nonlinear state-space projection model and output a low-dimensional latent variable sequence; wherein, the low-dimensional latent variable sequence represents the continuous dynamic change pattern of the cardiopulmonary compensation trajectory of an individual under hypoxia exposure.
[0056] In some embodiments, the specific construction process of the nonlinear state-space projection model is as follows: Obtain historical multidimensional feature vector sequences of multiple sample users under different plateau exposure durations, and divide each historical multidimensional feature vector sequence into a historical high-dimensional feature time series according to the fixed window length and the fixed step size; Each feature dimension contained in all historical high-dimensional feature time series is standardized to obtain a set of standardized high-dimensional feature time series. A kernel principal component analysis model with radial basis functions as kernel functions is constructed. The standardized high-dimensional feature time series set is used as input to solve for the eigenvalues and eigenvectors of the kernel matrix. The number of principal components to be retained is determined according to the cumulative variance contribution rate threshold. The number of retained principal components is used as the preset dimension of the low-dimensional latent variables. Based on the number of principal components retained and their corresponding eigenvectors, a nonlinear projection mapping relationship is established from the standardized high-dimensional feature space to the low-dimensional latent variable space; The kernel function type, kernel function parameters, normalization parameters, and nonlinear projection mapping relationship are saved as parameters for the nonlinear state-space projection model, thus completing the model construction.
[0057] Step 6: Input the current low-dimensional latent variable sequence into a long short-term memory network model based on a multi-head self-attention mechanism, and output the current altitude sickness risk probability value; wherein, the long short-term memory network model is trained with sample data to fit the mapping relationship between the low-dimensional latent variable sequence and the altitude sickness risk level.
[0058] In some embodiments, the specific construction process of the long short-term memory network model based on the multi-head self-attention mechanism is as follows: Obtain historical low-dimensional latent variable sequences and corresponding altitude sickness risk level labels of multiple sample users during their exposure to high altitudes to form a training sample set; A sliding window is used to extract each historical low-dimensional latent variable sequence to generate an input tensor with a fixed time step, and the input tensor is divided into a training subset and a validation subset according to the time series. A neural network model consisting of a multi-head self-attention layer and a long short-term memory network layer is constructed. The multi-head self-attention layer is used to extract the global dependencies between different time steps within the low-dimensional latent variable sequence, and the long short-term memory network layer is used to capture the forward dependency features of the low-dimensional latent variable sequence along the time axis. The input tensors in the training subset are passed sequentially through a multi-head self-attention layer and a long short-term memory network layer to obtain a hidden state sequence. The hidden state vector at the last time step of the hidden state sequence is taken and mapped through a fully connected layer and an activation function to output the probability value of altitude sickness at the current time. The error between the probability value of altitude sickness risk and the true risk level label is measured by the binary cross-entropy loss function, and the network weight parameters are iteratively updated by the time-based backpropagation algorithm. Training is terminated when the loss function value of the validation subset does not decrease within a preset number of consecutive rounds, and the network weight parameters are saved as parameters of the long short-term memory network model.
[0059] Step 7: When the probability value of altitude sickness risk is greater than or equal to the preset risk judgment threshold for N consecutive time steps, an early warning signal for altitude sickness is triggered.
[0060] In some embodiments, a sequence of altitude sickness risk probability values output by a long short-term memory network model based on a multi-head self-attention mechanism is obtained within the current time step and the historical backtracking time step. Each element of this probability value sequence corresponds to a high-dimensional feature input within a fixed time window, reflecting the intensity of potential disease risk implied by the cardiopulmonary coupled dynamic latent variables during the corresponding time period. The probability values output by the model are continuous scalars between zero and one; a larger value indicates a higher similarity between the individual's current cardiopulmonary compensation pattern and the pattern of early-stage altitude sickness samples.
[0061] A preset risk discrimination threshold and a continuous confirmation step parameter N are defined. The preset risk discrimination threshold is set based on receiver operating characteristic (ROC) curve analysis of the model's output probability values using an independent validation sample set. The probability cutoff value corresponding to the maximum Youden index is selected as the discrimination threshold, which optimally distinguishes between high-risk and low-risk states. The continuous confirmation step parameter N is calibrated based on the average physiological delay time from early cardiopulmonary coupling abnormalities to the appearance of observable clinical symptoms in common high-altitude diseases (such as acute mountain sickness and high-altitude pulmonary edema), combined with the sliding window step size of a high-dimensional feature time series. This ensures that the warning signal can respond promptly to real risks while possessing sufficient robustness against interference.
[0062] The system executes continuous time-series cumulative judgment logic. Starting from the current time step, it backtracks backward, checking whether the risk probability value of each time step within the continuous time interval is greater than or equal to a preset risk judgment threshold. If the probability value of any time step within the continuous time interval is lower than the judgment threshold, it is considered that the persistent risk condition is not met. The system maintains the current monitoring state without triggering an early warning signal, and only records the current probability value in the risk trend log for subsequent backtracking analysis. This approach avoids issuing false warnings due to single or occasional probability spikes, reducing the false alarm rate.
[0063] If, upon retrospective confirmation, the risk probability value at the current time step and multiple consecutive historical time steps prior to it is consistently greater than or equal to a preset risk threshold, the individual's cardiopulmonary compensation trajectory is determined to have entered a persistent abnormal pattern consistent with the early pathophysiological process of altitude sickness. At this point, the system triggers an early warning signal for altitude sickness. The triggering actions of this warning signal include, but are not limited to: pushing a warning data packet to the cloud monitoring platform containing the user's identifier, current risk probability value, duration of continuous exceedance, and snapshots of core cardiopulmonary coupling characteristic indicators; sending tiered warning prompts to the user's mobile terminal and preset emergency contact terminal via wireless communication links; and activating at least one of the following warning feedback mechanisms—sound, light, and vibration—on the local monitoring device to attract the user's attention and prompt them to take intervention measures such as rest, oxygen inhalation, or descent.
[0064] Furthermore, to enhance the specificity of the early warning, this step also introduces the trend of risk probability change as an auxiliary criterion. Before triggering the early warning signal, the average first-order difference of the risk probability values within consecutive confirmation time steps is calculated. If the probability value continuously exceeds the limit but shows a significant and continuous downward trend, and the decline exceeds a preset trend threshold, the early warning trigger is postponed, and the current state is marked as a sub-risk observation period. This mechanism can effectively identify situations where the body is moving away from a high-risk trajectory through its own compensatory adjustments, further reducing unnecessary early warning interference and making the early warning action more closely aligned with the dynamic changes in individual cardiopulmonary compensation.
[0065] By combining the aforementioned risk probability confirmation mechanism with time-series cumulative discrimination and trend correction, the shortcomings of existing static and single-point discrimination methods in failing to reflect the gradual evolution of altitude sickness are overcome. This mechanism enables reliable capture and accurate warning of early abnormal patterns in the dynamic trajectory of cardiopulmonary function changes, thus providing a decision support method with both sensitivity and specificity for health monitoring of workers in high-altitude environments.
[0066] Based on the same inventive concept, and corresponding to any of the above embodiments, refer to... Figure 2 This invention provides an early risk identification system for altitude sickness that integrates dynamic changes in cardiopulmonary function, used to implement the aforementioned method for early risk identification of altitude sickness that integrates dynamic changes in cardiopulmonary function, comprising: The multi-source signal synchronous acquisition module is used to synchronously acquire the target user's continuous electrocardiogram signal, continuous respiratory signal, ambient air pressure data and real-time blood oxygen saturation data in a high-altitude environment. After attaching a unified timestamp reference to the data of each channel, it performs sliding window mid-range filtering and outlier removal, and outputs a physiological and environmental data sequence that has been synchronized, aligned and denoised. The physiological feature extraction module has its input end connected to the output end of the multi-source signal synchronous acquisition module. It is used to perform R-wave localization and ectopic heartbeat removal on continuous electrocardiogram signals, extract the beat-by-beat heart rate interval sequence, and calculate the time-domain, frequency-domain, and nonlinear entropy features of heart rate variability. At the same time, it performs respiratory cycle segmentation and abnormal cycle removal on continuous respiratory signals, and extracts the respiratory cycle sequence, respiratory amplitude variation coefficient, and respiratory frequency trend component. The cardiopulmonary coupling analysis module has its input end connected to the output end of the physiological feature extraction module. It is used to calculate the time-frequency domain cardiopulmonary coupling strength index and cardiopulmonary phase synchronization index based on the beat-by-beat heart rate interval sequence and respiratory cycle sequence. The time-frequency domain cardiopulmonary coupling strength index is the absolute value of the wavelet coherence coefficient of the heart rate interval time spectrum and the respiratory signal time spectrum within the dynamic respiratory frequency band. The cardiopulmonary phase synchronization index is the phase lock value of the instantaneous phase of the heart rate interval and the instantaneous phase of the respiratory signal. The multidimensional feature sequence construction module has its input connected to the outputs of the multi-source signal synchronous acquisition module, the physiological feature extraction module, and the cardiopulmonary coupling analysis module, respectively. It is used to construct multidimensional feature vector sequences from the time-domain features, frequency-domain features, and nonlinear entropy features of heart rate variability, respiratory amplitude variation coefficient, respiratory frequency trend component, time-frequency domain cardiopulmonary coupling strength index, cardiopulmonary phase synchronization index, real-time blood oxygen saturation data, and environmental air pressure data. It then forms a high-dimensional feature time series reflecting the dynamic evolution of cardiopulmonary function by segmenting the data through a sliding window with a fixed window length and a fixed step size. The nonlinear projection dimensionality reduction module connects its input to the output of the multidimensional feature sequence construction module. It is used to input high-dimensional feature time series into a pre-built kernel principal component analysis model and output a low-dimensional latent variable sequence through radial basis kernel function nonlinear projection mapping. The low-dimensional latent variable sequence represents the continuous dynamic change pattern of cardiopulmonary compensation trajectory of an individual under hypoxia exposure. The temporal risk identification module is connected to the output of the nonlinear projection dimensionality reduction module. It is used to input the current low-dimensional latent variable sequence into a pre-trained long short-term memory network model based on multi-head self-attention mechanism, and output the current altitude disease risk probability value. The early warning triggering module is connected to the output of the time-series risk identification module. It is used to trigger an early warning signal for altitude sickness when the probability value of altitude sickness risk is greater than or equal to a preset risk discrimination threshold for N consecutive time steps.
[0067] Based on the same inventive concept, corresponding to any of the above embodiments, the present invention provides an electronic device, including a memory and a processor. The memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to perform the embodiment of the method for early identification of altitude sickness risk by incorporating dynamic changes in cardiopulmonary function.
[0068] Alternatively, the aforementioned electronic device may be a server.
[0069] In addition, this embodiment also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the method for early identification of altitude sickness risk based on dynamic changes in cardiopulmonary function in accordance with the embodiment.
[0070] It is understood that the processor in the embodiments of the present invention may be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. The general-purpose processor may be a microprocessor or any conventional processor.
[0071] The method steps in the embodiments of the present invention can be implemented in hardware or by a processor executing software instructions. The software instructions can consist of corresponding software modules, which can be stored in random access memory (RAM), flash memory, read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, portable hard disks, CD-ROMs, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can reside in an ASIC.
[0072] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the flow or function according to the embodiments of the present invention is generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a storage medium or transmitted through a storage medium. The computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state drive (SSD)).
Claims
1. A method for early identification of altitude sickness risk by integrating dynamic changes in cardiopulmonary function, characterized in that, Includes the following steps: The system collects continuous electrocardiogram and respiratory signals of the target user in a high-altitude environment, and simultaneously collects ambient air pressure data and the target user's real-time blood oxygen saturation data. R-wave localization was performed on continuous electrocardiogram signals, heart rate interval sequences were extracted, and the time-domain, frequency-domain, and nonlinear entropy characteristics of heart rate variability were calculated. Based on continuous respiratory signals, extract the corresponding respiratory cycle sequence, respiratory amplitude variation coefficient, and respiratory rate trend component; Based on the beat-by-beat heart rate interval sequence and respiratory cycle sequence, a time-frequency domain cardiopulmonary coupling strength index and a cardiopulmonary phase synchronization index are calculated; wherein, the time-frequency domain cardiopulmonary coupling strength index is the coherence coefficient between the power spectral density of the heart rate interval and the power spectral density of the respiratory signal within the respiratory frequency band; the cardiopulmonary phase synchronization index is the phase lock value between the instantaneous phase of the heart rate interval and the instantaneous phase of the respiratory signal. The time-domain features, frequency-domain features, and nonlinear entropy features of heart rate variability, the coefficient of variation of respiratory amplitude, the trend component of respiratory frequency, the time-frequency domain cardiopulmonary coupling strength index, the cardiopulmonary phase synchronization index, the real-time blood oxygen saturation data, and the ambient air pressure data are constructed into a multidimensional feature vector sequence. The multidimensional feature vector sequence is segmented by a sliding window with a fixed window length and a fixed step size to form a high-dimensional feature time series that reflects the dynamic evolution of cardiopulmonary function. A high-dimensional feature time series is input into a pre-trained nonlinear state-space projection model, which outputs a low-dimensional latent variable sequence; wherein, the low-dimensional latent variable sequence represents the continuous dynamic change pattern of an individual's cardiopulmonary compensation trajectory under hypoxia exposure. The current low-dimensional latent variable sequence is input into a long short-term memory network model based on a multi-head self-attention mechanism, and the model outputs the current altitude sickness risk probability value; wherein, the long short-term memory network model is trained with sample data to fit the mapping relationship between the low-dimensional latent variable sequence and the altitude sickness risk level. When the probability value of altitude sickness risk is greater than or equal to the preset risk judgment threshold for N consecutive time steps, an early warning signal for altitude sickness is triggered.
2. The method for early identification of altitude sickness risk based on dynamic changes in cardiopulmonary function as described in claim 1, characterized in that, The specific process of collecting continuous electrocardiogram and respiratory signals of the target user in a high-altitude environment, and simultaneously collecting ambient air pressure data and the target user's real-time blood oxygen saturation data is as follows: The wearable ECG sensor collects continuous ECG signals of the target user in a high-altitude environment at a first preset sampling frequency; the respiratory sensor collects continuous respiratory signals of the target user at a second preset sampling frequency. Ambient air pressure data is recorded synchronously using a barometric pressure sensor; Real-time blood oxygen saturation data of the target user is recorded synchronously using a fingertip pulse oximeter. The same timestamp reference is added to the continuous electrocardiogram signal, the continuous respiratory signal, the ambient air pressure data and the real-time blood oxygen saturation data to obtain a physiological and environmental dataset. The sliding window mid-range filter is applied to the data of each channel in the physiological and environmental dataset to remove baseline drift and motion artifacts, and abnormal data points exceeding the preset amplitude range or preset gradient range are removed to obtain continuous electrocardiogram signal, continuous respiratory signal, environmental air pressure data sequence and real-time blood oxygen saturation data sequence after synchronization alignment and noise reduction processing.
3. The method for early identification of altitude sickness risk based on dynamic changes in cardiopulmonary function as described in claim 2, characterized in that, The specific process of performing R-wave localization on continuous electrocardiogram signals, extracting beat-by-beat heart rate interval sequences, and calculating the time-domain, frequency-domain, and nonlinear entropy characteristics of heart rate variability is as follows: For the continuous ECG signal after synchronization alignment and denoising, a joint detection algorithm based on second derivative and adaptive amplitude threshold is used to identify the R wave peak position, extract the time interval between adjacent R wave peak positions, and form the original beat-by-beat heart rate interval sequence. Ectopic heartbeat identification and removal operations are performed on the original beat-by-beat heart rate interval sequence. Heart rate intervals that exceed the preset median threshold range of the preceding adjacent intervals are marked as abnormal intervals and deleted. The deleted intervals are filled by linear interpolation of the preceding and following normal intervals to obtain the corrected beat-by-beat heart rate interval sequence. Based on the corrected beat-by-beat heart rate interval sequence, the standard deviation of all normal intervals and the root mean square of the difference between adjacent normal intervals are calculated as the temporal features of heart rate variability. Based on the corrected beat-by-beat heart rate interval sequence, the Lomb-Scargle periodogram method is used to calculate the corresponding power spectral density integral values in the preset low-frequency band and preset high-frequency band, respectively, to obtain the low-frequency power and high-frequency power, and the ratio of low-frequency power to high-frequency power is calculated as the frequency domain feature of heart rate variability. Based on the length of the corrected beat-by-beat heart rate interval sequence, the embedding dimension and similarity tolerance are adaptively determined, and the sample entropy value is calculated as a nonlinear entropy feature of heart rate variability; wherein, the sample entropy value characterizes the degree of dynamic change in complexity and regularity of the beat-by-beat heart rate interval sequence under high-altitude hypoxia exposure.
4. The method for early identification of altitude sickness risk based on dynamic changes in cardiopulmonary function as described in claim 3, characterized in that, The specific process of extracting the corresponding respiratory cycle sequence, respiratory amplitude variation coefficient, and respiratory frequency trend component based on continuous respiratory signals is as follows: For the continuous respiratory signal after synchronization alignment and noise reduction, a joint recognition algorithm based on zero-crossing detection and peak and trough localization is used to mark the inspiratory start point and expiratory end point cycle by cycle, and the time interval between adjacent inspiratory start points is calculated to form the original respiratory cycle sequence. An abnormal cycle removal operation is performed on the original respiratory cycle sequence. Respiratory cycles that exceed the preset multiple threshold range of the sliding median of the respiratory cycle are marked as abnormal cycles and deleted. Cubic spline interpolation is used to fill in the positions of the deleted cycles to obtain the corrected respiratory cycle sequence. The instantaneous respiratory rate sequence is calculated based on the corrected respiratory cycle sequence. Singular spectrum analysis is performed on the instantaneous respiratory rate sequence to decompose it into trend component, oscillation component and noise component. The trend component is extracted as the respiratory rate trend component. The respiratory rate trend component represents the long-term adaptive drift trajectory of the body's respiratory rhythm under high-altitude hypoxia exposure. Based on the continuous respiratory signal after synchronization alignment and noise reduction, the peak amplitude of inspiratory air and the trough amplitude of expiratory air are extracted in each respiratory cycle. The difference between the peak amplitude of inspiratory air and the trough amplitude of expiratory air in each respiratory cycle is taken as the respiratory amplitude of each respiratory cycle, and a respiratory amplitude sequence is generated. The ratio of the standard deviation to the mean of the respiratory amplitude sequence is calculated as the respiratory amplitude variation coefficient; wherein, the respiratory amplitude variation coefficient characterizes the dynamic change in the degree of fluctuation of respiratory driving force under high-altitude hypoxia stress.
5. The method for early identification of altitude sickness risk based on dynamic changes in cardiopulmonary function as described in claim 4, characterized in that, The specific process for calculating the time-frequency domain cardiopulmonary coupling strength index and cardiopulmonary phase synchronicity index based on the beat-by-beat heart rate interval sequence and respiratory cycle sequence is as follows: The corrected beat-by-beat heart rate interval sequence and the corrected respiratory cycle sequence were subjected to cubic spline interpolation at equal intervals, and then resampled to a preset uniform frequency to obtain the resampled heart rate interval signal and the resampled respiratory signal. Continuous wavelet transforms were performed on the resampled heart rate interval signal and the resampled respiratory signal to generate the heart rate interval time spectrum matrix and the respiratory signal time spectrum matrix, respectively. The frequency trajectory corresponding to the maximum energy value at each moment is extracted from the respiratory signal time spectrum matrix as the main respiratory frequency trajectory. The dynamic respiratory frequency band range is determined with the main respiratory frequency trajectory as the center and according to the preset frequency band width. Within the dynamic respiratory frequency band, the wavelet coherence coefficients of the heart rate interval time spectrum matrix and the respiratory signal time spectrum matrix are calculated time by time, and the absolute value of the wavelet coherence coefficients is taken as the time-frequency domain cardiopulmonary coupling strength index. Hilbert transform was performed on the resampled heart rate interval signal and the resampled respiratory signal respectively to extract the instantaneous phase sequence of the heart rate interval and the instantaneous phase sequence of the respiratory signal; Calculate the mean sine and cosine components of the phase difference between the instantaneous phase of the heart rate interval and the instantaneous phase of the respiratory signal within a preset sliding time window, and use the square root of the sum of the squares of the mean sine and cosine components as an indicator of cardiopulmonary phase synchronicity.
6. The method for early identification of altitude sickness risk based on dynamic changes in cardiopulmonary function as described in claim 1, characterized in that, The specific construction process of the nonlinear state-space projection model is as follows: Obtain historical multidimensional feature vector sequences of multiple sample users under different plateau exposure durations, and divide each historical multidimensional feature vector sequence into a historical high-dimensional feature time series according to the fixed window length and the fixed step size; Each feature dimension contained in all historical high-dimensional feature time series is standardized to obtain a set of standardized high-dimensional feature time series. A kernel principal component analysis model with radial basis functions as kernel functions is constructed. The standardized high-dimensional feature time series set is used as input to solve for the eigenvalues and eigenvectors of the kernel matrix. The number of principal components to be retained is determined according to the cumulative variance contribution rate threshold. The number of retained principal components is used as the preset dimension of the low-dimensional latent variables. Based on the number of principal components retained and their corresponding eigenvectors, a nonlinear projection mapping relationship is established from the standardized high-dimensional feature space to the low-dimensional latent variable space; The kernel function type, kernel function parameters, normalization parameters, and nonlinear projection mapping relationship are saved as parameters for the nonlinear state-space projection model, thus completing the model construction.
7. The method for early identification of altitude sickness risk based on dynamic changes in cardiopulmonary function as described in claim 1, characterized in that, The specific construction process of the long short-term memory network model based on the multi-head self-attention mechanism is as follows: Obtain the historical low-dimensional latent variable sequences and corresponding altitude sickness risk level labels of multiple sample users during their exposure to high altitude, and form a training sample set; A sliding window is used to extract each historical low-dimensional latent variable sequence to generate an input tensor with a fixed time step, and the input tensor is divided into a training subset and a validation subset according to the time series. A neural network model consisting of a multi-head self-attention layer and a long short-term memory network layer is constructed. The multi-head self-attention layer is used to extract the global dependencies between different time steps within the low-dimensional latent variable sequence, and the long short-term memory network layer is used to capture the forward dependency features of the low-dimensional latent variable sequence along the time axis. The input tensors in the training subset are passed sequentially through a multi-head self-attention layer and a long short-term memory network layer to obtain a hidden state sequence. The hidden state vector at the last time step of the hidden state sequence is taken and mapped through a fully connected layer and an activation function to output the probability value of altitude sickness at the current time. The error between the probability value of altitude sickness risk and the true risk level label is measured by the binary cross-entropy loss function, and the network weight parameters are iteratively updated by the time-based backpropagation algorithm. Training is terminated when the loss function value of the validation subset does not decrease within a preset number of consecutive rounds, and the network weight parameters are saved as parameters of the long short-term memory network model.
8. A system for early identification of altitude sickness risk integrating dynamic changes in cardiopulmonary function, used to implement the method for early identification of altitude sickness risk integrating dynamic changes in cardiopulmonary function as described in any one of claims 1-7, characterized in that, include: The multi-source signal synchronous acquisition module is used to synchronously acquire the target user's continuous electrocardiogram signal, continuous respiratory signal, ambient air pressure data and real-time blood oxygen saturation data in a high-altitude environment. After attaching a unified timestamp reference to the data of each channel, it performs sliding window mid-range filtering and outlier removal, and outputs a physiological and environmental data sequence that has been synchronized, aligned and denoised. The physiological feature extraction module has its input end connected to the output end of the multi-source signal synchronous acquisition module. It is used to perform R-wave localization and ectopic heartbeat removal on continuous electrocardiogram signals, extract the beat-by-beat heart rate interval sequence, and calculate the time-domain, frequency-domain, and nonlinear entropy features of heart rate variability. At the same time, it performs respiratory cycle segmentation and abnormal cycle removal on continuous respiratory signals, and extracts the respiratory cycle sequence, respiratory amplitude variation coefficient, and respiratory frequency trend component. The cardiopulmonary coupling analysis module has its input end connected to the output end of the physiological feature extraction module. It is used to calculate the time-frequency domain cardiopulmonary coupling strength index and cardiopulmonary phase synchronization index based on the beat-by-beat heart rate interval sequence and respiratory cycle sequence. The time-frequency domain cardiopulmonary coupling strength index is the absolute value of the wavelet coherence coefficient of the heart rate interval time spectrum and the respiratory signal time spectrum within the dynamic respiratory frequency band. The cardiopulmonary phase synchronization index is the phase lock value of the instantaneous phase of the heart rate interval and the instantaneous phase of the respiratory signal. The multidimensional feature sequence construction module has its input connected to the outputs of the multi-source signal synchronous acquisition module, the physiological feature extraction module, and the cardiopulmonary coupling analysis module, respectively. It is used to construct multidimensional feature vector sequences from the time-domain features, frequency-domain features, and nonlinear entropy features of heart rate variability, respiratory amplitude variation coefficient, respiratory frequency trend component, time-frequency domain cardiopulmonary coupling strength index, cardiopulmonary phase synchronization index, real-time blood oxygen saturation data, and environmental air pressure data. It then forms a high-dimensional feature time series reflecting the dynamic evolution of cardiopulmonary function by segmenting the data through a sliding window with a fixed window length and a fixed step size. The nonlinear projection dimensionality reduction module connects its input to the output of the multidimensional feature sequence construction module. It is used to input high-dimensional feature time series into a pre-built kernel principal component analysis model and output a low-dimensional latent variable sequence through radial basis kernel function nonlinear projection mapping. The low-dimensional latent variable sequence represents the continuous dynamic change pattern of cardiopulmonary compensation trajectory of an individual under hypoxia exposure. The temporal risk identification module is connected to the output of the nonlinear projection dimensionality reduction module. It is used to input the current low-dimensional latent variable sequence into a pre-trained long short-term memory network model based on multi-head self-attention mechanism, and output the current altitude disease risk probability value. The early warning triggering module is connected to the output of the time-series risk identification module. It is used to trigger an early warning signal for altitude sickness when the probability value of altitude sickness risk is greater than or equal to a preset risk discrimination threshold for N consecutive time steps.
9. An electronic device, characterized in that, The device includes a memory and a processor, the memory being used to store a computer program, and the processor running the computer program to cause the electronic device to perform the method for early identification of altitude sickness risk based on dynamic changes in cardiopulmonary function as described in any one of claims 1-7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the method for early identification of altitude sickness risk based on dynamic changes in cardiopulmonary function as described in any one of claims 1-7.
Citation Information
Patent Citations
Human body respiration index monitoring management method and system based on cloud platform
CN120514364A
