- Introduced by
- Ingrid Daubechies
- Year
- 1992
- Type
- Hierarchical signal decomposition
- Family
- Orthogonal multiresolution decomposition
What does it do?
The discrete wavelet transform (DWT) decomposes a uniformly sampled signal into approximation and detail coefficients at successive dyadic scales, using a pair of complementary filters followed by downsampling by two.
Its filter-bank formulation follows Mallat's multiresolution theory (1989). The orthogonal wavelet families used with it derive from Ingrid Daubechies's work on orthogonal wavelets, systematised in her 1992 book. Because it is computed with a fast pyramidal algorithm and can be inverted exactly, it is a common basis for compression, denoising and feature extraction.
The intuition behind the method
Think of the DWT as a repeated split. A low-pass filter keeps the smooth, slowly varying part of the signal, and a high-pass filter keeps the rapid changes; each output is then thinned by keeping every second sample. The smooth half is split again in the same way, producing a tree of progressively coarser approximations. The Haar wavelet, the simplest orthogonal case, does this with two-sample averaging and differencing. The result is a set of coefficients ordered by scale, so features such as sharp transients appear mainly in the levels that match their duration.
History
The filter-bank view of the DWT follows Mallat's multiresolution framework, in which a signal is approximated at successive resolutions and the detail between them is captured by a wavelet orthonormal basis; the decomposition is computed with a pyramidal algorithm based on convolutions with quadrature mirror filters. Daubechies developed the theory of orthogonal wavelets and compactly supported wavelet families, presented systematically in her 1992 book, which made the transform practical to use. The DWT subsequently became widely used in image coding and in denoising and feature extraction.
When to use it
Choose the DWT when the signal is uniformly sampled and you need a fast multiscale decomposition, for example for compression, denoising, feature extraction, or locating transients and discontinuities. It is also appropriate when exact reconstruction from the coefficients matters, since the filter bank can be inverted. Do not use the plain DWT when you need coefficients that change little under small shifts of the input; the decimated transform is not shift-invariant, and the stationary wavelet transform or the MODWT (see related methods) are the usual alternatives. If you need finer, continuous control over scale for exploratory time-frequency maps, the continuous wavelet transform is more suitable, at higher computational cost. Avoid the DWT for very short records, where the number of samples is too small to support several levels beyond the filter length.
Limitations and considerations
- Decimation fixes the scale ladder to powers of two, so frequency resolution within each level is coarser than in the continuous transform.
- Finite-length signals require boundary handling; zero-padding, symmetric and periodic extension each introduce different edge artifacts.
- Coefficients are not translation-invariant: a one-sample shift can move energy between coefficients at the same level.
- Results depend on the wavelet family and filter length, and there is no universally optimal choice for a given signal.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- The pyramidal filter-bank implementation computes the full decomposition at a cost that grows with signal length, because each level processes half as many coefficients as the one before.
- With orthogonal or biorthogonal filters, perfect reconstruction recovers the original signal exactly from its coefficients.
- The dyadic scale structure is non-redundant: with critical sampling and periodic extension, the total number of coefficients across all levels equals the number of samples.
- Smooth segments tend to produce small detail coefficients at fine levels, so piecewise-smooth signals with few discontinuities are often represented by a small number of large coefficients, which is why the transform is useful in compression.
- It is implemented in standard libraries (MATLAB, Python, C++), which makes analyses straightforward to repeat.
Applications
- Image compression—Mallat's wavelet representation was applied to data compression in image coding; DWT-based coefficient coding is used for lossy and lossless compression
- Texture discrimination and fractal analysis—the wavelet representation distinguishes spatial orientations and has been applied to both
- Signal denoising—wavelet shrinkage for removing noise while preserving edges and transients
- Feature extraction—DWT coefficients as features for classification in machine learning pipelines
- Fault detection in machinery—identifying impulses and transients in vibration signals that may indicate bearing or gear faults
- Biomedical signal analysis—processing ECG and EEG signals, for example for arrhythmia detection
- Power quality assessment—detecting harmonics and transients in AC signals
How it works
How it works
Obtain a uniformly sampled discrete signal. The DWT assumes uniform sampling but does not require stationarity. A record length divisible by 2^J makes the J dyadic levels divide evenly; otherwise pad or extend the signal (see the limitations on boundary handling). The number of useful levels J is bounded by the record length and by the filter length, so check that the filter still fits at the coarsest level.
Check the sampling and, if needed, remove offsets or rescale the data; the transform does not require standardised inputs, but a common scaling helps compare coefficients across signals. Choose the wavelet family and filter length (for example Daubechies, Symlet or Biorthogonal) according to the smoothness and symmetry you need.
Pass the signal through a low-pass filter h and a high-pass filter g, then keep every second output sample (downsampling by 2). The low-pass output gives the approximation coefficients c_j and the high-pass output gives the detail coefficients d_j, as in the analysis equations above.
Formula
c_j[n] = \sum_k x[k] h[2n-k], \quad d_j[n] = \sum_k x[k] g[2n-k]
Apply the same filter bank to the approximation coefficients from the previous level to obtain the next, coarser level. Stop at the chosen depth J; the signal is then represented by the final approximation and the detail coefficients from each level, which is the expansion given above.
Formula
x[n] = \sum_k c_J[k]\phi_{J,k}(n) + \sum_{j=1}^{J}\sum_k d_j[k]\psi_{j,k}(n)Inspect the detail coefficients level by level: large coefficients at a given level indicate features at the time scale that level covers, and small coefficients that look like noise are candidates for thresholding. Use the final approximation to examine the coarse trend of the signal. For denoising, hard thresholding keeps coefficients whose magnitude exceeds the threshold unchanged and sets the others to zero, which preserves the amplitude of large features but can introduce discontinuities. Soft thresholding also shrinks the retained coefficients toward zero by the threshold amount, which is smoother but biases large coefficients. The threshold rule and its variant should be stated when results are reported.
Common pitfalls
- Choosing a wavelet with too few vanishing moments for the local smoothness of the signal, so smooth parts are not compressed into few coefficients and sparsity is poor.
- Ignoring edge effects: the extension method creates spurious large coefficients at the ends of the record, which can be mistaken for real events.
- Decomposing to more levels than the question needs; coarse levels of a short record contain few coefficients and mostly reflect noise or the boundary.
- Zeroing small detail coefficients by a fixed rule in denoising. The choice between hard and soft thresholding, and the threshold itself, change both artifacts and bias, so the rule must be selected and reported.
Frequently asked questions
What is the difference between DWT and continuous wavelet transform (CWT)?
DWT uses discrete scales (powers of 2) and is computed via efficient filter banks. CWT uses continuous scales and is more computationally expensive but provides finer scale resolution. DWT is faster; CWT is more detailed.
How do I choose the right wavelet family for my data?
Choose based on signal characteristics. Daubechies wavelets are a common general-purpose choice; they are compactly supported and generally asymmetric. Symlets are their least-asymmetric variants, used when a more symmetric filter is wanted; Biorthogonal wavelets allow symmetric (linear-phase) filters. Start with a common choice such as 'db4' or 'sym5', and compare results with alternatives.
What do I do about edge effects?
Common strategies include zero-padding, symmetric extension (mirroring), periodic extension, and smooth padding. For critical applications, use boundary wavelets or compute pseudo-extensions based on signal behaviour.
Can I invert a DWT with missing or thresholded coefficients?
Yes, the inverse can always be computed, even with zeroed or modified coefficients, but the reconstruction will differ from the original. Thresholding can produce ringing or other artifacts near discontinuities, and the choice between hard and soft thresholding affects both artifacts and bias. The threshold should be chosen by a stated rule and reported with the results.
Why is my DWT not translation-invariant?
Standard DWT downsamples at each level, so shifting the input by one sample can change which coefficients are large or nonzero. The stationary wavelet transform (SWT), which omits downsampling, or the undecimated DWT reduces this sensitivity to shifts, though not exactly, at the cost of extra computation and storage.
Related methods
Sources
Daubechies, I. (1992). Ten Lectures on Wavelets. SIAM.
Open DOI referenceMallat, S. G. (1989). A theory of multiresolution signal decomposition: The wavelet representation. IEEE Transactions on Pattern Analysis and Machine Intelligence, 11(7), 674–693.
Open DOI referenceWalnut, D. F. (2002). An Introduction to Wavelet Analysis. Birkhäuser.
Open publication reference