Orthopedic image three-dimensional reconstruction method based on generative adversarial network in DICOM format
Through methods based on generative adversarial networks, the problems of large data volume, slow speed and low accuracy of traditional 3D reconstruction algorithms when processing DICOM format medical imaging data are solved, achieving more accurate and faster 3D reconstruction, adapting to complex scenes and Multi-center data improves the robustness and versatility of the model.
Patent Information
- Application Number
- CN202410711951.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-08-30
AI Technical Summary
Traditional 3D reconstruction algorithms have problems such as large data volume, slow processing speed and low accuracy when processing DICOM format medical imaging data. Especially when processing complex scenes and multi-center data, it is difficult to effectively restore high-quality 3D models.
Using a method based on generative adversarial networks, through a combination of data preprocessing, generative adversarial network model training and three-dimensional reconstruction modules, three-dimensional reconstruction of DICOM format orthopedic images is achieved, including data reading, pre-processing, feature extraction, image supplementation and post-processing. processing to generate more detailed and accurate 3D models.
It improves the accuracy and speed of 3D reconstruction, reduces the demand for data volume, enhances the adaptability to complex scenes and multi-center data, has stronger robustness and versatility, and can generate high-resolution images in a shorter time. Quality 3D model.
Smart Images

Figure CN118570385A
Abstract
Description
Technical Field
[0001] The invention belongs to the field of three-dimensional reconstruction of medical images, and specifically relates to a three-dimensional reconstruction method of orthopedic images based on a generative adversarial network in a DICOM format. Background Art
[0002] At present, medical institutions and medical technology companies in Europe and the United States have widely used medical imaging data in DICOM format for three-dimensional reconstruction. After obtaining image data through various imaging technologies (such as CT, MRI, PET, etc.), advanced three-dimensional reconstruction algorithms are used for processing, which can more accurately restore the patient's true structure. For example, Materialise in Europe has produced 3D printing software based on the DICOM format and successfully applied it to medicine, engineering, art and other fields. In my country, with the continuous development of medical technology and computer technology, more and more medical institutions and technology companies have begun to use medical imaging data in DICOM format for three-dimensional reconstruction. Three-dimensional reconstruction technology has been widely used in dentistry, orthopedics, neurology and other fields, and has also received strong support from the government. For example, in 2019, the "Notice on Issuing the Action Plan for Promoting the Development of "Internet + Medical Health" (2019-2022)" was officially released, proposing to focus on promoting the application of three-dimensional imaging and biomanufacturing technology in the field of medical health. In general, the use of DICOM picture sets to achieve three-dimensional reconstruction has become an indispensable part of the medical field, and its application scope has been continuously expanded, and it has been widely used and developed both at home and abroad.
[0003] Technical defects in existing technologies and their causes:
[0004] The defects of traditional 3D reconstruction algorithms in reading DICOM format image sets can be summarized as follows:
[0005] 1. Large data volume: Medical imaging data in DICOM format is known for its high resolution and accuracy, but this also leads to a large amount of data. Traditional 3D reconstruction algorithms need to process a large amount of data, so they require higher computing power and storage resources.
[0006] 2. Slow processing speed: Traditional 3D reconstruction algorithms need to process each image and stitch them into a 3D model. Since DICOM datasets usually contain a large number of slice images, the whole process is very time-consuming, and traditional algorithms take hours or even days to complete the whole process.
[0007] 3. Low precision: Traditional 3D reconstruction algorithms are prone to errors when processing DICOM data, because medical image data may have increased image noise, reduced image quality, and large differences in the number of images due to different device parameter settings such as layer thickness, radiation dose, and scanning speed, all of which will affect the accuracy of the 3D model. Summary of the invention
[0008] The purpose of the present invention is to provide a three-dimensional reconstruction method of orthopedic images based on a generative adversarial network in DICOM format to overcome the above-mentioned defects.
[0009] The technical solution adopted by the present invention to achieve the above-mentioned purpose is:
[0010] A three-dimensional reconstruction method of orthopedic images based on a generative adversarial network in DICOM format includes the following steps:
[0011] 1) Collect time series orthopedic image data and preprocess them;
[0012] 2) Build and train a generative adversarial network model, and use the trained model to replace or supplement the preprocessed image data to obtain a two-dimensional image sequence;
[0013] 3) Convert the two-dimensional image sequence into three-dimensional volume data;
[0014] 4) Post-process the three-dimensional volume data to complete the three-dimensional reconstruction of orthopedic images.
[0015] The step 1) comprises the following steps:
[0016] 1.1) Use Python's pydicom library to read and decode Dicom format files to obtain image data;
[0017] 1.2) Set the window width and window level according to the information in the Dicom file;
[0018] 1.3) Normalize the image data to obtain an image sequence.
[0019] The step 2) comprises the following steps:
[0020] 2.1) Bridge a CNN module in the generator to extract image features;
[0021] 2.2) Divide the image sequence into multiple time periods so that each time period contains a certain number of continuous images;
[0022] 2.3) Alternately train the generator and the discriminator, and use the trained generator to generate images for the target time period;
[0023] 2.4) Insert the generated images into the original sequence in chronological order, replacing or supplementing the images in the corresponding time period;
[0024] 2.5) Filter and post-process the generated frames to obtain a two-dimensional image sequence.
[0025] The step 3) comprises the following steps:
[0026] 3.1) Determine the key images and number of images through qualitative visual inspection and evaluation indicators;
[0027] 3.2) Convert the processed two-dimensional image sequence into three-dimensional volume data, and restore the three-dimensional shape using a volume data reconstruction method;
[0028] 3.3) Use interpolation technology to fill the volume data so that the volume data has a continuous pixel value distribution in all directions;
[0029] 3.4) Set the coordinate axis ranges in three directions to smooth and fine-tune the reconstructed 3D data.
[0030] The step 3.2) is specifically as follows:
[0031] Import the measure module in the skimage library and the ndimage.interpolation module in the scipy library in advance, and define a function named plot_3d to extract the isosurface by setting the threshold.
[0032] The step 3.3) is specifically as follows:
[0033] First, the original input data is flipped along three directions, and then the measure.marching_cubes function is called to use the marching cubes algorithm to extract the vertices and triangular faces of the isosurface, and then it is passed to the Poly3DCollection constructor in the mpl_toolkits.mplot3d.art3d module to convert it into a 3D mesh object and add it to the subplot of matplotlib's 3D drawing.
[0034] A 3D reconstruction system for orthopedic images based on generative adversarial networks in DICOM format, including:
[0035] A data preprocessing module is used to collect and preprocess time series orthopedic image data;
[0036] The network model design module is used to build and train a generative adversarial network model, and use the trained model to replace or supplement the preprocessed image data to obtain a two-dimensional image sequence;
[0037] A 3D reconstruction module, used to convert a 2D image sequence into 3D volume data;
[0038] The post-processing module is used to post-process the three-dimensional volume data and complete the three-dimensional reconstruction of orthopedic images.
[0039] The present invention has the following beneficial effects and advantages:
[0040] 1. More accurate and detailed reconstruction results: It can generate more accurate and detailed reconstruction results. This is because deep learning algorithms can make full use of the rich information and structure in medical images, and through multi-level feature extraction and learning, they can better restore the shape and details of the original object.
[0041] 2. Stronger adaptability to complex scenes: It has strong adaptability when dealing with complex scenes. Traditional algorithms usually rely on manually designed feature extraction methods, which are difficult to effectively deal with complex geometric structures and texture features. However, this algorithm can automatically learn more representative and discriminative feature representations from a large amount of data through an end-to-end learning process, so that it can better handle reconstruction tasks in complex scenes.
[0042] 3. Lower data requirements: Compared with traditional algorithms, deep learning algorithms have lower requirements for input data. Traditional algorithms usually require a large amount of manually annotated data or manually constructed 3D models as training samples, which increases the cost of data collection and annotation. Deep learning algorithms can learn the representation capabilities of the model directly from large-scale unsupervised data through autonomous learning, reducing the dependence on labeled data.
[0043] 4. Faster reconstruction speed: The 3D reconstruction algorithm based on the generative adversarial network has a faster reconstruction speed. By generating a network to extract key features in the reconstructed structure, reducing redundant parameters, and using GPU parallel computing and other technical means to accelerate the model training and inference process, the time required for 3D reconstruction can be greatly shortened. In contrast, traditional algorithms often require more computing resources and time.
[0044] 5. Stronger robustness and versatility: The reconstruction algorithm has better robustness and versatility in different medical image data sets and application scenarios. Through large-scale data training, more generalized feature representations are extracted, which can adapt to different types of medical image data and complex clinical scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1This is a diagram of the implementation steps of this method;
[0046] Figure 2 Design a flow chart for the S2 step network model. DETAILED DESCRIPTION
[0047] The present invention is further described in detail below in conjunction with the accompanying drawings and embodiments.
[0048] like Figure 1 A three-dimensional reconstruction method of orthopedic images based on a generative adversarial network in the DICOM format shown in the figure comprises the following steps:
[0049] S1. Data preprocessing: Collect time series image data and ensure that the data is arranged in chronological order. Perform data cleaning, standardization, data enhancement and other operations on the Dicom image set to obtain data samples suitable for deep learning algorithms.
[0050] S2. Network model design: Use structures such as convolutional layers, deconvolutional layers, and fully connected layers to design the network architecture of the generator and discriminator, select appropriate loss functions to optimize model performance, adjust hyperparameters such as network structure, learning rate, and optimizer to ensure the stability and generation quality of the model.
[0051] S3. Three-dimensional reconstruction: By converting the two-dimensional image sequence into three-dimensional volume data, the three-dimensional shape is restored by using the volume data reconstruction method, and the interpolation technology and other methods are used to smooth and fine-tune the volume data.
[0052] S4. Post-processing: Segmentation, registration, error correction and other processing are performed on the reconstructed 3D data to make the model more accurate, stable and reliable.
[0053] The step S1 comprises the following steps:
[0054] Step 1: Import the corresponding package
[0055] Use Python's pydicom library to read and decode Dicom format files. At the same time, you can also use libraries such as numpy and matplotlib to convert raw data into image data that can be used for analysis.
[0056] Step 2: Set the window width and window level of the CT image
[0057] Before 3D reconstruction, you need to set the window width and window level according to the information in the DICOM file. The window width and window level are parameters that control the image display range. They can be used to highlight or hide specific areas in the image, improve the image contrast and brightness, and make different tissue structures clearer. Here you need to set it according to the specific application scenario and requirements.
[0058] Step 3: Normalization
[0059] The image intensity is normalized to eliminate the impact of different devices or scanning parameters so that the pixel value of the image is within a certain range (such as 0-1).
[0060] like Figure 2 As shown, step S2 includes the following steps:
[0061] Step 1: Design the network structure
[0062] Design the network architecture of the generator and the discriminator. The goal of the generator is to generate images of a specific time period, while the task of the discriminator is to distinguish between the generated images and the real sequence images.
[0063] Step 2: Conditional GAN
[0064] The CNN module is bridged in the generator structure to extract image features. The intrinsic characteristics and noise distribution of the image are learned through training, and useful information is extracted to generate new high-quality images with specific data distribution.
[0065] Step 3: Sequence Segmentation
[0066] Split the image sequence into multiple time periods. Each time period contains a certain number of consecutive images.
[0067] Step 4: Alternate training of the generator and the discriminator
[0068] Randomly extract a batch of sequence images from the real data set, use the generator to generate a batch of images, mix the real images and the generated images into the discriminator, and perform back propagation to update the discriminator weights. Use the generator to generate a batch of images and input them into the discriminator. The goal of the generator is to make the discriminator identify the generated images as real images, and perform back propagation to update the generator weights. Repeat the above training process for each time period until the model converges.
[0069] Step 5: Generate images for a specific time period
[0070] Use the trained generator to generate images of the target time period. If needed, the input of the generator (such as time encoding) can be adjusted to control the generated image to correspond to a specific time point. Add a loss function for temporal consistency to ensure that the generated sequence images are temporally consistent and reduce flickering and discontinuity.
[0071] Step 6: Image Insertion
[0072] The generated images are inserted into the original sequence in chronological order, replacing or supplementing the images in the corresponding time period.
[0073] Step 7: Screening and Post-processing
[0074] After generating the sequence of images, the generated frames are filtered and post-processed, such as using a post-filter to remove noise or using optical flow techniques to ensure smooth transitions between frames.
[0075] The step S3 comprises the following steps:
[0076] Step 1: Position the reconstructed image
[0077] The key images and number of images for the best reconstruction effect are determined through qualitative visual inspection and evaluation indicators such as mean square error (MSE), structural similarity index (SSIM), peak signal-to-noise ratio (PSNR), etc.
[0078] Mean square error (MSE): The mean square error is an indicator to measure the difference between the reconstructed image and the original image. The calculation formula is:
[0079]
[0080] Where M×N is the size of the image, I(i,j) is the pixel value of the original image, and K(i,j) is the pixel value of the reconstructed image. The smaller the MSE value, the smaller the difference between the reconstructed image and the original image, and the better the reconstruction quality.
[0081] Peak signal-to-noise ratio (PSNR): Peak signal-to-noise ratio is a quality evaluation indicator based on MSE. It expresses the quality of the image in decibels (dB). The calculation formula is:
[0082]
[0083] Where MAX is the maximum possible pixel value in the image. For an 8-bit image, MAX is usually 255. The larger the PSNR value, the better the quality of the reconstructed image. Usually, when the PSNR value is above 30dB, the human eye considers the image quality to be acceptable.
[0084] The algorithm is combined with factors such as the overlap between calculated images, the amount of information, and evaluation indicators to select the best key image and number of images as reconstruction data.
[0085] Step 2: Volume Data Reconstruction
[0086] Convert the processed two-dimensional image sequence into three-dimensional volume data, and then use the volume data reconstruction method to restore the three-dimensional shape. Import the measure module in the skimage library and the ndimage.interpolation module in the scipy library in advance, and define a function called plot_3d. This function accepts a three-dimensional normalized volume data image as input and extracts isosurfaces by setting a threshold. The two-dimensional image sequence can be reconstructed by spiral scanning and other methods to generate a three-dimensional data set.
[0087] Step 3: Application of interpolation techniques
[0088] When reconstructing volume data, discontinuous pixel values or pixel holes may occur. At this time, interpolation technology is needed to fill the data so that the volume data has a continuous pixel value distribution in all directions. Commonly used interpolation methods include nearest neighbor interpolation, linear interpolation, cubic spline interpolation, etc. First, flip the original input data along three directions, then call the measure.marching_cubes function, use the marching cubes algorithm to extract the vertices and triangular faces of the isosurface, and then pass it to the Poly3DCollection constructor in the mpl_toolkits.mplot3d.art3d module, convert it into a 3D mesh object, and add it to the subplot for 3D drawing in matplotlib.
[0089] Step 4: Smoothing and fine-tuning
[0090] After interpolation, there may still be noise and defects, which will affect the accuracy and reliability of 3D reconstruction. Set the coordinate axis ranges in three directions to ensure the correct display of isosurfaces. Smooth and fine-tune the reconstructed 3D data to obtain more accurate 3D morphological information.
[0091] The step S4 comprises the following steps:
[0092] The implementation steps may vary depending on the specific algorithms and technologies used. The following is a more general implementation step:
[0093] Step 1: Use a smoothing algorithm to reduce noise and uneven areas on the model surface, improving the appearance and quality of the model.
[0094] Step 2: Refine the model and add details to more accurately reflect the structural characteristics of the bones.
[0095] Step 3: Holes or missing parts may occur during the reconstruction process, and these areas need to be filled by algorithms to ensure the integrity of the model.
[0096] Step 4: Enhance the clarity of the edges of the skeleton model to improve the recognizability of the model in visualization.
[0097] Step 5: Morphological processing can be used to perform further morphological operations on the three-dimensional data as needed, such as binarization, dilation, erosion, etc., as well as other post-processing algorithms and techniques.
[0098] The present invention has the following characteristics:
[0099] Large data volume and high dimension: Dicom files usually contain a large amount of medical imaging data, which is often high-dimensional and high-density, bringing huge challenges to processing and analysis. Therefore, deep learning 3D reconstruction requires appropriate data dimensionality reduction and compression methods to make the data easier for the model to process and understand.
[0100] Multi-center: When patients receive CT scans at different medical centers, the image data obtained is often incompatible because each center may use CT equipment from different manufacturers, as well as their own unique scanning parameters and image formats. This incompatibility is reflected in differences in image quality, resolution, and contrast. In addition, since patients may take different body positions in different centers and scanning conditions vary, accurately aligning these images to the same coordinate system becomes a major challenge in the 3D reconstruction process. CT scans may also be affected by factors such as equipment performance or patient movement, resulting in noise or artifacts in the image, all of which have a negative impact on the accuracy of 3D reconstruction. Deep learning 3D reconstruction requires the extraction of key features through a generative adversarial network, reducing the additional parameters of the image to be reconstructed, and processing the consistency of the main parameters.
[0101] Long processing time: Traditional 3D reconstruction technology requires multiple calculations and a large number of iterations of data, and the amount of calculation is large and takes a long time to complete. In contrast, 3D reconstruction based on deep learning reasonably controls the number of images and additional information after verification, and uses hardware accelerators such as GPU to assist in calculations, which greatly shortens the processing time.
[0102] The adversarial generative network can capture the intrinsic distribution of the data and generate new images containing key features, improving the generalization ability of the model in the face of different scanning parameters and equipment differences. It can generate new images that are spatially aligned with the original images, effectively reducing alignment problems caused by different scanning conditions and reducing or even eliminating image noise and artifacts. At the same time, these generated images have high resolution and contrast, significantly improving the accuracy of 3D reconstruction. This is particularly beneficial for highlighting important anatomical structures in 3D reconstruction. In addition, the generated images can be directly used to train 3D reconstruction models without the need for additional data collection and processing, saving a lot of time and resources. Unifying the parameters of CT images from different centers through adversarial generative networks helps to standardize data and enables 3D reconstruction models to be trained and applied under unified standards. The generated diverse data further enhances the robustness of the model, enabling it to better cope with complex and changing situations in actual clinical applications.
[0103] The key points of the present invention are:
[0104] New deep learning algorithm: This paper uses a deep learning algorithm to achieve high-quality 3D reconstruction when processing medical images in DICOM format. The algorithm combines a specific network structure and training strategy to effectively extract image features and generate accurate 3D models.
[0105] Direct support for DICOM format: Compared with the prior art, the present invention directly supports medical images in DICOM format, and does not need to be converted into other formats for processing. Such direct support not only saves time and resources, but also ensures the integrity and accuracy of medical images.
[0106] Accuracy and precision of 3D reconstruction: The deep learning algorithm used in this invention has higher accuracy and precision in 3D reconstruction. By making full use of the information and structure in medical images, the algorithm can output more realistic and detailed 3D models, providing more accurate diagnosis and surgical planning support.
[0107] Real-time and efficiency: Generative adversarial algorithms have high real-time and efficiency in the 3D reconstruction process. It can process a large amount of medical image data in a short time and output the corresponding 3D model, thereby improving the efficiency and accuracy of medical work.
[0108] In summary, compared with the traditional 3D reconstruction algorithm, the reconstruction algorithm of the present invention has obvious advantages in reconstruction result quality, adaptability, data requirements, reconstruction speed, robustness and versatility. These advantages are mainly achieved through end-to-end learning of deep learning algorithms, feature extraction and representation learning, parallel computing and other technical means.
Claims
1. A three-dimensional reconstruction method of orthopedic images based on generative adversarial networks in DICOM format, characterized by: The following steps are involved: 1) Collect time series orthopedic image data and preprocess them; 2) Build and train a generative adversarial network model, and use the trained model to replace or supplement the preprocessed image data to obtain a two-dimensional image sequence; 3) Convert the two-dimensional image sequence into three-dimensional volume data; 4) Post-process the three-dimensional volume data to complete the three-dimensional reconstruction of orthopedic images.
2. A method for three-dimensional reconstruction of orthopedic images based on a generative adversarial network in the DICOM format according to claim 1, characterized in that: The step 1) comprises the following steps: 1.1) Use Python's pydicom library to read and decode Dicom format files to obtain image data; 1.2) Set the window width and window level according to the information in the Dicom file; 1.3) Normalize the image data to obtain an image sequence.
3. A method for three-dimensional reconstruction of orthopedic images based on a generative adversarial network in the DICOM format according to claim 1, characterized in that: The step 2) comprises the following steps: 2.1) Bridge a CNN module in the generator to extract image features; 2.2) Divide the image sequence into multiple time periods so that each time period contains a certain number of continuous images; 2.3) Alternately train the generator and the discriminator, and use the trained generator to generate images for the target time period; 2.4) Insert the generated images into the original sequence in chronological order, replacing or supplementing the images in the corresponding time period; 2.5) Filter and post-process the generated frames to obtain a two-dimensional image sequence.
4. A method for three-dimensional reconstruction of orthopedic images based on a generative adversarial network in DICOM format according to claim 1, characterized in that: The step 3) comprises the following steps: 3.1) Determine the key images and number of images through qualitative visual inspection and evaluation indicators; 3.2) Convert the processed two-dimensional image sequence into three-dimensional volume data, and restore the three-dimensional shape using a volume data reconstruction method; 3.3) Use interpolation technology to fill the volume data so that the volume data has a continuous pixel value distribution in all directions; 3.4) Set the coordinate axis ranges in three directions to smooth and fine-tune the reconstructed 3D data.
5. A method for three-dimensional reconstruction of orthopedic images based on a generative adversarial network in DICOM format according to claim 4, characterized in that: The step 3.2) is specifically as follows: Import the measure module in the skimage library and the ndimage.interpolation module in the scipy library in advance, and define a function named plot_3d to extract the isosurface by setting the threshold.
6. A method for three-dimensional reconstruction of orthopedic images based on a generative adversarial network in the DICOM format according to claim 4, characterized in that: The step 3.3) is specifically as follows: First, the original input data is flipped along three directions, and then the measure.marching_cubes function is called to use the marching cubes algorithm to extract the vertices and triangular faces of the isosurface, and then it is passed to the Poly3DCollection constructor in the mpl_toolkits.mplot3d.art3d module to convert it into a 3D mesh object and add it to the subplot of matplotlib's 3D drawing.
7. A 3D reconstruction system for orthopedic images based on generative adversarial networks in DICOM format, characterized by: include: A data preprocessing module is used to collect and preprocess time series orthopedic image data; The network model design module is used to build and train a generative adversarial network model, and use the trained model to replace or supplement the preprocessed image data to obtain a two-dimensional image sequence; A 3D reconstruction module, used to convert a 2D image sequence into 3D volume data; The post-processing module is used to post-process the three-dimensional volume data and complete the three-dimensional reconstruction of orthopedic images.
