Misplaced Pages

Radial basis function network

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
(Redirected from RBF network) Type of artificial neural network that uses radial basis functions as activation functions

In the field of mathematical modeling, a radial basis function network is an artificial neural network that uses radial basis functions as activation functions. The output of the network is a linear combination of radial basis functions of the inputs and neuron parameters. Radial basis function networks have many uses, including function approximation, time series prediction, classification, and system control. They were first formulated in a 1988 paper by Broomhead and Lowe, both researchers at the Royal Signals and Radar Establishment.

Network architecture

Architecture of a radial basis function network. An input vector x {\displaystyle x} is used as input to all radial basis functions, each with different parameters. The output of the network is a linear combination of the outputs from radial basis functions.

Radial basis function (RBF) networks typically have three layers: an input layer, a hidden layer with a non-linear RBF activation function and a linear output layer. The input can be modeled as a vector of real numbers x R n {\displaystyle \mathbf {x} \in \mathbb {R} ^{n}} . The output of the network is then a scalar function of the input vector, φ : R n R {\displaystyle \varphi :\mathbb {R} ^{n}\to \mathbb {R} } , and is given by

φ ( x ) = i = 1 N a i ρ ( | | x c i | | ) {\displaystyle \varphi (\mathbf {x} )=\sum _{i=1}^{N}a_{i}\rho (||\mathbf {x} -\mathbf {c} _{i}||)}

where N {\displaystyle N} is the number of neurons in the hidden layer, c i {\displaystyle \mathbf {c} _{i}} is the center vector for neuron i {\displaystyle i} , and a i {\displaystyle a_{i}} is the weight of neuron i {\displaystyle i} in the linear output neuron. Functions that depend only on the distance from a center vector are radially symmetric about that vector, hence the name radial basis function. In the basic form, all inputs are connected to each hidden neuron. The norm is typically taken to be the Euclidean distance (although the Mahalanobis distance appears to perform better with pattern recognition) and the radial basis function is commonly taken to be Gaussian

ρ ( x c i ) = exp [ β i x c i 2 ] {\displaystyle \rho {\big (}\left\Vert \mathbf {x} -\mathbf {c} _{i}\right\Vert {\big )}=\exp \left} .

The Gaussian basis functions are local to the center vector in the sense that

lim | | x | | ρ ( x c i ) = 0 {\displaystyle \lim _{||x||\to \infty }\rho (\left\Vert \mathbf {x} -\mathbf {c} _{i}\right\Vert )=0}

i.e. changing parameters of one neuron has only a small effect for input values that are far away from the center of that neuron.

Given certain mild conditions on the shape of the activation function, RBF networks are universal approximators on a compact subset of R n {\displaystyle \mathbb {R} ^{n}} . This means that an RBF network with enough hidden neurons can approximate any continuous function on a closed, bounded set with arbitrary precision.

The parameters a i {\displaystyle a_{i}} , c i {\displaystyle \mathbf {c} _{i}} , and β i {\displaystyle \beta _{i}} are determined in a manner that optimizes the fit between φ {\displaystyle \varphi } and the data.

Two unnormalized radial basis functions in one input dimension. The basis function centers are located at c 1 = 0.75 {\displaystyle c_{1}=0.75} and c 2 = 3.25 {\displaystyle c_{2}=3.25} .

Normalized

Two normalized radial basis functions in one input dimension (sigmoids). The basis function centers are located at c 1 = 0.75 {\displaystyle c_{1}=0.75} and c 2 = 3.25 {\displaystyle c_{2}=3.25} .Three normalized radial basis functions in one input dimension. The additional basis function has center at c 3 = 2.75 {\displaystyle c_{3}=2.75} .Four normalized radial basis functions in one input dimension. The fourth basis function has center at c 4 = 0 {\displaystyle c_{4}=0} . Note that the first basis function (dark blue) has become localized.

Normalized architecture

In addition to the above unnormalized architecture, RBF networks can be normalized. In this case the mapping is

