CN112562031A - Nuclear magnetic resonance image clustering method based on sample distance reconstruction - Google Patents
Nuclear magnetic resonance image clustering method based on sample distance reconstruction Download PDFInfo
- Publication number
- CN112562031A CN112562031A CN202011450094.4A CN202011450094A CN112562031A CN 112562031 A CN112562031 A CN 112562031A CN 202011450094 A CN202011450094 A CN 202011450094A CN 112562031 A CN112562031 A CN 112562031A
- Authority
- CN
- China
- Prior art keywords
- distance
- matrix
- mri
- vectors
- image
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/003—Reconstruction from projections, e.g. tomography
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/23—Clustering techniques
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10072—Tomographic images
- G06T2207/10088—Magnetic resonance imaging [MRI]
Landscapes
- Engineering & Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Evolutionary Biology (AREA)
- Evolutionary Computation (AREA)
- Bioinformatics & Computational Biology (AREA)
- General Engineering & Computer Science (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Magnetic Resonance Imaging Apparatus (AREA)
Abstract
The invention belongs to the technical field of nuclear magnetic resonance image processing, and particularly relates to a nuclear magnetic resonance image clustering method based on sample distance reconstruction, which comprises the following steps: extracting a gray value of an original image; vectorizing the obtained gray matrix T; calculating Euclidean distance, Manhattan distance and Hamming distance of every two image vectors through the gray level vectors, and constructing a distance matrix; merging the feature vectors into a feature matrix; reconstructing the distance between the samples; for the division of different MRI images. The invention can effectively solve the problem of insufficient information mining of the existing MRI images, and can quickly and accurately realize the clustering of the samples based on the distance between the reconstructed MRI image samples, thereby fully playing the role of the MRI technology in disease diagnosis. The method is used for clustering the nuclear magnetic resonance images.
Description
Technical Field
The invention belongs to the technical field of nuclear magnetic resonance image processing, and particularly relates to a nuclear magnetic resonance image clustering method based on sample distance reconstruction.
Background
With the development of computer and medical diagnosis technology, the detection technology for human body focus has advanced greatly. Magnetic Resonance Imaging (MRI) has played a great role in the detection of tumors of the cardiovascular and cerebrovascular systems and the thoracic and abdominal cavities as a high-precision medical imaging technique. The main principle is that the nuclear magnetic resonance principle is utilized, the emitted electromagnetic waves are detected through an external gradient magnetic field according to different attenuations of the released energy in different structural environments in the material, so that the position and the type of the object atomic nucleus are formed, and a structural image in the object is drawn according to the position and the type.
At present, MRI is mainly involved in medical diagnosis in an auxiliary way or mainly depends on experience knowledge of doctors to judge the potential condition of a focus part in MRI imaging. In the MRI research, based on the needs of clinical application and scientific research, the segmentation of MRI tumor images becomes one of the main ways to guide medical diagnosis, and researchers have proposed many segmentation methods of MRI tumor image brains and perform clustering of MRI images based on the segmentation methods, so as to identify the cancer stage of the human organ and perform corresponding treatment. However, these methods require a priori knowledge of the type of cancer and the MRI image, and the results of segmenting the image have a large impact on the final classification and diagnosis.
Disclosure of Invention
Aiming at the technical problem that the existing MRI has great influence on the final classification and diagnosis, the invention provides the nuclear magnetic resonance image clustering method based on sample distance reconstruction, which has strong stability, high accuracy and convenient use.
In order to solve the technical problems, the invention adopts the technical scheme that:
a nuclear magnetic resonance image clustering method based on sample distance reconstruction comprises the following steps:
s1: extracting a gray value of an original image based on an existing MRI tumor image dataset;
s2: vectorizing the obtained gray matrix T;
s3: calculating Euclidean distance, Manhattan distance and Hamming distance of every two image vectors through the gray level vectors, and constructing a distance matrix;
s4: reconstructing the distance between the MRI images by fusing the three different distance matrixes obtained in the step S3, and merging the eigenvectors obtained by PCA transformation of the three distance matrixes into one eigenvector;
s5: converting the characteristic matrix into a new distance matrix DM by calculating Euclidean distances between rows in the characteristic matrix, and realizing the reconstruction of the distance between samples;
s6: and obtaining a final distance result by performing hierarchical clustering, and realizing the division of different MRI images.
The method for extracting the gray value of the original image in S1 includes: let n existing MRI image data be m × m in size, and T represents the gray matrix of the original image.
The vectorization processing method in S2 includes: the matrix of m x m gray values is expanded from top to bottom and from left to right into m2 x 1 vectors, and the resulting column vectors are normalized by Z-score.
The method for constructing the distance matrix in the step S3 includes: respectively calculating Euclidean distance, Manhattan distance and Hamming distance of vectors corresponding to any two images, respectively calculating the distance between the vectors corresponding to any two MRI images, representing all the MRI to be evaluated in a distance matrix DM according to distance measurement, respectively representing Euclidean distance, the distance matrix calculated by using DM1, DM2 and DM3, wherein the rows or columns of the distance matrix correspond to a sample, and elements in the distance matrix represent the distance between different MRI images.
The method for combining the feature vectors into one feature matrix in S4 includes: firstly, PCA conversion is carried out on each distance matrix, the first two features in the low-dimensional features for reserving the distance between the samples are selected and extracted, the extracted feature vectors are regarded as projection points of n MRI image samples in a two-dimensional plane space, so that the distance between the point pairs also reflects the distance between the samples, and then the feature vectors obtained by the PCA conversion of the three distance matrices obtained in the step S3 are combined into one feature matrix FM.
Compared with the prior art, the invention has the following beneficial effects:
the invention can effectively solve the problem of insufficient information mining of the existing MRI images, and can quickly and accurately realize the clustering of the samples based on the distance between the reconstructed MRI image samples, thereby fully playing the role of the MRI technology in disease diagnosis, helping doctors to quickly analyze the focus tumor information of patients and further establishing the subsequent treatment means. The prediction method is simple, convenient and effective, can ensure accurate clustering of a large number of MRI images, does not need image segmentation in advance so as to save time overhead, and can stably promote the distinction of the MRI images through the MRI sample set which is continuously amplified.
Drawings
FIG. 1 is a flow chart of the operation of the present invention;
FIG. 2 is a logic flow diagram of the algorithm of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
A nuclear magnetic resonance image clustering method based on sample distance reconstruction, as shown in fig. 1, includes the following steps:
step 1: extracting a gray value of an original image based on an existing MRI tumor image dataset;
step 2: vectorizing the obtained gray matrix T;
and step 3: calculating Euclidean distance, Manhattan distance and Hamming distance of every two image vectors through the gray level vectors, and constructing a distance matrix;
and 4, step 4: reconstructing the distance between the MRI images by fusing the three different distance matrixes obtained in the step 3, and merging the eigenvectors obtained by PCA transformation of the three distance matrixes into one eigenvector matrix;
and 5: and converting the characteristic matrix into a new distance matrix DM by calculating Euclidean distances between rows in the characteristic matrix, so as to realize the reconstruction of the distance between samples. As shown in fig. 2, based on the obtained feature matrix FM, the FM can be converted into a new distance matrix DM by calculating euclidean distances between rows in the FM, so as to reconstruct the distance between samples. Correspondingly, DM can be found to have the following properties: 1. the diagonal elements are all 0, and the off-diagonal elements are positive real numbers, representing the distance between different samples. 2. The DM size is n × n, and the rows or columns represent n MRI images.
Step 6: based on the obtained reconstructed distance matrix DM, as shown in fig. 2, a final distance result can be obtained by performing hierarchical clustering, which realizes the partition of different MRI images.
Further, the method for extracting the gray value of the original image in step 1 comprises the following steps: let n existing MRI image data be m × m in size, and T represents the gray matrix of the original image.
Further, the vectorization processing method in step 2 is as follows: the matrix of m x m gray values is expanded from top to bottom and from left to right into m2 x 1 vectors, and the resulting column vectors are normalized by Z-score.
Further, the method for constructing the distance matrix in step 3 comprises the following steps: as shown in fig. 2, based on the gradation vector V obtained for each MRI image, various distances between two image vectors V are calculated. Specifically, the principle is to calculate the euclidean distance, manhattan distance, and hamming distance of the corresponding vectors of any two images. By calculating the distance between the corresponding vectors of any two MRI images, all the MRI images to be evaluated can be represented in a distance matrix DM according to the distance measurement, and Euclidean distance, Manhattan distance and Hamming distance are respectively represented by DM1/DM2/DM3 to calculate the distance matrix. Wherein a row or a column of the distance matrix corresponds to one sample, and the elements in the distance matrix represent the distances between different MRI images. For example, DM1[ i, j ] represents the Euclidean distance between the ith and jth MRI images. As can be seen from the above, the calculated distance matrix has the following characteristics: 1. diagonal elements of the distance matrixes are all 0, while non-diagonal elements represent the distance or the dissimilarity degree between any two MRI images, and the value range of the distance or the dissimilarity degree is (0, 1); 2. the distance matrix has a size of n x n, and the rows or columns represent n MRI image samples.
Further, the method for combining the feature vectors into one feature matrix in step 4 is as follows: as shown in fig. 2, the distance between the MRI images is reconstructed by fusing the three different distance matrices based on the idea of ensemble learning with respect to the processed distance matrix. First, PCA transformation is performed on each distance matrix to extract low-dimensional features that preserve the distance between samples, where the two-dimensional features before extraction are selected. Since the extracted feature vectors can be regarded as projection points of the n MRI image samples in the two-dimensional plane space, the distance between the point pairs also reflects the distance between the samples. Therefore, the eigenvectors obtained by the PCA transformation of the three distance matrices are combined into one eigenvector matrix as the eigenvector matrix FM. Where FM is a matrix of size n x 6, and each row corresponds to one MRI image sample.
Although only the preferred embodiments of the present invention have been described in detail, the present invention is not limited to the above embodiments, and various changes can be made without departing from the spirit of the present invention within the knowledge of those skilled in the art, and all changes are encompassed in the scope of the present invention.
Claims (5)
1. A nuclear magnetic resonance image clustering method based on sample distance reconstruction is characterized by comprising the following steps: comprises the following steps:
s1: extracting a gray value of an original image based on an existing MRI tumor image dataset;
s2: vectorizing the obtained gray matrix T;
s3: calculating Euclidean distance, Manhattan distance and Hamming distance of every two image vectors through the gray level vectors, and constructing a distance matrix;
s4: reconstructing the distance between the MRI images by fusing the three different distance matrixes obtained in the step S3, and merging the eigenvectors obtained by PCA transformation of the three distance matrixes into one eigenvector;
s5: converting the characteristic matrix into a new distance matrix DM by calculating Euclidean distances between rows in the characteristic matrix, and realizing the reconstruction of the distance between samples;
s6: and obtaining a final distance result by performing hierarchical clustering, and realizing the division of different MRI images.
2. The method of claim 1, wherein the method comprises: the method for extracting the gray value of the original image in S1 includes: let n existing MRI image data be m × m in size, and T represents the gray matrix of the original image.
3. The method of claim 1, wherein the method comprises: the vectorization processing method in S2 includes: the matrix of m x m gray values is expanded from top to bottom and from left to right into m2 x 1 vectors, and the resulting column vectors are normalized by Z-score.
4. The method of claim 1, wherein the method comprises: the method for constructing the distance matrix in the step S3 includes: respectively calculating Euclidean distance, Manhattan distance and Hamming distance of vectors corresponding to any two images, respectively calculating the distance between the vectors corresponding to any two MRI images, representing all the MRI to be evaluated in a distance matrix DM according to distance measurement, respectively representing Euclidean distance, the distance matrix calculated by using DM1, DM2 and DM3, wherein the rows or columns of the distance matrix correspond to a sample, and elements in the distance matrix represent the distance between different MRI images.
5. The method of claim 1, wherein the method comprises: the method for combining the feature vectors into one feature matrix in S4 includes: firstly, PCA conversion is carried out on each distance matrix, the first two features in the low-dimensional features for reserving the distance between the samples are selected and extracted, the extracted feature vectors are regarded as projection points of n MRI image samples in a two-dimensional plane space, so that the distance between the point pairs also reflects the distance between the samples, and then the feature vectors obtained by the PCA conversion of the three distance matrices obtained in the step S3 are combined into one feature matrix FM.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011450094.4A CN112562031B (en) | 2020-12-09 | 2020-12-09 | Nuclear magnetic resonance image clustering method based on sample distance reconstruction |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011450094.4A CN112562031B (en) | 2020-12-09 | 2020-12-09 | Nuclear magnetic resonance image clustering method based on sample distance reconstruction |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112562031A true CN112562031A (en) | 2021-03-26 |
CN112562031B CN112562031B (en) | 2022-09-27 |
Family
ID=75061610
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011450094.4A Active CN112562031B (en) | 2020-12-09 | 2020-12-09 | Nuclear magnetic resonance image clustering method based on sample distance reconstruction |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112562031B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114821140A (en) * | 2022-04-20 | 2022-07-29 | 咪咕文化科技有限公司 | Image clustering method based on Manhattan distance, terminal device and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO1997009690A1 (en) * | 1995-09-05 | 1997-03-13 | Northrop Grumman Corporation | Data dimensional sieving and fuzzy connectivity for mri image analysis |
US20060269130A1 (en) * | 2005-05-30 | 2006-11-30 | Renaud Maroy | Method of segmentation of a sequence of three-dimensional images, in particular in pharmaco-imagerie |
CN108664976A (en) * | 2018-04-25 | 2018-10-16 | 安徽大学 | Super-pixel-based automatic segmentation method for fuzzy spectral clustering brain tumor image |
US20180330506A1 (en) * | 2017-05-09 | 2018-11-15 | Heartflow, Inc. | Systems and methods for anatomic structure segmentation in image analysis |
CN109685767A (en) * | 2018-11-26 | 2019-04-26 | 西北工业大学 | A kind of bimodal brain tumor MRI dividing method based on Cluster-Fusion algorithm |
-
2020
- 2020-12-09 CN CN202011450094.4A patent/CN112562031B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO1997009690A1 (en) * | 1995-09-05 | 1997-03-13 | Northrop Grumman Corporation | Data dimensional sieving and fuzzy connectivity for mri image analysis |
US20060269130A1 (en) * | 2005-05-30 | 2006-11-30 | Renaud Maroy | Method of segmentation of a sequence of three-dimensional images, in particular in pharmaco-imagerie |
US20180330506A1 (en) * | 2017-05-09 | 2018-11-15 | Heartflow, Inc. | Systems and methods for anatomic structure segmentation in image analysis |
CN108664976A (en) * | 2018-04-25 | 2018-10-16 | 安徽大学 | Super-pixel-based automatic segmentation method for fuzzy spectral clustering brain tumor image |
CN109685767A (en) * | 2018-11-26 | 2019-04-26 | 西北工业大学 | A kind of bimodal brain tumor MRI dividing method based on Cluster-Fusion algorithm |
Non-Patent Citations (4)
Title |
---|
IREM ERSOZ KAYA 等: "PCA based clustering for brain tumor segmentation of T1w MRI images", 《COMPUTER METHODS AND PROGRAMS IN BIOMEDICINE》 * |
周燕琴 等: "基于改进谱聚类的医学图像分割算法", 《大众科技》 * |
张勇 等: "聚类与PCA融合的特征提取方法研究", 《计算机工程与应用》 * |
马慧彬 等: "一种基于SVM的MRI序列图像超分辨重建算法", 《佳木斯大学学报(自然科学版)》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114821140A (en) * | 2022-04-20 | 2022-07-29 | 咪咕文化科技有限公司 | Image clustering method based on Manhattan distance, terminal device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN112562031B (en) | 2022-09-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Noreen et al. | A deep learning model based on concatenation approach for the diagnosis of brain tumor | |
CN109493308B (en) | Medical image synthesis and classification method for generating confrontation network based on condition multi-discrimination | |
Hu et al. | Learning to recognize chest-Xray images faster and more efficiently based on multi-kernel depthwise convolution | |
CN106408001B (en) | Area-of-interest rapid detection method based on depth core Hash | |
CN111080657A (en) | CT image organ segmentation method based on convolutional neural network multi-dimensional fusion | |
Zhu et al. | Arbitrary scale super-resolution for medical images | |
WO2015106374A1 (en) | Multidimensional texture extraction method based on brain nuclear magnetic resonance images | |
CN108010013A (en) | A kind of lung CT image pulmonary nodule detection methods | |
Ahmad et al. | Convolutional-neural-network-based feature extraction for liver segmentation from CT images | |
Zhang et al. | A novel algorithm for breast mass classification in digital mammography based on feature fusion | |
Malibari et al. | Artificial intelligence based prostate cancer classification model using biomedical images | |
Bakkouri et al. | Recognition of Alzheimer's disease on sMRI based on 3D multi-scale CNN features and a gated recurrent fusion unit | |
Razzaq et al. | Brain tumor detection from mri images using bag of features and deep neural network | |
Shan et al. | DSCA-Net: A depthwise separable convolutional neural network with attention mechanism for medical image segmentation | |
Hou et al. | Mass segmentation for whole mammograms via attentive multi-task learning framework | |
Abed | Lung Cancer Detection from X-ray images by combined Backpropagation Neural Network and PCA | |
CN112562031B (en) | Nuclear magnetic resonance image clustering method based on sample distance reconstruction | |
Ameen et al. | Explainable residual network for tuberculosis classification in the IoT era | |
Wang et al. | Multi-view fusion segmentation for brain glioma on CT images | |
Zhou et al. | Coco-attention for tumor segmentation in weakly paired multimodal MRI Images | |
CN118037791A (en) | Construction method and application of multi-mode three-dimensional medical image segmentation registration model | |
Kamencay et al. | 3D image reconstruction from 2D CT slices | |
Yin et al. | A generative adversarial network fused with dual‐attention mechanism and its application in multitarget image fine segmentation | |
Huang et al. | Adfa: Attention-augmented differentiable top-k feature adaptation for unsupervised medical anomaly detection | |
Kumar | Detection of lung nodules using convolution neural network: a review |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |