Model training method and device, sleep monitoring method and device, and electronic device

By using transfer learning and feature fusion techniques, diagnostic knowledge from PSG data is transferred to BCG data, solving the problems of high cost of PSG devices and BCG signal noise. This enables low-cost, comfortable, and accurate sleep monitoring, suitable for sleep staging and apnea assessment for multiple diseases.

CN120899191BActive Publication Date: 2026-11-20BEIJING WUJI MEDICAL TECHNOLOGY CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202511270603.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-09-05
Publication Date
2026-11-20
Estimated Expiration
2045-09-05

AI Technical Summary

Technical Problem

Existing polysomnography (PSG) devices are expensive, inconvenient to use, and cannot achieve continuous monitoring. Meanwhile, BCG-based sleep monitoring solutions suffer from low signal-to-noise ratio and limited recognition accuracy, especially lacking support in large-scale multi-disease applications.

Method used

A transfer learning-based approach was adopted, which pre-trained the model on large-scale PSG data and then fine-tuned it on BCG data for sleep monitoring. By combining CNN feature extraction, adaptive feature fusion and Roformer encoding, knowledge transfer from PSG signals to BCG signals was achieved, thereby improving the accuracy of sleep staging and apnea assessment.

Benefits of technology

It enables comfortable sleep monitoring under low-cost, non-invasive conditions, improves the accuracy of sleep staging and apnea assessment, and is suitable for clinical applications in multiple diseases.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120899191B_ABST
    Figure CN120899191B_ABST
Patent Text Reader

Abstract

The application provides a model training method and device, a sleep monitoring method and device, and an electronic device. A training method of a sleep monitoring model based on transfer learning, the method comprising: obtaining a polysomnography (PSG) data set and a ballistocardiogram (BCG) data set, wherein the PSG data set comprises at least a PSG respiration signal and a PSG heartbeat signal, and the BCG data set comprises at least a BCG respiration signal and a BCG heartbeat signal; pre-training an initial sleep monitoring model based on the PSG data set to obtain a sleep monitoring base model; and fine-tuning the sleep monitoring base model based on the BCG data set to obtain the sleep monitoring model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of sleep monitoring technology, and more specifically, to a model training method and apparatus for sleep monitoring, a sleep monitoring method and apparatus, electronic equipment, computer equipment, and storage medium. Background Technology

[0002] Non-invasive and accurate sleep monitoring has become an important research focus because sleep deprivation and sleep abnormalities are associated with a range of health problems. These include everyday issues (such as weight gain and impaired driving performance), specific sleep disorders such as sleep apnea, and other conditions such as Parkinson's disease, depression, and Alzheimer's disease. Effective sleep monitoring can help diagnose sleep disorders and identify early interventions for related health problems.

[0003] However, current clinical sleep diagnosis relies on polysomnography (PSG), the gold standard for sleep assessment. PSG provides comprehensive analysis by simultaneously recording multiple physiological signals, including electroencephalography (EEG), electrocardiography (ECG), electrooculography (EOG), electromyography (EMG), and airflow. Despite its high accuracy, PSG has significant drawbacks: it is very expensive; the user experience is poor because it requires attaching multiple electrodes and sensors, making it inconvenient for users to sleep; its complex construction generally requires hospital visits; and its continuous monitoring capability is poor. Due to cost considerations, users often only use PSG for 1-2 nights for sleep monitoring, failing to achieve continuous monitoring. Therefore, balancing comfort, cost, and diagnostic performance remains a key challenge in developing alternative sleep monitoring devices.

[0004] To address these limitations, a portable sleep monitoring system utilizing cardiac impaction mapping (BCG) has been designed. This system offers a non-invasive and cost-effective alternative for capturing mechanical movements caused by cardiac activity. However, BCG signals originate from micro-movements, and any body movement, turning over, talking, or clothing friction can add noise, leading to a decreased signal-to-noise ratio and significantly reduced recognition accuracy. Furthermore, most studies on BCG-based sleep monitoring protocols have only validated them in healthy adults or small samples, lacking large-scale, multi-disease (children, the elderly, patients with sleep disorders) clinical data. Therefore, due to insufficient data and sensitivity to motion noise, BCG-based sleep monitoring still faces challenges, including limited detection accuracy and poor generalization. Summary of the Invention

[0005] To address the aforementioned technical problems, this application provides a sleep monitoring method based on transfer learning. Specifically, it utilizes large-scale PSG data as the source domain to guide the learning process on smaller samples of BCG data in the target domain. In this method, the model is first pre-trained on PSG recordings using two channels: heartbeat derived from ECG and breathing derived from the abdominal diaphragm (ABD). This pre-training phase enables the network to acquire robust sleep diagnostic representations. In the subsequent fine-tuning phase, by preserving the corresponding heartbeat and breathing pathways, these learned representations are converted into BCG data based on transfer learning. This strategy allows the model to benefit from diagnostic knowledge extracted from large-scale PSG signals, ultimately improving the performance of sleep staging and apnea-hypopnea index (AHI) assessment.

[0006] According to one aspect of this application, a transfer learning-based model training method for sleep monitoring is provided, the method comprising: acquiring a polysomnography (PSG) dataset and a brainwave imaging (BCG) dataset, wherein the PSG dataset includes at least PSG respiratory signals and PSG heartbeat signals, and the BCG dataset includes at least BCG respiratory signals and BCG heartbeat signals; pre-training an initial sleep monitoring model based on the PSG dataset to obtain a sleep monitoring pedestal model; and fine-tuning the sleep monitoring pedestal model based on the BCG dataset to obtain a sleep monitoring model.

[0007] According to embodiments of this application, the sleep monitoring model is used at least to perform sleep staging tasks and / or sleep apnea estimation tasks.

[0008] According to an embodiment of this application, pre-training an initial sleep monitoring model based on a PSG dataset includes: training using PSG respiratory signals and PSG heartbeat signals as a training set.

[0009] According to an embodiment of this application, fine-tuning a sleep monitoring base model based on a BCG dataset includes: fine-tuning the sleep monitoring base model using BCG respiratory signals and BCG heartbeat signals, as well as an additional bandpass signal, wherein the additional bandpass signal includes bandpass-filtered BCG respiratory signals and bandpass-filtered BCG heartbeat signals.

[0010] According to an embodiment of this application, the additional bandpass signal also includes a bandpass-filtered BCG snoring signal.

[0011] According to embodiments of this application, a sleep monitoring model may include a CNN feature extraction module, an adaptive feature fusion module, and a Roformer encoding module, wherein: the CNN feature extraction module is used to perform feature extraction on BCG respiratory signals and BCG heartbeat signals, as well as bandpass-filtered BCG respiratory signals, bandpass-filtered BCG heartbeat signals, and bandpass-filtered BCG snoring signals, respectively, to obtain enhanced features of BCG respiratory signals and BCG heartbeat signals, and bandpass features of bandpass-filtered BCG respiratory signals, bandpass-filtered BCG heartbeat signals, and bandpass-filtered BCG snoring signals; the adaptive feature fusion module is used to perform feature fusion on enhanced features and bandpass features to obtain fused features; and the Roformer encoding module processes the fused features to perform sleep staging or sleep apnea estimation.

[0012] According to an embodiment of this application, the sleep monitoring model also includes an Adam optimizer, which is used to dynamically adjust the learning rate for the sleep staging task and the sleep apnea estimation task.

[0013] According to the embodiments of this application, the sleep monitoring model outputs the severity of sleep apnea by estimating the AHI value, and the severity of sleep apnea includes mild, moderate and severe.

[0014] According to embodiments of this application, the PSG heartbeat signal includes the RRI heartbeat sequence, and the BCG heartbeat signal includes the JJI heartbeat sequence.

[0015] According to an embodiment of this application, the method further includes performing signal quality assessment on the PSG dataset and the BCG dataset, and selecting PSG respiratory signals and PSG heartbeat signals for pre-training and BCG respiratory signals and BCG heartbeat signals for fine-tuning based on the assessment results.

[0016] According to an embodiment of this application, signal quality assessment includes: calculating a confidence score, which is the ratio between the sum of the energy of the PSG or BCG respiratory signal and the PSG or BCG heartbeat signal in each time period and the total energy in the time period; and calculating the average confidence score over all time periods, wherein, if the average confidence score is greater than a threshold, the PSG or BCG respiratory signal and the PSG or BCG heartbeat signal are retained for pre-training or fine-tuning of the sleep monitoring pedestal model, and wherein, if the average confidence score is less than or equal to the threshold, the PSG or BCG respiratory signal and the PSG or BCG heartbeat signal are discarded.

[0017] According to an embodiment of this application, the threshold is 0.6.

[0018] According to embodiments of this application, the PSG dataset is obtained from multiple sources, including one or more of SHHS, MESA, MROS, CHAT, WSC, PATS, NUMOM2B, and HSP.

[0019] According to another aspect of this application, a sleep monitoring method is provided, wherein the method includes: collecting a user's BCG respiratory signal and BCG heartbeat signal; and analyzing the BCG respiratory signal and BCG heartbeat signal using a sleep monitoring model obtained by the above-described transfer learning-based sleep monitoring model training method to obtain sleep staging results and AHI severity for the user.

[0020] According to another aspect of this application, a training device for a sleep monitoring model based on transfer learning is provided, wherein the device includes: components for acquiring a polysomnography (PSG) dataset and a brainwave imaging (BCG) dataset, wherein the PSG dataset includes at least PSG respiratory signals and PSG heartbeat signals, and the BCG dataset includes at least BCG respiratory signals and BCG heartbeat signals; components for pre-training an initial sleep monitoring model based on the PSG dataset to obtain a sleep monitoring pedestal model; and components for fine-tuning the sleep monitoring pedestal model based on the BCG dataset to obtain a sleep monitoring model.

[0021] According to another aspect of this application, a sleep monitoring device is provided, wherein the device includes: a component for acquiring a user's BCG respiratory signal and BCG heartbeat signal; and a component for analyzing the BCG respiratory signal and BCG heartbeat signal using a sleep monitoring model obtained by the training method of the aforementioned transfer learning-based sleep monitoring model to obtain sleep staging results and AHI severity for the user.

[0022] According to another aspect of this application, an electronic device is provided, which includes the aforementioned sleep monitoring device.

[0023] According to another aspect of this application, a computer device is provided, including a memory and a processor, wherein the memory stores computer-readable instructions, which, when executed by the processor, implement the above-described training method for the transfer learning-based sleep monitoring model and the sleep monitoring method.

[0024] According to another aspect of this application, a computer-readable storage medium is provided, wherein computer-readable instructions are stored on the computer-readable storage medium, and the computer-readable instructions, when executed by a processor, implement the above-described training method for the sleep monitoring model based on transfer learning and the sleep monitoring method.

[0025] Therefore, the training method and apparatus for a transfer learning-based sleep monitoring model, the sleep monitoring method and apparatus, the electronic device, the computer device, and the storage medium according to embodiments of this application can perform sleep staging and sleep apnea estimation using only BCG data, thereby eliminating the need for PSG. The above-mentioned technology proposed by this invention is low-cost and has reliable diagnostic performance. It is simple to operate for users and allows them to perform sleep monitoring in a non-invasive manner under comfortable conditions. Attached Figure Description

[0026] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some exemplary embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0027] Figure 1 A first flowchart of a training method for a sleep monitoring model based on transfer learning according to an embodiment of this application is shown;

[0028] Figure 2 A source distribution diagram of the PSG dataset according to an embodiment of this application is shown;

[0029] Figure 3 A second flowchart of a training method for a sleep monitoring model based on transfer learning according to an embodiment of this application is shown;

[0030] Figure 4 A schematic diagram of an improved fine-tuning stage in a training method for a sleep monitoring model based on transfer learning according to an embodiment of this application is shown.

[0031] Figure 5 A flowchart of a sleep monitoring method according to an embodiment of this application is shown;

[0032] Figure 6 A comparison diagram of test results between the sleep monitoring method according to an embodiment of this application and a conventional sleep monitoring method is shown;

[0033] Figure 7 A schematic diagram of multi-center BCG queue verification according to an embodiment of this application is shown;

[0034] Figure 8 A schematic diagram of the structure of a training device for a sleep monitoring model based on transfer learning according to an embodiment of this application is shown;

[0035] Figure 9 A schematic diagram of the structure of a sleep monitoring device according to an embodiment of this application is shown;

[0036] Figure 10 A schematic diagram showing the output results of a sleep monitoring device according to an embodiment of this application displayed on a terminal device; and

[0037] Figure 11 A schematic diagram of the structure of a computer device according to an embodiment of this application is shown. Detailed Implementation

[0038] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, 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, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the described embodiments of this application without creative effort are within the scope of protection of this application.

[0039] Unless otherwise defined, the technical or scientific terms used in this application shall have the ordinary meaning understood by one of ordinary skill in the art to which this application pertains. The terms "first," "second," and similar terms used in this application do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Terms such as "comprising" or "including" mean that the element or object preceding the word encompasses the elements or objects listed following the word and their equivalents, without excluding other elements or objects. Terms such as "connected" or "linked" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. Terms such as "upper," "lower," "left," and "right" are used only to indicate relative positional relationships; when the absolute position of the described object changes, the relative positional relationship may also change accordingly. To keep the following description of the embodiments of this application clear and concise, detailed descriptions of some known functions and known components have been omitted.

[0040] This application uses flowcharts to illustrate the steps of a method according to embodiments of this application. It should be understood that the preceding or following steps are not necessarily performed in exact order. Instead, various steps can be processed in reverse order or simultaneously. Furthermore, other operations can be added to these processes, or one or more steps can be removed from them.

[0041] In the specification and drawings of this application, elements are described in singular or plural forms according to embodiments. However, the singular and plural forms are suitably chosen for the presented cases merely for ease of explanation and are not intended to limit the application thereto. Thus, a singular form may include a plural form, and a plural form may include a singular form, unless the context clearly indicates otherwise.

[0042] To better understand the solutions of the embodiments of this application, the relevant terms and concepts that may be involved in the embodiments of this application will be introduced below. It should be understood that the explanation of the relevant concepts may be limited due to the specific circumstances of the embodiments of this application, but it does not mean that this application can only be limited to that specific situation. The specific circumstances of different embodiments may also differ, and no specific limitation is made here.

[0043] PSG (Physical Sleep Grafting) is a medical examination method used to assess patients' sleep quality and diagnose sleep disorders. It is considered the "gold standard" for diagnosing sleep disorders. PSG can simultaneously record multiple physiological parameters, including: electroencephalogram (EEG), electrooculogram (EOG), electromyogram (EMG), electrocardiogram (ECG), respiratory airflow, respiratory effort, blood oxygen saturation (SpO2), snoring, body position, and limb movement.

[0044] BCG (Body Coagulation Signal) is a mixed signal based on the heartbeat and incorporating various physiological signals. Typically, BCG is a weak vibrational signal generated by changes in external pressure caused by the heartbeat and blood circulation in the aorta. During respiration, the rise and fall of the chest cavity and the movement of the diaphragm exert mechanical effects on the heart and surrounding tissues, causing rhythmic vibrations that influence the BCG signal, resulting in a "sine-like wave" signal with a relatively large amplitude and low frequency. The heartbeat signal is then superimposed on this "sine-like wave," creating a peak vibration signal with a smaller amplitude and higher frequency. Similarly, the state of the heart, blood vessels, and changes in posture will also cause the BCG signal to exhibit different patterns. Therefore, by analyzing the intensity and waveform changes of the BCG signal, we can determine the basic state of the body, including the heart, blood vessels, respiration, and posture.

