Spring Mass Identification

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

See discussions, stats, and author profiles for this publication at: https://www.researchgate.

net/publication/44261470

Algebraic Identification Method for Mass-Spring-Damper System

Article · October 2007


Source: DOAJ

CITATIONS READS

10 1,560

4 authors, including:

Jonathan Becedas Vicente Feliu


University of Leicester University of Castilla-La Mancha
95 PUBLICATIONS   776 CITATIONS    436 PUBLICATIONS   10,614 CITATIONS   

SEE PROFILE SEE PROFILE

Hebertt Sira-Ramirez
Center for Research and Advanced Studies of the National Polytechnic Institute
550 PUBLICATIONS   15,912 CITATIONS   

SEE PROFILE

Some of the authors of this publication are also working on these related projects:

Control of dominant time delay processes View project

Active disturbance rejection control View project

All content following this page was uploaded by Hebertt Sira-Ramirez on 04 June 2014.

The user has requested enhancement of the downloaded file.


Proceedings of the World Congress on Engineering and Computer Science 2007
WCECS 2007, October 24-26, 2007, San Francisco, USA

Algebraic Identification Method for


Mass-Spring-Damper System

†‡
J. Becedas*, G. Mamani*, V. Feliu-Batlle * and H. Sira-Ramírez **

Abstract—In this paper we describe a procedure tional calculus. They were developed in [1]. A differential
for parameters identification using an algebraic iden- algebraic justification of this article follows similar lines
tification method for a continuous time constant lin- to those encountered in [2], [3], [4] and also [5]. Let us
ear system. We make a specific application in the recall that those techniques are not asymptotic.
determination of the parameters mass-spring-damper
system. The method is suitable for simultaneously Parameter estimation has been an important topic in sys-
identifying, both, the spring constant and the damp- tem identification literature. The traditional theory is
ing coefficient. It is found that the proposed method well developed, see [6] and [7]. The most well known
is computationally fast and robust with respect to
technique for parameter estimation is the recursive least
noises. The identification algorithm has been verified
square algorithm. This paper basically focuses on an on-
by simulation results. The estimations are carried out
on-line. line identification method, of continuous-time nature, on
a mechanical system. Our approach uses the model of the
Keywords: Algebraic Identification, System Identifi- system, that is known almost most of times, the advan-
cation, Mass-Spring-Damper System tages are that it does not need any statistical knowledge
of the noises corrupting the data; the estimation does not
require initial conditions or dependence between the sys-
1 INTRODUCTION tem input and output; and the algorithm is computed
on-line.
Parameter identification is used to obtain an accurate
model of a real system, and the completed model pro- We mention that the algebraic method has also been ap-
vides a suitable platform for further developments of de- plied in [8] in the area of signal processing applications,
sign, or control strategies investigation. On-line param- and in [9] in flexible robots estimation with good results.
eter identification schemes are actually used to estimate In this last work it is also demonstrated the algebraic
system parameters, monitor changes in parameters and method independence to the input signal design.
characteristics of the system and for diagnostic purposes
related to a variety of areas of technology. The identi- Finally, this estimation method can be applied in a wide
fication schemes can be used to update the value of the range of applications in which appears the mass-spring-
design parameters specified by manufacturers. damper model, such as vibration control [10] , impact
dynamics [11], estimation of contact parameters [12], con-
In this article, we use an on-line algebraic method, of trol in robotics [13] among others.
non-asymptotic nature for the estimation of the mass-
spring-damper system. We simultaneously estimate the This paper is structured as follows: in section 2, the
spring constant and the damping coefficient. The input mass-spring-damper model is introduced and the alge-
variables to the estimator are the force input to the sys- braic identification method is presented. After the iden-
tem and the displacement of the mass. The identifica- tification method is outlined, simulations results are pre-
tion method is based on elementary algebraic manipula- sented in order to confirm the accuracy of the parameters
tions. This method is based on the following mathemat- estimation. This is accomplished in sections 3. Finally,
ical tools: module theory, differential algebra and opera- section 4 is devoted to concluding remarks and sugges-
tions for future research.
∗ G. Mamani, J. Becedas and V. Feliu-Batlle are
with Universidad de Castilla La Mancha, ETSI Industri-
ales, Av. Camilo José Cela S/N., 13071 Ciudad Real, 2 MASS-SPRING-DAMPER MODEL
Spain. Jonathan.Becedas@uclm.es, glmamani@uclm.es,
Vicente.Feliu@uclm.es AND IDENTIFICATION PROCE-
† **H. Sira-Ramírez is with Cinvestav IPN, Av. IPN, No 2503,
DURE
nCol. San Pedro Zacatenco AP 14740, 07300 México, D.F., México.
hsira@cinvestav.mx
‡ This research was supported by the Junta de Comunidades de This section is devoted to explain the linear model of the
Castilla-La Mancha, Spain via Project PBI-05-057 and the Euro- mass-spring-damper system and the algebraic identifica-
pean Social Fund. tion method.