φ ( x )   = d e f   i = 1 N a i ρ ( x c i ) i = 1 N ρ ( x c i ) = i = 1 N a i u ( x c i ) {\displaystyle \varphi (\mathbf {x} )\ {\stackrel {\mathrm {def} }{=}}\ {\frac {\sum _{i=1}^{N}a_{i}\rho {\big (}\left\Vert \mathbf {x} -\mathbf {c} _{i}\right\Vert {\big )}}{\sum _{i=1}^{N}\rho {\big (}\left\Vert \mathbf {x} -\mathbf {c} _{i}\right\Vert {\big )}}}=\sum _{i=1}^{N}a_{i}u{\big (}\left\Vert \mathbf {x} -\mathbf {c} _{i}\right\Vert {\big )}}

where

u ( x c i )   = d e f   ρ ( x c i ) j = 1 N ρ ( x c j ) {\displaystyle u{\big (}\left\Vert \mathbf {x} -\mathbf {c} _{i}\right\Vert {\big )}\ {\stackrel {\mathrm {def} }{=}}\ {\frac {\rho {\big (}\left\Vert \mathbf {x} -\mathbf {c} _{i}\right\Vert {\big )}}{\sum _{j=1}^{N}\rho {\big (}\left\Vert \mathbf {x} -\mathbf {c} _{j}\right\Vert {\big )}}}}

is known as a normalized radial basis function.

Theoretical motivation for normalization

There is theoretical justification for this architecture in the case of stochastic data flow. Assume a stochastic kernel approximation for the joint probability density

P ( x y ) = 1 N i = 1 N ρ ( x c i ) σ ( | y e i | ) {\displaystyle P\left(\mathbf {x} \land y\right)={1 \over N}\sum _{i=1}^{N}\,\rho {\big (}\left\Vert \mathbf {x} -\mathbf {c} _{i}\right\Vert {\big )}\,\sigma {\big (}\left\vert y-e_{i}\right\vert {\big )}}

where the weights c i {\displaystyle \mathbf {c} _{i}} and e i {\displaystyle e_{i}} are exemplars from the data and we require the kernels to be normalized

ρ ( x c i ) d n x = 1 {\displaystyle \int \rho {\big (}\left\Vert \mathbf {x} -\mathbf {c} _{i}\right\Vert {\big )}\,d^{n}\mathbf {x} =1}

and

σ ( | y e i | ) d y = 1 {\displaystyle \int \sigma {\big (}\left\vert y-e_{i}\right\vert {\big )}\,dy=1} .

The probability densities in the input and output spaces are

P ( x ) = P ( x y ) d y = 1 N i = 1 N ρ ( x c i ) {\displaystyle P\left(\mathbf {x} \right)=\int P\left(\mathbf {x} \land y\right)\,dy={1 \over N}\sum _{i=1}^{N}\,\rho {\big (}\left\Vert \mathbf {x} -\mathbf {c} _{i}\right\Vert {\big )}}

and

The expectation of y given an input x {\displaystyle \mathbf {x} } is

φ ( x )   = d e f   E ( y x ) = y P ( y x ) d y {\displaystyle \varphi \left(\mathbf {x} \right)\ {\stackrel {\mathrm {def} }{=}}\ E\left(y\mid \mathbf {x} \right)=\int y\,P\left(y\mid \mathbf {x} \right)dy}

where

P ( y x ) {\displaystyle P\left(y\mid \mathbf {x} \right)}

is the conditional probability of y given x {\displaystyle \mathbf {x} } . The conditional probability is related to the joint probability through Bayes theorem

P ( y x ) = P ( x y ) P ( x ) {\displaystyle P\left(y\mid \mathbf {x} \right)={\frac {P\left(\mathbf {x} \land y\right)}{P\left(\mathbf {x} \right)}}}

which yields

φ ( x ) = y P ( x y ) P ( x ) d y {\displaystyle \varphi \left(\mathbf {x} \right)=\int y\,{\frac {P\left(\mathbf {x} \land y\right)}{P\left(\mathbf {x} \right)}}\,dy} .

This becomes

