Physiological parameter joint generation method and device based on deep learning model
By segmenting and time-frequency transforming cardiac impact signals using a deep learning model, the problem of parsing cardiac impact signals under low signal-to-noise ratio conditions is solved. This enables the synchronous extraction of heart rate and respiratory parameters, improving the accuracy and applicability of physiological parameter calculations, and is suitable for cardiopulmonary status analysis and sleep time series monitoring.
Patent Information
- Application Number
- CN202611707472.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-31
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies struggle to effectively analyze cardiac impaction signals under low signal-to-noise ratio conditions, and cannot simultaneously extract time-series information related to heart rate and respiration. Furthermore, traditional methods exhibit poor stability in J-peak feature recognition under noise interference, resulting in low accuracy in physiological parameter calculations and limited applicability to various scenarios.
A method for jointly generating physiological parameters based on a deep learning model is adopted. The cardiac impulse signal is segmented and transformed by a preset sliding window. The J-peak probability is predicted and features are extracted using a deep learning model. The heart rate parameters are calculated by combining the J-peak time-series features, and the respiratory parameters are calculated by the respiratory time-series features.
It significantly improves the stability and robustness of J-peak recognition, realizes the joint generation of multiple physiological information such as heart rate and respiration, improves the accuracy of physiological parameter calculation and data utilization, adapts to various noise environments, and supports cardiopulmonary status analysis and sleep time series monitoring.
Smart Images

