You are on page 1of 39

Sequential Function Estimation -

Becks Method
Keith A. Woodbury
Mechanical Engineering Department
The University of Alabama
June 13-18, 1999 3rd Int. Conf Inverse Problems in Engineering 2
Overview
Function Estimation vs. Parameter
Estimation
Function Specification - reduces function to
collection of parameters
Ill-posedness: Future times regularization
Becks_method.exe - simple program
June 13-18, 1999 3rd Int. Conf Inverse Problems in Engineering 3
Parameter Estimation
Given a system model with one or more
unknown parameters, adjust these
parameters so that the model reproduces the
observed behavior of the system.
June 13-18, 1999 3rd Int. Conf Inverse Problems in Engineering 4
Parameter Estimation Example
Simple heat conduction
const T x T
const q
t
T
k
t
T
x
T
t
T
x
L x

0
0
0
2
2
) 0 , (
0
Either or q
0
could
be unknown.
A suitable
observation of the
systems behavior
(set of data) must be
available
June 13-18, 1999 3rd Int. Conf Inverse Problems in Engineering 5
Parameter Estimation Example
Suppose q
0
is unknown
q
t
Which one?
q
t
Which one?
t
Y Response at
x=L
June 13-18, 1999 3rd Int. Conf Inverse Problems in Engineering 6
Parameter Estimation Example
Match the observed data Y with the
model-computed values T in a least squares
sense
Minimize
Note the solution T(x,t) for constant q
o
is
( ) ( ) ( ) T Y T Y

T
n
i
i i
T Y S
1
2
0
1
2
2 2
2 2
2
2
0
cos exp
1 2
2
1
3
1
) , ( T
L
x n
L
t n
n L
x
L
x
L
t
k
L q
t x T
n
+
1
1
]
1

,
_

,
_

,
_

+ +

June 13-18, 1999 3rd Int. Conf Inverse Problems in Engineering 7


Parameter Estimation Example
To minimize the sum squared error S, force
the derivative of S with respect to q
0
to zero
( )
( )


n
i
i
q i i
n
i
i
i i
X T Y
q
T
T Y
dq
dS
1
1
0 0
0 2
Sensitivity of T
i
with respect to
parameter q
0
June 13-18, 1999 3rd Int. Conf Inverse Problems in Engineering 8
Parameter Estimation Example
Note the solution T(x,t) for constant q
o
is
which can be written compactly as
so the sensitivity function is
0
1
2
2 2
2 2
2
2
0
cos exp
1 2
2
1
3
1
) , ( T
L
x n
L
t n
n L
x
L
x
L
t
k
L q
t x T
n
+
1
1
]
1

,
_

,
_

,
_

+ +

