Visual real-time diagnosis system for sleep disorders and method for visualizing diagnosis results thereof

By combining deep convolutional neural networks and perceptron models, real-time diagnosis and visualization of sleep disorders are achieved, solving the problems of complex diagnosis and insufficient evidence in existing systems, and improving diagnostic efficiency and physician reference convenience.

CN115736816BActive Publication Date: 2026-11-27SHANGHAI CHANGZHENG HOSPITAL
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111027570.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-02
Publication Date
2026-11-27
Estimated Expiration
2041-09-02

AI Technical Summary

Technical Problem

Existing sleep disorder diagnostic systems are limited in variety, have complex diagnostic methods, and cannot provide effective interpretation criteria, making them difficult for physicians to directly refer to.

Method used

A sleep disorder diagnostic system based on deep convolutional neural networks and perceptron models is adopted. The system extracts key features of bioelectrical signals through a one-dimensional deep convolutional neural network and visualizes the diagnostic results using a category activation map, presenting a saliency map of sleep disorders in real time.

Benefits of technology

It improves the efficiency and accuracy of sleep disorder diagnosis, provides doctors with intuitive reference, reduces computational resource consumption, and provides clear diagnostic evidence.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115736816B_ABST
    Figure CN115736816B_ABST
Patent Text Reader

Abstract

The present application provides a sleep disorder diagnosis result visualization method and a sleep disorder visualization real-time diagnosis system. The sleep disorder visualization real-time diagnosis system of the present application carries out real-time diagnosis of sleep disorders in two steps: first, based on time window sampling of bioelectric signals, the present application judges sleep stage staging for each signal segment, and carries out confidence test and model selection on the judgment result, and inputs the bioelectric signal segment with high confidence into a disease diagnosis model to diagnose sleep disorders; then, using a category activation map algorithm, the signal segment of the obtained automatic real-time diagnosis result is backtracked and visualized, and the bioelectric signal segment used by the computer to make the diagnosis result is visualized and labeled. In this way, less computing resources can be consumed to complete the sleep disorder diagnosis task, and doctors can intuitively compare and identify, improving the reading efficiency of doctors.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and in particular to a real-time visualization diagnostic system for sleep disorders based on deep convolutional neural networks and category activation maps, and a method for visualizing the diagnostic results of sleep disorders. Background Technology

[0002] Sleep is a time-consuming, complex, and uncontrollable physiological activity that plays a crucial role in the recovery of the nervous system. Sleep disorders affect this physiological process in various ways, interfering with and interrupting it. Different sleep disorders have different causes, but their main symptoms may overlap. Therefore, polysomnography is currently the gold standard for diagnosis in clinical practice. According to the American Academy of Sleep Medicine (AASM), sleep can be divided into four stages based on the characteristics of complex biological signals during sleep: wakefulness (WAKE), rapid eye movement (REM) sleep, non-rapid eye movement (NREM) stage I (NREM-I), non-rapid eye movement (NREM-II) stage II (NREM-II), and non-rapid eye movement (NREM-III) stage III (NREM-III).

[0003] Polysomnography (PSG) collects a complex set of biosignals, typically including signals from the subject's electroencephalogram (EEG), electrooculogram (EOG), electrocardiogram (ECG), chin muscle electromyography (EMG), nasal and oral airflow, and blood oxygen saturation. The results of a polysomnography study usually cover these signals throughout the patient's entire night's sleep. However, due to the large volume of data and high signal noise levels, only a few professionally trained physicians can effectively interpret the data manually, resulting in low interpretation efficiency.

[0004] There are few existing sleep disorder diagnostic systems, and the diagnostic methods used are quite complex. Most of them can only provide diagnostic results but cannot provide interpretation criteria, making them difficult for doctors to refer to directly. Summary of the Invention

[0005] To address the technical problems of existing sleep disorder diagnostic systems being limited in variety and employing complex diagnostic methods, often only providing diagnostic results without offering interpretation criteria, making them difficult for physicians to directly reference, the first aspect of this application provides a method for visualizing sleep disorder diagnostic results. The sleep disorder diagnostic results are output through a classifier, which is composed of a perceptron model with a specific structure and weight matrix. The visualization method includes:

[0006] Step S1: Load the structure and weight matrix of the perceptron model that constitutes the classifier;

[0007] Step S2: Acquire the sleep disorder diagnosis results in real time, input the sleep disorder diagnosis results into the output layer of the classifier in the form of one-hot encoding, and calculate the gradient of the diagnosis results propagating from the output layer to the input layer along the model structure and weight matrix. Among them, y c For the target disease, For element A in the k-th dimension relative to the input layer k The gradient;

