Computing reference signals just from the error signal

Hi all,

I'm a student from the University of Osnabr�ck, Germany and a beginner to
PCT. I'm currently investigating the lower levels to eventually build a
neural network based robot control.

I'm hoping you can shed some light on the following issue that currently
bugs me. I'm using the following model of a "PCT block":

        > ref
  i' |+
   ,---(X)---, err
   > - |
[ IF ] [ OF ]
   > >
   i o

i is a vector of sensori information.
o is a vector of reference signals to lower levels.
ref is obviously the reference signal from higher levels
err is obviously the error signal
IF converts i to i' so that i' can be compared to ref
OF converts err to o so that o contains the correct reference signals to
     lower levels.

The output function OF is the part I'm having problems with. I repeatedly
ran into situations where the output vector o can not solely be determined
by the error signal err.

For example, lets say I constructed a hierarchy level that corresponds to
the configuration control level proposed by BP. This level takes positions
of joints as reference signals and tries to hold these against disturbances.
Moving up to the level that actually select these position signals, I
tried to implement the velocity control level of BP. A sensed change of
a signal is compared to reference velocity. But on this level I can't see
how I should select reference signals solely based on the error between
the sensed velocity and the reference velocity, because the error can be
the same for two totally different positions.

What could work in my opinion is the following schematic:

        > ref
  i' |+
   ,---(X)---, err
   > - |
[ IF ] .->[ OF ]
   > > >
   i----' o

Do you see my problem and is my proposed solution in the line with PCT?

Kind regards,
Hannes

[From Bill Powers (2010.06.18.0654 MDT)]

HG: I’m a student from the
University of Osnabrück, Germany and a beginner to

PCT. I’m currently investigating the lower levels to eventually build
a

neural network based robot control.

BP: Pleased to meet you, Hannes –
I appreciate your difficulties here, because I also have run into this
problem. There seem to be two velocity control levels, one below and one
above configurations.
The higher “transition” level is based on
“stroboscopic” motion perception, in which a series of static
configurations leads to a perception of smooth motion, as in television
and motion pictures. A constant velocity error at this level would have
to give rise to continually changing output, a continually changing
reference signal for a configuration control system. So the output
function would be an integrator or perhaps some kind of “central
pattern generator”. The input function would act like a
differentiator, computing delta-x/delta-t, dx/dt, where x is a scalar
measure of a configuration signal. This is very unsatisfactory, and I
haven’t tried models that use this level. This is one reason I keep
telling people not to memorize my definitions of the levels. I’m sure
there are levels, but I don’t think I have them right yet. In some ways
they seem to work well, but when you get into the details there are
problems, mostly because nobody knows how the brain constructs these
higher-level perceptions and neuroscience isn’t of any help yet.
While the stroboscopic motion detector seems necessary to account for
what we observe, there is another way to introduce velocity control at a
lower level that has some very nice consequences. Let the
higher-order system control position, and let the error signal become the
reference signal for a velocity control system. The output of the
velocity control system is a force that accelerates a mass (in the
environmental feedback function). The mass acts as an integrator which
converts the force output into a velocity which is sensed and compared
with the velocity reference signal. The velocity of the mass is
integrated again (by Mother Nature) to produce position, which is sensed
by the higher-level position control system. This is called
“cascade” control.

Here is the model:

7b551e.jpg

What is nice about this arrangement is that you can make the load into a
mass on a spring with damping, and show that the two-level controller
will seem to adapt itself to changes in mass, damping, and spring
constant. A change in the mass over a range of 200 to 1, for example,
hardly affects the position response to a step-change in position
reference signal.

In my latest book, Living Control Systems III, chapter 5 discusses this
demonstration, which includes Bode plots showing what happens as the load
parameters are changed. The frequency response changes from a negative
slope to a positive slope just as if the system were changing its
parameters – but it isn’t.

7b557c.jpg

A third level with cascaded acceleration control could also be added. I
think that might work very well with a robot, though I haven’t tried a
simulation of a robot arm with full physical dynamics yet (or rather, our
Real Mathematician, Richard Kennaway, hasn’t tried it yet).

There are pretty strong indications that human spinal control systems
(“reflexes”) are organized this way, in terms of equivalent
mathematical properties.

HG: What could work in my
opinion is the following schematic:

ref

i’ |+

,—(X)—, err

  •  |
    

[ IF ] .->[ OF ]

i----’ o

Do you see my problem and is my proposed solution in the line with
PCT?

BP: Your solution is not far from mine, though you need a separate input
and output function for the lower-level system.

I’m pretty sure that this two-level (and perhaps three-level) arrangement
can be found in human control systems at the spinal and perhaps
brain-stem levels. The higher, stroboscopic level of velocity perception
also seems certain to exist and could probably be demonstrated, but as I
say I haven’t thought of a way to model it yet. It’s clearly the only way
to see rates of change of configurations, for which my image is a
spinning cube.

I am very pleased to leave that problem for you to solve when you see why
your robot needs it.

Best,

Bill P.

P.S. Commercial message: the book is available from Amazon.com.

[From Bill Powers (2010.06.18.0840 MDT)]

Sorry, I omitted Hannes Grauer's name from the reply to "HG".

Best,

Bill P/

It’s Gr(ae)uler, anyhow.

Dick

···

----- Original Message -----
From: Bill Powers powers_w@FRONTIER.NET
Date: Friday, June 18, 2010 9:43 am
Subject: Re: Computing reference signals just from the error signal
To: CSGNET@LISTSERV.ILLINOIS.EDU

[From Bill Powers (2010.06.18.0840 MDT)]

Sorry, I omitted Hannes Grauer’s name from the reply to “HG”.

Best,

Bill P/

[From Rick Marken (2010.06.18.0910)]

Hi all,

Hi Hannes

I'm a student from the University of Osnabr�ck, Germany and a beginner to
PCT. I'm currently investigating the lower levels to eventually build a
neural network based robot control.

Super!

I'm hoping you can shed some light on the following issue that currently
bugs me.

I see Bill Powers already gave you some advice. I'm not nearly as good
at modeling as Bill, or Richard Kennaway, who is the person who
probably could help you the most, based on his experience writing a
model of a six legged insect, which is at

http://www2.cmp.uea.ac.uk/~jrk/Robotics/Archy/Archy.html

But I have two demos up on the net that might be relevant to your
problem. One is a two level model that simulates coordinated hand
movement. It has two higher level systems sending references to two
lower level systems. That's why I think it might be relevant to your
problem. The diagram of the model is at:

http://www.mindreadings.com/Coordination.html

I bet you can code it up yourself pretty easily but I can send you the
relevant java source (do they still call it that?) if you like.

The other demo is more abstract but it illustrates how, in principle,
you could create a working three level control hierarchy where control
systems at each level control a different _kind_ of perception (level
1 = scalar, level 2 = vector, level 3 = logical relationship) by
sending the appropriate references to the next lower level systems.
It's implemented as a spreadsheet so it might be a bit hard to read he
model. I originally wrote this in Lotus 1.2.3 (so this is a very old
demo) and published a little paper describing the model. The paper is
reprinted in my book "Mind Readings" or you can try to get the article
online: Marken, R. S. (1990) Spreadsheet Analysis of a Hierarchical
Control System Model of Behavior, Behavior Research Methods,
Instruments, & Computers, 22, 349 - 359. The Excel demo is available
at:

http://www.mindreadings.com/ControlDemo/SPRDSHT.ZIP

Again, welcome to PCT! You may be a beginner but you are definitely
starting off on the right track!!

Best

Rick

···

--
Richard S. Marken PhD
rsmarken@gmail.com
www.mindreadings.com

[From Ted Cloak (2010.06.18.1104
MDT)]

The human cerebellum contains
well over half of all the brain’s neurons. Most of these are in tiny granule
cells (60 to 80 billion of them!) whose function is apparently the fine tuning
of muscular movement.* This suggests that Mother Nature the Tinkerer (i.e.,
evolution via radiant variation and natural selection) has not found elegant
solutions to movement problems but has simply thrown hardware at them.

If she had gone for elegance,
our brains could be no bigger than a cat’s.

I’m betting that many/most of
those granule cells operate in perceptual control modules/nuclei – at least
a billion of them.

Little by little,
experimental neuroscience is approaching the point where that bet will be
confirmed or refuted.

···

*Anatomy of the cerebellum - Wikipedia

[From Bill Powers
(2010.06.18.0654 MDT)]

HG: I’m a student
from the University of Osnabrück, Germany and a beginner to

PCT. I’m currently
investigating the lower levels to eventually build a

neural network based
robot control.

BP: Pleased to meet you,
Hannes –

I appreciate your
difficulties here, because I also have run into this problem. There seem to be

two velocity control
levels, one below and one above configurations.

The higher “transition”
level is based on “stroboscopic” motion perception, in which a series
of

static configurations
leads to a perception of smooth motion, as in television and motion pictures.

A constant velocity error
at this level would have to give rise to continually changing output, a

continually changing
reference signal for a configuration control system. So the output function

would be an integrator or
perhaps some kind of “central pattern generator”. The input function

