Abstract
Inverse parameterizations of length 12 orthogonal wavelet filters are presented, which allow to determine parameter values from filter coefficients. Its applicability is shown in a case of study of image processing where the optimization of five parameters is required. The parameterization of length N filters involves
Introduction
In wavelet analysis, a fundamental concept is that the wavelet transform develops the convolution between a signal f and wavelet basis [1]. In particular, the analysis of f can be implemented with the discrete wavelet transform by convolving f with low-pass and high-pass filters. For a perfect reconstruction scheme, the filters can be designed to be orthogonal under the quadrature mirror conditions [2, 3].
Orthogonal wavelets ψ (t) with compact support can be obtained from scaling functions φ (t) through the dyadic dilation equation [4–6]:
In this work, and given the previous relationship, the low-pass filters will be referred as h k sequences, low-pass coefficients, or scaling functions indistinctly, and the same for the high-pass filters that will be referred as g k sequences, high-pass coefficients or wavelet functions.
There is an infinite number of sequences h k and g k that fulfill the quadrature mirror conditions and some of them have been widely used to be considered “standard” such as the Haar, Daubechies, Coiflets, and Symlets filters. One of the main reasons to choose “standard” filters is that they were designed to generate wavelets or scaling functions with vanishing moments, among other criterion, that does not focus on a specific signal. For this reason, they are also referred as general purpose wavelets.
General purpose wavelets does not always provide the best performance and personalized filters can be designed for specific applications or signals. But, one of the main drawbacks of designing personalized filters is the time required to calculate them, as well as the lack of specific criteria to guide the selection of optimal filters. But, it has been found that the filter parameterization provides a convenient method to find valid h k and g k sequences, at the same time it keeps the flexibility of the properties of the filters.
Note that, except for the Haar wavelet, neither of the previous wavelets (Daubechies, Coiflets and Symlets) have an explicit formulation, and this is a hurdle when trying to apply non-numerical gradient based optimization methods. Alternatively, the use of evolutionary algorithms has been proposed to optimize parameterized filters for specific applications. For example, [6] shows an application in image compression, [8] shows time series analysis with parameterized wavelets, and [9] presents an application of parameterized wavelet neural networks for data classification.
By considering that the parameterization of length N filters involves
In this work, the parameterization of length 12 filters given in [11] is reviewed and inverse formulas are presented to get the parameter values from filter coefficients. These inverse formulas can be used to optimize length 12 filters with 5 parameters based on a nested optimization of shorter filters that depend of 1, 2, 3, and 4 parameters. A first case of study shows the application of these inverse formulas to calculate parameters of “standard” filters, and a second case shows an application in image compression where the parameters are optimized to maximize the number of negligible wavelet coefficients. Some other applications are possible including watermarking, neural networks, denoising and signal processing where is relevant to increase the quality or precision as a priority. Indeed, this research aims to promote the use of longer filters optimized for specific purposes by providing acceleration convergence techniques.
The article is organized in sections as follows: In Section 2 the parameterization of length 12 filters is reviewed and their inverse formulas are obtained. In Section 3, several computational experiments are presented to validate the inverse formulas, and some properties about their domain are commented. In Section 4, some results of the validation are presented as well as an application in image processing. Finally, the conclusions are presented in Section 5.
Given a length N filter, the sequence of coefficients h
k
with k = 0, 1, …, N - 1 represents the impulse response of a low pass filter, whereas g
k
= (-1)
k
hN-1-k represents the mirrored high pass filter. With the h
k
filter coefficients, is possible to build a trigonometric polynomial H (z) in the z domain given by [4, 11]:
The orthonormality conditions (see [11–14] and others) can be expressed as:
For example, for N = 2 the coefficients are h = {h0, h1}, and by applying Equation (2) it is simplified to:
Therefore, Equation (3) yields to
The length two filter has unique solution and no parameters, but larger filters can be parameterized (see [3, 15], and others). Consider that the filter parameterizations for N ≥ 4 are not unique, and that there are several methods of analysis including the spectral factorization [4] and the algebraic approach.
In this paper, the algebraic approach described in [11–13, 16] for length 4, 6, 8, 10 and 12 filters is revised as follows.
For the length twelve filters
Now, with Equations (7) to (42) it will be calculated the inverse parameterizations, that consist in the determination of the parameters α, β, γ, δ, and θ in terms of the h k coefficients, which is the main contribution of the paper.
The inverse parameterization is divided in two stages. In the first stage the parameters α, β and θ are calculated from the h0, h1, h2,..., h11 filter coefficients. In the second stage temporary parameters and a rotation matrix M are used to get the δ and γ parameters in terms of known parameters, once they do not depend of the filter coefficients directly.
The inverse parameterizations are not unique. For example, for α by combining (44) with (45) it yields to:
In the case of β, by adding (7) to (34), it takes to:
At this point, the filter coefficients, α and β are known, so it is possible to calculate θ by subtracting (34) from (7), as follows:
Additionally, the parameters q, r, s and t can be expressed in terms of other parameters
The last formulas are relevant since there is a relationship of the parameters
Now, by dividing (72) with (69) and solving for δ:
At this point, it has been shown how the inverse parameterizations of α, β and θ depend of filters coefficients directly, and how the δ and γ can be calculated using some temporary parameters and filter coefficients.
See that, although it is not strictly necessary for the inverse parameterizations, the last parameter that can be calculated is u from Equation (36), because it requires the five parameters α, β, θ, γ, and δ.
This section includes three experiments to validate the inverse formulas with a repair technique. Additionally, a case of study in image processing it is shown.
Experiment 1
In this experiment, a computer program was implemented to test the inverse parameterizations of Section 2.2. It is important to emphasize that, although all the real domain is valid for the parameters α, β, γ, δ, θ, they are set to [0, 2π) given the periodicity of the trigonometric functions.
In this way, the computer program generates random values for α, β, γ, δ, θ ∈ [0, 2π) and calculates the filter coefficients h k with Equations (7) to (35). Then, the computer program applies the inverse parameterizations of Equation (46), Equation (50), Equation (53), Equation (73) and Equation (74), and calculates the approximation error (RMS) by comparing each parameter with the original value.
Since the inverse parameterizations uses the arcsin, arccos, and arctan functions and they do not match the [0, 2π) interval, the repair technique presented in [10] is applied to test alternatives of the values obtained with the inverse parameterizations. For example, for the α parameter, the next A alternatives are considered:
In this computer experiment, MAX = 2700 cases were tested with the next results: Using the inverse equations Equation (47), Equation (50), Equation (53), Equation (73) and Equation (74), the five parameters were recovered successfully in 75.8% of the cases, with an average error of 0.0011. Replacing Equation (47) with Equation (46) for α, the five parameters were recovered successfully in 92.6% of the cases, with a lower average error of 0.00079.
Based on the previous results, the inverse parameterizations of Equation (46), Equation (50), Equation (53), Equation (73) and Equation (74) were chosen for the subsequent experiments.
Experiment 2 takes into account that each parameter repair introduces |A|=34 alternatives, and not all of them could be useful. Then, MAX = 2700 test cases were executed to identify subsets of alternatives A s = {A α , A β , A γ , A δ , A θ } with the used options when applying Equation (75) to α, β, γ, δ and θ.
The subset identification was possible by counting the number of times that the options were effectively used when executing the experiments, and eliminating those with zero account.
The results of Experiment 2 are shown in Table 1. In the first column it is shown the parameter, in the second column the corresponding subset A s for the parameter, in the third column the elements of these subsets, and in the last column their cardinality.
The size of the search space was reduced 97 : 1 since the exhaustive search space is 345 and the reduced space is 10 × 13 × 14 × 162. The corresponding execution time was reduced from 4 minutes 44 seconds to 9.7 seconds, by preserving the success rate of 92% with an average error of 0.0001 in both cases. The experiments were executed on a Linux based system with 4 Intel Xeon CPU @2.53 GHz and 16 GBRAM.
Subset of alternatives to repair parameters
Subset of alternatives to repair parameters
In this experiment, the best parameters for a given image were calculated, under the criterion of concentrating the energy in the lowest number of coefficients when applying the discrete wavelet transform implemented with the corresponding filters. It also means to maximize the number of negligible coefficients and to minimize the entropy [6].
The energy of a gray-scale image with w × h pixels is:
After applying the discrete wavelet transform, the wavelet coefficients W
ij
conserve the energy, so the energy in the time-frequency domain is:
By sorting the w × h wavelet coefficients W
ij
in descendent order given by the index k, the cumulative energy of the first r coefficients of the signal is defined as:
Equation (79) aims to build good wavelet function basis based on the maximization of the number of negligible wavelet coefficients that reduces their entropy (maximize the zeros and produce a non-uniform distribution). It takes into account that there is a relationship betweeen the energy concentration and the entropy reduction [6].
The genetic algorithm has a population of even size P, with a temporal population of size 2P, pair wise for crossover between the i-th and the (P - 1 - i)-th sorted individuals, i ∈ [0, P - 1], deterministic selection, the best P individuals from the temporal population and annular crossover [17]. Each individual encodes the values of the parameters in the interval [0, 2π) and PE = 0.9999997. The parameters for the genetic algorithm were Pm = 0.02, Pc = 0.97, and P = 12 individuals, with 30 bits of precision.
For comparison purposes, the negligible wavelet coefficients for Haar, D4, D6, D8, D10, D12, LA12, B12 and SF12 filters [16] were calculated. The results are shown in Table 2, where the bold numbers remark the number of negligible coefficients (higher is better) of the best standard filter for each image.
The last column shows the best evolutionary filter identified as H12, whose performance is superior to the best standard filter in all the test cases.
It is very important to note that there is no a unique standard wavelet that outperforms the other standard filters in the experiments. So, in spite of the use of a reduced number of standard wavelets, it is necessary to compare their performance one by one to find the best standard solution. As an additional note, in the experiments it was preferred to use the parameters obtained with inverse equations to produce the standard filters instead of programming wired code for them, once the parameterization includes these standard filters as particular cases.
Different values for PE can be chosen as a quality factor for the reconstruction error. This experiment shows a case of quasi-perfect reconstruction scheme with too high PE for images of 512 × 512 = 262144 pixels (wavelet coefficients after transforming) but it is applicable to larger images [10].
There was no preference in the selection of images, only the availability in gray-scale, a size of 512 × 512 pixels, and that they are already known in image processing.
The average difference between the best standard filter and the proposed best evolutionary filter H12 is 0.05%. Note that the best standard filters for the five test images have length 12 (see Table 2) and that there is no a single standard filter that outperforms the others in all the cases (Lena-Coiflet, Barbara-SF12, Boat-Symlet, Mandrill-LA12, Peppers-Symlet).
The worst case of standard filters corresponds to the Haar filter. In this case, the average difference between the Haar and the proposed best evolutionary filter is 1.63%. Since, there is a relationship between the number of negligible wavelet coefficients and their entropy [6] then is possible to improve the compression based on the optimization of the filter.
Although the margin of difference may be small, consider that the percentage of preserved energy is too high (PE = 99.99997%), so the most important is that no matter which standard filter it used, it is possible to calculate a better parameterized filter, and that the improvement will depend on the application.
Filter comparison: maximization of negligible wavelet coefficients on gray-scale images, 512 × 512 pixels
Experimental results
Experiment 1 validates the inverse equations obtained from the parameterizations of length twelve filters. There, a repair technique for the parameters is necessary to obtain the correct values of the parameters, given the periodicity properties of the trigonometric functions and the rotation matrices.
Experiment 2 makes possible to reduce the number of repair alternatives, with the consequent acceleration when searching for the correct parameters. In this experiment, it was possible to reach a percentage greater than 90% of efficiency.
Experiment 3 presents a quasi-perfect reconstruction scheme for image processing where 99.99997% of the energy is preserved and the RMS error is lower than 0.1 even a maximum number of wavelet coefficients are set to zero.
Experiment 3 also shows the feasibility of applying the inverse equations to optimize large filters based on a nested optimization of shorter filters, which in fact outperforms standard filters.
Discussion
The wavelet transform can be implemented with perfect reconstruction filters and general purpose filters are widely used, however for many applications it is preferable to design customized filters despite the time required to optimize them, such as offline image compression, watermarking and time series, among others where the quality or prediction are priorities.
A disadvantage of using large wavelet filters is that it is not easy to comply with the perfect reconstruction properties, so the parameterization offers a solution. But, it stills the task of optimizing the parameters of larger filters as quickly as possible. That is where the main contribution of the paper is focused on, and derived of this it is recommended the use of inverse parameterizations.
Conclusions and future work
The parameterizations of wavelet filters have already been studied and inverse equations for length twelve filters have been proposed to accelerate their optimization.
Experimental results motivate the study of personalized filters that offer better performance than general purpose filters. So, it is of interest to continue the study for larger filters. Since larger filters have more freedom degrees, it is possible to build filters with a variety of characteristics, and to get better results with respect to standard filters.
The application of the inverse equations opens the possibility of using larger parametric filters in applications where it is worth spending more time to optimizing them. Future work includes the study of parameterizations for larger filters, to explore other wavelet families in greater dimension, and to present applications in speech synthesis with wavelet neural networks, as well as time series forecasting.
