Wavelet Neural Network

Research
Introduced by
Q. Zhang
Year
1992
Type
Non-parametric function approximation
Family
Wavelet-based activation function network

What does it do?

A wavelet neural network (WNN) is a feedforward model in which each hidden unit applies a wavelet to an affine transform of the input, rather than a sigmoid or ReLU function.

Zhang and Benveniste (1992) proposed this structure as an alternative to feedforward networks for approximating nonlinear functions, calling the units 'wavelons' and training them with a backpropagation-type algorithm. Each unit is defined by a scale, a shift and an output weight, so the fitted parameters can be inspected directly.

The intuition behind the method

Standard hidden units such as sigmoids respond across broad regions of the input space. A wavelet is a localized function that decays away from a centre, and a WNN unit uses a copy of one wavelet that has been stretched (scale) and moved (shift). Units with small scales respond to fine variation in the input, and units with large scales respond to broad trends. The network output is a weighted sum of these units, so the model can combine features taken at several scales. Because each unit's scale and location are parameters, the trained network shows where it has placed its units.

History

Zhang and Benveniste (1992) introduced wavelet networks as an alternative to feedforward neural networks for approximating arbitrary nonlinear functions, replacing neurons with 'wavelons' built from an affine transform and a multidimensional wavelet. They also proposed a backpropagation-type training algorithm and reported experimental results.

When to use it

Choose a WNN when the task is approximation of a nonlinear input-output relationship from measured data, and the target is expected to vary at several scales or locations, since that is the setting the wavelet units are built for. It is also a reasonable choice when the fitted scales and locations are themselves of interest. Avoid it when the data are large structured inputs such as images or long sequences, where convolutional or recurrent architectures are established. Whether a WNN is more sample-efficient or more interpretable than a deep network depends on the task and is best settled by comparison on validation data.

Limitations and considerations

  • The loss is nonlinear in a_k and b_k because they enter inside the wavelet, so training is non-convex and can settle in different local minima depending on the initialisation.
  • Results depend on the starting scales and shifts, which must be chosen relative to the range of the inputs; poor starting values can make training slow or unstable.
  • Each unit adds a scale, a shift and an output weight, so the number of hidden units sets the parameter count directly and must be controlled.
  • Wavelet units are not always available as built-in layers in deep learning frameworks, so an implementation may need to be written by the user, which increases the effort needed to reproduce results.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Each hidden unit has an explicit scale a_k and location b_k, so the fitted values show where and at what scale each unit responds to the input.
  • Because the units are localized and can take different scales a_k, a set of units can represent features at several scales of the input. The construction is based on wavelet transform theory (Zhang and Benveniste, 1992).
  • The output is linear in the weights w_k for fixed a_k and b_k, so the amplitudes can be estimated by linear least squares, and gradient training is needed mainly for the scales and shifts.
  • The original formulation was developed to estimate the affine parameters and weights from possibly noise-corrupted input-output data.

Applications

  • Approximating nonlinear input-output relationships from measured data, the setting addressed in the original formulation.
  • Regression tasks in which the target varies at several scales or locations. Time series are one possible case, but performance on a given series depends on the data and should be tested on held-out data.
  • Analyses in which the fitted scales and locations of the hidden units are themselves of interest.

How it works

How it works

1

Collect input-output pairs (x_n, y_n) from the function or system to be approximated. The original formulation was designed for input-output data that may be corrupted by noise, and the training procedure should be checked against the noise level of the data.

2

Scale the inputs and outputs to comparable ranges, because the wavelet argument (x - b_k)/a_k depends on the units of x. Choose a mother wavelet, such as the Mexican hat or Morlet, and set starting scales and shifts that cover the input domain.

3

Set up the hidden layer, in which each unit k applies the wavelet to (x - b_k)/a_k. The initial values of the scales a_k and shifts b_k are chosen before training, and the network output is f(x) = sum_k w_k psi_k(x), where w_k are the output weights.

Formula
f(x) = \sum_k w_k \psi_k(x)
4

Fit the output weights w_k together with the scales a_k and shifts b_k by minimising the squared error L = sum_n (y_n - f(x_n))^2. The original paper uses a backpropagation-type gradient procedure for this step. By the chain rule, each w_k enters f linearly, while a_k and b_k enter through the wavelet argument (x - b_k)/a_k, so their gradients pass through the derivative of the chosen wavelet. Stopping criteria, initialisation and any regularisation are not fixed by the original formulation, so they must be chosen by the user and checked on held-out data.

Formula
\psi_k(x) = \psi\left(\frac{x - b_k}{a_k}\right), \quad L = \sum_n (y_n - f(x_n))^2
5

Inspect the fitted scales and shifts, which indicate the scale and location at which each unit responds. Plotting each wavelet and its response to sample inputs shows what the unit has learned. Any such reading depends on the chosen wavelet and on the input normalisation.

Common pitfalls

  • Placing shifts outside the range of the training inputs can leave units with near-zero response on the data, so they contribute little to the output and receive little gradient.
  • Starting scales that are too small let units respond mainly to noise, while scales that are too large make several units respond to the same broad region, losing the multiscale resolution.
  • Fitting without normalising the inputs makes the argument (x - b_k)/a_k depend on arbitrary units, which can make the starting scales meaningless.
  • Adding more wavelet units than the data support increases the parameter count and the risk of overfitting; fit quality on held-out data should decide the number of units.
  • Reading the fitted scales and shifts as physical features without checking the chosen wavelet and the input normalisation can give misleading interpretations.

Frequently asked questions

How many hidden units (wavelets) do I need?

There is no fixed rule for the number of hidden units. Start with a small number of units and increase it while error on held-out data keeps falling. More units can fit finer structure but also increase the risk of overfitting.

Which wavelet should I use?

The Mexican hat and the Morlet wavelet are two common choices. The Mexican hat has a single central peak with side lobes, while the Morlet wavelet is an oscillation under a Gaussian envelope. Compare both on validation data, since the better choice depends on the shape of the target.

How do WNNs compare to convolutional neural networks (CNNs)?

CNNs were designed for structured inputs such as images, whereas WNNs were proposed for approximating nonlinear functions from input-output data. Whether a WNN is more interpretable or more sample-efficient than a CNN depends on the task and should be tested on validation data.

Can WNNs handle time-series classification?

The original formulation addresses function approximation rather than sequence classification. One option is to use the WNN units as a feature stage followed by a classifier, but this is a design choice that must be validated on the data.

Are trained wavelet parameters interpretable?

The fitted scales and shifts indicate the scale and location at which each unit responds, given the chosen wavelet and input normalisation. Plotting each unit and its response to sample inputs helps check what it has learned.

Related methods

Sources

  1. Zhang, Q., & Benveniste, A. (1992). Wavelet networks. IEEE Transactions on Neural Networks, 3(6), 889–898.

    Open DOI reference
  2. Pati, Y. C., & Krishnaprasad, P. S. (1992). Nonlinear dynamics and signal processing in the cochlea. ICASSP, pp. V373–V376.

    Open publication reference
  3. Misiti, M., Misiti, Y., Oppenheim, G., & Poggi, J. M. (1997). Wavelet Toolbox. The Mathworks.

    Open publication reference