A clustering visualization method for dimensionality reduction of epilepsy data based on salient point adaptive isometric mapping manifold

Through the LA-ISOMAP manifold method of adaptive isometric mapping of salient points, the problem of unsupervised dimensionality reduction and clustering visualization of epilepsy EEG signals is solved, and efficient clear distinction and differentiation of sample points in 2-dimensional and 3-dimensional spaces are achieved. The clustering effect assists medical personnel in analyzing the inherent pathological laws of EEG data.

CN112418338BActive Publication Date: 2024-08-23BEIJING UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011364819.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-27
Publication Date
2024-08-23
Estimated Expiration
2040-11-27

AI Technical Summary

Technical Problem

Existing technologies have problems with high annotation costs and poor results in unsupervised dimensionality reduction and clustering visualization of epilepsy EEG signals. Especially when nonlinear structures and intrinsic manifold structures are found in high-dimensional spaces, the commonly used kernel method It is computationally expensive and not very effective.

Method used

The salient point adaptive isometric mapping LA-ISOMAP manifold method is used to calculate and optimize low-dimensional embedded coordinates by constructing a neighborhood graph of EEG samples, calculating the shortest path and geodesic distance matrix, and a piecewise linear adaptive adjustment mechanism. , to achieve 2D and 3D clustering visual analysis.

Benefits of technology

It significantly improves the visualization effect of unsupervised clustering, maintains the universality of the data manifold structure, clearly distinguishes sample points during epileptic seizure periods and intervals, and assists medical personnel in labeling and analyzing the inherent pathological laws of EEG data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112418338B
    Figure CN112418338B
Patent Text Reader

Abstract

The present invention relates to a clustering visualization method for dimensionality reduction of epilepsy data based on salient point adaptive isometric mapping manifolds, which is used to analyze the evolution law of epilepsy patients at different stages, and specifically includes the following contents: selecting EEG data sets of epilepsy patients; setting various initial parameters of salient point adaptive isometric mapping manifolds; constructing a neighborhood graph of EEG samples; selecting significant EEG sample points, and calculating the shortest path from the significant sample points to all sample points; updating the distance matrix by piecewise linear adaptive adjustment mechanism; calculating low-dimensional embedding coordinates; adaptively optimizing embedding coordinates; 2-dimensional and 3-dimensional clustering visualization analysis. The present invention has obvious visualization effect and good clustering performance. The present invention can assist professional medical staff in labeling data, and facilitate medical staff and cross-field personnel to analyze the intrinsic pathological reasons that cause the EEG of epilepsy patients to produce such clustering law at different stages.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to cross-information medical fields such as electroencephalogram clustering visualization of epilepsy data dimensionality reduction. Background Art

[0002] Epilepsy is a chronic neurological disease that seriously damages the patient's physical and mental health. Detecting epileptic EEG signals at different stages can help doctors diagnose the disease. In addition, if epileptic seizures can be predicted in time, the quality of life of epileptic patients can be significantly improved, opening up new treatment ideas for the prevention and treatment of epilepsy. Effective feature extraction methods have become the key to epilepsy detection and prediction at different stages.

[0003] Although PCA (Principal Component Analysis), LDA (Linear Discriminant Analysis) and NMF (Non-negative Matrix Factorization) have good effects in feature extraction applications, they are all linear models that can only discover the global features of the data. In addition, LDA is supervised and requires label information during training. However, there is little labeled data in the medical field and the cost of annotation is very high. Recently, a large number of studies have begun to focus on the field of unsupervised EEG. Researchers in different fields have found that data points in high-dimensional space are approximately located on a submanifold in the embedded low-dimensional space. In order to discover the nonlinear structure of high-dimensional data space, some researchers have proposed kernel methods. However, kernel methods have a large amount of computation and do not consider the intrinsic manifold structure of the original high-dimensional data. Manifold-based methods can effectively solve the above problems. Summary of the invention

[0004] The present invention is used to solve the problem that the cost of labeling the above-mentioned EEG signals is very high and the clustering visualization effect of the commonly used unsupervised clustering algorithm is relatively poor. The specific technical solution is as follows:

[0005] 1) Select the EEG dataset of epilepsy patients.

[0006] 2) Setting various initial parameters of salient point adaptive and other metric mapping manifolds

[0007] 3) Construct a neighborhood graph of EEG samples.

[0008] 4) Select significant EEG sample points and calculate the shortest path from the significant sample points to all sample points

[0009] 5) The piecewise linear adaptive adjustment mechanism updates the distance matrix.

