Next Article in Journal
Combining Forgetting Factor Recursive Least Squares and Adaptive Extended Kalman Filter Techniques for Dynamic Estimation of Lithium Battery State of Charge
Previous Article in Journal
Arduino-Based Sensor System Prototype for Microclimate Monitoring of an Experimental Greenhouse
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Proceeding Paper

Adaptive Wavelet Thresholding for Multiresolution Denoising Based on Image Size †

Graduate Institute of Communication Engineering, National Taiwan University, Taipei 106319, Taiwan
*
Author to whom correspondence should be addressed.
Presented at the 2025 IEEE 5th International Conference on Electronic Communications, Internet of Things and Big Data, New Taipei, Taiwan, 25–27 April 2025.
Eng. Proc. 2025, 108(1), 2; https://doi.org/10.3390/engproc2025108002
Published: 28 August 2025

Abstract

Hard thresholding is a common method for denoising wavelet coefficients. However, determining an optimal threshold remains challenging. Therefore, we propose an adaptive hard threshold that accounts for the size of the noisy image based on the statistical properties of the wavelet coefficient. Regression analysis is used to determine the adaptive threshold to ensure effective performance with multiresolution wavelet coefficients. The adaptive threshold enables a balance between denoising and high-frequency detail preservation, and excellent denoising performance. Multiple segmentations are conducted using the multiresolution properties of the wavelet transform, based on both image size and noise level, leading to the best denoising results.

1. Introduction

Image transmission or acquisition inevitably introduces noise. Common causes of the noise include excessive temperatures in electronic components or poor imaging conditions, such as insufficient lighting, which degrade image quality. Common types of noise include additive white Gaussian noise (AWGN), salt-and-pepper noise, and Poisson noise. These noises significantly reduce image quality, necessitating the development of algorithms to enhance image quality and improve the accuracy of post-processing.
Wavelet thresholding is a widely used denoising method with advantageous properties of wavelets. First, the sparsity property of wavelets helps separate signals from noise effectively. Second, multiresolution analysis enables observations at different scales, enabling a flexible capture of local image features and time–frequency distribution. Third, the discrete wavelet transform (DWT) allows for a fast and efficient implementation. These properties enable wavelet thresholding to efficiently remove noise while preserving edge details.
However, wavelet threshold denoising presents challenges in threshold selection and threshold function design. If threshold selection is set too high, it removes image details, while if it is too low, it fails to effectively remove the noise. Classic denoising methods include VisuShrink [1], SureShrink [2], and BayesShrink [3]. Regarding the threshold function design, two commonly used functions, hard thresholding and soft thresholding, are used. However, both have drawbacks, such as hard thresholding. Being manually set, hard thresholding introduces high-frequency artifacts near image edges, while soft thresholding suffers from large biases. To address these issues, semi-soft thresholding and non-negative garrote thresholding have been proposed as a trade-off between hard and soft thresholding: soft thresholding [4], non-negative garrote thresholding [5], and semi-soft thresholding [6,7].
In the wavelet thresholding denoising process, threshold selection and the number of decomposition levels play crucial roles. A fixed threshold does not enable optimal denoising performance. Therefore, we propose an adaptive thresholding method and decomposition level selection based on the noisy image to achieve better denoising performance. In this study, we used the least-squares method of regression analysis to find the relationship between the median of the wavelet coefficients and the corresponding threshold. This method was tested on images of different sizes. As the image size decreases, the slope of the line needs to be larger to correspond to an appropriate threshold. Therefore, we determined an adaptive threshold based on image size and the median of wavelet coefficients. We found that a lower threshold retains more true wavelet coefficients while achieving a peak signal-to-noise ratio (PSNR) similar to that of the optimal threshold. Finally, we used multiple segmentations to find the optimal number of cuts based on image and noise size.
This article is organized as follows: Section 2 provides a detailed introduction to the proposed method and presents the design flowchart. Section 3 provides experimental data and simulation results. Experimental results are discussed in Section 4. Section 5 concludes this article.

2. Materials and Methods

2.1. Adaptive Threshold Design

