Physiological parameter monitoring method, medium and system for narcolepsy patient
By conducting a wakefulness maintenance test for patients with narcolepsy, the frequency and fluctuation deviation of the ECG signal segment were analyzed in segments, and the interference degree and trustworthiness weight were calculated, which solved the problem of inaccurate sleep time caused by ECG signal interference, and improved the accuracy of the results.
Patent Information
- Application Number
- CN202510493872.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-19
- Publication Date
- 2025-07-11
AI Technical Summary
When the existing method determines whether narcolepsy patients have narcolepsy, there is interference in the acquisition of electrocardiogram signals, resulting in inaccurate sleep time results.
By performing several awakeness maintenance tests on the patient, the EEG signal and ECG signal were obtained, the frequency and fluctuation deviation of the ECG signal segment were analyzed in segments, the interference degree and trusted weight were calculated, and the sleep time was corrected.
Reduces interference from patients' discomfort with the testing environment or equipment, and improves the accuracy of sleep time results.
Smart Images

Figure CN120284289A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of auxiliary diagnosis of narcolepsy, and particularly relates to a method, medium and system for monitoring physiological parameters of narcolepsy patients. Background Art
[0002] Narcolepsy is a rare disease mainly characterized by excessive daytime sleepiness, cataplexy and nocturnal disturbances, which seriously affects the daily life, physical and mental health of patients.
[0003] When the existing methods judge whether a patient has narcolepsy, they conduct a wakefulness maintenance test on the patient and assist in judging whether the patient has narcolepsy by the patient's sleep onset time. Since the patient is not adapted to the test environment or test equipment during the wakefulness maintenance test, the electrocardiogram (ECG) signals obtained from the test are interfered, and the influence on different stages of the ECG signals during each test is also different, that is, the credibility of the stages is affected. If the influence of the patient on each stage during the test is not analyzed, the final obtained sleep onset time result will be inaccurate, which is not conducive to assisting in judging whether the patient has narcolepsy. Summary of the Invention
[0004] To solve the above problems, the present invention provides a method, medium and system for monitoring physiological parameters of narcolepsy patients.
[0005] The method, medium and system for monitoring physiological parameters of narcolepsy patients of the present invention adopt the following technical solutions:
[0006] An embodiment of the present invention provides a method for monitoring physiological parameters of narcolepsy patients, the method comprising the following steps:
[0007] Conduct a plurality of wakefulness maintenance tests on the patient to obtain the electroencephalogram (EEG) signals and ECG signals of the patient during each test; segment the EEG signals and ECG signals during each test respectively to obtain a plurality of EEG signal segments and a plurality of ECG signal segments;
[0008] Obtain the interference degree of each ECG signal segment according to the frequency of the ECG signal segment and the fluctuation deviation of the ECG signal segment;
[0009] Obtain three stages of each ECG signal segment according to the frequency performance of the EEG signal segment; obtain the credible weight of the interference degree of each stage of each ECG signal according to the change of the interference degree of the ECG signal segment in each stage of the ECG signal; obtain the credibility of each stage of each ECG signal according to the credible weight, the fluctuation of the interference degree of the ECG signal segment within the stage and the state of the patient in the stage;
[0010] Obtain the sleep onset time of the patient during each test, and based on the credibility of each stage of the electrocardiogram (ECG) signal and the sleep onset time, obtain the patient's final sleep onset time.
[0011] Furthermore, the specific steps for obtaining the interference degree of each ECG signal segment according to the frequency of the ECG signal segment and the fluctuation deviation of the ECG signal segment are as follows:
[0012] For any ECG signal segment of the ECG signal during any test; obtain all PQRST waves in the ECG signal; take the mean of the time intervals during the R-R waves between adjacent PQRST waves in the ECG signal segment as the first fluctuation deviation feature of the ECG signal segment; take the DTW distance between the average wave of the S-T waves in all PQRST waves in the ECG signal segment and the average wave of the S-T waves in all PQRST waves in the ECG signal as the second fluctuation deviation feature of the ECG signal segment; take the difference between the variance of the ECG signal segment and the mean variance of all ECG signal segments in the ECG signal as the fluctuation deviation feature of the ECG signal segment; fuse the frequency of the ECG signal segment, the first fluctuation deviation feature, and the second fluctuation deviation feature of the ECG signal segment to obtain the ECG.
[0013] Furthermore, the specific steps for obtaining the three stages of each ECG signal segment according to the frequency performance of the electroencephalogram (EEG) signal are as follows:
[0014] For the EEG signal and the ECG signal during any same test; take the part of the EEG signal before the first continuous occurrence of TH2 EEG signal segments with frequencies in the theta wave range in the EEG signal as the first stage of the EEG signal, where TH2 is a preset second value; take the part of the EEG signal after the last continuous occurrence of TH2 EEG signal segments with frequencies in the theta wave range in the EEG signal as the third stage of the EEG signal; take the part of the EEG signal other than the first stage and the third stage as the second stage of the EEG signal; take the stage corresponding to the first stage of the EEG signal in the ECG signal as the first stage of the ECG signal; take the stage corresponding to the second stage of the EEG signal in the ECG signal as the second stage of the ECG signal; take the stage corresponding to the third stage of the EEG signal in the ECG signal as the third stage of the ECG signal.
[0015] Furthermore, the specific steps for obtaining the credible weight of the interference degree of each stage of each ECG signal according to the change of the interference degree of the ECG signal segments in each stage of the ECG signal are as follows:
[0016] For any stage of the electrocardiogram (ECG) signal during any test; any ECG signal segment in this stage is denoted as the target ECG signal segment; the change in the interference degree between the target ECG signal segment and the adjacent ECG signal segment on the left is used as the change in the interference degree of the target ECG signal segment in this stage; the reciprocal value of the mean of the changes in the interference degrees of all ECG signal segments in this stage is used as the credibility weight of the interference degree of this stage of the ECG signal.
[0017] Further, obtaining the credibility of each stage of each ECG signal according to the credibility weight, the fluctuation of the interference degree of the ECG signal segments within the stage, and the state of the patient in the stage includes the following specific steps:
[0018] For any stage of the ECG signal during any test; according to the credibility weight of the interference degree of this stage, the difference between the change in the interference degree of each ECG signal segment in this stage and the mean of the changes in the interference degrees of all in this stage is weighted, and the average of all weighted results is used as the first fluctuation characteristic of the interference degree of the ECG signal segments within this stage; the ratio of the maximum interference degree of the ECG signal segments in the ECG signal during all tests to the maximum interference degree of the ECG signal segments in this stage is used as the relaxation degree of the patient in this stage; the fluctuation index of the interference degrees of all ECG signal segments in this stage is obtained; the first fluctuation characteristic, the relaxation degree, and the fluctuation index are fused to obtain the credibility of this stage; the first fluctuation characteristic, the relaxation degree are directly proportional to the credibility, and the fluctuation index is inversely proportional to the credibility.
[0019] Further, the specific method for obtaining the sleep onset time of the patient during each test is as follows:
[0020] For the electroencephalogram (EEG) signal and the ECG signal during any test, the durations of the first stage and the second stage of the EEG signal during this test are used as the sleep onset time of the patient during this test.
[0021] Further, obtaining the final sleep onset time of the patient according to the credibility of each stage of the ECG signal and the sleep onset time includes the following specific steps:
[0022] For the ECG signal during any test, the product of the mean of the credibilities of all stages of the ECG signal during this test and the corresponding sleep onset time is used as the initial final sleep onset time of the patient during this test, and the mean of the initial final sleep onset times of the patient during all tests is used as the final sleep onset time of the patient.
[0023] Further, segmenting the EEG signal and the ECG signal during each test respectively to obtain a number of EEG signal segments and a number of ECG signal segments includes the following specific steps:
[0024] For the EEG signal during any test, the EEG signal is divided into an EEG signal segment every TH1 seconds to obtain several EEG signal segments of the EEG signal; TH1 is a preset first value; according to the method for obtaining the EEG signal segments, several EEG signal segments of the EEG signal during each test are obtained.
[0025] The present invention also proposes a physiological parameter monitoring medium for narcolepsy patients, on which computer instructions are stored, and when the computer instructions are executed by a processor, the steps of the above-mentioned method are implemented.
[0026] The present invention also proposes a physiological parameter monitoring system for narcolepsy patients, which includes the following modules:
[0027] The data acquisition module is used to perform several wakefulness maintenance tests on the patient to obtain the patient's EEG signal and ECG signal during each test; the EEG signal and ECG signal during each test are segmented to obtain several EEG signal segments and several ECG signal segments;
[0028] The interference degree module is used to obtain the interference degree of each ECG signal segment according to the frequency of the ECG signal segment and the fluctuation deviation of the ECG signal segment;
[0029] The credibility module is used to obtain the three stages of each ECG signal segment according to the frequency performance of the EEG signal segment; obtain the credibility weight of the degree of interference of each ECG signal at each stage according to the change of the degree of interference of the ECG signal segment at each stage; obtain the credibility of each stage of each ECG signal according to the credibility weight, the fluctuation of the degree of interference of the ECG signal segment in the stage and the patient's state at the stage;
[0030] The final sleep onset time module is used to obtain the patient's sleep onset time during each test, and obtain the patient's final sleep onset time based on the credibility and sleep onset time of each stage of the ECG signal.
[0031] The beneficial effects of the technical solution of the present invention are as follows: After obtaining the electroencephalogram signal and electrocardiogram signal of the patient during each test, the present invention obtains the degree of interference of each electrocardiogram signal segment through the frequency and amplitude fluctuation deviation of the electrocardiogram signal segment, improving the accuracy of quantifying the interference caused by the patient's discomfort with the environment or test equipment, so as to determine the credibility of the electrocardiogram signal at different stages in the follow-up; by analyzing the change of the degree of interference of the electrocardiogram signal segment in each stage of the electrocardiogram signal, the credible weight of the degree of interference of each stage of each electrocardiogram signal is obtained; according to the credible weight, the fluctuation of the degree of interference of the electrocardiogram signal segment within the stage and the state of the patient in the stage, the credibility of each stage of each electrocardiogram signal is obtained, reducing the influence of the patient's adaptation to the environment or test equipment over time on the electrocardiogram signals at different stages, and finally correcting the sleep onset time through the credibility of each stage of the electrocardiogram signal to obtain the final sleep onset time of the patient, reducing the interference caused by the patient's discomfort with the test environment or test equipment and improving the accuracy of obtaining the sleep onset time result. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0033] Figure 1 It is a flowchart of the steps of a method for monitoring physiological parameters for narcolepsy patients provided by an embodiment of the present invention;
[0034] Figure 2 It is a flowchart of obtaining the final sleep onset time of a patient provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0035] In order to further elaborate on the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following, in combination with the drawings and preferred embodiments, details the specific implementation manners, structures, features and their effects of the method, medium and system for monitoring physiological parameters for narcolepsy patients proposed according to the present invention. In the following description, different "one embodiment" or "another embodiment" do not necessarily refer to the same embodiment. In addition, the specific features, structures or characteristics in one or more embodiments can be combined in any suitable form.
[0036] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which the present invention belongs.
[0037] The following specifically describes the specific solutions of the physiological parameter monitoring method, medium and system for narcolepsy patients provided by the present invention in conjunction with the accompanying drawings.
[0038] Please refer to Figure 1 and Figure 2 , which shows the step flowchart of the physiological parameter monitoring method for narcolepsy patients provided by an embodiment of the present invention and the flowchart for obtaining the patient's final sleep time. The method includes the following steps:
[0039] Step S001: Conduct several wakefulness maintenance tests on the patient to obtain the patient's electroencephalogram (EEG) signal and electrocardiogram (ECG) signal during each test; segment the EEG signal and ECG signal during each test respectively to obtain several EEG signal segments and several ECG signal segments.
[0040] It should be noted that the main purpose of this embodiment is to reduce the discomfort of the patient during the wakefulness maintenance test with respect to the test environment or test equipment, resulting in interference in the ECG signal obtained during the test, and thus obtain a more accurate final sleep time. Before starting the analysis, the required data is first collected.
[0041] Specifically, conduct several wakefulness maintenance tests on the patient to obtain the patient's EEG signal and ECG signal during each test. It should be noted that the patient's EEG signal and ECG signal can be obtained through relevant equipment, and the specific acquisition is an existing method, which will not be elaborated in this embodiment. In this embodiment, the patient is subjected to four wakefulness maintenance tests, starting from 2 hours after the patient wakes up, each test lasting 40 minutes, and the next test is carried out at an interval of 2 hours after each test until the test is completed. Additionally, it should be noted that before the patient undergoes the wakefulness maintenance test, the patient needs to maintain a normal sleep schedule and stop taking relevant sleep medications in the previous week.
[0042] It should be noted that when the patient is undergoing the test, there will be discomfort with the test equipment or environment, which makes the patient nervous and causes interference in the signals obtained during the test, thereby affecting the final sleep time. Since the discomfort gradually weakens over time, in this embodiment, by segmenting the signals and analyzing the degree of interference of the signals in each period of time, the influence of the discomfort of the patient with respect to the test equipment or environment during the test is reduced.
[0043] Specifically, segment the EEG signal and ECG signal during each test respectively to obtain several EEG signal segments and several ECG signal segments, as follows:
[0044] For the EEG signals during any test, the EEG signals are divided into EEG signal segments every TH1 seconds, and a number of EEG signal segments of the EEG signals are obtained; TH1 is a preset first value, and in this embodiment, the first value is described as 30; according to the method of obtaining the EEG signal segments, a number of ECG signal segments of the ECG signals during each test are obtained. It should be noted that if the last signal segment is less than 30 seconds when dividing, it is directly used as a signal segment.
[0045] So far, a number of EEG signal segments and a number of ECG signal segments are obtained.
[0046] Step S002: Obtain the interference degree of each ECG signal segment according to the frequency of the ECG signal segment and the fluctuation deviation of the ECG signal segment.
[0047] It should be noted that when the patient is undergoing the test, there will be discomfort with the test equipment or environment, which makes the patient nervous, resulting in interference in the signals obtained during the test, and further affecting the final falling asleep time. Since the discomfort gradually weakens over time, the signals are segmented as described above, and then the interference degree of the signals in each period of time is analyzed. Since the discomfort of the patient with the test equipment or environment mainly affects the ECG signals, the interference performance of the ECG signal segments is analyzed. When the patient has discomfort with the test equipment or environment, the local part of the ECG signal has the characteristic of fast frequency change, and at the same time, the fluctuation deviation of the ECG signal segment is large. Specifically, the time interval during the R-R period between adjacent PQRSTs in the ECG signal segment is shortened, that is, the time interval between heartbeats becomes shorter; secondly, the similarity between the average S-T wave in the ECG signal segment and the average S-T wave of the overall ECG signal is poor. Therefore, by analyzing the frequency and fluctuation deviation of the ECG signal segment, the interference degree of each ECG signal segment is obtained.
[0048] Preferably, in an embodiment of the present invention, obtaining the interference degree of each ECG signal segment according to the frequency of the ECG signal segment and the fluctuation deviation of the ECG signal segment is specifically as follows:
[0049] For any ECG signal segment of the ECG signals during any test; obtain all PQRST waves in the ECG signal; take the average value of the time intervals during the R-R waves between adjacent PQRST waves in the ECG signal segment as the first fluctuation deviation feature of the ECG signal segment; take the DTW distance between the average wave of the S-T waves in all PQRST waves in the ECG signal segment and the average wave of the S-T waves in all PQRST waves in the ECG signal as the second fluctuation deviation feature of the ECG signal segment; fuse the frequency of the ECG signal segment, the first fluctuation deviation feature and the second fluctuation deviation feature of the ECG signal segment to obtain the interference degree of the ECG signal segment; the frequency of the ECG signal segment, the first fluctuation deviation feature and the second fluctuation deviation feature of the ECG signal segment are in a proportional relationship with the interference degree.
[0050] As a specific example, the specific method for obtaining the degree of interference is as follows:
[0051] For the i-th electrocardiogram signal segment during any test of the electrocardiogram signal.
[0052]
[0053] In the formula, f i is the frequency of the i-th electrocardiogram signal segment. It should be noted that obtaining the frequency of the signal segment is an existing method, which will not be elaborated in this embodiment; t i,j1 is the time interval between the R-R waves during the j1-th PQRST wave and the next PQRST wave in the i-th electrocardiogram signal segment; is the average value of the time intervals between the R-R waves among all PQRST waves in the i-th electrocardiogram signal segment; s i is the average wave of the S-T waves among all PQRST waves in the i-th electrocardiogram signal segment; is the average wave of the S-T waves among all PQRST waves in the electrocardiogram signal; is s i and the DTW distance between; tanh[] is the hyperbolic tangent function for normalization; d i is the degree of interference of the i-th electrocardiogram signal segment. It should be noted that obtaining the PQRST waves in the electrocardiogram signal segment is an existing method, and specifically, reference can be made to the content in "Electrocardiogram Waveform Segmentation Based on Improved U-Net Model" published by authors Xu Bolin; Cai Wenjie; Yang Mingfei; Zhang Biao on October 25, 2022. If the lengths of the S-T waves are different when obtaining the average wave of the S-T waves, the length of the shortest S-T wave is selected as the reference length, and thus S-T waves of the same length as the reference length are obtained in other PQRST waves to obtain the average wave of the S-T waves.
[0054] It should be noted that since the discomfort of the patient with the test equipment or environment mainly affects the electrocardiogram signal, therefore, analyzing the interference performance of the electrocardiogram signal segment, when the patient has discomfort with the test equipment or environment, the local part of the electrocardiogram signal has the characteristic of fast frequency change, and at the same time, the fluctuation deviation of the electrocardiogram signal segment is relatively large. Specifically, the R-R period between two adjacent PQRSTs in the electrocardiogram signal segment is shortened, that is, the time interval of the heartbeat becomes shorter; secondly, the similarity between the average S-T wave in this electrocardiogram signal segment and the average S-T wave of the overall electrocardiogram signal is relatively poor. Therefore, the above formula obtains the degree of interference of each electrocardiogram signal segment by analyzing the frequency and fluctuation deviation of the electrocardiogram signal segment. If f i is larger, it indicates that the frequency of the i-th electrocardiogram signal segment is larger and the interference of the electrocardiogram signal segment is greater; The larger it is, it indicates that the time interval during the R-R wave between each PQRST wave and the next PQRST wave in the i-th electrocardiogram signal segment is larger compared to the average time interval. Since the average time interval is relatively stable and is less affected by changes in some time intervals, therefore The larger it is, it indicates that the shortening of the R-R period between two adjacent PQRSTs intersects with the average time interval to a greater extent, and the degree of interference of the i-th electrocardiogram signal segment should be larger. The larger it is, it indicates that the average wave of the S-T wave in all PQRST waves in the i-th electrocardiogram signal segment is less similar to the average wave of the S-T wave of the entire electrocardiogram signal, and the degree of interference of the i-th electrocardiogram signal segment is larger. Therefore, by combining these three indicators, the degree of interference of the electrocardiogram signal segment is comprehensively obtained.
[0055] So far, the degree of interference of each electrocardiogram signal segment is obtained.
[0056] Step S003: According to the frequency performance of the electroencephalogram signal segment, obtain three stages of each electrocardiogram signal segment; according to the change of the degree of interference of the electrocardiogram signal segment in each stage of the electrocardiogram signal, obtain the credible weight of the degree of interference of each stage of each electrocardiogram signal; according to the credible weight, the fluctuation of the degree of interference of the electrocardiogram signal segment within the stage and the state of the patient in the stage, obtain the credibility of each stage of each electrocardiogram signal.
[0057] It should be noted that for a single test, the patient will go through different sleep stages, from the initial falling asleep stage, light sleep stage to deep sleep stage, a total of three stages. As the patient gradually gets familiar with the environment, the degree of interference of the electrocardiogram signal segment within each stage is different, and the credibility is different. If not analyzed, it will cause deviation in determining the falling asleep time subsequently. Therefore, it is necessary to obtain the three stages of the electrocardiogram signal here for subsequent analysis. Since different sleep stages can be distinguished by the frequency performance of the electroencephalogram signal segment, when the patient is more sleepy, it indicates that the patient has entered the light sleep stage, and at this time, the θ wave of the electroencephalogram signal is more obvious. Therefore, by analyzing the frequency performance of the electroencephalogram signal segment, the three stages of the electrocardiogram signal segment are obtained.
[0058] Specifically, according to the frequency performance of the electroencephalogram signal segment, obtain three stages of each electrocardiogram signal segment, as follows:
[0059] For the EEG signal and the ECG signal during any same test; the part of the EEG signal before the frequency of the first consecutive TH2 EEG signal segments within the θ wave range in the EEG signal is taken as the first stage of the EEG signal, where TH2 is a preset second value, and in this embodiment, the second value is described as 3; the part of the EEG signal after the frequency of the last consecutive TH2 EEG signal segments within the θ wave range in the EEG signal is taken as the third stage of the EEG signal; the part of the EEG signal other than the first stage and the third stage is taken as the second stage of the EEG signal; the stage corresponding to the first stage of the EEG signal in the ECG signal is taken as the first stage of the ECG signal; the stage corresponding to the second stage of the EEG signal in the ECG signal is taken as the second stage of the ECG signal; the stage corresponding to the third stage of the EEG signal in the ECG signal is taken as the third stage of the ECG signal.
[0060] It should be noted that the above three stages of the ECG signal segments are obtained. Since the degrees of interference and credibility of the ECG signal segments within each stage are different, if not analyzed, it will cause deviation in determining the sleep onset time subsequently. Therefore, it is necessary to analyze the credibility weights of the degrees of interference of the ECG signal segments within each stage of the ECG signal. Since as the test time increases, the patient will gradually adapt to the test equipment or environment, and the interference in the signals obtained during the test gradually decreases, that is, the degree of interference of the ECG signal segments gradually decreases. However, the changes in different stages are not the same. If the change is large, it indicates that the patient may be in a tense state, and the credibility weight of the degree of interference of the stage is lower. Therefore, by analyzing the changes in the degrees of interference of the ECG signal segments within each stage of the ECG signal, the credibility weights of the degrees of interference of each stage of each ECG signal are obtained.
[0061] Preferably, in an embodiment of the present invention, according to the changes in the degrees of interference of the ECG signal segments within each stage of the ECG signal, the credibility weights of the degrees of interference of each stage of each ECG signal are obtained, specifically as follows:
[0062] For any stage of the ECG signal during any test; any one ECG signal segment in this stage is denoted as the target ECG signal segment; the change amount of the degree of interference between the target ECG signal segment and the adjacent ECG signal segment on the left is taken as the change amount of the degree of interference of the target ECG signal segment in this stage; the reciprocal value of the mean value of the change amounts of the degrees of interference of all ECG signal segments in this stage is taken as the credibility weight of the degree of interference of this stage of this ECG signal.
[0063] As a specific example, the specific method for obtaining the credibility weight is as follows:
[0064] For the ECG signal during any test.
[0065]
[0066] Wherein, n k is the number of ECG signal segments in the k-th stage of the ECG signal; Δd k,j,j-1 is the change in the interference degree between the j-th ECG signal segment and the (j - 1)-th ECG signal segment in the k-th stage of the ECG signal, and the change is the absolute value of the difference between the interference degrees of the j-th ECG signal segment and the (j - 1)-th ECG signal segment; α1 is a preset first hyperparameter, the purpose of which is to prevent the denominator from being 0, and in this embodiment, α1 = 1 is described; q k is the credible weight of the interference degree in the k-th stage of the ECG signal.
[0067] It should be noted that as the test time increases, the patient will gradually adapt to the test equipment or environment, and the interference in the acquired signal during the test gradually decreases, that is, the interference degree of the ECG signal segment gradually decreases. Therefore, the above formula obtains the credible weight of the interference degree of each stage of each ECG signal by analyzing the change in the interference degree of the ECG signal segments in each stage of the ECG signal. When Δd k,j,j-1 is smaller, it indicates that the change in the interference degree between the j-th ECG signal segment and the (j - 1)-th ECG signal segment in the k-th stage of the ECG signal gradually decreases, and the credible weight of the interference degree in the k-th stage of the ECG signal is higher. On the contrary, the credible weight of the interference degree in the k-th stage of the ECG signal is lower.
[0068] It should be noted that for one test, the patient will go through different sleep stages, from the initial falling asleep stage, light sleep stage to deep sleep stage, a total of three stages. As the patient gradually gets familiar with the environment, the credibility of each stage is different. If not analyzed, it will cause deviation in determining the falling asleep time. Since the credibility of the stage is mainly related to the credible weight of the interference degree of the stage, the fluctuation of the interference degree of the ECG signal segments within the stage, and the state of the patient in this stage, and the credible weight is used to weight the fluctuation of the interference degree. When the weighted result is larger, it indicates that the credible weight of the interference degree of the ECG signal segments within the stage is higher, and the credibility of the stage is also higher. At the same time, when the state of the patient is more relaxed, it indicates that the credibility of the stage is also higher. Therefore, by analyzing the credible weight, the fluctuation of the interference degree of the ECG signal segments within the stage, and the state of the patient in the stage, the credibility of each stage of each ECG signal is obtained.
[0069] Preferably, in an embodiment of the present invention, according to the credible weight, the fluctuation of the interference degree of the ECG signal segments within the stage, and the state of the patient in the stage, the credibility of each stage of each ECG signal is obtained, specifically as follows:
[0070] For any stage of the electrocardiogram (ECG) signal during any test; according to the credible weight of the interference degree of this stage, the difference between the change amount of the interference degree of each ECG signal segment in this stage and the average value of the change amounts of all interference degrees in this stage is weighted, and the average value of all weighted results is used as the first fluctuation feature of the interference degree of the ECG signal segment in this stage; the ratio of the maximum interference degree of the ECG signal segment in the ECG signal during all tests to the maximum interference degree of the ECG signal segment in this stage is used as the relaxation degree of the patient in this stage; the fluctuation index of the interference degree of all ECG signal segments in this stage is obtained; the first fluctuation feature, the relaxation degree, and the fluctuation index are fused to obtain the credibility of this stage; the first fluctuation feature, the relaxation degree, and the credibility are in a direct proportional relationship, and the fluctuation index and the credibility are in an inverse proportional relationship.
[0071] As a specific example, the specific method for obtaining the credibility is as follows:
[0072] For the ECG signal during any test.
[0073]
[0074] In the formula, n k is the number of ECG signal segments in the k-th stage of the ECG signal; q k is the credible weight of the interference degree of the k-th stage of the ECG signal; Δd k,j,j-1 is the change amount of the interference degree between the j-th ECG signal segment and the (j - 1)-th ECG signal segment in the k-th stage of the ECG signal; is the average value of the change amounts of all interference degrees in the k-th stage of the ECG signal; λ k is the relaxation degree of the patient in the k-th stage of the ECG signal; σ1 k is the variance of the interference degree of all ECG signal segments in the k-th stage of the ECG signal, that is, the fluctuation index; α2 is a preset second hyperparameter, the purpose of which is to prevent the denominator from being 0, and in this embodiment, α2 = 1 is described; tanh[] is the hyperbolic tangent function, which is used for normalization; A k is the credibility of the k-th stage of the ECG signal.
[0075] It should be noted that since the credibility of the stage is mainly related to the credible weight of the interference degree of the stage, the fluctuation of the interference degree of the ECG signal segment in the stage, and the state of the patient in this stage, the above formula obtains the credibility of each stage of each ECG signal by analyzing the credible weight, the fluctuation of the interference degree of the ECG signal segment in the stage, and the state of the patient in the stage. When is larger, the result of weighting the fluctuation of the interference degree by the credible weight is larger, indicating that the credible weight of the interference degree of the ECG signal segment in the stage is higher, and the credibility of the stage is also higher; λk It reflects the relaxation degree of the patient in a certain stage. As time goes by, the patient will gradually adapt to the environment or equipment, and the interference degree of the electrocardiogram signal segment in this stage will decrease. Therefore, by taking the ratio of the maximum interference degree of the electrocardiogram signal segment in the electrocardiogram signal during all sub-tests to the maximum interference degree of the electrocardiogram signal segment in the k-th stage of the electrocardiogram signal as the relaxation degree of the patient in the k-th stage of the electrocardiogram signal. When the maximum interference degree of the electrocardiogram signal segment in the k-th stage of the electrocardiogram signal is smaller, the relaxation degree of the patient in the k-th stage of the electrocardiogram signal is larger, and the credibility is higher; σ1 k It reflects the fluctuation of the interference degree of the electrocardiogram signal segment in the k-th stage. As time goes by, the patient will gradually adapt to the environment or equipment, and the fluctuation of the interference degree of the electrocardiogram signal segment in this stage will decrease. Therefore, σ1 k The smaller it is, the more the patient adapts to the environment or equipment, and the higher the credibility of this stage.
[0076] Thus, the credibility of each stage of each electrocardiogram signal is obtained.
[0077] Step S004: Obtain the sleep onset time of the patient during each test. According to the credibility of each stage of the electrocardiogram signal and the sleep onset time, obtain the final sleep onset time of the patient.
[0078] It should be noted that the credibility of each stage of each electrocardiogram signal is obtained above. By correcting the sleep onset time during each test with the credibility during each test, a more accurate sleep onset time can be obtained.
[0079] Specifically, to obtain the sleep onset time of the patient during each test and obtain the final sleep onset time of the patient according to the credibility of each stage of the electrocardiogram signal and the sleep onset time, the specific method is as follows:
[0080] For the electroencephalogram signal and electrocardiogram signal of any one test, take the duration of the first stage and the second stage of the electroencephalogram signal during this test as the sleep onset time of the patient during this test; take the product of the mean value of the credibility of all stages of the electrocardiogram signal during this test and the corresponding sleep onset time as the initial final sleep onset time of the patient during this test, and take the mean value of the initial final sleep onset times of the patient during all sub-tests as the final sleep onset time of the patient.
[0081] It should be noted that the final sleep onset time of the patient is obtained above. The final sleep onset time is an important sleep index, and subsequent auxiliary judgment of narcolepsy can be made according to the final sleep onset time.
[0082] Through the above steps, the physiological parameter monitoring method for narcolepsy patients is completed.
[0083] Another embodiment of the present invention provides a physiological parameter monitoring medium for narcolepsy patients, on which computer instructions are stored. When the computer instructions are executed by a processor, the following operations are performed:
[0084] Conduct a number of wakefulness maintenance tests on the patient to obtain the electroencephalogram (EEG) signal and electrocardiogram (ECG) signal of the patient during each test; segment the EEG signal and ECG signal during each test respectively to obtain a number of EEG signal segments and a number of ECG signal segments; obtain the interference degree of each ECG signal segment according to the frequency change and fluctuation change of the ECG signal segment; obtain three stages of each ECG signal segment according to the frequency performance of the EEG signal segment; obtain the credible weight of the interference degree of each stage of each ECG signal according to the change of the interference degree of the ECG signal segment in each stage of the ECG signal; obtain the credibility of each stage of each ECG signal according to the credible weight, the fluctuation of the interference degree of the ECG signal segment within the stage and the state of the patient in the stage; obtain the sleep onset time of the patient during each test, and obtain the final sleep onset time of the patient according to the credibility of each stage of the ECG signal and the sleep onset time.
[0085] Another embodiment of the present invention provides a physiological parameter monitoring system for narcolepsy patients, and the system includes the following modules:
[0086] A data acquisition module for conducting a number of wakefulness maintenance tests on the patient to obtain the EEG signal and ECG signal of the patient during each test; segmenting the EEG signal and ECG signal during each test respectively to obtain a number of EEG signal segments and a number of ECG signal segments;
[0087] An interference degree module for obtaining the interference degree of each ECG signal segment according to the frequency of the ECG signal segment and the fluctuation deviation of the ECG signal segment;
[0088] A credibility module for obtaining three stages of each ECG signal segment according to the frequency performance of the EEG signal segment; obtaining the credible weight of the interference degree of each stage of each ECG signal according to the change of the interference degree of the ECG signal segment in each stage of the ECG signal; obtaining the credibility of each stage of each ECG signal according to the credible weight, the fluctuation of the interference degree of the ECG signal segment within the stage and the state of the patient in the stage;
[0089] A final sleep onset time module for obtaining the sleep onset time of the patient during each test, and obtaining the final sleep onset time of the patient according to the credibility of each stage of the ECG signal and the sleep onset time.
[0090] The above are only the preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A physiological parameter monitoring method for narcolepsy patients, characterized in that, The method includes the following steps: Perform several wakefulness maintenance tests on the patient to obtain the electroencephalogram (EEG) signal and electrocardiogram (ECG) signal of the patient during each test; segment the EEG signal and ECG signal during each test respectively to obtain a plurality of EEG signal segments and a plurality of ECG signal segments; Obtain the interference degree of each ECG signal segment according to the frequency of the ECG signal segment and the fluctuation deviation of the ECG signal segment; Obtain three stages of each ECG signal segment according to the frequency performance of the EEG signal segment; obtain the credible weight of the interference degree of each stage of each ECG signal according to the change of the interference degree of the ECG signal segment in each stage of the ECG signal; obtain the credibility of each stage of each ECG signal according to the credible weight, the fluctuation of the interference degree of the ECG signal segment within the stage, and the state of the patient in the stage; Obtain the sleep onset time of the patient during each test, and obtain the final sleep onset time of the patient according to the credibility of each stage of the ECG signal and the sleep onset time.
2. The physiological parameter monitoring method for narcolepsy patients according to claim 1, characterized in that The step of obtaining the interference degree of each ECG signal segment according to the frequency of the ECG signal segment and the fluctuation deviation of the ECG signal segment includes the following specific steps: For any ECG signal segment of the ECG signal during any test; obtain all PQRST waves in the ECG signal; take the mean value of the time intervals during the R-R waves between adjacent PQRST waves in the ECG signal segment as the first fluctuation deviation feature of the ECG signal segment; take the DTW distance between the average wave of the S-T waves in all PQRST waves in the ECG signal segment and the average wave of the S-T waves in all PQRST waves in the ECG signal as the second fluctuation deviation feature of the ECG signal segment; take the difference between the variance of the ECG signal segment and the average variance of all ECG signal segments in the ECG signal as the fluctuation deviation feature of the ECG signal segment; fuse the frequency of the ECG signal segment, the first fluctuation deviation feature and the second fluctuation deviation feature of the ECG signal segment to obtain the ECG.
3. The physiological parameter monitoring method for narcolepsy patients according to claim 1, characterized in that, The step of obtaining three stages of each ECG signal segment according to the frequency performance of the EEG signal segment includes the following specific steps: For the EEG signal and ECG signal during any same test; take the part of the EEG signal before the first continuous occurrence of TH2 EEG signal segments with frequencies in the θ wave range in the EEG signal as the first stage of the EEG signal, where TH2 is a preset second value; take the part of the EEG signal after the last continuous occurrence of TH2 EEG signal segments with frequencies in the θ wave range in the EEG signal as the third stage of the EEG signal; Take the part of the EEG signal other than the first stage and the third stage as the second stage of the EEG signal; Take the stage corresponding to the first stage of the EEG signal in the ECG signal as the first stage of the ECG signal; Take the stage corresponding to the second stage of the EEG signal in the ECG signal as the second stage of the ECG signal; take the stage corresponding to the third stage of the EEG signal in the ECG signal as the third stage of the ECG signal.
4. The physiological parameter monitoring method for narcolepsy patients according to claim 1, characterized in that, The step of obtaining the credible weight of the interference degree of each stage of each ECG signal according to the change of the interference degree of the ECG signal segment in each stage of the ECG signal includes the following specific steps: For any stage of the electrocardiogram (ECG) signal during any test; denote any ECG signal segment in this stage as the target ECG signal segment; take the change in the interference degree between the target ECG signal segment and the adjacent ECG signal segment on the left as the change in the interference degree of the target ECG signal segment in this stage; Take the reciprocal value of the mean of the changes in the interference degrees of all ECG signal segments in this stage as the credibility weight of the interference degree of this stage of the ECG signal.
5. The physiological parameter monitoring method for narcolepsy patients according to claim 4, characterized in that The specific steps for obtaining the credibility of each stage of each ECG signal according to the credibility weight, the fluctuation of the interference degree of the ECG signal segments within the stage, and the state of the patient in the stage are as follows: For any stage of the ECG signal during any test; according to the credibility weight of the interference degree of this stage, weight the difference between the change in the interference degree of each ECG signal segment in this stage and the mean of the changes in the interference degrees of all segments in this stage, and take the average of all weighted results as the first fluctuation characteristic of the interference degree of the ECG signal segments within this stage; take the ratio of the maximum interference degree of the ECG signal segments in all tests to the maximum interference degree of the ECG signal segments in this stage as the relaxation degree of the patient in this stage; obtain the fluctuation index of the interference degrees of all ECG signal segments in this stage; fuse the first fluctuation characteristic, the relaxation degree, and the fluctuation index to obtain the credibility of this stage; The first fluctuation characteristic and the relaxation degree are directly proportional to the credibility, and the fluctuation index is inversely proportional to the credibility.
6. The physiological parameter monitoring method for narcolepsy patients according to claim 3, wherein The specific method for obtaining the sleep onset time of the patient for each test is as follows: For the electroencephalogram (EEG) signal and the ECG signal of any test, take the durations of the first stage and the second stage of the EEG signal during this test as the sleep onset time of the patient during this test.
7. The physiological parameter monitoring method for narcolepsy patients according to claim 1, wherein The specific steps for obtaining the final sleep onset time of the patient according to the credibility of each stage of the ECG signal and the sleep onset time are as follows: For the ECG signal of any test, take the product of the mean of the credibilities of all stages of the ECG signal during this test and the corresponding sleep onset time as the initial final sleep onset time of the patient during this test, and take the mean of the initial final sleep onset times of the patient in all tests as the final sleep onset time of the patient.
8. The physiological parameter monitoring method for narcolepsy patients according to claim 1, characterized in that, The specific steps for segmenting the EEG signal and the ECG signal for each test respectively to obtain a number of EEG signal segments and a number of ECG signal segments are as follows: For the EEG signal of any test, divide the EEG signal into an EEG signal segment every TH1 seconds to obtain a number of EEG signal segments of the EEG signal; TH1 is a preset first value; according to the method for obtaining the EEG signal segment, obtain a number of ECG signal segments of the ECG signal for each test.
9. A physiological parameter monitoring medium for narcolepsy patients, on which computer instructions are stored, characterized in that, When the computer instruction is executed by the processor, it realizes the steps of the physiological parameter monitoring method for narcolepsy patients described in any one of claims 1-8.
10. A physiological parameter monitoring system for narcolepsy patients, characterized in that, The system includes the following modules: A data acquisition module, which is used to conduct several wakefulness maintenance tests on a patient to obtain the electroencephalogram (EEG) signals and electrocardiogram (ECG) signals of the patient during each test; segment the EEG signals and ECG signals during each test respectively to obtain a number of EEG signal segments and a number of ECG signal segments; An interference degree module, which is used to obtain the interference degree of each ECG signal segment according to the frequency of the ECG signal segment and the fluctuation deviation of the ECG signal segment; A credibility module, which is used to obtain three stages of each ECG signal segment according to the frequency performance of the EEG signal segment; obtain the credible weight of the interference degree of each stage of each ECG signal according to the change of the interference degree of the ECG signal segment in each stage of the ECG signal; Obtain the credibility of each stage of each ECG signal according to the credible weight, the fluctuation of the interference degree of the ECG signal segment within the stage and the state of the patient in the stage; A final sleep time module, which is used to obtain the sleep time of the patient during each test, and obtain the final sleep time of the patient according to the credibility of each stage of the ECG signal and the sleep time.
Citation Information
Cited By
A Classification Method for Electronic Medical Record Data Based on Electroencephalogram (EEG) Signals
CN121051555B