φ ( x ) = i = 1 N e i ρ ( x c i ) i = 1 N ρ ( x c i ) = i = 1 N e i u ( x c i ) {\displaystyle \varphi \left(\mathbf {x} \right)={\frac {\sum _{i=1}^{N}e_{i}\rho {\big (}\left\Vert \mathbf {x} -\mathbf {c} _{i}\right\Vert {\big )}}{\sum _{i=1}^{N}\rho {\big (}\left\Vert \mathbf {x} -\mathbf {c} _{i}\right\Vert {\big )}}}=\sum _{i=1}^{N}e_{i}u{\big (}\left\Vert \mathbf {x} -\mathbf {c} _{i}\right\Vert {\big )}}

when the integrations are performed.

Local linear models

It is sometimes convenient to expand the architecture to include local linear models. In that case the architectures become, to first order,

φ ( x ) = i = 1 N ( a i + b i ( x c i ) ) ρ ( x c i ) {\displaystyle \varphi \left(\mathbf {x} \right)=\sum _{i=1}^{N}\left(a_{i}+\mathbf {b} _{i}\cdot \left(\mathbf {x} -\mathbf {c} _{i}\right)\right)\rho {\big (}\left\Vert \mathbf {x} -\mathbf {c} _{i}\right\Vert {\big )}}

and

φ ( x ) = i = 1 N ( a i + b i ( x c i ) ) u ( x c i ) {\displaystyle \varphi \left(\mathbf {x} \right)=\sum _{i=1}^{N}\left(a_{i}+\mathbf {b} _{i}\cdot \left(\mathbf {x} -\mathbf {c} _{i}\right)\right)u{\big (}\left\Vert \mathbf {x} -\mathbf {c} _{i}\right\Vert {\big )}}

in the unnormalized and normalized cases, respectively. Here b i {\displaystyle \mathbf {b} _{i}} are weights to be determined. Higher order linear terms are also possible.

This result can be written

φ ( x ) = i = 1 2 N j = 1 n e i j v i j ( x c i ) {\displaystyle \varphi \left(\mathbf {x} \right)=\sum _{i=1}^{2N}\sum _{j=1}^{n}e_{ij}v_{ij}{\big (}\mathbf {x} -\mathbf {c} _{i}{\big )}}

where