[0010] 6) Calculate low-dimensional embedding coordinates.

[0011] 7) Adaptively optimize the embedding coordinates.

[0012] 8) 2D and 3D clustering visualization analysis.

[0013] Beneficial Effects

[0014] The present invention proposes a clustering visualization method for epilepsy data dimensionality reduction using a salient point adaptive isometric mapping LA-ISOMAP manifold. The present invention applies different manifolds and dimensionality reduction methods to the EEG public data of epilepsy in medical treatment, and visualizes the dimensionality reduction clustering effects of 15 mainstream popular reduction algorithms (including the classic LLE (Locally Linear Embedding) t-SNE, LLSTA (LineLocal Tangent Space Alignment) in unsupervised conditions in 2D and 3D space, and makes comparative analysis. The experimental results show that the unsupervised clustering visualization effect of the LA-ISOMAP (LandmarkAdaption ISOMAP) manifold dimensionality reduction algorithm using the salient point adaptive isometric mapping has obvious clustering performance. When the sample size is different, a similar data manifold structure can be maintained, which has a certain universality. LA-ISOMAP in the four groups all presents a data manifold structure similar to a long strip, keeping the blue sample points of the epileptic interval concentrated at the head, and the red data set of the epileptic attack period at the tail, and the classification boundaries of the two types of sample points are obvious. The present invention can assist professional medical staff in labeling data, and facilitate medical staff and cross-field personnel to analyze the intrinsic pathological reasons that cause the EEG of epileptic patients to produce such clustering rules at different periods. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 is a flow chart of the method of the present invention;

[0016] Figure 2 Visualization results of different classic data dimensionality reduction algorithms in 2D epilepsy data;

[0017] Figure 3 Visualization results of different classic data dimensionality reduction algorithms in 3D epilepsy data;

[0018] Figure 4 3D visualization results of this method when the number of samples is different. DETAILED DESCRIPTION

[0019] The present invention is further described below in conjunction with the accompanying drawings and specific implementation details. This embodiment performs unsupervised clustering visualization on epilepsy EEG samples collected from different periods in a hospital in a 2-dimensional or 3-dimensional space. The visualization results after clustering facilitate medical staff to study the evolution law of epilepsy. The process of the method involved in the present invention includes the following steps:

[0020] Step 1) Select the EEG dataset of epilepsy patients.

[0021] The interictal samples and ictal samples of epileptic patients in the data set are randomly shuffled and mixed to form N input samples, each of which has 4096-dimensional data. Various parameters such as k-nearest neighbor value, low-dimensional space target dimension (2D or 3D), etc. are set.

[0022] Step 2) Set various initial parameters of the salient point adaptive metric mapping manifold, set various parameters such as k nearest neighbor value k = 7, significant sample point percentage α per =0.2.

[0023] Step 3) Construct a neighborhood graph of EEG samples, which is generated as follows:

[0024] In order to explore the adjacency relationship of the intrinsic distribution between samples, the k-NN method is used to calculate the Euclidean distance d between all samples. ij , find the k nearest center points and their corresponding distances to each sample point, and arrange them in ascending order of distance to the center point to form an N*N dimensional distance adjacency sparse matrix D and adjacency graph, D = {d ij};

[0025] Step 4) Select significant EEG sample points and calculate the shortest path d between each significant sample point i and all sample points G (i,j), construct the geodesic distance matrix D G ={d G (i,j)}.

[0026] Initialization of geodesic distance matrix: If the sample point x i and x j are connected in the adjacency graph G, then the shortest path between them is the geodesic distance d G (i,j), and the initial value is d G (i,j)=d E (i,j), if the sample point x i and x j In the adjacency graph G, d is not connected. G (i,j)=∞. The weight of each edge in the adjacency graph G is the weight of the sample point x. i and x j The Euclidean distance d between E (i,j).

[0027] Update the geodesic distance matrix: randomly select n = α from N samples per N significant sample points.

[0028] Let q1,…,q kFor other samples except i and j, where k < N and N is the total number of sample points, the shortest path d between the significant sample point i and the sample point j G The calculation formula of (i, j) is as follows:

[0029] d G (i, j) = min{d G (i, j), d G (i, q1) + d G (q1, j),..., d G (i, q1) +...d G (q k-1 , q k ) + d G (q k , j)}

[0030] Since in the manifold space, the distance between data cannot be effectively measured by the simple Euclidean distance, but must be measured by the geodesic distance considering the internal distribution relationship of the data. The geodesic distance matrix D between the significant sample point i and all sample points can be statistically calculated by the Dijkstra algorithm G = {d G (i, j)}, and calculate the shortest path from the significant sample point to all sample points.

