Sparse view tomography (CBCT and SPECT) reconstruction method based on multi-ray self-attention implicit neural representation
The sparse view tomographic reconstruction method through multi-ray self-attention implicit neural representation solves the image quality degradation and noise increase problems of CBCT and SPECT imaging technology under sparse view conditions, achieves high-quality three-dimensional image reconstruction, and simplifies calculations process and improves contrast and clarity.
Patent Information
- Application Number
- CN202410756953.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-10-01
AI Technical Summary
Existing CBCT and SPECT imaging technologies suffer from image quality degradation and noise increase when reconstructing images under sparse view conditions. Traditional methods are computationally complex and time-consuming, and learning-based methods require large-scale data sets for network training.
A sparse view tomographic reconstruction method based on multi-ray self-attention implicit neural representation is used to obtain sampling points in the three-dimensional space through ray sampling, a multi-resolution hash encoder is used for position encoding, and the Transformer network is used to learn sampling within the window of interest. The inner connection of the points, synthesizes the projection image from the new perspective, and optimizes the network by minimizing the real projection and synthetic projection errors.
The image quality of sparse view tomographic reconstruction is improved, achieving higher contrast and clearer picture quality, while reducing the noise level, further improving the effect of tomographic reconstruction compared with traditional deep learning methods.
Smart Images

