Magnetic resonance-based brain disease category analysis method and system
Through the magnetic resonance-based brain disease category analysis method, image preprocessing and feature fusion technology are used to solve the problem of uncertainty in the analysis results in the existing methods, and more accurate brain disease category analysis is achieved, and detailed brain tissue is provided Features and texture information.
Patent Information
- Application Number
- CN202411008286.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2044-07-25
AI Technical Summary
The existing brain disease category analysis methods rely on clinical symptoms and neuropsychological tests, and there are subjective judgments and environmental interference, resulting in insufficient uncertainty and accuracy of analysis results.
A brain disease category analysis method based on magnetic resonance is adopted to construct disease analysis reports to improve the accuracy of the analysis through image preprocessing, background separation, brain tissue volume and shape analysis, dimensionality reduction feature extraction and texture feature fusion.
Improve the accuracy of brain disease category analysis, enhance the analysis accuracy of image target distinction, can more accurately reflect the growth, atrophy or abnormal conditions of brain tissue, and provide morphological characteristics and texture characteristics information to support more accurate diseases diagnosis.
Smart Images

Figure CN119006374A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of disease category analysis, and in particular to a method and system for analyzing brain disease categories based on magnetic resonance imaging. Background Art
[0002] In today's medical and biomedical fields, the research and diagnosis of brain diseases has always been an important topic. With the continuous development of magnetic resonance imaging technology, it provides an important means for the diagnosis and analysis of brain diseases. In particular, the brain disease classification analysis method based on magnetic resonance imaging has attracted widespread attention because it can provide high-resolution brain structure and function information.
[0003] At present, traditional brain disease classification analysis methods mainly rely on clinical symptoms and neuropsychological tests. Although these methods can analyze brain disease categories to a certain extent, they have obvious limitations. Among them, the subjective judgment of clinical symptoms is easily affected by the doctor's experience and individual differences of patients, resulting in uncertainty in the classification analysis results; neuropsychological tests may be affected by the patient's cooperation and the test environment during the test, affecting the accuracy of the test results. Summary of the invention
[0004] The present invention provides a method and system for analyzing brain disease categories based on magnetic resonance imaging, the main purpose of which is to improve the accuracy of brain disease category analysis.
[0005] To achieve the above object, the present invention provides a method for analyzing brain disease categories based on magnetic resonance imaging, comprising:
[0006] Acquiring a magnetic resonance brain image of a patient, and performing image preprocessing on the magnetic resonance brain image to obtain a preprocessed image;
[0007] Performing background separation on the preprocessed image to obtain a separated image, calculating the brain tissue volume of the brain patient based on the separated image, calculating the brain tissue surface area of the brain patient based on the separated image, and determining the brain tissue shape of the brain patient;
[0008] Identifying brain tissue features of the brain patient based on the brain tissue volume, the brain tissue surface area and the brain tissue shape, performing dimensionality reduction processing on the brain tissue features to obtain dimensionality reduction features, and performing wavelet coefficient decomposition on the dimensionality reduction features to obtain different frequency sub-band coefficients related to the brain tissue features;
[0009] Identifying statistical features of the coefficients of the different frequency sub-bands, constructing feature vectors of the statistical features based on the statistical features, and performing brain disease analysis on the brain patient based on the feature vector to obtain a preliminary disease analysis category;
[0010] The texture features of the preprocessed image are extracted, and the texture features are fused with the feature vector to obtain fused features. The fused features are used to perform accuracy analysis on the preliminary disease analysis category, and when the accuracy analysis result is excellent, a disease category analysis report for the brain patient is constructed.
[0011] Optionally, performing image preprocessing on the magnetic resonance brain image to obtain a preprocessed image includes:
[0012] Performing format conversion on the magnetic resonance brain image to obtain a converted image;
[0013] identifying original pixel values of the converted image;
[0014] Performing mean filtering on the original pixel values to obtain mean pixels;
[0015] Determining a mean image of the converted image based on the mean pixels;
[0016] Perform image sharpening on the mean image to obtain a preprocessed image.
[0017] Optionally, performing background separation on the preprocessed image to obtain a separated image includes:
[0018] identifying an image size of the preprocessed image;
[0019] Based on the image size, constructing an all-zero matrix of the preprocessed image;
[0020] Using the all-zero matrix to construct a background model of the preprocessed image;
[0021] The background model is used to perform background separation on the preprocessed image to obtain a separated image.
[0022] Optionally, using the background model to perform background separation on the preprocessed image to obtain a separated image includes:
[0023] Performing image dilation on the preprocessed image to obtain a dilated image, and performing image erosion on the preprocessed image to obtain a eroded image;
[0024] Performing center processing on the expansion image using the background model to obtain a center processed image;
[0025] Performing edge processing on the eroded image to obtain an edge processed image;
[0026] The center-processed image and the edge-processed image are stitched together to obtain a separated image.
[0027] Optionally, the calculating the brain tissue volume of the brain patient based on the separated image comprises:
[0028] identifying image voxels of the separated image;
[0029] Calculating the voxel volume of the image voxel;
[0030] A brain tissue volume of the brain patient is calculated based on the voxel volume.
[0031] Optionally, the identifying the brain tissue characteristics of the brain patient based on the brain tissue volume, the brain tissue surface area and the brain tissue shape comprises:
[0032] performing data standardization processing on the brain tissue volume, the brain tissue surface area and the brain tissue shape to obtain standardized data;
[0033] Extracting normal brain tissue data corresponding to the brain patient;
[0034] Comparing the standardized data with the normal brain tissue data to obtain a comparison result;
[0035] The brain tissue characteristics of the brain patient are determined based on the comparison results.
[0036] Optionally, performing wavelet coefficient decomposition on the dimension reduction feature to obtain different frequency sub-band coefficients of the brain tissue feature includes:
[0037] A need for analysis of the brain tissue characteristics;
[0038] Based on the analysis requirements, configure the wavelet function and set the number of decomposition layers of the dimensionality reduction feature;
[0039] Based on the wavelet function and the number of decomposition layers, the dimension reduction feature is subjected to wavelet transformation to obtain coefficients of different frequency sub-bands related to the brain tissue feature.
[0040] Optionally, extracting the texture features of the preprocessed image includes: converting the preprocessed image into a grayscale image;
[0041] Calculating the number of gray levels of the grayscale image and calculating the pixel distance of the grayscale image;
[0042] Calculating a texture feature value of the preprocessed image based on the number of gray levels and the pixel distance;
[0043] The texture feature of the preprocessed image is determined based on the texture feature value.
[0044] Optionally, the fusing the texture feature with the feature vector to obtain a fused feature includes:
[0045] Converting the texture feature into a texture vector;
[0046] Performing dimension conversion on the texture vector and the feature vector to obtain a dimension conversion vector;
[0047] Encoding the dimension conversion vector to obtain an encoding vector;
[0048] Performing code fusion on the code vectors using a pre-constructed fusion matrix to obtain fusion codes;
[0049] The fusion code is translated to obtain a fusion feature.
[0050] In order to solve the above problems, the present invention also provides a brain disease classification analysis system based on magnetic resonance imaging, the system comprising:
[0051] An image preprocessing module is used to collect a magnetic resonance brain image of a brain patient, and perform image preprocessing on the magnetic resonance brain image to obtain a preprocessed image;
[0052] A brain tissue shape analysis module, used to perform background separation on the preprocessed image to obtain a separated image, calculate the brain tissue volume of the brain patient based on the separated image, calculate the brain tissue surface area of the brain patient based on the separated image, and determine the brain tissue shape of the brain patient;
[0053] a feature decomposition module, for identifying brain tissue features of the brain patient based on the brain tissue volume, the brain tissue surface area and the brain tissue shape, performing dimensionality reduction processing on the brain tissue features to obtain dimensionality reduction features, and performing wavelet coefficient decomposition on the dimensionality reduction features to obtain different frequency sub-band coefficients related to the brain tissue features;
[0054] A preliminary disease category analysis module, used for identifying the statistical characteristics of the coefficients of the different frequency sub-bands, constructing a feature vector of the statistical characteristics based on the statistical characteristics, and performing brain disease analysis on the brain patient based on the feature vector to obtain a preliminary disease analysis category;
[0055] The disease analysis report module is used to extract the texture features of the preprocessed image, fuse the texture features with the feature vector to obtain fused features, use the fused features to perform accuracy analysis on the preliminary disease analysis category, and when the accuracy analysis result is excellent, construct a disease category analysis report for the brain patient.
[0056] The present invention can help users or doctors analyze brain diseases more accurately by collecting magnetic resonance brain images of brain patients; optionally, the present invention can separate the background part in the image by performing background separation on the preprocessed image to obtain a separated image, thereby enhancing the analysis accuracy of distinguishing image targets; the present invention can reflect the growth, atrophy or abnormal increase of brain tissue by calculating the brain tissue volume of the brain patient based on the separated image; the present invention can obtain the morphological characteristics of the brain tissue of the brain patient by identifying the brain tissue characteristics of the brain patient based on the brain tissue volume, the brain tissue surface area and the brain tissue shape, and preliminarily understand whether the brain patient has or has the possibility of brain disease. The present invention can describe the distribution of subband coefficients by identifying the statistical characteristics of the different frequency subband coefficients, and provide valuable information for subsequent feature construction and classification. Finally, the present invention can study and quantify the gray value distribution pattern, spatial relationship, etc. of pixels or voxels in the brain image by extracting the texture features of the preprocessed image, so as to obtain feature information that can describe the internal structure and tissue characteristics of the image. Therefore, the present invention can improve the accuracy of brain disease category analysis. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Figure 1 A schematic diagram of a flow chart of a method for analyzing brain disease categories based on magnetic resonance imaging according to an embodiment of the present invention;
[0058] Figure 2 A functional module diagram of a brain disease classification analysis system based on magnetic resonance imaging provided by one embodiment of the present invention.
[0059] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0060] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0061] The embodiment of the present application provides a method for analyzing brain disease categories based on magnetic resonance. The execution subject of the method for analyzing brain disease categories based on magnetic resonance includes but is not limited to at least one of the electronic devices that can be configured to execute the method provided by the embodiment of the present application, such as a server, a terminal, etc. In other words, the method for analyzing brain disease categories based on magnetic resonance can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc. The server can be an independent server, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms.
[0062] Reference Figure 1 FIG. 1 is a flow chart of a method for analyzing brain disease categories based on magnetic resonance imaging according to an embodiment of the present invention. In this embodiment, the method for analyzing brain disease categories based on magnetic resonance imaging includes:
[0063] S1. Acquire a magnetic resonance image of a patient's brain, and perform image preprocessing on the magnetic resonance image to obtain a preprocessed image.
[0064] The embodiment of the present invention can help users or doctors analyze brain diseases more accurately by collecting magnetic resonance brain images of brain patients. The magnetic resonance brain images refer to brain images obtained by magnetic resonance imaging technology (MRI), which can be collected by magnetic resonance imaging equipment.
[0065] Furthermore, the embodiment of the present invention performs image preprocessing on the magnetic resonance brain image to obtain a preprocessed image, which can enhance image details before analyzing the image, or perform some image operations to reduce the difficulty of a certain step. For example, in this solution, an image background segmentation operation is required, so a mean filtering operation is performed during preprocessing to facilitate the separation of the image background.
[0066] As an embodiment of the present invention, the image preprocessing of the magnetic resonance brain image to obtain the preprocessed image includes: performing format conversion on the magnetic resonance brain image to obtain a converted image, identifying the original pixel values of the converted image, and performing mean filtering on the original pixel values using the following formula to obtain mean pixels:
[0067]
[0068] Where L(x,y) represents the mean pixel, (x,y) represents a pixel point in the converted image, m represents the number of rows in the pixel point (x,y) domain, n represents the number of columns in the pixel point (x,y) domain, and f((x,y)) represents the pixel value of the pixel point (x,y) in the converted image.
[0069] Based on the mean pixel, a mean image of the converted image is determined, and image sharpening is performed on the mean image to obtain a preprocessed image.
[0070] Optionally, the format conversion of the magnetic resonance brain image to obtain the converted image refers to converting the format of one image file into another format in order to meet different image processing requirements, and the conversion can be performed through Adobe Photoshop tools. The original pixel values of the converted image can be obtained through the opencv-python library in Python by writing code, reading the image and accessing the value of each pixel. The image sharpening of the mean image to obtain the preprocessed image refers to enhancing the edge details of the image, which can be operated through the GI MP tool.
[0071] S2. Perform background separation on the preprocessed image to obtain a separated image, calculate the brain tissue volume of the brain patient based on the separated image, calculate the brain tissue surface area of the brain patient based on the separated image, and determine the brain tissue shape of the brain patient.
[0072] The embodiment of the present invention performs background separation on the preprocessed image to obtain a separated image, which can separate the background part in the image, thereby enhancing the analysis accuracy of distinguishing image targets.
[0073] As an embodiment of the present invention, the background separation of the preprocessed image to obtain the separated image includes: identifying the image size of the preprocessed image, constructing an all-zero matrix of the preprocessed image based on the image size, and constructing a background model of the preprocessed image using the all-zero matrix in combination with the following formula:
[0074]
[0075] Wherein, BM represents the background model, ω(A,B) represents the all-zero matrix, A represents the length of the preprocessed image, B represents the width of the preprocessed image, F(i,j) represents the coordinates of the pixel point F in the preprocessed image, i represents the horizontal coordinate of the pixel point F, and j represents the vertical coordinate of the pixel point F;
[0076] The background model is used to perform background separation on the preprocessed image to obtain a separated image.
[0077] Among them, the all-zero matrix is a matrix for initializing a data structure, which can be constructed by combining the image size of the preprocessed image with the Python language set. The background model is a method or representation for distinguishing the background and foreground in an image, which is constructed based on certain conditions and algorithms, such as a mixed Gaussian model.
[0078] Furthermore, in another optional embodiment of the present invention, the background separation of the preprocessed image using the background model to obtain a separated image includes: dilating the preprocessed image to obtain a dilated image, and corroding the preprocessed image to obtain a corroded image, performing center processing on the dilated image using the background model to obtain a center-processed image, and edge processing on the corroded image to obtain an edge-processed image, and stitching the center-processed image and the edge-processed image to obtain a separated image.
[0079] Among them, the image dilation of the preprocessed image to obtain the dilated image refers to increasing the size of the object in the image, which can be achieved through the convolutional neural network operation, the image erosion of the preprocessed image to obtain the eroded image refers to reducing the size of the object in the image, which can be achieved through the convolutional neural network operation, the center processing of the dilated image using the background model to obtain the center processed image refers to a method of highlighting the central part of the image, which can be obtained by sharpening the dilated image using the background model, and the edge processing of the eroded image to obtain the edge processed image refers to highlighting the edge part of the eroded image, which can be achieved through an edge detection algorithm.
[0080] Furthermore, the embodiment of the present invention can reflect the growth, atrophy or abnormal increase of brain tissue by calculating the brain tissue volume of the brain patient based on the separated image. For example, in Alzheimer's disease, the reduction of hippocampal volume may be an important indicator of disease progression.
[0081] As an embodiment of the present invention, calculating the brain tissue volume of the brain patient based on the separated image includes: identifying image voxels of the separated image, calculating the voxel volume of the image voxels, and calculating the brain tissue volume of the brain patient based on the voxel volume.
[0082] The voxel refers to a three-dimensional space, similar to a pixel in a two-dimensional image. A pixel is the smallest unit that constitutes a two-dimensional image, while a voxel is the smallest unit that constitutes a three-dimensional image (such as a magnetic resonance image, a computer tomography image, etc.).
[0083] Optionally, the image voxels for identifying the separation image are calculated by importing the separation image into an image processing tool in matlab software, and the voxel volume for identifying the image voxels can be obtained by reading the parameter settings of magnetic resonance imaging, including pixel spacing (in the x, y and z directions) and layer thickness, and the brain tissue volume of the brain patient calculated based on the voxel volume can be obtained by multiplying the number of voxels by the volume of a single voxel. For example, the brain tissue area of the separation image contains 1000 voxels, the pixel spacing in the x and y directions is 1 mm, and the layer thickness in the z direction is 2 mm, then the volume of a single voxel is 1 mm×1 mm×2 mm=2 mm 3 , the total volume of brain tissue is 1000×2mm 3 =2000mm 3 .
[0084] Furthermore, the embodiments of the present invention calculate the brain tissue surface area of the brain patient based on the separated image and determine the shape of the brain tissue of the brain patient, which can help evaluate the degree of wrinkling and complexity of the brain tissue surface. For example, certain brain developmental abnormalities may cause changes in the surface area of the cerebral cortex, and the shape characteristics of the brain tissue can be quantitatively described by shape. For example, a tumor may cause the shape of the surrounding normal brain tissue to distort, and this change can be more accurately described by shape.
[0085] Optionally, the calculation of the brain tissue surface area of the brain patient based on the separated image can be performed by triangulating the surface of the brain tissue corresponding to the separated image, calculating and summing the areas of the triangles, and obtaining the surface area of the brain tissue. The shape of the brain tissue of the brain patient can be obtained by extracting shape description parameters of the corresponding brain tissue in the separated image, such as eccentricity, circularity, rectangularity, etc., and calculating the values of the shape description parameters.
[0086] S3. Identify brain tissue features of the brain patient based on the brain tissue volume, the brain tissue surface area and the brain tissue shape, perform dimensionality reduction processing on the brain tissue features to obtain reduced-dimensionality features, perform wavelet coefficient decomposition on the reduced-dimensionality features to obtain different frequency sub-band coefficients related to the brain tissue features.
[0087] The embodiment of the present invention can obtain the morphological characteristics of the brain tissue of the brain patient by identifying the brain tissue characteristics of the brain patient based on the brain tissue volume, the brain tissue surface area and the brain tissue shape, and conduct a preliminary understanding of whether the brain patient has, or the possibility of having, brain disease.
[0088] As an embodiment of the present invention, the identifying brain tissue characteristics of the brain patient based on the brain tissue volume, the brain tissue surface area and the brain tissue shape includes: performing data normalization processing on the brain tissue volume, the brain tissue surface area and the brain tissue shape to obtain standardized data, extracting normal brain tissue data corresponding to the brain patient, comparing the standardized data with the normal brain tissue data to obtain a comparison result, and determining the brain tissue characteristics of the brain patient based on the comparison result.
[0089] Among them, the data standardization processing refers to converting the data into the same format for easy analysis together, which can be processed by vector conversion. The brain tissue characteristics of the brain patient determined based on the comparison results are concluded by comparing the size changes of the standardized data and the corresponding data of the normal brain tissue data. If the brain tissue surface area data vector corresponding to the standardized data is smaller than the brain tissue surface area data vector corresponding to the normal brain tissue data, there is a possibility of brain atrophy. In other brain disease analyses, such as in the study of Parkinson's patients, it was found that the volume of the substantia nigra was significantly smaller than that of the normal population. For example, in the analysis of brain tumors, by observing the changes in the surface area and shape index of the tumor and its surrounding tissues, it can help doctors judge the degree of tumor invasion and its impact on surrounding tissues.
[0090] Furthermore, the embodiment of the present invention performs dimensionality reduction processing on the brain tissue features to obtain dimensionality reduction features, which can reduce data dimensions and improve data analysis efficiency. Dimensionality reduction can be performed through principal component analysis.
[0091] Furthermore, the embodiment of the present invention can analyze brain tissue features in different frequency domains by performing wavelet coefficient decomposition on the dimensionality reduction features to obtain different frequency sub-band coefficients about the brain tissue features, so as to improve the accuracy of the analysis. The sub-band coefficient refers to a method of decomposing the original feature data into different frequency components. The sub-band coefficients of different frequencies reflect the characteristic information of the data at different scales or resolutions. For example, the low-frequency sub-band coefficients usually contain the overall trend and general outline of the data, while the high-frequency sub-band coefficients reflect the details, mutations and noise of the data.
[0092] As an embodiment of the present invention, the wavelet coefficient decomposition of the dimensionality reduction feature to obtain different frequency sub-band coefficients related to the brain tissue feature includes: obtaining analysis requirements of the brain tissue feature, configuring a wavelet function based on the analysis requirements, setting the number of decomposition levels of the dimensionality reduction feature, and performing a wavelet transform on the dimensionality reduction feature based on the wavelet function and the number of decomposition levels to obtain different frequency sub-band coefficients related to the brain tissue feature.
[0093] Among them, the analysis requirement refers to the user selecting a more suitable wavelet decomposition function in combination with the image quality. For example, if the image resolution is low or the noise is large, the user is more inclined to select a wavelet function with strong denoising ability and low sensitivity to details. The wavelet function is selected according to the user's needs. The wavelet function includes Daubech i es wavelet, Symlet wavelet, etc. The number of decomposition layers of the dimension reduction feature can be set according to the user's needs. The more the number of decomposition layers, the more complex the decomposition and the longer the decomposition time. The wavelet transform is performed on the dimension reduction feature to obtain the different frequency subband coefficients of the brain tissue feature through the decomposition of the wavelet function. For example, the user selects Daubech i es wavelet as the basis function, and the number of decomposition layers is 3. First, the dimension reduction feature is convolved with the wavelet basis function of the first layer, and then down-sampled to obtain the approximate coefficients and detail coefficients of the first layer; then, the above process is repeated for the approximate coefficients of the first layer to obtain the coefficients of the second layer; and so on, until the coefficients of the third layer are obtained, thereby completing the decomposition process.
[0094] S4. Identify the statistical characteristics of the coefficients of the different frequency sub-bands, construct a feature vector of the statistical characteristics based on the statistical characteristics, and perform brain disease analysis on the brain patient based on the feature vector to obtain a preliminary disease analysis category.
[0095] The embodiment of the present invention can describe the distribution of sub-band coefficients by identifying the statistical features of the sub-band coefficients of different frequencies, thereby providing valuable information for subsequent feature construction and classification.
[0096] As an embodiment of the present invention, the identifying statistical features of the coefficients of the different frequency sub-bands includes:
[0097] The mean values of the coefficients of the different frequency sub-bands are calculated using the following formula:
[0098]
[0099] Among them, α represents the mean, N represents the number of decomposition layers of the subband coefficients, and x i represents the i-th subband coefficient;
[0100] The variance of the coefficients of the different frequency sub-bands is calculated using the following formula:
[0101]
[0102] Among them, β represents the variance, N represents the number of decomposition layers of the subband coefficients, and x i represents the i-th subband coefficient, and α represents the mean of the subband coefficient;
[0103] The skewness of the different frequency sub-band coefficients is calculated using the following formula:
[0104]
[0105] Among them, γ represents the skewness, N represents the number of decomposition levels of the subband coefficients, and x i represents the i-th subband coefficient, α represents the mean of the subband coefficient, and δ represents the standard deviation of the subband coefficient;
[0106] Statistical characteristics of the coefficients of the different frequency subbands are determined based on the mean, the variance, and the skewness.
[0107] Furthermore, the embodiment of the present invention can convert the format of data by constructing a feature vector of the statistical feature based on the statistical feature, which is statistical analysis.
[0108] Optionally, the feature vector of the statistical feature constructed based on the statistical feature can be processed by standardizing the mean, the variance and the skewness respectively through Z-score standardization, and then combining the standardized mean, variance and skewness into a feature vector.
[0109] Furthermore, the embodiment of the present invention performs brain disease analysis on the brain patient based on the feature vector, and obtaining a preliminary disease analysis category can provide doctors with an objective reference basis, helping them to more accurately analyze the type of disease the patient may have, and can make predictions based on subtle feature changes in the early stages of the disease, which helps to timely discover potential disease risks.
[0110] Optionally, based on the feature vector, a brain disease analysis is performed on the brain patient to obtain a preliminary disease analysis category by inputting the feature vector into a preconfigured deep learning model, then using the preconfigured deep learning model to input an analysis label corresponding to the feature vector, and performing a preliminary disease analysis on the brain patient based on the analysis label.
[0111] S5. Extract texture features of the preprocessed image, perform feature fusion on the texture features and the feature vector to obtain fused features, use the fused features to perform accuracy analysis on the preliminary disease analysis category, and when the accuracy analysis result is excellent, construct a disease category analysis report for the brain patient.
[0112] The embodiment of the present invention can study and quantify the grayscale value distribution pattern, spatial relationship, etc. of pixels or voxels in the brain image by extracting the texture features of the preprocessed image, so as to obtain feature information that can describe the internal structure and tissue characteristics of the image.
[0113] As an embodiment of the present invention, the extracting of texture features of the preprocessed image includes: converting the preprocessed image into a grayscale image, calculating the number of grayscale levels of the grayscale image, and calculating the pixel distance of the grayscale image, calculating the texture feature value of the preprocessed image based on the grayscale level number and the pixel distance, and determining the texture features of the preprocessed image based on the texture feature value.
[0114] Optionally, the conversion of the preprocessed image to a grayscale image refers to converting a color image or an image with multiple color channels into an image with only grayscale levels, which can be converted through a script constructed by Java. The number of grayscale levels of the grayscale image refers to the number of different grayscale values in the grayscale image, which can be calculated through a grayscale co-occurrence matrix. The calculation of the pixel distance of the grayscale image refers to calculating the distance between pixels, which can be calculated through a grayscale co-occurrence matrix. The calculation of the texture feature value of the preprocessed image based on the number of grayscale levels and the pixel distance refers to calculating the contrast, correlation and entropy of the preprocessed image based on the number of grayscale levels and the pixel distance, wherein the contrast represents the degree of difference in grayscale levels in the image, the correlation is used to measure the linear relationship between grayscale levels in the image, and the entropy reflects the complexity and randomness of the image. By calculating these features, the texture, clarity, complexity and other aspects of the image can be described and analyzed.
[0115] Furthermore, the embodiment of the present invention can merge or combine multiple features from different feature extraction methods or algorithms by fusing the texture features with the feature vectors to obtain fused features, so as to obtain a more comprehensive and accurate image representation.
[0116] As an embodiment of the present invention, the texture feature is fused with the feature vector to obtain a fused feature, including: converting the texture feature into a texture vector, performing dimension conversion on the texture vector and the feature vector to obtain a dimension conversion vector, encoding the dimension conversion vector to obtain a coding vector, encoding and fusing the coding vector using a pre-constructed fusion matrix to obtain a fused code, and encoding and translating the fused code to obtain a fused feature.
[0117] Optionally, the dimensionality conversion of the texture vector and the feature vector to obtain the dimensionality conversion vector can be achieved through the fully connected layer operation in the Transformer model, the encoding of the dimensionality conversion vector to obtain the encoded vector can be achieved through the image feature encoder, the encoding of the dimensionality conversion vector to obtain the encoded vector means replacing the vector with special characters or symbols, which can be achieved through binary encoding, and the encoding and fusion of the encoded vector using a pre-constructed fusion matrix to obtain the fused code can be fused through the multi-head attention layers in the Transformer model.
[0118] Furthermore, the embodiment of the present invention can further improve the accuracy of disease analysis by performing accuracy analysis on the preliminary disease analysis category using the fusion feature.
[0119] Optionally, the accuracy analysis of the preliminary disease analysis category using the fusion feature is obtained by secondary classification using a support vector machine.
[0120] It should be noted that when the accuracy analysis result is excellent, constructing the disease category analysis report of the brain patient means that the accuracy reaches the preset threshold value of 95%. If it is less than 95%, expert knowledge and clinical data are introduced for comprehensive analysis to determine the final brain disease category, and then constructing the disease analysis report of the brain patient based on the final analysis structure.
[0121] The present invention can help users or doctors analyze brain diseases more accurately by collecting magnetic resonance brain images of brain patients; optionally, the present invention can separate the background part in the image by performing background separation on the preprocessed image to obtain a separated image, thereby enhancing the analysis accuracy of distinguishing image targets; the present invention can reflect the growth, atrophy or abnormal increase of brain tissue by calculating the brain tissue volume of the brain patient based on the separated image; the present invention can obtain the morphological characteristics of the brain tissue of the brain patient by identifying the brain tissue characteristics of the brain patient based on the brain tissue volume, the brain tissue surface area and the brain tissue shape, and preliminarily understand whether the brain patient has or has the possibility of brain disease. The present invention can describe the distribution of subband coefficients by identifying the statistical characteristics of the different frequency subband coefficients, and provide valuable information for subsequent feature construction and classification. Finally, the present invention can study and quantify the gray value distribution pattern, spatial relationship, etc. of pixels or voxels in the brain image by extracting the texture features of the preprocessed image, so as to obtain feature information that can describe the internal structure and tissue characteristics of the image. Therefore, the present invention can improve the accuracy of brain disease category analysis.
[0122] like Figure 2 , which is a functional module diagram of a brain disease classification analysis system based on magnetic resonance imaging provided by one embodiment of the present invention.
[0123] The brain disease category analysis system 200 based on magnetic resonance of the present invention can be installed in an electronic device. According to the functions to be implemented, the brain disease category analysis system 200 based on magnetic resonance can include an image preprocessing module 201, a brain tissue shape analysis module 202, a feature decomposition module 203, a disease category preliminary analysis module 204 and a disease analysis report module 205. The module described in the present invention can also be called a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.
[0124] In this embodiment, the functions of each module / unit are as follows:
[0125] The image preprocessing module 201 is used to collect the magnetic resonance brain image of the brain patient, and perform image preprocessing on the magnetic resonance brain image to obtain a preprocessed image;
[0126] The brain tissue shape analysis module 202 is used to perform background separation on the preprocessed image to obtain a separated image, calculate the brain tissue volume of the brain patient based on the separated image, calculate the brain tissue surface area of the brain patient based on the separated image, and determine the brain tissue shape of the brain patient;
[0127] The feature decomposition module 203 is used to identify the brain tissue features of the brain patient based on the brain tissue volume, the brain tissue surface area and the brain tissue shape, perform dimensionality reduction processing on the brain tissue features to obtain reduced dimensionality features, and perform wavelet coefficient decomposition on the reduced dimensionality features to obtain different frequency sub-band coefficients related to the brain tissue features;
[0128] The disease category preliminary analysis module 204 is used to identify the statistical characteristics of the coefficients of the different frequency sub-bands, construct a feature vector of the statistical characteristics based on the statistical characteristics, and perform brain disease analysis on the brain patient based on the feature vector to obtain a preliminary disease analysis category;
[0129] The disease analysis report module 205 is used to extract texture features of the preprocessed image, perform feature fusion on the texture features and the feature vector to obtain fusion features, use the fusion features to perform accuracy analysis on the preliminary disease analysis category, and when the accuracy analysis result is excellent, construct a disease category analysis report for the brain patient.
[0130] In detail, each module described in the magnetic resonance-based brain disease classification analysis system 200 described in the embodiment of the present invention adopts the same technical means as the magnetic resonance-based brain disease classification analysis method described in the accompanying drawings when used, and can produce the same technical effects, which will not be repeated here.
[0131] In the several embodiments provided by the present invention, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0132] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or systems stated in a system claim can also be implemented by one unit or system through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.
[0133] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A method for analyzing brain disease categories based on magnetic resonance imaging, characterized in that: The method comprises: Acquiring a magnetic resonance imaging (MRI) image of a patient's brain, and performing image preprocessing on the MRI image to obtain a preprocessed image; performing background separation on the preprocessed image to obtain a separated image, calculating the brain tissue volume of the brain patient based on the separated image, calculating the brain tissue surface area of the brain patient based on the separated image, and determining the brain tissue shape of the brain patient; identifying brain tissue features of the patient based on the brain tissue volume, the brain tissue surface area, and the brain tissue shape, performing dimensionality reduction processing on the brain tissue features to obtain reduced-dimensionality features, and performing wavelet coefficient decomposition on the reduced-dimensionality features to obtain different frequency sub-band coefficients related to the brain tissue features; Identifying statistical features of the coefficients of the different frequency sub-bands, constructing a feature vector of the statistical features based on the statistical features, and performing a brain disease analysis on the brain patient based on the feature vector to obtain a preliminary disease analysis category; Extracting texture features of the preprocessed image, performing feature fusion on the texture features and the feature vector to obtain fused features, performing accuracy analysis on the preliminary disease analysis category using the fused features, and constructing a disease category analysis report for the brain patient when the accuracy analysis result is excellent.
2. The method for analyzing brain disease categories based on magnetic resonance imaging according to claim 1, wherein: The performing image preprocessing on the magnetic resonance brain image to obtain a preprocessed image includes: performing format conversion on the magnetic resonance brain image to obtain a converted image; identifying original pixel values of the converted image; Performing mean filtering on the original pixel values to obtain mean pixels; determining a mean image of the converted image based on the mean pixels; Perform image sharpening on the mean image to obtain a preprocessed image.
3. The method for analyzing brain disease categories based on magnetic resonance imaging according to claim 1, wherein: The performing background separation on the pre-processed image to obtain a separated image includes: identifying an image size of the pre-processed image; constructing an all-zero matrix of the preprocessed image based on the image size; Utilize the all-zero matrix in combination with the following formula to construct a background model of the preprocessed image; The background model is used to perform background separation on the preprocessed image to obtain a separated image.
4. The method for analyzing brain disease categories based on magnetic resonance imaging according to claim 3, wherein: The method of performing background separation on the pre-processed image by using the background model to obtain a separated image includes: Performing image dilation on the preprocessed image to obtain a dilated image, and performing image erosion on the preprocessed image to obtain an eroded image; performing center processing on the expanded image using the background model to obtain a center-processed image; performing edge processing on the eroded image to obtain an edge-processed image; The center-processed image and the edge-processed image are stitched together to obtain a separated image.
5. The method for analyzing brain disease categories based on magnetic resonance imaging according to claim 1, wherein: The calculating the brain tissue volume of the brain patient based on the separated image includes: identifying image voxels of the separated image; calculating a voxel volume of a voxel of the image; The brain tissue volume of the brain patient is calculated based on the voxel volume.
6. The method for analyzing brain disease categories based on magnetic resonance imaging according to claim 1, wherein: The identifying the brain tissue characteristics of the brain patient based on the brain tissue volume, the brain tissue surface area, and the brain tissue shape includes: performing data normalization processing on the brain tissue volume, the brain tissue surface area, and the brain tissue shape to obtain standardized data; extracting normal brain tissue data corresponding to the brain patient; Comparing the standardized data with the normal brain tissue data to obtain a comparison result; The brain tissue characteristics of the brain patient are determined based on the comparison results.
7. The method for analyzing brain disease categories based on magnetic resonance imaging according to claim 1, wherein: The performing wavelet coefficient decomposition on the dimension reduction feature to obtain different frequency sub-band coefficients of the brain tissue feature includes: The need to obtain analysis of the brain tissue characteristics; Based on the analysis requirements, configure the wavelet function and set the number of decomposition layers of the dimensionality reduction feature; Based on the wavelet function and the number of decomposition layers, wavelet transform is performed on the dimension reduction feature to obtain different frequency sub-band coefficients related to the brain tissue feature.
8. The method for analyzing brain disease categories based on magnetic resonance imaging according to claim 1, wherein: The extracting of texture features of the preprocessed image comprises: Calculating the number of gray levels of the grayscale image and calculating the pixel distance of the grayscale image; Calculating a texture feature value of the preprocessed image based on the number of gray levels and the pixel distance; The texture feature of the preprocessed image is determined based on the texture feature value.
9. The method for analyzing brain disease categories based on magnetic resonance imaging according to claim 1, wherein: The step of fusing the texture feature with the feature vector to obtain a fused feature includes: Converting the texture feature into a texture vector; Performing dimension conversion on the texture vector and the feature vector to obtain a dimension conversion vector; Encoding the dimension conversion vector to obtain an encoding vector; Performing code fusion on the code vectors using a pre-constructed fusion matrix to obtain a fusion code; The fusion code is translated to obtain a fusion feature.
10. A brain disease classification analysis system based on magnetic resonance imaging, characterized in that: A system for performing a brain disease classification analysis method based on magnetic resonance imaging according to any one of claims 1 to 9, the system comprising: An image preprocessing module is used to collect magnetic resonance brain images of a patient's brain, and perform image preprocessing on the magnetic resonance brain images to obtain preprocessed images; a brain tissue shape analysis module, configured to perform background separation on the preprocessed image to obtain a separated image, calculate the brain tissue volume of the brain patient based on the separated image, calculate the brain tissue surface area of the brain patient based on the separated image, and determine the brain tissue shape of the brain patient; a feature decomposition module, configured to identify brain tissue features of the patient based on the brain tissue volume, the brain tissue surface area, and the brain tissue shape, perform dimensionality reduction processing on the brain tissue features to obtain reduced-dimensionality features, and perform wavelet coefficient decomposition on the reduced-dimensionality features to obtain different frequency sub-band coefficients related to the brain tissue features; a preliminary disease classification analysis module, configured to identify statistical features of the coefficients of the different frequency sub-bands, construct a feature vector of the statistical features based on the statistical features, and perform brain disease analysis on the brain patient based on the feature vector to obtain a preliminary disease analysis category; The disease analysis report module is used to extract texture features of the preprocessed image, fuse the texture features with the feature vector to obtain fused features, use the fused features to perform accuracy analysis on the preliminary disease analysis category, and construct a disease category analysis report for the brain patient when the accuracy analysis result is excellent.
Citation Information
Patent Citations
Corneal endothelial cell analysis meter and analysis method
CN103955941A
Medical image processing system and method for personalized brain disease diagnosis and state determination
CN109561852A
A method for determining a synaptic position point in an immune cell image
CN109685773A
Methods and systems for identifying brain disorders
CN110352034A
Recognition method for epileptic electroencephalogram
CN112450885A