[0031] Step 5) Update the geodesic distance matrix by the piecewise linear adaptive adjustment mechanism.

[0032] To improve the separation effect between classes, the geodesic distance matrix is adjusted by weighting the distances from small to large according to the similarity condition as a2 < a3 < a4. Overall, the closer ones become closer and the farther ones become farther, enhancing the separation effect. When the distance between samples is extremely close, to avoid sample points clustering into a few points, the adjacent distance value is slightly increased locally (such as a1 > a2). When the distance is extremely far, to avoid sample points deviating too far to form isolated discrete points, the weighting coefficient is slightly decreased locally (such as a5 < a4).

[0033]

[0034] Among them, the coefficients a2 < a3 < a4, a1 > a2, a5 < a4 are the adaptive reference values of the algorithm Among them, d min represents the minimum value among all d G (i, j), and d max represents the maximum value among all d G (i, j).

[0035] Step 6) Reduce the dimension of the geodesic distance matrix D G and calculate the low-dimensional embedding coordinates.

[0036] Apply the MDS algorithm to the geodesic distance matrix D G , minimize the following objective function to obtain the paper-dimensional embedding coordinate Y of the sample:

[0037]

[0038] Where τ(D G )=-HSH / 2, S ij is an element in S, Yes D G The element d in G (i,j), I represents the identity matrix, e=(1,1,…,1) T By minimizing the objective function, the maximum eigenvector is obtained, thereby obtaining the optimal low-dimensional embedding coordinate Y, which corresponds to the distribution of sample points in two-dimensional or three-dimensional space after the clustering algorithm.

[0039] Step 7) Adaptively optimize the embedding coordinates.

[0040] The coordinate Y with serious discrete points is optimized to further eliminate isolated discrete points, and the embedded coordinate mean of all EEG samples is taken as Centered by adaptively optimizing the embedding coordinates, we get Y new .

[0041]

[0042] Step 8) Perform 2D and 3D clustering visualization analysis on EEG data.

[0043] Embedded coordinates Y generated after clustering EEG data new Visual analysis is performed in 2D space and 3D space respectively.

[0044] The dataset uses the real data collected by the University of Bonn in Germany. This paper selects set D and set E, each set contains 5 people, each set contains 100 EEG data segments, and the number of sampling points of each segment is 4097. Set D contains the data of epileptic patients during the interictal period; set E contains the data of epileptic patients during the seizure period. The 200 EEG data segments of these two datasets are randomly shuffled to generate 200 4096-dimensional input data.

[0045] In order to compare the visualization effect of clustering after dimensionality reduction, the generated 4096-dimensional input data were reduced in dimension using a variety of mainstream manifolds and dimensionality reduction tools such as MDS (Multi-Dimensional Scaling), LLE (Locally Linear Embedding), PCA (Principal Component Analysis), KPCA (Kernel Principal Component Analysis), Laplacian, SNE (Stochastic Neighbor Embedding), t-SNE (t-distributed Stochastic Neighbor Embedding), ISOMAP, L-ISOMAP, DM (Diffusion Maps), LLC (Locally Linear Coordination), and LLTSA (Line Local Tangent Space Alignment), and the corresponding 2-dimensional and 3-dimensional low-dimensional embedding coordinates were obtained respectively. The data after dimensionality reduction were visualized. None of the algorithms provide labels during the dimensionality reduction process. The labels are only used to mark colors when the embedding coordinates are visualized. The visualization effects of these manifolds and dimensionality reduction methods on the original EEG data in this dataset after dimensionality reduction are shown below. Figure 2 , Figure 3 shown.

[0046] In the figure, red represents samples of epileptic patients during seizures, and blue represents samples of epileptic patients during interictal periods. The position coordinates in the plane or space are 4097-dimensional original data that are reduced to embedded coordinates in 2 or 3 dimensions through different algorithms. Figure 2 , Figure 3It can be seen that among the 15 classic manifolds and dimensionality reduction algorithms, the 200 data points of SNE, KPCA, LLE, LLTSA and other methods are scattered and severely overlapped, with no obvious features and clustering, and the data points of the interictal and ictal periods are crossed and chaotic. The 200 data points of Laplacian, DM and other methods are distributed in a long strip shape. The data points of the Laplacian method are seriously crossed and there are scattered points. The data point distribution of the DM method is better than that of the Laplacian method. The visualization effect is better, but there are also overlaps. The data point distribution of LLC is concentrated in a few scattered points, and the blue epileptic interictal sample points are seriously lost. The visualization shapes after dimensionality reduction using MDS and PCA methods are similar, and the data points are scattered in a star shape. The visualization effect of the data points using the ISOMAP method is also average. After being reduced to a low-dimensional space by the LA-ISOMAP method, the visualization effect in both 2D and 3D space is very obvious, and its shape is like a long strip. The head is the blue sample of the interictal period of epileptic patients, with relatively concentrated data points, and the tail is the red sample of the epileptic patients during the ictal period.