In wavelet thresholding denoising, the threshold significantly affects the effectiveness of noise removal. However, it is challenging to distinguish between noise and the signal components to be preserved. To address this, various methods have been proposed, based on statistical properties of the image or noise estimation techniques. Classical approaches include VisuShrink, SureShrink, and BayesShrink.
VisuShrink, introduced by Donoho, is one of the most commonly used methods for threshold selection. Its mathematical equation is as follows:
λ =   m e d i a n ( x _ H H ) 2 log M N / 0.6745
where λ represents the threshold, x_HH denotes the wavelet coefficients containing high-frequency information in both the horizontal and vertical directions, and M × N is the image size. However, this method applies a relatively fixed threshold, which makes the denoising performance less robust. As demonstrated in subsequent experiments, its effectiveness is often suboptimal. To address this limitation, we employed a regression analysis approach to explore the relationship between the median of wavelet coefficients and the optimal threshold for a more robust denoising performance.
By applying wavelet thresholding denoising with various threshold values, we observed that the relationship between the threshold and PSNR follows an S-curve (Figure 1). When the denoising performance reaches its optimal limit, increasing the threshold does not improve PSNR; instead, it deteriorates the image by removing more essential details. Based on this observation, we collected the threshold values at which PSNR reaches its peak and no longer exhibits significant variation, considering them as the most appropriate thresholds. This process yielded a set of data pairs consisting of appropriate thresholds and the median of wavelet coefficients. In other words, we systematically tested various thresholds on noisy images and recorded the corresponding PSNR after denoising. When PSNR stabilized without significant improvement, we selected the corresponding threshold as the optimal one.
To refine this process, we generated a large dataset by applying this method to multiple noisy images. Using these data pairs, we applied regression analysis with the least-squares method to derive a regression line that models the relationship between the appropriate threshold and the median of wavelet coefficients. The mathematical formulation is as follows:
A = m 1 1 m n 1   ,   b = t 1 t n   ,   x = x 1 x 2 ,
A T A x   =   A T b ,
= > x = ( A T A ) 1 A T b
where A is a n × 2 matrix, b is a n × 1 vector, x is a 2 × 1 vector, m i represents the median of the wavelet coefficients for the ith noisy image, t i denotes the corresponding optimal threshold, x 1 is the slope of the regression line, and x 2 is the y-intercept.
By utilizing the least-squares method with n samples, we obtained a regression line for a more accurate estimation of the threshold. In processing images with high noise levels, many conventional methods select excessively large thresholds, which severely degrade image details. In contrast, the developed method in this study, based on appropriate thresholds derived from real samples, better balances between noise removal and the preservation of original image features.
Next, we identified the regression line for images of different sizes and investigated whether the regression line exhibits variations between large and small images. As the image size increased, the slope of the regression line was reduced, which led to a more appropriate threshold. Based on the results, we developed an adaptive thresholding method that adjusts according to image size. The mathematical formulation is as follows:
λ = 4.75 m e d | x H H |   ,   i f   M N > 512 512 5.15 0.1 M N 256 256   m e d | x H H | ,   i f   512 512 > M N > 256 256 5.45 0.1 M N 128 128   m e d | x H H | ,   i f   256 256 > M N > 128 128   5.75 0.1 M N 64 64 m e d | x H H | ,   i f   128 128 > M N > 64 64 5.65 m e d | x H H |   , i f   M N < 64 64
where med | x H H | is a median function, and M × N represents the size of the wavelet coefficients, meaning that the effective size is one-fourth of the original image size.
This adaptive threshold enables the selection of an appropriate threshold across different conditions. The threshold is used to achieve the highest PSNR. However, PSNR can be lowered with a lower threshold, which helps preserve more image details. We discovered a common limitation shared by many threshold selection methods: when an image is affected by low-level noise, the selected threshold tends to be too high. In such cases, over-thresholding significantly impacts PSNR, even resulting in worse performance than without denoising. Therefore, we refined the developed threshold selection method to determine the optimal threshold even in the presence of low-level noise.

2.2. Improved Threshold Based on Low-Noise Conditions

In low-noise conditions, the threshold tends to be overestimated, significantly reducing the effectiveness of wavelet threshold denoising. To address this, we improved previous methods by introducing a decay factor to adjust the slope of the regression line, ensuring a more appropriate threshold selection. However, a new challenge exists as the slope reduction rate must be decided. To determine this, we replaced the dataset used in the previous regression analysis with a collection of low-noise images and then recomputed the regression line. This allowed us to obtain the precise slope required for low-noise conditions. Once the appropriate slope reduction was determined, we used the median of wavelet coefficients as an indicator of noise magnitude. Based on this estimation, we computed the decay factor accordingly. The final mathematical formulation is as follows:
D = 2 e m e d x H H 5.5 3    i f   | m e d x H H | 5.5 0.5 m e d x H H 4.75 i f   |   m e d x H H | < 5.5
where D is the decay factor, and med | x H H | is the median function, which is added to the slope of our proposed adaptive threshold to flatten it under low-noise conditions, while the noise level is determined using the median of wavelet coefficients.
When the noisy image contains almost no noise, the median wavelet coefficient approaches 1, causing the decay factor to reduce the slope to nearly zero. As a result, the threshold value also approaches zero, ensuring that when no noise is present, no wavelet coefficients are removed. Second, as the noise level increases, the decay factor gradually decreases, and when the median wavelet coefficient reaches 5.5, the decay factor is set to −2, a value derived from regression analysis. This adjustment helps select the optimal threshold. Third, once the median wavelet coefficient exceeds 5.5, the decay factor rapidly decreases to zero, reverting to the original adaptive threshold formulation. This design allows the threshold to effectively adjust based on noise levels.

