CN115880440B - Magnetic particle three-dimensional reconstruction imaging method based on generation countermeasure network - Google Patents
Magnetic particle three-dimensional reconstruction imaging method based on generation countermeasure network Download PDFInfo
- Publication number
- CN115880440B CN115880440B CN202310047876.0A CN202310047876A CN115880440B CN 115880440 B CN115880440 B CN 115880440B CN 202310047876 A CN202310047876 A CN 202310047876A CN 115880440 B CN115880440 B CN 115880440B
- Authority
- CN
- China
- Prior art keywords
- image
- dimensional
- mpi
- network
- images
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000003384 imaging method Methods 0.000 title claims abstract description 51
- 239000006249 magnetic particle Substances 0.000 title claims abstract description 37
- 238000009792 diffusion process Methods 0.000 claims abstract description 82
- 238000000034 method Methods 0.000 claims abstract description 58
- 238000012549 training Methods 0.000 claims abstract description 11
- 230000006870 function Effects 0.000 claims description 123
- 230000004913 activation Effects 0.000 claims description 71
- 230000007246 mechanism Effects 0.000 claims description 48
- 239000002245 particle Substances 0.000 claims description 31
- 238000013527 convolutional neural network Methods 0.000 claims description 28
- 230000004927 fusion Effects 0.000 claims description 21
- 239000011159 matrix material Substances 0.000 claims description 18
- 230000008569 process Effects 0.000 claims description 16
- 230000009466 transformation Effects 0.000 claims description 12
- 210000002569 neuron Anatomy 0.000 claims description 11
- 238000012545 processing Methods 0.000 claims description 11
- 238000005457 optimization Methods 0.000 claims description 4
- 238000001914 filtration Methods 0.000 claims 1
- 230000005484 gravity Effects 0.000 claims 1
- 238000005070 sampling Methods 0.000 abstract description 11
- 238000002059 diagnostic imaging Methods 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 4
- 238000012360 testing method Methods 0.000 description 3
- 238000013461 design Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000002651 drug therapy Methods 0.000 description 1
- 230000003902 lesion Effects 0.000 description 1
- 230000005855 radiation Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000035945 sensitivity Effects 0.000 description 1
- 238000003325 tomography Methods 0.000 description 1
Images
Landscapes
- Image Analysis (AREA)
Abstract
本发明属于医学成像技术领域,具体涉及一种基于生成对抗网络的磁粒子三维重建成像方法、系统、装置,旨在解决现有MPI高分辨率图像重建时间长、成像分辨率低的问题。本方法包括:采集待成像重建物体的仿体的多视角的稀疏二维MPI图像,并进行下采样,得到下采样后的稀疏二维MPI图像;将下采样后的稀疏二维MPI图像输入训练好的邻域点平均扩散搜索自注意力生成对抗网络的生成模型中,得到密集二维MPI图像;通过滤波反投影重建算法对各密集二维MPI图像进行重建,最终得到待成像重建物体的三维MPI图像;本发明加快了MPI图像重建速度,提高了成像分辨率,使磁粒子成像设备在医学领域有更大的应用前景。
The invention belongs to the technical field of medical imaging, and specifically relates to a method, system, and device for three-dimensional reconstruction and imaging of magnetic particles based on generative confrontation networks, aiming to solve the problems of long reconstruction time and low imaging resolution of existing MPI high-resolution images. The method comprises: collecting a multi-view sparse two-dimensional MPI image of a phantom of an object to be imaged and reconstructed, and performing down-sampling to obtain a down-sampled sparse two-dimensional MPI image; inputting the down-sampled sparse two-dimensional MPI image into training A good neighborhood point average diffusion search self-attention generative confrontation network generation model, to obtain a dense two-dimensional MPI image; through the filter back projection reconstruction algorithm to reconstruct each dense two-dimensional MPI image, and finally obtain the three-dimensional object to be imaged and reconstructed MPI image; the invention speeds up the MPI image reconstruction speed, improves the imaging resolution, and makes the magnetic particle imaging equipment have greater application prospects in the medical field.
Description
技术领域technical field
本发明属于医学成像技术领域,具体涉及一种基于生成对抗网络的磁粒子三维重建成像方法、系统、装置。The invention belongs to the technical field of medical imaging, and in particular relates to a method, system and device for three-dimensional reconstruction and imaging of magnetic particles based on generative confrontation networks.
背景技术Background technique
磁粒子成像是目前新型的一种成像技术,其具有无辐射、灵敏度高等成像优点。目前磁粒子成像设备在临床研究中展现出广阔的应用前景,包括病灶早期检查和药物靶向治疗等前沿方向。在目前已有的磁粒子成像设备中,如何快速实现对物体的扫描以及高分辨率的三维图像重建是当前具有挑战性的难题。目前,部分设备通过将设备线圈旋转的方式实现对物体进行断层扫描,通过对被成像线圈的物理旋转来扫描物体不同角度的二维图像,然后对扫描后的图像进行滤波反投影重建。但该成像技术需进行线圈旋转移动,转速过快会降低设备使用寿命。其次,如果想提高扫描的时间分辨率,则需要多次扫描,其过程费时费力。因此,如何在兼顾硬件设备搭建成本的情况下,提高成像的重建速度和成像分辨率是当前亟需面对的难题。基于此,本发明提出了一种基于生成对抗网络的磁粒子三维重建成像方法。Magnetic particle imaging is a new type of imaging technology, which has the advantages of no radiation and high sensitivity. At present, magnetic particle imaging equipment has shown broad application prospects in clinical research, including frontier directions such as early detection of lesions and targeted drug therapy. In the current magnetic particle imaging equipment, how to quickly realize the scanning of objects and high-resolution three-dimensional image reconstruction is a challenging problem at present. At present, some devices implement tomographic scanning of objects by rotating the device coil, and scan two-dimensional images of objects at different angles by physically rotating the imaging coil, and then perform filtered back projection reconstruction on the scanned images. However, this imaging technology needs to rotate and move the coil, and if the rotation speed is too fast, the service life of the equipment will be reduced. Secondly, if you want to improve the time resolution of scanning, you need to scan multiple times, and the process is time-consuming and laborious. Therefore, how to improve the reconstruction speed and imaging resolution of imaging while taking into account the construction cost of hardware equipment is an urgent problem to be faced at present. Based on this, the present invention proposes a three-dimensional reconstruction and imaging method of magnetic particles based on generative confrontation network.
发明内容Contents of the invention
为了解决现有技术中的上述问题,即为了解决现有MPI三维高分辨率图像重建时间长、成像分辨率低的问题,本发明提供了一种基于生成对抗网络的磁粒子三维重建成像方法,该方法包括以下步骤:In order to solve the above-mentioned problems in the prior art, that is, in order to solve the problems of long reconstruction time and low imaging resolution of existing MPI three-dimensional high-resolution images, the present invention provides a three-dimensional reconstruction and imaging method of magnetic particles based on generative confrontation network, The method includes the following steps:
步骤S100,采集待成像重建物体的仿体的多视角的稀疏二维MPI图像,并进行下采样,得到下采样后的稀疏二维MPI图像;所述多视角的稀疏二维MPI图像为依次按照设定角度旋转采集的多张MPI投影图像;Step S100, collect the multi-view sparse two-dimensional MPI image of the phantom of the object to be imaged and reconstructed, and perform down-sampling to obtain the down-sampled sparse two-dimensional MPI image; the multi-view sparse two-dimensional MPI image is followed by Set the angle to rotate multiple MPI projection images collected;
步骤S200,将下采样后的稀疏二维MPI图像输入训练好的邻域点平均扩散搜索自注意力生成对抗网络的生成模型中,得到密集二维MPI图像;Step S200, inputting the downsampled sparse two-dimensional MPI image into the trained average diffusion search self-attention generating adversarial network generation model of the neighborhood points to obtain a dense two-dimensional MPI image;
步骤S300,通过滤波反投影重建算法对各密集二维MPI图像进行重建,最终得到待成像重建物体的三维MPI图像;Step S300, reconstructing each dense two-dimensional MPI image through a filtered back-projection reconstruction algorithm, and finally obtaining a three-dimensional MPI image of the object to be imaged and reconstructed;
所述邻域点平均扩散搜索自注意力生成对抗网络包括生成模型、判别模型;The self-attention generation confrontation network of the neighborhood point average diffusion search includes a generation model and a discrimination model;
所述生成模型包括五个扩散搜索注意力机制卷积模块;所述扩散搜索注意力机制卷积模块基于依次连接的邻域点平均扩散卷积子网络、自注意力融合网络和激活函数层构建;前四个扩散搜索注意力机制卷积模块中激活函数层采用的激活函数为Leaky ReLU,第五个扩散搜索注意力机制卷积模块中激活函数层采用的激活函数为双曲正切函数;The generation model includes five diffusion search attention mechanism convolution modules; the diffusion search attention mechanism convolution module is constructed based on sequentially connected neighborhood point average diffusion convolution subnetwork, self-attention fusion network and activation function layer ; The activation function used in the activation function layer of the first four diffusion search attention mechanism convolution modules is Leaky ReLU, and the activation function used in the activation function layer of the fifth diffusion search attention mechanism convolution module is a hyperbolic tangent function;
所述邻域点平均扩散卷积子网络,配置为通过编码函数对下采样后的稀疏二维MPI图像进行顺序编码,得到顺序编码图像;对各顺序编码图像进行区域卷积运算,获取各顺序编码图像的粒子浓度信息、角度信息和图像间的关联度信息;The neighborhood point average diffusion convolution sub-network is configured to sequentially encode the down-sampled sparse two-dimensional MPI image through a coding function to obtain sequentially coded images; to perform regional convolution operations on each sequentially coded image to obtain each sequence Encode the particle concentration information, angle information and correlation information between images of the image;
所述自注意力融合网络,配置为将各顺序编码图像的粒子浓度信息、角度信息和图像间的关联度信息与对应的权重矩阵相乘进行线性变换,并通过多头注意力机制进行融合,融合后进行上采样,得到密集二维MPI图像;The self-attention fusion network is configured to perform linear transformation by multiplying the particle concentration information, angle information, and correlation information between images of each sequentially encoded image with the corresponding weight matrix, and perform fusion through a multi-head attention mechanism, and fuse Afterwards, upsampling is performed to obtain a dense two-dimensional MPI image;
所述判别模型包括五个卷积神经网络模块;所述卷积神经网络模块基于依次连接的卷积层、正则化层和激活函数层构建;前四个卷积神经网络模块的激活函数层采用的激活函数为Leaky ReLU,第五个卷积神经网络模块的激活函数层采用的激活函数为softmax。The discriminant model includes five convolutional neural network modules; the convolutional neural network module is constructed based on sequentially connected convolutional layers, regularization layers and activation function layers; the activation function layers of the first four convolutional neural network modules adopt The activation function of the network is Leaky ReLU, and the activation function used in the activation function layer of the fifth convolutional neural network module is softmax.
在一些优选的实施方式中,所述邻域点平均扩散搜索自注意力生成对抗网络的训练过程为:In some preferred embodiments, the training process of the Neighborhood Point Average Diffusion Search Self-Attention Generation Adversarial Network is:
步骤A100,通过MPI成像设备采集待成像重建物体的仿体的多视角的稀疏二维MPI图像,并进行下采样,得到下采样后的稀疏二维MPI图像;基于所述下采样后的稀疏二维MPI图像及其对应的真值标签,得到训练数据集;Step A100, using the MPI imaging device to collect a multi-view sparse two-dimensional MPI image of the phantom of the object to be imaged and reconstructed, and perform down-sampling to obtain a down-sampled sparse two-dimensional MPI image; based on the down-sampled sparse two-dimensional Dimensional MPI image and its corresponding ground truth label to obtain the training data set;
步骤A200,将下采样后的稀疏二维MPI图像输入预构建的邻域点平均扩散搜索自注意力生成对抗网络的生成模型中,得到密集二维MPI图像;Step A200, inputting the down-sampled sparse two-dimensional MPI image into the pre-built neighborhood point average diffusion search self-attention generation confrontation network generation model to obtain a dense two-dimensional MPI image;
步骤A300,将所述密集二维MPI图像及其对应的真值标签输入所述邻域点平均扩散搜索自注意力生成对抗网络的判别模型,获取密集二维MPI图像的判别结果;Step A300, input the dense two-dimensional MPI image and its corresponding ground-truth label into the discriminant model of the neighborhood point average diffusion search self-attention generation confrontation network, and obtain the discriminant result of the dense two-dimensional MPI image;
步骤A400,基于所述判别结果,结合各密集二维MPI图像、各稀疏二维MPI图像及其对应的真值标签,通过预构建的损失函数,计算总损失值,并更新所述邻域点平均扩散搜索自注意力生成对抗网络的生成模型、判别模型的网络参数;Step A400, based on the discriminant result, combine each dense two-dimensional MPI image, each sparse two-dimensional MPI image and its corresponding ground truth label, calculate the total loss value through the pre-built loss function, and update the neighborhood points Average Diffusion Search Self-Attention Generative Adversarial Network Generative Model, Network Parameters of Discriminative Model;
步骤A500,循环对所述邻域点平均扩散搜索自注意力生成对抗网络的生成器网络、判别器网络进行训练,直至得到训练好的邻域点平均扩散搜索自注意力生成对抗网络。Step A500, cyclically train the generator network and the discriminator network of the Neighborhood Point Average Diffusion Search Self-Attention Generative Adversarial Network until a trained Neighborhood Point Average Diffusion Search Self-Attention Generative Adversarial Network is obtained.
在一些优选的实施方式中,设生成角度的数目为,在角度为时,第张稀疏二维MPI图像的编码函数为:In some preferred embodiments, let the number of generated angles be , at an angle of when, the The encoding function of a sparse two-dimensional MPI image is :
。 .
在一些优选的实施方式中,对所述顺序编码图像进行区域卷积运算,其方法为:对所述顺序编码图像中的像素点的浓度值进行处理,处理后采用3×3卷积核进行运算;In some preferred embodiments, the area convolution operation is performed on the sequentially encoded image, and the method is: process the concentration value of the pixel in the sequentially encoded image, and use a 3×3 convolution kernel to perform operation;
对所述顺序编码图像中的像素点的浓度值进行处理的方法为:The method for processing the density values of the pixels in the sequentially coded image is:
其中,表示所述顺序编码图像中第行第列的像素点,表示点邻域内所有值的平均值,表示点邻域内所有值的最小值,表示点邻域内所有值的最大值,表示点邻域内的变量值,由横向、纵向以及对角线相邻的点组成。in, Indicates that the first in the sequence coded picture row number the pixels of the column, Represents a point neighborhood The average of all values in the express the minimum of all values within the neighborhood of the point, express the maximum value of all values within the neighborhood of a point, express Variable values within a point neighborhood, consisting of horizontally, vertically, and diagonally adjacent points.
在一些优选的实施方式中,将各顺序编码图像的粒子浓度信息、角度信息和图像间的关联度信息与对应的权重矩阵相乘进行线性变换,其方法为:In some preferred embodiments, the particle concentration information, angle information, and correlation degree information between images of each sequentially encoded image are multiplied by the corresponding weight matrix for linear transformation, and the method is as follows:
; ;
; ;
其中,表示自注意力机制,向量表示粒子浓度信息,;向量表示角度信息,;向量表示图像间的关联度信息,,表示将矩阵变形为一维列向量,向量表示输入邻域点平均扩散卷积子网络的顺序编码图像;、、分别表示与顺序编码图像的粒子浓度信息、角度信息和图像间的关联度信息对应的权重矩阵,表示各顺序编码图像在所有输出层中的神经元从1到N的输出结果之和,表示各顺序编码图像经过第个神经元的输出值,表示各顺序编码图像经过第个神经元的输出值,表示各顺序编码图像经过第个神经元的输出值占总输出值的比重。in, Represents the self-attention mechanism, a vector Indicates the particle concentration information, ;vector represents angle information, ;vector Represents the correlation information between images, , Indicates that the matrix is transformed into a one-dimensional column vector, and the vector Represents the sequentially encoded image of the input neighborhood point-averaged diffusion convolutional sub-network; , , Represent the weight matrix corresponding to the particle concentration information, angle information and correlation degree information between images of sequentially encoded images, Represents each sequentially coded image neurons in all output layers The sum of output results from 1 to N, Represents each sequentially coded image After the first The output value of a neuron, Represents each sequentially coded image After the first The output value of a neuron, Represents each sequentially coded image After the first The output value of neurons accounts for the total output value proportion.
在一些优选的实施方式中,通过多头注意力机制对各顺序编码图像的粒子浓度信息、角度信息和图像间的关联度信息进行融合,其方法为:In some preferred embodiments, the particle concentration information, angle information and correlation degree information between images of each sequentially encoded image are fused through a multi-head attention mechanism, and the method is as follows:
其中,是拼接函数,表示第个注意力机制子模块的输出,表示多头注意力机制输出的总权重矩阵,表示顺序编码图像的粒子浓度信息、角度信息和图像间的关联度信息融合后的信息。in, is the stitching function, Indicates the first The output of the attention mechanism sub-module, represents the total weight matrix output by the multi-head attention mechanism, Indicates the information obtained by fusing the particle concentration information, angle information, and correlation degree information between images of sequentially encoded images.
在一些优选的实施方式中,通过预构建的损失函数,计算总损失值,其方法为:In some preferred implementations, the total loss value is calculated through a pre-built loss function, and the method is as follows:
其中,为总损失函数,表示像素损失函数与对抗损失函数,表示角度顺序排序优化函数,表示像素信息误差,表示生成模型的损失,表示稀疏二维MPI图像,表示生成的第张密集二维MPI图像,表示生成的第张密集二维MPI图像,表示第张稀疏二维MPI图像对应的真值标签,表示像素损失的系数,表示对抗损失的系数,表示由判别网络判别是否为真的概率,表示生成模型的输出,表示角度差值函数,为双曲正切函数,表示在对应输入下角度的预测值,,表示任意两张密集二维MPI图像角度判断函数, 和分别表示第张生成的密集二维MPI图像对应的角度标签,表示对于不同仿体包含信息的丰富度设定的参数。in, is the total loss function, Represents the pixel loss function and the adversarial loss function, Represents the angular order sorting optimization function, Indicates the pixel information error, represents the loss of the generative model, Represents a sparse 2D MPI image, Indicates the generated A dense 2D MPI image, Indicates the generated A dense 2D MPI image, Indicates the first The ground truth label corresponding to a sparse 2D MPI image, represents the coefficient of the pixel loss, represents the coefficient of the adversarial loss, Indicates the probability of whether it is true or not judged by the discriminant network, represents the output of the generative model, represents the angle difference function, is the hyperbolic tangent function, Indicates the predicted value of the angle under the corresponding input, , Represents any two dense two-dimensional MPI images Angle Judgment Function, and Respectively represent the first The angle labels corresponding to the generated dense 2D MPI images, Indicates the parameters set for the richness of information contained in different phantoms.
本发明的第二方面,提出了一种基于生成对抗网络的磁粒子三维重建成像系统,该系统包括:图像采集模块100、图像重建模块200、三维重建模块300;In the second aspect of the present invention, a magnetic particle three-dimensional reconstruction imaging system based on generative confrontation network is proposed, and the system includes: an
所述图像采集模块100,配置为采集待成像重建物体的仿体的多视角的稀疏二维MPI图像,并进行下采样,得到下采样后的稀疏二维MPI图像;所述多视角的稀疏二维MPI图像为依次按照设定角度旋转采集的多张MPI投影图像;The
所述图像重建模块200,配置为将下采样后的稀疏二维MPI图像输入训练好的邻域点平均扩散搜索自注意力生成对抗网络的生成模型中,得到密集二维MPI图像;The
所述三维重建模块300,配置为通过滤波反投影重建算法对各密集二维MPI图像进行重建,最终得到待成像重建物体的三维MPI图像;The three-
所述邻域点平均扩散搜索自注意力生成对抗网络包括生成模型、判别模型;The self-attention generation confrontation network of the neighborhood point average diffusion search includes a generation model and a discrimination model;
所述生成模型包括五个扩散搜索注意力机制卷积模块;所述扩散搜索注意力机制卷积模块基于依次连接的邻域点平均扩散卷积子网络、自注意力融合网络和激活函数层构建;前四个扩散搜索注意力机制卷积模块中激活函数层采用的激活函数为Leaky ReLU,第五个扩散搜索注意力机制卷积模块中激活函数层采用的激活函数为双曲正切函数;The generation model includes five diffusion search attention mechanism convolution modules; the diffusion search attention mechanism convolution module is constructed based on sequentially connected neighborhood point average diffusion convolution subnetwork, self-attention fusion network and activation function layer ; The activation function used in the activation function layer of the first four diffusion search attention mechanism convolution modules is Leaky ReLU, and the activation function used in the activation function layer of the fifth diffusion search attention mechanism convolution module is a hyperbolic tangent function;
所述邻域点平均扩散卷积子网络,配置为通过编码函数对下采样后的稀疏二维MPI图像进行顺序编码,得到顺序编码图像;对各顺序编码图像进行区域卷积运算,获取各顺序编码图像的粒子浓度信息、角度信息和图像间的关联度信息;The neighborhood point average diffusion convolution sub-network is configured to sequentially encode the down-sampled sparse two-dimensional MPI image through a coding function to obtain sequentially coded images; to perform regional convolution operations on each sequentially coded image to obtain each sequence Encode the particle concentration information, angle information and correlation information between images of the image;
所述自注意力融合网络,配置为将各顺序编码图像的粒子浓度信息、角度信息和图像间的关联度信息与对应的权重矩阵相乘进行线性变换,并通过多头注意力机制进行融合,融合后进行上采样,得到密集二维MPI图像;The self-attention fusion network is configured to perform linear transformation by multiplying the particle concentration information, angle information, and correlation information between images of each sequentially encoded image with the corresponding weight matrix, and perform fusion through a multi-head attention mechanism, and fuse Afterwards, upsampling is performed to obtain a dense two-dimensional MPI image;
所述判别模型包括五个卷积神经网络模块;所述卷积神经网络模块基于依次连接的卷积层、正则化层和激活函数层构建;前四个卷积神经网络模块的激活函数层采用的激活函数为Leaky ReLU,第五个卷积神经网络模块的激活函数层采用的激活函数为softmax。The discriminant model includes five convolutional neural network modules; the convolutional neural network module is constructed based on sequentially connected convolutional layers, regularization layers and activation function layers; the activation function layers of the first four convolutional neural network modules adopt The activation function of the network is Leaky ReLU, and the activation function used in the activation function layer of the fifth convolutional neural network module is softmax.
本发明的第三方面,提出了一种存储装置,其中存储有多条程序,所述程序适用于由处理器加载并执行以实现上述的一种基于生成对抗网络的磁粒子三维重建成像方法。The third aspect of the present invention proposes a storage device in which a plurality of programs are stored, and the programs are suitable for being loaded and executed by a processor to realize the above-mentioned three-dimensional reconstruction and imaging method of magnetic particles based on a generative adversarial network.
本发明的第四方面,提出了一种处理设置,包括处理器、存储装置;处理器,适用于执行各条程序;存储装置,适用于存储多条程序;所述程序适用于由处理器加载并执行以实现上述的一种基于生成对抗网络的磁粒子三维重建成像方法。In a fourth aspect of the present invention, a processing arrangement is proposed, including a processor and a storage device; the processor is suitable for executing various programs; the storage device is suitable for storing multiple programs; the program is suitable for being loaded by the processor And execute to realize the above-mentioned three-dimensional reconstruction and imaging method of magnetic particles based on generative confrontation network.
本发明的有益效果:Beneficial effects of the present invention:
本发明提高了MPI成像的重建速度和成像分辨率;The invention improves the reconstruction speed and imaging resolution of MPI imaging;
本发明将邻域点平均扩散搜索自注意力机制融入生成对抗网络,利用角度顺序排序优化函数进行优化,加快了MPI图像重建速度,提高了MPI图像重建质量,弥补了当下设备存在的硬件缺陷,使磁粒子成像设备在医学领域有更大的应用前景。The invention integrates the self-attention mechanism of neighborhood point average diffusion search into the generative confrontation network, uses the angle order sorting optimization function to optimize, accelerates the speed of MPI image reconstruction, improves the quality of MPI image reconstruction, and makes up for the hardware defects existing in current equipment. The magnetic particle imaging equipment has a greater application prospect in the medical field.
附图说明Description of drawings
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显:Other characteristics, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
图1是本发明一种实施例的基于生成对抗网络的磁粒子三维重建成像方法的流程示意图;Fig. 1 is a schematic flow chart of a three-dimensional reconstruction and imaging method of magnetic particles based on generative confrontation network according to an embodiment of the present invention;
图2是本发明一种实施例的基于生成对抗网络的磁粒子三维重建成像方法的训练流程示意图;Fig. 2 is a schematic diagram of the training process of the magnetic particle three-dimensional reconstruction and imaging method based on the generative confrontation network according to an embodiment of the present invention;
图3是本发明一种实施例的注意力机制的网络模块示意图;Fig. 3 is a schematic diagram of the network module of the attention mechanism of an embodiment of the present invention;
图4是本发明一种实施例的基于生成对抗网络的磁粒子三维重建成像方法的网络结构示意图;Fig. 4 is a schematic diagram of the network structure of the magnetic particle three-dimensional reconstruction and imaging method based on the generative confrontation network according to an embodiment of the present invention;
图5是本发明一种实施例的基于生成对抗网络的磁粒子三维重建成像系统的框架示意图。Fig. 5 is a schematic framework diagram of a three-dimensional reconstruction and imaging system of magnetic particles based on a generative adversarial network according to an embodiment of the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅用于解释相关发明,而非对该发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与有关发明相关的部分。The application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain related inventions, not to limit the invention. It should also be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings.
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and embodiments.
本发明提供了一种基于生成对抗网络的磁粒子三维重建成像方法,如图1所示,该方法包括以下步骤:The present invention provides a method for three-dimensional reconstruction and imaging of magnetic particles based on generative confrontation network, as shown in Figure 1, the method includes the following steps:
步骤S100,采集待成像重建物体的仿体的多视角的稀疏二维MPI图像,并进行下采样,得到下采样后的稀疏二维MPI图像;所述多视角的稀疏二维MPI图像为依次按照设定角度旋转采集的多张MPI投影图像;Step S100, collect the multi-view sparse two-dimensional MPI image of the phantom of the object to be imaged and reconstructed, and perform down-sampling to obtain the down-sampled sparse two-dimensional MPI image; the multi-view sparse two-dimensional MPI image is followed by Set the angle to rotate multiple MPI projection images collected;
步骤S200,将下采样后的稀疏二维MPI图像输入训练好的邻域点平均扩散搜索自注意力生成对抗网络的生成模型中,得到密集二维MPI图像;Step S200, inputting the downsampled sparse two-dimensional MPI image into the trained average diffusion search self-attention generating adversarial network generation model of the neighborhood points to obtain a dense two-dimensional MPI image;
步骤S300,通过滤波反投影重建算法对各密集二维MPI图像进行重建,最终得到待成像重建物体的三维MPI图像;Step S300, reconstructing each dense two-dimensional MPI image through a filtered back-projection reconstruction algorithm, and finally obtaining a three-dimensional MPI image of the object to be imaged and reconstructed;
所述邻域点平均扩散搜索自注意力生成对抗网络包括生成模型、判别模型;The self-attention generation confrontation network of the neighborhood point average diffusion search includes a generation model and a discrimination model;
所述生成模型包括五个扩散搜索注意力机制卷积模块;所述扩散搜索注意力机制卷积模块基于依次连接的邻域点平均扩散卷积子网络、自注意力融合网络和激活函数层构建;前四个扩散搜索注意力机制卷积模块中激活函数层采用的激活函数为Leaky ReLU,第五个扩散搜索注意力机制卷积模块中激活函数层采用的激活函数为双曲正切函数;The generation model includes five diffusion search attention mechanism convolution modules; the diffusion search attention mechanism convolution module is constructed based on sequentially connected neighborhood point average diffusion convolution subnetwork, self-attention fusion network and activation function layer ; The activation function used in the activation function layer of the first four diffusion search attention mechanism convolution modules is Leaky ReLU, and the activation function used in the activation function layer of the fifth diffusion search attention mechanism convolution module is a hyperbolic tangent function;
所述邻域点平均扩散卷积子网络,配置为通过编码函数对下采样后的稀疏二维MPI图像进行顺序编码,得到顺序编码图像;对各顺序编码图像进行区域卷积运算,获取各顺序编码图像的粒子浓度信息、角度信息和图像间的关联度信息;The neighborhood point average diffusion convolution sub-network is configured to sequentially encode the down-sampled sparse two-dimensional MPI image through a coding function to obtain sequentially coded images; to perform regional convolution operations on each sequentially coded image to obtain each sequence Encode the particle concentration information, angle information and correlation information between images of the image;
所述自注意力融合网络,配置为将各顺序编码图像的粒子浓度信息、角度信息和图像间的关联度信息与对应的权重矩阵相乘进行线性变换,并通过多头注意力机制进行融合,融合后进行上采样,得到密集二维MPI图像;The self-attention fusion network is configured to perform linear transformation by multiplying the particle concentration information, angle information, and correlation information between images of each sequentially encoded image with the corresponding weight matrix, and perform fusion through a multi-head attention mechanism, and fuse Afterwards, upsampling is performed to obtain a dense two-dimensional MPI image;
所述判别模型包括五个卷积神经网络模块;所述卷积神经网络模块基于依次连接的卷积层、正则化层和激活函数层构建;前四个卷积神经网络模块的激活函数层采用的激活函数为Leaky ReLU,第五个卷积神经网络模块的激活函数层采用的激活函数为softmax。The discriminant model includes five convolutional neural network modules; the convolutional neural network module is constructed based on sequentially connected convolutional layers, regularization layers and activation function layers; the activation function layers of the first four convolutional neural network modules adopt The activation function of the network is Leaky ReLU, and the activation function used in the activation function layer of the fifth convolutional neural network module is softmax.
为了更清晰地对本发明一种基于生成对抗网络的磁粒子三维重建成像方法进行说明,下面结合附图对本发明方法实施例中各步骤展开详述。In order to more clearly describe a method for three-dimensional reconstruction and imaging of magnetic particles based on a generative adversarial network of the present invention, each step in the method embodiment of the present invention will be described in detail below with reference to the accompanying drawings.
在已有的商业设备实现磁粒子(Magnetic particle Imaging, MPI)成像过程中,为了对物体内部粒子的分布进行成像,需对物体进行扫描,但目前基于线圈转动的物理扫描方式重建图像的时间较长,进行多角度断层扫描受到线圈转速的限制,大大增加设备的硬件成本和缩短设备的使用寿命。为了有效降低重建时间,节省硬件成本,本发明设计了一种基于生成判别模型的多角度三维磁粒子成像(Multi-view Three DimensionalMagnetic Particle Imaging, MV-3D-MPI)方法及系统。本发明提出了一种邻域点平均扩散搜索自注意力生成对抗网络模型,旨在实现MPI高分辨率图像的快速重建以及提高成像分辨率。In the process of magnetic particle imaging (MPI) imaging with existing commercial equipment, in order to image the distribution of particles inside the object, the object needs to be scanned, but the current physical scanning method based on coil rotation takes a relatively long time to reconstruct the image. Long, multi-angle tomography is limited by the rotation speed of the coil, which greatly increases the hardware cost of the device and shortens the service life of the device. In order to effectively reduce reconstruction time and save hardware cost, the present invention designs a multi-view three-dimensional magnetic particle imaging (Multi-view Three Dimensional Magnetic Particle Imaging, MV-3D-MPI) method and system based on a generative discriminant model. The invention proposes a neighborhood point average diffusion search self-attention generation confrontation network model, aiming at realizing fast reconstruction of MPI high-resolution images and improving imaging resolution.
在下述实施例中,先对邻域点平均扩散搜索自注意力生成对抗网络的训练过程进行说明,再对邻域点平均扩散搜索自注意力生成对抗网络的测试过程进行详述。In the following embodiments, the training process of the Neighborhood Point Average Diffusion Search Self-Attention Generation Adversarial Network will be described first, and then the testing process of the Neighborhood Point Average Diffusion Search Self-Attention Generation Adversarial Network will be described in detail.
1、邻域点平均扩散搜索自注意力生成对抗网络的训练过程,具体步骤如下:1. Neighborhood point average diffusion search self-attention generation confrontation network training process, the specific steps are as follows:
步骤A100,通过MPI成像设备采集待成像重建物体的仿体的多视角的稀疏二维MPI图像,并进行下采样,得到下采样后的稀疏二维MPI图像;基于所述下采样后的稀疏二维MPI图像及其对应的真值标签,得到训练数据集;Step A100, using the MPI imaging device to collect a multi-view sparse two-dimensional MPI image of the phantom of the object to be imaged and reconstructed, and perform down-sampling to obtain a down-sampled sparse two-dimensional MPI image; based on the down-sampled sparse two-dimensional Dimensional MPI image and its corresponding ground truth label to obtain the training data set;
在本实施例中,通过自有MPI设备采集多视角密集的MPI投影图像,将15000例图像作为训练集;针对一个仿体,优选每隔5°采集一张图像(在其他实施例中,可以根据实际需求,设定角度间隔采集图像),共计采集36个角度的投影MPI图像;通过任意常规的下采样方法将其像素大小变为12×12,将下采样后的图像作为网络的输入对象。In this embodiment, the MPI projection images with dense multi-view angles are collected by self-owned MPI equipment, and 15,000 examples of images are used as training sets; for a phantom, it is preferable to collect an image every 5° (in other embodiments, you can According to actual needs, set the angle interval to collect images), and collect a total of 36 angles of projected MPI images; through any conventional down-sampling method, the pixel size is changed to 12×12, and the down-sampled image is used as the input object of the network .
步骤A200,将下采样后的稀疏二维MPI图像输入预构建的邻域点平均扩散搜索自注意力生成对抗网络的生成模型中,得到密集二维MPI图像;Step A200, inputting the down-sampled sparse two-dimensional MPI image into the pre-built neighborhood point average diffusion search self-attention generation confrontation network generation model to obtain a dense two-dimensional MPI image;
在本实施例中,所述邻域点平均扩散搜索自注意力生成对抗网络包括生成模型、判别模型;In this embodiment, the Neighborhood Point Average Diffusion Search Self-Attention Generation Adversarial Network includes a generation model and a discrimination model;
所述生成模型包括五个扩散搜索注意力机制卷积模块;所述扩散搜索注意力机制卷积模块基于依次连接的邻域点平均扩散卷积子网络、自注意力融合网络和激活函数层构建;前四个扩散搜索注意力机制卷积模块中激活函数层采用的激活函数为Leaky ReLU,第五个扩散搜索注意力机制卷积模块中激活函数层采用的激活函数为双曲正切函数;The generation model includes five diffusion search attention mechanism convolution modules; the diffusion search attention mechanism convolution module is constructed based on sequentially connected neighborhood point average diffusion convolution subnetwork, self-attention fusion network and activation function layer ; The activation function used in the activation function layer of the first four diffusion search attention mechanism convolution modules is Leaky ReLU, and the activation function used in the activation function layer of the fifth diffusion search attention mechanism convolution module is a hyperbolic tangent function;
所述邻域点平均扩散卷积子网络,配置为通过编码函数对下采样后的稀疏二维MPI图像进行顺序编码,得到顺序编码图像;对各顺序编码图像进行区域卷积运算,获取各顺序编码图像的粒子浓度信息、角度信息和图像间的关联度信息;The neighborhood point average diffusion convolution sub-network is configured to sequentially encode the down-sampled sparse two-dimensional MPI image through a coding function to obtain sequentially coded images; to perform regional convolution operations on each sequentially coded image to obtain each sequence Encode the particle concentration information, angle information and correlation information between images of the image;
所述自注意力融合网络,配置为将各顺序编码图像的粒子浓度信息、角度信息和图像间的关联度信息与对应的权重矩阵相乘进行线性变换,并通过多头注意力机制进行融合,融合后进行上采样,得到密集二维MPI图像;The self-attention fusion network is configured to perform linear transformation by multiplying the particle concentration information, angle information, and correlation information between images of each sequentially encoded image with the corresponding weight matrix, and perform fusion through a multi-head attention mechanism, and fuse Afterwards, upsampling is performed to obtain a dense two-dimensional MPI image;
在本发明中,由于输入存在角度的顺序关系,为了让模型能学习到相邻角度的关联性和不同角度的全局相关性,网络的输入层采用顺序编码,设定模型的输入包括6个不同角度的图像,在[0°,180°)中每隔30°取一张,在角度为时,对于第张稀疏二维MPI图像的编码函数为:In the present invention, since the input has a sequence relationship of angles, in order to allow the model to learn the relevance of adjacent angles and the global correlation of different angles, the input layer of the network adopts sequential encoding, and the input of the set model includes 6 different The image of the angle is taken every 30° in [0°,180°), and the angle is when, for the Coding function of a sparse two-dimensional MPI image for:
其中, 表示生成角度的数目,式中的正弦和余弦函数可以保证构建的模型学习到不同图像之间的相对位置关系。in, Indicates the number of generated angles, and the sine and cosine functions in the formula can ensure that the constructed model learns the relative positional relationship between different images.
针对MPI图像特点,将邻域点扩散搜索取值主要用于更充分的建模MPI图像某一像素值和其邻域的关系,由于磁场自由区的磁粒子响应会受到旁边粒子的影响,导致部分点处成像的浓度值和其他周边像素点浓度值存在关联。对所述顺序编码图像进行区域卷积运算,其方法为:对所述顺序编码图像中的像素点的浓度值进行处理,处理后优选采用3×3卷积核进行运算;According to the characteristics of the MPI image, the value of neighborhood point diffusion search is mainly used to more fully model the relationship between a certain pixel value of the MPI image and its neighbors, because the magnetic particle response in the magnetic field free area will be affected by the particles next to it, resulting in The imaged density values at some points are related to the density values of other surrounding pixels. Carrying out area convolution operation on the sequentially coded image, the method is: processing the concentration value of the pixels in the sequentially coded image, preferably using a 3×3 convolution kernel to perform the operation after processing;
对所述顺序编码图像中的像素点的浓度值进行处理的方法为:The method for processing the density values of the pixels in the sequentially coded image is:
以点为例进行浓度值处理的方法为:by Take the point as an example to process the concentration value as follows:
其中,表示所述顺序编码图像中第行第列的像素点,表示点邻域内所有值的平均值,表示点邻域内所有值的最小值,表示点邻域内所有值的最大值,表示点邻域内的变量值,由横向、纵向以及对角线相邻的点组成。in, Indicates that the first in the sequence coded picture row number the pixels of the column, Represents a point neighborhood The average of all values in the expressthe minimum of all values within the neighborhood of the point, express the maximum value of all values within the neighborhood of a point, express Variable values within a point neighborhood, consisting of horizontally, vertically, and diagonally adjacent points.
本发明为了在生成网络模型部分将不同子网络对图像提取的关键信息进行融合,提出自注意力融合网络模块。设每个子网络的输入为预处理后的图像,采用三个子网络对输入进行处理得到不同类型的信息,将得到的三类不同信息分别与对应的权重矩阵相乘进行线性变换,对应的权重矩阵分别为、、,然后通过自注意力融合网络模块对不同类型的信息进行融合,将各顺序编码图像的粒子浓度信息、角度信息和图像间的关联度信息与对应的权重矩阵相乘进行线性变换,其方法为:The present invention proposes a self-attention fusion network module in order to fuse key information extracted from images by different sub-networks in the part of generating the network model. Let the input of each sub-network be the preprocessed image, three sub-networks are used to process the input to obtain different types of information, and the obtained three types of information are multiplied by the corresponding weight matrix for linear transformation. The corresponding weight matrices are respectively,,, and then through the self-attention fusion network module, different types of information are fused, and the particle concentration information, angle information and correlation information between images of each sequentially encoded image are multiplied by the corresponding weight matrix for linear transformation. The method is :
其中,表示自注意力机制,向量表示粒子浓度信息,;向量表示角度信息,;向量表示图像间的关联度信息,,表示将矩阵变形为一维列向量,向量表示输入邻域点平均扩散卷积子网络的顺序编码图像;、、分别表示与顺序编码图像的粒子浓度信息、角度信息和图像间的关联度信息对应的权重矩阵,表示各顺序编码图像在所有输出层中的神经元从1到N的输出结果之和,表示各顺序编码图像经过第个神经元的输出值,表示各顺序编码图像经过第个神经元的输出值,表示各顺序编码图像经过第个神经元的输出值占总输出值的比重。in,Represents the self-attention mechanism, a vectorIndicates the particle concentration information,;vectorrepresents angle information,;vectorRepresents the correlation information between images,,Indicates that the matrix is transformed into a one-dimensional column vector, and the vectorRepresents the sequentially encoded image of the input neighborhood point-averaged diffusion convolutional sub-network;,,Represent the weight matrix corresponding to the particle concentration information, angle information and correlation degree information between images of sequentially encoded images,Represents each sequentially coded imageneurons in all output layersThe sum of output results from 1 to N,Represents each sequentially coded imageAfter the firstThe output value of a neuron,Represents each sequentially coded imageAfter the firstThe output value of a neuron,Represents each sequentially coded imageAfter the firstThe output value of neurons accounts for the total output valueproportion.
通过多头注意力机制对各顺序编码图像的粒子浓度信息、角度信息和图像间的关联度信息进行融合,其方法为:Through the multi-head attention mechanism, the particle concentration information, angle information and correlation information between images of each sequentially encoded image are fused, and the method is as follows:
{X}_{O}=Upsample\left [ {MF\left ( {{H}_{i}\left ( {{X}_{1},{X}_{2},{X}_{3}} \right )} \right )} \right ] {X}_{O}=Upsample\left [ {MF\left ( {{H}_{i}\left ( {{X}_{1},{X}_{2},{X}_{ 3}} \right )} \right )} \right ]
其中,是拼接函数,表示第个注意力机制子模块的输出,表示多头注意力机制输出的总权重矩阵,表示顺序编码图像的粒子浓度信息、角度信息和图像间的关联度信息融合后的信息,对每个注意力子模块的输出进行拼接后通过与 相乘进行线性变换,最后通过上采样得到生成模型的输出 , 表示上采样函数。in,is the stitching function,Indicates the firstThe output of the attention mechanism sub-module,represents the total weight matrix output by the multi-head attention mechanism,Represents the fused information of the particle concentration information, angle information and correlation information between the images of the sequentially encoded images, and splicing the output of each attention sub-module by combining withMultiply for linear transformation, and finally get the output of the generated model by upsampling,Represents the upsampling function.
步骤A300,将所述密集二维MPI图像及其对应的真值标签输入所述邻域点平均扩散搜索自注意力生成对抗网络的判别模型,获取密集二维MPI图像的判别结果;Step A300, input the dense two-dimensional MPI image and its corresponding ground-truth label into the discriminant model of the neighborhood point average diffusion search self-attention generation confrontation network, and obtain the discriminant result of the dense two-dimensional MPI image;
所述判别模型包括五个卷积神经网络模块;所述卷积神经网络模块基于依次连接的卷积层、正则化层和激活函数层构建;前四个卷积神经网络模块的激活函数层采用的激活函数为Leaky ReLU,第五个卷积神经网络模块的激活函数层采用的激活函数为softmax。The discriminant model includes five convolutional neural network modules; the convolutional neural network module is constructed based on sequentially connected convolutional layers, regularization layers and activation function layers; the activation function layers of the first four convolutional neural network modules adopt The activation function of the network is Leaky ReLU, and the activation function used in the activation function layer of the fifth convolutional neural network module is softmax.
所述卷积层对判别模型的输入数据进行卷积运算,再通过所述正则化层进行正则化,最后输入所述激活函数层进行函数运算。The convolution layer performs convolution operation on the input data of the discriminant model, and then performs regularization through the regularization layer, and finally inputs the activation function layer to perform function operation.
步骤A400,基于所述判别结果,结合各密集二维MPI图像、各稀疏二维MPI图像及其对应的真值标签,通过预构建的损失函数,计算总损失值,并更新所述邻域点平均扩散搜索自注意力生成对抗网络的生成模型、判别模型的网络参数;Step A400, based on the discriminant result, combine each dense two-dimensional MPI image, each sparse two-dimensional MPI image and its corresponding ground truth label, calculate the total loss value through the pre-built loss function, and update the neighborhood points Average Diffusion Search Self-Attention Generative Adversarial Network Generative Model, Network Parameters of Discriminative Model;
在本实施例中,通过预构建的损失函数,计算总损失值,其方法为:In this embodiment, the total loss value is calculated through the pre-built loss function, and the method is as follows:
其中,为总损失函数,表示像素损失函数与对抗损失函数,表示角度顺序排序优化函数,表示像素信息误差,表示生成模型的损失,表示稀疏二维MPI图像,表示生成的第张密集二维MPI图像,表示生成的第张密集二维MPI图像,表示第张稀疏二维MPI图像对应的真值标签,表示像素损失的系数,表示对抗损失的系数,本实施例中 和 优选设置为1,表示由判别网络判别是否为真的概率,表示生成模型的输出,表示角度差值函数,为双曲正切函数,表示在对应输入下角度的预测值,,表示任意两张密集二维MPI图像角度判断函数,如果其判断值为真,则取值为1,否则为0, 和分别表示第张生成的密集二维MPI图像对应的角度标签;表示对于不同仿体包含信息的丰富度设定的参数,在本发明中,若采集的仿体为字母仿体,对于字母仿体优选设置为1,对于较复杂的汉字仿体优选设置为2,对于专门用于评估分辨率的仿体由于细节比较丰富,优选设置为3。在取图像对时以仿体为单位,对每个仿体图像所取的图像对进行监督,惩罚其中错误排序。这三组仿体填充内径优选为0.5mm含10mg /ml Perimag溶液。三组仿体的视场(FOV)分别优选为6 cm×6 cm×6 cm(字母)、6 cm×6 cm×10 cm(螺旋,一个稀疏投影的采集时间为3分钟),6cm×6cm×cm(容器,一个稀疏投影的采集时间为2分钟)。in,is the total loss function,Represents the pixel loss function and the adversarial loss function,Represents the angular order sorting optimization function,Indicates the pixel information error,represents the loss of the generative model,Represents a sparse 2D MPI image,Indicates the generatedA dense 2D MPI image,Indicates the generatedA dense 2D MPI image,Indicates the firstThe ground truth label corresponding to a sparse 2D MPI image,represents the coefficient of the pixel loss,Represents the coefficient of the adversarial loss, in this embodimentandPreferably set to 1,Indicates the probability of whether it is true or not judged by the discriminant network,represents the output of the generative model,represents the angle difference function,is the hyperbolic tangent function,Indicates the predicted value of the angle under the corresponding input,,Represents any two dense two-dimensional MPI imagesAngle judgment function, if its judgment value is true, then the value is 1, otherwise it is 0,andRespectively represent the firstThe angle label corresponding to the generated dense 2D MPI image;Indicates the parameters set for the richness of information contained in different imitation bodies. In the present invention, if the imitation body collected is a letter imitation body, for the letter imitation bodyPreferably set to 1, for more complex Chinese character imitationThe preferred setting is 2. For phantoms specially used to evaluate the resolution, due to the rich details,The preferred setting is 3. When the image pair is taken, the phantom is used as the unit, and the image pair taken by each phantom image is supervised, and the wrong order is punished. The three sets of phantoms are preferably filled with an inner diameter of 0.5 mm containing 10 mg/ml Perimag solution. The field of view (FOV) of the three phantoms is preferably 6 cm×6 cm×6 cm (letter), 6 cm×6 cm×10 cm (spiral, the acquisition time of a sparse projection is 3 minutes), 6cm×6cm × cm (container, acquisition time 2 minutes for one sparse projection).
步骤A500,循环对所述邻域点平均扩散搜索自注意力生成对抗网络的生成器网络、判别器网络进行训练,直至得到训练好的邻域点平均扩散搜索自注意力生成对抗网络;Step A500, cyclically train the generator network and the discriminator network of the Neighborhood Point Average Diffusion Search Self-Attention Generative Adversarial Network until the trained Neighborhood Point Average Diffusion Search Self-Attention Generative Adversarial Network is obtained;
2、邻域点平均扩散搜索自注意力生成对抗网络的测试过程2. Neighborhood Point Average Diffusion Search Self-Attention Generative Adversarial Network Testing Process
步骤S100,采集待成像重建物体的仿体的多视角的稀疏二维MPI图像,并进行下采样,得到下采样后的稀疏二维MPI图像;所述多视角的稀疏二维MPI图像为依次按照设定角度旋转采集的多张MPI投影图像;Step S100, collect the multi-view sparse two-dimensional MPI image of the phantom of the object to be imaged and reconstructed, and perform down-sampling to obtain the down-sampled sparse two-dimensional MPI image; the multi-view sparse two-dimensional MPI image is followed by Set the angle to rotate multiple MPI projection images collected;
在本实施例中,将通过MPI设备采集的200例图像作为测试集。In this embodiment, 200 cases of images collected by the MPI device are used as a test set.
步骤S200,将下采样后的稀疏二维MPI图像输入训练好的邻域点平均扩散搜索自注意力生成对抗网络的生成模型中,得到密集二维MPI图像;Step S200, inputting the downsampled sparse two-dimensional MPI image into the trained average diffusion search self-attention generating adversarial network generation model of the neighborhood points to obtain a dense two-dimensional MPI image;
在本实施例中,基于训练好的邻域点平均扩散搜索自注意力生成对抗网络,优选对稀疏的二维MPI图像进行从[0°,5°,10°,15°,20°,25°, 30°,35°,40°,45°,50°,55°,60°,65°,…,170°,175°]任意角度的生成,生成的密集二维MPI图像的像素大小为48×48。In this embodiment, the self-attention generation adversarial network is searched based on the average diffusion of trained neighborhood points. °, 30°,35°,40°,45°,50°,55°,60°,65°,...,170°,175°] at any angle, the pixel size of the generated dense two-dimensional MPI image is 48×48.
步骤S300,通过滤波反投影重建算法对各密集二维MPI图像进行重建,最终得到待成像重建物体的三维MPI图像;Step S300, reconstructing each dense two-dimensional MPI image through a filtered back-projection reconstruction algorithm, and finally obtaining a three-dimensional MPI image of the object to be imaged and reconstructed;
本发明第二实施例的一种基于生成对抗网络的磁粒子三维重建成像系统,如图4所示,包括:图像采集模块100、图像重建模块200、三维重建模块300;A magnetic particle three-dimensional reconstruction and imaging system based on a generative confrontation network according to the second embodiment of the present invention, as shown in FIG. 4 , includes: an
所述图像采集模块100,配置为采集待成像重建物体的仿体的多视角的稀疏二维MPI图像,并进行下采样,得到下采样后的稀疏二维MPI图像;所述多视角的稀疏二维MPI图像为依次按照设定角度旋转采集的多张MPI投影图像;The
所述图像重建模块200,配置为将下采样后的稀疏二维MPI图像输入训练好的邻域点平均扩散搜索自注意力生成对抗网络的生成模型中,得到密集二维MPI图像;The
所述三维重建模块300,配置为通过滤波反投影重建算法对各密集二维MPI图像进行重建,最终得到待成像重建物体的三维MPI图像;The three-
所述邻域点平均扩散搜索自注意力生成对抗网络包括生成模型、判别模型;The self-attention generation confrontation network of the neighborhood point average diffusion search includes a generation model and a discrimination model;
所述生成模型包括五个扩散搜索注意力机制卷积模块;所述扩散搜索注意力机制卷积模块基于依次连接的邻域点平均扩散卷积子网络、自注意力融合网络和激活函数层构建;前四个扩散搜索注意力机制卷积模块中激活函数层采用的激活函数为Leaky ReLU,第五个扩散搜索注意力机制卷积模块中激活函数层采用的激活函数为双曲正切函数;The generation model includes five diffusion search attention mechanism convolution modules; the diffusion search attention mechanism convolution module is constructed based on sequentially connected neighborhood point average diffusion convolution subnetwork, self-attention fusion network and activation function layer ; The activation function used in the activation function layer of the first four diffusion search attention mechanism convolution modules is Leaky ReLU, and the activation function used in the activation function layer of the fifth diffusion search attention mechanism convolution module is a hyperbolic tangent function;
所述邻域点平均扩散卷积子网络,配置为通过编码函数对下采样后的稀疏二维MPI图像进行顺序编码,得到顺序编码图像;对各顺序编码图像进行区域卷积运算,获取各顺序编码图像的粒子浓度信息、角度信息和图像间的关联度信息;The neighborhood point average diffusion convolution sub-network is configured to sequentially encode the down-sampled sparse two-dimensional MPI image through a coding function to obtain sequentially coded images; to perform regional convolution operations on each sequentially coded image to obtain each sequence Encode the particle concentration information, angle information and correlation information between images of the image;
所述自注意力融合网络,配置为将各顺序编码图像的粒子浓度信息、角度信息和图像间的关联度信息与对应的权重矩阵相乘进行线性变换,并通过多头注意力机制进行融合,融合后进行上采样,得到密集二维MPI图像;The self-attention fusion network is configured to perform linear transformation by multiplying the particle concentration information, angle information, and correlation information between images of each sequentially encoded image with the corresponding weight matrix, and perform fusion through a multi-head attention mechanism, and fuse Afterwards, upsampling is performed to obtain a dense two-dimensional MPI image;
所述判别模型包括五个卷积神经网络模块;所述卷积神经网络模块基于依次连接的卷积层、正则化层和激活函数层构建;前四个卷积神经网络模块的激活函数层采用的激活函数为LeakyReLU,第五个卷积神经网络模块的激活函数层采用的激活函数为softmax。The discriminant model includes five convolutional neural network modules; the convolutional neural network module is constructed based on sequentially connected convolutional layers, regularization layers and activation function layers; the activation function layers of the first four convolutional neural network modules adopt The activation function of is LeakyReLU, and the activation function used in the activation function layer of the fifth convolutional neural network module is softmax.
所述技术领域的技术人员可以清楚的了解到,为描述的方便和简洁,上述描述的系统的具体的工作过程及有关说明,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the technical field can clearly understand that for the convenience and brevity of the description, the specific working process and relevant descriptions of the above-described system can refer to the corresponding process in the foregoing method embodiments, and will not be repeated here.
需要说明的是,上述实施例提供的一种基于生成对抗网络的磁粒子三维重建成像系统,仅以上述各功能模块的划分进行举例说明,在实际应用中,可以根据需要而将上述功能分配由不同的功能模块来完成,即将本发明实施例中的模块或者步骤再分解或者组合,例如,上述实施例的模块可以合并为一个模块,也可以进一步拆分成多个子模块,以完成以上描述的全部或者部分功能。对于本发明实施例中涉及的模块、步骤的名称,仅仅是为了区分各个模块或者步骤,不视为对本发明的不当限定。It should be noted that the GAN-based magnetic particle three-dimensional reconstruction and imaging system provided by the above embodiment is only illustrated by the division of the above functional modules. In practical applications, the above functions can be assigned by different functional modules, that is, to decompose or combine the modules or steps in the embodiments of the present invention. For example, the modules in the above embodiments can be combined into one module, or can be further split into multiple sub-modules to complete the above-described full or partial functionality. The names of the modules and steps involved in the embodiments of the present invention are only used to distinguish each module or step, and are not regarded as improperly limiting the present invention.
本发明第三实施例的一种存储装置,其中存储有多条程序,所述程序适用于由处理器加载并实现上述的一种基于生成对抗网络的磁粒子三维重建成像方法。A storage device according to the third embodiment of the present invention stores a plurality of programs, and the programs are suitable for being loaded by a processor to implement the above-mentioned three-dimensional reconstruction and imaging method of magnetic particles based on a generative adversarial network.
本发明第四实施例的一种处理装置,包括处理器、存储装置;处理器,适于执行各条程序;存储装置,适于存储多条程序;所述程序适于由处理器加载并执行以实现上述的一种基于生成对抗网络的磁粒子三维重建成像方法。A processing device according to the fourth embodiment of the present invention includes a processor and a storage device; the processor is suitable for executing various programs; the storage device is suitable for storing multiple programs; the program is suitable for being loaded and executed by the processor In order to realize the above-mentioned three-dimensional reconstruction and imaging method of magnetic particles based on generative confrontation network.
所述技术领域的技术人员可以清楚的了解到,为描述的方便和简洁,上述描述的存储装置、处理装置的具体工作过程及有关说明,可以参考前述方法实例中的对应过程,在此不再赘述。Those skilled in the technical field can clearly understand that for the convenience and brevity of the description, the specific working process and related instructions of the storage device and the processing device described above can refer to the corresponding process in the aforementioned method examples, and will not be repeated here. repeat.
本领域技术人员应该能够意识到,结合本文中所公开的实施例描述的各示例的模块、方法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,软件模块、方法步骤对应的程序可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。为了清楚地说明电子硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以电子硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art should be able to realize that the modules and method steps described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two, and that the programs corresponding to the software modules and method steps Can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or known in the technical field any other form of storage medium. In order to clearly illustrate the interchangeability of electronic hardware and software, the composition and steps of each example have been generally described in terms of functions in the above description. Whether these functions are performed by electronic hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may implement the described functionality using different methods for each particular application, but such implementation should not be considered as exceeding the scope of the present invention.
术语“第一”、“第二”、“第三”等是用于区别类似的对象,而不是用于描述或表示特定的顺序或先后次序。The terms "first", "second", "third", etc. are used to distinguish similar items, and are not used to describe or represent a specific order or sequence.
至此,已经结合附图所示的优选实施方式描述了本发明的技术方案,但是,本领域技术人员容易理解的是,本发明的保护范围显然不局限于这些具体实施方式。在不偏离本发明的原理的前提下,本领域技术人员可以对相关技术特征做出等同的更改或替换,这些更改或替换之后的技术方案都将落入本发明的保护范围之内。So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings, but those skilled in the art will easily understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principles of the present invention, those skilled in the art can make equivalent changes or substitutions to related technical features, and the technical solutions after these changes or substitutions will all fall within the protection scope of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310047876.0A CN115880440B (en) | 2023-01-31 | 2023-01-31 | Magnetic particle three-dimensional reconstruction imaging method based on generation countermeasure network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310047876.0A CN115880440B (en) | 2023-01-31 | 2023-01-31 | Magnetic particle three-dimensional reconstruction imaging method based on generation countermeasure network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115880440A CN115880440A (en) | 2023-03-31 |
CN115880440B true CN115880440B (en) | 2023-04-28 |
Family
ID=85758588
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310047876.0A Active CN115880440B (en) | 2023-01-31 | 2023-01-31 | Magnetic particle three-dimensional reconstruction imaging method based on generation countermeasure network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115880440B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116563412B (en) * | 2023-06-26 | 2023-10-20 | 中国科学院自动化研究所 | MPI image reconstruction method, system and equipment based on sparse system matrix |
CN116797739B (en) * | 2023-07-07 | 2024-09-06 | 深圳市魔数智擎人工智能有限公司 | Real tree interactive modeling method based on sparse image |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021017372A1 (en) * | 2019-08-01 | 2021-02-04 | 中国科学院深圳先进技术研究院 | Medical image segmentation method and system based on generative adversarial network, and electronic equipment |
CN113808234A (en) * | 2021-11-08 | 2021-12-17 | 北京航空航天大学 | Rapid magnetic particle imaging reconstruction method based on undersampling |
CN113850883A (en) * | 2021-10-14 | 2021-12-28 | 北京航空航天大学 | Magnetic particle imaging reconstruction method based on attention mechanism |
CN114792287A (en) * | 2022-03-25 | 2022-07-26 | 南京航空航天大学 | Medical ultrasonic image super-resolution reconstruction method based on multi-image fusion |
CN115409945A (en) * | 2022-09-01 | 2022-11-29 | 中国科学院自动化研究所 | Three-dimensional magnetic particle imaging system and method for quantitative analysis by fusing imaging parameters |
CN115526946A (en) * | 2022-10-13 | 2022-12-27 | 中国科学院自动化研究所 | Magnetic Particle Imaging Image Denoising Method, System, and Equipment Based on Feature Fusion |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110420026B (en) * | 2019-07-15 | 2020-05-19 | 中国科学院自动化研究所 | Magnetic particle imaging three-dimensional reconstruction method, system and device based on FFL |
-
2023
- 2023-01-31 CN CN202310047876.0A patent/CN115880440B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021017372A1 (en) * | 2019-08-01 | 2021-02-04 | 中国科学院深圳先进技术研究院 | Medical image segmentation method and system based on generative adversarial network, and electronic equipment |
CN113850883A (en) * | 2021-10-14 | 2021-12-28 | 北京航空航天大学 | Magnetic particle imaging reconstruction method based on attention mechanism |
CN113808234A (en) * | 2021-11-08 | 2021-12-17 | 北京航空航天大学 | Rapid magnetic particle imaging reconstruction method based on undersampling |
CN114792287A (en) * | 2022-03-25 | 2022-07-26 | 南京航空航天大学 | Medical ultrasonic image super-resolution reconstruction method based on multi-image fusion |
CN115409945A (en) * | 2022-09-01 | 2022-11-29 | 中国科学院自动化研究所 | Three-dimensional magnetic particle imaging system and method for quantitative analysis by fusing imaging parameters |
CN115526946A (en) * | 2022-10-13 | 2022-12-27 | 中国科学院自动化研究所 | Magnetic Particle Imaging Image Denoising Method, System, and Equipment Based on Feature Fusion |
Non-Patent Citations (2)
Title |
---|
Jiwon Kim 等.Accurate Image Super-Resolution Using Very Deep Convolutional Networks.IEEE:COMPUTE` .\R SOCIETY.2016,正文第1646-1654页. * |
基于改进超分辨率生成对抗网络的图像重建算法;查体博 等;基于改进超分辨率生成对抗网络的图像重建算法;第58卷(第8期);08100050-1-11 * |
Also Published As
Publication number | Publication date |
---|---|
CN115880440A (en) | 2023-03-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021159948A1 (en) | Deep learning-based low dose pet 3d reconstruction method | |
Wang et al. | Nerf-sr: High quality neural radiance fields using supersampling | |
Jiang et al. | Local implicit grid representations for 3d scenes | |
CN115880440B (en) | Magnetic particle three-dimensional reconstruction imaging method based on generation countermeasure network | |
CN110503654B (en) | A method, system and electronic device for medical image segmentation based on generative adversarial network | |
Anirudh et al. | Lose the views: Limited angle CT reconstruction via implicit sinogram completion | |
CN111340944B (en) | Single-image human body three-dimensional reconstruction method based on implicit function and human body template | |
CN110660123A (en) | Three-dimensional CT image reconstruction method and device based on neural network and storage medium | |
CN114723842B (en) | Sparse visual angle CT imaging method and device based on depth fusion neural network | |
CN109509235A (en) | Method for reconstructing, device, equipment and the storage medium of CT image | |
Liu et al. | Isotropic reconstruction of electron tomograms with deep learning | |
FR2886433A1 (en) | METHOD OF SEGMENTATION OF A SEQUENCE OF THREE DIMENSIONAL IMAGES, IN PARTICULAR IN PHARMACO-IMAGING. | |
CN111862255B (en) | Regularized image reconstruction method, regularized image reconstruction system, readable storage medium and regularized image reconstruction device | |
CN110503699A (en) | A CT image reconstruction method with reduced CT projection path | |
CN113850883A (en) | Magnetic particle imaging reconstruction method based on attention mechanism | |
CN115100185B (en) | Image processing method, device, computer equipment and storage medium | |
DE102021132981A1 (en) | THREE-DIMENSIONAL TOMOGRAPHY RECONSTRUCTION PIPELINE | |
CN102184559A (en) | Particle filtering-based method of reconstructing static PET (Positron Emission Tomograph) images | |
Zheng et al. | Identifying sets of favorable projections for few-view low-dose cone-beam CT scanning | |
Tran et al. | Multi-task learning for medical image inpainting based on organ boundary awareness | |
CN116188615A (en) | A Sparse Angle CT Reconstruction Method Based on Sine Domain and Image Domain | |
Lv et al. | A back‐projection‐and‐filtering‐like (BPF‐like) reconstruction method with the deep learning filtration from listmode data in TOF‐PET | |
CN112233227B (en) | CT projection graph generation method and device | |
CN115760670B (en) | Unsupervised hyperspectral fusion method and device based on network implicit priori | |
Du et al. | DRGAN: a deep residual generative adversarial network for PET image reconstruction |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |