Single-channel airflow sleep apnea real-time detection system based on deterministic learning
Through a single-channel airflow signal real-time detection system based on deterministic learning, it solves the problems of expensive equipment and data quality in sleep apnea diagnosis, achieves high-precision, real-time sleep apnea detection, provides timely intervention and simple operation, and improves sleep quality. quality and health.
Patent Information
- Application Number
- CN202410710879.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-06-04
AI Technical Summary
The existing technology has problems in sleep apnea diagnosis, such as expensive equipment, affected data quality, time-consuming and highly subjective manual inspection, and automated diagnosis is mainly retrospective and lacks real-time intervention capabilities.
A single-channel airflow signal real-time detection system based on deterministic learning is used to achieve real-time detection of sleep apnea through signal acquisition, preprocessing, respiratory system dynamic model construction, dynamic feature generation, feature fusion and classification modules. The system uses sliding windows to process airflow signals, builds a dynamic model of the respiratory system, generates respiratory dynamics maps and converts them into scores, and combines deterministic learning feature extraction and support vector machine classifiers to provide high-precision real-time diagnosis.
It achieves high-precision, real-time monitoring of sleep breathing status, simplifies data processing, reduces clinical workload, provides timely intervention, improves sleep quality and health status, and is easy to operate, making it easy to develop portable testing equipment.
Smart Images

