Professional Documents
Culture Documents
Engineering
Biomedical Instrumentation
Kung-Bin Sung
5/28/2007
1
Outline
• Chapter 8 and chapter 5 of 1st edition:
Bioinstrumentation
– Bridge circuit
– Operational amplifiers, instrumentation amplifiers
– Frequency response of analog circuits, transfer
function
– Filters
– Non-ideal characteristics of op-amps
– Noise and interference
– Electrical safety
– Data acquisition (sampling, digitization)
2
Overview of biomedical instrumentation
Basic instrumentation system
3
Types of medical instrumentation
• Biopotential
• Blood (pressure, flow, volume, etc)
• Respiratory (pressure, flow rate, lung
volume, gas concentration)
• Chemical (gas, electrolytes, metabolites)
• Therapeutic and prosthetic devices
• Imaging (X-ray, CT, ultrasound, MRI,
PET, etc.)
• Others
4
Characteristics of some bio-signals
6
Analog circuits
Wheatstone bridge circuit
R2 Rx
Vab = VR 2 − VRx = Vs ( ) − Vs ( )
R1 + R2 R3 + Rx
The measured Vab can be used to obtain R which represents the
unknown resistance of devices such a strain gauge and a thermistor
7
Operational amplifier (op-amp)
Vout = A(v p − vn )
Open-loop voltage gain
A ~ 106
Vout = Vin
G=1
vin vin
vout = −i2 R2 = −i1R2 = − R2 vout = vin + R2
R1 R1
R R
G=− 2 G = 1+ 2
R1 R1
Input impedance =
Input impedance = R1 ⇒ usually
Zin of the op-amp
quite small 10
Op-amp circuits
Summing amplifier
V1 V2
vout = i f R f = −R f ( + )
R1 R2
Rf Rf
G = −( V1 + V2 )
R1 R2
R2 R1 + R2 R4
Vout = − V1 + V2
R1 R1 R3 + R4
If R 1=R3, R2=R4
Vout =
R2
(V2 − V1 )
R1
This is called a differential amplifier
Differential gain Gd =
Vout R
= 2
V2 − V1 R1
12
Op-amp circuits
Common-mode rejection ratio CMRR of the differential amplifier
If a common-mode voltage at
both inputs is Vcm=(V1+V2)/2
Then the common-mode gain =
Vout R1 R4 − R2 R3
Gcm = =
Vcm R1 ( R3 + R4 )
CMRR is defined as:
Gd
CMRR = 20 log
Gcm
Homework:
• Derive the expression for Gd=Vout/Vd (in terms of R1~R4) with a
differential input Vd=V2-V1
• Suppose you use 4 resistors 100KΩ±1%, calculate the CMRR
10 times using random numbers for errors in resistance 13
More on differential amplifier
Vout = V2-V1
14
Instrumentation amplifier
Rgain + 2 R
V3 − V4 = (V1 − V2 ) Vout = V3 − V4
Rgain
In practice, Rgain is external and used to
2R
Gd = 1+ select gain which is typically 1-1000
Rgain
15
Instrumentation amplifier
2R Gd = 1
Gd = 1+
Rgain
Gcm ≈ 0
Gcm = 1
Provides good CMRR without the need for precisely matching
resistors 16
Example of common-mode voltage
Interference from power line (60Hz) can induce current idb
vcm = idb ⋅ Z G
17
Driven-right-leg circuit
Output is connected to the right leg through a surface electrode,
which provides negative feedback
18
Driven-right-leg circuit
Current at inverting input:
19
Time-varying signals
• Any signal can be decomposed into a series of sinusoidal
waveforms with various frequencies (Fourier transform)
• In other words, we only need to describe/model a single
sinusoidal waveform and the results can be generalized to
any waveform that might occur in the real world
20
Time-varying signals and circuits
Since capacitors and inductors introduce phase shift to the signal,
their impedances Z can be expressed in phasors as following
Vˆ1 = ZIˆ ZR = R
Z L = jωL = ωLe jπ / 2
1 1 − jπ / 2
ZC = = e
j ωC ωC
21
Laplace domain analysis
Use Laplace transform (time-domain → s-domain) to describe time-
varying signals ⇒ Differential equations become algebraic
equations
Let s = jω ZR = R
Z L = sL
1
ZC =
sC
22
Laplace transform
Definition
∞
L{ f (t )} = F ( s) = ∫ f (t )e −st dt
0
23
Laplace transform pairs
24
Transfer function
• Relationship between the input and output
Vout ( s )
T ( s) =
Vin ( s )
• Since s = jω = j 2πf
T(s) also provides information on the
frequency and phase of the circuit –
frequency response
25
Transfer function – example
1 sR1C1 + 1 Z f ( s) =
1
=
R2
Z i ( s ) = R1 + =
+ sC 2 1 + sR2C2
sC1 sC1 1
R2
Z f (s) sR2C1
T ( s) = − =
Z i ( s ) (1 + sR1C1 )(1 + sR2C2 )
26
Transfer function – example2
Z1 ( s ) + Z 2 ( s ) Z f (s)
T1 ( s) = = sR1C1 + 1 T2 ( s ) = − = − sR2C2
Z1 ( s) Zi (s)
T ( s) = T1 ( s )T2 ( s) = −(1 + sR1C1 )( sR2C2 ) 27
Frequency response
• The transfer function can be factored into
poles and zeros
( s + z1 )( s + z 2 ) ⋅ ⋅ ⋅
T ( s) = K
( s + p1 )( s + p2 ) ⋅ ⋅ ⋅
• Alternatively
(1 + s / z1 )(1 + s / z 2 ) ⋅ ⋅ ⋅ (1 + jω / z1 )(1 + jω / z 2 ) ⋅ ⋅ ⋅
T (s) = K ' = K'
(1 + s / p1 )(1 + s / p2 ) ⋅ ⋅ ⋅ (1 + jω / p1 )(1 + jω / p2 ) ⋅ ⋅ ⋅
T ( jω ) = T ( jω ) e jθ (ω )
Phase response
Magnitude response
28
Frequency response – LPF
R2
T ( s) = −
R1 (1 + sR2C )
R2
K'= −
R1
1
p1 =
R2C
1
T ( jω ) = K '
(1 + jω / p1 )
Magnitude response
|K'|= R2/R1 DC (ω=0)
1
T ( jω ) = K '
ω2 Gain
1+ 2 K' When ω = p1
p1 2
29
Frequency response– LPF
At the cut-off frequency fc: the magnitude response is
T ( jω ) max
T ( j 2πf c ) = (-3dB power attenuation)
2
In this example
ωc = 2πf c = p1
1
∴ fc =
2πR2C
30
Frequency response – HPF
sR2C
T ( s) = −
1 + sR1C
jωR2 C
T ( jω ) = −
1 + jω / p1
1
p1 =
R1C
0 DC (ω=0)
ωR2C
T ( jω ) =
1 + ω R1 C 2
2 2 Gain
R2
− When ω → ∞
R1
ωc = 2πf c = p1 1
∴ fc =
2πR1C
31
Frequency response – HPF, BPF
High pass filter Band pass filter Band stop filter
Homework:
• For the HPF shown in slide 31, show that the magnitude
response is 1 2 of the maximum at the cut-off frequency ωc
32
Active filters
Frequency characteristics of analog filters
33
Active filters
34
Active filters
Comparison of several 6-pole low-pass filters
35
Active filter circuits – VCVS
Low-pass
High-pass
36
VCVS filter design
- Each circuit is a 2-pole filter; i.e. for an n-pole filter, you need to
cascade n/2 VCVS sections
- Within each section, set R 1=R2=R and C1=C2=C
- Set the gain K according to the table
- For Butterworth filters
1
RC = fc is the -3dB frequency
2πf c
- For Bessel and Chebyshew low-pass filters
1
RC =
2πf n f c
- For Bessel and Chebyshew high-pass filters
1
RC =
2πf c / f n
37
Non-ideal op-amp
Input bias current IB: simply the base or gate currents of the input
transistors (could be either current source or sink) – the effect of IB can
be reduced by selecting resistors to equalize the effective impedance
to ground from the two inputs
38
Non-ideal op-amp
Input offset current IOS: difference in input currents between two inputs;
typically 0.1~0.5 IB
40
Practical considerations
• Negative feedback (resistor between the
output and the inverted input terminal)
provides a linear input/output response and in
general stability of the circuit
• Choose resistor values 1kΩ-1MΩ (best 10kΩ–
100kΩ)
• Match input impedances of the two inputs to
improve CMRR
• Equalize the effective resistance to ground at
the two input terminals to minimize the effects
of IB
41
Matching effective impedance to ground
40KΩ∥10KΩ = 8KΩ
So the effective impedance to
ground from both input terminals is
the same
42
Noise
• Interference from outside sources
– Power lines, radio/TV/RF signals
– Can be reduced by filtering, careful wiring and
shielding
• Noise inherent to the circuit
– Random processes
– Can be reduced by good circuit design practice,
but not completely eliminated
Signal-to-noise ratio
1/ 2
1 T 2
SNR = 20 log
Vs( rms )
dB Vrms = ∫ v (t ) dt
Vn( rms) T 0
43
Noise
• Types of fundamental (inherent) noise:
– Thermal noise (Johnson noise or white
noise)
– Shot noise
– Flicker (1/f) noise
44
Noise
Thermal noise: generated in a resistor due to thermal motion of
atoms/molecules k: Boltzmann’s constant
Vnoise ( rms ) = 4kTRB T: absolute temperature (°K)
R: resistance (Ω)
B: bandwidth fmax-fmin
46
Electromagnetic interference
Magnetic fields in the environment can be picked up by a conductor
and results in an induced current
47
Electromagnetic interference
Time-varying magnetic field induces a current in a closed loop
48
Electrical safety
Physiological effects of
electricity (for a 70kg
human)
• The mean value for threshold of perception is 0.7mA for women and
1.1mA for men
• The mean let-go current is 10.5mA for women and 16mA for men
50
Macroshock vs. microshock
Macroshock
Microshock
51
Let’s start with the power line…
52
Macroshock hazards
Leakage current
54
Microshock hazards
Another example: ground potential differences (when “ground”is no
longer at ground) ⇒ current flows from one “ground”to another
through the patient
55
Solution – isolated power distribution
Ground fault: a short circuit between the hot conductor and ground
injects large currents into the grounding system
• the hot conductors can be isolated from ground using an isolation
transformer
Power-isolation transformer system
If there is only one ground fault between one of the conductors and ground,
there will be no surge current. This fault can be detected by the monitor
system (and removed to prevent real hazard to the patients).
56
Solution – grounding system
57
Solution – electrical isolation
To prevent leakage currents going through the patient’s heart directly
(microshocks), all patient leads need to be isolated electrically from the
AC power lines ⇒ isolation amplifiers
• break the ohmic continuity of electric signals between the input and
output ⇒ impedance across the barrier > 10MΩ
• include different supply-voltage sources and different grounds on each
side of the isolation barrier
58
Isolation amplifier example
Optically coupled signal transmission via LED and 2 matched
photodiodes
Continuous
Discrete (digital)
(analog) values
numbers
∆T
Continuous time → discrete time interval ∆T
61
Sampling
In the frequency domain, sampling of the signal at fsampling results in
duplicates of the spectrum that are shifted by m⋅fsampling (m is an
integer)
spectrum of band-limited signal
62
Frequency aliasing
When the sampling theorem condition is not satisfied
f sampling < 2 f max = 2B
f sampling > 2 B
64
Data acquisition hardware
Lots of commercial products to choose from. National Instruments, for
example, has families of products with a variety of features
65
Data acquisition hardware
Examples from National Instruments
10V 10V
16
= = 0.15mV
2 65535
66
References
• The Art of Electronics (2nd ed.), by Paul
Horowitz and Winfield Hill
– Ch5: Active filters
– Ch7: Precision circuits and low-noise
techniques
• Medical Instrumentation: application and
design, 3rd ed., edited by John G.
Webster
– Ch3: Amplifiers and Signal Processing
– Ch14: Physiological effects of electricity
67