Figure CN123179141A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of deep learning technology, and in particular to a method and apparatus for jointly generating physiological parameters based on a deep learning model. Background Technology
[0002] Ballistocardiogram (BCG) signals are time-series signals of minute vibrations in the body caused by the beating of the human heart, acquired through non-contact sensors such as piezoelectric sensors and accelerometers. BCG signal acquisition technology has the advantages of being non-invasive, non-contact, and capable of long-term continuous acquisition, and has broad application prospects in areas such as home health data analysis and sleep timeline information interpretation.
[0003] However, BCG signals are weak vibration time-series data, and the analysis process has obvious defects: the amplitude of BCG signals is only in the microvolt range, which is easily affected by various noise pollution such as respiratory interference, body motion interference, and power frequency interference; traditional processing methods based on artificial rules such as morphological filtering and phase space reconstruction have significantly reduced accuracy in detecting the J-peak under low signal-to-noise ratio conditions, making it difficult to identify the timing position of the J-peak; at the same time, respiratory components and heartbeat components are coupled and interfered with each other, making it difficult to separate them and obtain heart rate and respiratory related time-series information synchronously.
[0004] While deep learning-based BCG signal analysis techniques have seen some application, most existing traditional analysis schemes can only output single heart rate information, failing to achieve joint extraction and simultaneous analysis of multiple physiological parameters such as heart rate and respiration, resulting in limited data utilization. Furthermore, traditional recognition methods relying on local waveform features and fixed rules struggle to extract long-term contextual information from signals, exhibiting poor stability and robustness in identifying J-peak features under noise interference. Ultimately, this leads to low overall accuracy in physiological parameter calculations and limited applicability to various scenarios. Summary of the Invention
[0005] Therefore, it is necessary to provide a method and apparatus for jointly generating physiological parameters based on a deep learning model to address the above-mentioned technical problems, thereby solving at least one of the problems existing in the prior art.
[0006] Firstly, a method for jointly generating physiological parameters based on a deep learning model is provided, including: Acquire the cardiac impact signal to be tested and perform preprocessing; The preprocessed cardiac impact signal to be tested is segmented by a preset sliding window. The segmented window signals are then sequentially input into a pre-trained deep learning model to obtain the J-peak probability corresponding to each time point within each sliding window, thus forming a J-peak probability sequence. Based on the J-peak probability sequence, the J-peak temporal characteristics of the cardiac impact signal to be tested are obtained, and the heart rate parameters are calculated based on the J-peak temporal characteristics. Based on the preprocessed cardiac impact signal, the respiratory timing characteristics of the cardiac impact signal to be tested are obtained, and respiratory parameters are calculated based on the respiratory timing characteristics.
[0007] In one possible implementation, the preprocessed cardiac impact signal to be tested is segmented using a preset sliding window, and the segmented window signals are sequentially input into a pre-trained deep learning model to obtain the J-peak probability corresponding to each time point within each sliding window, including: The preprocessed impact signal of the target heart is segmented by sliding window according to the preset window length and sliding step size to obtain multiple continuous window signals. Perform time-frequency transformation on each window signal to generate the time-frequency feature map of the corresponding window; Input the time-frequency feature maps of each window into the trained deep learning model, and perform deep feature extraction and dimension mapping on the time-frequency features through the convolutional coding layer to obtain the high-dimensional time-series features corresponding to each time point; The high-dimensional temporal features are superimposed with learnable positional codes; The high-dimensional temporal features with superimposed learnable positional encodings are input into a multi-layer encoding module for attention calculation to obtain global temporal features. The global temporal features are input into the classification structure, and the J-peak probability is predicted point by point in time to obtain the J-peak probability corresponding to all time points in each window.
[0008] In one possible implementation, obtaining the J-peak time-series characteristics of the cardiac impulse signal to be measured based on the J-peak probability sequence, and calculating heart rate parameters based on the J-peak time-series characteristics, includes: Based on the J-peak probability sequence, a list of J-peak positions of the cardiac impact signal to be tested is determined; Calculate the JJ interval based on the positions of adjacent J peaks; Based on the JJ interval, heart rate and heart rate variability are calculated.
[0009] In one possible implementation, calculating heart rate and heart rate variability based on the JJ interval includes: Based on the JJ interval, the average heart rate and instantaneous heart rate sequence are calculated. The average heart rate is obtained by dividing the unit duration by the mean of the JJ interval, and the instantaneous heart rate sequence is obtained by dividing the unit duration by each JJ interval. Based on the JJ interval, a time-domain index of heart rate variability is calculated. The time-domain index of heart rate variability includes at least one of the following: the standard deviation of all JJ intervals, the root mean square of the difference between adjacent JJ intervals, and the percentage of adjacent JJ interval differences exceeding a preset duration. Based on the JJ interval, a frequency domain index of heart rate variability is calculated, wherein the frequency domain index of heart rate variability includes at least one of low-frequency power, high-frequency power, and the ratio of low-frequency power to high-frequency power.
[0010] In one possible implementation, determining the list of J-peak positions of the cardiac impact signal to be measured based on the J-peak probability sequence includes: Non-maximum suppression processing is performed on each of the J-peak probability sequences to obtain the probability peak values; Within a preset time range corresponding to the time positions of each probability peak, the local maxima of the cardiac impact signal to be tested are searched to obtain the position of the J peak; All J-peak locations are integrated to form the J-peak location list.
[0011] In one possible implementation, the step of searching for local maxima of the cardiac impact signal to be tested within a preset time range corresponding to the time positions of each probability peak, to obtain the J-peak position, includes: The cardiac impact signal sampling index is obtained by mapping the time information corresponding to the probability peak, and the start index and end index of the search interval are determined based on the preset time range. Traverse the amplitude of the cardiac impact signal within the search interval to identify candidate points of local maxima within the interval; When multiple local maxima candidate points are detected within the search interval, the candidate point with the largest amplitude is selected as the J-peak position.
[0012] In one possible implementation, based on the preprocessed cardiac impact signal, respiratory timing features of the cardiac impact signal to be tested are obtained, and respiratory parameters are calculated based on the respiratory timing features, including: Based on the preprocessed cardiac impact signal, the respiratory component signal is extracted; Peak detection is performed on the respiratory component signal to obtain the respiratory peak; The interrespiratory phase sequence is obtained based on the time interval between adjacent respiratory peaks; Based on the respiratory interval sequence, respiratory rate, respiratory rate variability, and respiratory rate trend are calculated.
[0013] In one possible implementation, after segmenting the preprocessed cardiac impact signal using a preset sliding window, and sequentially inputting each segment into a pre-trained deep learning model to obtain the J-peak probability at each time point within each sliding window, thus forming a J-peak probability sequence, the method further includes: Based on the J-peak probability sequence, a signal quality index is calculated, which includes peak sharpness and peak probability sequence entropy. Peak sharpness is the ratio of the average height of local peaks in the J-peak probability sequence to the baseline probability. Peak probability sequence entropy is used to characterize the periodicity of the probability sequence and reflect the degree of noise interference to the signal. Based on the aforementioned signal quality indicators, the signal quality of the cardiac impact signal to be tested is evaluated. Based on the signal quality assessment results, the signal preprocessing noise reduction parameters, model inference parameters, sliding window length and step size, and peak selection constraint parameters are adaptively adjusted to meet the signal detection requirements under different noise environments.
[0014] In one possible implementation, the method further includes: Based on the respiratory parameters, the mean respiratory rate and the coefficient of variation of respiratory rate are calculated in each time window according to the preset time window. Based on the heart rate parameters, the corresponding time-domain index and frequency-domain index of heart rate variability within each time window are calculated according to a preset time window. The mean respiratory rate, coefficient of variation of respiratory rate, time-domain index of heart rate variability, and frequency-domain index of heart rate variability are input into a preset stage model to obtain a sleep state sequence. A sleep structure diagram is generated based on the sleep state sequence; Based on the aforementioned sleep structure diagram, sleep quality assessment indicators were calculated. Based on the aforementioned sleep quality assessment indicators, a sleep assessment process is performed.
[0015] Secondly, a device for jointly generating physiological parameters based on a deep learning model is provided, comprising: The cardiac impact signal acquisition and preprocessing unit is used to acquire the cardiac impact signal to be tested and perform preprocessing. The J-peak probability prediction unit is used to segment the preprocessed cardiac impact signal to be tested using a preset sliding window. The segmented window signals are then sequentially input into a pre-trained deep learning model to obtain the J-peak probability corresponding to each time point within each sliding window, thus forming a J-peak probability sequence. The heart rate parameter calculation unit is used to obtain the J-peak time sequence characteristics of the cardiac impact signal to be tested based on the J-peak probability sequence, and to calculate the heart rate parameters based on the J-peak time sequence characteristics. The respiratory parameter calculation unit is used to obtain the respiratory timing characteristics of the cardiac impact signal to be tested based on the preprocessed cardiac impact signal, and to calculate respiratory parameters based on the respiratory timing characteristics.
[0016] The aforementioned method and apparatus for jointly generating physiological parameters based on a deep learning model includes the following steps: acquiring a cardiac impact signal to be tested and preprocessing it; segmenting the preprocessed cardiac impact signal using a preset sliding window, sequentially inputting each segment into a pre-trained deep learning model to obtain the J-peak probability corresponding to each time point within each sliding window, forming a J-peak probability sequence; acquiring the J-peak temporal features of the cardiac impact signal to be tested based on the J-peak temporal features, and calculating heart rate parameters based on the J-peak temporal features; acquiring the respiratory temporal features of the cardiac impact signal to be tested based on the preprocessed cardiac impact signal, and calculating respiratory parameters based on the respiratory temporal features. In this embodiment, by continuously segmenting and analyzing the preprocessed temporal signal using a preset sliding window, and relying on a trained deep learning model to achieve time-point J-peak probability prediction, the technical defects of traditional fixed-rule algorithms that rely on local waveform features and cannot mine long-term temporal context information are effectively overcome. Furthermore, by employing a data-driven temporal feature modeling approach, the stability and robustness of J-peak identification in low signal-to-noise ratio interference scenarios are significantly improved, avoiding the peak-point missed detection and false detection problems that are prone to occur in traditional methods. Simultaneously, J-peak temporal feature analysis and respiratory temporal feature extraction can be completed simultaneously based on the same set of BCG temporal data, achieving the joint generation of multiple physiological information such as heart rate and respiration. This overcomes the limitations of traditional solutions that can only output a single heart rate parameter and utilize only a single data dimension, greatly improving the completeness of BCG temporal data analysis and information utilization. It effectively addresses the problems of low accuracy in physiological parameter calculation and poor scenario adaptability in traditional techniques, providing high-precision and highly robust basic temporal feature support for subsequent higher-level data applications such as cardiopulmonary status analysis and sleep temporal monitoring. Attached Figure Description
[0017] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments of this application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0018] Figure 1 This is a flowchart illustrating a method for jointly generating physiological parameters based on a deep learning model, as described in one embodiment of this application. Figure 1 ; Figure 2 This is a flowchart illustrating a method for jointly generating physiological parameters based on a deep learning model, as described in one embodiment of this application. Figure 2 ; Figure 3 This is a schematic diagram comparing the original BCG signal and the preprocessed BCG signal in one embodiment of this application; Figure 4 This is a schematic diagram of the structure of a deep learning model in one embodiment of this application. Figure 1 ; Figure 5 This is a schematic diagram of the structure of a deep learning model in one embodiment of this application. Figure 2 ; Figure 6 This is a CWT time-frequency diagram of the BCG signal in one embodiment of this application; Figure 7 This is a schematic diagram comparing the J-peak detection results with the ECG gold standard in one embodiment of this application; Figure 8 This is a schematic diagram showing the comparison between the BCG signal, the actual J-peak label, and the J-peak probability heatmap in one embodiment of this application; Figure 9 This is a visualization diagram of the time-domain and frequency-domain indices of heart rate variability in one embodiment of this application; Figure 10 This is a schematic diagram of the respiratory component extraction effect in one embodiment of this application; Figure 11 This is a schematic diagram of a physiological parameter joint generation device based on a deep learning model in one embodiment of this application; Figure 12 This is a schematic diagram of a computer device according to an embodiment of this application. Detailed Implementation
[0019] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0020] In one embodiment, such as Figure 1 , Figure 2 As shown, a method for jointly generating physiological parameters based on a deep learning model is provided, including the following steps: In step S110, the cardiac impact signal to be tested is acquired and preprocessed; Optionally, the raw BCG vibration signal generated by the heartbeat of the target user can be acquired using a piezoelectric thin-film sensor, accelerometer, or force sensor. The signal sampling rate can be set to 200Hz–1000Hz to obtain continuous raw BCG time-series data. Since the raw BCG signal amplitude is weak, it is easily mixed with 50Hz power frequency interference, baseline drift, high-frequency noise, and human body motion noise. Therefore, multi-stage preprocessing of the raw signal is required to purify the effective signal. Specifically, an IIR notch filter can be used to filter the original BCG signal, removing 50Hz power frequency interference introduced by the environment. The filter Q value is set to 20-50 to ensure deep suppression of power frequency noise without damaging the effective signal components. Then, a fourth-order Butterworth bandpass filter is used to perform frequency domain filtering on the notch-filtered signal. The bandpass range is set to 0.3Hz-35Hz to effectively filter out low-frequency baseline drift noise and high-frequency invalid noise components, while retaining the effective temporal components corresponding to heartbeats and respiration. Finally, the filtered signal is normalized to constrain the signal amplitude to a uniform range, eliminating interference caused by amplitude fluctuations under different acquisition conditions. Figure 3 As shown, the J-peak feature is significantly more prominent in the preprocessed BCG signal compared to the original BCG signal. The resulting preprocessed BCG signal exhibits high signal-to-noise ratio and stable temporal characteristics, providing high-quality, standardized input data for subsequent sliding window segmentation, deep learning model J-peak probability prediction, and calculation of cardiopulmonary physiological parameters.
[0021] In step S120, a preset sliding window is used to segment the preprocessed cardiac impact signal to be tested. The segmented window signals are then sequentially input into a pre-trained deep learning model to obtain the J-peak probability corresponding to each time point within each sliding window, thus forming a J-peak probability sequence. Optionally, the preprocessed cardiac impact signal is segmented continuously using a preset sliding window strategy. A fixed window length is set, for example, 10 seconds (corresponding to 5000 sampling points), consistent with the length used during model training. A fixed sliding step size is also set, half the window length, for example, 5 seconds (corresponding to 2500 sampling points). The complete BCG time series signal is processed frame-by-frame, without omissions, and continuously windowed to obtain multiple segments of time-series continuous signals with partial overlap. Each segment is sequentially input into a pre-trained deep learning model for temporal feature analysis and probabilistic inference. The model performs point-by-point feature discrimination for all time nodes within each window, outputting the predicted probability of each time point corresponding to the J-peak. After traversing all window signals and completing point-by-point probability prediction, the probability results corresponding to all windows are temporally spliced and integrated to form a continuous and complete J-peak probability sequence perfectly aligned with the original cardiac impact signal duration, thus realizing the transformation from the original waveform time series data to the J-peak probability feature sequence.
[0022] In step S130, based on the J-peak probability sequence, the J-peak temporal characteristics of the cardiac impact signal to be tested are obtained, and the heart rate parameters are calculated based on the J-peak temporal characteristics. Optionally, after obtaining a continuous and complete J-peak probability sequence, the J-peak temporal features of the cardiac impact signal to be tested can be accurately extracted based on the predicted probability values of the J-peaks at each time point. Specifically, by setting a reasonable probability threshold, the J-peak probability sequence is filtered, and the temporal positions with probability values greater than the preset probability threshold are determined as valid J-peak positions. This accurately locates the temporal coordinates of all true J-peaks in the entire BCG time-series signal, obtaining a complete J-peak temporal feature sequence. On this basis, continuous JJ interval temporal information is calculated by the temporal position difference between adjacent valid J-peaks. Based on multiple sets of JJ interval data, heart rate parameters, such as heart rate and heart rate variability, are further solved, achieving effective and stable heart rate calculation based on BCG time-series data. Peak point filtering using the probability sequence output by the deep learning model, compared to traditional fixed waveform discrimination rules, can effectively avoid the problems of false peaks and missing peaks caused by noise interference, significantly improving the accuracy and stability of heart rate parameter calculation in complex noise scenarios.
[0023] In step S140, based on the preprocessed cardiac impact signal, the respiratory timing characteristics of the cardiac impact signal to be tested are obtained, and respiratory parameters are calculated based on the respiratory timing characteristics.
[0024] Optionally, hidden respiratory timing features can be further mined based on the preprocessed high-quality cardiac impulse signal to achieve stable solutions for respiratory parameters. Since human respiratory movements induce minute periodic vibrations in the body, coupled with the BCG timing signal, the preprocessed BCG signal carries complete respiratory rhythm timing information. By directly performing timing feature analysis on the preprocessed, power frequency noise-removed, and baseline-drift-free clean BCG signal, the periodic fluctuations in respiratory timing features are extracted, accurately characterizing the periodic changes in respiratory rhythm. Based on the extracted continuous respiratory timing features, the number of respiratory cycles per unit time is counted, and the corresponding respiratory parameters, such as respiratory rate, respiratory rate trend, and respiratory variability, are calculated, enabling simultaneous analysis of both cardiopulmonary and respiratory core parameters using a single BCG signal. This processing method eliminates the need for additional independent acquisition equipment, fully exploits the multi-dimensional timing information of the BCG signal, and solves the technical pain points of traditional analysis schemes, such as the difficulty in effectively separating heartbeat and respiratory signals and the inability to simultaneously solve cardiopulmonary parameters. This improves the information utilization efficiency and parameter analysis comprehensiveness of BCG timing data.
[0025] It should be noted that, based on real-time analysis of heart rate, heart rate variability, respiratory parameters, and J-peak probability sequences, multi-dimensional intelligent early warning of arrhythmias, apnea, and bodily movement events is achieved. Specifically, it continuously monitors instantaneous heart rate changes. When a tachycardia state with an instantaneous heart rate consistently greater than 100 bpm or a bradycardia state consistently less than 50 bpm lasts for more than 10 seconds, an abnormal heart rate warning is automatically triggered. Simultaneously, it combines HRV indicators for joint judgment. If a sharp drop in RMSSD is detected accompanied by a sudden change in heart rate, it can further indicate the risk of arrhythmias such as atrial fibrillation, improving the accuracy of abnormality identification. For respiratory abnormalities, it tracks respiratory rate fluctuations in real time. When the respiratory rate drops by more than 50% and this abnormal state lasts for more than 10 seconds, and is matched with a sudden increase in the HRV frequency domain indicator LF / HF ratio and compensatory activation of the sympathetic nervous system, it determines that there is a risk of apnea and triggers an early warning. In addition, the model can combine the J-peak probability sequence output by the model with the respiratory component signal to detect body movement and getting out of bed. When the probability sequence shows a continuous low probability flat state for more than 30 seconds, and the amplitude of the respiratory component signal is suddenly attenuated, the user's getting out of bed behavior can be accurately determined and an getting out of bed alarm can be triggered. It can be effectively adapted to home-based health and wellness monitoring scenarios such as nighttime monitoring in nursing homes, and realize real-time early warning of multi-dimensional physiological abnormalities and dangerous behaviors.
[0026] Furthermore, the system can perform diurnal comparison analysis, long-term trend tracking, and personalized health report generation on the acquired physiological parameters. It separately calculates the average heart rate, HRV (Heart Rate Value), and respiratory rate during daytime activity and nighttime sleep to establish an individual physiological baseline for each user. Normally, daytime heart rate is 10-20 beats / minute higher than nighttime heart rate; if the measured results significantly deviate from this range, it suggests possible autonomic nervous system regulation abnormalities. The system further aggregates and statistically analyzes various physiological parameters at daily, weekly, and monthly granularities and plots long-term trend graphs. A continuously decreasing HRV index can serve as a biomarker for chronic stress accumulation or cardiovascular function decline. Based on all the above analysis results, the system can automatically generate a comprehensive personalized health report, covering heart rate trends, HRV analysis, respiratory rate statistics, and sleep quality assessment. The report also supports PDF export, facilitating reference for doctors during follow-up visits and enabling long-term, traceable home health monitoring.
[0027] For example, in scenarios requiring long-term, unobtrusive cardiopulmonary rhythm (BCG) monitoring during home sleep, array-type piezoelectric sensing hardware can be used to continuously acquire and intelligently analyze cardiac impulse signals during sleep. The hardware system can be configured with an 8×8 array of piezoelectric thin-film sensors (64 channels in total), deployed entirely under the mattress. Without requiring any wearable devices, it can imperceptibly acquire weak body vibration signals caused by heartbeats and respiratory fluctuations during sleep. The main control chip uses an ARM Cortex-M7 chip, with a fixed signal sampling frequency of 500Hz to ensure the integrity of the weak BCG signals. The specific monitoring process is as follows: Raw BCG signals are continuously acquired throughout the user's sleep, with a single monitoring session lasting up to 12 hours, enabling continuous recording of sleep data throughout the night. Standardized preprocessing operations are performed on the acquired raw BCG signals, sequentially removing 50Hz power frequency interference through an IIR notch filter and retaining the effective frequency band signal from 0.5Hz to 35Hz using a bandpass filter, filtering out baseline drift and high-frequency noise, and purifying the effective temporal signal during sleep. Subsequently, continuous wavelet transform time-frequency analysis was performed on the preprocessed time-series signal. Thirty-two sets of scale parameters were selected to generate BCG time-frequency feature maps corresponding to each 10-second duration. These time-frequency features were input into a trained Transformer deep learning model, outputting a J-peak probability sequence corresponding to the time-series dimension. Further peak filtering using a non-maximum suppression algorithm was employed to accurately locate all valid J-peak positions within the entire overnight time-series. Based on the continuous J-peak time-series information, the JJ interval sequence was calculated, yielding the overnight heart rate change trend and heart rate variability (HRV) index. Simultaneously, respiratory rhythm information was extracted by combining the respiratory coupling time-series features of the BCG signal, generating the overnight respiratory rate change trend. Finally, high-precision heart rate, HRV, and respiratory rhythm time-series data were used as core auxiliary features for sleep staging, achieving contactless, long-term, refined sleep health monitoring.
[0028] In another example, for a lightweight, real-time cardiopulmonary health monitoring scenario targeting daytime office work and sedentary environments, real-time analysis and anomaly warning of BCG signals in a seated state can be achieved through extremely simple channel sensing hardware. The hardware can employ a single-channel piezoelectric sensor, embedded in the seat back, adapted to the body vibration sensing characteristics of a seated posture; the main control unit uses the lightweight ESP32 main control chip, which has low power consumption and is easy to deploy, with a signal sampling rate set to 200Hz, meeting the data accuracy requirements for short-term daytime health monitoring. The specific monitoring process is as follows: continuous BCG signals are collected from the user in a static seated state, with a single monitoring duration of 30 minutes. To address the noise characteristics of daytime seated monitoring, the raw signal undergoes adaptive preprocessing: a 50Hz notch filter is used to eliminate environmental power frequency interference, and a 0.5Hz–30Hz bandpass filter is used to select effective cardiopulmonary signal frequency bands, adapting to the noise suppression requirements of small-amplitude body movements during the day. The processed time-series signal is segmented into 5-second units for time-frequency analysis. A lightweight CWT time-frequency graph is generated by setting 24 sets of wavelet scaling parameters and input into a customized lightweight Transformer model for inference. This model uses only a two-layer Transformer Encoder structure, with a basic dimension d_model configured to 64, ensuring inference speed while adapting to edge device deployment. After the model outputs a time-point J-peak probability sequence, the effective J-peak time-series positions are obtained through peak value filtering. Real-time calculations of instantaneous heart rate and heart rate variability parameters under the user's seated posture are performed. Simultaneously, a built-in heart rate anomaly warning logic is implemented. When a real-time heart rate is detected to be above 100 bpm or below 50 bpm for more than 10 seconds, an automatic heart rate anomaly alarm is triggered, enabling real-time monitoring and abnormal risk alerts for cardiopulmonary status during prolonged sitting during the day, adapting to lightweight terminal application scenarios.
[0029] This application provides a method for jointly generating physiological parameters based on a deep learning model, comprising: acquiring a cardiac impact signal to be tested and preprocessing it; segmenting the preprocessed cardiac impact signal using a preset sliding window, and sequentially inputting the segmented window signals into a pre-trained deep learning model to obtain the J-peak probability corresponding to each time point within each sliding window, forming a J-peak probability sequence; acquiring the J-peak temporal features of the cardiac impact signal to be tested based on the J-peak temporal features, and calculating heart rate parameters based on the J-peak temporal features; acquiring the respiratory temporal features of the cardiac impact signal to be tested based on the preprocessed cardiac impact signal, and calculating respiratory parameters based on the respiratory temporal features. In this application embodiment, by continuously segmenting and analyzing the preprocessed temporal signal using a preset sliding window, and relying on a trained deep learning model to achieve time-point J-peak probability prediction, the technical defects of traditional fixed-rule algorithms that rely on local waveform features and cannot mine long-term temporal context information are effectively overcome. To address the issues of weak BCG signals, complex noise, and poor recognition accuracy due to frequency-domain coupling of heart rate and respiratory components, this paper proposes a data-driven temporal feature modeling approach. This significantly improves the stability and robustness of J-peak recognition in low signal-to-noise ratio interference scenarios, avoiding the peak-point missed detection and false detection problems common in traditional methods. Furthermore, it enables simultaneous J-peak temporal feature analysis and respiratory temporal feature extraction based on the same set of BCG temporal data, achieving the joint generation of multiple physiological information related to heart rate and respiration. This overcomes the limitations of traditional solutions that can only output a single heart rate parameter and utilize only a single data dimension, greatly improving the completeness and information utilization of BCG temporal data analysis. It effectively addresses the problems of low accuracy in physiological parameter calculation and poor scenario adaptability in traditional techniques, providing high-precision and robust basic temporal feature support for subsequent higher-level data applications such as cardiopulmonary status analysis and sleep time-series monitoring.
[0030] In one embodiment of this application, the preprocessed cardiac impact signal to be tested is segmented using a preset sliding window, and the segmented window signals are sequentially input into a pre-trained deep learning model to obtain the J-peak probability corresponding to each time point within each sliding window, including: The preprocessed impact signal of the target heart is segmented by sliding window according to the preset window length and sliding step size to obtain multiple continuous window signals. Perform time-frequency transformation on each window signal to generate the time-frequency feature map of the corresponding window; Input the time-frequency feature maps of each window into the trained deep learning model, and perform deep feature extraction and dimension mapping on the time-frequency features through the convolutional coding layer to obtain the high-dimensional time-series features corresponding to each time point; The high-dimensional temporal features are superimposed with learnable positional codes; The high-dimensional temporal features with superimposed learnable positional encodings are input into a multi-layer encoding module for attention calculation to obtain global temporal features. The global temporal features are input into the classification structure, and the J-peak probability is predicted point by point in time to obtain the J-peak probability corresponding to all time points in each window.
[0031] Optionally, the preprocessed cardiac impact signal to be tested is subjected to sliding window segmentation according to a preset window length and sliding step size (step size = window length / 2) to obtain multiple continuous window signal segments. Time-frequency transformation is performed on each window signal segment to generate a time-frequency feature map for the corresponding window. The time-frequency feature maps of each window are input into a trained deep learning model. The model performs deep extraction and dimensionality mapping of the time-frequency features through convolutional coding layers to obtain high-dimensional temporal features corresponding to each time point. Then, learnable positional codes are superimposed on these high-dimensional temporal features, and the high-dimensional temporal features fused with positional information are fed into a multi-layer coding module for attention calculation to mine global temporal features. Finally, the global temporal features are input into a classification structure to perform J-peak probability prediction at each time point, outputting the J-peak probabilities corresponding to all time points within each window, and integrating them to obtain the J-peak probability sequence.
[0032] This deep learning model can provide a temporal modeling structure for Transformers, and the model structure is as follows: Figure 4 , Figure 5 As shown, the model consists of an input layer, a convolutional coding layer, a learnable positional coding layer, a multi-layer Transformer encoder, a classification head, and an output layer.
[0033] The convolutional coding layer employs a two-stage one-dimensional convolutional combination structure: Conv1d(scales →d_model,kernel=7)+BN+ReLU+Conv1d(d_model→d_model,kernel=3)+BN+ReLU. This two-stage convolutional operation maps the original temporal features to a dimension and refines local features, while batch normalization and ReLU activation enhance feature representation. First, a one-dimensional convolution maps the input feature dimension to the model's baseline dimension d_model, with a kernel size of 7. Batch normalization and ReLU activation are then applied sequentially for feature normalization and non-linear enhancement. Next, a one-dimensional convolution with a kernel size of 3 further refines the local temporal features, and batch normalization and ReLU activation are performed again to obtain high-dimensional temporal features.
[0034] The model has a built-in learnable positional encoding, PositionalEmbedding, which is a trainable parameter with a dimension of 1×time×d_model. It can adaptively fit the temporal position information of cardiac impact signals and provide positional priors for global temporal feature modeling.
[0035] The model backend uses N stacked Transformer Encoders to complete global temporal correlation modeling, where the number of stacked layers N ranges from 3 to 6. Each Transformer Encoder layer is configured with multi-head attention, a feedforward network, and a regularized residual optimization structure. The specific parameters are as follows: the number of multi-head attention heads is set to 4 to 8, and the basic model dimension d_model is set to 64 to 256. The feedforward network adopts a dimension transformation structure of d_model → 4×d_model → d_model. At the same time, each network layer is configured with residual connections, LayerNorm layer normalization, and Dropout regularization, with Dropout coefficients ranging from 0.1 to 0.3, which effectively improves the model's generalization ability and temporal modeling stability.
[0036] The global temporal features are input into the classification head after being encoded by a multi-layer Transformer Encoder. The classification head structure is Linear(d_model→d_model / 2)+ReLU+Dropout+Linear(d_model / 2→1)+Sigmoid. Through multi-level linear transformation, activation regularization, and normalized activation processing, the confidence of the J-peak at each time point is determined. Finally, the output layer outputs a J-peak probability sequence with a dimension of (batch, time). The output value corresponding to each time point in the sequence is between 0 and 1, which is used to represent the probability confidence that the corresponding temporal position is the true J-peak.
[0037] It should be noted that this deep learning model can be trained in the following way to ensure the accuracy and robustness of the model in identifying the J-peak of the BCG signal. During the model training phase, a large-scale cardiac impact signal sample data is first collected. After performing the aforementioned signal preprocessing operations on the raw BCG sample data, it is sliced according to a fixed duration (e.g., 10 seconds) to form standardized training sample segments. At a sampling rate of 500Hz, each sample contains 5000 time points. Then, a continuous wavelet transform (CWT) is performed on each sample using complex Morlet wavelets (CMOR), with a scale of 32, covering a frequency range of 0.5–35Hz, generating a CWT time-frequency map of size 32×5000. (See [reference needed]). Figure 6 Synchronously acquired electrocardiogram (ECG) signals for the corresponding time periods were used as the gold standard for ground truth. Based on the time sequence position of the R peak in the ECG signal, the corresponding J peak position was precisely labeled on the BCG time sequence dimension. The time point where the J peak was located was labeled as 1, and the other time points were labeled as 0, forming a binary label sequence. A point-by-point binary classification labeling method was used to label each time point as a positive or negative sample, completing the ground truth labeling of the samples. The samples were then divided into training set, validation set, and test set according to a preset ratio.
[0038] During model training, the generated CWT time-frequency image is first used as the input tensor with a shape of (batch_size, scales=32, time=5000). This tensor passes through convolutional encoding layers: The first Conv1d layer: input → output channels d_model (set to 128), kernel size 7, stride 1, padding=3 to maintain the time dimension; Batch Normalization + ReLU activation; The second Conv1d layer: 128 → 128, kernel size 3, padding=1; Batch Normalization + ReLU activation. The output shape after convolutional encoding is (batch_size, d_model=128, time=5000), meaning each time point is mapped to a 128-dimensional feature vector. The dimensions are then rearranged to (batch_size, time=5000, d_model=128), and the input is a learnable positional encoding layer, which is a trainable parameter matrix with a shape of (1, 5000, 128). This layer is added to the convolutional output to inject temporal order information into the model.
[0039] The position-encoded sequence is passed through N layers (N=4) of Transformer Encoders. Each layer contains: Multi-Head Self-Attention: 8 heads, each with a dimension of d_k = d_model / 8 = 16. For each head, the input sequence is transformed into Q (Query), K (Key), and V (Value) through three independent linear transformations, and the attention score Attention(Q,K,V) = softmax(QK^T / √d_k)V is calculated. The outputs of the 8 heads are concatenated and linearly transformed to restore the 128-dimensional sequence. Residual connections and layer normalization: x = LayerNorm(x + MultiHeadAttention(x)); Feedforward Network (FFN): Two fully connected layers with a structure of 128→512→128, with ReLU activation in the intermediate layers; Residual connections and layer normalization: x = LayerNorm(x + FFN(x)); Dropout: Dropout = 0.2 is set for each layer for regularization to prevent overfitting. After four layers of encoders, the output shape remains (batch_size, time=5000, d_model=128), and the feature vectors at each time point have been fused with global temporal context information.
[0040] The encoder output is processed by the classification head: Linear: 128 → 64, +ReLU activation; Dropout: 0.2; Linear: 64 → 1; Sigmoid activation: compresses the output to the (0,1) interval, representing the probability of the J peak at that time point. The final output is a probability sequence of shape (batch_size, time=5000), with each time point corresponding to a probability value between 0 and 1.
[0041] The AdamW optimizer was used for iterative updates of model parameters during training, with an initial learning rate of 1e-4 and a weight decay coefficient of 1e-5. Cosine annealing or a linear decay strategy with warmup was employed to dynamically adjust the learning rate, improving model convergence stability and optimal solution fitting ability. To avoid gradient explosion during training, gradient clipping constraints were implemented, uniformly clipping the gradient norm to 1.0. Furthermore, an early stopping mechanism was introduced: training automatically terminated when the validation set loss did not decrease for 10 consecutive training epochs, preserving the model weights with optimal validation accuracy. This resulted in a trained deep learning model suitable for J-peak probability prediction.
[0042] Furthermore, to address the extreme imbalance between positive and negative samples in the BCG signal J-peak detection task, FocalLoss can be used as the loss function to calculate model error and update parameters, as detailed below: ; In this model, the positive sample weight coefficient α = 0.25 and the focusing parameter γ = 2.0. For each time point, if the true label is 1 (J peak), then p_t is the probability value output by the model; if the true label is 0 (non-J peak), then p_t = 1 - the probability value output by the model. Focal Loss reduces the loss contribution of easily classified samples through the (1-p_t)^γ term, allowing the model to focus on difficult-to-classify samples, effectively addressing the extreme imbalance problem in J peak detection where the number of positive samples (J peak) is far less than that of negative samples (non-J peak).
[0043] like Figure 7 As shown, during the offline model validation phase, the BCG signal J-peak detection results were compared with the synchronously acquired ECG signal (gold standard). This comparison was only performed during the algorithm development and testing phase and not during the real-time monitoring process at the terminal. During the comparison, the time-series position of the J-peak detected by BCG was time-aligned with the R-wave position identified by ECG, and evaluation indicators such as sensitivity, F1 value, and time-series positioning error were calculated. The purpose was to quantitatively evaluate the accuracy and positioning precision of the J-peak detection algorithm, analyze missed and false detection samples to guide model iteration and optimization, objectively verify the consistency between this BCG J-peak detection scheme and the ECG gold standard, and provide experimental support for the algorithm's effectiveness.
[0044] In addition, such as Figure 8 As shown, a method for visualizing the heatmap of attention weights of the Transformer model for the BCG signal J-peak detection task is also provided. This method is used to achieve interpretability analysis of model decisions, source tracing of sample errors, and evaluation of model generalization ability. Specifically, it can be implemented based on the multi-head self-attention mechanism of the Transformer encoder. The dimension of the attention weight matrix output by the model is (batch_size, n_heads, seq_len, seq_len), where seq_len corresponds to the length of the BCG time-series signal. The specific implementation steps are as follows: First, during model training or inference, a forward hook function is registered for each layer of the Transformer Encoder's self-attention module. The attention weight matrix output by each layer is captured in real time through the hook function, and the weight data is decoupled from the computation graph and stored via CPU migration, completing the full acquisition of multi-layer attention data. The details are shown below: attention_weights = [] def capture_attn(module, input, output): # Extract the attention weight matrix from the output of the attention layer. attn_weights = module.attn_weights# shape: (batch, n_heads, seq_len,seq_len) attention_weights.append(attn_weights.detach().cpu()) for layer in model.encoder.layers: layer.self_attn.register_forward_hook(capture_attn) Secondly, target level and attention head selection are performed. For the BCG signal J-peak detection task, the attention weight of the last encoder layer is extracted first. This layer contains rich high-level temporal dependencies and can accurately represent the long-term and short-term correlation features of the heartbeat rhythm. The weights of all attention heads can be averaged according to the needs, or specific attention heads that focus on the local waveform of the J-peak and the long-term features of the heartbeat can be selected to adapt to different analysis scenarios.
[0045] Subsequently, a visual heatmap is generated based on the filtered attention weight matrix. The single-sample attention matrix after the last layer of multi-head averaging is used as the plotting data. A coordinate system is constructed with the Query time step as the vertical axis and the Key time step as the horizontal axis. The intensity of color represents the magnitude of attention weights, intuitively presenting the distribution characteristics of the model's temporal attention regions. To further enhance the visualization effect and intuitiveness, the heatmap can be superimposed and fused with the original BCG signal waveform. The BCG amplitude curves at the corresponding time points are matched at the edges of the heatmap to accurately locate the waveform regions with high attention coverage of the model, including key feature positions such as the peak of the J peak, the rising edge, and the falling edge.
[0046] For example: a heatmap is plotted using the attention weight matrix of a single head or after averaging. attn = attention_weights[-1].mean(dim=1)[0] # Last layer, multi-head average, taking the first sample plt.imshow(attn, cmap='viridis', aspect='auto') plt.xlabel('Key Time Step') plt.ylabel('Query Time Step') plt.colorbar(label='Attention Weight') plt.title(f'Layer {layer_idx} Attention Heat map of a specific layer') The horizontal axis represents the Key time step (the position where attention is received), and the vertical axis represents the Query time step (the position where attention is initiated). The darker the color, the greater the attention weight.
[0047] To enhance interpretability, the attention weight heatmap can be overlaid with the original BCG signal waveform: the BCG signal amplitude curves at the corresponding time points are plotted at the row / column edges of the heatmap, which visually shows which waveform regions (such as the rising edge, falling edge, or peak of the J peak) the model allocates higher attention to.
[0048] Building upon this foundation, the attention heatmap offers multi-dimensional application value: First, it can be used to verify model interpretability. By comparing the weight distribution of different network layers and attention heads, it verifies whether the model accurately focuses on the time-frequency characteristic region of the BCG signal J-peak. If the attention is concentrated on invalid regions such as noise or respiratory interference, it can be determined that the model has overfitting or feature learning bias issues. Second, it can be used for source analysis of difficult samples. For abnormal prediction samples such as missed J-peaks and false peaks, a dedicated attention heatmap is generated to locate the temporal position of the model's attention bias, providing data support for model structure optimization and feature selection strategy iteration. Third, it can be used to evaluate the model's personalized generalization ability. For the different amplitude, waveform width, and morphological characteristics of the BCG J-peaks of different users, the differences in the model's attention distribution can be compared and analyzed to verify the model's adaptability to different individual signals. Fourth, it can be deployed on edge monitoring terminals, connecting the real-time attention heatmap to the monitoring dashboard to intuitively display the decision basis for the model's J-peak detection, effectively improving the credibility and practicality of medical-grade physiological monitoring algorithms.
[0049] like Figure 9 As shown, in one embodiment of this application, the step of obtaining the J-peak time-series characteristics of the cardiac impulse signal to be tested based on the J-peak probability sequence, and calculating heart rate parameters based on the J-peak time-series characteristics, includes: Based on the J-peak probability sequence, a list of J-peak positions of the cardiac impact signal to be tested is determined; Calculate the JJ interval based on the positions of adjacent J peaks; Based on the JJ interval, heart rate and heart rate variability are calculated.
[0050] Optionally, based on the complete J-peak probability sequence output by the deep learning model, a non-maximum suppression method is used to filter out the probability peak points in the sequence. Within the preset time range corresponding to each probability peak, the local maximum value of the original BCG waveform under test is searched as the effective J-peak position after precise correction. All effective J-peak time coordinates are integrated to generate a J-peak position list. After obtaining all effective J-peak positions, the time difference between two adjacent J-peaks is calculated sequentially to obtain a continuous JJ interval sequence, as shown below: JJ_i=(J_{i+1}-J_i) / fs; Where JJ_i represents the i-th JJ interval, J_i represents the sampling point number corresponding to the i-th J peak, J_{i+1} represents the sampling point number corresponding to the (i+1)-th J peak, and fs represents the sampling frequency of the BCG signal (unit: Hz, sampling points / second).
[0051] Then, based on the obtained JJ interval, the real-time heart rate and average heart rate parameters are calculated by combining the signal sampling frequency. At the same time, the time series characteristics of the continuously fluctuating JJ interval are further statistically analyzed to calculate the heart rate variability related index. This achieves accurate and stable analysis of heart rate and heart rate variability parameters based on BCG signal, effectively improving the problem of positioning deviation and spurious peak interference that are easy to occur in the single probability threshold determination.
[0052] In one embodiment of this application, calculating heart rate and heart rate variability based on the JJ interval includes: Based on the JJ interval, the average heart rate and instantaneous heart rate sequence are calculated. The average heart rate is obtained by dividing the unit duration by the mean of the JJ interval, and the instantaneous heart rate sequence is obtained by dividing the unit duration by each JJ interval. Based on the JJ interval, a time-domain index of heart rate variability is calculated. The time-domain index of heart rate variability includes at least one of the following: the standard deviation of all JJ intervals, the root mean square of the difference between adjacent JJ intervals, and the percentage of adjacent JJ interval differences exceeding a preset duration. Based on the JJ interval, a frequency domain index of heart rate variability is calculated, wherein the frequency domain index of heart rate variability includes at least one of low-frequency power, high-frequency power, and the ratio of low-frequency power to high-frequency power.
[0053] Optionally, after obtaining the JJ interval, abnormal intervals can be filtered out, such as removing intervals shorter than 0.3 seconds or longer than 2.0 seconds (corresponding to 30-200 bpm), thus obtaining the effective JJ interval. Then, heart rate parameters can be calculated using a time-series conversion method. The average heart rate is obtained by dividing the unit duration by the mean of the effective JJ intervals. Simultaneously, the instantaneous heart rate sequence is generated point-by-point by dividing the unit duration by each effective JJ interval, completely reconstructing the dynamic fluctuation process of heart rate. Specifically, the average heart rate and the instantaneous heart rate sequence can be represented as follows: Average heart rate = 60 / mean(JJ_intervals) (beats / minute); Instantaneous heart rate sequence = 60 / JJ_intervals (beats / minute); Where JJ_intervals represents the effective JJ interval sequence, mean(JJ_intervals) represents the average of all JJ intervals, and 60 is the number of seconds corresponding to 1 minute, used to convert the interval in seconds into heart rate per minute.
[0054] Based on this, heart rate variability time-domain and frequency-domain indices are calculated synchronously using JJ interval sequences. The time-domain indices can be selected from at least one of the following: the standard deviation of all JJ intervals (SDNN, unit: milliseconds), the root mean square standard deviation (RMSSD) of the difference between adjacent JJ intervals (unit: milliseconds), and the percentage of adjacent JJ intervals exceeding the threshold (pNN50, unit: %), used to characterize the short-term fluctuation characteristics of heart rhythm. Specifically, RMSSD can be calculated using the following formula: ; Where N represents the number of intervals in the JJ interval sequence. This represents the i-th inter-J period. This represents the (i+1)th JJ interval.
[0055] Furthermore, frequency domain indicators can be selected from at least one of the following: low-frequency power LF (power integral in the 0.04-0.15Hz band), high-frequency power HF (power integral in the 0.15-0.4Hz band), and the ratio of low-frequency power to high-frequency power LF / HF, to reflect the regulatory state of the human sympathetic and parasympathetic nervous systems. Through multi-dimensional, time-frequency combined indicator calculation, the dynamic changes in heart rate rhythm can be comprehensively and accurately characterized, achieving high-precision analysis of heart rate and heart rate variability parameters based on BCG signals.
[0056] In one implementation scenario, after obtaining the heart rate variability (HRV) of the target user based on the measured BCG signal, a cardiovascular health risk assessment can be performed. The LF / HF ratio, a frequency domain index of HRV, represents the balance between the sympathetic and parasympathetic nervous systems. A persistently high LF / HF ratio indicates overactivation of the sympathetic nervous system, corresponding to an increased risk of hypertension, anxiety, and adverse cardiovascular events. Conversely, a persistently low LF / HF ratio suggests excessive parasympathetic dominance or impaired cardiac function. Long-term HRV trend analysis can also be performed, statistically analyzing the changing trend of the SDNN index over a 24-hour period. A sustained decline in SDNN can indicate deterioration of autonomic nervous system function, serving as an early warning indicator for cardiovascular abnormalities. Furthermore, the HRV Triangular Index can be calculated by constructing a statistical histogram of the JJ interval, dividing the total area of the histogram by the height of the main peak, thus achieving a comprehensive assessment of the overall HRV level. This completes the quantitative analysis of autonomic nervous system status based on cardiac impact signals and provides auxiliary cardiovascular risk indications.
[0057] In one embodiment of this application, determining the list of J-peak positions of the cardiac impact signal to be tested based on the J-peak probability sequence includes: Non-maximum suppression processing is performed on each of the J-peak probability sequences to obtain the probability peak values; Within a preset time range corresponding to the time positions of each probability peak, the local maxima of the cardiac impact signal to be tested are searched to obtain the position of the J peak; All J-peak locations are integrated to form the J-peak location list.
[0058] Optionally, since the sliding windows have overlapping areas (adjacent windows overlap for 5 seconds), the same time point may be covered by multiple windows. The arithmetic mean of the probability values of the overlapping areas is taken as the final J-peak probability at that time point. The output probability of the corresponding window is directly used for the non-overlapping areas. Then, non-maximum suppression (NMS) is performed on the obtained effective J-peak probabilities to find the local peak probability (i.e., the probability of the current point is greater than its adjacent sampling points) in the J-peak probability sequence. The minimum peak spacing is set to 0.2 to 0.4 seconds, corresponding to the upper limit of heart rate of 150 to 300 beats / minute. Within the preset time window corresponding to each probability peak, such as within the ±50ms time series range, the local maximum value of the original BCG waveform is searched, which is used as the J-peak position after precise positioning.
[0059] In one embodiment of this application, the step of searching for local maxima of the cardiac impact signal to be tested within a preset time range corresponding to the time positions of each probability peak to obtain the J-peak position includes: The cardiac impact signal sampling index is obtained by mapping the time information corresponding to the probability peak, and the start index and end index of the search interval are determined based on the preset time range. Traverse the amplitude of the cardiac impact signal within the search interval to identify candidate points of local maxima within the interval; When multiple local maxima candidate points are detected within the search interval, the candidate point with the largest amplitude is selected as the J-peak position.
[0060] Optionally, assuming a sampling rate of fs (Hz), the model detects a probability peak at time point t, corresponding to the sampling point index idx_peak = round(t × fs / 1000) in the original BCG signal (t in milliseconds). Within a preset time window corresponding to each probability peak, such as ±50ms, the local maximum value of the original BCG waveform is searched, and this is used as the precisely located J-peak position. The index range of this ±50ms search interval is calculated as follows: idx_start=max(0,idx_peak-round(50×fs / 1000)) idx_end=min(len(signal)-1,idx_peak+round(50×fs / 1000)) For example, when the sampling rate fs=500Hz, 50ms corresponds to 25 sampling points, and the search interval is [idx_peak-25, idx_peak+25], for a total of 51 sampling points. During boundary handling, it is necessary to ensure that idx_start≥0 and idx_end≤signal_length-1 to avoid array out-of-bounds errors.
[0061] After determining the search interval [idx_start, idx_end], the original BCG signal amplitude is traversed within this interval, and the optimal J-peak position is selected through multi-dimensional judgment rules. Specifically, the selection rules are as follows: For sampling points within the interval, if the current signal amplitude is simultaneously greater than the amplitudes of the left and right adjacent points (i.e., signal[i]>signal[i-1] and signal[i]>signal[i+1]), then this point is determined as a candidate point for a local maximum. For interval boundary points, an adaptation judgment logic is used: the left boundary idx_start only needs to satisfy the signal amplitude being greater than the amplitude of the right adjacent point, and the right boundary idx_end only needs to satisfy the signal amplitude being greater than the amplitude of the left adjacent point, thus completing the selection of candidate points for local extrema across the entire interval. If multiple candidate points for local maximums with similar amplitudes appear within the interval due to noise interference, the optimal position is determined through an extremum selection strategy, selecting the candidate point with the largest amplitude within the interval as the initial J-peak position. The corresponding solution is J_position = argmax_{i ∈ local_maxima_set}signal[i]. Meanwhile, an optional amplitude threshold filtering mechanism can be added to avoid noise false alarms. If the amplitude of the selected candidate J peak is less than 1.2 times the average amplitude of the signal in the search interval, the invalid candidate peak will be removed.
[0062] In this embodiment, by setting a search interval of ±50ms, the typical waveform width of the BCG signal J-peak (80ms to 120ms) is fully adapted, while effectively compensating for minute time-series deviations within 20ms generated during the model's probability prediction process. By combining the original signal waveform features with secondary fine-tuning near the probability peak, the J-peak positioning accuracy can be improved to the sub-sampling level, effectively compensating for the minute errors in the temporal positioning of the deep learning model, fundamentally reducing detection errors caused by false peaks and offset peaks, and significantly improving the accuracy and reliability of BCG signal J-peak positioning in complex scenarios.
[0063] like Figure 10 As shown, in one embodiment of this application, based on the preprocessed cardiac impact signal, the respiratory timing characteristics of the cardiac impact signal to be tested are obtained, and respiratory parameters are calculated based on the respiratory timing characteristics, including: Based on the preprocessed cardiac impact signal, the respiratory component signal is extracted; Peak detection is performed on the respiratory component signal to obtain the respiratory peak; The interrespiratory phase sequence is obtained based on the time interval between adjacent respiratory peaks; Based on the respiratory interval sequence, respiratory rate, respiratory rate variability, and respiratory rate trend are calculated.
[0064] Optionally, after acquiring the preprocessed cardiac impulse signal, a fourth-order Butterworth bandpass filter with a passband range of 0.05-0.5Hz can be used to extract the respiratory component signal from the preprocessed BCG signal. This removes cardiac component interference and preserves the low-frequency fluctuation characteristics corresponding to the human respiratory rhythm, achieving the extraction effect shown below. Figure 10 As shown in the figure, the blue curve represents the preprocessed BCG signal waveform, and the red curve represents the filtered respiratory component waveform, which can intuitively reflect the respiratory rhythm. Then, peak detection is performed on the respiratory component signal. The minimum distance between peaks can be set to 0.5 × sampling rate to accurately identify the respiratory peak position corresponding to each cycle of respiratory fluctuations (as shown by the red marker in the figure), obtaining a complete respiratory peak time series table. Based on the detected respiratory peak time series positions, the time interval RRI between adjacent respiratory peaks is calculated to construct a continuous respiratory interval sequence. Based on this respiratory interval sequence, the real-time respiratory rate can be stably calculated; where respiratory rate = 60 / average respiratory interval (breaths / minute), 60 represents the number of seconds corresponding to 1 minute, used to convert the interval in seconds to the number of breaths per minute.
[0065] Meanwhile, by statistically analyzing the temporal fluctuation characteristics of the respiratory interval, the respiratory rate variability index is obtained. Combined with long-term continuous respiratory parameters, a sliding window (window length 30-120 seconds) is used to output the trend of respiratory rate changes throughout the entire process, realizing refined and full-dimensional analysis of respiratory rhythm based on a single BCG signal.
[0066] In one implementation scenario, after obtaining the target user's respiratory parameters based on the BCG signal to be measured, the respiratory status is monitored. Specifically, the user's resting respiratory rate is calculated based on respiratory rate trend analysis. For normal adults, the reference range for resting respiratory rate is 12-20 breaths / minute. A respiratory rate consistently higher than 20 breaths / minute is considered tachypnea, which may indicate potential fever, pain, anxiety, or respiratory diseases. A respiratory rate consistently lower than 12 breaths / minute is considered bradypnea, which can serve as an auxiliary indication of central nervous system depression or drug effects. Further calculation of the coefficient of variation (RRV) of the respiratory interval sequence yields respiratory rate variability. A decrease in RRV indicates a decline in the flexibility of respiratory center regulation, a characteristic associated with conditions such as sleep apnea and chronic obstructive pulmonary disease (COPD). In addition, respiratory-heart rate coupling analysis can be carried out. By calculating the phase synchronization index between respiratory rate and heart rate, the cardiopulmonary coupling strength can be quantitatively assessed. Abnormalities in cardiopulmonary coupling can serve as an auxiliary reference for diseases such as heart failure and sleep-disordered breathing, thereby achieving auxiliary assessment of respiratory function and cardiopulmonary interaction based on BCG signals.
[0067] In one embodiment of this application, after segmenting the preprocessed cardiac impact signal using a preset sliding window, sequentially inputting the segmented window signals into a pre-trained deep learning model to obtain the J-peak probability corresponding to each time point within each sliding window, and forming a J-peak probability sequence, the method further includes: Based on the J-peak probability sequence, a signal quality index is calculated, which includes peak sharpness and peak probability sequence entropy. Peak sharpness is the ratio of the average height of local peaks in the J-peak probability sequence to the baseline probability. Peak probability sequence entropy is used to characterize the periodicity of the probability sequence and reflect the degree of noise interference to the signal. Based on the aforementioned signal quality indicators, the signal quality of the cardiac impact signal to be tested is evaluated. Based on the signal quality assessment results, the signal preprocessing noise reduction parameters, model inference parameters, sliding window length and step size, and peak selection constraint parameters are adaptively adjusted to meet the signal detection requirements under different noise environments.
[0068] Optionally, the J-peak probability sequence output by the deep learning model, in addition to being used for routine J-peak localization and calculation of cardiopulmonary physiological parameters, can also serve as feedback to achieve adaptive intelligent control of the entire BCG signal analysis process. Specifically, weak BCG signals can be optimized by combining CEEMDAN decomposition and permutation entropy denoising algorithms, and a signal quality assessment system can be constructed based on the probability sequence. Specifically, signal quality is quantified through two dimensions: peak sharpness and sequence entropy. Peak sharpness is the ratio of the average height of local peaks in the probability sequence to the baseline probability. A ratio greater than 3 indicates excellent signal quality, while a ratio close to 1 indicates blurred signal features and poor quality. At the same time, the permutation entropy or sample entropy of the probability sequence is calculated. The lower the entropy value, the more stable the signal periodicity and the higher the signal-to-noise ratio. The higher the entropy value, the more chaotic the signal and the more severe the interference from human body movements. Based on the quantized signal quality results, the preprocessing parameters can be adaptively adjusted. When the signal quality is poor, the bandwidth of the pass filter can be widened (e.g., from 0.5-35Hz to 0.3-40Hz). At the same time, the permutation entropy removal threshold of CEEMDAN noise reduction can be lowered (e.g., the permutation entropy threshold can be lowered from 0.6 to 0.5), and the number of mode decomposition layers can be increased to finely distinguish between effective signal and noise components and enhance the noise reduction effect.
[0069] Based on this, the sliding window parameters can be adaptively adjusted. When the signal quality is excellent and the peak confidence is stable, the inference window length can be shortened (e.g., from 10 seconds to 5 seconds) to effectively reduce algorithm inference latency and device computational power consumption. When the signal quality deteriorates, the sliding step size can be increased (e.g., from 1 / 2 to 2 / 3 of the window length) to reduce the amount of computation and improve detection robustness by relying on more contextual timing information.
[0070] Meanwhile, the system supports dynamic adaptation of non-maximum suppression parameters. By calculating the coefficient of variation (CV=std / mean) of the peak spacing, the stability of heart rate is characterized. When the heart rate fluctuation is small, the minimum peak spacing is reduced (e.g., from 0.3 seconds to 0.25 seconds) to improve the detection capability in high heart rate scenarios. When the heart rate fluctuation is large, the minimum peak spacing is increased to avoid false peaks. Furthermore, the probability peak detection threshold can be dynamically adjusted according to the signal quality. A low threshold (e.g., 0.5) is used for high-quality signals to improve the effective peak recall rate, while a high threshold (e.g., 0.7) is used for low-quality signals to suppress noise false detections.
[0071] In addition, it can automatically identify motion interference intervals based on probability sequence characteristics. When an invalid waveform interval with a probability value below 0.3 for more than 5 consecutive seconds and a sudden increase in sequence entropy is detected, the data segment is automatically marked and blocked, and is not included in the calculation of cardiopulmonary parameters. At the same time, a motion interference prompt is output to avoid distortion of physiological parameter calculation caused by motion noise, which greatly improves the stability and accuracy of BCG monitoring system in complex scenarios.
[0072] In one embodiment of this application, the method further includes: Based on the respiratory parameters, the mean respiratory rate and the coefficient of variation of respiratory rate are calculated in each time window according to the preset time window. Based on the heart rate parameters, the corresponding time-domain index and frequency-domain index of heart rate variability within each time window are calculated according to a preset time window. The mean respiratory rate, coefficient of variation of respiratory rate, time-domain index of heart rate variability, and frequency-domain index of heart rate variability are input into a preset stage model to obtain a sleep state sequence. A sleep structure diagram is generated based on the sleep state sequence; Based on the aforementioned sleep structure diagram, sleep quality assessment indicators are calculated.
[0073] Optionally, sleep staging is achieved based on the heart rate variability (HRV) and respiratory rate variability (RRV) features obtained from analysis. Feature extraction is performed in 30-second time windows, calculating the time-domain indices SDNN, RMSSD, and pNN50 of HRV, as well as the frequency-domain indices LF / HF ratio within each window. Simultaneously, the mean and coefficient of variation of the respiratory rate within the corresponding window are calculated, collectively forming the sleep feature vector for that window. This feature vector is then input into a pre-trained sleep staging classifier, which can employ XGBoost, random forest, or a lightweight neural network. The model inferences and outputs five sleep stages: wakefulness, REM sleep, N1 light sleep stage 1, N2 light sleep stage 2, and N3 deep sleep. A whole-night sleep structure map (hypnogram) is generated based on the window-by-window sleep staging results, and sleep quality assessment indicators such as sleep efficiency, deep sleep percentage, and REM sleep percentage are further statistically calculated, completing non-contact sleep state discrimination and quantitative sleep quality assessment based on BCG signals.
[0074] In this embodiment, the preprocessed time-series signal is continuously segmented and analyzed using a preset sliding window. A trained deep learning model is then used to predict the probability of the J-peak at each time point, effectively overcoming the technical shortcomings of traditional fixed-rule algorithms that rely on local waveform features and cannot extract long-term temporal context information. Based on the Transformer self-attention mechanism, it can effectively capture the global long-range temporal dependence features of the BCG signal, adaptively distinguishing between valid physiological waveforms and mixed noise. Even under complex acquisition conditions with low signal-to-noise ratio and strong interference, it maintains excellent J-peak detection accuracy and stability, effectively solving the technical challenges of poor signal recognition accuracy caused by weak BCG signals, complex noise, and frequency domain coupling of heartbeat and respiratory components. Furthermore, this model adopts an end-to-end data-driven learning mode, eliminating the need for manual waveform feature design and configuration of discrimination rules and feature templates. It can autonomously learn the key time-frequency features and rhythmic variation patterns of the J-peak, significantly improving the intelligence and generalization ability of the model's feature extraction. Furthermore, this application possesses excellent algorithm interpretability, visually presenting the model's temporal focus areas and core decision-making criteria through attention weight heatmap visualization, facilitating effect verification, error tracing, and algorithm validation in medical scenarios. In addition, the overall model supports lightweight processing such as quantization and pruning, enabling efficient deployment on embedded edge devices and achieving local real-time analysis and all-weather dynamic monitoring of BCG signals. By employing an intelligent time-series feature modeling approach, the stability and robustness of J-peak identification in low signal-to-noise ratio interference scenarios are significantly improved, avoiding the peak-point missed detection and false detection problems that are prone to occur in traditional methods. Simultaneously, J-peak time-series feature analysis and respiratory time-series feature extraction can be completed on the same set of BCG time-series data, enabling the joint generation of multiple physiological information such as heart rate and respiration. This overcomes the limitations of traditional solutions that can only output a single heart rate parameter and have a single data utilization dimension, greatly improving the completeness of BCG time-series data analysis and information utilization rate. It effectively addresses the problems of low accuracy in physiological parameter calculation and poor scenario adaptability in traditional techniques, providing high-precision and highly robust basic time-series feature support for subsequent higher-level data applications such as cardiopulmonary status analysis and sleep time-series monitoring.
[0075] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0076] In one embodiment, a device for jointly generating physiological parameters based on a deep learning model is provided, which corresponds one-to-one with the method for jointly generating physiological parameters based on a deep learning model in the above embodiments. For example... Figure 11As shown, the physiological parameter joint generation device based on a deep learning model includes a unit 10 for acquiring and preprocessing the cardiac impact signal to be measured, a J-peak probability prediction unit 20, a heart rate parameter calculation unit 30, and a respiratory parameter calculation unit 40. Detailed descriptions of each functional module are as follows: The cardiac impact signal acquisition and preprocessing unit 10 is used to acquire the cardiac impact signal to be tested and perform preprocessing. J-peak probability prediction unit 20 is used to segment the preprocessed cardiac impact signal to be tested using a preset sliding window, and input the segmented window signals into a pre-trained deep learning model in sequence to obtain the J-peak probability corresponding to each time point in each sliding window, forming a J-peak probability sequence. The heart rate parameter calculation unit 30 is used to obtain the J-peak time sequence characteristics of the cardiac impact signal to be tested based on the J-peak probability sequence, and to calculate the heart rate parameters based on the J-peak time sequence characteristics. The respiratory parameter calculation unit 40 is used to obtain the respiratory timing characteristics of the cardiac impact signal to be tested based on the preprocessed cardiac impact signal, and to calculate respiratory parameters based on the respiratory timing characteristics.
[0077] In one embodiment of this application, the J-peak probability prediction unit 20 is further configured to: The preprocessed impact signal of the target heart is segmented by sliding window according to the preset window length and sliding step size to obtain multiple continuous window signals. Perform time-frequency transformation on each window signal to generate the time-frequency feature map of the corresponding window; Input the time-frequency feature maps of each window into the trained deep learning model, and perform deep feature extraction and dimension mapping on the time-frequency features through the convolutional coding layer to obtain the high-dimensional time-series features corresponding to each time point; The high-dimensional temporal features are superimposed with learnable positional codes; The high-dimensional temporal features with superimposed learnable positional encodings are input into a multi-layer encoding module for attention calculation to obtain global temporal features. The global temporal features are input into the classification structure, and the J-peak probability is predicted point by point in time to obtain the J-peak probability corresponding to all time points in each window.
[0078] In one embodiment of this application, the heart rate parameter calculation unit 30 is further configured to: Based on the J-peak probability sequence, a list of J-peak positions of the cardiac impact signal to be tested is determined; Calculate the JJ interval based on the positions of adjacent J peaks; Based on the JJ interval, heart rate and heart rate variability are calculated.
[0079] In one embodiment of this application, the heart rate parameter calculation unit 30 is further configured to: Based on the JJ interval, the average heart rate and instantaneous heart rate sequence are calculated. The average heart rate is obtained by dividing the unit duration by the mean of the JJ interval, and the instantaneous heart rate sequence is obtained by dividing the unit duration by each JJ interval. Based on the JJ interval, a time-domain index of heart rate variability is calculated. The time-domain index of heart rate variability includes at least one of the following: the standard deviation of all JJ intervals, the root mean square of the difference between adjacent JJ intervals, and the percentage of adjacent JJ interval differences exceeding a preset duration. Based on the JJ interval, a frequency domain index of heart rate variability is calculated, wherein the frequency domain index of heart rate variability includes at least one of low-frequency power, high-frequency power, and the ratio of low-frequency power to high-frequency power.
[0080] In one embodiment of this application, the heart rate parameter calculation unit 30 is further configured to: Non-maximum suppression processing is performed on each of the J-peak probability sequences to obtain the probability peak values; Within a preset time range corresponding to the time positions of each probability peak, the local maxima of the cardiac impact signal to be tested are searched to obtain the position of the J peak; All J-peak locations are integrated to form the J-peak location list.
[0081] In one embodiment of this application, the heart rate parameter calculation unit 30 is further configured to: The cardiac impact signal sampling index is obtained by mapping the time information corresponding to the probability peak, and the start index and end index of the search interval are determined based on the preset time range. Traverse the amplitude of the cardiac impact signal within the search interval to identify candidate points of local maxima within the interval; When multiple local maxima candidate points are detected within the search interval, the candidate point with the largest amplitude is selected as the J-peak position.
[0082] In one embodiment of this application, the respiratory parameter calculation unit 40 is further configured to: Based on the preprocessed cardiac impact signal, the respiratory component signal is extracted; Peak detection is performed on the respiratory component signal to obtain the respiratory peak; The interrespiratory phase sequence is obtained based on the time interval between adjacent respiratory peaks; Based on the respiratory interval sequence, respiratory rate, respiratory rate variability, and respiratory rate trend are calculated.
[0083] In one embodiment of this application, the device further includes a signal quality assessment and parameter optimization unit, used for: Based on the J-peak probability sequence, a signal quality index is calculated, which includes peak sharpness and peak probability sequence entropy. Peak sharpness is the ratio of the average height of local peaks in the J-peak probability sequence to the baseline probability. Peak probability sequence entropy is used to characterize the periodicity of the probability sequence and reflect the degree of noise interference to the signal. Based on the aforementioned signal quality indicators, the signal quality of the cardiac impact signal to be tested is evaluated. Based on the signal quality assessment results, the signal preprocessing noise reduction parameters, model inference parameters, sliding window length and step size, and peak selection constraint parameters are adaptively adjusted to meet the signal detection requirements under different noise environments.
[0084] In one embodiment of this application, the system further includes a sleep quality assessment unit, used for: Based on the respiratory parameters, the mean respiratory rate and the coefficient of variation of respiratory rate are calculated in each time window according to the preset time window. Based on the heart rate parameters, the corresponding time-domain index and frequency-domain index of heart rate variability within each time window are calculated according to a preset time window. The mean respiratory rate, coefficient of variation of respiratory rate, time-domain index of heart rate variability, and frequency-domain index of heart rate variability are input into a preset stage model to obtain a sleep state sequence. A sleep structure diagram is generated based on the sleep state sequence; Based on the aforementioned sleep structure diagram, sleep quality assessment indicators were calculated. Based on the aforementioned sleep quality assessment indicators, a sleep assessment process is performed.
[0085] In this embodiment, the preprocessed time-series signal is continuously segmented and analyzed using a preset sliding window, and the J-peak probability is predicted point-by-point using a trained deep learning model. This effectively overcomes the technical shortcomings of traditional fixed-rule algorithms that rely on local waveform features and cannot extract long-term temporal context information. Based on the Transformer self-attention mechanism, it can effectively capture the global long-range temporal dependence features of BCG signals, adaptively distinguish between valid physiological waveforms and mixed noise, and maintain excellent J-peak detection accuracy and stability even under complex acquisition conditions with low signal-to-noise ratio and strong interference. This effectively solves the technical problem of poor signal recognition accuracy caused by weak BCG signals, complex noise, and frequency domain coupling of heartbeat and respiratory components. At the same time, this model adopts an end-to-end data-driven learning mode, eliminating the need for manual design of waveform features and manual configuration of discrimination rules and feature templates. It can autonomously learn the key time-frequency features and rhythmic change patterns of the J-peak, significantly improving the intelligence and generalization ability of the model's feature extraction. Furthermore, this application possesses excellent algorithm interpretability, visually presenting the model's temporal focus areas and core decision-making criteria through attention weight heatmap visualization, facilitating effect verification, error tracing, and algorithm validation in medical scenarios. In addition, the overall model supports lightweight processing such as quantization and pruning, enabling efficient deployment on embedded edge devices and achieving local real-time analysis and all-weather dynamic monitoring of BCG signals. By employing an intelligent time-series feature modeling approach, the stability and robustness of J-peak identification in low signal-to-noise ratio interference scenarios are significantly improved, avoiding the peak-point missed detection and false detection problems that are prone to occur in traditional methods. Simultaneously, J-peak time-series feature analysis and respiratory time-series feature extraction can be completed on the same set of BCG time-series data, enabling the joint generation of multiple physiological information such as heart rate and respiration. This overcomes the limitations of traditional solutions that can only output a single heart rate parameter and have a single data utilization dimension, greatly improving the completeness of BCG time-series data analysis and information utilization rate. It effectively addresses the problems of low accuracy in physiological parameter calculation and poor scenario adaptability in traditional techniques, providing high-precision and highly robust basic time-series feature support for subsequent higher-level data applications such as cardiopulmonary status analysis and sleep time-series monitoring.
[0086] Specific limitations regarding the joint generation device for physiological parameters based on deep learning models can be found in the limitations of the joint generation method for physiological parameters based on deep learning models mentioned above, and will not be repeated here. Each module in the aforementioned joint generation device for physiological parameters based on deep learning models can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device in hardware form, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0087] In one embodiment, a computer device is provided, which may be a terminal device, and its internal structure diagram may be as follows: Figure 12 As shown, the computer device includes a processor, memory, and network interface connected via a system bus. The processor provides computational and control capabilities. The memory includes a readable storage medium storing computer-readable instructions. The network interface communicates with external terminals via a network connection. When executed by the processor, the computer-readable instructions implement a method for jointly generating physiological parameters based on a deep learning model. The readable storage medium provided in this embodiment includes both non-volatile and volatile readable storage media.
[0088] In this application embodiment, a computer device is provided, including a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor. When the processor executes the computer-readable instructions, it implements the steps of the above-described method for jointly generating physiological parameters based on a deep learning model.
[0089] In this embodiment of the application, a readable storage medium is provided, which stores computer-readable instructions. When the computer-readable instructions are executed by a processor, they implement the steps of the above-described method for jointly generating physiological parameters based on a deep learning model.
[0090] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing related hardware with computer-readable instructions. These computer-readable instructions can be stored in a non-volatile readable storage medium or a volatile readable storage medium. When executed, these computer-readable instructions can include the processes of the embodiments of the methods described above. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0091] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is used as an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0092] The above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A method for jointly generating physiological parameters based on a deep learning model, characterized in that, The method includes: Acquire the cardiac impact signal to be tested and perform preprocessing; The preprocessed cardiac impact signal to be tested is segmented by a preset sliding window. The segmented window signals are then sequentially input into a pre-trained deep learning model to obtain the J-peak probability corresponding to each time point within each sliding window, thus forming a J-peak probability sequence. Based on the J-peak probability sequence, the J-peak temporal characteristics of the cardiac impact signal to be tested are obtained, and the heart rate parameters are calculated based on the J-peak temporal characteristics. Based on the preprocessed cardiac impact signal, the respiratory timing characteristics of the cardiac impact signal to be tested are obtained, and respiratory parameters are calculated based on the respiratory timing characteristics.
2. The method for jointly generating physiological parameters based on a deep learning model as described in claim 1, characterized in that, The process involves segmenting the preprocessed cardiac impact signal using a preset sliding window, and then sequentially inputting each segment into a pre-trained deep learning model to obtain the J-peak probability at each time point within each sliding window, including: The preprocessed impact signal of the target heart is segmented by sliding window according to the preset window length and sliding step size to obtain multiple continuous window signals. Perform time-frequency transformation on each window signal to generate the time-frequency feature map of the corresponding window; Input the time-frequency feature maps of each window into the trained deep learning model, and perform deep feature extraction and dimension mapping on the time-frequency features through the convolutional coding layer to obtain the high-dimensional time-series features corresponding to each time point; The high-dimensional temporal features are superimposed with learnable positional codes; The high-dimensional temporal features with superimposed learnable positional encodings are input into a multi-layer encoding module for attention calculation to obtain global temporal features. The global temporal features are input into the classification structure, and the J-peak probability is predicted point by point in time to obtain the J-peak probability corresponding to all time points in each window.
3. The method for jointly generating physiological parameters based on a deep learning model as described in claim 1, characterized in that, The step of obtaining the J-peak temporal characteristics of the cardiac impact signal to be tested based on the J-peak probability sequence, and calculating heart rate parameters based on the J-peak temporal characteristics, includes: Based on the J-peak probability sequence, a list of J-peak positions of the cardiac impact signal to be tested is determined; Calculate the JJ interval based on the positions of adjacent J peaks; Based on the JJ interval, heart rate and heart rate variability are calculated.
4. The method for jointly generating physiological parameters based on a deep learning model as described in claim 3, characterized in that, The calculation of heart rate and heart rate variability based on the JJ interval includes: Based on the JJ interval, the average heart rate and instantaneous heart rate sequence are calculated. The average heart rate is obtained by dividing the unit duration by the mean of the JJ interval, and the instantaneous heart rate sequence is obtained by dividing the unit duration by each JJ interval. Based on the JJ interval, a time-domain index of heart rate variability is calculated. The time-domain index of heart rate variability includes at least one of the following: the standard deviation of all JJ intervals, the root mean square of the difference between adjacent JJ intervals, and the percentage of adjacent JJ interval differences exceeding a preset duration. Based on the JJ interval, a frequency domain index of heart rate variability is calculated, wherein the frequency domain index of heart rate variability includes at least one of low-frequency power, high-frequency power, and the ratio of low-frequency power to high-frequency power.
5. The method for jointly generating physiological parameters based on a deep learning model as described in claim 3, characterized in that, The step of determining the list of J-peak positions of the cardiac impact signal to be measured based on the J-peak probability sequence includes: Non-maximum suppression processing is performed on each of the J-peak probability sequences to obtain the probability peak values; Within a preset time range corresponding to the time positions of each probability peak, the local maxima of the cardiac impact signal to be tested are searched to obtain the position of the J peak; All J-peak locations are integrated to form the J-peak location list.
6. The method for jointly generating physiological parameters based on a deep learning model as described in claim 5, characterized in that, The step of searching for local maxima of the cardiac impact signal to be tested within a preset time range corresponding to the time positions of each probability peak, to obtain the J-peak position, includes: The cardiac impact signal sampling index is obtained by mapping the time information corresponding to the probability peak, and the start index and end index of the search interval are determined based on the preset time range. Traverse the amplitude of the cardiac impact signal within the search interval to identify candidate points of local maxima within the interval; When multiple local maxima candidate points are detected within the search interval, the candidate point with the largest amplitude is selected as the J-peak position.
7. The method for jointly generating physiological parameters based on a deep learning model as described in claim 1, characterized in that, Based on the preprocessed cardiac impact signal, the respiratory timing characteristics of the cardiac impact signal to be tested are obtained, and respiratory parameters are calculated based on the respiratory timing characteristics, including: Based on the preprocessed cardiac impact signal, the respiratory component signal is extracted; Peak detection is performed on the respiratory component signal to obtain the respiratory peak; The interrespiratory phase sequence is obtained based on the time interval between adjacent respiratory peaks; Based on the respiratory interval sequence, respiratory rate, respiratory rate variability, and respiratory rate trend are calculated.
8. The method for jointly generating physiological parameters based on a deep learning model as described in any one of claims 1 to 7, characterized in that, The process of segmenting the preprocessed cardiac impact signal using a preset sliding window, sequentially inputting each segment into a pre-trained deep learning model to obtain the J-peak probability at each time point within each sliding window, and forming a J-peak probability sequence, further includes: Based on the J-peak probability sequence, a signal quality index is calculated, which includes peak sharpness and peak probability sequence entropy. Peak sharpness is the ratio of the average height of local peaks in the J-peak probability sequence to the baseline probability. Peak probability sequence entropy is used to characterize the periodicity of the probability sequence and reflect the degree of noise interference to the signal. Based on the aforementioned signal quality indicators, the signal quality of the cardiac impact signal to be tested is evaluated. Based on the signal quality assessment results, the signal preprocessing noise reduction parameters, model inference parameters, sliding window length and step size, and peak selection constraint parameters are adaptively adjusted to meet the signal detection requirements under different noise environments.
9. The method for jointly generating physiological parameters based on a deep learning model as described in any one of claims 1 to 7, characterized in that, The method further includes: Based on the respiratory parameters, the mean respiratory rate and the coefficient of variation of respiratory rate are calculated in each time window according to the preset time window. Based on the heart rate parameters, the corresponding time-domain index and frequency-domain index of heart rate variability within each time window are calculated according to a preset time window. The mean respiratory rate, coefficient of variation of respiratory rate, time-domain index of heart rate variability, and frequency-domain index of heart rate variability are input into a preset stage model to obtain a sleep state sequence. A sleep structure diagram is generated based on the sleep state sequence; Based on the aforementioned sleep structure diagram, sleep quality assessment indicators were calculated. Based on the aforementioned sleep quality assessment indicators, a sleep assessment process is performed.
10. A device for jointly generating physiological parameters based on a deep learning model, characterized in that, The device includes: The cardiac impact signal acquisition and preprocessing unit is used to acquire the cardiac impact signal to be tested and perform preprocessing. The J-peak probability prediction unit is used to segment the preprocessed cardiac impact signal to be tested using a preset sliding window. The segmented window signals are then sequentially input into a pre-trained deep learning model to obtain the J-peak probability corresponding to each time point within each sliding window, thus forming a J-peak probability sequence. The heart rate parameter calculation unit is used to obtain the J-peak time sequence characteristics of the cardiac impact signal to be tested based on the J-peak probability sequence, and to calculate the heart rate parameters based on the J-peak time sequence characteristics. The respiratory parameter calculation unit is used to obtain the respiratory timing characteristics of the cardiac impact signal to be tested based on the preprocessed cardiac impact signal, and to calculate respiratory parameters based on the respiratory timing characteristics.
