Computational Intelligence in Image Processing 2018View this Special Issue
Research Article | Open Access
Wenjing Zhao, Yue Chi, Yatong Zhou, Cheng Zhang, "Image Denoising Algorithm Combined with SGK Dictionary Learning and Principal Component Analysis Noise Estimation", Mathematical Problems in Engineering, vol. 2018, Article ID 1259703, 10 pages, 2018. https://doi.org/10.1155/2018/1259703
Image Denoising Algorithm Combined with SGK Dictionary Learning and Principal Component Analysis Noise Estimation
SGK (sequential generalization of -means) dictionary learning denoising algorithm has the characteristics of fast denoising speed and excellent denoising performance. However, the noise standard deviation must be known in advance when using SGK algorithm to process the image. This paper presents a denoising algorithm combined with SGK dictionary learning and the principal component analysis (PCA) noise estimation. At first, the noise standard deviation of the image is estimated by using the PCA noise estimation algorithm. And then it is used for SGK dictionary learning algorithm. Experimental results show the following: (1) The SGK algorithm has the best denoising performance compared with the other three dictionary learning algorithms. (2) The SGK algorithm combined with PCA is superior to the SGK algorithm combined with other noise estimation algorithms. (3) Compared with the original SGK algorithm, the proposed algorithm has higher PSNR and better denoising performance.
In the image acquisition and transmission, noise is inevitably carried, which will reduce image quality, so image denoising has a very important significance. Image denoising algorithms can be divided into space domain denoising and frequency domain denoising. The former includes the mean filtering, median filtering, and Wiener filtering. The latter includes Fourier transform , Laplace transform , and wavelet transform . A series of postwavelet multiscale tools have been developed based on the wavelet theory to filter noise effectively such as curvelet , directionlet , bandelet , and shearlet .
In recent years, there are some novel denoising algorithms such as nonlocal mean  denoising, Gaussian mixture model denoising , and dictionary learning denoising  based on sparse representation . An image denoising method based on wavelet and SVD transforms improves denoising performance . Moreover, K-singular value decomposition (K-SVD)  based on overcomplete sparse representation has recently been the subject of intense research activity within the denoising community [14, 15]. However, K-SVD increases the iteration number when dealing with large data. So Sujit proposed the SGK  dictionary learning algorithm in 2013, which not only overcomes the drawbacks of ordinary dictionary learning that breaks the sparse coefficient structure but also can be applied to a variety of sparse representations, with the low complexity and fast calculation ability .
At present, many image denoising algorithms need to foreknow the noise standard deviation , but it is usually unknown in practice. So the noise estimation has been developed in the image denoising community. The classic image filtering in  estimates the noise standard deviation by the convolution of image and filter. The DCT of the image patch  concentrates the image structure in the low frequency coefficient region, so that the noise estimation can be performed by the high frequency coefficient. It is also common to estimate noise level by the grayscale value of the image . Patch-based local variance  generally estimates noise level by robust statistical algorithms. The Bayesian contraction algorithm  is used to denoise the image and analyze the autocorrelation of residuals in the range of noise standard deviation to find the true value. The distribution of the sideband filter response  can be divided into two parts according to the difference of the image and noise, which is calculated by the expected maximization . The kurtosis of the edge sideband filter response distribution  is constant for the noisy image, and a kurtosis model can be established and the noise standard deviation can be evaluated by finding the best parameters of the model. However, the above algorithms mostly assume that the image is uniform. For images with abundant textures, Pyatykh et al.  proposed PCA noise estimation based on the data patch, where the noise standard deviation can be estimated as the minimum eigenvalue of the image patch covariance matrix.
Based on the above considerations, a denoising algorithm combined with SGK dictionary learning and PCA noise estimation is proposed. Firstly, the image with additive Gaussian white noise is segmented, and the noise level is estimated by calculating the minimum eigenvalue of the image patch covariance matrix. Then the estimated noise standard deviation is entered into SGK dictionary learning algorithm to denoise the image. During the denoising process, each image patch is sparse and the sparse representation coefficient is calculated by pursuit algorithm. The dictionary atom is updated with the sparse representation coefficient; therefore a more accurate approximation of the image patch is obtained. The experimental results show that the proposed algorithm is superior to other algorithms in noise level estimation and has better denoising performance.
2. SGK Dictionary Learning Denoising Algorithm
2.1. Image Denoising Problem and SGK Dictionary Learning
SGK dictionary learning algorithm is a generalization of the -means clustering. It mainly consists of two stages: sparse coding stage and dictionary update stage when using SGK dictionary learning algorithm to perform denoising , and the flow chart is shown in Figure 1. SGK algorithm firstly processes image through the original DCT dictionary and then updates dictionary with the sparse representation coefficient. Each local patch extracted in the image is sparse-coded by new training dictionary to achieve the denoising performance.
2.2. Sparse Coding Stage
For an image of size added to additive white Gaussian noise , it constitutes a noisy image :
Assume that the dictionary consists of image atoms , where . represents a matrix that extracts patches of size in image , which is . For each local patch, the sparse representation can be represented by a dictionary :
For any patch in the image,
Therefore the global image representation is shown as
2.3. Dictionary Update Stage
In the dictionary update stage, updating each image’s atoms sequentially can minimize sparse representation error, which is denoted as
In (6), is the th component of . And the error matrix is composed of all these elements . So the error of the image patch can be expressed as
All these form the error matrix and also form vector containing corresponding , so it has
The closed-form solution of (9) is
It replaces all atoms with and SGK training dictionary is used to obtain the final sparse representation of the component for each extracted local patch. is obtained as
The final solution of the sparse representation error minimization problem is
3. Noise Estimation Theory
3.1. Noise Estimation Theory Based on PCA
Suppose that is a clean image with size of , and represents an image with additive white Gaussian noise . The noise variance is unknown, so it needs to be estimated. For , , and , each image contains patches with size . Since is the independent additive white Gaussian noise, there is and .
Suppose that and are, respectively, the sample covariance matrices of and . Meanwhile, are the eigenvalues of , and the corresponding eigenvectors are . Similarly, are the eigenvalues of , and corresponding eigenvectors are . represent the sample principal component of , and represents the sample variance, so it is shown as follows:where represents the sample variance.
In order to apply PCA to noise variance estimation, it defines positive integer . The clean image satisfies , and its dimension is less than the number of coordinates . So there is
And it is held for all . When considering the overall principal component, represents , where , , and , respectively, represent the overall covariance matrices of B, A, and W. Meanwhile, the minimum eigenvalues of and are zero, so the minimum eigenvalue of is . With the sample size tending to infinity, it meets
which represents the fact that converges to , so the noise variance can be estimated as and it is a consistent estimation of the noise level.
If the above assumptions hold, the expected values of can be calculated from the trigonometric inequality and (15):
The condition of (16) iswhere is a fixed value and it satisfies .
For the estimation of noise variance , it can be verified by (17). If (17) holds, is the final estimation. But if (17) cannot hold, it is necessary to extract a subset of the image patches with a small standard deviation. Performing noise estimation again to satisfy (17) is satisfied until the final noise estimation is obtained.
3.2. Estimate the Noise Level Based on PCA: An Example
Figure 2 is a PCA noise estimation example of the house image. Figure 2(a) is the house image, and Figure 2(b) shows the noise estimation results under the different noise standard deviation. It can be seen that the PCA noise estimation value is very close to the true value.
(a) House image
(b) Noise level estimation results
4. Experimental Results’ Analysis
The standard Kodak Photo CD benchmark was used to evaluate the performance of denoising algorithm. The size of some images is , and the size of other images is . The patches sizes of all images are 8 × 8.
4.1. Comparison of Four Dictionary Learning Denoising Algorithms
We conduct experiments for image denoising by using SGK, DCT, Global, K-SVD dictionary learning algorithms, and BM3D algorithms. The similarity of the first four algorithms is to build a dictionary and then use the dictionary to denoise. DCT algorithm denoises an image by sparsely representing each block with the overcomplete DCT dictionary, thus averaging the represented parts . Global algorithm denoises an image by training a dictionary on patches from the noisy image, sparsely representing each block with this dictionary and averaging the represented parts . K-SVD algorithm uses DCT dictionary to initialize and then uses singular value decomposition for dictionary updating . BM3D algorithm is an image signal denoising method based on transform domain enhancement sparse representation .
Throughout this experiment, we use SGK, DCT, Global, K-SVD, and BM3D algorithms to denoise the Barbara image with as an example. As shown in Figures 3(b)–3(f), the denoising results of five different algorithms are basically the same, and the image’s details are basically well preserved. In the following, we do quantitative comparisons between five algorithms, and the experimental data is shown in Table 1. The PSNR of the SGK is similar to that of K-SVD, and it is superior to Global, DCT, and BM3D algorithms. Encouragingly, we see that SGK runs much faster than K-SVD. As to the value of MSE, SGK is smaller than Global, DCT, and BM3D algorithms. With all the above-mentioned results, the denoising supremacy of SGK over the rest algorithms is demonstrated.
(a) Original Barbara image
(b) SGK denoised image
(c) DCT denoised image
(d) Global denoised image
(e) K-SVD denoised image
(f) BM3D denoised image
4.2. Comparison of SGK Combined with Different Noise Estimation Algorithms
In order to analyze the sensitivity of SGK algorithm to the noise level, the noise standard deviation is set as , respectively. SGK algorithm is used to denoise the Peppers image with different noise standard deviation.
Figure 4 shows the denoising experiment’s results using the SGK algorithm with different offsets. The five different colors curves, respectively, represent the case where the PSNR varies with the noise offsets if the noise standard deviation is given. It can be found in Figure 4 that the PSNR of denoised image is basically invariant when the noise standard deviation has negative offset of 0~−5% and the forward offset of 0~+5%. When the offset of noise standard deviation continues to increase, it shows a significant downward trend in −5%~−25% of the negative offset and 5% to 25% of forward offset, which indicates that the image’s PSNR is significantly reduced. Therefore the PSNR would be changed when the noise standard deviation has negative or forward offset, which shows that the SGK algorithm is sensitive to the offsets of the noise standard deviation. So it is necessary to estimate noise level before image denoising. If the estimated noise level is close to the true noise, the denoising results will be more accurate.
In order to analyze the performances of SGK dictionary denoising combined with different noise estimation algorithms, this paper also introduces four noise estimation algorithms: Kurtosis , local standard deviation distribution mode (Mode) , local standard deviation (Med) , and local standard deviation minimum (Min) .
Kurtosis assumes that the corresponding distribution of the kurtosis edge bandpass filter should be a constant for the noise-free images. However, the kurtosis at the entire scale of a noisy image may vary. Under this assumption, the noise standard deviation can be estimated by the kurtosis model.
Mode can divide image and the noise standard deviation is estimated according to the distribution pattern of the image’s local standard deviation. As the variance of noise is constant throughout the picture, it will affect every local variance value equally. As a result, the maximum of the bell-shaped distribution will reflect the local variance of the degraded image within homogeneous areas. This value is the mode of the distribution, and it is very close to the mode, so we can use the mode to estimate it.
Med estimates noise standard deviation based on the median of the image’s local standard deviation. If practical difficulties to properly estimate the mode arise, it may be useful to use the median operator instead, due to its greater simplicity and the fact that both parameters, albeit different, are not far apart in practice. So an alternative estimation procedure can be done.
Min estimates the noise standard deviation based on the minimum value of the local standard deviation of the images. Within a uniform area, the variance of the degraded image equals the variance of noise. According to the previous statement, one straightforward way to estimate standard deviation is to calculate the variance within homogeneous regions, where the variance of the original image is close to zero.
The above noise estimation algorithms are all combined with the SGK dictionary learning algorithm in this paper. Now we combine the five noise estimation algorithms mentioned above with SGK, respectively. The combined algorithms are referred to as PCA + SGK, Kurtosis + SGK, Mode + SGK, Med + SGK, and Min + SGK. Figure 5 shows the denoising results of the Lena image, where the noise standard deviation is set to . Analysis of Figure 5 leads to the following observation: the denoising performance of Mode + SGK in Figure 5(d) is slightly the worst, while the remaining four algorithms are basically the same. They all retain the details of the image in the denoising process.
(a) Original Lena image
(b) PCA + SGK
(c) Kurtosis + SGK
(d) Mode + SGK
(e) Med + SGK
(f) Min + SGK
In order to analyze the denoising performance of five algorithms quantitatively, additive Gaussian white noise images with are, respectively, denoised and compared in Table 2. The best results are shown in boldface. Experiments performed on noisy Lena image indicate that the proposed algorithm outperforms, in terms of estimation accuracy , estimation time, PSNR, and MSE, the four existing algorithms.
Figure 6 illustrates the performance of algorithms more intuitively varying with standard deviation. Figure 6(a) shows variation of noise estimation absolute error with the noise standard deviation. It can be seen that PCA + SGK has the least value, which is superior to the other four algorithms. So the estimation of PCA + SGK is the most accurate. Figure 6(b) shows the variation of the noise estimation time with the noise standard deviation. For the noise estimation time, Mode + SGK, Med + SGK, and Min + SGK are the least accurate, followed by PCA + SGK and Kurtosis + SGK. Figure 6(c) shows the variation of PSNR with the noise standard deviation. With the increase of standard deviation, PCA + SGK and Kurtosis + SGK keep the PSNR higher, followed by Med + SGK and Mode + SGK, and Min + SGK has the lowest PSNR. Figure 6(d) shows the variation of MSE with the noise standard deviation. In this experiment, PCA + SGK owns the lowest value of MSE, which means that the denoising performance is better than any of the other four algorithms.
(a) Variation of noise estimation absolute
(b) Variation of noise estimation time
(c) Variation of PSNR
(d) Variation of MSE
4.3. Denoising Experiment of Noisy Image with Unknown Standard Deviation
The above experiments presumably assumed that the standard deviation of the noise contained in the image is known. In order to demonstrate the advantage of the proposed PCA + SGK algorithm, it is used to denoise the noisy image with unknown standard deviation and compare it with the original SGK algorithm. Twelve classic original images are shown in Figure 7. These images are mixed into additive white Gaussian noise with unknown standard deviation. After that, we do PCA + SGK denoising and SGK denoising, respectively. When SGK is used for denoising, the standard deviation can only be guessed based on the noisy image or given a random value because the noise standard deviation is unknown. When PCA + SGK is used for denoising, the noise standard deviation is first estimated by PCA and thus is entered into SGK for denoising. Denoising results of the Cameraman image using these two algorithms are shown in Figure 8. Figure 8(a) shows the noise image with . Figure 8(b) shows the denoised image by SGK and Figure 8(c) shows the denoised image by PCA + SGK. The experiment testifies for the good performance of our approach. It can be seen that the denoising performance of PCA + SGK is better than SGK, which retains more details of the original image.
(a) Noisy Cameraman image
(b) SGK denoised image
(c) PCA + SGK denoised image
The denoising results of 12 images are shown in Table 3. It is seen that the PSNR of SGK is less than that of PCA + SGK; that is, PCA + SGK has better denoised performance than PCA. Because the standard deviation of noisy image is not given when using SGK, the noise level can only be guessed and entered into SGK for denoising. While using PCA + SGK to deal with noisy image, PCA is first used to estimate the standard deviation, and then the estimated value is entered into SGK for denoising, so the denoising performance is better. Quantitative comparisons with traditional SGK illustrate the benefits of PCA + SGK.
In this paper, the algorithm of PCA noise estimation combined with SGK dictionary learning was proposed to denoise image. The noisy image is first divided into patches, and the noise standard deviation is estimated by calculating the minimum eigenvalue of the image patch covariance matrix. After that, the estimated noise standard deviation is entered into SGK dictionary learning algorithm. The sparse representation of each training sample is obtained by sparse coding, and the dictionary atoms are updated by dictionary updating to denoise the image. This algorithm effectively solves the problem that the SGK algorithm requires a prior noise standard deviation for image denoising. This paper has the following three conclusions.
Firstly, the SGK dictionary learning algorithm is compared with K-SVD, DCT, Global, and BM3D algorithms. The PSNR of SGK algorithm and those of the other four algorithms do not have much difference, and the MSE of SGK algorithm is only higher than K-SVD algorithm. SGK algorithm owns great advantage in denoising time, which is much faster than K-SVD, DCT, and Global algorithms. Therefore, the SGK algorithm has the best denoising performance.
Secondly, the PCA algorithm is compared with the other four noise estimation algorithms: Kurtosis, Mode, Mad, and Min. The five algorithms are, respectively, combined with the SGK algorithm to denoise the additive Gaussian white noise images with different standard deviation. The absolute deviation of the noise estimated by PCA + SGK is the smallest, and it is better than the other four algorithms; that is, the noise standard deviation estimation of this algorithm is the most accurate. For the noise estimation time, Min + SGK, Med + SGK, and Mode + SGK all have a faster estimation and then it is PCA + SGK algorithm proposed in this paper and Kurtosis + SGK is the slowest. On the other hand, PCA + SGK and Kurtosis + SGK keep the high PSNR, followed by Med + SGK and Mode + SGK. The lowest PSNR is that of Min + SGK. At the same time, the MSE value of PCA + SGK is the lowest. So the denoising performance of proposed algorithm is better than the other four algorithms. It is found that the proposed algorithm is more accurate to estimate the noise standard deviation with faster denoising speed and good denoising performance.
Thirdly, PCA + SGK and SGK are, respectively, used to denoise the image with different standard deviation. Experiments show that PSNR of PCA + SGK is much higher than that of SGK. When using SGK for denoising, the noise standard is unclear, so the denoising performance is not good, while PCA + SGK firstly uses the PCA to estimate the noise standard deviation, which is close to the true value of the noise level, so the denoising performance is more ideal and the image’s details are better preserved. While performance improvement is different for different images, the results nonetheless indicate the potential of proposed algorithm over original SGK algorithms.
Conflicts of Interest
The authors declare that there are no conflicts of interest.
This work was supported by the Natural Science Foundation of Hebei Province (no. E2016202341) and Humanity and Social Science Foundation of Ministry of Education of China (15YJA630108).
- A. M. Scarfone, “Deformed Fourier transform,” Physica A: Statistical Mechanics and its Applications, vol. 480, pp. 63–78, 2017.
- N. Yalcin, E. Celik, and A. Gokdogan, “Multiplicative Laplace transform and its applications,” Optik - International Journal for Light and Electron Optics, vol. 127, no. 20, pp. 9984–9995, 2016.
- Y. Hel-Or and D. Shaked, “A discriminative approach for wavelet denoising,” IEEE Transactions on Image Processing, vol. 17, no. 4, pp. 443–457, 2008.
- J.-L. Starck, E. J. Candes, and D. L. Donoho, “The curvelet transform for image denoising,” IEEE Transactions on Image Processing, vol. 11, no. 6, pp. 670–684, 2002.
- V. Velisavljević, B. Beferull-Lozano, M. Vetterli, and P. L. Dragotti, “Directionlets: anisotropic multidirectional representation with separable filtering,” IEEE Transactions on Image Processing, vol. 15, no. 7, pp. 1916–1933, 2006.
- E. Le Pennec and S. Mallat, “Sparse geometric image representations with bandelets,” IEEE Transactions on Image Processing, vol. 14, no. 4, pp. 423–438, 2005.
- B. G. Bodmann, G. Kutyniok, and X. Zhuang, “Gabor shearlets,” Applied and Computational Harmonic Analysis, vol. 38, no. 1, pp. 87–114, 2015.
- A. Ben Said, R. Hadjidj, K. Eddine Melkemi, and S. Foufou, “Multispectral image denoising with optimized vector non-local mean filter,” Digital Signal Processing, vol. 58, pp. 115–126, 2016.
- X. Cong-Hua, C. Jin-Yi, and X. Wen-Bin, “Medical image denoising by generalised Gaussian mixture modelling with edge information,” IET Image Processing, vol. 8, no. 8, pp. 464–476, 2014.
- S. K. Sahoo and A. Makur, “Dictionary training for sparse representation as generalization of K-means clustering,” IEEE Signal Processing Letters, vol. 20, no. 6, pp. 587–590, 2013.
- S. Liu, L. Li, Y. Peng, G. Qiu, and T. Lei, “Improved sparse representation method for image classification,” IET Computer Vision, vol. 11, no. 4, pp. 319–330, 2017.
- M. Wang, Z. Li, X. Duan, and W. Li, “An image denoising method with enhancement of the directional features based on wavelet and SVD transforms,” Mathematical Problems in Engineering, vol. 2015, Article ID 469350, 9 pages, 2015.
- M. Elad and M. Aharon, “Image denoising via sparse and redundant representations over learned dictionaries,” IEEE Transactions on Image Processing, vol. 15, no. 12, pp. 3736–3745, 2006.
- M. Aharon, M. Elad, and A. Bruckstein, “K-SVD: An algorithm for designing overcomplete dictionaries for sparse representation,” IEEE Transactions on Signal Processing, vol. 54, no. 11, pp. 4311–4322, 2006.
- B. Dumitrescu and P. Irofti, “Regularized K-SVD,” IEEE Signal Processing Letters, vol. 24, no. 3, pp. 309–313, 2017.
- P. Jiang and J.-Z. Zhang, “Fast and reliable noise level estimation based on local statistic,” Pattern Recognition Letters, vol. 78, pp. 8–13, 2016.
- D.-H. Shin, R.-H. Park, S. Yang, and J.-H. Jung, “Block-based noise estimation using adaptive gaussian filtering,” IEEE Transactions on Consumer Electronics, vol. 51, no. 1, pp. 218–226, 2005.
- N. N. Ponomarenko, V. V. Lukin, M. S. Zriakhov, A. Kaarna, and J. Astola, “An automatic approach to lossy compression of AVIRIS images,” in Proceedings of the 2007 IEEE International Geoscience and Remote Sensing Symposium, (IGARSS '07), pp. 472–475, Spain, June 2007.
- X. Liu, M. Tanaka, and M. Okutomi, “Single-image noise level estimation for blind denoising,” IEEE Transactions on Image Processing, vol. 22, no. 12, pp. 5226–5237, 2013.
- B. R. Corner, R. M. Narayanan, and S. E. Reichenbach, “Noise estimation in remote sensing imagery using data masking,” International Journal of Remote Sensing, vol. 24, no. 4, pp. 689–702, 2003.
- P. Wyatt and H. Nakai, “Developing nonstationary noise estimation for application in edge and corner detection,” IEEE Transactions on Image Processing, vol. 16, no. 7, pp. 1840–1853, 2007.
- A. Barducci, D. Guzzi, P. Marcoionni, and I. Pippi, “Assessing noise amplitude in remotely sensed images using bit-plane and scatterplot approaches,” IEEE Transactions on Geoscience and Remote Sensing, vol. 45, no. 8, pp. 2665–2675, 2007.
- W. Yao, “A note on EM algorithm for mixture models,” Statistics & Probability Letters, vol. 83, no. 2, pp. 519–526, 2013.
- D. Zoran and Y. Weiss, “Scale invariance and noise in natural images,” in Proceedings of the 12th International Conference on Computer Vision (ICCV '09), pp. 2209–2216, October 2009.
- S. Pyatykh, J. Hesser, and L. Zheng, “Image noise level estimation by principal component analysis,” IEEE Transactions on Image Processing, vol. 22, no. 2, pp. 687–699, 2013.
- K. Dabov, A. Foi, V. Katkovnik, and K. Egiazarian, “Image denoising with block-matching and 3D filtering,” in Proceedings of the Image Processing: Algorithms and Systems, Neural Networks, and Machine Learning, vol. 6064:, pp. 354–365, USA, January 2006.
- S. Aja-Fernández, G. Vegas-Sánchez-Ferrero, M. Martín-Fernández, and C. Alberola-López, “Automatic noise estimation in images using local statistics. Additive and multiplicative cases,” Image and Vision Computing, vol. 27, no. 6, pp. 756–770, 2009.
Copyright © 2018 Wenjing Zhao et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.