[0008] Step S3: Input the gradient into the one-dimensional deep convolutional neural network, and backpropagate the gradient to the input layer of the one-dimensional deep convolutional neural network, and perform global average pooling to obtain the importance weight of the convolutional kernel k in diagnosing and identifying disease c. It can be represented as

[0009] Step S4: Weighting Importance The linear rectifier unit is activated to acquire the temporal information of bioelectrical signal segments whose importance weight is higher than its threshold; the threshold of importance weight is a value selected by the user based on the actual situation, for example, 0.50;

[0010] Step S5: Based on the time information, a saliency map labeled with sleep disorder categories is superimposed on the original bioelectric signal fragment in real time.

[0011] The second aspect of this application provides a real-time visual diagnostic system for sleep disorders, including a signal acquisition module, a real-time sleep disorder diagnostic unit, and a real-time sleep disorder presentation unit; wherein, the real-time sleep disorder diagnostic unit includes a signal segment acquisition module, a preprocessing module, a key feature extraction module, a sleep stage discrimination module, a model selection module, a classifier module, and a diagnostic result output module; wherein, the real-time sleep disorder presentation unit includes a classifier loading module, a calculation module, a feedback module, an activation module, and a display module.

[0012] The signal acquisition module is used to acquire bioelectrical signals from organisms;

[0013] The signal segment acquisition module is used to set the window width and step size of the time window, and to segment the bioelectric signal according to the set time window to obtain a bioelectric signal segment of a set length.

[0014] The preprocessing module is used to preprocess bioelectrical signal fragments;

[0015] The key feature extraction module is used to extract key features of bioelectric signal fragments using a one-dimensional deep convolutional neural network.

[0016] The sleep stage discrimination module is used to input the key features into a classifier using multiple fully connected neural networks. Then, the dense connection structure of the fully connected network completes the spatial mapping from the feature space of the key signal features to the result space of sleep stage discrimination, thereby obtaining sleep stage discrimination information. The ideal result space is represented by one-hot encoding. The output information of the fully connected network is activated by softmax and will be presented as a one-dimensional tensor whose sum is 1. The maximum value of the tensor is the confidence of the sleep stage discrimination of the key feature.

[0017] The model selection module is used to select a suitable set of binary perceptron models from the model library when the confidence level of the sleep stage of the bioelectric signal segment is greater than or equal to 0.70.

[0018] The classifier module is used to chain multiple perceptron models in a binary perceptron model set, and use a decision tree method with the perceptron as the core to diagnose sleep disorders by analyzing key features of bioelectrical signal fragments through one or more perceptrons. Each disease discrimination process narrows the scope of disease diagnosis, improves the confidence of diagnosis, and finally obtains the diagnosis result of sleep disorder described by key features.

[0019] The diagnostic result output module is used to output the sleep disorder diagnostic results determined by the classifier module in real time.

[0020] The classifier loading module is used to call the classifier module and load the structure and weight matrix of the perceptron model.

[0021] The computation module is used to input the diagnostic results into the output layer of the classifier in the form of one-hot encoding, and to calculate the gradient of the diagnostic results propagating from the output layer to the input layer along the model structure and weight matrix. Among them, y c For the target disease, For element A in the k-th dimension relative to the input layer k The gradient;

[0022] The backpropagation module is used to input the gradient into a one-dimensional deep convolutional neural network, backpropagate the gradient to the input layer of the one-dimensional deep convolutional neural network, and perform global average pooling to obtain the importance weight of the convolutional kernel k in diagnosing and differentiating disease c. It can be represented as

[0023] The activation module is used to assign importance weights. The linear rectifier unit is activated to acquire the temporal information of bioelectrical signal segments whose importance weight is higher than its threshold; the threshold of importance weight is a value selected by the user based on the actual situation, for example, 0.50;

[0024] The display module is used to overlay a saliency map labeled with sleep disorder categories onto the original bioelectric signal fragments in real time based on time information.

[0025] Furthermore, the key feature extraction module is used to construct a deep convolutional neural network using multiple one-dimensional convolutional layers to extract key features of bioelectrical signal fragments. The deep convolutional neural network extracts local features of the bioelectrical signal through the local receptive field characteristics of the convolutional layers without over-reconstructing the feature space, and does not perform further transformation on the filtered time-domain signal fragment features. The multi-layered one-dimensional deep convolutional neural network consists of several convolutional layers, and each convolutional layer l passes through its convolutional kernel W. (l) Input data X of the layer before convolution (l-1) And add the deviation coefficient b of this layer. (l) That is, the output value of convolutional layer l can be expressed as

[0026] Furthermore, when the classifier consisting of a perceptron model with a specific structure and weight matrix is ​​obtained, the optimal network structure and network weight matrix of the one-dimensional deep convolutional neural network are trained using known data on sleep disorder types and sleep stage stages. The training refers to using as much bioelectrical signal data as possible, labeled by professional physicians, containing sleep stage stages and sleep disorder diagnosis results, as input to the perceptron model, and the physician-labeled sleep disorder diagnosis results as the expected output of the perceptron model, to perform supervised model training.