Figure CN118266874B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of sleep apnea detection, and in particular to a single-channel airflow sleep apnea real-time detection system based on deterministic learning. Background Art
[0002] Sleep apnea-hypopnea syndrome (SAHS) is a sleep disorder characterized by repetitive complete or partial obstruction of the upper airway during sleep, resulting in interrupted breathing patterns. These symptoms, known as apneas and hypopneas, can lead to decreased oxygen levels in the blood and fragmented sleep. Currently, the prevalence of SAHS is considered significant and is increasing worldwide. Some studies suggest that approximately 1 billion adults worldwide are affected by SAHS, with a particularly high prevalence in specific high-risk groups who are obese, elderly, or have certain anatomical abnormalities.
[0003] Untreated SAHS can lead to serious health risks, including cardiovascular complications such as high blood pressure, heart disease, and stroke, metabolic diseases such as insulin resistance and type 2 diabetes, daytime fatigue and cognitive impairment, and mental health issues such as depression and anxiety. Polysomnography (PSG) plays a vital role in the diagnosis and treatment of SAHS. This comprehensive sleep study involves the simultaneous recording of various physiological parameters during sleep, such as airflow, brain activity, eye movements, muscle activity, heart rhythm, and oxygen levels. By monitoring respiratory events such as apneas (complete cessation of airflow) and hypopneas (partial reduction of airflow), and the associated changes in oxygen saturation, PSG helps confirm the presence and severity of SAHS.
[0004] However, PSG has several limitations in the diagnosis and treatment of sleep apnea. First, traditional PSG usually requires a sleep laboratory equipped with specialized equipment and trained personnel to collect various signals, which makes it expensive and inconvenient. Second, patients are usually required to stay overnight in a sleep laboratory and be monitored by multiple devices. This setting may not accurately reflect the patient's typical sleep environment and may affect the quality of data collected during the study. Third, manual review of PSG recordings is time-consuming, expensive, subjective, and prone to errors, especially when dealing with multiple monitoring devices, which further complicates data analysis and interpretation. To reduce the limitations of PSG, researchers have worked to reduce the number of monitoring signals to simplify data collection and implement automated diagnostic algorithms to simplify analysis, thereby improving the efficiency and accuracy of sleep apnea diagnosis and treatment. Among them, airflow signals provide a simpler alternative to PSG for detecting apneas and hypopneas because these events are identified by their amplitude fluctuations.
[0005] Classification-based automated diagnosis is primarily used as a post hoc tool to classify symptoms after they have already manifested. Its main advantage is that it reduces the significant workload faced by healthcare professionals by simplifying the process of reviewing and interpreting diagnostic data. However, the impact of automated diagnosis on direct patient treatment is relatively limited because it is usually retrospective rather than providing real-time intervention. Therefore, scholars have proposed the concept of early prediction of sleep apnea; however, implementation remains challenging due to the complexity and variability of human signals. Summary of the invention
[0006] In order to address the deficiencies of the prior art, the present invention provides a single-channel airflow sleep apnea real-time detection system based on deterministic learning; an algorithm for real-time detection of sleep apnea using only a single-channel airflow signal is explored. Sleep apnea is a dynamic physiological process caused by respiratory or nervous system pathology, which can provide richer information when monitored from the perspective of system dynamics. Airflow signals can provide real-time and intuitive feedback on the state of the respiratory system. Dynamic analysis of respiratory signals can extract higher-dimensional information about the respiratory system, thereby enhancing the robustness of detection. Deterministic learning is a recently developed mechanism for identifying and recognizing dynamic systems. This method can learn inherent system dynamics and store them in a constant-weight radial basis function (RBF) network. This method has been applied to diagnose whether children have adenoid hypertrophy by analyzing nasal airflow signals.
[0007] A single-channel airflow sleep apnea real-time detection system based on deterministic learning includes: a signal acquisition module, which is configured to: acquire the airflow signal of a single nasal passage during the sleep stage of a subject; a preprocessing module, which is configured to: process the acquired airflow signal using a sliding window to obtain a number of samples to be tested; a respiratory system dynamic model construction module, which is configured to: establish a respiratory system dynamic model based on a deterministic learning algorithm, and the respiratory system dynamic model is used to simulate the dynamic characteristics of the airflow signal within a set time range before the current moment; a respiratory dynamics feature generation module, which is configured to: process the sample to be tested based on the constructed respiratory system dynamic model to generate a respiratory dynamics graph; convert the respiratory dynamics graph into a respiratory dynamics score; the conversion of the respiratory dynamics graph into a respiratory dynamics score specifically includes: superimposing a plurality of equally spaced concentric circles on the respiratory dynamics graph, setting the area between adjacent concentric circles The score area has preset scores that decrease from outside to inside. The score of each track point in the respiratory dynamics diagram is obtained according to the concentric circle area to which each track point belongs. After obtaining the score of each track point, the scores in the set time period before the current moment are summed to obtain the respiratory dynamics score at the current moment. Therefore, each second of the signal has a respiratory dynamics score, and the characteristic value of the respiratory dynamics feature at the current moment is the respiratory dynamics score of the previous period of time; the dynamic feature extraction module is configured to: based on a certain learning feature extraction algorithm, convert the dynamic information of the current respiratory airflow signal into the dynamic feature of the current airflow signal; the feature fusion module is configured to: fuse the respiratory dynamics feature and the dynamic feature of the current airflow signal to obtain the fusion feature of the current airflow signal; the classification module is configured to: input the fusion feature into the trained classifier to obtain the detection result of whether sleep apnea occurs or not.
[0008] The above technical solution has the following advantages or beneficial effects: Comprehensive evaluation and high-precision monitoring: By combining respiratory dynamics scores and determining learning feature extraction technology, this method can not only monitor the respiratory state of the subject in real time, but also distinguish normal breathing from respiratory events (hypopnea and apnea) with high specificity and accuracy, providing a reliable basis for clinical diagnosis. At the same time, the real-time detection results are fed back every second, and timely intervention can be carried out on patients by combining with ventilators and other equipment. Easy operation and clinical application value: This technology simplifies the data processing process, making it easy for non-professionals to operate, and improving user-friendliness. At the same time, its clinical application helps to diagnose and intervene in sleep apnea in a timely manner, and improve the patient's sleep quality and overall health. Real-time detection of sleep apnea events is achieved only through a single-channel airflow signal, making the operation more convenient, providing clinicians with an efficient tool, and helping to develop simple and portable detection equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0010] Figure 1 This is a system function module diagram of embodiment 1.
[0011] Figure 2 This is an airflow signal diagram of a normal state of Example 1.
[0012] Figure 3 This is an airflow signal diagram of a sleep apnea state in Example 1.
[0013] Figure 4 This is a schematic diagram of a sliding window of Embodiment 1.
[0014] Figure 5 This is a respiratory dynamics diagram under normal conditions of Example 1.
[0015] Figure 6 This is a respiratory dynamics diagram under the hypoventilation state of Example 1.
[0016] Figure 7 This is a respiratory dynamics diagram in the pause state of Example 1.
[0017] Figure 8 This is a schematic diagram of superimposing a plurality of equally spaced concentric circles on a respiratory dynamics graph according to the first embodiment.
[0018] Fig. 9 Schematic diagram of the respiratory dynamics score curve of Example 1 changing over time. DETAILED DESCRIPTION
[0019] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used in the present invention have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0020] Embodiment 1: Figure 1As shown, the present embodiment provides a single-channel airflow sleep apnea real-time detection system based on deterministic learning, including: a signal acquisition module, which is configured to: acquire the airflow signal of the unilateral nasal passage of the subject during the sleep stage; a preprocessing module, which is configured to: process the acquired airflow signal using a sliding window to obtain a plurality of samples to be tested; a respiratory system dynamic model construction module, which is configured to: establish a respiratory system dynamic model based on a deterministic learning algorithm, and the respiratory system dynamic model is used to simulate the dynamic characteristics of the airflow signal within a set time range before the current moment; a respiratory dynamics feature generation module, which is configured to: process the sample to be tested based on the constructed respiratory system dynamic model to generate a respiratory dynamics graph; convert the respiratory dynamics graph into a respiratory dynamics score; the conversion of the respiratory dynamics graph into a respiratory dynamics score specifically includes: superimposing a plurality of equally spaced concentric circles on the respiratory dynamics graph, and dividing the concentric circles between adjacent concentric circles; The area is set as the scoring area, and the preset scores of the scoring area decrease from the outside to the inside. The score of each trajectory point is obtained according to the concentric circle area to which each trajectory point in the respiratory dynamics graph belongs. After obtaining the score of each trajectory point, the scores in the set time period before the current moment are summed to obtain the respiratory dynamics score at the current moment. Therefore, each second of the signal has a respiratory dynamics score, and the characteristic value of the respiratory dynamics feature at the current moment is the respiratory dynamics score of the previous period of time; the dynamic feature extraction module is configured to: based on the determination of the learning feature extraction algorithm, convert the dynamic information of the current respiratory airflow signal into the dynamic features of the current airflow signal; the feature fusion module is configured to: fuse the respiratory dynamics feature and the dynamic feature of the current airflow signal to obtain the fusion feature of the current airflow signal; the classification module is configured to: input the fusion feature into the trained classifier to obtain the detection result of sleep apnea or not.
[0021] Among them, a normal airflow signal diagram, such as Figure 2 As shown, an airflow signal diagram of a sleep apnea state, such as Figure 3 shown.
[0022] Furthermore, the airflow signal of the unilateral nasal passage of the subject during sleep is acquired by using a gas flow sensor, and during the acquisition process, only the airflow signal of the unilateral nasal passage of the subject during sleep is acquired.
[0023] Furthermore, the acquired airflow signal is processed using a sliding window to obtain a number of samples to be tested, specifically including: performing bandpass filtering on the acquired airflow signal; setting the length of the sliding window and the step size of the sliding window; using the sliding window to segment the airflow signal after the bandpass filtering process to obtain a number of airflow signal segments, and taking each airflow signal segment as a sample to be tested to obtain a number of samples to be tested.
[0024] Furthermore, based on the determined learning algorithm, a dynamic model of the respiratory system is established, wherein the dynamic model of the respiratory system is: ;in, It's airflow. is the airflow change rate, represents the internal state vector of the respiratory system, represents the derivative of the airflow, represents the derivative of the rate of change of airflow, Represents airflow observed using monitoring equipment.
[0025] ;in, is an inherently dynamic function, is the lung elasticity, is lung resistance, is the total airway resistance, It's lung inertia. represents the system parameter vector, and Considered as the detected airflow signal, the system parameters Varies with the subject's physical condition.
[0026] In this case, a high-gain observer is used to estimate the dynamic function of the respiratory system based on the airflow signal. The high-gain observer can estimate the unknown system dynamics that are difficult to measure through the known system state, thereby obtaining the high-order state information of the system and realizing the airflow signal through the observed , to obtain .
[0027] For all respiratory flow signals , using a high-gain observer to observe its high-order state. For the respiratory system, based on the airflow observation , using a high-gain observer to observe the higher-order states The method is: ;in, is the system state matrix, represents the observer gain matrix, is the system output matrix. The single-channel respiratory signal can be expanded to two dimensions through high gain to obtain the high-dimensional dynamic information contained in the respiratory airflow and build a dynamic model of the respiratory system.
[0028] The high gain observer is obtained by using the known system state (airflow observation value ), estimate the unknown system dynamics that are difficult to measure, thereby obtaining the high-order state information of the system. Combined with the deterministic learning algorithm, a dynamic model of the respiratory system can be constructed through the airflow signal of a single channel.
[0029] Deterministic learning is a dynamic system identification and dynamic pattern recognition mechanism that can learn the internal dynamics of the system and store the learned knowledge as constant weights of the radial basis function (RBF) network. The dynamic system identification process is based on these constant weight RBF networks, which can realize the recognition of unknown inherent dynamic functions. Make locally accurate estimates.
[0030] Furthermore, based on the deterministic learning algorithm, a dynamic model of the respiratory system is established, specifically including: the dynamic model of the respiratory dynamics system corresponding to the high-gain expanded airflow signal In short: ; ;in, represents the initial state, Indicates the initial time, represents the state of the respiratory dynamics system, represents the respiratory dynamics system parameter vector, is a system dynamic function.
[0031] The state trajectory of the respiratory dynamics system is , using radial basis function neural network along the state trajectory to analyze the system dynamic function To model: ;in, , is the weight of the radial basis neural network, is a Gaussian function, is the estimation error, is the average value of the neural network weights within a period of time after the weights converge. Represents the number of neurons; this completes the use of constant radial basis neural network Estimating system dynamics functions modeling process.
[0032] Furthermore, the sample to be tested is processed based on the constructed dynamic model of the respiratory system to generate a respiratory dynamics diagram, which specifically includes: constructing a rectangular coordinate system to convert the airflow change rate As the horizontal axis, As the ordinate, we get the dynamic trajectory of breathing , the respiratory dynamics trajectory represents the respiratory dynamics modeled along the airflow trajectory; the respiratory dynamics trajectory is visualized on a two-dimensional plane to obtain the respiratory dynamics graph; the respiratory dynamics graphs in normal state, hypoventilation state and pause state, Figure 5 Respiratory dynamics diagram under normal conditions, Figure 6 Respiratory dynamics diagram in hypoventilation state, Figure 7Represents the respiratory dynamics diagram in the pause state; by visualizing the intrinsic dynamics of the airflow signal, the respiratory dynamics diagram effectively distinguishes the different states of the subject. Among them, is a constant-valued radial basis neural network.
[0033] It should be understood that using the established dynamic model of the respiratory system, a respiratory dynamics map is generated, which is a visualization method for displaying the intrinsic dynamics of the airflow signal.
[0034] Further, the respiratory dynamics graph is converted into a respiratory dynamics score, specifically including: superimposing a plurality of equally spaced concentric circles on the respiratory dynamics graph, such as Figure 8 As shown, the area between adjacent concentric circles is set as a scoring area, and the preset scores of the scoring area decrease from the outside to the inside. The score of each trajectory point in the respiratory dynamics graph is obtained according to the concentric circle area to which each trajectory point belongs. After obtaining the score of each trajectory point, the scores in the set time period before the current moment are summed to obtain the respiratory dynamics score at the current moment. Therefore, each second of the signal has a respiratory dynamics score, and the characteristic value of the respiratory dynamics feature at the current moment is the respiratory dynamics score of the previous period of time.
[0035] For example, if the respiratory dynamics score 20 seconds before the current moment is used as the characteristic value, then the respiratory dynamics feature at the current moment is a characteristic vector containing 20 characteristic values. This can reflect the changing characteristics of the respiratory trend over a period of time.
[0036] It should be understood that it is not convenient to classify the respiratory dynamics graph directly using a classifier, and it is difficult to integrate with other features. Therefore, a method for converting the respiratory dynamics graph into a digital feature, called the respiratory dynamics score, is proposed. Due to the periodicity of human respiratory airflow, the amplitude oscillates around zero, and the respiratory dynamics graph is usually centered on zero. It is observed that during normal breathing, the respiratory dynamics graph presents a relatively symmetrical butterfly shape, with most of the points distributed on the wings away from the center, except for the middle point. However, in the case of hypopnea and apnea, due to the obstruction of airflow, the shape of the respiratory dynamics graph becomes irregular and shrinks near the center point. Based on the characteristics of the respiratory dynamics graph, the present invention designs a scoring method similar to bull's eye shooting to calculate the respiratory dynamics score of each segment. Multiple equally spaced concentric circles are superimposed on the respiratory dynamics graph. Then the points are scored according to which ring the points fall in, and the outer circle has a higher score. Under this scoring scheme, the graphics distributed farther away from the center will get higher scores, indicating that normal breathing will get higher respiratory dynamics scores than hypopnea and apnea. When the time window slides continuously with a step size of 1 second, the respiratory dynamics score curve can be obtained. The generated pneumodynamics maps are converted into numerical features, called pneumodynamic scores, to facilitate subsequent classification processing.
[0037] The fluctuations in the pneumodynamic score curve correspond to the degree of airflow during the subject's breathing, and the troughs in the curve correspond to hypopnea or apnea events. However, the pneumodynamic score curve also has certain limitations. First, not every trough corresponds to a hypopnea or apnea event, because there may be fluctuations even during normal breathing, and mild hypopnea events may be indistinguishable. Second, although the pneumodynamic score curve can roughly indicate the occurrence of hypopnea or apnea events based on the trend, it cannot accurately determine the specific time of these events.
[0038] By extracting segments using a time window, the respiratory dynamics graph was drawn and the respiratory dynamics score for each segment was calculated. This process resulted in a respiratory dynamics score curve that changes over time, such as Fig. 9 Each set of red and blue lines represents the beginning and end of a hypopnea or apnea event, respectively. The positions marked with double arrows indicate the occurrence of apnea events, while the others represent hypopnea events. Fig. 9 , it can be clearly seen that the fluctuations in the respiratory dynamics score curve correspond to the degree of airflow when the subject breathes, and the troughs in the curve correspond to the onset of hypopnea or apnea events.
[0039] Furthermore, based on the determined learning feature extraction algorithm, the dynamic information of the current respiratory airflow signal is converted into the dynamic features of the current airflow signal, specifically including: constant radial basis function neural network It is a dynamic function of the system The local accurate estimation of the system dynamics knowledge is stored along the system state trajectory Neighborhood Within; assuming that the maximum accurate estimated distance is , then the neighborhood Described as: ;in, Indicates distance; express The distance to the system state trajectory; Indicates acceptable error.
[0040] The neighborhood contains all activated neurons, and the inactivated neurons are outside the neighborhood, and their weights are 0. The system dynamics at the center of the constant radial basis neural network neuron are extracted as features. The calculation method of the system dynamics at the center of the neuron is: ;in, Indicates dynamic characteristics; Represents the system state value at the center of the neuron; in the neighborhood The neurons in are activated, their weights are not 0, and they are in the neighborhood The neurons outside are not activated and their weights are 0. The position of the corresponding airflow signal sample in the neural network is determined based on whether the extracted eigenvalue is 0, which increases the discrimination of samples in different states. Therefore, the system dynamics at the centers of all activated and inactivated neurons are extracted as feature vectors.
[0041] It should be understood that the deterministic learning feature extraction algorithm can accurately estimate the intrinsic dynamics of the unknown system by deterministic learning locally, thereby converting the dynamic information into quantitative features.
[0042] Furthermore, the respiratory dynamics characteristics and dynamic characteristics of the current airflow signal are fused to obtain the fusion characteristics of the current airflow signal, specifically including: concatenating and fusing the respiratory dynamics characteristics and dynamic characteristics of the current airflow signal in series to obtain the fusion characteristics of the current airflow signal.
[0043] It should be understood that the determined learning feature extraction algorithm allows the subject's current respiratory state to be reflected through the dynamics of the respiratory system. However, this method can only capture the subject's respiratory state over a short period of time. If only relying on this feature, a situation where the ventilation volume is significantly reduced may be misclassified as a hypopnea or apnea event, resulting in a reduction in the specificity of the algorithm. Therefore, the present invention combines the respiratory dynamics score with the dynamic features extracted by determining learning, and uses them together for real-time diagnosis of sleep apnea. The respiratory dynamics score reflects the overall respiratory dynamic trend of the subject over a long period of time, and provides an indication of whether the subject is mainly in a normal state or an apnea state. On the other hand, the dynamic features extracted by determining learning allow the current respiratory state to be accurately assessed. By integrating these two methods, it is possible to assess in real time whether a subject is experiencing sleep apnea at a particular moment.
[0044] Furthermore, the fusion features are input into the trained classifier to obtain a detection result of whether sleep apnea occurs or not, wherein the classifier is implemented using a support vector machine; the training process of the trained classifier includes: constructing a data set, the data set includes: a training set and a test set; the training set and the test set are both single-channel airflow signal fusion features with known detection labels; the detection labels include: a label for the absence of sleep apnea and a label for the presence of sleep apnea; the training set is input into the classifier to train the classifier; the test set is input into the trained classifier to test the classifier; and the classifier whose test accuracy is higher than a set threshold is used as the final trained classifier.
[0045] All airflow signal samples are represented by respiratory dynamics scores and dynamic features extracted by deterministic learning, and the combined feature vector is used Represents the original sample, the label of which is , if it is a sample of sleep apnea / hypopnea state, then , if it is a normal sample, then .
[0046] Use the samples in the training set to train the support vector machine classifier: ; The classifier is limited to: ; ;in, represents the weight vector, Used to balance the regularization term and the error term, represents the bias term, Indicates the error, Indicates Errors, , Indicates input features, total Features, Indicates Input features, Indicates Sample labels.
[0047] The above problem is transformed into its dual problem: ; The dual problem is constrained by: ;in, represents the penalty parameter, Indicates The penalty parameter, Indicates The penalty parameter, , ; Indicates Input features, Indicates Sample labels; Used to balance the regularization term and the error term; solve the above problem through the quadratic optimization method to obtain the optimal value.
[0048] The single-channel airflow signal samples in the training set are extracted by determining the learning features and converted into feature vectors. The support vector machine classifier is trained. In the airflow signal samples of the test set, the features are extracted in the same way as the training set samples and converted into feature vectors. Then, the trained support vector machine is used for classification. The classification method is as follows: ;in, represents the output label, represents the symbolic function, Represents the bias term.
[0049] If the output value is 1, it is classified as sleep apnea / hypopnea state, and if it is -1, it is classified as normal state. After comparing with the true label value, the classification accuracy can be obtained.
[0050] Exemplarily, the data set construction includes: bandpass filtering the collected airflow signal, and in order to achieve real-time detection, segmenting the airflow signal using a sliding time window. The time window length is 10 seconds, the sliding step is 1 second, and each segment is labeled as onset or non-onset according to whether it contains sleep apnea and hypopnea events. Each segment is a sample, and these segments are divided into a training set and a test set, which are used to train the classifier and test the classifier effect respectively. The sliding window diagram is shown in Figure 4 shown.
[0051] The present invention proposes a single-channel airflow sleep apnea detection system based on deterministic learning. The present invention extracts the nonlinear dynamic characteristics of the airflow signal based on deterministic learning theory, and then uses a support vector machine to complete the sleep apnea detection. By analyzing the dynamic changes of the airflow signal over a period of time and at the current moment, the algorithm can provide real-time feedback on whether the patient is currently experiencing sleep apnea. Therefore, the method proposed in the present invention uses an airflow sensor to achieve automated diagnosis of sleep apnea, providing real-time feedback on the patient's current breathing state to the treatment device, and achieving timely intervention. The schematic diagram of the present invention is shown in FIG. Figure 1 shown.
[0052] The present invention discloses a real-time detection system for sleep apnea events based on a single-channel airflow signal. The method is based on a single-channel airflow signal. The overall process is divided into two key steps: the first step is the dynamic analysis of airflow based on respiratory dynamics graphs. In this step, a dynamic model of the respiratory system is first constructed using a deterministic learning method. The model is used to simulate and capture the dynamic characteristics of airflow signals in a period of time before the current time point. Through this process, respiratory dynamics graphs are generated. These graphs intuitively show the respiratory dynamics and are further quantified into feature vectors; the second step is dynamic learning feature extraction. In this part, the deterministic learning feature extraction technology is used to convert the dynamic information of the airflow signal at the current moment into a feature vector that can reflect the dynamic state of the immediate airflow.
[0053] In order to achieve real-time detection of sleep apnea events, the airflow signal is continuously segmented by the sliding time window technology. Finally, the respiratory dynamics feature vector generated in the first step is combined with the current dynamic feature vector obtained in the second step and input into the classifier together. The function of the classifier is to determine the respiratory state at the current time point, that is, whether it is in normal breathing or experiencing hypopnea / apnea. Through the collaborative work of these two steps, the method of the present invention can monitor and diagnose sleep apnea events in real time, provide accurate diagnostic basis for clinicians, and help improve the sleep quality and health of patients.
[0054] The present invention achieves a detection accuracy of 88.9%, a detection sensitivity of 87.4% and a detection specificity of 90.7%. Under the computer configuration of Intel(R) Core(TM) i7-11700 @ 2.50GHz CPU processor, 16 GB RAM, when faced with an airflow signal with a time length of 1 second, the detection time is only 0.53 seconds, and has the ability to quickly and accurately detect sleep apnea in real time.
[0055] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A single-channel airflow sleep apnea real-time detection system based on deterministic learning, characterized by: include: A signal acquisition module is configured to: acquire an airflow signal of a unilateral nasal passage of a subject during sleep; A preprocessing module is configured to: process the acquired airflow signal using a sliding window to obtain a number of samples to be tested; A respiratory system dynamic model building module, which is configured to: build a respiratory system dynamic model based on a certain learning algorithm, wherein the respiratory system dynamic model is used to simulate the dynamic characteristics of an airflow signal within a set time range before a current moment; A respiratory dynamics feature generation module is configured to: process the sample to be tested based on the constructed respiratory system dynamic model to generate a respiratory dynamics graph; convert the respiratory dynamics graph into a respiratory dynamics score; The converting of the pneumodynamics graph into a pneumodynamics score specifically includes: A plurality of equally spaced concentric circles are superimposed on the respiratory dynamics graph, and the area between adjacent concentric circles is set as the scoring area. The preset scores of the scoring area decrease from the outside to the inside. The score of each trajectory point in the respiratory dynamics graph is obtained according to the concentric circle area to which each trajectory point belongs. After obtaining the score of each trajectory point, the scores in the set time period before the current moment are summed to obtain the respiratory dynamics score at the current moment. Therefore, each second of the signal has a respiratory dynamics score, and the characteristic value of the respiratory dynamics feature at the current moment is the respiratory dynamics score of the previous period of time. A dynamic feature extraction module, which is configured to: convert the dynamic information of the current respiratory airflow signal into the dynamic features of the current airflow signal based on a determined learning feature extraction algorithm; A feature fusion module is configured to: fuse the respiratory dynamics feature and the dynamic feature of the current airflow signal to obtain a fusion feature of the current airflow signal; The classification module is configured to: input the fusion features into the trained classifier to obtain a detection result of whether sleep apnea occurs or not.
2. The single-channel airflow sleep apnea real-time detection system based on deterministic learning as claimed in claim 1, characterized in that: The airflow signal of the unilateral nasal passage of the subject during sleep is acquired by using a gas flow sensor. During the acquisition process, only the airflow signal of the unilateral nasal passage of the subject during sleep is acquired.
3. The single-channel airflow sleep apnea real-time detection system based on deterministic learning as claimed in claim 1, characterized in that: The obtained airflow signal is processed by using a sliding window to obtain a number of samples to be tested, specifically including: Performing band-pass filtering on the acquired airflow signal; Set the length of the sliding window and the step size of the sliding window; The airflow signal after bandpass filtering is processed by segmentation using a sliding window to obtain a number of airflow signal segments, and each airflow signal segment is used as a sample to be tested to obtain a number of samples to be tested.
4. The single-channel airflow sleep apnea real-time detection system based on deterministic learning as claimed in claim 1, characterized in that: Based on the determined learning algorithm, a dynamic model of the respiratory system is established, wherein the dynamic model of the respiratory system is: ; in, It's airflow. is the airflow change rate, represents the internal state vector of the respiratory system, represents the derivative of the airflow, represents the derivative of the rate of change of airflow, represents the airflow observed using monitoring equipment; ; in, is an inherently dynamic function, is the lung elasticity, is lung resistance, is the total airway resistance, It is lung inertia; represents the system parameter vector, and Considered as the detected airflow signal, the system parameters Varies with the subject's physical condition.
5. The single-channel airflow sleep apnea real-time detection system based on deterministic learning as claimed in claim 4, characterized in that: Based on the deterministic learning algorithm, a dynamic model of the respiratory system is established, including: The system dynamics of the respiratory dynamics system corresponding to the high-gain expanded airflow signal In short: ; ; in, represents the initial state, Indicates the initial time, represents the state of the respiratory dynamics system, represents the respiratory dynamics system parameter vector, is the system dynamic function; the state trajectory of the respiratory dynamics system is , using radial basis function neural network along the state trajectory to analyze the system dynamic function To model: ; in, , is the weight of the radial basis neural network, is a Gaussian function, is the estimation error, It is the average value of the neural network weights within a period of time after the weights converge; represents the number of neurons; This completes the use of constant radial basis neural network Estimating system dynamics functions modeling process.
6. The single-channel airflow sleep apnea real-time detection system based on deterministic learning as claimed in claim 5, characterized in that: The samples to be tested are processed based on the constructed dynamic model of the respiratory system to generate respiratory dynamics diagrams, including: Construct a rectangular coordinate system to convert the airflow change rate As the horizontal axis, As the ordinate, we get the dynamic trajectory of breathing , the respiratory dynamic trajectory represents the respiratory dynamics modeled along the airflow trajectory; the respiratory dynamic trajectory is visualized on a two-dimensional plane to obtain a respiratory dynamic graph; where, is a constant-valued radial basis neural network.
7. The single-channel airflow sleep apnea real-time detection system based on deterministic learning as claimed in claim 6, characterized in that: Based on the deterministic learning feature extraction algorithm, the dynamic information of the current respiratory airflow signal is converted into the dynamic features of the current airflow signal, specifically including: Constant valued radial basis neural network It is a dynamic function of the system The local accurate estimation of the system dynamics knowledge is stored along the system state trajectory Neighborhood Inside; Assume that the maximum accurate estimated distance is , then the neighborhood Described as: ; in, Indicates distance; express The distance to the system state trajectory; Indicates acceptable error; The neighborhood contains all activated neurons, and the unactivated neurons are outside the neighborhood, and their weights are 0; The system dynamics at the center of the constant radial basis neural network neuron are extracted as features. The calculation method of the system dynamics at the center of the neuron is: ; in, Indicates dynamic characteristics; Represents the system state value at the center of the neuron; in the neighborhood The neurons in are activated, their weights are not 0, and they are in the neighborhood The neurons outside are not activated and their weights are 0. The position of the corresponding airflow signal sample in the neural network is determined based on whether the extracted eigenvalue is 0, which increases the discrimination of samples under different states. Therefore, the system dynamics at the centers of all activated and inactivated neurons are extracted as feature vectors.
8. The single-channel airflow sleep apnea real-time detection system based on deterministic learning as claimed in claim 1, characterized in that: The fusion features are input into the trained classifier to obtain the detection result of sleep apnea or not, wherein the classifier is implemented by a support vector machine; The training process of the trained classifier includes: Constructing a data set, the data set includes: a training set and a test set; the training set and the test set are both single-channel airflow signal fusion features with known detection labels; the detection labels include: a label for the absence of sleep apnea phenomenon and a label for the presence of sleep apnea phenomenon; Input the training set into the classifier to train the classifier; Input the test set into the trained classifier to test the classifier; The classifier whose test accuracy is higher than the set threshold is taken as the final trained classifier.
9. The single-channel airflow sleep apnea real-time detection system based on deterministic learning as claimed in claim 1, characterized in that: The respiratory dynamics characteristics and dynamic characteristics of the current airflow signal are integrated to obtain the integrated characteristics of the current airflow signal, specifically including: the respiratory dynamics characteristics and dynamic characteristics of the current airflow signal are connected in series to obtain the integrated characteristics of the current airflow signal.