2.3. Improved Threshold Based on Multiresolution

When using multiresolution, the threshold for denoising deeper wavelet coefficients must be decreased [8]. This is reasonable, as the deep layers of wavelet coefficients tend to become more biased toward low frequencies, which are typically the signal components rather than the noise. Therefore, reducing the number of wavelet coefficients to be removed and lowering the threshold is also inevitable.
λ N = λ e 1 + 1 / N + ln N + 1 1 / 2   ,   N 2
where λ i is the threshold used for the wavelet coefficients at the ith level, and N represents the number of levels to which the image is decomposed.

2.4. Improved Wavelet Denoising Algorithm

We integrated the improved methods into an algorithm to enhance wavelet threshold denoising. The algorithm enables the selection of the most appropriate threshold for any noise level and effective noise removal while preserving image details. Due to this advantage, the algorithm is well-suited for denoising algorithms, such as block-matching and 3d filtering (BM3D) [9], BM3D_DWT [10], and other wavelet-based denoising methods [11]. This algorithm addresses the issue of inaccurate matching when the image noise is too high. Figure 2 illustrates the flowchart of this algorithm.
Due to the characteristics of noise, the amount of noise removed from the spatial domain is limited. Therefore, the wavelet transform was employed to convert noisy images into the wavelet domain for processing. Noise and signals exhibit different characteristics. Signal components in the wavelet domain typically have larger coefficients, while noise components, with low correlation with the signal, tend to have smaller coefficients. By applying a threshold to remove small wavelet coefficients and then transforming the processed wavelet coefficients back to the familiar spatial domain, noise can be effectively removed. Therefore, we considered multiple decompositions in the denoising algorithm developed in this study.
The noisy image is transformed into the wavelet domain using two-dimensional discrete wavelet transform (2D-DWT), obtaining the first-level wavelet coefficients: low-frequency component (x1_LL), high-frequency component in the horizontal direction (x1_LH), high-frequency component in the vertical direction (x1_HL), and high-frequency component in both horizontal and vertical directions (x1_HH). The first-level low-frequency sub-band, x1_LL, is then further decomposed into relatively low-frequency and high-frequency components, generating the second-level wavelet coefficients (x2_LL, x2_LH, x2_HL, and x2_HH). This process is recursively applied to further decompose x2_LL, fully utilizing the multiresolution property of the wavelet transform. As a result, an appropriate number of decomposition levels is selected, and for each level, an optimal hard threshold is applied to remove noise from the wavelet coefficients. The denoised wavelet coefficients from the (n + 1)th level are combined to form the low-frequency subband of the nth level. This process is repeated until the final denoised image is reconstructed (Figure 1).

3. Results

Experiments and simulations were conducted using Python 3.9 in this study. The wavelet basis used in all cases was db8, and the thresholding function applied was hard thresholding. The regression analysis was conducted using samples from nine different images, each with nine different levels of noise added, resulting in 81 sample points. To ensure that variations in image texture did not affect the experimental results, a diverse set of images was used to compute the regression line. The PSNR calculation formula is as follows:
P S N R = 10 l o g   ( 255 2 M N I ^ x , y I x , y 2 )
where M N is the image size, I ^ x , y is the processed image, and I x , y is the original image. We use PSNR as the evaluation metric for image quality, with higher values indicating better quality.
In Figure 1, the star markers indicate the selected appropriate thresholds, which are not necessarily the thresholds that yield the highest PSNR. Because increasing the threshold further did not significantly improve PSNR, we chose the star positions and the wavelet coefficient median as a sample pair to select a slightly smaller threshold while achieving a similar denoising effect. Here, we defined the appropriate threshold as the point where PSNR growth is less than 0.01. Next, we used 81 sample pairs to compute the regression lines and tested image sizes of 1024 × 1024, 512 × 512, 256 × 256, and 128 × 128, resulting in four regression lines (Table 1). We disregarded the intercepts and, since images were not limited to these specific sizes, we linearly interpolated the slopes of the four regression lines. This approach ultimately led to an adaptive thresholding method based on image size.
To address the issue of inaccurate threshold selection in low-noise conditions, we modified the experimental samples by using the same nine images but introducing only low-level noise. This setting enabled a more precise observation of slope behavior in low-noise environments. When the image was affected by low noise, the median of the wavelet coefficients decreased. Therefore, we selected the median of the wavelet coefficients as an indicator to estimate the noise level in the image. When the median of the wavelet coefficients was 5.5, the slope was reduced by 2 to obtain an appropriate threshold. When the image contained no noise, the slope was reduced to 0, and we conducted linear interpolation to connect these two key points. Moreover, as noise levels increased, we employed the exponential function to rapidly decrease the decay factor to 0 to ensure a reasonable threshold selection.