[0045] ECG stands for Electrocardiogram. An ECG signal is an electrical signal generated during each cardiac cycle, with the pacemaker, atria, and ventricles successively excited, accompanied by changes in bioelectricity. These changes are captured from the body surface by an electrocardiograph, displaying various forms of potential changes. Specifically, during the heart's contraction and beating, the current generated within the myocardium precedes the myocardial contraction; the changes in this myocardial current are represented by the ECG.

[0046] RRI: This waveform represents a complete ECG signal. The solid line indicates a heartbeat waveform with complete band components, including the P wave, PR band, QRS complex, ST band, and T wave. For an ECG signal, the time interval between two adjacent R waves is the RR interval (RRI), which characterizes the rhythm information of the heartbeat. After acquiring an ECG signal of a certain duration, the RRI of each complete ECG signal can be extracted, thus obtaining the RRI sequence of the ECG signal.

[0047] JJI: The BCG signal waveform can be divided into ballistic waves (F, G, H, I, J, K, L, M, N) based on different stages. The BCG signal waveform diagram contains six complete BCGs. Some BCGs contain all eight ballistic waves (G to N), while others contain only the six ballistic waves (G to L). For the BCG signal, the time interval between two adjacent J peaks is simply referred to as the "JJ interval (JJI)". After acquiring a BCG signal of a certain duration, the JJI can be extracted from each complete BCG signal, thus obtaining the JJI sequence of the BCG signal.

[0048] AHI (Apnea-Hypopnea Index) is an important indicator used to assess the severity of sleep apnea. It measures the severity of the condition by counting the number of apnea and hypopnea events during sleep per hour. The AHI assessment criteria for adults are: Normal: AHI < 5 times / hour; Mild: 5 ≤ AHI < 15 times / hour; Moderate: 15 ≤ AHI < 30 times / hour; Severe: AHI ≥ 30 times / hour.

[0049] CNN: A deep neural network with convolutional structures, it is a deep learning architecture. Deep learning architectures refer to learning at multiple levels of abstraction through machine learning algorithms. As a deep learning architecture, CNN is a feed-forward artificial neural network, in which each neuron responds to overlapping regions in the input image.

[0050] ResNet is a type of CNN that has undergone "residual modification". Based on the classic CNN, ResNet solves the gradient vanishing and gradient exploding problems in deep neural network training by introducing a residual learning mechanism, making it possible to train very deep networks.

[0051] Encoder: Responsible for converting the input sequence into a high-dimensional feature representation. Encoders typically contain multiple self-attention layers and feedforward neural network layers. Each self-attention layer uses a self-attention mechanism to assign a weight to each position in the input sequence, and then calculates a weighted sum based on these weights, thereby capturing long-range dependencies in the input sequence.

[0052] ResNet Encoder: An encoder module based on the ResNet (Residual Network) architecture, widely used in computer vision and deep learning tasks.

[0053] RoFormer: A Transformer model that incorporates Rotation Position Encoding (RoPE) to more effectively integrate positional information and improve the model's ability to process long texts.

[0054] The neural network models mentioned in this application may include various types, such as deep neural networks (DNN), convolutional neural networks (CNN), recurrent neural networks (RNN), generative adversarial networks (GAN), Transformer, long short-term memory networks (LSTM), residual networks (ResNet), or other neural networks, or combinations of the above neural network models. This application does not limit the types of neural network models.

[0055] BCG has emerged as a non-invasive alternative to PSG, capturing the overall performance of the circulatory system by measuring mass shift. During atrial contraction, blood is ejected into the large vessels, shifting the body's center of mass towards the head. Conversely, as blood moves towards the peripheral vessels, the center of mass shifts towards the feet. This variation, influenced by cardiac activity, respiration, and body movement, produces the BCG waveform as blood distribution changes throughout the cardiac cycle.

[0056] The differences in data distribution between PSG and BCG primarily stem from variations in data acquisition methods, signal characteristics, and subject-specific factors such as age and health status. PSG directly measures high-resolution, multimodal physiological signals (e.g., EEG, EMG, EOG, and ECG), providing precise information about sleep stages and brain activity. In contrast, BCG captures bodily mechanical vibrations generated by cardiac and respiratory activity, resulting in a lower-resolution signal that is more susceptible to noise and motion artifacts.

[0057] These inherent differences lead to a mismatch between the feature spaces and statistical distributions of PSG and BCG data. Notably, BCG lacks direct measurements of brain activity and exhibits higher noise levels, resulting in a distribution shift that poses a significant challenge when attempting to transfer knowledge from models developed on PSG data to BCG data. Addressing this shift is crucial for developing robust, cross-modal algorithms for sleep monitoring.

[0058] The model training process for sleep monitoring provided in the embodiments of this application will now be described in detail with reference to the accompanying drawings.

[0059] Figure 1A first flowchart S100 of a training method for a sleep monitoring model based on transfer learning according to an embodiment of this application is shown. Reference will be made below. Figure 1 The following describes in detail the various steps of the training method for the sleep monitoring model based on transfer learning in the embodiments of this application.

[0060] First, such as Figure 1 As shown, the first flowchart S100 of the training method for a sleep monitoring model based on transfer learning according to an embodiment of this application may include the steps shown in processes S1020, S1040 and S1060.

[0061] In process S1020, a polysomnography (PSG) dataset and a cardiograph (BCG) dataset can be acquired. The PSG dataset can include at least PSG respiratory signals and PSG heartbeat signals, and the BCG dataset can include at least BCG respiratory signals and BCG heartbeat signals.

[0062] In some embodiments, publicly available PSG datasets are collected from multiple large-scale sleep studies to ensure diversity and robustness in model training. PSG datasets include:

[0063] • Sleep Heart Health Study (SHHS): A multicenter cohort study investigating the impact of sleep-disordered breathing on cardiovascular health. It includes nighttime PSG records from over 6,000 participants (primarily middle-aged and older adults).

[0064] • Cleveland Children's Sleep and Health Study

[0065] CCSHS primarily collects data at Cleveland University Hospital Medical Center. This study collected children's sleep data, including sleep duration, sleep quality, symptoms of sleep disorders, and the relationship between these sleep characteristics and children's health.

[0066] • Pediatric Tonsillectomy Study: A randomized clinical trial examining the effects of adenotonsillectomy on children with obstructive sleep apnea. The dataset includes nocturnal PSG recordings from 464 children aged 5–9 years.

[0067] • Home Positive Airway Pressure Study (HomePAP): A study that evaluated home and laboratory diagnostic and treatment methods for sleep apnea and provided nocturnal PSG and portable monitoring data.

[0068] • Multiracial Study of Atherosclerosis (MESA): A cohort study investigating the relationship between sleep characteristics and cardiovascular health, including PSG data from more than 2,000 adults from diverse racial backgrounds.

[0069] • Male Osteoporotic Fracture Study (MrOS): A longitudinal study exploring sleep disorders in older men (≥65 years), with PSG data from more than 3,000 participants.

[0070] • Wisconsin Sleep Cohort (WSC): A longitudinal epidemiological study investigating the natural history of sleep apnea, characterized by collecting overnight PSG data from a cohort of middle-aged adults every four years.

[0071] • Osteoporotic fracture (SOF) study: A large cohort study examining sleep disorders in older women, including PSG and motion recording data.

[0072] • Pediatric adenoidectomy for snoring (PATS): A study evaluating the efficacy of adenoidectomy in children with habitual snoring but without severe obstructive sleep apnea (OSA), including a detailed PSG assessment.

[0073] • Numerous pregnancy outcomes study: Monitoring mothers (NuMoM2B): A study assessing sleep-disordered breathing in pregnant women and its impact on maternal and fetal health, using nighttime PSG recordings from more than 3,000 participants.

[0074] • Human Sleep Project (HSP): This dataset is an expanded compilation of clinical PSG records. Starting with PSG records from approximately 19,000 patients evaluated at Massachusetts General Hospital, the HSP was designed to expand over subsequent years to include data from over 200,000 patients and individuals assessed beyond the clinical setting.

[0075] In addition to the PSG public datasets mentioned above, other PSG datasets can be introduced to further expand the training data, thereby improving the diversity and robustness of model training.

[0076] like Figure 2 As shown, in one example, a large-scale PSG dataset is collected from multiple sources, and incomplete labels and corrupted records are filtered out.

[0077] In process S1040, the initial sleep monitoring model can be pre-trained based on the PSG dataset to obtain the sleep monitoring base model.

[0078] In this application embodiment, the specific type of training model used for sleep monitoring is not limited. Any of the aforementioned neural network models or combinations thereof can be used as the base model in this application embodiment, as long as it can achieve the above-mentioned sleep monitoring function after training.

[0079] In some examples, pre-training an initial sleep monitoring model based on a PSG dataset may include training using PSG respiratory signals and PSG heart rate signals as the training set.

[0080] During pre-training, filtered PSG records are used as the source domain to train a deep learning model. This model consists of a multi-layered CNN feature extraction network and a transformer-based backbone. The CNN performs convolutional computations to extract local and compressed features from the input signal. These extracted features are then concatenated to form long-range temporal features, which are subsequently fed into a multi-layered transformer network for global information processing. At this stage, the deep learning model acquires sleep-related knowledge from the PSG data.

[0081] Specifically, in the pre-training phase, the initial sleep monitoring model is pre-trained using two channels from PSG recordings to obtain a sleep monitoring pedestal model: heartbeat (ECG-based RRI) and respiration (ABD band). Each channel is fed into a dedicated 1D ResNet-like feature extractor, which consists of: 1) a convolutional layer (kernel size = 7, padding = 3) followed by batch normalization and ReLU activation; 2) a max-pooling layer (kernel size = 3, padding = 1); and 3) four consecutive residual blocks (each containing two ResBlock1D units). The extracted feature representations from the two channels are element-wise summed to form a combined feature. Learnable CLS tokens are pre-added to this tensor, and the resulting sequence is fed into a RoFormer transform encoder with an embedding size of 512. The final fully connected layer produces logits for sleep staging or AHI estimation. This phase learns robust representations of heartbeat and respiration signals from the PSG domain.

[0082] In some examples, pre-training an initial sleep monitoring model based on the PSG dataset can further include using electrocardiogram or blood oxygenation signals obtained from the PSG dataset as a test set to test the sleep monitoring pedestal model's ability to predict electrical activity in the brain or heart.

[0083] Typically, when using PSG for sleep monitoring in hospitals, in addition to collecting PSG respiratory and heart rate signals, PSG also collects PSG electrocardiogram (ECG) or PSG blood oxygenation signals. Therefore, after pre-training the initial sleep monitoring model using PSG respiratory and heart rate signals as a training set, the model's predicted PSG ECG or PSG blood oxygenation signals can be compared with the collected actual PSG ECG or PSG blood oxygenation signals to test the model's predictive ability for brain or heart electrical activity.

[0084] In process S1060, the sleep monitoring pedestal model can be fine-tuned based on the BCG dataset to obtain the sleep monitoring model.

[0085] In some examples, the method may also include signal quality assessment of the PSG and BCG datasets, and selection of PSG respiratory and PSG heartbeat signals for pre-training and BCG respiratory and BCG heartbeat signals for fine-tuning based on the assessment results.

[0086] In some examples, to ensure the reliability of the PSG and BCG recordings used in model training, a signal quality assessment process is implemented based on the energy distribution within the respiratory and heart rate frequency bands. Specifically, for each time period, the ratio between the sum of the energy of the PSG or BCG respiratory signal and the PSG or BCG heart rate signal and the total energy within that time period is calculated. For each recording, the average confidence score is calculated across all time periods. If the average confidence score is greater than a threshold, the PSG or BCG respiratory signal and the PSG or BCG heart rate signal are retained for pre-training or fine-tuning of the sleep monitoring pedestal model; if the average confidence score is less than or equal to the threshold, the PSG or BCG respiratory signal and the PSG or BCG heart rate signal are discarded. In some examples, the threshold may be set to 0.6.

[0087] The quality assessment process described above ensures that only records with sufficiently high overall signal quality are included in the dataset. By maintaining a comparable quality control strategy across both PSG and BCG modalities, the robustness of the model is improved, and the introduction of low-quality physiological signals that could negatively impact training and evaluation is prevented.

[0088] Then, the raw signals are processed through respiratory signal extraction, heartbeat signal extraction, and body motion removal processes.

[0089] Respiratory signal extraction: The respiratory signal comprises both the signal obtained from the raw BCG signal after specific signal processing and the ABD signal from the PSG. First, a third-order Bessel bandpass filter (0.1–0.35 Hz) is applied to both the raw BCG and ABD signals. The filtered signals are then resampled to 4 Hz. For the respiratory signal derived from the BCG, time integration is performed to resolve the phase difference between the BCG (representing respiratory flux) and ABD (reflecting air volume). Integration is omitted for the signal derived from the PSG. Finally, both signals are normalized to z-fractions to eliminate the amplitude difference inherent in the sensor principle.

[0090] Heartbeat signal extraction: The heartbeat interval is represented as the interbeat interval (IBI). The PSG heartbeat signal includes the RRI heartbeat sequence, and the BCG heartbeat signal includes the JJI heartbeat sequence. Specifically, when the heartbeat signal is an ECG signal, the corresponding RRI sequence can be directly extracted from the ECG signal; when the heartbeat signal is a BCG signal, the corresponding JJI sequence can be extracted from the BCG signal in advance, and the corresponding RRI sequence can be obtained based on the mapping relationship between RRI and JJI.

[0091] Body motion detection: Body movement causes rapid fluctuations in BCG and EEG signals. Given a 500 Hz sampling rate for these signals, a 2-second window is used to capture transient changes. Peak-to-peak amplitude within each window is used as a motion feature. A dynamic 30-second baseline is established (divided into 15 consecutive 2-second windows) to calculate the mean (μ) and standard deviation (σ) of the feature sequence. A threshold of μ + 5σ is used to identify significant biases, which minimizes false positives by excluding physiological fluctuations. This threshold is aligned with the statistical norm of the Gaussian distribution data to ensure robust detection of motion-induced artifacts.

[0092] In the fine-tuning phase, the sleep monitoring pedestal model is trained on the target domain using BCG data to obtain the sleep monitoring model. The network structure remains unchanged compared to the pre-training phase. However, only the last few layers of the model are unfrozen for training on the BCG data. This process, often referred to as "fine-tuning" in transfer learning, allows the model to retain knowledge from the source domain while adapting and learning new representations from the target domain.

[0093] This multi-source transfer learning framework yields a model capable of performing sleep staging and sleep apnea estimation using only BCG data as input. Unlike PSG, which requires multiple electrodes and sensors attached to the body, the proposed method enables comfortable and completely contactless sleep monitoring while the patient is in bed. The visualization and analysis results of sleep staging are ultimately transmitted to the user terminal.

[0094] Figure 3 A second flowchart S300 of a training method for a sleep monitoring model based on transfer learning according to an embodiment of this application is shown.

[0095] like Figure 3 As shown, the second flowchart S300 of the training method for the sleep monitoring model based on transfer learning may include the steps shown in processes S3020, S3040 and S3060. Figure 3 Steps S3020 and S3040 in the process are similar to Figure 1 Steps S1020 and S1040 are the same or similar, and will not be repeated here.

[0096] exist Figure 3In process S3060, the sleep monitoring base model can be fine-tuned using BCG respiratory signals and BCG heartbeat signals, as well as additional bandpass signals, where the additional bandpass signals include bandpass-filtered BCG respiratory signals and bandpass-filtered BCG heartbeat signals.