[0027] Furthermore, the preprocessing is selected from one or more of bandpass filtering, high-pass filtering, and low-pass filtering.

[0028] Furthermore, the multiple perceptron models in the binary classification perceptron model set have similar structures but different perceptron weight matrices.

[0029] Furthermore, the multiple perceptron models in the binary perceptron model set are specific models and result correction models for the wakefulness stage, rapid eye movement (REM) stage, non-rapid eye movement (NREM) stage I, NREM stage II, and NREM stage III, respectively. Different models have different result sets, and different perceptron models can diagnose different sleep disorders. Which perceptron model in the perceptron model set is used in the process of sleep disorder discrimination depends on the sleep stage classification result corresponding to the bioelectric signal.

[0030] Furthermore, the real-time visual diagnosis system for sleep disorders further includes a judgment module. This judgment module determines whether to diagnose a sleep disorder based on the bioelectrical signal segment when the sleep stage stage classification result is REM (Rapid Eye Movement) stage, NREM stage I, NREM stage II, or NREM stage III. Then, a model selection module is invoked, which selects models with different result sets for diagnosis based on the sleep stage of the high-confidence segment.

[0031] Furthermore, the bioelectric signal is selected from one or more of the following: electroencephalogram (EEG), electrooculogram (EOG), chin muscle electromyography (EMG), nasal and oral airflow signals, and blood oxygen saturation signals.

[0032] Compared with existing technologies, the above technical solution has the following advantages:

[0033] The real-time visual diagnosis system for sleep disorders of the present invention performs real-time diagnosis of sleep disorders in two steps:

[0034] First, this application, based on time-window sampling of bioelectrical signals, first determines the sleep stage for each signal segment, then performs confidence checks and model selection on the determination results, and inputs high-confidence bioelectrical signal segments into a disease diagnosis model to diagnose sleep disorders, achieving efficiency far exceeding that of manual judgment by physicians. This application utilizes multiple one-dimensional convolutional layers to construct a deep convolutional neural network. This neural network aims to extract local features of the signal through the local receptive field characteristics of the convolutional layers without excessively reconstructing the feature space. Its advantage lies in preserving the location information of key signal features, facilitating the presentation system to infer the location of key signals from the diagnostic results, thus providing convenient reference for physicians. Compared to other machine learning methods, convolutional operations better preserve the spatial information of features extracted from the original data without excessive feature space reconstruction. This allows the present invention to trace back to relevant segments of the original signal based on the computer's diagnostic judgment results for physician verification. To achieve this, this application does not further transform the features of the filtered time-domain signal segments, extracting key features in a manner as close as possible to the original signal.

[0035] Then, this application utilizes a category activation graph algorithm to retrospectively visualize the signal segments of the obtained automatic real-time diagnostic results. It visualizes and annotates the bioelectrical signal segments used by the computer to make the diagnostic results, and overlays a saliency map of sleep disorder categories onto the original bioelectrical signal segments in real time based on time information. This effectively overcomes the shortcomings of existing methods that rely on multiple biosignals or fail to present diagnostic evidence, achieving sleep disorder diagnosis with less computational resources. Furthermore, it facilitates intuitive comparison and differentiation by physicians, improving their image interpretation efficiency. The real-time presentation method annotates human scalp EEG signals in real time based on the diagnostic result set output by the model and the activation level of specific layers in the model. For time-domain segments that the model suspects may have sleep disorders, the real-time presentation system will display the suspected disease type and the time period in which the disease characteristics appear for physician review. The real-time presentation system uses category activation graphs and their derivative methods for disease diagnosis presentation. This method uses the known structure and weight set of a deep convolutional neural network model, known scalp EEG feature vectors, selected neural network layers, and preset thresholds to determine when the scalp EEG feature vectors cause the weights of the selected layers of the neural network model to activate at or above a preset threshold, and returns the relevant results in the form of a saliency map. The real-time visualization system displays the returned results by overlaying a saliency map onto the time dimension of the scalp EEG feature vectors and labeling the disease diagnosis category represented by this saliency map for easy interpretation by clinicians. Attached Figure Description

[0036] Figure 1 This is a flowchart of a real-time diagnostic method for sleep disorders according to an embodiment of the present invention;

[0037] Figure 2 This is a flowchart of a method for visualizing the diagnostic results of sleep disorders according to an embodiment of the present invention. Detailed Implementation

[0038] The advantages of the present invention are further illustrated below with reference to the accompanying drawings and specific embodiments. Those skilled in the art should understand that the following detailed description is illustrative rather than restrictive and should not be construed as limiting the scope of protection of the present invention.

