A sleep EEG imbalance analysis method based on fuzzy vector distance
The fuzzy vector distance analysis method is used to perform interval segmentation and fuzzy transformation on sleep EEG signals, which solves the problem of insufficient accuracy in sleep EEG signal imbalance analysis in the existing technology and achieves more accurate quantification and analysis of imbalance features. .
Patent Information
- Application Number
- CN202410671543.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-05-28
AI Technical Summary
The existing technology has the problems of low accuracy, loss of detailed information and insufficient quantification accuracy in the analysis of imbalance of sleep EEG signals. In particular, the probability estimation method based on vector distance cannot effectively analyze the imbalance of the original sleep EEG signal. sexual characteristics.
The sleep EEG imbalance analysis method based on fuzzy vector distance is used to segment the vector distance into intervals through the tolerance of the sleep EEG signal, and performs fuzzy transformation to calculate the probability distribution of the interval to which the vector distance belongs, using positive and negative sleep EEG signals. Vector distance difference realizes the quantification of non-equilibrium characteristics.
It improves the accuracy of EEG signal vector distance probability estimation, innovatively realizes the non-balanced analysis of sleep EEG signals, and can more accurately characterize and quantify the non-balanced characteristics of sleep EEG, breaking through the limitations of traditional methods. sex.
Smart Images

Figure CN118245768B
Abstract
Description
Technical Field
[0001] The invention belongs to the field of physiological signal processing and complex system analysis, and specifically relates to a sleep EEG imbalance analysis method based on fuzzy vector distance. Background Art
[0002] Time irreversibility is an important method for analyzing the non-equilibrium of complex systems and plays an important role in the analysis of physiological signals. However, the quantification of time irreversibility requires calculating the difference in the joint probability distribution of positive and negative sleep EEG signals, which is not easy in the analysis of real signals. Currently, the coarse-grained method of sleep EEG signals is usually used to estimate the joint probability, such as the permutation method and the symbolic method of interval segmentation.
[0003] However, these coarse-grained methods have problems such as low accuracy and loss of detailed information. The probability estimation method based on vector distance commonly used in signal processing cannot be used in time-irreversible quantization. Therefore, its calculation process transforms the sleep EEG signal, causing the spatial structure characteristics of the original sleep EEG signal to change. The quantification of fluctuation characteristics is the theoretical basis for time-irreversible analysis of non-equilibrium characteristics, so it is very important to break through the limitations of the traditional vector distance method in non-equilibrium analysis.
[0004] In addition, the probability estimation method based on vector distance usually uses threshold screening to low-pass filter the vector distance, which is also a coarse-grained method, so there is a problem of insufficient signal analysis accuracy. Fuzzy judgment estimates the probability of the membership interval through a gradual conversion function, thereby greatly increasing the accuracy of information parameter quantization, and can play an important role in probability estimation based on vector distance. Fuzzy judgment estimates the probability of the membership interval through a gradual conversion function, thereby greatly increasing the accuracy of information parameter quantization, and can play an important role in probability estimation based on vector distance.
[0005] The probability estimation method based on vector distance plays an important role in the quantification of time series information parameters. However, due to the limitations of imbalance analysis and threshold screening, the vector distance method cannot analyze the imbalance characteristics of the original sleep EEG signal, and there is a problem of insufficient quantification accuracy. Therefore, how to perform imbalance analysis through the fluctuation characteristics of vector distance and improve the accuracy of information parameter estimation is an urgent problem to be solved based on vector distance imbalance analysis. Summary of the invention
[0006] In order to solve the above technical problems, the present invention proposes a sleep EEG imbalance analysis method based on fuzzy vector distance. The analysis method divides the distance of the EEG signal reconstruction vector into intervals according to the sleep EEG signal tolerance, and then performs fuzzy transformation on the divided intervals according to the difference in boundaries, and calculates the probability distribution of the vector distance belonging to the interval, thereby improving the accuracy of the EEG signal vector distance probability estimation, and effectively realizes the quantification of the imbalance characteristics of the sleep EEG signal reconstruction sequence by utilizing the difference in the probability distribution of the difference in the distance between the positive and negative sleep EEG signal vectors.
[0007] In order to achieve the above object, the present invention is achieved through the following technical solutions:
[0008] The present invention is a sleep EEG imbalance analysis method based on fuzzy vector distance, and the sleep EEG imbalance analysis method specifically comprises the following steps:
[0009] Step 1: Sleep EEG signals Reconstruct the space vector and then calculate the vector distance;
[0010] Step 2: Perform traditional non-overlapping interval division on the vector distance calculated in step 1 according to the characteristics of the sleep EEG signal;
[0011] Step 3: Perform fuzzy transformation on the vector distance, determine the vector distance mapping interval and calculate the probability;
[0012] Step 4: Sleep EEG signals Reverse the time sequence to obtain the reverse sleep EEG signal Then, through fuzzy vector distance transformation, the fuzzy symbol sequence of the reverse sleep EEG signal is obtained ;
[0013] Step 5: Count sleep EEG signals and reverse sleep EEG signals The vector distance interval of and calculate its probability distribution;
[0014] Step 6: Count sleep EEG signals and reverse sleep EEG signals The probability distribution of fuzzy vector distance uses the joint probability distribution difference to quantify the imbalance characteristics of sleep EEG.
[0015] A further improvement of the present invention is that the step 1 specifically comprises the following steps:
[0016] Step 1.1: Extract sleep EEG signals Dimensions ,Delay The space vector , construct a space vector sequence ;
[0017] Step 1.2: Let the first space vector sequence in step 1.1 be and The vector is and , calculate the space vector and space vector The Minkowski distance between ;
[0018] d i , j = x m τ i - x m τ j = ∑ t =1 m [ x i t - x j t ] p p
[0019] in, and Representation vector and No. elements, represents the Minkowski distance The control parameters such as represents the Chebyshev distance, and denote the dimension and delay of the vector in step 1.1 respectively;
[0020] Step 1.3: Calculate the space vector and space vector The average value of the element and , according to the size of the average value, the Minkowski distance in step 1.2 Determine the direction: If , Minkowski distance is a positive value; if , Minkowski distance Is a negative value.
[0021] A further improvement of the present invention is that the step 2 specifically comprises the following steps:
[0022] Step 2.1: Calculate sleep EEG signals Tolerance:
[0023] ,
[0024] in is the mean value of sleep EEG signal, To control the parameters;
[0025] Step 2.2: Use the tolerance calculated in step 2.1 Traditional non-superposition interval division for vector distance:
[0026]
[0027] in, Represents vector distance.
[0028] A further improvement of the present invention is that the step 3 specifically includes the following steps:
[0029] Step 3.1: For the two bounded intervals and the inner sides of the two unbounded intervals adjacent to the two bounded intervals, the fuzzy processing is performed by superimposing the two intervals, that is, each element is mapped to the two intervals according to different probabilities, and the midpoint of the interval is The vector distance membership probability is 1. As the vector distance deviates from the center of the interval , the probability distribution of the interval to which the vector distance belongs is respectively linear and quadratic function Perform fuzzy transformation;
[0030] Step 3.2: In the unbounded interval, the probability distribution of the symbol interval to which the vector distance belongs is respectively the inverse and negative exponential function Perform fuzzy transformation, where is the tolerance, is the Minkowski distance;
[0031] Step 3.3: Generate fuzzy vector distance sequence through fuzzy transformation ,in The fuzzy vector distance is in the form:
[0032]
[0033] in, and For different probabilities, and are two intervals for mapping.
[0034] A further improvement of the present invention is that the step 5 specifically includes the following steps:
[0035] Step 5.1, according to the non-overlapping interval division method in step 2, the fuzzy vector distance in step 4 is sorted into the form of independent symbols and their probabilities;
[0036] Step 5.2: Calculate sleep EEG signals based on the interval division of vector distance and reverse sleep EEG signals The global probability distribution of independent interval symbols.
[0037] A further improvement of the present invention is that the step 6 specifically comprises the following steps:
[0038] Step 6.1: Using sleep EEG signals and reverse EEG signals The probability distribution of fuzzy vector distance, constructing the global probability distribution:
[0039] Global probability distribution of fuzzy vector distance of positive sleep EEG signal: ,
[0040] Global probability distribution of anti-sleep EEG signal fuzzy vector distance: ,
[0041] in, to Sleep EEG signal The global probability of the vector distance interval 0 to 3, to Reverse sleep EEG signal The global probability of the vector distance interval 0 to 3;
[0042] Step 6.2: Calculate sleep EEG signals and reverse sleep EEG signals Global probability distribution of fuzzy vector distance and The difference is calculated by the difference in the probability distribution of the arrangement, and the fuzzy arrangement is irreversible, which is expressed as:
[0043]
[0044] in, and for and The probability distribution in From 0 to 3.
[0045] The beneficial effects of the present invention are:
[0046] The sleep EEG imbalance analysis method of the present invention divides the vector distance into intervals through the sleep EEG signal tolerance, then superimposes the divided intervals, and uses the probability distribution difference of the corresponding intervals of the positive and negative sleep EEG signal vector distances to measure the fluctuation characteristics of the sleep EEG, innovatively realizing the imbalance analysis of reconstructed sleep EEG signals.
[0047] The sleep EEG imbalance analysis method of the present invention processes the vector distance through the superposition interval, and then performs fuzzy transformation with and without threshold on the vector distance according to the interval boundary, and calculates the membership probability of the interval to which the vector distance belongs. It can more accurately characterize the fluctuation characteristics contained in the vector distance, improve the accuracy of the signal joint probability estimation, and can more effectively quantify and reconstruct the imbalance characteristics of sleep EEG.
[0048] The sleep EEG imbalance analysis method of the present invention screens the vector distance through tolerance and calculates the joint probability distribution of the signal by fuzzy transformation. Compared with the existing methods, it realizes the limitation that the reconstructed sleep EEG signal cannot perform imbalance analysis, and has higher accuracy in the characterization and quantification of the reconstructed spatial fluctuation characteristics, and can more effectively measure the imbalance characteristics of sleep EEG. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 It is a flow chart of the sleep EEG imbalance analysis method based on fuzzy vector distance of the present invention.
[0050] Figure 2 It is a schematic diagram of the fuzzy transformation method of the vector distance interval of the present invention.
[0051] Figure 3 It is an irreversible comparison diagram of the fuzzy vector distance and the original vector distance of the EEG signals during wakefulness and rapid eye movement. DETAILED DESCRIPTION
[0052] The following will disclose the embodiments of the present invention with drawings. For the purpose of clear description, many practical details will be described together in the following description. However, it should be understood that these practical details should not be used to limit the present invention. That is to say, in some embodiments of the present invention, these practical details are not necessary.
[0053] like Figure 1 As shown, the present invention is a sleep EEG imbalance analysis method based on fuzzy vector distance, comprising the following steps:
[0054] Step 1: Sleep EEG signals Perform space vector reconstruction and then calculate vector distance.
[0055] The specific steps include:
[0056] Step 1.1: Extract sleep EEG signals Dimensions ,Delay The space vector , construct a space vector sequence ;
[0057] Step 1.2: Let the first space vector sequence in step 1.1 be and The vector is and , calculate the space vector and space vector The Minkowski distance between ; d i , j = X m τ i - X m τ j = ∑ t =1 m [ x i t - x j t ] p p
[0058] in, and Representation vector and No. elements, represents the Minkowski distance The control parameters such as represents the Chebyshev distance, and denote the dimension and delay of the vector in step 1.1 respectively;
[0059] Step 1.3: Calculate the space vector and space vector The average value of the element and , according to the size of the average value, the Minkowski distance in step 1.2 Determine the direction: If , Minkowski distance is a positive value; if , Minkowski distance Is a negative value.
[0060] Step 2: Perform traditional non-overlapping interval division on the vector distance calculated in step 1 according to the characteristics of the sleep EEG signal.
[0061] The specific steps include:
[0062] Step 2.1: Calculate sleep EEG signals Tolerance:
[0063] ,
[0064] in is the mean value of sleep EEG signal, To control the parameters;
[0065] Step 2.2: Use the tolerance calculated in step 2.1 Traditional non-superposition interval division for vector distance:
[0066]
[0067] in, Represents vector distance.
[0068] like Figure 2 As shown, , and 0 are dividing lines, dividing the vector distance into 4 solid line intervals without overlap.
[0069] Step 3: Perform fuzzy transformation on the vector distance, determine the vector distance mapping interval and calculate the probability;
[0070] The specific steps include:
[0071] Step 3.1: For the bounded intervals 1 and 2 and the inner side of the adjacent intervals 0 and 3, the fuzzy processing is performed by superimposing the two intervals, that is, each element is fuzzyized according to different probabilities. and Mapping to two intervals and , the midpoint of the interval The vector distance membership probability is 1. As the vector distance deviates from the center of the interval , the probability distribution of the interval to which the vector distance belongs is respectively linear and quadratic function Perform fuzzy transformation;
[0072] Step 3.2: In the unbounded intervals corresponding to 0 and 3, the probability distribution of the symbol interval to which the vector distance belongs is respectively the inverse and negative exponential function Perform fuzzy transformation, where is the tolerance, is the Minkowski distance;
[0073] Figure 2 The figure shows the correspondence between the order-variable function interval and the four gradient fuzzy transformation functions, where the membership probability of the vector distance in the corresponding interval is calculated as follows: linear transformation is used inside the bounded intervals 1 and 2 and the adjacent intervals 0 and 3, and negative exponential function transformation is used inside the bounded intervals 0 and 3.
[0074] Step 3.3: Generate fuzzy vector distance sequence through fuzzy transformation ,in The fuzzy vector distance is in the form:
[0075]
[0076] Step 4: Sleep EEG signals Reverse the time sequence to obtain the reverse sleep EEG signal Then, through fuzzy vector distance transformation, the fuzzy symbol sequence of the reverse sleep EEG signal is obtained. .
[0077] Step 5: Count sleep EEG signals and reverse sleep EEG signals The vector distance interval of and calculate its probability distribution;
[0078] The specific steps include:
[0079] Step 5.1, according to the non-overlapping interval division method in step 2.2, the fuzzy vector distance in step 4 is sorted into the form of independent symbols and their probabilities;
[0080] Step 5.2: Calculate sleep EEG signals based on the interval division of vector distance and reverse sleep EEG signals The global probability distribution of independent interval symbols, taking the interval 0 of the forward sleep EEG signal vector distance as an example, assuming that step 4 contains N symbols 0, its probability distribution is expressed as follows: , , ,… , then the global probability of symbol 0 for
[0081] .
[0082] Correspondingly, the global probability of the reverse sleep EEG signal vector distance interval symbol 0 is .
[0083] Step 6: Count sleep EEG signals and reverse sleep EEG signals The probability distribution of fuzzy vector distance uses the joint probability distribution difference to quantify the imbalance characteristics of sleep EEG.
[0084] The specific steps include:
[0085] Step 6.1: Using sleep EEG signals and reverse sleep EEG signals The probability distribution of fuzzy vector distance, constructing the global probability distribution:
[0086] Global probability distribution of fuzzy vector distance of positive sleep EEG signal: ,
[0087] Global probability distribution of anti-sleep EEG signal fuzzy vector distance: ,
[0088] in, to Sleep EEG signal The global probability of the vector distance interval 0 to 3, to Reverse sleep EEG signal The global probability of the vector distance interval 0 to 3;
[0089] Step 6.2: Calculate sleep EEG signals and reverse sleep EEG signals Global probability distribution of fuzzy vector distance and The difference is calculated by the difference in the probability distribution of the arrangement, and the fuzzy arrangement is irreversible ( , fuzzy vector distance irreversibility), expressed as:
[0090]
[0091] in, and for and The probability distribution in From 0 to 3.
[0092] In order to detect the effect of the non-equilibrium analysis method based on fuzzy vector distance in sleep EEG analysis, the present invention uses the polysomnography physiological signals of the PhysioNet public database 'slpdb' for testing. The database contains a variety of sleep physiological signals, such as electrocardiogram, electroencephalogram, etc., and the sleep state is marked every 30 seconds. 20 groups of awake and rapid eye movement (rapid eye movement) EEG signals were collected from the database, each group lasting 10s. The sampling frequency of sleep EEG signals is 250Hz, and the quantization accuracy is 12bit. Through manual review, the artifacts in the EEG signal are manually deleted, and then the EEG signal is filtered at 0.3-35Hz according to the AASM standard. The simulation experiment platform is Python3.10 software under Windows system. The analysis results of the present invention are not affected by the operating system and Python software version.
[0093] Control parameters of fuzzy vector distance tolerance is 0.2, using the Chebyshev distance in step 1.2 Calculate vector distance. Figure 3 As shown, the ordinate is the irreversible value of the vector distance, and the vector reconstruction parameter is set to =2. Delay =1. In the superimposed vector distance interval, the threshold interval uses linear fuzzy transformation, and the non-threshold interval uses negative exponential function for transformation, and the difference with the original vector distance probability distribution is compared and analyzed. like Figure 3 shown.
[0094] from Figure 3 It can be seen that as the human body goes from wakefulness to sleep, the imbalance characteristics of the EEG signal show a downward trend. Both the original and fuzzy vector distance irreversibility can correctly characterize the lower imbalance characteristics of the sleep EEG in the sleep state, indicating that both methods can correctly quantify the fluctuation characteristics of the EEG signal reconstruction sequence. From the statistical test results, it can be seen that when p is less than 0.05, the two signals have significant differences, and as the p value decreases, the significance becomes more obvious. The p value of the original vector distance irreversibility is 3.37E-4, while the p value of the fuzzy vector distance irreversibility is 7.13E-6, indicating that the fuzzy transformation of the superposition interval can more effectively measure the imbalance characteristics of the EEG signal reconstruction sequence.
[0095] The above description is only an embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.
Claims
1. A sleep EEG imbalance analysis method based on fuzzy vector distance, characterized by: The sleep EEG imbalance analysis method specifically comprises the following steps: Step 1, reconstruct the sleep EEG signal X(t) = {x(1), x(2), ...x(t), ...x(L)} into a spatial vector, and then calculate the vector distance; Step 2: Perform traditional non-overlapping interval division on the vector distance calculated in step 1 according to the characteristics of the sleep EEG signal; Step 3: Perform fuzzy transformation on the vector distance, determine the vector distance mapping interval and calculate the probability; Step 4: Reverse the sleep EEG signal X(t) in time to obtain the reverse sleep EEG signal X(-t), and then convert the fuzzy vector distance to obtain the fuzzy symbol sequence S of the reverse sleep EEG signal. f (-t) = {s f (-1), ...s f (-t), ...s f (-L)}; Step 5: Count the vector distance intervals of the sleep EEG signal X(t) and the reverse sleep EEG signal X(-t), and calculate their probability distribution; Step 6: Count the probability distribution of the fuzzy vector distance between the sleep EEG signal X(t) and the reverse sleep EEG signal X(-t), and use the joint probability distribution difference to quantify the imbalance characteristics of the sleep EEG; Wherein, the step 3 specifically includes the following steps: Step 3.1: Fuzzify the inner sides of the two bounded intervals and the two unbounded intervals adjacent to the two bounded intervals, that is, map each element to the two intervals with different probabilities, and the midpoint d m The vector distance membership probability is 1. As the vector distance deviates from the center of the interval d m , the probability distribution of the interval to which the vector distance belongs is respectively linear and quadratic function Perform fuzzy transformation; Step 3.2: In the unbounded interval, the probability distribution of the symbol interval to which the vector distance belongs is respectively the inverse and the negative exponential function f E =exp(-r|d i,j |) for fuzzy transformation, where r is the tolerance and d i,j is the Minkowski distance; Step 3.3: Generate fuzzy vector distance sequence S through fuzzy transformation f (t) = {s f (1), ...s f (t), ...s f (L)}, where s f (t) The fuzzy vector distance is in the form of: s f (t)=(s1,p 1t ;s2,p 2t ) Among them, p 1t and p 2t are different probabilities, s1 and s2 are two intervals of mapping.
2. The sleep EEG imbalance analysis method based on fuzzy vector distance according to claim 1 is characterized by: The step 1 specifically comprises the following steps: Step 1.1: Extract the spatial vector of the sleep EEG signal X(t) with dimension m and delay τ Constructing a space vector sequence Step 1.2: Let the i-th and j-th vectors in the space vector sequence of step 1.1 be and Calculate space vector and space vector The Minkowski distance d between i,j ; Among them, x(i t ) and x(j t ) represents a space vector and The tth element of , p represents the Minkowski distance d i,j The control parameters of , m and τ represent the dimension and delay of the vector respectively; Step 1.3: Calculate the space vector and space vector The average value of the element μ i and μ j , according to the size of the average value, the Minkowski distance d in step 1.2 i,j The direction is determined: if μ i ≥μ j , Minkowski distance d i,j is a positive value; if μ i <μ j , Minkowski distance d i,j Is a negative value.
3. The sleep EEG imbalance analysis method based on fuzzy vector distance according to claim 1, characterized in that: The step 2 specifically includes the following steps: Step 2.1, calculate the tolerance of the sleep EEG signal X(t): Where μ is the mean value of sleep EEG signal and α is the control parameter; Step 2.2: Use the tolerance r calculated in step 2.1 to divide the vector distance into traditional non-superposition intervals: Among them, d i,j Represents vector distance.
4. The sleep EEG imbalance analysis method based on fuzzy vector distance according to claim 1, characterized in that: The step 5 specifically comprises the following steps: Step 5.1, according to the non-overlapping interval division method in step 2, the fuzzy vector distance in step 4 is sorted into the form of independent symbols and their probabilities; Step 5.2: Calculate the global probability distribution of the independent interval symbols of the sleep EEG signal X(t) and the reverse sleep EEG signal X(-t) according to the interval division of the vector distance.
5. The sleep EEG imbalance analysis method based on fuzzy vector distance according to claim 1, characterized in that: The step 6 specifically comprises the following steps: Step 6.1: Construct a global probability distribution through the probability distribution of the fuzzy vector distance between the sleep EEG signal X(t) and the reverse sleep EEG signal X(-t): Global probability distribution of fuzzy vector distance of positive sleep EEG signal: P F ={p f0 , p f1 , p f2 , p f3 }, Global probability distribution of anti-sleep EEG signal fuzzy vector distance: P B ={p b0 , p b1 , p b2 , p b3 }, Among them, p f0 to p f3 Represents the global probability of the vector distance interval 0 to 3 of the sleep EEG signal X(t), p b0 to p b3 Represents the global probability of the vector distance interval 0 to 3 of the reverse sleep EEG signal X(-t); Step 6.2: Calculate the global probability distribution P of the fuzzy vector distance between the sleep EEG signal X(t) and the reverse sleep EEG signal X(-t) F and P B The difference is calculated by the difference in the probability distribution of the arrangement, and the fuzzy arrangement is irreversible, which is expressed as: Among them, p fi and p bi P F and P B The probability distribution in , i ranges from 0 to 3.