[0097] In addition, the additional bandpass signal may also include a bandpass-filtered BCG snoring signal.

[0098] Combination Figure 4 The diagram shown illustrates an improved fine-tuning stage in the training method of a transfer learning-based sleep monitoring model according to an embodiment of this application. The sleep monitoring model may include a CNN feature extraction module, an adaptive feature fusion module, and a Rosemer encoding module. The CNN feature extraction module extracts features from BCG respiratory signals and BCG heartbeat signals, as well as bandpass-filtered BCG respiratory signals, bandpass-filtered BCG heartbeat signals, and bandpass-filtered BCG snoring signals, respectively, to obtain enhanced features of the BCG respiratory signals and BCG heartbeat signals, and bandpass features of the bandpass-filtered BCG respiratory signals, bandpass-filtered BCG heartbeat signals, and bandpass-filtered BCG snoring signals. The adaptive feature fusion module fuses the enhanced features and bandpass features to obtain fused features. The Rosemer encoding module processes the fused features to perform sleep staging or sleep apnea estimation.

[0099] In the fine-tuning phase of the improvement, the model was fine-tuned on BCG data using five channels: two transferred from the pre-training phase (BCG heartbeat and filtered breathing) and three additional bandpass filtered BCG signals (snoring, heartbeat, and breathing).

[0100] Specifically, the network receives five input channels:

[0101] 1. BCG heartbeat (JJI) - a branch transition from PSG heartbeat;

[0102] 2. BCG respiration - a shift from the PSG respiration branch;

[0103] 3. BCG snoring sound after bandpass filtering (0.5-25 Hz, sampling rate = 50 Hz);

[0104] 4. BCG heartbeats after bandpass filtering (30-200Hz, sampling rate = 400Hz);

[0105] 5. BCG respiration after bandpass filtering (0.1-1 Hz, sampling rate = 2 Hz).

[0106] The first two channels utilize weights learned from the PSG (during the pre-training phase) to transfer the learned representations of heartbeat and respiration to the BCG domain. Three additional bandpass signals (snoring, heartbeat, and respiration) are each processed by a separate 1D ResNet feature extractor, with an architecture similar to the extractor in the pre-training phase, but with token lengths adapted to their respective sampling rates. A learnable gating mechanism is applied to these three bandpass features, allowing the model to adaptively weight their contributions. These gated bandpass features are then aggregated (elementally added) with the two transferred channels to form a fused feature representation. After a pre-applied CLS token, the fused representation is passed through the same RoFormer encoder and a final fully connected layer. This approach allows the model to leverage the knowledge passed from the PSG channels and the additional discriminative information present in the bandpass-filtered BCG signals.

[0107] In the fine-tuning phase of the improvement, in addition to retaining the corresponding BCG heartbeat and breathing pathways, three additional bandpass-filtered BCG channels (snoring, heartbeat, and breathing) are combined to convert these learned representations into BCG data. This two-branch strategy allows the model to benefit from diagnostic knowledge extracted from PSG signals while simultaneously capturing unique features. Specifically, the BCG heartbeat and breathing signals extracted from the BCG heartbeat and breathing pathways have discrete temporal characteristics, while the bandpass-filtered BCG breathing, heartbeat, and snoring signals obtained through the bandpass-filtered BCG channels (snoring, heartbeat, and breathing) can be considered as continuous raw signals (only some irrelevant features such as noise are filtered out). These signals do not possess significant statistical characteristics but have more detail. Therefore, by employing the BCG heartbeat and breathing pathways and three bandpass-filtered BCG channels (snoring, heartbeat, and breathing), the significant statistical characteristics of the BCG signals and the raw signal characteristics can be combined, thereby further optimizing the sleep monitoring model.

[0108] In this application, the sleep monitoring model is used to perform at least the sleep staging task and / or the sleep apnea estimation task. Table 1 summarizes the key training hyperparameters for the two tasks mentioned above.

[0109] Table 1: Key training hyperparameters for the two tasks

[0110]

[0111] Specifically, using the Adam optimizer, the initial learning rate for both tasks is set to 1 × 10⁻⁶. −4 During the fine-tuning period, it was reduced to 1 × 10 −5. Cross-entropy loss is used for binary classification of sleep staging and apnea hypopnea events, wherein apnea hypopnea events are grouped into one category, and normal breathing events form the other category. In all experiments, the batch size is set to 32, and the data is divided into a training set, a validation set and a test set at a ratio of 8:1:1.

[0112] In some embodiments, the training set is mainly used to train the initial model; the validation set is mainly used to evaluate the model effect, and adjust hyperparameters to bring the model to the optimal state; the test set is mainly used to evaluate the performance of the model through a series of evaluation indicators such as accuracy, recall, and F1. Among them, the validation set is not mandatory. If there is no need to adjust hyperparameters, the validation set can be omitted, and the test set can be directly used to evaluate the effect.

[0113] Sleep staging settings:

[0114] The duration of each input segment is 30s (token length = 30s). The whole-night recording is divided into consecutive 30s segments for training and evaluation.

[0115] AHI estimation settings:

[0116] For AHI estimation, the data is segmented at an interval of 1s (token length = 1s), and training is performed on 30-minute segments (input length = 30 minutes).

[0117] Sleep staging is critical for assessing sleep quality and has been shown to affect a wide range of health conditions, such as cardiovascular diseases, metabolic disorders and neurodegenerative diseases. In this application, recent methods are followed to adopt four-class sleep stage classification (i.e., wakefulness, N1+N2, N3, REM), wherein N1 and N2 are combined due to the low consistency for N1. It should be noted that the embodiments of the present application do not limit the division manner of sleep stages.

[0118] Sleep apnea syndrome, especially obstructive sleep apnea (OSA), is a prevalent disorder characterized by recurrent episodes of partial or complete upper airway obstruction during sleep, leading to intermittent hypoxemia and fragmented sleep. This condition is clinically significant because it is associated with hypertension, stroke and other severe comorbidities. The apnea hypopnea index (AHI) is defined as the number of apnea and hypopnea events per hour of sleep. The severity of sleep apnea is generally classified as mild (5<AHI≤15), moderate (15<AHI≤30) or severe (AHI>30). AHI is used herein as a key quantitative indicator for evaluating sleep apnea.

[0119] Figure 5 shows a flowchart of a sleep monitoring method according to an embodiment of the present application. Reference will be made below to Figure 5 The following describes in detail the various steps of the sleep monitoring method according to the embodiments of this application.

[0120] First, such as Figure 5 As shown, the flowchart S500 of the sleep monitoring method according to an embodiment of this application may include the steps shown in processes S5020 and S5040.

[0121] In process S5020, the user's BCG respiratory signal and BCG heartbeat signal can be collected.

[0122] In some examples, the methods for collecting a user's BCG respiratory and heart rate signals may include air cushion monitoring. Air cushion monitoring uses pressure sensors to measure a person's breathing, heart rate, and body movement, thereby identifying various respiratory disorders.

[0123] In process S5040, the following can be used: Figure 1 or Figure 3 The sleep monitoring model obtained by the model training method shown analyzes BCG respiratory signals and BCG heartbeat signals to obtain sleep staging results and AHI severity for the user.

[0124] Figure 6 A comparison diagram of test results between the sleep monitoring method according to an embodiment of this application and a conventional sleep monitoring method is shown.

[0125] In some examples, the multi-source transfer learning (MSTL) method was compared with three baseline methods:

[0126] 1. PSG-based PSG test: This method is used as a high-performance standard for sleep staging because PSG is considered the gold standard for sleep monitoring due to its comprehensive physiological data and high reliability.

[0127] 2. BCG-based BCG testing: This method uses only BCG data to simulate the deployment of sleep stages, representing the baseline performance of BCG in sleep monitoring.

