29
Cognitive Information Processing, Greece, June 2008 (Haykin) 1 Cognitive Dynamic Systems Simon Haykin McMaster University Hamilton, Ontario, Canada [email protected] http://soma.mcmaster.ca ***** 1. What is Cognition? 2. Cognitive Dynamic Systems Defined 3. Emerging Applications 4. Global Feedback 5. Why sub-optimality should be the objective of cognitive dynamic systems? 6. The Bayesian Filter: A powerful tool for cognitive information processing 7. Cubature Kalman Filter 8. Properties of the Cubature Kalman Filter 9. On-going Research Projects in My Laboratory 10. Concluding Remark Acknowledgements

Cognitive Dynamic Systems - McMaster Universitysoma.ece.mcmaster.ca/papers/cds2008/SLIDES_Haykin.pdf · Cognitive Information Processing, Greece, June 2008 (Haykin) 16 7. The Cubature

  • Upload
    others

  • View
    6

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Cognitive Dynamic Systems - McMaster Universitysoma.ece.mcmaster.ca/papers/cds2008/SLIDES_Haykin.pdf · Cognitive Information Processing, Greece, June 2008 (Haykin) 16 7. The Cubature

Cognitive Dynamic Systems

Simon HaykinMcMaster University

Hamilton, Ontario, [email protected]

http://soma.mcmaster.ca*****

1. What is Cognition?

2. Cognitive Dynamic Systems Defined

3. Emerging Applications

4. Global Feedback

5. Why sub-optimality should be the objective ofcognitive dynamic systems?

6. The Bayesian Filter: A powerful tool for cognitiveinformation processing

7. Cubature Kalman Filter

8. Properties of the Cubature Kalman Filter

9. On-going Research Projects in My Laboratory

10. Concluding Remark

Acknowledgements

Cognitive Information Processing, Greece, June 2008 (Haykin) 1

Page 2: Cognitive Dynamic Systems - McMaster Universitysoma.ece.mcmaster.ca/papers/cds2008/SLIDES_Haykin.pdf · Cognitive Information Processing, Greece, June 2008 (Haykin) 16 7. The Cubature

1. What is Cognition?According to the Oxford English Dictionary:Cognition is

KnowledgeKnowing, Knowledge Acquisition

Knowledge RepresentationContextual KnowledgeStorage of Knowledge

PerceptionPerceiving, Sensing of the Environment

Adaptation to the EnvironmentLearning from the Environment

Dealing with Uncertainty: 1. Probabilistic Reasoning

or Conceiving 2. Hypothesizing and Decision-making“The Bayesian framework”

an Act ControlApproximate Dynamic Programming

etc. Energy EfficiencyRobustness

The human brain has all these attributes, and there is plausible evidence forthe Bayesian framework -- hence the “Bayesian brain”.

{{{{{

Cognitive Information Processing, Greece, June 2008 (Haykin) 2

Page 3: Cognitive Dynamic Systems - McMaster Universitysoma.ece.mcmaster.ca/papers/cds2008/SLIDES_Haykin.pdf · Cognitive Information Processing, Greece, June 2008 (Haykin) 16 7. The Cubature

2. Cognitive Dynamic Systems Defined

A Cognitive Dynamic System is a systemthat processes information over the courseof time by performing the followingfunctions:

• Sense the environment;• learn from the environment

and adapt to its statistical variations;• build a predictive model of prescribed

aspects of the environment

and thereby develop rules of behaviour forthe execution of prescribed tasks, in theface of environmental uncertainties,efficiently and reliably in a cost-effectivemanner.

Cognitive Information Processing, Greece, June 2008 (Haykin) 3

Page 4: Cognitive Dynamic Systems - McMaster Universitysoma.ece.mcmaster.ca/papers/cds2008/SLIDES_Haykin.pdf · Cognitive Information Processing, Greece, June 2008 (Haykin) 16 7. The Cubature

3. Emerging Applications

Cognitive radio (Candidate for 5th generation wireless

communications)

Cognitive radar

Cognitive car

Cognitive genome

.

.

.

Cognitive optimization

Cognitive software

Cognitive Information Processing, Greece, June 2008 (Haykin) 4

Page 5: Cognitive Dynamic Systems - McMaster Universitysoma.ece.mcmaster.ca/papers/cds2008/SLIDES_Haykin.pdf · Cognitive Information Processing, Greece, June 2008 (Haykin) 16 7. The Cubature

al

m

Figure 1: Cognitive signal-processing cycle for user m ofcognitive radio network; the diagram also includes elementsof the receiver of user m

1 m-1 m m+1 M. . . . . .Users ofthe cognitiveradio network

Radio Environment (Wireless World)

Action:Transmissionof modulatedmessage signaldue to user m

Interferring signalsreceived from

users 1,...,m-1, m+1,..., M

Channel-stateestimator

Coherentreceiver

Radio-sceneanalyzer

Dynamicspectrum analyzerand, transmit-powercontroller

Feedbackchannel

Information onspectrum holes andsignal-to-noise ratioat the receiverinput of user m

Estimate of originmessage signalbelonging to user

.

Cognitive Information Processing, Greece, June 2008 (Haykin) 5

Page 6: Cognitive Dynamic Systems - McMaster Universitysoma.ece.mcmaster.ca/papers/cds2008/SLIDES_Haykin.pdf · Cognitive Information Processing, Greece, June 2008 (Haykin) 16 7. The Cubature

Figure 2: Block diagram of the Bayesian directfiltering system

xt-1|t-2xt-1|t-1 xt|t-1 xt|t

Trackingpredictor

Tracking filter

Unit-delay

Unit-delay

Statistical models of clutter and target-plus-clutter provided by the radar-scene analyzer

Notations

t: discrete-timext|t: filtered state vector of probabilities of targets being present in the search space at t given spectral measurements up to and including time t

The other data vectors in the diagram are similarly defined

Cognitive Information Processing, Greece, June 2008 (Haykin) 6

Page 7: Cognitive Dynamic Systems - McMaster Universitysoma.ece.mcmaster.ca/papers/cds2008/SLIDES_Haykin.pdf · Cognitive Information Processing, Greece, June 2008 (Haykin) 16 7. The Cubature

4. Global Feedback

“A Facilitator of Computational Intelligence”

• The human brain is a living example of acognitive dynamic system with globalfeedback in many of its parts, be that thevisual system, auditory system, or motorcontrol.

• Global feedback is responsible for thecoordination of different constituents of acognitive dynamic system.

• Global feedback is an inherent property ofall cognitive dynamic systems, but globalfeedback by itself will not make a dynamicsystem cognitive.

Cognitive Information Processing, Greece, June 2008 (Haykin) 7

Page 8: Cognitive Dynamic Systems - McMaster Universitysoma.ece.mcmaster.ca/papers/cds2008/SLIDES_Haykin.pdf · Cognitive Information Processing, Greece, June 2008 (Haykin) 16 7. The Cubature

5. Why sub-optimality shouldbe the objective of cognitive dynamic systems?

• Optimality of performance versusrobustness of behaviour.

• Global optimality of a cognitive dynamicsystem is not practically feasible:

• Infeasible computability• Curse-of-dimensionality• Large-scale nature of the system

Hence, the practical requirement ofhaving to settle for a sub-optimal solutionof the system design

• Trade-off global optimality forcomputational tractability and robustbehaviour.

Cognitive Information Processing, Greece, June 2008 (Haykin) 8

Page 9: Cognitive Dynamic Systems - McMaster Universitysoma.ece.mcmaster.ca/papers/cds2008/SLIDES_Haykin.pdf · Cognitive Information Processing, Greece, June 2008 (Haykin) 16 7. The Cubature

Criterion for sub-optimality

DO AS BEST AS YOU CAN, AND NOT MORE

• This statement is the essence of what thehuman brain does on a daily basis:

Provide the “best” solution inthe most reliable fashion for thetask at hand, given limitedresources.

• Key question: How do we define “best”?

Cognitive Information Processing, Greece, June 2008 (Haykin) 9

Page 10: Cognitive Dynamic Systems - McMaster Universitysoma.ece.mcmaster.ca/papers/cds2008/SLIDES_Haykin.pdf · Cognitive Information Processing, Greece, June 2008 (Haykin) 16 7. The Cubature

6. The Bayesian Filter:A powerful tool forcognitive informationprocessing

Problem statement:

Given a nonlinear dynamic system,estimate the hidden state of the system in arecursive manner by processing a sequenceof noisy observations dependent on thestate.

• The Bayesian filter provides a unifyingframework for the optimal solution of thisproblem, at least in a conceptual sense.

• Unfortunately, except in a few special cases,the Bayesian filter is not implementable inpractice -- hence the need for approximation.

Cognitive Information Processing, Greece, June 2008 (Haykin) 10

Page 11: Cognitive Dynamic Systems - McMaster Universitysoma.ece.mcmaster.ca/papers/cds2008/SLIDES_Haykin.pdf · Cognitive Information Processing, Greece, June 2008 (Haykin) 16 7. The Cubature

Bayesian Filter (continued)

State-space Model

1. System (state) Model

2. Measurement model

where t = discrete timext = state at time tyt = observation at timeωt = dynamic noise

= measurement noise

Assumptions:

• Nonlinear functions a(.) and b(.) are known

• Dynamic noise ωt and measurement noise are

statistically independent Gaussian processes ofzero mean and known covariance matrices.

xt 1+ a xt( ) ωt+=

yt b xt( ) νt+=

νt

νt

Cognitive Information Processing, Greece, June 2008 (Haykin) 11

Page 12: Cognitive Dynamic Systems - McMaster Universitysoma.ece.mcmaster.ca/papers/cds2008/SLIDES_Haykin.pdf · Cognitive Information Processing, Greece, June 2008 (Haykin) 16 7. The Cubature

Bayesian filter (continued)

Time-update equation:

where Rn denotes the n-dimensional state space.

Measurement-update equation:

where Zt is the normalizing constant defined by

p xt Yt-1( ) p xt xt-1( ) p xt-1 Yt-1( ) xt-1d

Rn

∫={ {

predictive prior old

distribution distribution posterior distribution

{

p xt Yt( ) 1Zt----- p xt Yt-1( )l yt xt( )=

Updated Predictive Likelihoodposterior distribution functiondistribution

{ { {

Zt p xt Yt-1( )l yt xt( ) xtd

Rn∫=

Cognitive Information Processing, Greece, June 2008 (Haykin) 12

Page 13: Cognitive Dynamic Systems - McMaster Universitysoma.ece.mcmaster.ca/papers/cds2008/SLIDES_Haykin.pdf · Cognitive Information Processing, Greece, June 2008 (Haykin) 16 7. The Cubature

Bayesian Filter (continued)

• The celebrated Kalman filter is a specialcase of the Bayesian filter, assuming thatthe dynamic system is linear.

• Except for this special case and couple ofother cases, exact computation of thepredictive distribution is notfeasible.

• We therefore have to abandon optimalityand be content with a sub-optimalnonlinear filtering algorithm that iscomputationally tractable.

p xt Yt-1( )

Cognitive Information Processing, Greece, June 2008 (Haykin) 13

Page 14: Cognitive Dynamic Systems - McMaster Universitysoma.ece.mcmaster.ca/papers/cds2008/SLIDES_Haykin.pdf · Cognitive Information Processing, Greece, June 2008 (Haykin) 16 7. The Cubature

Bayesian Filtering (continued)

Two Approaches for ApproximateNonlinear Filtering

1. Direct numerical approximation of theposterior in a local sense:• Extended Kalman filter• Unscented Kalman filter (Julier,

Ulhmann and Durrant-Whyte, 2000)• Central-difference Kalman filter

(Nörgaard, Poulson, and Ravn, 2000).• Cubature Kalman filter

(Arasaratnam and Haykin, 2008).

2. Indirect numerical approximation of theposterior in a global sense:• Particle filters

(Gordon, Salmond, and Smith, 1993)• Roots embedded in Monte Carlo

simulation• Computationally demanding

Cognitive Information Processing, Greece, June 2008 (Haykin) 14

Page 15: Cognitive Dynamic Systems - McMaster Universitysoma.ece.mcmaster.ca/papers/cds2008/SLIDES_Haykin.pdf · Cognitive Information Processing, Greece, June 2008 (Haykin) 16 7. The Cubature

Extended Kalman Filter

• Linearize the system model around thefiltered estimate , and linearize the

measurement model around the predictedestimate

• Attributes and Limitations

(i) The EKF is simple to implement

(ii) Estimation accuracy of the EKF isgood for nonlinearities of a mildsort; otherwise, it is often highlysuboptimal.

xt t

xt t 1–

Cognitive Information Processing, Greece, June 2008 (Haykin) 15

Page 16: Cognitive Dynamic Systems - McMaster Universitysoma.ece.mcmaster.ca/papers/cds2008/SLIDES_Haykin.pdf · Cognitive Information Processing, Greece, June 2008 (Haykin) 16 7. The Cubature

7. The Cubature KalmanFilter

(Arasaratnam and Haykin, IEEE Trans.Automatic Control, accepted for publicationsubject to revisions)

• At the heart of the Bayesian filter, we have tocompute integrals whose integrand isexpressed in the form

(Nonlinear function) x (Gaussian function)

• The challenge is to numerically approximatethe integral so as to completely preservesecond-order information about the state xthat is contained in the sequence ofobservations

• The computational tool that accommodatesthis requirement is the cubature rule (Cools,1997).

Cognitive Information Processing, Greece, June 2008 (Haykin) 16

Page 17: Cognitive Dynamic Systems - McMaster Universitysoma.ece.mcmaster.ca/papers/cds2008/SLIDES_Haykin.pdf · Cognitive Information Processing, Greece, June 2008 (Haykin) 16 7. The Cubature

Cubature Kalman Filter (continued)

The Cubature Rule

• In mathematical terms, we have tocompute an integral for the generic form

(1)

• To do the computation, the key step is to make achange of variables from the Cartesian coordinatesystem (in which the vector x is defined) to aspherical-radial coordinate system:

x = rz subject to zTz = 1 and xTx = r2

where 0 < r < ∞

h f( ) f x( ) 12---x

Tx–

exp xd

Rn

∫= {NormalizedGaussianfunction of zero mean andunit covariance function

{

Arbitraynonlinearfunction

Cognitive Information Processing, Greece, June 2008 (Haykin) 17

Page 18: Cognitive Dynamic Systems - McMaster Universitysoma.ece.mcmaster.ca/papers/cds2008/SLIDES_Haykin.pdf · Cognitive Information Processing, Greece, June 2008 (Haykin) 16 7. The Cubature

Cubature Kalman Filter (continued)

• We may thus express I as the radial integral

where S(r) is defined by the spherical integral

where σ(.) is the spherical surface measure on the region

• Working through a fair amount of mathematical details,we finally arrive at the desired linear approximation:

where = cubature representations of the

state vector x.

, i = 1, 2, ..., m = 2n

• The set constitutes the cubature points used to

numerically compute integrals of the form defined in Eq.(1).

I S r( )rn-1

r2

–( )exp rd0∞∫=

S r( ) f rz( ) σ z( )dU n∫=

U n z subject to zT

z, 1={ }=

h f( ) f x( )N x 0 I,;( ) xdR

n∫= {StandardGaussianfunction

ωif ξ i{ }i=1

2n

∑≈

ξ i{ }

ωi1m----=

ξ i ωi,

i=1

2n

Cognitive Information Processing, Greece, June 2008 (Haykin) 18

Page 19: Cognitive Dynamic Systems - McMaster Universitysoma.ece.mcmaster.ca/papers/cds2008/SLIDES_Haykin.pdf · Cognitive Information Processing, Greece, June 2008 (Haykin) 16 7. The Cubature

Parameter Updates of the Cubature Kalman Filter

Time update

Measurement update

xn n-1 E xn Yn-1[ ]=

a xn-1( )N xn-1;xn-1 n-1 Pn-1 n-1,( ) xn-1dRM∫= { {Nonlinear

state Gaussian distributionfunction

Nxn

yn

;xn n-1

yn n-1

Pn n-1 Px y n n-1,

Pyx n n-1, Py y n n-1,

,

{ { {Joint Joint Jointvariables mean covariance matrix

yn n-1 b xn( )N xn xn n-1 Pn n-1,;( ) xndRM∫=

{ {

Nonlinear Gaussian functionmeasurement function

Py y n n-1, b xn( )bT xn( )N xn xn n-1 Pn n-1,;( ) xn y– n n-1yn n-1T Qν n,+d

RM∫= { { { {

Outer product Gaussian function Outer product Covariance of of the matrix nonlinear estimate yn|n-1 measurement measurement with itself noise function with itself

^

Px y n n-1, Pyx n n-1,=

xnbT xn( )N xn xn n-1 Pn n-1,;( ) xn xn n-1yn n-1T

–dRM∫= { { {

Outer Gaussian function Outer productproduct of theof xn with estimatesb(xn) xn|n-1 and yn|n-1

^^

Cognitive Information Processing, Greece, June 2008 (Haykin) 19

Page 20: Cognitive Dynamic Systems - McMaster Universitysoma.ece.mcmaster.ca/papers/cds2008/SLIDES_Haykin.pdf · Cognitive Information Processing, Greece, June 2008 (Haykin) 16 7. The Cubature

Recursive Cycle of the Cubature Kalman Filter

• The Kalman gain is computed as

where is the inverse of the covariance matrix

.

• Upon receiving the new observation yn, the filteredestimate of the state xn is computed in accordance withthe predictor-corrector formula:

• Correspondingly, the covariance matrix of the filteredstate estimation error is computed as shown by

Updated posterior distribution

Gn Px y n n-1, Pyy,n n-11–

=

Pyy,n n-11–

Pyy,n n-11–

xn n xn n-1 Gn yn yn n-1–( )+=

{ { { {

Updated Old Kalman Innovations processestimate estimate gain

Pn n Pn n-1 GnPy y n n-1, GnT

–=

p xn Yn( ) N xn xn n Pn n,;( )=

Cognitive Information Processing, Greece, June 2008 (Haykin) 20

Page 21: Cognitive Dynamic Systems - McMaster Universitysoma.ece.mcmaster.ca/papers/cds2008/SLIDES_Haykin.pdf · Cognitive Information Processing, Greece, June 2008 (Haykin) 16 7. The Cubature

Properties of the Cubature Kalman Filter

Property 1: The cubature Kalman filter (CKF) is a derivative-free on-line sequential-state estimator.

Property 2: Approximations of the moment integrals are alllinear in the number of adjustable parameters.

Property 3: Computational complexity of the cubatureKalman filter grows as n3, where n is the dimensionality ofthe state space.

Property 4: The cubature Kalman filter completely preservessecond-order information about the state that is contained inthe observations.

Property 5: The cubature Kalman filter inherits properties ofthe linear Kalman filter, including square-root filtering forimproved accuracy and reliability.

Property 6: The cubature Kalman filter is the closest knowndirect approximation to the Bayesian filter, outperformingthe extended Kalman filter and the central-differenceKalman filter:

It eases the curse-of-dimensionality problembut, by itself, does not overcome it.

Cognitive Information Processing, Greece, June 2008 (Haykin) 21

Page 22: Cognitive Dynamic Systems - McMaster Universitysoma.ece.mcmaster.ca/papers/cds2008/SLIDES_Haykin.pdf · Cognitive Information Processing, Greece, June 2008 (Haykin) 16 7. The Cubature

Computer Experiment:Pattern Classification

Figure 3: True classification regions

−1 −0.5 0 0.5 1−1

−0.5

0

0.5

1

Cognitive Information Processing, Greece, June 2008 (Haykin) 22

Page 23: Cognitive Dynamic Systems - McMaster Universitysoma.ece.mcmaster.ca/papers/cds2008/SLIDES_Haykin.pdf · Cognitive Information Processing, Greece, June 2008 (Haykin) 16 7. The Cubature

Supervised Learning

Training sample: {ut, dt}

Figure 4: Block diagram of supervised learningmachinery

Inputvectorut

wt-1|t-1^

Unit-time delays

Nonlinear sequential-state estimator

wt|t^

Desiredresponsedt

Predictor

Corrector

dt|t-1^

Multilayer perceptron

Cognitive Information Processing, Greece, June 2008 (Haykin) 23

Page 24: Cognitive Dynamic Systems - McMaster Universitysoma.ece.mcmaster.ca/papers/cds2008/SLIDES_Haykin.pdf · Cognitive Information Processing, Greece, June 2008 (Haykin) 16 7. The Cubature

Experimental Setup

• Used a 2-5-5-4 FFNN with softmax outputnonlinearity and the mean squared-errorcriterion.

Total number of adjustable weights: 55 plus biases

• 1000 training examples drawn randomly from thesquare region.

• DSSM:Process equation: wt = wt-1 + ωt

Measurement equation: yt = b(wt, xt) + νt

• Two training algorithms: EKF, and square-rootKalman filter (SCKF).

• To check robustness of filters, 10% of the trainingexamples were mislabeled.

Cognitive Information Processing, Greece, June 2008 (Haykin) 24

Page 25: Cognitive Dynamic Systems - McMaster Universitysoma.ece.mcmaster.ca/papers/cds2008/SLIDES_Haykin.pdf · Cognitive Information Processing, Greece, June 2008 (Haykin) 16 7. The Cubature

Performance Comparison

Figure 5:

0 50 100 150 2005

10

15

20

25

30

35

40

45

Number of Epochs

Mis

clas

sific

atio

n R

ate

(%)

EKFCKF

0 50 100 150 2000.15

0.2

0.25

0.3

0.35

0.4

0.45

0.5

0.55

Number of Epochs

MS

E

EKF

CKF

Cognitive Information Processing, Greece, June 2008 (Haykin) 25

Page 26: Cognitive Dynamic Systems - McMaster Universitysoma.ece.mcmaster.ca/papers/cds2008/SLIDES_Haykin.pdf · Cognitive Information Processing, Greece, June 2008 (Haykin) 16 7. The Cubature

9. On-going Research Projectsin My Laboratory

(i) Cubature Kalman Filter:• Large-scale system applications involving

pattern recognition and approximate dynamicprogramming.

(ii) Cognitive Radio Networks:• Spectrum sensing• Robust transmit power control• Dynamic spectrum management• Emergent behaviour

(iii) Cognitive Radar Networks:• Sub-optimal control of inexpensive (surveillance) radar

sensors, given limited computational resources

(iv) Cocktail Party Processor:• Computational auditory scene analysis

Cognitive Information Processing, Greece, June 2008 (Haykin) 26

Page 27: Cognitive Dynamic Systems - McMaster Universitysoma.ece.mcmaster.ca/papers/cds2008/SLIDES_Haykin.pdf · Cognitive Information Processing, Greece, June 2008 (Haykin) 16 7. The Cubature

10. Concluding Remark

“Cognitive Dynamic Systems”

are

A Way of the Future

in

The 21st Century

Cognitive Information Processing, Greece, June 2008 (Haykin) 27

Page 28: Cognitive Dynamic Systems - McMaster Universitysoma.ece.mcmaster.ca/papers/cds2008/SLIDES_Haykin.pdf · Cognitive Information Processing, Greece, June 2008 (Haykin) 16 7. The Cubature

Acknowledgements

• Many thanks to my gifted group ofoutstanding Ph.D. students

• Deep gratitude to the Natural Sciencesand Engineering Research Council(NSERC) of Canada for continuedfinancial support

Cognitive Information Processing, Greece, June 2008 (Haykin) 28

Page 29: Cognitive Dynamic Systems - McMaster Universitysoma.ece.mcmaster.ca/papers/cds2008/SLIDES_Haykin.pdf · Cognitive Information Processing, Greece, June 2008 (Haykin) 16 7. The Cubature

The new Website

http://soma.mcmaster.ca

Cognitive Dynamic Systems Workshop,Niagara-on-the-Lake, May 2008, is availableand slides can be downloaded from thefollowing link

http://soma.mcmaster.ca/cds2008.php

Cognitive Information Processing, Greece, June 2008 (Haykin) 29