[0039] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0040] The terminology used in this disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The singular forms “a,” “the,” and “the” as used in this disclosure and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.

[0041] Depending on the context, the word "if" as used here can be interpreted as "when," "when," or "in response to determination."

[0042] In the description of this invention, unless otherwise specified and limited, it should be noted that the terms "installation", "connection" and "linking" should be interpreted broadly. For example, they can refer to mechanical or electrical connections, or internal connections between two components. They can be direct connections or indirect connections through an intermediate medium. Those skilled in the art can understand the specific meaning of the above terms according to the specific circumstances.

[0043] In the following description, suffixes such as "module," "part," or "unit" used to denote elements are used only for the convenience of the description of the invention and have no specific meaning in themselves. Therefore, "module" and "part" can be used interchangeably.

[0044] The real-time visualization diagnostic system of this invention includes a signal acquisition module, a memory storing a computer program, a processor, and a display. The signal acquisition module has multiple channels, capable of acquiring at least the differential voltage signal between the recording electrodes and reference electrodes of an external electroencephalogram (EEG) on the human scalp, and transmitting the signal to the processor either directly into the memory or via a computer network. The processor stores the computer program. The display presents the diagnostic process in real time to clinicians.

[0045] like Figure 1 As shown, when the computer program is executed by the processor, the real-time visual diagnostic system for sleep disorders can perform the following steps 11-23:

[0046] Step 11, Set the window width and step size of the time window: The window width w and the time window step size s need to be set. According to the recommendations of the American Academy of Sleep Medicine (AASM), w = 30 and s = 30 can be set. This embodiment also adopts this standard, which can obtain signal segments of appropriate length and without overlap.

[0047] Step 12, Real-time acquisition of sleep EEG signal segments of a set length: In this embodiment, sleep EEG signals are acquired in real time from the system's disk, computer parallel port, computer serial port, or local area network data stream. Since the real-time acquired sleep signals are very long, they need to be segmented according to a preset time window. The signal is segmented according to a preset time window width of w seconds and a time window step of s seconds to obtain sleep EEG signal segments of a set length.

[0048] Step 13: Preprocess the acquired sleep EEG signal segments: Preprocess each sample. The signal-to-noise ratio (SNR) of scalp EEG signals has frequency domain characteristics. Due to the structural characteristics of the human skull and scalp, high-frequency intracranial electrical signals are difficult to conduct to the recording electrodes without attenuation, while low-frequency bands often capture other non-EEG signals recorded from the scalp surface, such as sweating artifacts, eye movement artifacts, and artifacts such as DC drift generated by the instrument itself. These frequency bands all have low SNR. To avoid noise affecting the system in this embodiment, the signal segments need to be bandpass filtered. According to the American Academy of Sleep Medicine (AASM) standards, the passband is set to 0.3Hz to 35Hz.

[0049] Step 14: Extracting Key Signal Features: The processed sleep EEG signal fragment data is input into a one-dimensional deep convolutional neural network to extract key signal features. These key features are highly abstract generalizations of the information contained in the signal fragment. This application utilizes multiple one-dimensional convolutional layers to construct a deep convolutional neural network. This network aims to extract local features of the signal through the local receptive field characteristics of the convolutional layers without excessively reconstructing the feature space. Its advantage lies in preserving the location information of the key signal features, making it easier for the presentation system to infer the location of the key signal from the diagnostic results, facilitating physician reference. Compared to other machine learning methods, convolution operations can better preserve the spatial information of the features extracted from the original data without excessive feature space reconstruction. This makes it possible for this invention to trace back to the relevant fragments of the original signal based on the computer's diagnostic judgment results, allowing physician verification. To achieve this, step 14 does not further transform the filtered time-domain signal fragment features, extracting key features in a manner as close as possible to the original signal. To improve the efficiency of one-dimensional deep convolutional neural networks, normalization needs to be performed on each signal channel so that the maximum power of each channel is 1, the minimum power is 0, and the remaining values ​​are distributed between [0, 1]. This allows the signal segments to fully express their relative size relationships without worrying about outliers causing excessive interference to key features.

[0050] A one-dimensional deep convolutional neural network consists of several convolutional layers, and each convolutional layer l passes through a convolutional kernel W. (l) Input data X of the layer before convolution (l-1)And add the deviation coefficient b of this layer. (l) That is, the output value of convolutional layer l can be expressed as In this embodiment, a total of 11 convolutional layers are used, with kernel sizes ranging from 3 to 7, and the number of kernels being either 128 or 256.

[0051] The method for extracting key feature information from signals using a one-dimensional deep convolutional neural network includes two stages: training and application. The training stage aims to obtain the optimal network structure and weight matrix of the one-dimensional deep convolutional neural network using data on known diseases and sleep stages. The application stage mainly involves using the aforementioned optimal network structure and weight matrix to extract features from the continuous sleep EEG data obtained by this system in practical applications.