[ ]
0 2 1
0
) , ( ) ( ) ( ) , ( T t x g x f t f
k
L q
t x T + + +
[ ] ) , ( ) ( ) ( ) , (
2 1
0
t x g x f t f
k
L
q
T
t x X
q
+ +

June 13-18, 1999 3rd Int. Conf Inverse Problems in Engineering 9


Parameter Estimation Example
Substituting
( )
[ ]
[ ] 0 ) , ( ) ( ) (
) , ( ) ( ) (
0
* *
2 1
1
0
* *
2 1
0
1
+ +

,
_

,
_

+ + +

i i
n
i
i i i
n
i
qi i i
t x g x f t f
k
L
T t x g x f t f
k
L q
Y
X T Y
June 13-18, 1999 3rd Int. Conf Inverse Problems in Engineering 10
Parameter Estimation Example
The circled terms are equal to X
qi
( )
[ ]
[ ] 0 ) , ( ) ( ) (
) , ( ) ( ) (
0
* *
2 1
1
0
* *
2 1
0
1
+ +

,
_

,
_

+ + +

i i
n
i
i i i
n
i
qi i i
t x g x f t f
k
L
T t x g x f t f
k
L q
Y
X T Y
June 13-18, 1999 3rd Int. Conf Inverse Problems in Engineering 11
Parameter Estimation Example
So
which can be solved for q
0
!
( ) 0
1
0 0
+

n
i
qi qi i
X T X q Y
( )
[ ] ( )
0 q q q
T Y X X X

T T
n
i
qi qi
n
i
qi i
X X
X T Y
q
1
1
1
0
0
June 13-18, 1999 3rd Int. Conf Inverse Problems in Engineering 12
Function Estimation
How does function estimation differ from
parameter estimation?
Instead of a single (or finite) group of
unknowns, there is a continuous function to
be determined.
June 13-18, 1999 3rd Int. Conf Inverse Problems in Engineering 13
Function Estimation
const T x T
const t q
t
T
k
t
T
x
T
t
T
x
L x

0
0
2
2
) 0 , (
) (
0
Problem 1
June 13-18, 1999 3rd Int. Conf Inverse Problems in Engineering 14
Function Estimation
Basic Idea: Reduce the continuous function
to a set of parameters by specifying an
underlying nature of the function.
Possibilities:
constant, linear, quadratic, etc - these are
all global or whole domain functions
piecewise constant, piecewise linear,
etc - these are all local or sequential
functions
June 13-18, 1999 3rd Int. Conf Inverse Problems in Engineering 15
Function Estimation Approach
Use superposition for this linear problem to
transform the original problem into a
sequence of parameter estimation problems
q
t
q
1
q
2
q
3
Piecewise
constant
approximation
June 13-18, 1999 3rd Int. Conf Inverse Problems in Engineering 16
Duhamels Summation
Denote the solution to Problem 1 with
q(t)=1 and T
0
=0 as (x,t).
Then the solution to Problem 1 with
q(t)=q
1
=const is
and the solution for a pulse of magnitude q
1
of duration t is
) , ( ) , (
1
t x q t x T
( ) ) , ( ) , ( ) , (
1
t t x t x q t x T
June 13-18, 1999 3rd Int. Conf Inverse Problems in Engineering 17
Duhamels Summation
The solution to Problem 1, up to some time
t
M
, with q(t) as a sequence of pulses of
width t is the sum of the responses for all
the pulses:
( )
( )
( )
( ) ) , ( ) ) 1 ( , (

) 3 , ( ) 2 , (
) 2 , ( ) , (
) , ( ) , ( ) , (
3
2
1
t M t x t M t x q
t t x t t x q
t t x t t x q
t t x t x q t x T
M M M
M M
M M
M M M
+
+
+

M
June 13-18, 1999 3rd Int. Conf Inverse Problems in Engineering 18
Duhamels Summation
If the initial temperature is T
0
, then
( ) ( )
( )
n M
M
n
n
n M n M
M
n
n
M M
M
n
n M
q T
t x t x q T
t n t x t n t x q T t x T

+
+
+

1
0
1
1
0
1
0
) , ( ) , (
) , ( ) 1 , ( ) , (
Where ) , ( ) , (
1 i i i
t x t x
+
June 13-18, 1999 3rd Int. Conf Inverse Problems in Engineering 19
Duhamels Summation
Matrix form

'

1
1
1
1
1
1
1
1
]
1

'

+ + + +

+ 1
2
1
0 1 4 3 2
0 1 1
0 1
0
1
2
1
r M
M
r M r M r M
M
r M
M
q
q
q
q
T
T
T
T
M
M
L
O M M M M
L
O M M
M
M
]
T
T T T T
0 0 0 0
L L +
June 13-18, 1999 3rd Int. Conf Inverse Problems in Engineering 20
If the calculated values T are matched
exactly to the observations Y, then q could
be solved directly
or premultiply by X
T
and solve for q
Stoltz Method
In matrix notation
{ } [ ]{ } { }
0
T q X T +
{ } [ ] { }
0
T Y X q
1
{ } [ ] { }
0
T Y X X X q

T T
1
June 13-18, 1999 3rd Int. Conf Inverse Problems in Engineering 21
Stoltz Method
This exacting matching of data is
sometimes referred to as the Stoltz method
can be applied either as whole domain method
(as suggested above) or sequentially
the inherent ill-posedness of this problem is
manifested by the poor condition number of the
coefficient matrix X
T
X
ill-posedness gives large changes in output q for
small changes in the input Y or small values of t
June 13-18, 1999 3rd Int. Conf Inverse Problems in Engineering 22
Sequential Stoltz Method
From the equation for T
M
( )
1
0
1
1
0 1
0
1
1
0
0
1
1

,
_

,
_

,
_

T q Y
T q Y
T q Y
q
M
i
i M i M
M
i
i M i M
M
i
i M i M
M
Stoltzs Method
June 13-18, 1999 3rd Int. Conf Inverse Problems in Engineering 23
Stoltz Method: Example
Material with k=c
p
=1 with T
0
=0 and data
from x=L=1
0.00
0.10
0.20
0.30
0.40
0 0.5 1 1.5 2
time
T
e
m
p
e
r
a
t
u
r
e
June 13-18, 1999 3rd Int. Conf Inverse Problems in Engineering 24
Stoltz Method: Results
time flux time flux
0.03 3.10E-02 0.93 -4.39E+14
0.09 8.00E-02 0.99 6.80E+15
0.15 2.99E-01 1.05 -1.05E+17
0.21 -2.10E+00 1.11 1.63E+18
0.27 3.61E+01 1.17 -2.53E+19
0.33 -5.54E+02 1.23 3.91E+20
0.39 8.59E+03 1.29 -6.06E+21
0.45 -1.33E+05 1.35 9.38E+22
0.51 2.06E+06 1.41 -1.45E+24
0.57 -3.19E+07 1.47 2.25E+25
0.63 4.94E+08 1.53 -3.48E+26
0.69 -7.64E+09 1.59 5.39E+27
0.75 1.18E+11 1.65 -8.35E+28
0.81 -1.83E+12 1.71 1.29E+30
0.87 2.84E+13 1.77 -2.00E+31
1.83 3.10E+32
June 13-18, 1999 3rd Int. Conf Inverse Problems in Engineering 25
Becks Sequential Method
Add stability to exact matching by
considering r future time steps and making
the temporary (but incorrect) assumption
that q
M
= q
M+1
= = q
M+r-1
q
t
q
1
q
2
q
3
q
M
q
M+r-1
June 13-18, 1999 3rd Int. Conf Inverse Problems in Engineering 26
Write the equations for T
M
, T
M+1
, , T
M+r-1
from the Duhamels summation
Becks Sequential Method