[0128] 3. PSG-based zero-shot BCG test: This evaluates the performance of the PSG-trained model when it is directly applied to BCG data without fine-tuning, testing its cross-modal generality.

[0129] In some embodiments, a comprehensive set of performance metrics is employed to evaluate the model proposed in this application, including Cohen's kappa, accuracy, macro F1 score, and weighted macro F1 score. Cohen's kappa coefficient κ (KAPPA) is a key metric in the analysis, taking into account the probability of accidental consistency, making it a reliable measure of inter-rater reliability. Values ​​of κ are interpreted as follows: κ > 0.4 indicates moderate consistency, κ > 0.6 indicates near-perfect consistency, and κ > 0.8 indicates almost perfect consistency. Accuracy (ACC) is a simple metric calculated as the ratio of correctly predicted labels to the total number of segments, each segment representing one label. The macro F1 score (MACRO F1) provides a balanced measure of precision and recall, calculated by averaging the F1 score for each class, regardless of its frequency. This makes it particularly useful in imbalanced datasets. The weighted F1 score (WEIGHTED F1) adjusts the macro F1 calculation by weighting the contribution of each class based on the number of 30-second data segments contained in each class. In other embodiments, evaluation can also be performed in other ways, and this application does not limit the types of evaluation.

[0130] like Figure 6 As shown, the PSG-based PSG test achieves a higher level of performance, significantly outperforming both the BCG-based and PSG-based BCG zero-shot tests. Notably, it achieves performance comparable to the proposed MSTL-based BCG test, with both methods achieving Cohen's kappa exceeding 0.76 and accuracy exceeding 0.85. Among the three baselines, the BCG-based BCG test exhibits the lowest performance, and this limitation is further amplified by class imbalance (accuracy: 0.743 → weighted F1: 0.736). The PSG-based BCG zero-shot test demonstrates better performance than the BCG-based BCG test (accuracy 0.815 vs. 0.746). However, a significant performance degradation is observed when compared to the MSTL-based BCG test incorporating transfer learning. Specifically, Cohen's kappa decreased by 0.064 (0.78→0.716), and the weighted F1 decreased by 0.045 (0.856→0.811), highlighting the effectiveness of MSTL in mitigating cross-domain differences and enhancing model adaptation.

[0131] For evaluating AHI estimation, the F1 score is used, which provides a balanced measure of precision and recall, and is particularly important considering the potential class imbalance in the AHI estimation task. Figure 6As shown, the PSG-based PSG test achieved a high F1 score of 0.96, demonstrating robust performance in AHI estimation. Following closely behind is the MSTL-based BCG test, which achieved an F1 score of 0.962, slightly outperforming the PSG-based test. This highlights the effectiveness of the MSTL framework in leveraging transfer learning to enhance model adaptability and performance in cross-domain scenarios. The BCG-based BCG test also performed well, achieving an F1 score of 0.958, almost equivalent to the PSG-based PSG test. However, the PSG-based BCG zero-shot test showed a significant performance drop, with an F1 score of 0.88. This decline underscores the challenges associated with zero-shot learning in cross-domain settings, where the lack of domain-specific fine-tuning can lead to reduced model accuracy and generalization.

[0132] Overall, the proposed MSTL-based BCG test achieves the highest performance among all methods, with a Cohen's skappa score of 0.78, an accuracy of 0.856, and a weighted F1 score of 0.856.

[0133] By comparing the PSG-based PSG test and the BCG-based BCG test, the PSG-based method significantly outperformed the BCG-based method, as shown by Cohen's kappa's 11% difference. This highlights the superiority of PSG in sleep staging due to its richer physiological signals, including the ECG and abdominal movements used.

[0134] The scheme proposed in this application provides direct insights into sleep states and sleep transitions. In contrast, BCG relies on indirect signals derived from body movement and cardiac activity, making it inherently less detailed and more susceptible to noise.

[0135] While PSG-based sleep staging achieves strong performance, its applicability is limited to PSG-specific settings. A significant performance degradation was observed when applied directly to BCG inference, i.e., PSG-based BCG zero-shot testing, with a Cohen'skappa reduction of 5.3%. This degradation can be attributed to domain differences between the PSG and BCG data distributions, making it challenging to effectively generalize models trained solely on PSG to BCG.

[0136] The MSTL-based BCG test, combined with fine-tuning through transfer learning, resulted in a significant performance improvement over the PSG-based BCG zero-shot test (0.716 → 0.78 in Cohen's kappa). Notably, it even slightly outperformed the PSG-based test (0.78 vs. 0.769 in Cohen's kappa). This enhancement can be attributed to two key advantages of transfer learning: i) knowledge diversity: by integrating multiple PSG datasets (source domain), the model learns a richer set of features and patterns, enriching its knowledge into the BCG data (target domain); ii) improved generalization: including diverse PSG datasets provides a more comprehensive representation of sleep-related features, enhancing adaptability to BCG data. These benefits are particularly evident in the classification of specific sleep stages. For example, as... Figure 6 As shown, the recall rate for the N3 sleep stage improved from 0.526 to 0.707, representing a gain of nearly 30% over the BCG-based test. Furthermore, F1 scores for all sleep stages confirmed that the MSTL-based BCG test consistently outperformed other methods.

[0137] In summary, the MSTL-based BCG test is the best performing method for sleep staging and AHI estimation, slightly outperforming the PSG-based PSG test, while the PSG-based BCG zero-shot test lags behind due to its inherent limitations in handling cross-domain variability. These results further highlight the importance of incorporating transfer learning strategies, such as MSTL, to improve model robustness and accuracy in sleep monitoring.

[0138] Figure 7 A schematic diagram of a multi-center BCG queue verification according to an embodiment of this application is shown.

[0139] like Figure 7 As shown, to ensure the robustness and generalizability of the proposed method, a multicenter BCG cohort study was conducted in four hospitals: Shanghai Sixth People's Hospital (SSPH), West China Hospital (WCH), the Second Affiliated Hospital of Soochow University (SAHSU), and Inner Mongolia Hospital (IMBM). Figure 7 The study demonstrates the performance of the sleep staging and sleep apnea estimation methods proposed in this application across four hospitals. This multi-center validation framework not only confirms the consistency of results across different clinical settings but also highlights the adaptability of the method to different patient populations and data collection protocols.

[0140] Figure 8 A schematic diagram of the structure of a training device 800 for a sleep monitoring model based on transfer learning according to an embodiment of this application is shown.

[0141] Reference Figure 8As shown, the device 800 may include: a component 8020 for acquiring a polysomnography (PSG) dataset and a bipolar transcranial Doppler (BCG) dataset, wherein the PSG dataset includes at least PSG respiratory signals and PSG heartbeat signals, and the BCG dataset includes at least BCG respiratory signals and BCG heartbeat signals; a component 8040 for pre-training an initial sleep monitoring model based on the PSG dataset to obtain a sleep monitoring pedestal model; and a component 8060 for fine-tuning the sleep monitoring pedestal model based on the BCG dataset to obtain a sleep monitoring model, wherein the BCG dataset includes BCG respiratory signals and BCG heartbeat signals extracted from BCG.

[0142] In one possible implementation, the component 8040 for pre-training may include a component that trains using PSG respiratory signals and PSG heartbeat signals as a training set.

[0143] In one possible implementation, the sleep monitoring model can at least be used to perform sleep staging tasks and / or sleep apnea estimation tasks.

[0144] In one possible implementation, pre-training the initial sleep monitoring model based on the PSG dataset includes training using PSG respiratory signals and PSG heartbeat signals as the training set.

[0145] In one possible implementation, fine-tuning the sleep monitoring pedestal model based on the BCG dataset may include: using BCG respiratory signals and BCG heartbeat signals, as well as an additional bandpass signal to fine-tune the sleep monitoring pedestal model, wherein the additional bandpass signal includes bandpass-filtered BCG respiratory signals and bandpass-filtered BCG heartbeat signals.

