Brain 3D image automatic pose correction method and system based on deep learning
By using deep learning technology to automatically identify and correct pose differences in mouse brain regions, the problem of time-consuming and labor-intensive manual operations has been solved, and efficient image registration has been achieved.
Patent Information
- Application Number
- CN202410934332.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-11-15
AI Technical Summary
When the subject is uncontrolled, such as the brain region of a mouse, the pose difference between the imaging data and the standard brain map leads to a large amount of manual operation for brain region registration, which is time-consuming and the accuracy is difficult to guarantee.
A deep learning-based method for automatic pose correction of brain 3D images is adopted. By acquiring three-axis projection images, identifying the coronal plane and cross-sectional axis of symmetry, calculating the axis deviation angle, and performing axial transformation, the image pose is automatically corrected.
It simplifies the operation process, saves time, improves image registration accuracy, reduces manual adjustments to 3D models, and is applicable to brain region image correction in various model animals.
Smart Images

Figure CN118967528A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer vision software, and specifically to a brain map drawing auxiliary system and method based on machine learning, and in particular to a method and system for automatic posture correction of brain 3D images based on deep learning. Background Art
[0002] Data analysis of brain regions requires registration of brain region data. Generally, if the subject is controlled, under the premise of fixed shooting position and imaging mode, for example, the pose of data captured by magnetic resonance imaging is not much different. If the subject is not controlled, such as when photographing the brain region of a mouse, the brain region atlas data may have pose differences between the imaging data and the standard brain spectrum due to the small size of the object, the shooting direction or arbitrary placement. If the pose difference is not corrected, the data cannot be correctly registered. Therefore, a lot of manual operations are often required to correct the posture of the brain region before brain region registration. Based on this, it is necessary to propose a new posture correction method to reduce manual operations. Summary of the invention
[0003] In order to reduce manual operations and shorten waiting time, it is necessary to combine the latest artificial intelligence technology to develop an automatic posture correction method for brain 3D images based on deep learning, which can automatically correct the deflection and axial transformation of the image to a certain extent, calculate the posture correction steps using projection data, and effectively improve the accuracy of image registration after posture correction.
[0004] The present application provides a method and system for automatic posture correction of brain 3D images based on deep learning.
[0005] In order to achieve the above objectives, this application adopts the following technical solutions:
[0006] A method for automatic posture correction of a brain 3D image based on deep learning comprises the following steps: obtaining a three-axis projection image of an original image and identifying the projection image; identifying and extracting the axis of symmetry of the coronal plane and the cross section; calculating the axis deviation angle of the coronal plane and the cross section; correcting the coronal plane and the cross section; identifying the directions of the coronal plane and the cross section; performing an axial transformation operation to correct the posture of the original data; and outputting the corrected image.
[0007] The automatic posture correction method of brain 3D images of the present application can, on the one hand, simplify the operation and does not require the user to manually adjust the 3D model. It can automatically calculate the axial rotation angle and axial conversion operation, and automatically generate 3D data with the coronal plane facing forward. On the other hand, it can save time and improve the registration accuracy after the posture is corrected. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] Figure 1This is a schematic diagram of the automatic posture correction method and system flow of the brain 3D image of the present application;
[0009] Figure 2 This is a schematic diagram of the training model mobile-net of this application;
[0010] Figure 3 is a schematic diagram of an exemplary brain area axis deviation correction process of the present application;
[0011] Figure 4 is an exemplary coronal plane training data schematic diagram of the present application;
[0012] Figure 5 is an exemplary cross-sectional training data schematic diagram of the present application;
[0013] Figure 6 is a schematic diagram of an exemplary interface for manually selecting the surface to which a feature position belongs and the feature direction;
[0014] Figure 7 is another exemplary schematic diagram of the coronal plane axial rotation correction process of the present application;
[0015] Figure 8 is another exemplary schematic diagram of a cross-sectional axial rotation correction process of the present application;
[0016] Fig. 9 This is a schematic diagram of an exemplary posture correction application case of the present application. DETAILED DESCRIPTION
[0017] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0018] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0019] It should be understood that the words "first", "second" and similar words used in the specification and claims of this application do not indicate any order, quantity or importance, but are only used to distinguish different components. Similarly, words such as "one" or "an" do not indicate a quantity limitation, but indicate the presence of at least one; "plurality" indicates a quantity of two or more. Unless otherwise specified, words such as "front", "rear", "lower" and / or "upper" are only for convenience of description and are not limited to one position or one spatial orientation. Words such as "include" or "comprise" and similar words mean that the elements or objects appearing before "include" or "comprises" include the elements or objects listed after "include" or "comprises" and their equivalents, and do not exclude other elements or objects.
[0020] The following is a detailed description of the method for automatic posture correction of 3D brain images based on deep learning in an exemplary embodiment of the present application in conjunction with the accompanying drawings. In the absence of conflict, the features of the following embodiments and implementations may complement or be combined with each other.
[0021] "Brain science research" is very popular, and "brain maps" can be regarded as the foundation of brain science research. Whether it is brain-computer interface, brain diseases, brain development and aging, etc., brain science research is closely related to "brain maps". Scientists from the Allen Institute for Brain Science have drawn two relatively complete human brain gene maps to date, providing important data support for neuroscience research. Scientists' research shows that the data provided by the latest "released" human brain gene map will be widely used in the study of diseases related to neurological disorders and cognitive functions such as Parkinson's disease, schizophrenia, multiple sclerosis and even obesity, as well as exploring how a healthy brain works.
[0022] Scientists compiled the data into a database called the Allen Human Brain Atlas, which not only clearly identifies where each gene in the human gene map is expressed in the brain, but also includes data from brain magnetic resonance imaging (MRI) and magnetic resonance diffusion tensor imaging (DTI), which is freely accessible to the public. These data show that human brains are 94% similar, and at least 82% of human genes are expressed in the brain. Like a high-performance, multi-functional global positioning system (GPS), the Allen Human Brain Atlas identifies 1,000 anatomical points in the human brain, indicating the specific gene expression and basic biochemical properties at each point. Scientists hope to use this to explore the human brain, clarify the impact of diseases and injuries (including physical injuries and mental health diseases) on specific brain areas, accurately locate which area of the brain a specific drug should act on, and ultimately better control the treatment results of many therapies.
[0023] In summary, brain region analysis is the cornerstone of brain science research and is essential for understanding the complex workings of the human brain. This analysis includes studying the structure, function, and interconnections of different brain regions. Brain region analysis helps to understand the brain's response to different cognitive processes, the morphological changes of brain region lesions, and the target location of drug action. Brain region analysis is an important step that will drive the field of brain science forward and help bridge the gap between basic brain science research and clinical applications.
[0024] Scientific research is an ongoing process, and mapping the brain genes of model animals can provide important support for human brain research. For example, by studying the mouse brain, scientists can gain a deeper understanding of how the human brain works, providing important clues for neuroscience and disease research. After obtaining a three-dimensional whole-brain image of a model animal at the single-cell level or even higher, how to morphologically reconstruct the sample brain data and the labeled neural circuits and map them to the standard common coordinate framework of the model animal brain is an important basis for conducting such research. Allen Brain Standard for Mouse Brain (data source: https: / / www.sciencedirect.com /
[0025] The mouse brain standard atlas (science / article / pii / S0092867420304025) is published by the Allen Institute for Brain Science, which contains 43 neocortical regions, 329 subcortical gray matter structures, 81 fiber bundles, and 8 ventricular structures. Through experiments on the mouse brain, we can infer the functions of the human brain in the same area and the changes in behavioral patterns under damage to different brain regions. Therefore, the analysis of the brain regions of the mouse brain is indispensable in the application field of brain science.
[0026] The specific steps of brain region analysis of rat brain include: brain region registration; brain region segmentation; fine structure analysis and zonal statistics. Among them, brain region registration is a crucial link in brain science research. The brain regions of different samples are mapped to the standard brain map so that they can be compared horizontally under a unified reference system. Accurate brain region registration is an important cornerstone of brain disease research and drug treatment. With the continuous development of imaging technology, the demand for accurate brain region registration is also increasing. Brain region data analysis requires brain region data registration. The Allen human brain standard map is a map with the coronal plane facing forward and the top of the brain facing up. For general human brain CT data, because the shooting position and imaging mode are fixed, the posture of the MRI data is not much different. However, when shooting the brain region of the model animal, especially for mice, due to its small size and the problem of shooting direction or arbitrary placement, there is a posture difference between the imaging data and the standard brain map. If the posture difference is not corrected, the data cannot be correctly registered. Therefore, a lot of manual operations are often required before brain region registration to correct the posture of the brain region, which is called manual correction in the industry. Because of data requirements, the captured images are often three-dimensional. The three-dimensional image refers to a picture that has (or appears to have) height, width and depth, also known as a 3D picture. Its data volume is generally large, up to hundreds of GB or even TB level. The manual correction is generally to import the input into the 3D visualization software for correction. Importing the 3D visualization software takes several hours, which is time-consuming. In addition, the manual rotation accuracy is difficult to guarantee. The rotated data needs to be interpolated for display, which has a high demand for memory and is not smooth in operation.
[0027] In the related technology, brain region data registration can use an open source software framework called BIRDS (Bi-channel image registration and deep-learning segmentation) (https: / / github.com / bleach1by1 / BIRDS_plugin) for mapping and analyzing mouse brain three-dimensional image data. BIRDS software includes image preprocessing, dual-channel registration, automatic annotation, generation of three-dimensional digital maps, high-resolution visualization and scalable quantitative analysis. It first proposed a dual-channel registration algorithm, which extracted a new feature channel based on the three-dimensional geometric features and edge texture features of mouse brain images for auxiliary registration, thereby improving the registration accuracy of whole-brain data between the same modalities. The software framework takes into account the problem that the three-dimensional registration model cannot fit the three-dimensional contour information with large gaps during the imaging process due to the influence of practical factors such as imaging platform and acquisition time. It introduces a semantic segmentation network to directly predict the anatomical region of the incomplete brain image, and can simulate the results of the dual-channel registration algorithm for the establishment of a training library for incomplete data, providing robust and efficient 3D image segmentation and annotation functions for brain science research. However, BIRDS does not provide posture correction. It is necessary to manually rotate the data to a coronal-front posture in the 3D visualization software, and when importing it into the registration software-BIRDS, it is necessary to manually hand-draw multiple symmetry axes and marking lines to correct the impact of brain area axis deviation. The whole process is time-consuming and laborious, and requires the coordinated operation of multiple software. In related technologies, there is also the use of Serial Section Microscrope (serial section microscope) + Brainglobe toolkit to reconstruct large-scale recorded electrode paths. Among them, Brain globe (https: / / brainglobe.info / ) is a python-based brain area registration tool. By registering the scanned brain data to the standard brain atlas, the influence of brain deformation can be corrected, and the coordinates and brain areas can be calibrated according to the atlas. The brains of all recorded animals can also be registered to the standard atlas to integrate the animal data. However, the brain area posture determination of Brain globe requires manual input of the coordinate representation of the brain area in the Allen brain coordinate system, which requires high professional knowledge and is difficult to determine the coordinates. The above posture correction method is a manual correction method combined with the registration software, and both need to be improved.
[0028] In order to solve the above problems, it is necessary to combine artificial intelligence technology and propose a deep learning-based automatic posture correction method for brain 3D images, which can not only be used for automatic posture correction of medical standard mouse brain 3D images, but also can be applied to automatic posture correction of 3D images of other model animals such as zebrafish brain, monkey brain, etc., as well as other scenarios that require automatic posture correction of 3D images.
[0029] The present application provides a method for automatic posture correction of 3D brain images based on deep learning, which uses a deep learning network mobile-net to identify the projection surface type of the three-axis projection, identifies the symmetry axis for the coronal plane and the cross section, performs rotation correction, and then manually selects the top of the brain in the coronal plane and the olfactory bulb position in the cross section to generate brain posture coordinates and perform axial transformation on the brain area image. Specifically, the present application provides a method for automatic posture correction of 3D brain images based on deep learning, including the following steps: obtaining a three-axis projection image of the original image and identifying the projection image; identifying and extracting the symmetry axis of the coronal plane and the cross section; calculating the axial deviation angle of the coronal plane and the cross section; correcting the coronal plane and the cross section; identifying the direction of the coronal plane and the cross section; axial transformation operation, posture correction of the original data; outputting the corrected image.
[0030] The automatic posture correction method of brain 3D images of the present application can greatly improve the registration accuracy after posture correction, and has the following advantages: it can simplify the operation, does not require the user to manually adjust the 3D model, uses deep learning methods to automatically identify the orientation of the projection surface and 3D data, automatically calculates the axial rotation angle and axial conversion operation, and automatically generates 3D data with the coronal plane facing forward; uses the image after x, y, and z three-axis projection to effectively reduce the data space and save posture calculation time; the proposed deep learning algorithm has generalization ability and can be applied to brain image correction of various model animals; when the automatic algorithm recognition accuracy cannot meet the needs, the system provides additional means to assist in correction by manually selecting biomarkers. The following will be explained in detail with examples.
[0031] The method of obtaining the three-axis projection image of the original image and identifying the projection image, including the projection direction, described in the present application includes: constructing a projection surface data set; constructing a recognition model; training the recognition model; and obtaining the recognition result. Among them, the construction of the projection surface data set includes 3D data of the brain regions of model animals such as mouse brain and zebrafish brain, obtaining cross-sectional and projection data in different directions, performing noise reduction on the data, obtaining the original data and outer contour data of the training data, extracting the outer contour data using an edge operator, and rotating, twisting and cropping the data to expand the data set. The training model includes a projection surface recognition model, a coronal plane direction recognition model, and a cross-sectional direction recognition model. Optionally, the training model uses a lightweight model mobile-net.
[0032] The deep learning-based automatic posture correction method for medical standard brain 3D images proposed in this application includes: automatic identification of the type and direction of the three-axis projection surface of the brain body based on a deep learning network; identification of the symmetry axis of the projection surface and correction of the axial deflection, including automatic estimation of the rotation axis and deflection angle using the covariance matrix; and correction of the image posture according to the posture rotation axis and deflection angle of the aforementioned steps to make it meet the requirements of the standard brain map.
[0033] like Figure 1 The figure shows an exemplary method and system flow chart of automatic posture correction of 3D brain images based on deep learning technology of the present application, which can be applied to 3D images of mouse brain.
[0034] like Figure 2The figure shows the schematic diagram of the training model mobile-net used in this application. The MobileNet network has a smaller size, less computation, and higher accuracy, and has great advantages in lightweight neural networks. Generally, the entire network has 28 layers, not counting the average pooling layer and the softmax layer; the convolution with a step size of 2 is more characteristic in the entire network structure, and the convolution also acts as a downsampling function; the 26 layers after the first layer are repeated convolution operations of depth-separable convolution; each convolution layer (including conventional convolution, depth convolution, and point-by-point convolution) is followed by batch normalization and ReLU activation functions; the last fully connected layer does not use an activation function. Among them, the depthwise convolution (DW) is different from the conventional convolution operation. In the depthwise convolution, a convolution kernel has only one dimension, is responsible for one channel, and a channel is convolved by only one convolution kernel; the dimension of each convolution kernel in the conventional convolution is the same as the input dimension, and each channel is convolved separately and then added. For example, for a 5x5x3 (length and width are 5, RGB3 channels) color image, the number of convolution kernels in each layer of depth convolution is the same as the number of channels in the previous layer (channels and convolution kernels correspond one to one), set padding = 1, stride = 1, and a three-channel image generates 3 feature maps after operation. In deep learning, convolutional neural network (CNN) is one of the most commonly used neural network models. The convolution layer in CNN is usually used to extract features from the input data. The common convolution layer is followed by the pooling layer, and the most common pooling operation is Average Pooling. Average Pooling is a dimensionality reduction operation that can reduce the width and height of the data while retaining important feature information. By dividing the input data into non-overlapping blocks and then calculating the average value of each block as the output value, Average Pooling can reduce the amount of data, thereby reducing the number of parameters that need to be processed and improving the computational efficiency of the model. In addition, it can also prevent overfitting and improve the generalization ability of the model. In other words, Average Pooling is a common neural network dimensionality reduction operation used to reduce the dimension of data while retaining important feature information. By calculating the average value of each block in the input data, smaller output data can be generated, improving the computational efficiency and generalization ability of the model. In CNN, Average Pooling is often used after the convolution layer for feature extraction and dimensionality reduction. In practical applications, you can choose a suitable pooling operation method based on specific problems and needs. For example, you can choose Max Pooling for the operation.
[0035] The fully connected layer (FC) is a layer where each node is connected to all nodes in the previous layer, which is used to integrate the features extracted previously. Due to its fully connected characteristics, the fully connected layer generally has the most parameters. In the CNN structure, after multiple convolutional layers and pooling layers, it is connected to one or more fully connected layers. Each neuron in the fully connected layer is fully connected to all neurons in the previous layer. The fully connected layer can integrate the local information with category distinction in the convolutional layer or pooling layer. In order to improve the performance of the CNN network, the excitation function of each neuron in the fully connected layer generally uses the ReLU function. The output value of the last fully connected layer is passed to an output, which can be classified using softmax logistic regression (softmaxregression). This layer can also be called a softmax layer (softmax layer). For a specific classification task, it is very important to choose a suitable loss function. CNN has several commonly used loss functions, each with different characteristics. You can choose according to specific needs, which will not be described here. Usually, the fully connected layer of CNN is the same as the MLP structure, and the training algorithm of CNN also mostly uses the BP algorithm.
[0036] The obtaining of the recognition result refers to using the trained recognition model to classify and recognize the projection surface of the brain body, and obtaining the coronal plane, sagittal plane and cross-section.
[0037] The identification and extraction of the symmetry axis of the coronal plane and the cross section comprises the following steps:
[0038] (1) Binarize the recognized image;
[0039] (2) expansion operation to fill internal gaps and fractured areas;
[0040] (3) Extract foreground coordinates, img is the preprocessed image, x, y are the horizontal and vertical coordinates of img, select the coordinate position with pixel value greater than 0, the coordinate matrix is P
[0041] [xi,yi]=img[xi,yi]>0
[0042]
[0043] (4) Calculate the covariance matrix for the foreground coordinate matrix, and then calculate the eigenvalues and eigenvectors of the covariance matrix
[0044]
[0045] (5) According to the morphological characteristics of the coronal plane and the cross-section, the central axis direction of the coronal plane is the eigenvector corresponding to the maximum eigenvalue, and the central axis direction of the cross-section is the eigenvector corresponding to the minimum eigenvalue;
[0046] (6) Calculate the angles between the central axis and the vertical and horizontal directions, and use the smallest angle as the rotation angle to perform rotation correction on the image.
[0047] The slope of the central axis is represented by vector a, the horizontal or vertical direction vector is b, and the angle is
[0048] The calculation formula is:
[0049]
[0050] like Figure 3 The figure shows the process flow diagram of the correction of the axis deviation rotation of the brain region in the present application. The axis deviation refers to the axial deviation, which is the angle with the vertical or horizontal direction. Based on the above results, the coronal plane and the cross section are corrected.
[0051] The identification of the coronal plane and cross-sectional directions includes the following steps: constructing a data set of different coronal plane and cross-sectional directions; constructing a recognition model; training the recognition model; obtaining the recognition result; and confirming the result. The construction of the data set of different coronal plane and cross-sectional directions includes selecting 3D data of a model animal, obtaining data of different coronal plane and cross-sectional directions, performing noise reduction on the data, distorting and cropping the data, and scaling and expanding the data set. Figure 4 is an exemplary coronal plane training data diagram, as shown in the figure, from left to right, it represents the four directions of the top of the head, right, bottom, and left. In other words, the coronal plane includes the data of the top of the head in the four directions of up, down, left, and right. Figure 5 An exemplary schematic diagram of cross-sectional training data is shown, wherein the cross-section includes data sets of the olfactory bulb in four directions: up, down, left, and right.
[0052] Optionally, the training model adopts mobile-net and retrains using the network weight parameters in the previous steps, which can effectively shorten the training time.
[0053] Optionally, the training recognition model includes training the direction recognition model for the coronal plane and the cross-section respectively to obtain the directions of the two projection planes. Optionally, the result confirmation includes calculating the rotation matrix for orientation correction according to the recognition direction result, and visualizing the schematic diagram of the rotation result. Optionally, as Figure 4 As shown, if the automatic recognition accuracy does not meet the requirements, the system provides additional means to assist in correction by manually selecting biometric markers.
[0054] The pose transformation matrix calculation of the 3D image includes:
[0055] 1) After obtaining the orientation of the original image by identifying the orientation of the coronal plane and the cross section, the rotation matrix R1 for orientation correction is obtained
[0056] 2) According to the symmetry axis identification of the coronal plane and the cross section, the deflection angles of the coronal plane and the cross section are obtained after the axial deflection is corrected, and the rotation matrix R2 for deflection correction is calculated
[0057] 3) Calculate the final required rotation matrix, use the rotation matrix to correct the posture of the original 3D data, and output and save the final result.
[0058] According to the above calculation results, the 3D image posture transformation is performed. Figure 6 is a schematic diagram of an exemplary posture conversion process. Specifically, the projection surface of the original data can be displayed in the display box (C), and the contents of the selection box (A) and the box (B) are automatically filled in according to the recognition results of the above steps. The selection box (A) represents the cross section and the coronal plane from top to bottom, respectively. The content of the selection box (B) represents the position of the olfactory bulb in the cross section and the position of the top of the brain in the coronal plane from top to bottom. If the recognition is wrong, it can be manually modified. . The step of calculating the posture correction is to display the projection after the posture transformation to the second row of the display box (D) (the lower row in the box), and the first row of the display box (D) (the upper row in the box) is the projection surface of the Allen brain standard atlas. When the posture of the second row and the first row is the same, it means that the step is calculated correctly. Then, according to the angle between the calculated central axis and the vertical direction and the horizontal direction, the minimum angle is used as the rotation angle, the posture angle and subsequent correction steps of the image are rotated to correct the input 3D brain data, and the final result of the posture correction is output.
[0059] like Figure 6 It is a schematic diagram of the interface for manually selecting the surface to which the feature position belongs and the feature direction;
[0060] like Figure 7 Schematic diagram of another exemplary coronal plane axial rotation correction process.
[0061] like Figure 8 It is another exemplary schematic diagram of the cross-sectional axial rotation correction process.
[0062] like Fig. 9 This is a schematic diagram of a posture correction application case, where the frame lines in the left figure represent the position difference marks before and after calibration. As shown in the figure, the boundary of the registration before correction exceeds the image itself, and the position positioning is incorrect. The corrected image can achieve better registration. In other words, there is a registration error in the registration result before posture correction, and the registration result cannot completely cover the data itself, while the corrected data has higher registration accuracy.
[0063] Based on this method, the applicant has conducted a large number of experimental verifications, among which Table 1 is a comparison table of Brain Globe registration accuracy before and after correction at different deflection angles.
[0064]
[0065] (A∩B) represents the intersection of the registration results of the same brain region, A and B represent the standard label and the registration results, respectively.
[0066] As shown in Table 1, the registration accuracy of the standard brain (without deflection) in the Brain Globe registration software is 78.11%. When the deflection is 45°, the registration accuracy before correction is
[0067] 73.33%, after correction it is 77.66%, an increase of 4.33%, the accuracy is very close to the registration accuracy of the standard brain (without deflection) (the difference is only 0.45%)
[0068] Table 1
[0069]
[0070] The above is only a preferred embodiment of the present application and does not constitute any form of limitation to the present application. Although the present application has been disclosed as a preferred embodiment as above, it is not intended to limit the present application. Any technician familiar with the profession can make some changes or modify the technical contents disclosed above into equivalent embodiments without departing from the scope of the technical solution of the present application. However, any simple modification, equivalent change and modification made to the above embodiments based on the technical essence of the present application without departing from the content of the technical solution of the present application still falls within the scope of the technical solution of the present application.
Claims
1. A method for automatic posture correction of brain 3D images based on deep learning, characterized in that: The steps include: Obtain the three-axis projection image of the original image and identify the projection image; Identify and extract the symmetry axis of the coronal and cross-sectional planes; Calculate the axis deviation angle in the coronal and cross-sectional planes; Corrected coronal and cross-sectional views; Identify coronal and cross-sectional orientations; Axial transformation operation to correct the posture of the original data; Output the rectified image.
2. The method for automatic posture correction of 3D brain images based on deep learning as claimed in claim 1, characterized in that: The obtaining of the three-axis projection image of the original image and identifying the projection image comprises: Construct projection surface dataset; Build recognition models; Train the model; Get the recognition result.
3. The method for automatic posture correction of 3D brain images based on deep learning as claimed in claim 2, characterized in that: The method for constructing a projection surface data set includes selecting 3D data of the brain body of a model animal, obtaining cross-section and projection data in different directions, performing noise reduction processing on the data, obtaining original data and outer contour data of training data, extracting the outer contour data using an edge operator, and rotating, twisting and cropping the data to expand the data set; the training model uses a lightweight model mobile-net; the recognition result includes using the trained recognition model to classify and recognize the projection surface of the brain body of the model animal, and obtaining the coronal plane, sagittal plane and cross section.
4. The method for automatic posture correction of brain 3D images based on deep learning as claimed in claim 1, characterized in that: The identification and extraction of the symmetry axis of the coronal plane and the cross section includes: Binarize the recognized image; expansion operation to fill internal gaps and fractured areas; Extract foreground coordinates, img is the preprocessed image, x, y are the horizontal and vertical coordinates of img, select the coordinate position where the pixel value is greater than 0, and the coordinate matrix is P [xi,yi]=img[xi,yi]>0 Calculate the covariance matrix for the foreground coordinate matrix, and then calculate the eigenvalues and eigenvectors of the covariance matrix According to the morphological characteristics of the coronal plane and the cross-section, the central axis direction of the coronal plane is the eigenvector corresponding to the maximum eigenvalue, and the central axis direction of the cross-section is the eigenvector corresponding to the minimum eigenvalue.
5. The method for automatic posture correction of 3D brain images based on deep learning as claimed in claim 4, characterized in that: The calculation of the axis deviation angle of the coronal plane and the cross section includes calculating the angle between the central axis and the vertical direction and the horizontal direction, taking the smallest angle as the rotation angle, and performing rotation correction on the coronal plane and the cross section, wherein the angle calculation formula is:
6. The method for automatic posture correction of 3D brain images based on deep learning as claimed in claim 1, characterized in that: Identification of coronal and cross-sectional orientations includes: Construct data sets in different coronal and cross-sectional orientations; Build recognition models; Train the recognition model; Get the recognition result; The results were confirmed.
7. The method for automatic posture correction of 3D brain images based on deep learning as claimed in claim 6, characterized in that: Constructing data sets in different directions of coronal and cross-sectional planes includes selecting 3D data of model animals, obtaining data in different directions of coronal and cross-sectional planes, denoising the data, distorting and cropping the data, and scaling and expanding the data sets; the training model adopts mobile-net and is retrained using the network weight parameters of the aforementioned steps.
8. The method for automatic posture correction of 3D brain images based on deep learning as claimed in claim 6, characterized in that: The training recognition model includes training direction recognition models for the coronal plane and the cross-section respectively.
9. The method for automatic posture correction of 3D brain images based on deep learning as claimed in claim 6, characterized in that: The acquisition of the recognition result includes sending the deflection-corrected coronal plane and cross-section to the corresponding trained direction recognition network respectively to obtain the directions of the two projection planes; the result confirmation includes calculating the rotation matrix of the orientation correction according to the recognition direction result, and visualizing the rotation result schematic diagram.
10. A deep learning-based automatic posture correction system for 3D brain images, characterized in that: During the operation, the deep learning-based automatic posture correction method for brain 3D images as described in any one of claims 1 to 9 is adopted, including image input; projection surface recognition; coronal and cross-sectional deviation correction; coronal and cross-sectional direction recognition; generating coordinate transformation steps and outputting visual output results; and completing result confirmation.