4. Discussion

We compared the method of this study with other existing threshold selection methods. In Figure 3, the red line represents the PSNR obtained using a given threshold for wavelet denoising, the blue line represents the optimal threshold, the green line represents our method, the yellow line represents VisuShrink [1], the orange line represents BayesShrink [2], and the purple line represents SureShrink [3]. In Figure 3a, the case without the noise is shown. The cases of low noise, moderate noise, and high noise are shown in Figure 3b, 3c, and 3d, respectively. Before applying the decay factor, the method developed selected a relatively large threshold. However, in low-noise conditions, choosing an excessively large threshold even degraded the PSNR beyond the original value, indicating the necessity for improvement. After applying the decay factor and zooming in on the image, the selected threshold was reduced, making it closer to the optimal threshold and the closest compared with those of previous methods (Figure 3b). In moderate and high noise conditions, we selected an “appropriate” threshold.
Although the threshold is not the closest to the optimal threshold, the developed method sacrifices a nearly negligible amount of PSNR to achieve a significantly smaller threshold, to better preserve image details. We tested the method across various image sizes and found it to be highly competitive in all cases. The most competitive alternative is SureShrink, but it requires searching over a large range of thresholds and calculating risk, leading to significantly higher computational complexity than the developed method. VisuShrink and BayesShrink consistently select excessively large thresholds, resulting in the loss of important details. Table 2 presents the average values of the optimal decomposition levels based on image size and the median of the wavelet coefficients. This can be applied to estimate the optimal decomposition level.

5. Conclusions

In this study, we addressed the challenge of threshold selection using regression analysis by determining the most appropriate threshold rather than the optimal one to achieve a balanced trade-off between noise removal and detail preservation. We refined the developed method by introducing a slope decay factor for low-noise images and optimizing the number of decomposition levels to fully utilize the multiresolution properties of wavelets. Experimental results demonstrate that the developed method effectively adapts threshold selection based on noise level and image size, making it superior to classical methods. Its superior balance between noise reduction and detail preservation makes its preprocessing fit various denoising algorithms. It is still necessary to enhance the robustness and efficiency of the algorithm and improve the thresholding function beyond hard thresholding for better denoising performance.

Author Contributions

Conceptualization, C.-Y.T. and J.-J.D.; methodology, C.-Y.T.; software, C.-Y.T.; validation, C.-Y.T.; formal analysis, C.-Y.T. and J.-J.D.; investigation, C.-Y.T.; resources, C.-Y.T.; data curation, C.-Y.T.; writing—original draft, C.-Y.T.; writing—review and editing, C.-Y.T. and J.-J.D.; visualization, C.-Y.T.; supervision, J.-J.D.; project administration, J.-J.D.; funding acquisition, J.-J.D. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Science and Technology Council, Taiwan, under the contract of NSTC 113-2221-E-002-146.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