[0146] In one possible implementation, the additional bandpass signal may also include a bandpass-filtered BCG snoring signal.

[0147] In one possible implementation, the sleep monitoring model may include a CNN feature extraction module, an adaptive feature fusion module, and a Roformer encoding module, wherein: the CNN feature extraction module is used to perform feature extraction on BCG respiratory signals and BCG heartbeat signals, as well as bandpass-filtered BCG respiratory signals, bandpass-filtered BCG heartbeat signals, and bandpass-filtered BCG snoring signals, respectively, to obtain enhanced features of BCG respiratory signals and BCG heartbeat signals, and bandpass features of bandpass-filtered BCG respiratory signals, bandpass-filtered BCG heartbeat signals, and bandpass-filtered BCG snoring signals; the adaptive feature fusion module is used to perform feature fusion on enhanced features and bandpass features to obtain fused features; and the Roformer encoding module processes the fused features to perform sleep staging or sleep apnea estimation.

[0148] In one possible implementation, the sleep monitoring model may also include an Adam optimizer, which dynamically adjusts the learning rate for the sleep staging task and the sleep apnea estimation task.

[0149] In one possible implementation, the sleep monitoring model can output the severity of sleep apnea by estimating the AHI value, which includes mild, moderate, and severe sleep apnea.

[0150] In one possible implementation, the PSG heartbeat signal may include an RRI heartbeat sequence, and the BCG heartbeat signal may include a JJI heartbeat sequence.

[0151] In one possible implementation, the device 900 may further include: a component for evaluating the signal quality of the PSG dataset and the BCG dataset, and selecting, based on the evaluation results, PSG respiratory signals and PSG heartbeat signals for pre-training, and BCG respiratory signals and BCG heartbeat signals for fine-tuning.

[0152] In one possible implementation, signal quality assessment may include: calculating a confidence score, which is the ratio between the sum of the energy of the PSG or BCG respiratory signal and the PSG or BCG heartbeat signal in each time period and the total energy in that time period; and calculating the average confidence score over all time periods, wherein, if the average confidence score is greater than a threshold, the PSG or BCG respiratory signal and the PSG or BCG heartbeat signal are retained for pre-training or fine-tuning of the sleep monitoring pedestal model, and wherein, if the average confidence score is less than or equal to the threshold, the PSG or BCG respiratory signal and the PSG or BCG heartbeat signal are discarded.

[0153] In one possible implementation, the threshold can be set to 0.6.

[0154] In one possible implementation, the PSG dataset can be obtained from multiple sources, which may include one or more of SHHS, MESA, MROS, CHAT, WSC, PATS, NUMOM2B, and HSP.

[0155] Figure 9 A schematic diagram of the structure of a sleep monitoring device according to an embodiment of this application is shown.

[0156] Reference Figure 9 As shown, the sleep monitoring device 900 may include: a component 9020 for acquiring the user's BCG respiratory signal and BCG heartbeat signal; and a component 9020 for using, for example... Figure 1 or Figure 3The sleep monitoring model obtained by the model training method shown analyzes BCG respiratory signals and BCG heartbeat signals to obtain the sleep staging results and AHI severity of the user (component 9040).

[0157] Figure 10 A schematic diagram showing the output of a sleep monitoring device according to an embodiment of this application, displayed on a terminal device.

[0158] like Figure 10 As shown, the analysis results of sleep stages and respiratory health estimates are transmitted to the user's terminal in a visual manner. Users can easily view their daily deep sleep status, sleep patterns for each time period, and respiratory health status.

[0159] Figure 11 A structural diagram of a computer device according to an embodiment of this application is shown.

[0160] See Figure 11 The computer device 110 may include a processor 1120 and a memory 1140. Both the processor 1120 and the memory 1140 can be connected via a bus 1130. The computer device 110 can be any type of portable device (such as a smart camera, smartphone, tablet, etc.) or any type of fixed device (such as a desktop computer, server, etc.).

[0161] Processor 1120 can perform various actions and processes according to the program stored in memory 1140. Specifically, processor 1120 can be an integrated circuit chip with signal processing capabilities. The processor can be a general-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), off-the-shelf programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor, and can be based on x86 architecture or ARM architecture.

[0162] Memory 1140 stores computer-executable instructions that, when executed by processor 1120, implement the aforementioned training method and sleep monitoring method for the transfer learning-based sleep monitoring model. Memory 1140 can be volatile memory or non-volatile memory, or may include both. Non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), which serves as an external cache. By way of example, but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous linked dynamic random access memory (SLDRAM), and direct memory bus random access memory (DR RAM). It should be noted that the memory of the methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0163] Embodiments of this application also provide an electronic device, which may include... Figure 9 The illustrated embodiment provides a sleep monitoring device. In one embodiment, the electronic device can be a sleep staging detection device or a sleep state detection device. In one embodiment, the electronic device can be a non-contact detection device, for example, a smart air cushion or a smart headrest. In one embodiment, the electronic device can have a built-in sensor to acquire user-related sensor data, wherein a piezoelectric sensor, piezoresistive sensor, or fiber optic sensor can be built-in. In other embodiments, the sensor used to acquire user-related sensor data in the electronic device can be other types of sensors, and this application does not limit this. In another embodiment, the electronic device can also acquire user-related sensor data, such as respiratory signals and heartbeat signals, provided by external sensors via wireless or wired means.

[0164] In some embodiments, the electronic device acquires user breathing and heartbeat signals through both contact and non-contact measurement. Contact measurement may include measurement via a breathing strap, wristband, watch, or similar device. Non-contact measurement may include air cushion monitoring or microwave radar monitoring. Air cushion monitoring uses pressure sensors to measure human breathing, heartbeat, and body movement, thereby identifying various respiratory disorders. This method is non-contact, providing a comfortable experience for the tester and is suitable for home use; however, its effective range is limited, and its reliability is affected by temperature and humidity. In some embodiments, in scenarios using air cushion monitoring, the electronic device can be a smart headrest or smart air cushion, and the smart headrest or smart air cushion may incorporate a piezoelectric sensor, piezoresistive sensor, or fiber optic sensor.

[0165] Microwave radar respiratory monitoring utilizes the effect of subtle movements of the chest and abdomen during respiration on radar echo signals. Respiratory signals are extracted by analyzing the radar's transmitted and echo signals, resulting in high accuracy. The microwave radar device is placed at a certain vertical height from the body, such as at the head or side of the bed, eliminating the need for contact. It can penetrate blankets and clothing, has a wide effective range, and achieves millimeter-level measurement accuracy. While maintaining comfort, microwave radar offers superior measurement accuracy and precision compared to mattress-based respiratory detection, making it the preferred method for non-contact respiratory measurement.

[0166] Furthermore, the training method and sleep monitoring method of the transfer learning-based sleep monitoring model according to this application can be stored in a computer-readable storage medium. Specifically, according to this application, a computer-readable storage medium storing computer-readable instructions can be provided, which, when executed by a processor, cause the processor to perform the training method and sleep monitoring method of the transfer learning-based sleep monitoring model as described above.

[0167] Embodiments of this application also provide a computer program product, including a computer program or instructions, which, when executed by a processor, implement the training method and sleep monitoring method of the sleep monitoring model based on transfer learning provided in any embodiment of this application.

[0168] It should be noted that the terminals involved in the embodiments of this application may include, but are not limited to, personal computers (PCs), personal digital assistants (PDAs), wireless handheld devices, tablet computers, mobile phones, MP3 players, MP4 players, etc.