would act like a
differentiator, computing delta-x/delta-t, dx/dt, where x is a scalar measure
of a

configuration signal.
This is very unsatisfactory, and I haven’t tried models that use this level.

This is one reason I keep
telling people not to memorize my definitions of the levels. I’m sure

there are levels, but I
don’t think I have them right yet. In some ways they seem to work well, but

when you get into the
details there are problems, mostly because nobody knows how the brain

constructs these
higher-level perceptions and neuroscience isn’t of any help yet.

While the stroboscopic
motion detector seems necessary to account for what we observe, there is

another way to introduce
velocity control at a lower level that has some very nice consequences.

Let the higher-order
system control position, and let the error signal become the reference signal

for a velocity control
system. The output of the velocity control system is a force that accelerates

a mass (in the
environmental feedback function). The mass acts as an integrator which converts

the force output into a
velocity which is sensed and compared with the velocity reference signal.

The velocity of the mass
is integrated again (by Mother Nature) to produce position, which is

sensed by the
higher-level position control system. This is called “cascade”
control.

Here is the model:

What is nice about this
arrangement is that you can make the load into a mass on a spring with

damping, and show that
the two-level controller will seem to adapt itself to changes in mass,

damping, and spring
constant. A change in the mass over a range of 200 to 1, for example, hardly

affects the position
response to a step-change in position reference signal.

In my latest book, Living
Control Systems III, chapter 5 discusses this demonstration, which

includes Bode plots
showing what happens as the load parameters are changed. The frequency

response changes from a
negative slope to a positive slope just as if the system were changing its

parameters – but it
isn’t.

A third level with
cascaded acceleration control could also be added. I think that might work

very well with a robot,
though I haven’t tried a simulation of a robot arm with full physical

dynamics yet (or rather,
our Real Mathematician, Richard Kennaway, hasn’t tried it yet).

There are pretty strong
indications that human spinal control systems (“reflexes”) are
organized

this way, in terms of
equivalent mathematical properties.

HG: What could work
in my opinion is the following schematic:

ref

i’ |+

,—(X)—, err

  •  |
    

[ IF ] .->[ OF ]

i----’ o

Do you see my problem
and is my proposed solution in the line with PCT?

BP: Your solution is not
far from mine, though you need a separate input and output function for

the lower-level system.

I’m pretty sure that this
two-level (and perhaps three-level) arrangement can be found in human

control systems at the
spinal and perhaps brain-stem levels. The higher, stroboscopic level of

velocity perception also
seems certain to exist and could probably be demonstrated, but as I say I

haven’t thought of a way
to model it yet. It’s clearly the only way to see rates of change of

configurations, for which
my image is a spinning cube.

I am very pleased to
leave that problem for you to solve when you see why your robot needs it.

Best,

Bill P.

P.S. Commercial message: the book is available from
Amazon.com.

Hi again,

thanks for the warm welcome and the useful hints. Especially I think the
model for bi-manual coordination could be interesting to be implemented on
a robot to demonstrate some of the core issues of PCT.

As far as modeling is concerned I now see that of course I can not simply
use BPs proposed levels for human behavior to model a robot controller,
but that I need to take the capabilities of the robot into account. For
example, the robot doesn't have any "torque" sensor, so its not possible
to control the torque directly, but I can control the velocity as BP
showed with the first model in his reply.

Looking forward to interesting discussions and insights,
Hannes

[From Bill Powers (2010.06.21.0749 MDT)]

Ted Cloak (2010.06.18.1104 MDT) --

I appreciate your comments on the cerebellum -- as you'll recall, I was interested in it when B:CP came out. At the Wales meeting of the CSG (1994?) I presented a paper on an "artificial cerebellum," a model that contained a set of adaptive output functions which used the convolution theorem as the basis for reorganizing, rather than the E. coli method. It was very good for creating dynamic stability when added as a sort of piggy-back on a normal output function. The convolution theorem was suggested by the "parallel fibers" which carry signals past a whole row of Purkinje cells, synapsing with them in passing, so the same signal reaches successive cells with increasing delays as it goes down the row. This gives the f(t - tau) function needed in the convolution theorem. I don't know if the model I came up with really maps onto these parts of the cerebellum so neatly, but it's worth thinking about. This model also produced reorganization just from the error signal.

Another one of the projects that sort of got pushed to the back of the shelf when nobody seemed very interested in it. It's in the Proceedings of the conference at Greggynog, published by the University of Aberystwyth, but I can't find my copy which is probably still in a box in the storage shed behind the house. Maybe someone else who was there can give the reference.

Best,

Bill P.