ISBN:978-988-98671-6-4 WCECS 2007


Proceedings of the World Congress on Engineering and Computer Science 2007
WCECS 2007, October 24-26, 2007, San Francisco, USA

2.1 Mass-Spring-Damper model Next, to simplify the equation, we define the following
c k F
parameters: B = m ,K= m and f = m , and we obtain
Although vibrational phenomena are complex, some ba- the second order system
sic principles can be recognized in a very simple linear
model of a mass-spring-damper system. Such a system
.. .
contains a mass m [kg] , a spring with spring constant k x + B x + Kx = f (6)
[N/m] that serves to restore the mass to a neutral posi-
The mass-spring-damper transfer function is then written
tion, and a damping element which opposes the motion
as:
of the vibratory response with a force proportional to the
velocity of the system, the constant of proportionality
being the damping constant c [N s/m]. An ideal mass- x(s) 1
spring-damper system can be described with the follow- G(s) = = 2 (7)
f (s) (s + Bs + K)
ing formula:
In our parameter identification scheme we will compute,
in an algebraic form: B and K from linear identifiability.
Fs = −kx (1)
From these relation, and due to the fact that m is known,
we have

. dx
Fd = −cv = −cx = −c (2)
dt k = Km (8)
This system of equation is derived by the Newton ´s law c = Bm (9)
of motion which is
2.2 The Procedure of Algebraic Identifica-
X ..
2
d x tion
F = ma = mx = m (3)
dt2
Consider the second order system given in (6). c and k
where a is the acceleration [m/s2 ] of the mass and x [m] are unknown parameters and they are not linearly identi-
is the displacement of the mass relative to a fixed point of c
fiable. Nevertheless, the parameter m denoted by B and
reference.The above equation combine to form the equa- k
the parameter m denoted by K are linearly identifiable.
tion of motion, a second-order differential equation for
displacement x as a function of time t[sec]: We proceed to compute the unknown system parameters
B and K as follows:
.. .
mx + cx + kx = F (4) Taking Laplace transforms, of (6) yields,

Rearranging, we have
.
s2 x(s) − sx(0) − x(0) + B(sx(s) − x(0)) + Kx(s) = f (s)
(10)
.. c . k F Taking derivative with respect to the complex variable
x+ x+ x= (5)
m m m s,twice, we obtain independence of initial conditions.
Then (10) results in an expression free of the initial con-
.
An scheme of the system is depicted in Fig.1. ditions x(0) and x(0).

d2 £ 2 ¤ d2 £ ¤ d2
2
s x(s) + B 2 s2 x(s) = 2 [f (s) − Kx(s)] (11)
ds ds ds

The terms of (11) can be developed as:

d2 2 dx 2
2d x
[s x(s)] = 2x + 4s + s (12)
ds2 ds ds2

d2 dx d2 x
Figure 1: Mass-spring-damper system scheme. [sx(s)] = 2 + s (13)
ds2 ds ds2

ISBN:978-988-98671-6-4 WCECS 2007


Proceedings of the World Congress on Engineering and Computer Science 2007
WCECS 2007, October 24-26, 2007, San Francisco, USA

Recall that multiplication by s in the operational do- The estimates of the parameters K and B can be readily
main corresponds to derivation in the time domain. To obtained by solving the following linear equation
avoid derivation, after replacing the expressions (12, 13,
in equation (11), we multiply both sides of the resulting
expression by s−2 . We obtain [−p21 (t)q1 (t) + p11 (t)q2 (t)]
K= (24)
p11 (t)p22 (t) − p12 (t)p21 (t)
dx d2 x d2 x
B(2s−2 + s−1 2 ) + Ks−2 2 =
ds ds ds [p22 (t)q1 (t) − p12 (t)q2 (t)]
d 2
f (s) B= (25)
s−2 − 2s−2 − 4s−1 (14) p11 (t)p22 (t) − p12 (t)p21 (t)
ds2
In the time domain, one obtains the first equation for the The time realization of the elements of matrixes P and
unknown parameters B and K. It is a linear equation of Q can be written in a State Space framework via time-
the form variant linear (unstable) filters in order to make the phys-
ical implementation of the estimator easier in the real
time platform:
Bp11 (t) − Kp12 (t) = −q1 (t) (15)
p11 (t) = x1 (26)
where p11 , p12 and q1 are . 3
Z (2) Z x1 = −t θm (t) + x2
.
p11 (t) = −2 tx + t2 x (16) x2 = 6t2 θm (t) + x3
.
Z (2) x3 = −6tθm (t)
p12 (t) = t2 x (17)
Z (2) Z
q1 (t) = (t2 f − 2x) + 4 tx − t2 x (18)
p12 (t) = y1 (27)
.
y1 = y2
Notation1 .
y2 = t3 V (t) + y3
The expression (14) is multiplied both sides by s−1 once .
y3 = −3t2 V (t)
more, leads to a second linear equation for the estimates
B, and K.

This linear system can be represented in matrix form as:


q11 (t) = t3 θm (t)z1 (28)
PX = Q (19) . 2
z1 = −9t θm (t) + z2
where P is a matrix whose coefficients are time depen- .
z2 = 18tθm (t) + z3
dant, X is the column vector of the unknown parameters, .
and Q is a column vector whose coefficients are also time x3 = −6θm (t)
dependant. It is in general form,

· ¸· ¸ ¸ ·
p11 (t) p12 (t) q1 (t) B p21 (t) = ξ1 (29)
= (20)
p21 (t) p22 (t) q2 (t) K .
R R R ξ1 = ξ2
p21 (t) = p11 (t), p22 (t) = p12 (t), q2 (t) = q1 (t) being, .
ξ2 = −t3 θm (t) + ξ3
.
ξ3 = 6t2 θm (t) + ξ4
Z (3) Z (2) .
p21 (t) = −2 tx + t2 x (21) ξ4 = −6tθm (t)
Z (3) where ξ2 = p11
p12 (t) = t2 x (22)
Z Z Z p22 (t) = ρ1 (30)
(3) (2) .
q2 (t) = (t2 f − 2x) + 4 tx − t2 x) (23) ρ1 = ρ2
.
ρ2 = ρ3
R (n)
1 φ(t) representing the iterated .
R R Rσ R ρ3 = t3 V (t) + ρ4
integral 0t 0σ1 ... 0 n−1 φ(σn )dσn ...dσ1 with ( φ(t) ) = .
R R
( (1) φ(t) ) = 0t φ(σ)dσ ρ4 = −3t2 V (t)

ISBN:978-988-98671-6-4 WCECS 2007


Proceedings of the World Congress on Engineering and Computer Science 2007
WCECS 2007, October 24-26, 2007, San Francisco, USA

where ρ2 = p12 ideal estimation is obtained. On the other hand, the in-
put signals to the estimator are corrupted with a stochas-
q21 (t) = ψ1 (31) tic noise n(t) with zero mean and standard deviation 10−2
.
ψ1 = t3 θm (t) + ψ2 in the measure of the position. Fig.3 depicts the imple-
. mentation scheme of the estimator. Note that in estima-
ψ2 = −9t2 θm (t) + ψ3 tions without noise the input n(t) is zero. Independence
.
ψ3 = 18tθm (t) + ψ4 with respect an specific design of the input to the system
. is also demonstrated by using two different inputs to the
ψ4 = −6θm (t) system: step input and sinusoidal input.

where ψ2 = q11 .

The matrix P (t) is not invertible at time t = 0. This


means that no estimation of the parameters is done at
this time. But it is certainly invertible after an arbitrar-
ily small time t = ² > 0, then accuracy estimation of
the motor parameters is obtained in a very short period
of time. In practice we initialize the estimator after the
small arbitrary time interval t = ² in order to assure that Figure 2: Implementation scheme of the estimator.
the estimator obtain good estimates. From t = 0 to t = ²
there exist many singularities because of the divisions by The parameters used in the estimation are depicted in
the value zero (see equations (24) and (25), such singu- Table 1.
larities occur when p11 (t)p22 (t) − p12 (t)p21 (t) = 0 in the
K estimator and p11 (t)p22 (t) − p12 (t)p21 (t) = 0 in the B Table 1: System parameters used in simulations
estimator. Parameter Value
Since the available signals θm and V are noisy the es- m 1 [kg]
timation precision yielded by the estimator in (24)-(25) c 2 [Ns/m]
will depend on the Signal to Noise Ratio (SNR). We as- k 3 [N/m]
sume that θm and V are perturbed by an added noise
with unknown statistical properties. In order to enhance
c k
the SNR, we simultaneously filter the numerator and de- The parameters B = m and K = m which will be esti-
nominator by the same low-pass filter. Taking advantage mated by the estimator will have values of 2 [N s/(mkg)]
of the estimator rational form, the quotient will not be and 3 [N/(mkg)] respectively.
affected by the filters. This invariance is emphasized with
the use of different notations in frequency and time do- 3.1 Estimation without noise in the measure
main:
In this subsection estimation of the system parameters
F (s) [−p21 (t)q1 (t) + p11 (t)q2 (t)] are obtained by using ideal input signals to the estimator.
K= (32) In Fig.3(a) the step input to the system is shown. The re-
F (s)(p11 (t)p22 (t) − p12 (t)p21 (t))
sponse of the system to this input is depicted in Fig.3(b).
The estimator has such signals as input. The estima-
F (s) [p22 (t)q1 (t) − p12 (t)q2 (t)] tion of the parameters B and K are almost immediately
B= (33)
F (s)(p11 (t)p22 (t) − p12 (t)p21 (t)) obtained (see Fig.4). At time t = 0.04 [s] we get good es-
timates of the parameters with null error with respect the
Remark 2.1 Invariant low-pass filtering is based on ideal values B = 2 [N s/(mkg)] and K = 3 [N/(mkg)].
pure integrations of the form F (s) = 1/sp , p ≥ 1. We Until time t = 0.01 [s] the estimator has been initialized
assumed high frequency noises. This hypothesis were mo- to zero value. With this estimates and bearing in mind
tivated by recent developments in Non-standard Analysis, the mass value m = 1 [kg] from equations 8 and 9 the real
towards a new non stochastic noise theory. More details values of k = 3 [N/m] and c = 2 [N s/m] can be obtained
in [14]. respectively.

In the simulation with sinusoidal signal as input to the


3 SIMULATION RESULTS system are obtained the same results. The sinusoidal
signal has amplitude value of 1 [N ] and frequency value
This section is devoted to demonstrate the good perfor- 1 [rad/s]. Fig.5(a) depicts the sinusoidal input to the
mance of the theoretical algorithm previously explained. system, whereas Fig.5(b) depicts the response of the sys-
On the one hand, signals without any sort of noise are tem to such an input. The estimation of the values
used in the implementation to show the time in which an B = 2 [N s/(mkg)] and K = 3 [N/(mkg)] is shown in

ISBN:978-988-98671-6-4 WCECS 2007


Proceedings of the World Congress on Engineering and Computer Science 2007
WCECS 2007, October 24-26, 2007, San Francisco, USA

4 0.4

Position (m)
Force (N)

2 0.2
4
0 0
0 1 2 3 4 5 0 1 2 3 4 5
Time (s) Time (s)

B,K
(a) (b)
2
B[Ns/(mkg)]
Figure 3: (a) Step input to the system. (b) Response of K[N/(mkg)]
the system to step input. 0
0 0.5 1 1.5 2
Tiempo (s)
4
Figure 6: Estimation of B and K with sinusoidal input.
B,K

2
B[Ns/(mkg)]
K[N/(mkg)]
0 0.4
0 0.2 0.4 0.6 0.8 1

Position (m)

Position (m)
0.2
Tiempo (s) 0.2 0
−0.2
0 −0.4
0 1 2 3 4 5 0 1 2 3 4 5
Figure 4: Estimation of B and K with step input. Time (s) Time (s)

(a) (b)

Fig.6. In this case, we have initialized the estimator to Figure 7: (a) Response of the system to step input and
value zero within 0.03 [s]. The estimates are obtained at noise in the measure of the mass position. (b) Response
time t = 0.06 [s] and the values are maintained until the of the system to sinusoidal input and error in the measure
end of the experiment (see Fig.6). of the mass position.
1
Position (m)
Force (N)

0.2
0 0
−0.2
−1 −0.4
0 1 2 3 4 5 0 1 2 3 4 5
Time (s) Time (s) 4
(a) (b)
B,K

Figure 5: (a) Sinusoidal input to the system. (b) Re- 2


sponse of the system to sinusoidal input. B[Ns/(mkg)]
K[N/(mkg)]
0
3.2 Estimation with noise in the measure 0 1 2 3 4 5
Tiempo (s)
In this case the response signals of the system x(t) is cor-
rupted by stochastic noise with zero mean and 10−2 stan- Figure 8: Estimation of B and K with step input and
dard deviation. We consider noise in this signal because noise in the measure of the mass position.
is the only variable to measure in an experimental plat-
form by means of sensors such as accelerometers, vision
system,... The step and sinusoidal inputs to the system
are the same that the used in Section 3.1 (see Fig.3(a)
and Fig.5(a)). The input x(t) corrupted by noise to the 4
estimator is depicted in Fig.7(a) in the case in which the
input to the system is the step signal, and in Fig.7(b) in
B,K

the case in which the input to the system is the sinusoidal 2


signal. Note that the noise strongly affects the signals.
BB[Ns/(mkg)]
K[N/(mkg)]
The estimation of the parameters B and K when the 0
0 1 2 3 4 5
input f (t) is an step are depicted in Fig.8. The estimator Tiempo (s)
has been initialized to zero until time t = 1.1 [s] and at
time t = 2.5 [s] the values of B = 2 [N s/(mkg)] and Figure 9: Estimation of B and K with sinusoidal input
K = 3 [N/(mkg)] are obtained. When the input f (t) is and noise in the measure of the mass position.
sinusoidal the results are that depicted in Fig.9 with the
same results.

ISBN:978-988-98671-6-4 WCECS 2007


Proceedings of the World Congress on Engineering and Computer Science 2007
WCECS 2007, October 24-26, 2007, San Francisco, USA

The difference between the ideal case and this case in [4] Sira-Ramírez, H., Fliess, M., “On the discrete time
which noise in the measure appears is that the time in uncertain visual based control of planar manipula-
the estimation is different. Whereas in the estimations tor: An on-line algebraic identification approach",
without noise the values are obtained in 0.3 [s] after the Proc. 41 st IEEE Conf. Decision Control, 2002.
initialized zero value, the estimations with noise are car-
ried out in 1.4 [s] after such initialization. Nevertheless, [5] Fliess, M., Mboup, M., Mounier, H., Sira-Ramírez,
no error appears every estimation. Further, the different H. ,Questioning some paradigms of signal process-
input signals to the system do not affect the estimated ing via concrete example, Editorial Lagares, Mexico
values. City, 2003.
[6] Ljung, L., System Identification, Theory for users,
4 CONCLUSIONS 2nd ed. Prentice Hall PTR, 1999.
Parameter identification using an on-line, non asymp- [7] Bar-Shalom, Y. , Rong Li, X., Thiagalingam
totic, algebraic identification method for continuous-time Kirubarajan, Estimation with Applications to Track-
constant linear systems has been proposed for the esti- ing and Navigation, Theory, Algorithms and Soft-
mation of unknown parameters of a mass-spring-damper ware, John Wiley & Sons Inc, 2001.
model.
[8] Sira-Ramírez, H., Trapero, J., Feliu, V. , “Frequency
In this research, an algebraic technic in order to estimate identification in the noisy sum of two sinusoidal sig-
the physical values of the spring and damper of the sys- nal", 17th. International symposium on Mathemati-
tem is presented. This is based on a bunch of (unstable) cal Theory of Network and Systems, 2006.
filters that vary on time and which are combined with
classical low pass filters. The resultant expressions are [9] Becedas, J. , Trapero, J., Sira-Ra´mírez, H., Feliu,
obtained from derivative algebraic operations, including V.,“Fast identification method to control a flexible
the unknown constants elimination through derivations manipulator with parameters uncertainties”, IEEE
with respect the complex variable s. International Conference on Robotics and Automa-
tion, Rome, 2007.
The only input variables to the estimator are the input
[10] Yunfeng Li and Horowitz, R., “Active suspension vi-
force to the system and the displacement of the mass.
bration control with dual stage actuators inhard disk
Among the advantages of this approach we find:it is in-
drives”,Proceedings of the American Control Confer-
dependent of initial conditions; the methodology is also
ence, V4, pp. 2786 - 2791, 2001.
robust with respect to zero mean high frequency noises
as seen from digital computer based simulations; the es- [11] Rivin, Eugene, I., “Stiffnes and damping in Mechan-
timation is obtained in a very short period of time and ical Design”, Marcel Decker, New York, 1999.
good results are achieved; a direct estimation of the pa-
rameters is achieved without translation between discrete [12] Erickson, D., Weber, M., Sharf, I., “Contact Stiffness
and continuous time domains; and the approach does not and Damping Estimation for Robotic Systems”, The
need a specific design of the inputs needed to estimate the International Journal of Robotics Research, V22,
parameters of the plant because exact formulas are pro- N1,pp. 41-57, 2003.
posed. Therefore its implementation in regulated closed
[13] Faik, S., Witteman, H., “Modeling of Impact
loop systems is direct.
Dynamics: A Literature Survey”, International
ADAMS User Conference, 2001.
References
[14] Fliess, M., “Analyse non standard du bruit,” C.R.
[1] Fliess, M., Sira-Ramírez, H.,“An algebraic frame- Acad. Sci. Paris, Ser. I 342. 2006.
work for linear identification", ESAIM Contr. Optim
and Calc. of Variat., V9, pp. 151-168, 2003.
[2] Fliess, M., Sira-Ramírez, H., “On the non-calibrated
visual based control of planar manipulators: An on-
line algebraic identification approach", IEEE-SMC-
2002, V5, 2002.
[3] Sira-Ramírez, H., Fossas, E. , Fliess, M.,“Output
trajectory tracking in an uncertain double bridge
buck dc to dc power converter: An algebraic on-
line parameter identification approach", in Proc. 41
st IEEE Conf. Decision Control,V3, pp. 2462-2467,
2002.

ISBN:978-988-98671-6-4 WCECS 2007


View publication stats

You might also like