[0169] It should be noted that the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing at least one executable instruction for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those shown in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0170] Generally, the various exemplary embodiments of this application can be implemented in hardware or dedicated circuitry, software, firmware, logic, or any combination thereof. Some aspects can be implemented in hardware, while others can be implemented in firmware or software that can be executed by a controller, microprocessor, or other computing device. When aspects of the embodiments of this application are illustrated or described as block diagrams, flowcharts, or represented using some other images, it will be understood that the blocks, apparatuses, systems, techniques, or methods described herein can be implemented as non-limiting examples in hardware, software, firmware, dedicated circuitry or logic, general-purpose hardware or controllers or other computing devices, or some combination thereof.

[0171] Unless otherwise defined, all terms used herein (including technical and scientific terms) shall have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains. It should also be understood that terms such as those defined in a common dictionary shall be interpreted as having a meaning consistent with their meaning in the context of the relevant art, and not as having an idealized or highly formalized meaning, unless expressly defined herein.

[0172] The foregoing description is intended to illustrate this application and should not be construed as limiting it. While several exemplary embodiments of this application have been described, those skilled in the art will readily understand that many modifications can be made to the exemplary embodiments without departing from the novel teachings and advantages of this application. Therefore, all such modifications are intended to be included within the scope of this application as defined by the claims. It should be understood that the foregoing description is intended to illustrate this application and should not be construed as limiting it to the specific embodiments disclosed, and modifications to the disclosed embodiments and other embodiments are intended to be included within the scope of the appended claims. This application is defined by the claims and their equivalents.

Claims

1. A training method for a sleep monitoring model based on transfer learning, the method comprising: Acquire a polysomnography (PSG) dataset and a cardiograph (BCG) dataset, wherein the PSG dataset includes at least a PSG respiratory signal and a PSG heartbeat signal, and the BCG dataset includes at least a BCG respiratory signal and a BCG heartbeat signal; The initial sleep monitoring model was pre-trained based on the PSG dataset to obtain the sleep monitoring base model. as well as The sleep monitoring baseline model was fine-tuned based on the BCG dataset to obtain the sleep monitoring model. The fine-tuning of the sleep monitoring base model based on the BCG dataset includes fine-tuning the sleep monitoring base model using the BCG respiratory signal, the BCG heartbeat signal, and an additional bandpass signal. Specifically, the BCG respiratory signal and the BCG heartbeat signal utilize weights pre-trained on the PSG dataset by the sleep monitoring base model to transfer the respiratory and heartbeat representations learned in the PSG dataset to the BCG domain. Furthermore, the additional bandpass signal includes bandpass-filtered BCG snoring signal, bandpass-filtered BCG heartbeat signal, and bandpass-filtered BCG respiratory signal. The sleep monitoring model outputs the severity of sleep apnea by estimating the AHI value, which includes mild, moderate and severe.

2. The method according to claim 1, wherein the sleep monitoring model is at least used to perform sleep staging tasks and / or sleep apnea estimation tasks.

3. The method according to claim 1, wherein, Pre-training the initial sleep monitoring model based on the PSG dataset includes: The PSG respiratory signal and the PSG heartbeat signal were used as the training set for training.

4. The method according to claim 1, wherein, The sleep monitoring model includes a CNN feature extraction module, an adaptive feature fusion module, and a Roformer encoding module, wherein: The CNN feature extraction module is used to perform feature extraction on the BCG breathing signal and the BCG heartbeat signal, as well as the bandpass-filtered BCG breathing signal, the bandpass-filtered BCG heartbeat signal, and the bandpass-filtered BCG snoring signal, respectively, to obtain the enhancement features of the BCG breathing signal and the BCG heartbeat signal, as well as the bandpass features of the bandpass-filtered BCG breathing signal, the bandpass-filtered BCG heartbeat signal, and the bandpass-filtered BCG snoring signal; The adaptive feature fusion module is used to perform feature fusion on the enhanced feature and the bandpass feature to obtain fused features; and The Roformer encoding module processes the fused features to perform sleep staging or sleep apnea estimation.

5. The method according to claim 4, wherein, The sleep monitoring model also includes an Adam optimizer, which dynamically adjusts the learning rate for sleep staging and sleep apnea estimation tasks.

6. The method according to claim 1, wherein, The PSG heartbeat signal includes the RRI heartbeat sequence, and the BCG heartbeat signal includes the JJI heartbeat sequence.

7. The method according to claim 1, further comprising performing signal quality assessment on the PSG dataset and the BCG dataset, and selecting, based on the assessment results, the PSG respiratory signal and the PSG heartbeat signal for pre-training, and the BCG respiratory signal and the BCG heartbeat signal for fine-tuning.

8. The method according to claim 7, wherein, The signal quality assessment includes: Calculate a confidence score, which is the ratio between the sum of the energy of the PSG or BCG respiratory signal and the PSG or BCG heartbeat signal in each time period and the total energy in that time period; and Calculate the average confidence score over all time periods. Wherein, if the average confidence score is greater than a threshold, PSG or BCG respiratory signals and PSG or BCG heartbeat signals are retained for pre-training or fine-tuning of the sleep monitoring pedestal model, and Specifically, if the average confidence score is less than or equal to a threshold, the PSG or BCG respiratory signal and the PSG or BCG heartbeat signal are discarded.

9. The method according to claim 8, wherein, The threshold is 0.

6.

10. The method according to any one of claims 1 to 9, wherein, The PSG dataset is obtained from multiple sources, including one or more of SHHS, MESA, MROS, CHAT, WSC, PATS, NUMOM2B, and HSP.

11. A sleep monitoring method, the method comprising: Collect the user's BCG respiratory signal and BCG heartbeat signal; as well as The sleep monitoring model obtained using any one of claims 1 to 10 is used to analyze the BCG respiratory signal and the BCG heartbeat signal to obtain sleep staging results and AHI severity for the user.

12. A training device for a sleep monitoring model based on transfer learning, the device comprising: Components for acquiring polysomnography (PSG) datasets and cardiograph (BCG) datasets, wherein the PSG datasets include at least PSG respiratory signals and PSG heartbeat signals, and the BCG datasets include at least BCG respiratory signals and BCG heartbeat signals; Components used to pre-train the initial sleep monitoring model based on the PSG dataset to obtain the sleep monitoring pedestal model; This is used to fine-tune the sleep monitoring pedestal model based on the BCG dataset to obtain the components of the sleep monitoring model. The fine-tuning of the sleep monitoring base model based on the BCG dataset includes fine-tuning the sleep monitoring base model using the BCG respiratory signal, the BCG heartbeat signal, and an additional bandpass signal. Specifically, the BCG respiratory signal and the BCG heartbeat signal utilize weights pre-trained on the PSG dataset by the sleep monitoring base model to transfer the respiratory and heartbeat representations learned in the PSG dataset to the BCG domain. Furthermore, the additional bandpass signal includes bandpass-filtered BCG snoring signal, bandpass-filtered BCG heartbeat signal, and bandpass-filtered BCG respiratory signal. The sleep monitoring model outputs the severity of sleep apnea by estimating the AHI value, which includes mild, moderate and severe.

13. A sleep monitoring device, the device comprising: Components used to collect the user's BCG respiratory and heart rate signals; as well as A component for analyzing the BCG respiratory signal and the BCG heartbeat signal using a sleep monitoring model obtained according to any one of claims 1 to 10 to obtain sleep staging results and AHI severity for the user.

14. An electronic device comprising the sleep monitoring device of claim 13.

15. A computer device comprising a memory and a processor, wherein, The memory stores computer-readable instructions that, when executed by the processor, implement the method according to any one of claims 1 to 11.

16. A computer-readable storage medium storing computer-readable instructions that, when executed by a processor, implement the method according to any one of claims 1 to 11.

Citation Information

Patent Citations

  • Sleep staging method, system and device based on ballistocardiogram signal and medium

    CN114376564A

  • Sleep staging method and device, electronic equipment and storage medium

    CN118177740A

  • Contactless vital signs monitoring system

    US20230346220A1