[0047] Universality Analysis

[0048] To further verify the effectiveness of the LA-ISOMAP method on this epilepsy dataset, we randomly selected 50, 100, 150, and 200 samples from the 200 randomly mixed samples, used LA-ISOMAP to reduce the dimension of each sample and generate the embedding coordinates of each sample, and visualized them in 3D space as follows: Figure 4 As shown, the visualization effect of the data with different sample sizes in the dataset after dimensionality reduction using the LA-ISOMAP algorithm is very good. The four groups all present a data manifold structure similar to a long strip, with the blue sample points in the inter-epileptic period concentrated at the head and the red data set in the epileptic attack period at the tail, and the classification boundary of the two types of sample points is obvious.

Claims

1. A clustering visualization method for epilepsy data dimensionality reduction based on salient point adaptive isometric mapping manifold, specifically comprising the following steps: 1) Select the EEG dataset of epilepsy patients; 2) Setting the initial parameters of the salient point adaptive isometric mapping manifold; 3) Construct a neighborhood graph of EEG samples; 4) Select significant EEG sample points and calculate the shortest path d from the significant sample points to all sample points G (i,j), construct the geodesic distance matrix D G ={d G (i,j)}; 5) Piecewise linear adaptive adjustment mechanism updates the geodesic distance matrix; 6) According to the geodesic distance matrix D G Reduce the dimension of the data and calculate the low-dimensional embedding coordinates; 7) Adaptive optimization of embedding coordinates; 8) Perform 2D and 3D clustering visualization analysis on EEG data; The specific process of constructing the EEG sample neighborhood graph in step 3) is as follows: using the k-NN method, calculating the Euclidean distance between all samples, finding the k center points closest to each sample point and the corresponding distance, arranging them in ascending order of distance from the center point, and forming an N*N dimensional distance adjacency sparse matrix D and an adjacency graph G, D = {d ij }; The specific process of step 4) is as follows: Initialization of geodesic distance matrix: If the sample point x i and x j In the adjacency graph G, the initial value is d G (i,j)=d E (i,j), if the sample point x i and x j In the adjacency graph G, d is not connected. G (i, j) = ∞, where the weight of each edge in the adjacency graph G is the weight of the sample point x i and x j The Euclidean distance d between E (i,j); Update the geodesic distance matrix: randomly select n = α from N samples per N significant sample points, Let q1, …, q k be the other samples except i and j, where k < N and N is the total number of sample points. The shortest path d G (i, j) is calculated as follows: d G (i,j)=min{d G (i,j),d G (i,q1)+d G (q1,j),...,d G (i,q1)+...d G (q k-1 ,q k )+d G (q k ,j)} The geodesic distance matrix D between the statistically significant sample point i and all sample points is calculated by Dijkstra algorithm G ={d G (i,j)}, and calculate the shortest path from the significant sample point to all sample points; The piecewise linear adaptive adjustment mechanism described in step 5) updates the geodesic distance matrix, and the specific adjustment formula is as follows: Among them, the coefficient a1>a2,a2 <a3*0.3,a5<a4,a4> a3*0.7, Adaptive reference value d min Indicates all d G The minimum value among (i,j), d max Indicates all d G The maximum value among (i,j); The calculation of low-dimensional embedding coordinates described in step 6) is as follows: Apply the MDS algorithm to the geodesic distance matrix D G , minimize the following objective function to obtain the low-dimensional embedding coordinate Y of the sample: Where τ(D G )=-HSH / 2, S ij is an element in S, Yes D G The element d in G (i,j), I represents the identity matrix, e=(1,1,…,1) T , by minimizing the objective function, the maximum eigenvector is obtained, thereby obtaining the optimal low-dimensional embedding coordinate Y; The adaptive optimization embedding coordinates described in step 7) are updated as follows: For isolated discrete low-dimensional embedding coordinates Y, the embedding coordinate mean of all EEG samples is Centered by adaptively optimizing the embedding coordinates, we get Y new ,