[0052] The training phase is the process of obtaining an optimal one-dimensional deep convolutional neural network structure and weight matrix based on the acquired sample features and a predefined neural network structure. The weight matrix is ​​a set of parameters for a convolutional neural network, applied to the general formula of convolutional neural networks, used to express the key parameters required for the feature extraction task of this system. The training phase requires using as much human sleep EEG data as possible, labeled by professional physicians, containing sleep stages and disease diagnoses, as input to the model, and the physician's annotation results as the model's expected output, for supervised model training. The optimization goal of model training is to make the key feature information of signals with the same (or similar) labels as similar as possible, and to maximize the difference in key features of signals with different (or dissimilar) labels, indicating that the model can express the reasons why physicians made such annotations.

[0053] The application phase is the process of extracting key features from new data that the neural network model has not learned before, based on the neural network model obtained in the training phase. During this process, the network structure and network weight matrix remain unchanged.

[0054] Step 15, Determine the sleep stage of the extracted key signal features: The extracted key signal features are first input into a classifier to determine their sleep stage. In this embodiment, the classifier uses multiple fully connected neural networks. Using the key signal features extracted in step 40 as the input tensor, the fully connected network completes the spatial mapping from the feature space of the key signal features to the result space of human sleep stage classification through the dense connection structure of the fully connected network, thus obtaining sleep stage classification information. In this embodiment, the ideal result space is represented by one-hot encoding. The output information of the fully connected network is activated by the softmax function and will be presented as a one-dimensional tensor whose sum is 1, that is, the i-th element t of a one-dimensional tensor T containing k elements. i Represented as The maximum value of this tensor is the confidence level of this sleep stage determination.

[0055] The sleep EEG signal characteristics of individuals with different diseases show the greatest differences across different sleep stages, while exhibiting smaller differences between different sleep disorders. Therefore, it is necessary to first determine the sleep stage segmentation before making a disease diagnosis within the same sleep stage segment. Based on the sleep stage segmentation results of the feature vector sequence after the above algorithm, a decision is made as to whether to make a diagnosis of sleep disorder. The EEG characteristics of different sleep stages can be applied to the diagnosis of different sleep disorders. Model selection methods are used to determine whether to diagnose a particular segment, and various models are used to diagnose this segment.

[0056] Step 16: Determine the confidence level of sleep stage and perform model selection: When the classifier's confidence level for the sleep stage of the key features reaches a set standard threshold, which in this embodiment is higher than or equal to 0.70: the confidence level of the discrimination result in step 51 is tested. In this embodiment, when the confidence level is greater than 0.70, the model is considered to have sufficient confidence to believe that the signal segment belongs to a certain sleep stage. The model selection method selects a set of discrimination methods from the model library. This set of discrimination methods depends on the current sleep stage, the disease characteristics that the sleep stage can reflect, the initial disease screening, and the differential diagnosis steps. The judgment module is also used to determine whether to diagnose sleep disorders on the bioelectric signal segment when the sleep stage segment result is REM stage, non-REM stage I stage, non-REM stage II stage, or non-REM stage III stage. Then, the model selection module is called, and the model selection module will select models with different result sets for diagnosis based on the sleep stage of the high-confidence segment.

[0057] The model selection method applies only to sleep staging methods, using a confidence level of 0.70 as the cutoff for model selection. Segments with a confidence level of 0.70 or higher are considered high-confidence segments, while those with a confidence level below 0.70 are considered low-confidence segments. Therefore, the model selection method first excludes low-confidence sleep stage segments and then selects models for high-confidence segments. Since human sleep EEG varies significantly across different sleep stages, and different sleep disorder characteristics manifest in different sleep stages, the model selection method chooses models with different result sets for diagnosis based on the sleep stage in which the high-confidence segments are located.

[0058] Step 17, Distinguish symptoms and diagnoses based on the extracted key signal features: The model selection method chooses a suitable diagnostic classifier to perform disease discrimination on the key features obtained in Step 14. In this embodiment, the diagnostic classifier is a one-layer or multi-layer perceptron: using the key signal features extracted in Step 14 as input tensors, and based on the model set selected by the model selection method, diagnose and discriminate diseases in sleep EEG. The models in the model library are all binary classification models, and the main method is a one-layer or multi-layer perceptron. Step 17 implements a decision tree method with the perceptron as the core by cascading multiple binary perceptron models, gradually narrowing the diagnostic range through the procedure of model selection → coarse screening → fine screening → discrimination.