Figure CN118736112A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of biomedical image reconstruction, and in particular to a sparse view tomography (CBCT and SPECT) reconstruction method based on multi-ray self-attention implicit neural representation. Background Art
[0002] In the field of medical imaging, cone beam computed tomography (CBCT) and single photon emission computed tomography (SPECT) are two widely used imaging techniques. CBCT plays an important role in dentistry and orthopedics with its high-resolution three-dimensional imaging capabilities, while SPECT has shown its unique value with its advantages in functional imaging, especially in the assessment of heart disease, neurological diseases and cancer. However, while these two imaging techniques provide valuable information for medical diagnosis, they may also cause certain harm to the human body, mainly in terms of radiation exposure. Excessive radiation not only increases the risk of cancer in patients, but may also cause other long-term effects on the health of the body. In order to reduce these potential harms, researchers have explored strategies such as reducing the projection angle and reducing the intensity of the rays, in order to minimize the radiation dose while ensuring the quality of the image.
[0003] In the field of CBCT and SPECT image reconstruction, three main methods are traditionally used: analytical methods, iterative methods, and learning-based methods. Analytical methods reconstruct images by directly mathematically transforming projection data. The FDK algorithm is widely used in CBCT reconstruction, while the FBP algorithm is a typical example in SPECT and other tomographic imaging techniques. In contrast, iterative methods optimize and improve image quality through a process of gradual approximation. It continuously adjusts the image to better fit the projection data, thereby achieving a more accurate reconstruction effect. Although these two methods have their own advantages, they both face certain defects when the projection angle is insufficient. Analytical methods often lead to degraded image quality when data is sparse, especially the problem of increased artifacts and noise in the image. Although iterative methods perform better in processing sparse data and noise reduction, the calculation process is relatively complex and time-consuming, especially in medical applications that require high resolution and high-quality reconstruction. With the rise of artificial intelligence, learning-based methods have become increasingly popular in tomographic reconstruction. These methods use deep neural networks to predict and extrapolate projection data and estimate imaging physical quantities through regression of similar data. Among them, most methods require large-scale data sets for network training and rely on neural networks to memorize the characteristics of tomographic images. Therefore, a sparse view tomography (CBCT and SPECT) reconstruction method based on multi-ray self-attention implicit neural representation is invented. Summary of the invention
[0004] In view of the above-mentioned and / or existing problems in a sparse view tomography (CBCT and SPECT) reconstruction method based on multi-ray self-attention implicit neural representation, the present invention is proposed.
[0005] Therefore, the purpose of the present invention is to provide a sparse view tomography (CBCT and SPECT) reconstruction method based on multi-ray self-attention implicit neural representation, which obtains sampling points in three-dimensional space through ray sampling; uses a multi-resolution hash encoder to positionally encode the coordinates of the sampling points; reorganizes neighboring sampling points on adjacent rays into a window of interest; uses Transformer as a query network, and uses its self-attention mechanism to learn the intrinsic connection of the sampling points in the window of interest; eliminates the window to restore the initial order of the sampling points; uses a projection synthesis formula to synthesize a projection image of a new perspective; minimizes the error between the real projection and the synthesized projection to optimize the network; and reconstructs the image using a trained Transformer network, which can solve the above-mentioned existing problems.
[0006] To solve the above technical problems, according to one aspect of the present invention, the present invention provides the following technical solutions:
[0007] A sparse view tomography (CBCT and SPECT) reconstruction method based on multi-ray self-attention implicit neural representation includes the following specific steps:
[0008] S1: Obtain sampling points in three-dimensional space through ray sampling;
[0009] S2: Use a multi-resolution hash encoder to position encode the coordinates of the sampling points;
[0010] S3: reorganize the adjacent sampling points on the adjacent rays into the window of interest;
[0011] S4: Use Transformer as the query network and exploit its self-attention mechanism to learn the intrinsic connections between sampled points within the window of interest;
[0012] S5: Eliminate the window to restore the original order of sampling points;
[0013] S6: Synthesize the projection image of the new perspective using the projection synthesis formula;
[0014] S7: Optimize the network by minimizing the error between the real and synthesized projections;
[0015] S8: Reconstruct the image using the trained Transformer network.
[0016] As a preferred solution of the sparse view tomography (CBCT and SPECT) reconstruction method based on multi-ray self-attention implicit neural representation described in the present invention, wherein: for each input projection image in S1, 1024 rays will be generated, each ray will be sampled at uniform intervals, and N points will be selected, where the value of N must exceed the maximum dimension of the image.
[0017] As a preferred solution of the sparse view tomography (CBCT and SPECT) reconstruction method based on multi-ray self-attention implicit neural representation described in the present invention, wherein: in S2, multi-resolution hash coding is used as a position encoder, and its implementation process is shown in the following formula:
[0018]
[0019] Among them, p represents the spatial point to be queried, and Θ refers to the set of feature lookup tables of size T learned for each voxel grid. By using the multi-resolution hash encoder to query the feature lookup table corresponding to the query point p, the corresponding feature vectors can be retrieved for the adjacent vertices c of point p at L multi-resolution levels.
[0020] As a preferred solution of a sparse view tomography (CBCT and SPECT) reconstruction method based on multi-ray self-attention implicit neural representation described in the present invention, wherein: S3 is a window reorganization operation, which divides the sampling points on each ray into Q partitions with the same number of sampling points, each partition contains N / Q sampling points, and then determines an interest window covering R partitions on R adjacent rays, wherein the R partitions in the cone beam geometry have the same radial distance and the same depth in the parallel beam geometry. Based on this, each interest window is composed of R×N / Q sampling points, and the interest windows do not overlap with each other, so that the entire domain can be divided into 1024×Q / R independent interest windows.
[0021] As a preferred solution of the sparse view tomography (CBCT and SPECT) reconstruction method based on multi-ray self-attention implicit neural representation described in the present invention, wherein: in S4, a Transformer network is used to represent the three-dimensional scene, all the obtained windows of interest are input into the network, and the intrinsic connection between the sampling points in each window of interest is captured through the self-attention mechanism of the Transformer. In addition, the network introduces a skip connection operation to connect the output of the position encoding with the output through the Transformer module. After that, the network finally outputs through a single-neuron fully connected layer. After activation using the sigmoid function, the result obtained represents the attenuation coefficient or activity value of each sampling point.
[0022] As a preferred solution of the sparse view tomography (CBCT and SPECT) reconstruction method based on multi-ray self-attention implicit neural representation described in the present invention, wherein: the Transformer network is a single-layer Transformer structure composed of a multi-head self-attention module and a multi-layer perceptron module.
[0023] As a preferred solution of the sparse view tomography (CBCT and SPECT) reconstruction method based on multi-ray self-attention implicit neural representation described in the present invention, wherein: S5 is the inverse operation of the window reorganization process, and the sampling points in the window of interest are rearranged back to their original rays according to the point index, so as to effectively release the sampling points from the window of interest and redistribute them to the corresponding rays in the three-dimensional space.
[0024] As a preferred solution of the sparse view tomography (CBCT and SPECT) reconstruction method based on multi-ray self-attention implicit neural representation described in the present invention, wherein: the synthetic projection formula of the CBCT data set in S6 is:
[0025]
[0026] Where I0 represents the incident intensity of X-rays, μ i is the attenuation coefficient of the sampling point output by the network, δ i =‖p i+1 -p i ‖ is the distance between adjacent points;
[0027] The synthetic projection formula of the SPECT data set is:
[0028]
[0029] Where I represents the intensity of the gamma ray, λ i represents the activity value of the sampling point, δ i =‖p i+1 -p i ‖ is the distance between adjacent points.
[0030] As a preferred solution of the sparse view tomography (CBCT and SPECT) reconstruction method based on multi-ray self-attention implicit neural representation described in the present invention, wherein: the model is optimized by minimizing the L2 error between the real projection and the synthetic projection in S7, and the loss function used is defined as follows:
[0031]
[0032] Among them, B is a ray batch, I r (r) and Is (r) represents the real projection and synthesized projection of ray r respectively. The multi-resolution hash encoder Θ and the underlying physical quantity representation field Φ are optimized simultaneously during the training process.
[0033] As a preferred solution of the sparse view tomography (CBCT and SPECT) reconstruction method based on multi-ray self-attention implicit neural representation described in the present invention, wherein: different strategies are used in S8 to reconstruct the projection images of CBCT and SPECT;
[0034] For CBCT: the three-dimensional attenuation field is discretized into a uniform grid, each grid corresponds to a sampling point, and the trained Transformer network takes the coordinates of the sampling points as input, directly predicts the corresponding attenuation coefficients at each sampling point, and then directly outputs the reconstructed image;
[0035] For SPECT: The trained Transformer network is used to synthesize projections of new perspectives, and the Preconditioned Alternating Projection Algorithms reconstruction algorithm is further applied to reconstruct the SPECT image based on the combined projection image set of real and synthetic projections.
[0036] Compared with existing technologies:
[0037] By using an implicit neural representation method, the present invention is able to reconstruct three-dimensional images under the condition of sparse view projection. Secondly, by using a multi-resolution hash encoder, the scene can be encoded at multiple resolution levels, aiming to adaptively capture high-frequency and low-frequency features in three-dimensional space by flexibly adjusting the resolution of the data. Then, through a window reorganization operation, the sampling points in adjacent areas are grouped into different windows of interest, and the self-attention mechanism of the Transformer network is used to learn the intrinsic connection between the sampling points in different windows of interest, which can effectively improve the image quality of 3D reconstruction. Therefore, the beneficial effect of the present invention is to achieve high-quality results of sparse view tomography (CBCT and SPECT) reconstruction, which can further improve the quality of tomography reconstructed images compared to traditional deep learning methods.
[0038] In addition, the present invention has been proved to be feasible through experiments. The experimental results show that the present invention improves the quality of the reconstruction results of sparse view tomography (CBCT and SPECT), which is manifested in higher contrast, clearer image quality, and lower noise level. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 It is a schematic diagram of the overall model framework of the present invention;
[0040] Figure 2This is a visual effect diagram of the sparse view CBCT reconstructed image of the present invention;
[0041] Figure 3 This is a visual effect diagram of the sparse view SPECT reconstructed image of the present invention. DETAILED DESCRIPTION
[0042] In order to make the objectives, technical solutions and advantages of the present invention more clear, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
[0043] The present invention provides a sparse view tomography (CBCT and SPECT) reconstruction method based on multi-ray self-attention implicit neural representation, please refer to Figure 1-Figure 3 ;
[0044] The specific steps are as follows:
[0045] S1( Figure 1 a): Obtain sampling points in three-dimensional space through ray sampling;
[0046] Specifically, for each input projection image, 1024 rays are generated, and each ray is sampled at uniform intervals to select N points, where the value of N must exceed the maximum dimension of the image; for example, for a 128×128×128 pixel chest CT image, 192 points are sampled on each ray;
[0047] S2( Figure 1 b): Use a multi-resolution hash encoder to position encode the coordinates of the sampling points;
[0048] Specifically, the multi-resolution hash code is used as a position encoder, and its implementation process is shown in the following formula:
[0049]
[0050] Here, p represents the spatial point to be queried, and Θ refers to a set of feature lookup tables of size T learned for each voxel grid. By using a multi-resolution hash encoder to query the feature lookup table corresponding to the query point p, the corresponding feature vectors for the adjacent vertices c of the point p can be retrieved at L multi-resolution levels. Specifically, at each resolution level: (1) the hash function h can be used to determine the corresponding feature value H for each adjacent vertex c of the query point p in the three-dimensional space; (2) based on the relative position of the query point p in its surrounding voxels (defined by the adjacent vertices c), the retrieved features are linearly interpolated. (3) After the interpolated feature vectors obtained at all resolution levels are merged together, the final multi-resolution feature representation of the query point p is constructed;
[0051] S3( Figure 1 c): Reorganize the adjacent sampling points on adjacent rays into the window of interest;
[0052] Specifically, it is a window reorganization operation, which divides the sampling points on each ray into Q partitions with the same number of sampling points, each partition contains N / Q sampling points, and then determines an interest window covering R partitions on R adjacent rays (one partition for each ray), where the R partitions in cone-beam geometry have the same radial distance and the same depth in parallel-beam geometry. Based on this, each interest window consists of R×N / Q sampling points, and the interest windows do not overlap, so the entire domain can be divided into 1024×Q / R independent interest windows;
[0053] S4( Figure 1 d): Use Transformer as the query network and use its self-attention mechanism to learn the intrinsic connections between the sampled points in the window of interest;
[0054] Specifically, a Transformer network is used to represent the three-dimensional scene, and all the obtained windows of interest are input into the network. The intrinsic connection between the sampling points in each window of interest is captured through the Transformer's self-attention mechanism. In addition, the network introduces a jump connection operation to connect the output of the position encoding with the output through the Transformer module, thereby further enhancing the original position information of each sampling point. The number of channels D of the Transformer network is 128 and 32 in CBCT data and SPECT data, respectively. After that, the network finally outputs through a single-neuron fully connected layer. After being activated by the sigmoid function, the result obtained represents the attenuation coefficient (CBCT data) or activity value (SPECT data) of each sampling point. Among them, the Transformer network is a single-layer Transformer structure composed of a multi-head self-attention module and a multi-layer perceptron module.
[0055] S5( Figure 1 f): Eliminate the window to restore the original order of sampling points;
[0056] Specifically, it is the reverse operation of the window reorganization process, which rearranges the sampling points in the window of interest back to their original respective rays according to the point index, so as to effectively release the sampling points from the window of interest and redistribute them to the corresponding rays in the three-dimensional space;
[0057] S6( Figure 1 g): using the projection synthesis formula to synthesize the projection image of the new perspective;
[0058] Specifically: The synthetic projection formula of the CBCT data set is:
[0059]
[0060] Where I0 represents the incident intensity of X-rays, μ i is the attenuation coefficient of the sampling point output by the network, δ i =‖p i+1 -p i ‖ is the distance between adjacent points;
[0061] The synthetic projection formula of the SPECT data set is:
[0062]
[0063] Where I represents the intensity of the gamma ray, λ i represents the activity value of the sampling point, δ i =‖p i+1 -p i ‖ is the distance between adjacent points;
[0064] S7( Figure 1 h): optimize the network by minimizing the error between the real projection and the synthesized projection;
[0065] Specifically, the model is optimized by minimizing the L2 error between the real projection and the synthetic projection. The loss function used is defined as follows:
[0066]
[0067] Among them, B is a ray batch, I r (r) and I s (r) represents the real projection and synthetic projection of ray r, respectively. The multi-resolution hash encoder Θ and the underlying physical quantity representation field Φ are optimized simultaneously during the training process;
[0068] S8( Figure 1 ): Reconstruct the image using the trained Transformer network;
[0069] Specifically: different strategies are used to reconstruct the projection images of CBCT and SPECT;
[0070] For CBCT: the three-dimensional attenuation field is discretized into a uniform grid, each grid corresponds to a sampling point, and the trained Transformer network takes the coordinates of the sampling points as input, directly predicts the corresponding attenuation coefficients at each sampling point, and then directly outputs the reconstructed image;
[0071] For SPECT: The trained Transformer network is used to synthesize projections of new perspectives. Based on the combined projection image set of real and synthetic projections, the Preconditioned Alternating Projection Algorithms (TV-PAPA) reconstruction algorithm is further applied to reconstruct the SPECT image.
[0072] The entire algorithm of the present invention is tested in Ubuntu 16.04.1 (64-bit) system, where the CPU is Intel Xeon Silver 4210R (2.4GHz) and the graphics card model is GeForce RTX 3090 (8GB video memory). In programming, the Pytorch1.8.0 platform is used to build the network model.
[0073] In addition, the CBCT experimental data used in the present invention was obtained through the tomography toolbox TIGRE, and 50 projections with 3% noise were obtained within a range of 180° as training data, and these 50 projections were used to learn three-dimensional images. The SPECT experimental data was obtained through the Monte Carlo simulation software Simind, and the size of each view was 128×128. There are a total of 120 projection views in the 360-degree scan, and the training set is 1 view every 4 views, that is, 30 views are selected as the training set, and then all the remaining 90 projection views are rendered to generate.
[0074] Although the present invention has been described above with reference to the embodiments, various modifications may be made thereto and parts thereof may be replaced by equivalents without departing from the scope of the present invention. In particular, as long as there is no structural conflict, the various features in the embodiments disclosed in the present invention may be used in combination with each other in any manner, and the fact that these combinations are not exhaustively described in this specification is only for the sake of omitting space and saving resources. Therefore, the present invention is not limited to the specific embodiments disclosed herein, but includes all technical solutions falling within the scope of the claims.
Claims
1. A sparse view tomography (CBCT and SPECT) reconstruction method based on multi-ray self-attention implicit neural representation, characterized in that: The specific steps are as follows: S1: Obtain sampling points in three-dimensional space through ray sampling; S2: Use a multi-resolution hash encoder to position encode the coordinates of the sampling points; S3: reorganize the adjacent sampling points on the adjacent rays into the window of interest; S4: Use Transformer as the query network and exploit its self-attention mechanism to learn the intrinsic connections between sampled points within the window of interest; S5: Eliminate the window to restore the original order of sampling points; S6: Synthesize the projection image of the new perspective using the projection synthesis formula; S7: Optimize the network by minimizing the error between the real and synthesized projections; S8: Reconstruct the image using the trained Transformer network.
2. A sparse view tomography (CBCT and SPECT) reconstruction method based on multi-ray self-attention implicit neural representation according to claim 1, characterized in that: In S1, for each input projection image, 1024 rays are generated, each ray is sampled at uniform intervals, and N points are selected, where the value of N must exceed the maximum dimension of the image.
3. A sparse view tomography (CBCT and SPECT) reconstruction method based on multi-ray self-attention implicit neural representation according to claim 1, characterized in that: In S2, multi-resolution hash coding is used as a position encoder, and its implementation process is shown in the following formula: Among them, p represents the spatial point to be queried, and Θ refers to the set of feature lookup tables of size T learned for each voxel grid. By using the multi-resolution hash encoder to query the feature lookup table corresponding to the query point p, the corresponding feature vectors can be retrieved for the adjacent vertices c of point p at L multi-resolution levels.
4. A sparse view tomography (CBCT and SPECT) reconstruction method based on multi-ray self-attention implicit neural representation according to claim 1, characterized in that: The S3 is a window reorganization operation, which divides the sampling points on each ray into Q partitions with the same number of sampling points, each partition contains N / Q sampling points, and then determines an interest window covering R partitions on R adjacent rays, wherein the R partitions in the cone beam geometry have the same radial distance and the same depth in the parallel beam geometry. Based on this, each interest window consists of R×N / Q sampling points, and the interest windows do not overlap each other, so the entire domain can be divided into 1024×Q / R independent interest windows.
5. A sparse view tomography (CBCT and SPECT) reconstruction method based on multi-ray self-attention implicit neural representation according to claim 1, characterized in that: In the S4, a Transformer network is used to represent the three-dimensional scene, all the obtained windows of interest are input into the network, and the intrinsic connection between the sampling points in each window of interest is captured through the self-attention mechanism of the Transformer. In addition, the network introduces a skip connection operation to connect the output of the position encoding with the output through the Transformer module. After that, the network finally outputs through a single-neuron fully connected layer. After activation with the sigmoid function, the result obtained represents the attenuation coefficient or activity value of each sampling point.
6. A sparse view tomography (CBCT and SPECT) reconstruction method based on multi-ray self-attention implicit neural representation according to claim 5, characterized in that: The Transformer network is a single-layer Transformer structure consisting of a multi-head self-attention module and a multi-layer perceptron module.
7. A sparse view tomography (CBCT and SPECT) reconstruction method based on multi-ray self-attention implicit neural representation according to claim 1, characterized in that: S5 is the reverse operation of the window reorganization process, which rearranges the sampling points in the window of interest back to their original rays according to the point index, so as to effectively release the sampling points from the window of interest and redistribute them to the corresponding rays in the three-dimensional space.
8. A sparse view tomography (CBCT and SPECT) reconstruction method based on multi-ray self-attention implicit neural representation according to claim 1, characterized in that: The synthetic projection formula of the CBCT data set in S6 is: Where I0 represents the incident intensity of X-rays, μ i is the attenuation coefficient of the sampling point output by the network, δ i =‖p i+1 -p i ‖ is the distance between adjacent points; The synthetic projection formula of the SPECT data set is: Where I represents the intensity of the gamma ray, λ i represents the activity value of the sampling point, δ i =‖p i+1 -p i ‖ is the distance between adjacent points.
9. A sparse view tomography (CBCT and SPECT) reconstruction method based on multi-ray self-attention implicit neural representation according to claim 1, characterized in that: In S7, the model is optimized by minimizing the L2 error between the real projection and the synthesized projection, and the loss function used is defined as follows: Among them, B is a ray batch, I r (r) and I s (r) represents the real projection and synthesized projection of ray r respectively. The multi-resolution hash encoder Θ and the underlying physical quantity representation field Φ are optimized simultaneously during the training process.
10. A sparse view tomography (CBCT and SPECT) reconstruction method based on multi-ray self-attention implicit neural representation according to claim 1, characterized in that: In said S8, different strategies are adopted to reconstruct the projection images of CBCT and SPECT; For CBCT: the three-dimensional attenuation field is discretized into a uniform grid, each grid corresponds to a sampling point, and the trained Transformer network takes the coordinates of the sampling points as input, directly predicts the corresponding attenuation coefficients at each sampling point, and then directly outputs the reconstructed image; For SPECT: The trained Transformer network is used to synthesize projections of new perspectives. Based on the combined projection image set of real and synthetic projections, the Preconditioned Alternating Projection Algorithms reconstruction algorithm is further applied to reconstruct the SPECT image.
Citation Information
Cited By
Sparse view reconstruction system and method based on neural attenuation field
CN119180883A