No new data were created.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Donoho, D.L.; Johnstone, J.M. Ideal spatial adaptation by wavelet shrinkage. Biometrika 1994, 81, 425–455. [Google Scholar] [CrossRef]
  2. Donoho, D.L.; Johnstone, I.M. Adapting to unknown smoothness via wavelet shrinkage. J. Am. Stat. Assoc. 1995, 90, 1200–1224. [Google Scholar] [CrossRef]
  3. Ruggeri, F.; Vidakovic, B. A Bayesian decision theoretic approach to the choice of thresholding parameter. Stat. Sin. 1999, 9, 183–197. [Google Scholar]
  4. Donoho, D.L. De-noising by soft-thresholding. IEEE Trans. Inf. Theory 1995, 41, 613–627. [Google Scholar] [CrossRef]
  5. Gao, H.Y. Wavelet shrinkage denoising using the non-negative garrote. J. Comput. Graph. Stat. 1998, 7, 469–488. [Google Scholar] [CrossRef]
  6. Antoniadis, A. Wavelet methods in statistics: Some recent developments and their applications. Stat. Surv. 2007, 1, 16–55. [Google Scholar] [CrossRef]
  7. Bruce, A.G.; Gao, H.Y. Waveshrink: Shrinkage functions and thresholds. In Wavelet Applications in Signal and Image Processing III; International Society for Optics and Photonics: Bellingham, WA, USA, 1995; Volume 2569, pp. 270–281. [Google Scholar]
  8. Zhu, G.; Liu, B.; Yang, P.; Fan, X. Image denoising method based on improved wavelet threshold algorithm. Multimed. Tools Appl. 2024, 83, 67997–68011. [Google Scholar] [CrossRef]
  9. Dabov, K.; Foi, A.; Katkovnik, V.; Egiazarian, K. Image denoising by sparse 3D transform-domain collaborative filtering. IEEE Trans. Image Process. 2007, 16, 2080–2095. [Google Scholar] [CrossRef] [PubMed]
  10. Chong, B.; Zhu, Y.K. Speckle reduction in optical coherence tomography images of human finger skin by wavelet modified BM3D filter. Opt. Commun. 2013, 291, 461–469. [Google Scholar] [CrossRef]
  11. Halidou, A.; Mohamadou, Y.; Ari, A.A.A.; Zacko, E.J.G. Review of wavelet denoising algorithms. Multimed. Tools Appl. 2023, 82, 41539–41569. [Google Scholar] [CrossRef]
Figure 1. PSNR distribution after denoising using this threshold. The curve follows an S-shape, and the star markers indicate the selected appropriate threshold. This figure is a bar graph and the red lines are the bars.
Figure 1. PSNR distribution after denoising using this threshold. The curve follows an S-shape, and the star markers indicate the selected appropriate threshold. This figure is a bar graph and the red lines are the bars.
Engproc 108 00002 g001
Figure 2. Flowchart of proposed algorithm.
Figure 2. Flowchart of proposed algorithm.
Engproc 108 00002 g002
Figure 3. Threshold vs. PSNR while comparing the results of different methods. (a) Under low-noise conditions before applying the decay factor. (b) Under lownoise conditions after applying the decay factor. (c) Under moderate noise conditions. (d) Under high-noise conditions. Note that, in (a), the dash lines of “Best” and “SURE” are overlapped. In (b), “Best” and “Regress” are overlapped and “Univ” is out of the range. In (d), “Univ” and “Bayes” are overlapped.
Figure 3. Threshold vs. PSNR while comparing the results of different methods. (a) Under low-noise conditions before applying the decay factor. (b) Under lownoise conditions after applying the decay factor. (c) Under moderate noise conditions. (d) Under high-noise conditions. Note that, in (a), the dash lines of “Best” and “SURE” are overlapped. In (b), “Best” and “Regress” are overlapped and “Univ” is out of the range. In (d), “Univ” and “Bayes” are overlapped.
Engproc 108 00002 g003
Table 1. Slopes of four regression lines.
Table 1. Slopes of four regression lines.
10242512225621282
x 1 4.715.135.295.6
x 2 5.50−1.87−3.9191.36
Table 2. Average values of optimal decomposition levels based on image size and median of wavelet coefficients, which can be used to estimate the optimal decomposition level.
Table 2. Average values of optimal decomposition levels based on image size and median of wavelet coefficients, which can be used to estimate the optimal decomposition level.
med ( | x H H | )4710131518212427
Size
102421.7722.112.222.782.893.003.003.56
51220.891.221.782.002.112.332.782.893.56
25620.891.001.782.112.442.673.672.893.45
12820.891.001.561.892.222.673.223.003.33
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Tsai, C.-Y.; Ding, J.-J. Adaptive Wavelet Thresholding for Multiresolution Denoising Based on Image Size. Eng. Proc. 2025, 108, 2. https://doi.org/10.3390/engproc2025108002

AMA Style

Tsai C-Y, Ding J-J. Adaptive Wavelet Thresholding for Multiresolution Denoising Based on Image Size. Engineering Proceedings. 2025; 108(1):2. https://doi.org/10.3390/engproc2025108002

Chicago/Turabian Style

Tsai, Chih-Yu, and Jian-Jiun Ding. 2025. "Adaptive Wavelet Thresholding for Multiresolution Denoising Based on Image Size" Engineering Proceedings 108, no. 1: 2. https://doi.org/10.3390/engproc2025108002

APA Style

Tsai, C.-Y., & Ding, J.-J. (2025). Adaptive Wavelet Thresholding for Multiresolution Denoising Based on Image Size. Engineering Proceedings, 108(1), 2. https://doi.org/10.3390/engproc2025108002

Article Metrics

Back to TopTop