[0059] The disease discrimination method for sleep staging primarily utilizes a set of multilayer perceptron models. These models share similar structures but possess different perceptron weight matrices, which are the result of training. The models include, but are not limited to, specific models for the five sleep stages and result correction models. That is, different perceptron model sets are used in this step based on different sleep stage judgments in previous steps to obtain the most targeted diagnosis. The models have different result sets, meaning that models using different result sets can differentiate between different diseases. For example, in the coarse screening stage, they distinguish between sleep disorders with increased sleep, decreased sleep, and sleep movement disorders; in the fine screening stage, they can specifically differentiate between similar diseases such as restless legs syndrome and rapid eye movement sleep behavior disorder. This demonstrates the use of similar perceptron model structures, flexibly nesting models based on different prior identification results to achieve progressively refined disease screening. This nesting strategy is unprecedented. The multilayer perceptron model set is used for key feature information of different sleep stages, and different discrimination models (i.e., multilayer perceptron models) are used for different diseases. Which multilayer perceptron model from the set of models is used in the disease discrimination process depends on the results of sleep signal staging. The selection of multilayer perceptron models is targeted and specific, rather than using a single weight matrix indefinitely. By using one or more perceptrons, the key signal features extracted by the aforementioned one-dimensional deep convolutional neural network are discriminated. Each discrimination process narrows the scope of the disease diagnosis, increases the confidence of the diagnosis, and ultimately yields the diagnosis of sleep disorder in the human subject described by these features.

[0060] Step 18, Real-time output of model-based diagnostic results: The system outputs the results of sleep EEG diagnosis in real time.

[0061] In summary, the real-time sleep disorder diagnosis method based on deep convolutional neural networks provided by this invention can utilize sleep EEG signals in real time to determine sleep stages and diagnose sleep disorders. The disease diagnosis method employs a scientific stepwise diagnostic approach, combined with actual sleep stage determination, enabling relatively reliable judgments and achieving efficiency far exceeding that of manual judgment by physicians, thus assisting physicians in interpreting images for diagnosis.

[0062] Based on the above diagnostic results, such as Figure 2 As shown, the visualization method based on category activation maps provided in this embodiment includes the following steps:

[0063] Step 19, Load the diagnostic discriminant classifier: Load the diagnostic discriminant classifier, including the structure and weights of the classifier, as in Step 53, load the same multilayer perceptron model for disease diagnosis and discrimination, including the structure and weight matrix of the model.

[0064] Step 20: Substitute the diagnostic results into the output layer of the classifier and calculate the gradient of the diagnostic results from the output layer to the input layer: Input the known disease diagnostic results into the output layer of the model in the form of one-hot encoding, and backpropagate the diagnostic results to the input layer of the model along the model structure and weight matrix. Let the target disease be y. c Its relative to the element A of the k-th dimension of the input layer k The gradient is The input layer of the model is the key features of the signal segment extracted in step 14.

[0065] Step 21: Substitute the gradient obtained from the input layer of the diagnostic classifier into the one-dimensional deep convolutional neural network, and backpropagate the gradient to the input layer of the one-dimensional deep neural network. Then, backpropagate the gradient obtained in step 20 to the input layer of the one-dimensional deep convolutional neural network and perform global average pooling to obtain the importance weight of the convolutional kernel k in diagnosing and differentiating disease c. It can be represented as

[0066] Step 22: Activate the gradient of the input layer of the one-dimensional deep network using linear rectified units to obtain temporal information of signal segments above the threshold: [This involves] adjusting the importance weights... The linear rectifier unit is activated to obtain the time information of signal segments whose importance weight is higher than its threshold. The importance weight threshold is a value selected by the user based on the actual situation, and in this embodiment it is 0.50.

[0067] Step 23: The original signal is labeled and visualized on the display device according to the time information: The system overlays visualization information on the original EEG signal segments on the display device in real time, prompting the physician which EEG segments can be used to diagnose diseases, so that the physician can make a judgment in real time or afterward.

[0068] Corresponding to the aforementioned real-time sleep disorder diagnosis method based on deep convolutional neural networks, this embodiment also provides a real-time sleep disorder diagnosis and presentation system based on deep convolutional neural networks and category activation maps. It includes a signal acquisition module, a memory, a processor, and a display. The signal acquisition module has multiple channels and can acquire at least the differential voltage signal between the recording electrodes and reference electrodes of an external electroencephalogram (EEG) on the human scalp, and transmit the signal to the processor either directly to the memory or via a computer network. The memory stores a computer program, which, when executed by the processor, performs steps 11 to 23 of the real-time sleep disorder diagnosis method based on deep convolutional neural networks provided in this embodiment. The display is used to present the diagnostic process in real time for clinical physicians.

[0069] It should be noted that the embodiments of the present invention have better implementability and are not intended to limit the present invention in any way. Any person skilled in the art may use the above-disclosed technical content to change or modify it into equivalent effective embodiments. However, any modifications or equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention shall still fall within the scope of the technical solution of the present invention.

