Detailed Description
Referring to fig. 1, in one embodiment, a magnetic resonance image denoising method is disclosed, which includes the following steps:
s100: inputting and initializing an image y to be reconstructed;
s200: generating an initial population W according to the upper limit and the lower limit of the parameters of atoms of the image to be reconstructed;
s300: initializing iteration times, accelerating to search L optimal atoms by using a self-adaptive genetic algorithm, respectively matching residual signals by using the L optimal atoms, updating a candidate support set and the residual signals of the atoms to obtain a candidate support set of the iteration, and repeatedly executing S300 if the iteration times are less than the maximum iteration times;
s400: carrying out secondary screening on the obtained candidate support set;
s500: when the iteration requirement is met, finding out the candidate support set with the minimum corresponding residual error, restoring the reconstructed signal, and outputting a reconstruction result graph
In another embodiment, step S100 further comprises:
the initialization is as follows: the number of iterations k is 0 and the initial residual r0Y, initial set of candidate support sets S0And { phi }, the maximum number of iterations Ntem.
In another embodiment, the upper and lower limits of the atomic parameter are specifically set as follows:
atom gγThe lower limit of the parameter (x, y, s, θ) is bi ═ 0, 0, 0, 0]With the upper limit being bs ═ hx, hy, 2j,π]Hx, hy respectively represent the height and width of the image, j represents the index of the scale factor, and j is more than or equal to 1 and less than or equal to 4; where (x, y) represents the position of the atom, s represents a scale parameter of the atom, and θ represents the deflection angle of the atom.
In another embodiment, step S300 further comprises:
s301: when k < Ntem, the number of iterations: k is k +1, candidate index: u is 0, candidate support set: sk=φ;
S302: when 1 is more than or equal to i and less than or equal to | S
k-1L, accelerated search of the L optimal atoms using adaptive genetic algorithm
And using the L optimal atoms by calculating proj<r
i k-1,g
r>Matching of residual signals is performed, wherein | S
k-1I represents the number of candidate support set sets for the (k-1) th iteration; r is
i k-1Represents the ith residual of the (k-1) th iteration; proj represents a variable of the calculated inner product value, i represents a loop variable;
s303: when j is more than or equal to 1 and less than or equal to L, a temporary support set is established,
wherein S is
i k-1An ith support set representing a k-1 th iteration candidate support set; g
rjJ-th atom representing the optimal L atoms selected for the current candidate index;
s304: checking if there is a common support set, if
The candidate index u is updated to u +1 and the current candidate support set is updated
Updating a set of candidate support sets
Then updating the reconstructed signal
Re-updating residual signals
Otherwise, returning to step S303 until j equals L, ending step S303, returning to step S302, and forming the k-th candidate support set
In another embodiment, step S400 further comprises
When the number of iteration layers reaches a certain value, namely k is more than or equal to gamma, the candidate support set S is subjected to the set matching with the residual error signal according to the size of the corresponding residual error signal
kThe candidate support set in (1) is secondarily screened to remove the residual error with the maximum value
A candidate support set, where Γ represents a constant, specifying a particular number of iteration layers; u denotes the number of candidate index sets of the current iteration layer, and α denotes a constant used to calculate the number of pruned index sets.
The method utilizes the characteristics of excellent performance and small calculated amount of the genetic algorithm to solve the multi-parameter problem, adopts the self-adaptive genetic algorithm to optimize and realize the multi-path matching tracking algorithm, overcomes the defect that the traditional genetic algorithm is easy to fall into local optimization, searches the parameters of the characteristic structure of the optimal matching image, reduces the calculated amount to a great extent, and improves the decomposition speed and the reconstruction precision of the multi-path matching tracking algorithm.
In another embodiment, a two-dimensional Gabor function is used as a generating function of the atom dictionary, the two-dimensional Gabor function is obtained by multiplying a two-dimensional gaussian window function w (x, y) by a two-dimensional complex wave s (x, y), and g (x, y) ═ s (x, y) w (x, y), where the two-dimensional gaussian window function w (x, y) and the two-dimensional complex wave s (x, y) are respectively expressed as follows:
x′=(x-x
0)cosθ+(y-y
0)sinθ,y′=(y-y
0)cosθ-(x-x
0)sinθ,s(x,y)=exp(i(2π(u
0x+v
0y)) to obtain a two-dimensional Gabor kernel function, and obtaining a Gabor atomic cluster through translation and modulation, wherein the two-dimensional Gabor kernel function is expressed as follows:
wherein: x, y, x ', y' are position coordinates,
representing the ratio of the amplitudes of the Gaussian kernels, (u)
0,v
0) Representing frequency domain coordinates; four-dimensional parameter set gamma (x)
0,y
0S, θ) represents an atom, (x)
0,y
0) The position of a two-dimensional Gabor atom is represented, S represents a scale parameter of the atom, θ represents a deflection angle of the atom, and the two-dimensional complex wave S (x, y) is in a complex form.
The Gabor function proved to be similar to the receptive field of simple cells in the human visual system with good local characterization properties and directional selectivity. The method is sensitive to image edge information and has good performance in the local space domain and the frequency domain of the extracted target. Based on the advantage, the atom library generated by adopting the Gabor function as the basis function can well represent the spatial frequency (scale), the spatial position and the direction selectivity of the image.
The method takes a 4-dimensional parameter set gamma of a Gabor atom as a parameter to be optimized in the AGA (chromosome in a genetic algorithm), and takes an inner product of a residual signal and the atom as a fitness function of the genetic algorithm. The encoding mode of the parameters is real number encoding, so that no binary conversion is needed in the atom optimizing process, the algorithm is easy to understand, and the time is saved.
In another embodiment, the method calculates the probability of crossover and mutation according to the following equation. Wherein p isc_max=0.9,pc_min=0.6,pm_max=0.1,pm_minThe reason for this is mainly to guarantee the group at 0.01The cross probability and the variation probability of the individual with the maximum fitness value in the body are not 0, so that the algorithm jumps out of the local optimal solution.
Wherein f is
maxRepresenting the maximum fitness value in the population,
representing the mean fitness value of each generation population, f' representing the greater fitness value of the two individuals undergoing crossover, f representing the fitness value of the individual undergoing mutation, p
c_maxDenotes the maximum crossover probability, p
c_minDenotes the minimum crossover probability, p
m_maxDenotes the maximum mutation probability, p
m_minRepresenting the minimum mutation probability.
The following examples are illustrated in conjunction with fig. 2(a) to 8.
In the process of acquiring and imaging the MR image, the real part and the imaginary part of a signal are generally interfered by Gaussian additive noise with the same variance and zero mean, and the noise carried by the real part and the imaginary part is independent of each other. The obtained spatial data is subjected to a modulus operation after an inverse Fourier transform to obtain an MR image, at this time, noise in the image is no longer simple white gaussian noise, and is generally considered to be distributed in a rice (Rician) characteristic, and a probability density function is as follows:
wherein, I0Represents a modified zero-order Bessel function of the first kind, where A represents the peak of the signal amplitude and the Rice distribution transforms into a Rayleigh distribution when A → 0. The Rice distribution can be understood as the majority of the main signal and the obedient Rayleigh distributionThe sum of the path signal components. z is the envelope of the sine (cosine) signal plus the narrow-band gaussian random signal, and o ^2 is the power of the multipath signal component.
In one embodiment, a 256 x 256 standard test chart from Lena and Barbara is used, as shown in fig. 2(a), to which is added a rice noise with a signal to noise ratio of 20, as shown in fig. 2 (b). Fig. 2(c) -fig. 2(f) show the processing results of the median filtering, MP algorithm, MMP algorithm, and the present method on fig. 2(b), respectively. Wherein the template size of the median filter is 3 x 3, and the MP algorithm, MMP algorithm, and the method all utilize 2500 atoms for reconstruction.
The denoising results were evaluated from the subjective visual and objective evaluation indices peak signal-to-noise ratio (PSNR), as shown in fig. 3. Wherein the peak signal-to-noise ratio is calculated as follows:
in the formula (I), the compound is shown in the specification,
and x
pThe restored pixel values and the pixel values of the original image, the size of the image M × N, respectively. The larger the value of the peak signal-to-noise ratio. The better the representative image recovery.
In summary, the following results can be obtained: compared with other three algorithms, the traditional median filtering denoising method has the defects of weak noise suppression, smooth result graph and edge blurring; the MP algorithm, the MMP algorithm and the algorithm in the method have better suppression on noise, the MMP algorithm has fewer noise points in an image compared with a processing result of the MP algorithm, and the method is visually different from the MMP algorithm. Compared with the traditional median filtering algorithm, the method has longer running time, but shorter than MP algorithm and MMP algorithm. The reason for this is that the MP and MMP algorithms achieve the purpose of denoising based on sparse reconstruction of the atom dictionary, and an inner product needs to be calculated for each atom in the atom dictionary library and the residual signal to obtain the best atom in the iterative process, so the time for median filtering is long; the MMP algorithm needs to select a plurality of candidate atoms in each iteration to improve the reconstruction precision, so the time is longer than that of the MP algorithm; but the method introduces the self-adaptive genetic algorithm to accelerate the decomposition and reconstruction speed of the MMP algorithm, so the time is short. Compared with the PSNR value of the median filtering and MP algorithm, the method has the advantage that the PSNR value is improved.
In another embodiment, verification is performed using the image in the database of images of simulated brain images from Mcgcill university MR. The brain MR image is a T1-weighted image, the noise level is 7%, the size is 217 × 181, and the original image and the noise map are shown in fig. 4(a) and (b), respectively. Fig. 4(c-f) are the results of median filtering, MP algorithm, MMP algorithm, and the present method, respectively, on fig. 4 (b). Wherein MP, MMP and the process all use 2000 atoms for the reconstruction.
As shown in fig. 5, the PSNR value of the median filtered image is 30.6506dB, and the PSNR values of the MP algorithm, the MMP algorithm, and the method are 30.7408dB, 30.8693dB, and 30.9597dB, respectively, which shows that compared with other three comparison algorithms, the PSNR of the method is improved by 0.3091dB, 0.2189dB, and 0.1618dB, respectively. However, compared with the MP algorithm, the MMP algorithm improves accuracy and increases the running time of the algorithm correspondingly, mainly because the MMP algorithm selects a plurality of atoms to match residual signals in an iterative process, the method optimizes the MMP algorithm by using the genetic algorithm, accelerates the algorithm decomposition and reconstruction speed, and improves the PSNR value compared with the algorithm without the optimization.
In another embodiment, two of the three clinical MR images are breast MR images, as shown in the first and third rows of fig. 6 (a). The two sets of image data were derived from a standard 1.5T dual milk coil magnetic resonance scanner, siemens, germany, as a three-dimensional T1 weighted gradient echo sequence diagram after contrast enhancement. When scanning and imaging, the patient adopts a prone position, the mammary glands on the two sides naturally hang in the cavity of the breast coil, and the parameters are as follows: TR 5.6ms, TE 2.76ms, layer spacing 0.3mm, layer thickness 1.2mm, FOV 34 × 34cm, image size 512 × 512, and scanning time 60s each; the other set is brain MR images, as shown in fig. 7 (a). The image data is from the signa HDxT 3.0T magnetic resonance imaging system of GE company and is a T1 imaging sequence chart. The human head is in the front during scanning, is the supine position, and each parameter is: TR 3042.13ms, TE 11.77ms, 6mm interlayer spacing, 5mm thickness, DFOV 220mm, and image size 512 × 512.
Fig. 6(e) and fig. 7(e) show the results of the reconstruction of two groups of data by the method, and the results of the median filtering, MP algorithm and MMP algorithm are shown for comparison, as shown in fig. 6 and fig. 7(b) - (d). For a more intuitive comparison algorithm, the region with the lesion site (tumor) in the two clinical breast MR images in fig. 6(a) was truncated (second and fourth lines in fig. 6 (a)) and compared with the comparison algorithm. Meanwhile, the run-time comparison of the algorithms is given in fig. 8.
The data according to fig. 6(a) to 6(e), 7(a) to 7(e) and 8 are comprehensively analyzed: compared with other three algorithms, the traditional median filtering method has no difference in the suppression of the noise of the whole image, but compared with a local processing result, the processed result image has the defects of fuzzy edges, incomplete detail retention and the like, and particularly in the local processing result of a second mammary gland, the smoothness degree of the image edge is large, so that certain influence is generated on the extraction of subsequent image characteristics and the like; the MP algorithm, the MMP algorithm and the method are all used for noise suppression based on sparse representation essentially, and from the processing results of fig. 6(a) to 6(e), the left breasts (with focus parts) of the two mammary gland images are seen, and the method and the MMP algorithm have better quality for gland reconstruction than the MP algorithm. In the aspect of time consumption, as can be seen from the data in fig. 8, the time of the traditional median filtering is shortest, and the MMP algorithm has a longer running time than the MP algorithm, mainly because the MMP algorithm is an improvement on one candidate support set of the MP algorithm, so that a plurality of candidate support sets exist after each iteration is completed, but the method utilizes AGA to accelerate MMP decomposition and reconstruction. Therefore, the method can well retain the effective information of the original image, well inhibit noise, and relatively not increase time consumption, and can play a certain auxiliary role in subsequent clinical treatment.
Although the embodiments of the present invention have been described above with reference to the accompanying drawings, the present invention is not limited to the above-described embodiments and application fields, and the above-described embodiments are illustrative, instructive, and not restrictive. Those skilled in the art, having the benefit of this disclosure, may effect numerous modifications thereto without departing from the scope of the invention as defined by the appended claims.