+ +

+ +

+ +

+ +
+ +
1
1
0 1 1
1
1
2 0 1 1
1
1
1 0

M
i
M r r i M i r M
M
i
M i M i M
M
i
M i M i M
q T q T
q T q T
q T q T
M M
June 13-18, 1999 3rd Int. Conf Inverse Problems in Engineering 27
Becks Sequential Estimation
Now use least-squares to match the data in
an average sense. Minimize
( )

+ +

r
i
i M i M
T Y S
1
2
1 1
This leads to

+ +


,
_

r
i
i
i
r
i
M
k
i k M k i M
M
T q Y
q
1
2
1
0
1
1
1 1
Becks Method
June 13-18, 1999 3rd Int. Conf Inverse Problems in Engineering 28
Becks Method Example
Material with k=c
p
=1 with T
0
=0 and data
from x=L=1 (same as before)
0.00
0.10
0.20
0.30
0.40
0 0.5 1 1.5 2
time
T
e
m
p
e
r
a
t
u
r
e
June 13-18, 1999 3rd Int. Conf Inverse Problems in Engineering 29
Becks Method Results
0.00
0.10
0.20
0.30
0.40
0.50
0.60
0.70
0 0.5 1 1.5 2
time
H
e
a
t

F
l
u
x
r = 2
r = 3
Exact
June 13-18, 1999 3rd Int. Conf Inverse Problems in Engineering 30
Noise in Data
All data gathered experimentally contains
some amount of error (or noise) associated
with the measurement process
If the noise is random and normally
distributed with zero mean and standard
deviation , then an error over the range of
+/ 1.96 will encompass 95% of the data
t 96 . 1 T
June 13-18, 1999 3rd Int. Conf Inverse Problems in Engineering 31
Noise in Data
To test the ability of the algorithm to
perform in the face of noise, we poison
the data by adding random perturbations
from a normal distribution to the data
-0.10
0.00
0.10
0.20
0.30
0.40
0 0.5 1 1.5 2
time
T
e
m
p
e
r
a
t
u
r
e
of % 5
0086355 . 0
max
T

June 13-18, 1999 3rd Int. Conf Inverse Problems in Engineering 32
Noised Results
0.00
0.10
0.20
0.30
0.40
0.50
0.60
0.70
0.80
0 0.5 1 1.5 2
time
H
e
a
t

F
l
u
x
r = 3
r = 4
r=6
Exact
June 13-18, 1999 3rd Int. Conf Inverse Problems in Engineering 33
Regularization
The use of future times information
provides a stabilization, or regularization,
of the underlying ill-posed problem
concurrently, the use of future times
information induces bias in the estimate for q
i
June 13-18, 1999 3rd Int. Conf Inverse Problems in Engineering 34
Becks_Method.exe
Windows Console Application (runs from
command line)
Two input files
thermophysical property data
temperature data
keyboard input required
define which sensors to consider and how many
future times to include
C source code included
Closely follows algorithm in Beck, et al. (1985)
June 13-18, 1999 3rd Int. Conf Inverse Problems in Engineering 35
Becks_Method.exe
Thermophysical Property data file
therm.nod
1 /* total number of sensors */
1 /* indicies of the sensors */
1. /* length of 1-d domain */
1. 1. /* k, rho*cp for AL 5083 alloy */
1. /* number of distinct TCs locations */
1. /* dimensional locations of the TCs */
June 13-18, 1999 3rd Int. Conf Inverse Problems in Engineering 36
Becks_Method.exe
Second thermophysical property file
example
therm.al
21 /* total number of sensor */
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1.6875 /* length of 1-d domain in inches */
1.6e-3 2.06e-2 /* k, rho*cp for AL 5083 alloy */
1 /* number of distinct TCs locations */
1.6875 /* dimensional locations of the TCs */
June 13-18, 1999 3rd Int. Conf Inverse Problems in Engineering 37
Becks_Method.exe
Temperature data file
triangle.dat
0.000 0.000000
0.060 0.000024
0.120 0.000494
0.180 0.002368
0.240 0.006564
0.300 0.013648
0.360 0.023937
. .
. .
. .
times temperatures
June 13-18, 1999 3rd Int. Conf Inverse Problems in Engineering 38
Becks_Method.exe
Command Line execution
redirection will capture output to a file
C:> Becks_Method therm.nod triangle.dat
C:> Becks_Method therm.nod triangle.dat > beck.out
June 13-18, 1999 3rd Int. Conf Inverse Problems in Engineering 39
References
Beck, Blackwell, and St. Clair, Inverse Heat
Conduction: Ill-Posed Problems, John-
Wiley, 1985 (out of print; copies available
from J.V. Beck)

You might also like