Claims

1. A method for visualizing the diagnostic results of sleep disorders, characterized in that, The sleep disorder diagnosis result is output by a sleep disorder diagnosis model, which consists of a one-dimensional deep convolutional neural network and a classifier connected in series. The one-dimensional deep convolutional neural network takes bioelectrical signal segments obtained by segmentation through a fixed time window as input. When extracting key features from these bioelectrical signal segments, it only extracts local features from the preprocessed time-domain signal segments through the local receptive fields of the convolutional layers, without performing time-frequency transformation on the time-domain signal segments or further transforming the filtered time-domain signal segment features, thus preserving the temporal location information of the key features. The classifier uses these key features as its input layer and consists of multiple perceptron models with specific structures and weight matrices connected in series. The discrimination results of the previous perceptron model are used to select the disease range targeted by the next perceptron model, thereby progressively narrowing the discrimination range of sleep disorders and increasing the confidence of each discrimination level. The output of the classifier is the sleep disorder diagnosis result. The visualization method includes: Step S1: Load the structure and weight matrix of the plurality of perceptron models constituting the classifier, and load the structure and weight matrix of the one-dimensional deep convolutional neural network; Step S2: Acquire the sleep disorder diagnosis result in real time, input the sleep disorder diagnosis result into the output layer of the classifier in the form of one-hot encoding, and calculate the gradient of the sleep disorder diagnosis result propagating from the output layer to the input layer of the classifier along the structure and weight matrix of the multiple perceptron models. ,in, For the target disease, The elements of the k-th dimension of the key features that constitute the input layer of the classifier. For elements relative to the k-th dimension The gradient; Step S3: Input the gradient obtained in step S2 into the one-dimensional deep convolutional neural network. Continue to propagate the gradient back to the input layer of the one-dimensional deep convolutional neural network along the structure and weight matrix of the network. Perform global average pooling on the gradient propagated back to the input layer to obtain the importance weight of the convolutional kernel k in diagnosing and differentiating disease c. It can be represented as ; Step S4: Assign the importance weights Activate the linear rectifier unit to obtain the temporal information of bioelectrical signal fragments whose importance weight is higher than its threshold; Step S5: Based on the time information, a saliency map labeled with sleep disorder disease categories is superimposed on the time axis of the original bioelectric signal segment in real time to indicate the bioelectric signal segment and its time interval on which the classifier outputs the sleep disorder diagnosis result.

2. A real-time visual diagnostic system for sleep disorders, characterized in that, It includes a signal acquisition module, a real-time sleep disorder diagnosis unit, and a real-time sleep disorder presentation unit; wherein, the real-time sleep disorder diagnosis unit includes a signal segment acquisition module, a preprocessing module, a key feature extraction module, a sleep stage discrimination module, a model selection module, a classifier module, and a diagnosis result output module; wherein, the real-time sleep disorder presentation unit includes a classifier loading module, a calculation module, a feedback module, an activation module, and a display module. The signal acquisition module is used to acquire bioelectrical signals from organisms; The signal segment acquisition module is used to set the window width and step size of the time window, and to segment the collected continuous bioelectric signals in real time according to the set time window to obtain bioelectric signal segments of a set length. The preprocessing module is used to preprocess bioelectrical signal fragments; The key feature extraction module is used to extract key features of bioelectrical signal segments using a one-dimensional deep convolutional neural network. The one-dimensional deep convolutional neural network only extracts local features of the preprocessed time-domain signal segments through the local receptive field of the convolutional layer, without performing time-frequency transformation on the time-domain signal segments or further transforming the features of the filtered time-domain signal segments. This preserves the temporal location information of the key features, thereby enabling the key features to be traced back to the corresponding time interval of the original bioelectrical signal segments. The sleep stage discrimination module is used to input the key features into a classifier using multiple fully connected neural networks. Then, the dense connection structure of the fully connected network completes the spatial mapping from the feature space of the key signal features to the result space of sleep stage discrimination, thereby obtaining sleep stage discrimination information. The ideal result space is represented by one-hot encoding. The output information of the fully connected network is activated by softmax and will be presented as a one-dimensional tensor whose sum is 1. The maximum value of the tensor is the confidence of the sleep stage discrimination of the key feature. The model selection module is used to select a set of binary perceptron models corresponding to the sleep stage of the bioelectric signal segment from the model library when the confidence level of the sleep stage of the bioelectric signal segment is greater than or equal to 0.70, and not to select the set of binary perceptron models for the bioelectric signal segment or to diagnose sleep disorders for the bioelectric signal segment when the confidence level of the sleep stage of the bioelectric signal segment is less than 0.