e i j = { a i , if  i [ 1 , N ] b i j , if  i [ N + 1 , 2 N ] {\displaystyle e_{ij}={\begin{cases}a_{i},&{\mbox{if }}i\in \\b_{ij},&{\mbox{if }}i\in \end{cases}}}

and

v i j ( x c i )   = d e f   { δ i j ρ ( x c i ) , if  i [ 1 , N ] ( x i j c i j ) ρ ( x c i ) , if  i [ N + 1 , 2 N ] {\displaystyle v_{ij}{\big (}\mathbf {x} -\mathbf {c} _{i}{\big )}\ {\stackrel {\mathrm {def} }{=}}\ {\begin{cases}\delta _{ij}\rho {\big (}\left\Vert \mathbf {x} -\mathbf {c} _{i}\right\Vert {\big )},&{\mbox{if }}i\in \\\left(x_{ij}-c_{ij}\right)\rho {\big (}\left\Vert \mathbf {x} -\mathbf {c} _{i}\right\Vert {\big )},&{\mbox{if }}i\in \end{cases}}}

in the unnormalized case and

v i j ( x c i )   = d e f   { δ i j u ( x c i ) , if  i [ 1 , N ] ( x i j c i j ) u ( x c i ) , if  i [ N + 1 , 2 N ] {\displaystyle v_{ij}{\big (}\mathbf {x} -\mathbf {c} _{i}{\big )}\ {\stackrel {\mathrm {def} }{=}}\ {\begin{cases}\delta _{ij}u{\big (}\left\Vert \mathbf {x} -\mathbf {c} _{i}\right\Vert {\big )},&{\mbox{if }}i\in \\\left(x_{ij}-c_{ij}\right)u{\big (}\left\Vert \mathbf {x} -\mathbf {c} _{i}\right\Vert {\big )},&{\mbox{if }}i\in \end{cases}}}

in the normalized case.

Here δ i j {\displaystyle \delta _{ij}} is a Kronecker delta function defined as

δ i j = { 1 , if  i = j 0 , if  i j {\displaystyle \delta _{ij}={\begin{cases}1,&{\mbox{if }}i=j\\0,&{\mbox{if }}i\neq j\end{cases}}} .

Training

RBF networks are typically trained from pairs of input and target values x ( t ) , y ( t ) {\displaystyle \mathbf {x} (t),y(t)} , t = 1 , , T {\displaystyle t=1,\dots ,T} by a two-step algorithm.

In the first step, the center vectors c i {\displaystyle \mathbf {c} _{i}} of the RBF functions in the hidden layer are chosen. This step can be performed in several ways; centers can be randomly sampled from some set of examples, or they can be determined using k-means clustering. Note that this step is unsupervised.

The second step simply fits a linear model with coefficients w i {\displaystyle w_{i}} to the hidden layer's outputs with respect to some objective function. A common objective function, at least for regression/function estimation, is the least squares function:

K ( w )   = d e f   t = 1 T K t ( w ) {\displaystyle K(\mathbf {w} )\ {\stackrel {\mathrm {def} }{=}}\ \sum _{t=1}^{T}K_{t}(\mathbf {w} )}

where

K t ( w )   = d e f   [ y ( t ) φ ( x ( t ) , w ) ] 2 {\displaystyle K_{t}(\mathbf {w} )\ {\stackrel {\mathrm {def} }{=}}\ {\big }^{2}} .

We have explicitly included the dependence on the weights. Minimization of the least squares objective function by optimal choice of weights optimizes accuracy of fit.

There are occasions in which multiple objectives, such as smoothness as well as accuracy, must be optimized. In that case it is useful to optimize a regularized objective function such as

H ( w )   = d e f   K ( w ) + λ S ( w )   = d e f   t = 1 T H t ( w ) {\displaystyle H(\mathbf {w} )\ {\stackrel {\mathrm {def} }{=}}\ K(\mathbf {w} )+\lambda S(\mathbf {w} )\ {\stackrel {\mathrm {def} }{=}}\ \sum _{t=1}^{T}H_{t}(\mathbf {w} )}

where

S ( w )   = d e f   t = 1 T S t ( w ) {\displaystyle S(\mathbf {w} )\ {\stackrel {\mathrm {def} }{=}}\ \sum _{t=1}^{T}S_{t}(\mathbf {w} )}

and

H t ( w )   = d e f   K t ( w ) + λ S t ( w ) {\displaystyle H_{t}(\mathbf {w} )\ {\stackrel {\mathrm {def} }{=}}\ K_{t}(\mathbf {w} )+\lambda S_{t}(\mathbf {w} )}

where optimization of S maximizes smoothness and λ {\displaystyle \lambda } is known as a regularization parameter.

A third optional backpropagation step can be performed to fine-tune all of the RBF net's parameters.

Interpolation

RBF networks can be used to interpolate a function y : R n R {\displaystyle y:\mathbb {R} ^{n}\to \mathbb {R} } when the values of that function are known on finite number of points: y ( x i ) = b i , i = 1 , , N {\displaystyle y(\mathbf {x} _{i})=b_{i},i=1,\ldots ,N} . Taking the known points x i {\displaystyle \mathbf {x} _{i}} to be the centers of the radial basis functions and evaluating the values of the basis functions at the same points g i j = ρ ( | | x j x i | | ) {\displaystyle g_{ij}=\rho (||\mathbf {x} _{j}-\mathbf {x} _{i}||)} the weights can be solved from the equation

[ g 11 g 12 g 1 N g 21 g 22 g 2 N g N 1 g N 2 g N N ] [ w 1 w 2 w N ] = [ b 1 b 2 b N ] {\displaystyle \left\left=\left}

It can be shown that the interpolation matrix in the above equation is non-singular, if the points x i {\displaystyle \mathbf {x} _{i}} are distinct, and thus the weights w {\displaystyle w} can be solved by simple linear algebra:

w = G 1 b {\displaystyle \mathbf {w} =\mathbf {G} ^{-1}\mathbf {b} }

where G = ( g i j ) {\displaystyle G=(g_{ij})} .

Function approximation

If the purpose is not to perform strict interpolation but instead more general function approximation or classification the optimization is somewhat more complex because there is no obvious choice for the centers. The training is typically done in two phases first fixing the width and centers and then the weights. This can be justified by considering the different nature of the non-linear hidden neurons versus the linear output neuron.

Training the basis function centers

Basis function centers can be randomly sampled among the input instances or obtained by Orthogonal Least Square Learning Algorithm or found by clustering the samples and choosing the cluster means as the centers.

The RBF widths are usually all fixed to same value which is proportional to the maximum distance between the chosen centers.

Pseudoinverse solution for the linear weights

After the centers c i {\displaystyle c_{i}} have been fixed, the weights that minimize the error at the output can be computed with a linear pseudoinverse solution:

w = G + b {\displaystyle \mathbf {w} =\mathbf {G} ^{+}\mathbf {b} } ,

where the entries of G are the values of the radial basis functions evaluated at the points x i {\displaystyle x_{i}} : g j i = ρ ( | | x j c i | | ) {\displaystyle g_{ji}=\rho (||x_{j}-c_{i}||)} .

The existence of this linear solution means that unlike multi-layer perceptron (MLP) networks, RBF networks have an explicit minimizer (when the centers are fixed).

Gradient descent training of the linear weights

Another possible training algorithm is gradient descent. In gradient descent training, the weights are adjusted at each time step by moving them in a direction opposite from the gradient of the objective function (thus allowing the minimum of the objective function to be found),

w ( t + 1 ) = w ( t ) ν d d w H t ( w ) {\displaystyle \mathbf {w} (t+1)=\mathbf {w} (t)-\nu {\frac {d}{d\mathbf {w} }}H_{t}(\mathbf {w} )}

where ν {\displaystyle \nu } is a "learning parameter."

For the case of training the linear weights, a i {\displaystyle a_{i}} , the algorithm becomes

a i ( t + 1 ) = a i ( t ) + ν [ y ( t ) φ ( x ( t ) , w ) ] ρ ( x ( t ) c i ) {\displaystyle a_{i}(t+1)=a_{i}(t)+\nu {\big }\rho {\big (}\left\Vert \mathbf {x} (t)-\mathbf {c} _{i}\right\Vert {\big )}}

in the unnormalized case and

a i ( t + 1 ) = a i ( t ) + ν [ y ( t ) φ ( x ( t ) , w ) ] u ( x ( t ) c i ) {\displaystyle a_{i}(t+1)=a_{i}(t)+\nu {\big }u{\big (}\left\Vert \mathbf {x} (t)-\mathbf {c} _{i}\right\Vert {\big )}}

in the normalized case.

For local-linear-architectures gradient-descent training is

e i j ( t + 1 ) = e i j ( t ) + ν [ y ( t ) φ ( x ( t ) , w ) ] v i j ( x ( t ) c i ) {\displaystyle e_{ij}(t+1)=e_{ij}(t)+\nu {\big }v_{ij}{\big (}\mathbf {x} (t)-\mathbf {c} _{i}{\big )}}

Projection operator training of the linear weights

For the case of training the linear weights, a i {\displaystyle a_{i}} and e i j {\displaystyle e_{ij}} , the algorithm becomes

a i ( t + 1 ) = a i ( t ) + ν [ y ( t ) φ ( x ( t ) , w ) ] ρ ( x ( t ) c i ) i = 1 N ρ 2 ( x ( t ) c i ) {\displaystyle a_{i}(t+1)=a_{i}(t)+\nu {\big }{\frac {\rho {\big (}\left\Vert \mathbf {x} (t)-\mathbf {c} _{i}\right\Vert {\big )}}{\sum _{i=1}^{N}\rho ^{2}{\big (}\left\Vert \mathbf {x} (t)-\mathbf {c} _{i}\right\Vert {\big )}}}}

in the unnormalized case and

a i ( t + 1 ) = a i ( t ) + ν [ y ( t ) φ ( x ( t ) , w ) ] u ( x ( t ) c i ) i = 1 N u 2 ( x ( t ) c i ) {\displaystyle a_{i}(t+1)=a_{i}(t)+\nu {\big }{\frac {u{\big (}\left\Vert \mathbf {x} (t)-\mathbf {c} _{i}\right\Vert {\big )}}{\sum _{i=1}^{N}u^{2}{\big (}\left\Vert \mathbf {x} (t)-\mathbf {c} _{i}\right\Vert {\big )}}}}

in the normalized case and

e i j ( t + 1 ) = e i j ( t ) + ν [ y ( t ) φ ( x ( t ) , w ) ] v i j ( x ( t ) c i ) i = 1 N j = 1 n v i j 2 ( x ( t ) c i ) {\displaystyle e_{ij}(t+1)=e_{ij}(t)+\nu {\big }{\frac {v_{ij}{\big (}\mathbf {x} (t)-\mathbf {c} _{i}{\big )}}{\sum _{i=1}^{N}\sum _{j=1}^{n}v_{ij}^{2}{\big (}\mathbf {x} (t)-\mathbf {c} _{i}{\big )}}}}

in the local-linear case.

For one basis function, projection operator training reduces to Newton's method.

Figure 6: Logistic map time series. Repeated iteration of the logistic map generates a chaotic time series. The values lie between zero and one. Displayed here are the 100 training points used to train the examples in this section. The weights c are the first five points from this time series.

Examples

Logistic map

The basic properties of radial basis functions can be illustrated with a simple mathematical map, the logistic map, which maps the unit interval onto itself. It can be used to generate a convenient prototype data stream. The logistic map can be used to explore function approximation, time series prediction, and control theory. The map originated from the field of population dynamics and became the prototype for chaotic time series. The map, in the fully chaotic regime, is given by

x ( t + 1 )   = d e f   f [ x ( t ) ] = 4 x ( t ) [ 1 x ( t ) ] {\displaystyle x(t+1)\ {\stackrel {\mathrm {def} }{=}}\ f\left=4x(t)\left}

where t is a time index. The value of x at time t+1 is a parabolic function of x at time t. This equation represents the underlying geometry of the chaotic time series generated by the logistic map.

Generation of the time series from this equation is the forward problem. The examples here illustrate the inverse problem; identification of the underlying dynamics, or fundamental equation, of the logistic map from exemplars of the time series. The goal is to find an estimate

x ( t + 1 ) = f [ x ( t ) ] φ ( t ) = φ [ x ( t ) ] {\displaystyle x(t+1)=f\left\approx \varphi (t)=\varphi \left}

for f.

Function approximation

Unnormalized radial basis functions

The architecture is

Figure 7: Unnormalized basis functions. The Logistic map (blue) and the approximation to the logistic map (red) after one pass through the training set.
φ ( x )   = d e f   i = 1 N a i ρ ( x c i ) {\displaystyle \varphi (\mathbf {x} )\ {\stackrel {\mathrm {def} }{=}}\ \sum _{i=1}^{N}a_{i}\rho {\big (}\left\Vert \mathbf {x} -\mathbf {c} _{i}\right\Vert {\big )}}

where

ρ ( x c i ) = exp [ β i x c i 2 ] = exp [ β i ( x ( t ) c i ) 2 ] {\displaystyle \rho {\big (}\left\Vert \mathbf {x} -\mathbf {c} _{i}\right\Vert {\big )}=\exp \left=\exp \left} .

Since the input is a scalar rather than a vector, the input dimension is one. We choose the number of basis functions as N=5 and the size of the training set to be 100 exemplars generated by the chaotic time series. The weight β {\displaystyle \beta } is taken to be a constant equal to 5. The weights c i {\displaystyle c_{i}} are five exemplars from the time series. The weights a i {\displaystyle a_{i}} are trained with projection operator training:

a i ( t + 1 ) = a i ( t ) + ν [ x ( t + 1 ) φ ( x ( t ) , w ) ] ρ ( x ( t ) c i ) i = 1 N ρ 2 ( x ( t ) c i ) {\displaystyle a_{i}(t+1)=a_{i}(t)+\nu {\big }{\frac {\rho {\big (}\left\Vert \mathbf {x} (t)-\mathbf {c} _{i}\right\Vert {\big )}}{\sum _{i=1}^{N}\rho ^{2}{\big (}\left\Vert \mathbf {x} (t)-\mathbf {c} _{i}\right\Vert {\big )}}}}

where the learning rate ν {\displaystyle \nu } is taken to be 0.3. The training is performed with one pass through the 100 training points. The rms error is 0.15.

Figure 8: Normalized basis functions. The Logistic map (blue) and the approximation to the logistic map (red) after one pass through the training set. Note the improvement over the unnormalized case.

Normalized radial basis functions

The normalized RBF architecture is

φ ( x )   = d e f   i = 1 N a i ρ ( x c i ) i = 1 N ρ ( x c i ) = i = 1 N a i u ( x c i ) {\displaystyle \varphi (\mathbf {x} )\ {\stackrel {\mathrm {def} }{=}}\ {\frac {\sum _{i=1}^{N}a_{i}\rho {\big (}\left\Vert \mathbf {x} -\mathbf {c} _{i}\right\Vert {\big )}}{\sum _{i=1}^{N}\rho {\big (}\left\Vert \mathbf {x} -\mathbf {c} _{i}\right\Vert {\big )}}}=\sum _{i=1}^{N}a_{i}u{\big (}\left\Vert \mathbf {x} -\mathbf {c} _{i}\right\Vert {\big )}}

where

u ( x c i )   = d e f   ρ ( x c i ) i = 1 N ρ ( x c i ) {\displaystyle u{\big (}\left\Vert \mathbf {x} -\mathbf {c} _{i}\right\Vert {\big )}\ {\stackrel {\mathrm {def} }{=}}\ {\frac {\rho {\big (}\left\Vert \mathbf {x} -\mathbf {c} _{i}\right\Vert {\big )}}{\sum _{i=1}^{N}\rho {\big (}\left\Vert \mathbf {x} -\mathbf {c} _{i}\right\Vert {\big )}}}} .

Again:

ρ ( x c i ) = exp [ β x c i 2 ] = exp [ β ( x ( t ) c i ) 2 ] {\displaystyle \rho {\big (}\left\Vert \mathbf {x} -\mathbf {c} _{i}\right\Vert {\big )}=\exp \left=\exp \left} .

Again, we choose the number of basis functions as five and the size of the training set to be 100 exemplars generated by the chaotic time series. The weight β {\displaystyle \beta } is taken to be a constant equal to 6. The weights c i {\displaystyle c_{i}} are five exemplars from the time series. The weights a i {\displaystyle a_{i}} are trained with projection operator training:

a i ( t + 1 ) = a i ( t ) + ν [ x ( t + 1 ) φ ( x ( t ) , w ) ] u ( x ( t ) c i ) i = 1 N u 2 ( x ( t ) c i ) {\displaystyle a_{i}(t+1)=a_{i}(t)+\nu {\big }{\frac {u{\big (}\left\Vert \mathbf {x} (t)-\mathbf {c} _{i}\right\Vert {\big )}}{\sum _{i=1}^{N}u^{2}{\big (}\left\Vert \mathbf {x} (t)-\mathbf {c} _{i}\right\Vert {\big )}}}}

where the learning rate ν {\displaystyle \nu } is again taken to be 0.3. The training is performed with one pass through the 100 training points. The rms error on a test set of 100 exemplars is 0.084, smaller than the unnormalized error. Normalization yields accuracy improvement. Typically accuracy with normalized basis functions increases even more over unnormalized functions as input dimensionality increases.

Figure 9: Normalized basis functions. The Logistic map (blue) and the approximation to the logistic map (red) as a function of time. Note that the approximation is good for only a few time steps. This is a general characteristic of chaotic time series.

Time series prediction

Once the underlying geometry of the time series is estimated as in the previous examples, a prediction for the time series can be made by iteration:

φ ( 0 ) = x ( 1 ) {\displaystyle \varphi (0)=x(1)}
x ( t ) φ ( t 1 ) {\displaystyle {x}(t)\approx \varphi (t-1)}
x ( t + 1 ) φ ( t ) = φ [ φ ( t 1 ) ] {\displaystyle {x}(t+1)\approx \varphi (t)=\varphi } .

A comparison of the actual and estimated time series is displayed in the figure. The estimated times series starts out at time zero with an exact knowledge of x(0). It then uses the estimate of the dynamics to update the time series estimate for several time steps.

Note that the estimate is accurate for only a few time steps. This is a general characteristic of chaotic time series. This is a property of the sensitive dependence on initial conditions common to chaotic time series. A small initial error is amplified with time. A measure of the divergence of time series with nearly identical initial conditions is known as the Lyapunov exponent.

Control of a chaotic time series

Figure 10: Control of the logistic map. The system is allowed to evolve naturally for 49 time steps. At time 50 control is turned on. The desired trajectory for the time series is red. The system under control learns the underlying dynamics and drives the time series to the desired output. The architecture is the same as for the time series prediction example.

We assume the output of the logistic map can be manipulated through a control parameter c [ x ( t ) , t ] {\displaystyle c} such that

x ( t + 1 ) = 4 x ( t ) [ 1 x ( t ) ] + c [ x ( t ) , t ] {\displaystyle {x}_{}^{}(t+1)=4x(t)+c} .

The goal is to choose the control parameter in such a way as to drive the time series to a desired output d ( t ) {\displaystyle d(t)} . This can be done if we choose the control parameter to be

c [ x ( t ) , t ]   = d e f   φ [ x ( t ) ] + d ( t + 1 ) {\displaystyle c_{}^{}\ {\stackrel {\mathrm {def} }{=}}\ -\varphi +d(t+1)}

where

y [ x ( t ) ] f [ x ( t ) ] = x ( t + 1 ) c [ x ( t ) , t ] {\displaystyle y\approx f=x(t+1)-c}

is an approximation to the underlying natural dynamics of the system.

The learning algorithm is given by

a i ( t + 1 ) = a i ( t ) + ν ε u ( x ( t ) c i ) i = 1 N u 2 ( x ( t ) c i ) {\displaystyle a_{i}(t+1)=a_{i}(t)+\nu \varepsilon {\frac {u{\big (}\left\Vert \mathbf {x} (t)-\mathbf {c} _{i}\right\Vert {\big )}}{\sum _{i=1}^{N}u^{2}{\big (}\left\Vert \mathbf {x} (t)-\mathbf {c} _{i}\right\Vert {\big )}}}}

where

ε   = d e f   f [ x ( t ) ] φ [ x ( t ) ] = x ( t + 1 ) c [ x ( t ) , t ] φ [ x ( t ) ] = x ( t + 1 ) d ( t + 1 ) {\displaystyle \varepsilon \ {\stackrel {\mathrm {def} }{=}}\ f-\varphi =x(t+1)-c-\varphi =x(t+1)-d(t+1)} .

See also

References

  1. Broomhead, D. S.; Lowe, David (1988). Radial basis functions, multi-variable functional interpolation and adaptive networks (Technical report). RSRE. 4148. Archived from the original on April 9, 2013.
  2. Broomhead, D. S.; Lowe, David (1988). "Multivariable functional interpolation and adaptive networks" (PDF). Complex Systems. 2: 321–355. Archived (PDF) from the original on 2020-12-01. Retrieved 2019-01-29.
  3. ^ Schwenker, Friedhelm; Kestler, Hans A.; Palm, Günther (2001). "Three learning phases for radial-basis-function networks". Neural Networks. 14 (4–5): 439–458. CiteSeerX 10.1.1.109.312. doi:10.1016/s0893-6080(01)00027-2. PMID 11411631.
  4. Beheim, Larbi; Zitouni, Adel; Belloir, Fabien (January 2004). "New RBF neural network classifier with optimized hidden neurons number".
  5. Ibrikci, Turgay; Brandt, M.E.; Wang, Guanyu; Acikkar, Mustafa (23–26 October 2002). Mahalanobis distance with radial basis function network on protein secondary structures. Proceedings of the Second Joint 24th Annual Conference and the Annual Fall Meeting of the Biomedical Engineering Society. Engineering in Medicine and Biology Society, Proceedings of the Annual International Conference of the IEEE. Vol. 3. Houston, TX, USA (published 6 January 2003). pp. 2184–5. doi:10.1109/IEMBS.2002.1053230. ISBN 0-7803-7612-9. ISSN 1094-687X.
  6. Park, J.; I. W. Sandberg (Summer 1991). "Universal Approximation Using Radial-Basis-Function Networks". Neural Computation. 3 (2): 246–257. doi:10.1162/neco.1991.3.2.246. PMID 31167308. S2CID 34868087.

Further reading

Categories: