Modeling of Physical Systems BME331 University of Toronto Endocrine System System Modeling Lab 1 Cardiovascular System System Response Lab 2 Neuromuscular System System Control Lab 3 Learning Objectives • Obtain mathematical models of physiological systems. • Describe the relationship between the unit impulse and the impulse response of a system. • Define a linear time-invariant system. Reality Conceptual Model Mathematical Model Mechanical Systems • Translation: x1(t) x(t) x(t) x2(t) C K F(t) πΉπΉ π‘π‘ = −πΎπΎπΎπΎ(π‘π‘) Linear Spring F(t) m F(t) πΉπΉ π‘π‘ = −πΆπΆ(π₯π₯1Μ (π‘π‘)-π₯π₯2Μ (π‘π‘)) Damper πΉπΉ π‘π‘ = πππ₯π₯(π‘π‘) Μ Inertia Mechanical Systems • Rotation: ππ(π‘π‘) ππ(π‘π‘) ππ2(π‘π‘) ππ1(π‘π‘) K ππ π‘π‘ = −πΎπΎππ(π‘π‘) Linear Spring ππ(π‘π‘) C ππ π‘π‘ = −πΆπΆ(ππ1Μ (π‘π‘)-ππ2Μ (π‘π‘)) Damper ππ(π‘π‘) I ππ(π‘π‘) ππ π‘π‘ = πΌπΌ ππΜ (π‘π‘) Inertia Example • Spring-Mass-Damper system Electrical Systems i(t) R u(t) ππ π‘π‘ = π π π π (π‘π‘) Resistance i(t) C u(t) ππ π‘π‘ = πΆπΆ π’π’Μ (π‘π‘) Capacitance i(t) L u(t) . π’π’ π‘π‘ = πΏπΏπ€π€Μ (π‘π‘) Inductance Example • Phase-lag circuit General System Properties • Resistance – Energy dissipation – E.g.: Ohm’s Law, mechanical damping coefficients, fluid resistance… • Capacitance – Storage of potential energy – E.g: capacitor, spring compliance • Inertance – Storage of kinetic energy – E.g.: Inductor, Newton’s second of motion, fluid inertia Example: Muscle model Adapted from: M.C.K. Khoo, Physiological Control Systems: Analysis, Simulation, and Estimation, Wiley & Sons Note: in this diagram springs are described in terms of their compliance (1/stiffness) • F: actual force produced by the muscle on the bone (taking into account active and passive components) • Fo: Force developed by the active contractile element of the muscle • R: viscous damping of the tissue • Cp: elastic storage properties of the sarcolemma • Cs: elastic storage properties of the muscle tendons Example: Muscle model •Consider how the force F changes if an external force stretches the muscle by an incremental length x. Adapted from: M.C.K. Khoo, Physiological Control Systems: Analysis, Simulation, and Estimation, Wiley & Sons Note: in this diagram springs are described in terms of their compliance (1/stiffness) • Relate F to F0 and x: • This expression reflects how the actual force produced by a muscle depends both on the strength of the contraction and the stretch of the muscle. Let’s consider further what characterizes a system… The Unit Impulse The unit impulse or δ-function has the properties: • • ∞ ∫−∞ πΏπΏ ∞ ∫−∞ ππ π‘π‘ ππππ 0+ = ∫0− πΏπΏ π‘π‘ ππππ = 1 π‘π‘ πΏπΏ π‘π‘ ππππ = ππ(0) The Impulse Response http://cnx.org/contents/0c47b9ac-f5b5-4761-8340-d9639168dcf1@2/Continuous-Time-Impulse-Respon The Convolution Sum Delayed and shifted versions of the impulse response The Convolution Sum (Cnt’d) In discrete time, the process in the previous slide is called the convolution sum and can be expressed as: +∞ π¦π¦ ππ = οΏ½ π₯π₯ ππ β[ππ − ππ] ππ=−∞ h[n]: Impulse response; x[n]: System input; y[n]: System output The Convolution Integral In continuous time, the corresponding process is the convolution integral, expressed as: +∞ π¦π¦ π‘π‘ = οΏ½ −∞ π₯π₯ ππ β π‘π‘ − ππ ππππ • Note: Although discrete time was used for ease of illustration in the example, for the rest of this course we will use only continuous time formulations. h(t): Impulse response; x(t): System input; y(t): System output Convolution (Cnt’d) • Thus, the time response y(t) to an input x(t) is π¦π¦ π‘π‘ = οΏ½ +∞ −∞ π₯π₯ ππ β π‘π‘ − ππ ππππ = π₯π₯(π‘π‘) ∗ β(π‘π‘) • The output is the input convolved with the impulse response function. Linear Time-Invariant (LTI) Systems • A linear system is one that has the following properties (where y1(t) is the response to x1(t) and y2(t) is the response to x2(t)): – The response to x1(t) + x2(t) is y1(t) + y2(t) – The response to ax1(t) is ay1(t), where a is any complex constant • A time-invariant system is one in which the behaviour and characteristics of the system are fixed over time. Most of the analysis techniques that you will learn in this class assume that the system is linear and time-invariant. An LTI system is fully characterized by its impulse response function. Key Points • We can mathematically model a physiological system (you already know how! It’s no different than modeling other physical systems). • We can describe a system using its dynamic equation. • We can examine how it would respond to an impulse. • If it is LTI, the impulse response fully characterizes the system.