70. The classifier module is used to connect multiple perceptron models in the binary perceptron model set and use a decision tree method with the perceptron as the core to diagnose sleep disorders by analyzing key features of bioelectrical signal fragments through one or more perceptrons in the order of model selection → coarse screening → fine screening → discrimination. The discrimination results of the previous perceptron model are used to determine the disease range targeted by the next perceptron model. Each disease discrimination process narrows the scope of disease diagnosis, improves the confidence of diagnosis, and finally obtains the diagnosis result of sleep disorder described by key features. The diagnostic result output module is used to output the sleep disorder diagnostic results determined by the classifier module in real time. The classifier loading module is used to call the classifier module and load the structure and weight matrix of the multiple perceptron models, and load the structure and weight matrix of the one-dimensional deep convolutional neural network. The computation module is used to input the sleep disorder diagnosis result into the output layer of the classifier in the form of one-hot encoding, and to calculate the gradient of the sleep disorder diagnosis result propagating from the output layer to the input layer of the classifier along the structure and weight matrix of the multiple perceptron models. ,in, For the target disease, The element of the k-th dimension of the key features that constitute the input layer of the classifier; The backpropagation module is used to input the gradient obtained by the calculation module into the one-dimensional deep convolutional neural network, and continue to backpropagate the gradient along the structure and weight matrix of the one-dimensional deep convolutional neural network to the input layer of the one-dimensional deep convolutional neural network, and perform global average pooling to obtain the importance weight of the convolutional kernel k in diagnosing and differentiating disease c. It can be represented as ; The activation module is used to activate the importance weight using a linear rectifier unit to obtain the time information of bioelectrical signal segments whose importance weight is higher than its threshold. The display module is used to overlay a saliency map labeled with sleep disorder disease categories on the time axis of the original bioelectric signal segment in real time according to the time information, so as to indicate the bioelectric signal segment and its time interval on which the classifier module outputs the sleep disorder diagnosis result.

3. The real-time visual diagnostic system for sleep disorders as described in claim 2, characterized in that, The key feature extraction module is used to construct a deep convolutional neural network using multiple one-dimensional convolutional layers to extract key features of bioelectrical signal fragments. The deep convolutional neural network extracts local features of the bioelectrical signal through the local receptive field characteristics of the convolutional layers without over-reconstructing the feature space, and does not perform further transformation on the filtered time-domain signal fragment features. The multi-layered one-dimensional deep convolutional neural network consists of several convolutional layers, each of which... All pass through the kernel of this layer. Input data of the layer before convolution And add the deviation coefficient of this layer. That is, convolutional layer The output value can be expressed as .

4. The real-time visual diagnostic system for sleep disorders as described in claim 2, characterized in that, When the classifier, consisting of a perceptron model with a specific structure and weight matrix, is obtained, the optimal network structure and weight matrix of a one-dimensional deep convolutional neural network are trained using known data on sleep disorder types and sleep stage classifications. The training refers to using as much bioelectrical signal data as possible, labeled by professional physicians, containing sleep stage classifications and sleep disorder diagnosis results, as input to the perceptron model, and the physician-labeled sleep disorder diagnosis results as the expected output of the perceptron model, to perform supervised model training.

5. The real-time visual diagnostic system for sleep disorders as described in claim 2, characterized in that, The preprocessing is selected from one or more of bandpass filtering, high-pass filtering, and low-pass filtering.

6. The real-time visual diagnostic system for sleep disorders as described in claim 2, characterized in that, The multiple perceptron models in the binary classification perceptron model set have similar structures, but different perceptron weight matrices.

7. The real-time visual diagnostic system for sleep disorders as described in claim 2, characterized in that, The set of perceptron models in the binary classification includes multiple perceptron models that are specific models and result correction models for the wakefulness stage, REM stage, non-REM stage I, non-REM stage II, and non-REM stage III. Different models have different result sets, and different perceptron models can diagnose different sleep disorders. Which perceptron model in the set of perceptron models is used in the process of sleep disorder discrimination depends on the sleep stage classification result corresponding to the bioelectric signal.

8. The real-time visual diagnostic system for sleep disorders as described in claim 7, characterized in that, The system further includes a judgment module, which is used to determine whether to diagnose sleep disorders based on the bioelectric signal fragment when the sleep stage classification result is REM stage, non-REM stage I, non-REM stage II, or non-REM stage III.

9. The real-time visual diagnostic system for sleep disorders as described in any one of claims 2-8, characterized in that, The bioelectric signal is selected from one or more of the following: electroencephalogram (EEG), electrooculogram (EOG), electromyogram (EMG) of the chin, airflow signal from the mouth and nose, and blood oxygen saturation signal.

Citation Information

Patent Citations

  • Sleep signal automatic staging method based on 1D CNN-LSTM

    CN110432870A