Professional Documents
Culture Documents
ELEC4810 Notes-1 PDF
ELEC4810 Notes-1 PDF
ELEC4810 Notes-1 PDF
INSTRUCTOR: JIANAN QU
Professor
ECE Department,
Room 2434
Tel: 8541
Email: eequ@ust.hk
ELEC4810
• This course introduces electrical and physics students to the concepts underlying the
design of medical electronic devices.
• Biomedical applications from electrical, chemical, and mechanical engineering
perspectives will be discussed in both descriptive and quantitative terms.
• Methods for acquiring and processing signals from the human body are studied mostly at
the system level, but practical examples of the circuit-level design of medical devices are
also presented. The instrumentation of non-invasive devices will be emphasized.
• After completing this course, one should understand the biophysical origins of the
electrocardiogram, the blood pressure pulse, and other major diagnostic variables and be
able to design systems to measure them.
GRADING:
Homework: (15%)
Lab reports: (15%)
Midterm: (20%)
4 Final: (50%)
Course Information:
COURSE WEBPAGE: HKUST Canvas system (canvas.ust.hk)
TEXTBOOK:
"Medical Instrumentation: Application and Design", 4th edition, ed. by John G.
Webster
REFERENCES:
• “Introduction to Biomedical Equipment Technology”, by Joseph J. Carr and Johyn M.
Brown (4th edition, 2001)
• “Biomedical engineering and instrumentation: basic concepts and applications”, by Joseph.
D. Bronzino
• “Principles of biomedical instrumentation and measurement”, by Richard Aston
• “Biomedical instruments: theory and design”, by Walter Welkowitz
• “Biomedical engineering”, by A. Edward Profio
5
Course Information:
MAIN TOPICS COVERED BY THE COURSE:
• Basic concepts of bio-signal analysis and measurement
• Biopotentials
• Blood pressure and flow measurement
• Respiratory monitoring
• Clinical chemistry
• Integrated biosensors and biochips (?)
COURSE FORMAT:
LECTURES will complement readings from lecture notes, your textbook and class handouts.
HOMEWORK ASSIGNMENTS will be given to provide practice at applying the concepts covered
in lecture. Group discussion of the homework (but not copying) is encouraged. Homework will
be assigned on a Wednesday and will be due the following Thursday. Exceptions, especially closer
to exams, will be announced in class or by e-mail. Absolutely no late homework assignments
will be accepted.
6
Course Information:
COURSE FORMAT:
SEVEN EXPERIMENTS (main experiments start after mid October) will be assigned
to teams composed of 2~3 students, and each team will be expected to work together to
provide a solution. Grades for the experimental assignment will be based on accuracy of the
results and analysis of the experimental data.
A MIDTERM EXAM (scheduled on October 25, 2019) and a FINAL EXAM will test
both retention of concepts and facts, and the ability to apply problem-solving skills. Material
tested will be extracted from the readings, homework, lectures, and lab projects. The exam
will be closed book and closed notes.
CHEATING -- Anyone found cheating will be dealt with according to University policy.
7
Course Information:
COURSE OUTLINE (Syllabus)
III. BIOPOTENTIALS
1. Origin: Ionic currents in a single cell
2. Action potentials (nerve and muscle)
3. Multiple cells: Generation of body-surface potentials
4. Electrocardiography (ECG)
8
Course Information:
COURSE OUTLINE (Syllabus)
4. Electrocardiography (ECG)
• Physiology of the heart
• Dipole concept
• Lead systems
• Electrodes, amplifiers
• ECG instrument design (First lab assignment)
5. Electromyography (EMG) (Second lab assignment)
6. Electroencephalography (EEG)
V. RESPIRATORY MONITORING
1. Physiology of blood/gas exchange
2. Capnography
3. Oximetry (Fifth lab assignment)
2. Electrochemical sensors
• Potentimetric (pH, PCO2 electrodes)
• Amperometric (PO2 electrode)
3. Hematology counting
• Cell counting (Coulter principle)
• Cytometry
11
Course Information:
SEVEN EXPERIMENTS:
1. Bio-signal exploration
2. Electrocardiography (ECG)
3. Electromyography (EMG)
4. Non-Invasive Blood Pressure Measurement
5. Measurement of the Finger Pulse
6. Pulse Oximeter
7. Advanced ultrasound imaging system
12
ECE Outcome-based Education Course Syllabus Outline
13
14
ECE Outcome-based Education Course Syllabus Outline
Outcome-based Assessment:
LECTURES will complement readings from lecture notes, your textbook and class handouts.
HOMEWORK ASSIGNMENTS will be given to provide practice at applying the concepts covered in lecture.
Group discussion of the homework (but not copying) is encouraged. Homework will be assigned on a
Monday and will be due the following Tuesday. Exceptions, especially closer to exams, will be announced in
class or by e-mail. Absolutely no late homework assignments will be accepted. (CO1-2,4-5)
SEVEN EXPERIMENTS (main experiments start after mid October) will be assigned to teams
composed of 2~3 students, and each team will be expected to work together to provide a solution. Grades
for the experimental assignment will be based on accuracy of the results and analysis of the experimental
data. (CO3, 5-6)
A MIDTERM EXAM (scheduled in last week of October) and a FINAL EXAM will test both retention
of concepts and facts, and the ability to apply problem-solving skills. Material tested will be extracted from
the readings, homework, lectures, projects, and quizzes. The exam will be closed book and closed
notes. (CO1-2,4-5)
ATTENDANCE at lectures is important for your mastery of the subject material. In addition, in-class quizzes
require your attendance for credit and important announcements are often made in class (students are
responsible for any changes announced in class). Students not in class for quizzes will not receive credit
(there are no make-up quizzes).
CHEATING - Anyone found cheating will be dealt with according to University policy.
15
ECE Outcome-based Education Course Syllabus Outline
Grading:
Homework (15%)
Lab reports: (20%)
Midterm: (20%)
Final (45%)
16
ECE Outcome-based Education Course Syllabus Outline
Student Learning Resources:
Lecture notes / handouts / optional readings will be available at the course website.
Textbook
"Medical Instrumentation: Application and Design", 4th edition, ed. by John G. Webster
References
“Introduction to Biomedical Equipment Technology”, by Joseph J. Carr and Johyn M. Brown (4th
edition, 2001)
“Biomedical engineering and instrumentation: basic concepts and applications”, by Joseph. D. Bronzino
“Principles of biomedical instrumentation and measurement”, by Richard Aston
“Biomedical instruments: theory and design”, by Walter Welkowitz
“Biomedical engineering”, by A. Edward Profio
17
Chapter 1
A Perspective on Biosensing and Bioinstrumentation
What is a tool?
A device or instrument used or worked by hand or machine to carry out a particular function.
Why do we need a tool?
Homo Erectus
• The sensor converts biological signal or information from human body to another
form (usually electrical signal). This biological signal is then processed, interpreted
and displayed for diagnosis purposes.
Feeling enhancement:
19
A few milestones of development of medical devices:
Hearing enhancement:
• In 1819, French physician, Rene T.H. Laennec reported his simple hollow tube, a stethoscope
to amplify the sound.
20
A few milestones of development of medical devices:
Sight enhancement:
• Lens used as magnifiers in the ancient world was systematically studied by Isaac Newton. An
ophthalmoscope was invented in the mid-19th century allows physician examine body cavities,
such as ear, eye and nose, non-invasively.
21
A few milestones of development of medical devices:
Enhancement of senses of taste and smell (chemical composition):
• In late-18th century, physicians noticed that the urine of diabetics had a sweet taste; the residue
of urine by evaporating can be used for medical diagnosis.
• In 1877, Englishman William Gowers invented a haemocytometer which can counter the
number of red cells in the blood.
• In 1885, the German Hugo von Zeimssen established one of the first clinical chemistry lab.
22
A few milestones of development of medical devices:
Magnetic resonance imaging (MRI)
In 20th century….
X-ray
DNA Sequencer
Brain Wave
23
A General Biomedical Measurement Systems
Functions:
• Sense variables which contain information about the physiological status of the patient
• Extract the desired information from the variables
• Display the information
A. Transducer, also called sensor converts energy or information from the measurand to
another form (usually electric). It is frequently the most difficult element to design in a
biomedical instrumentation system because it provides the interface between man and machine.
The signal quality is dependent on the performance of the sensor. Special emphasis will be given
to the details of the signal transduction when we study the specific types of instrumentation
systems in this course.
24
Examples of transducers / sensors:
25
B. Signal processing
• Methods to separate signals from noise or, in other words, to extract the desired
information by eliminating or suppressing irrelevant information.
𝑆𝑆 2 (𝑡𝑡) 1/2
𝑆𝑆𝑆𝑆𝑆𝑆 = ( 2 )
𝑁𝑁 (𝑡𝑡)
1.Thresholding
We can try to decide between what is signal and what is noise on the basis of their
relative magnitudes using the following criterion:
𝑆𝑆 𝑡𝑡 , 𝑇𝑇 𝑡𝑡 > 𝑇𝑇0
𝑇𝑇 𝑡𝑡 = �
𝑁𝑁 𝑡𝑡 , 𝑇𝑇 𝑡𝑡 < 𝑇𝑇0
26
𝑆𝑆 𝑡𝑡 , 𝑇𝑇 𝑡𝑡 > 𝑇𝑇0
𝑇𝑇 𝑡𝑡 = �
𝑁𝑁 𝑡𝑡 , 𝑇𝑇 𝑡𝑡 < 𝑇𝑇0
Where 𝑘𝑘0 equal to a constant offset value with a magnitude slightly greater than 0.
A common solution: Turn off/on the input. (Is this practical for measurement of bio-
signals from human body?)
• Change the measurement condition. Clearly, if the SNR is large the problem will be
simplified.
• Optimization of design of the sensor.
How a filter discriminates signal from noise is best understood by examining its effects in the
frequency domain.
𝑆𝑆 𝜔𝜔
N 𝜔𝜔
Power spectrum of a corrupted signal separated into its signal and noise components
𝑆𝑆 𝜔𝜔 and N 𝜔𝜔 . The filter function is represented as Γ 𝜔𝜔
The first thing to recognize is that the spectra of the signal and noise components overlap.
The major concern is the extent of the overlap.
28
𝑆𝑆 𝜔𝜔 ∞ 1⁄2
N 𝜔𝜔 ∫0 𝑆𝑆 𝜔𝜔 𝑑𝑑𝑑𝑑 𝐴𝐴1
𝐴𝐴1 𝑆𝑆𝑆𝑆𝑆𝑆 = ∞ =
𝐴𝐴2 ∫0 𝑁𝑁 𝜔𝜔 𝑑𝑑𝑑𝑑 𝐴𝐴2
𝐴𝐴′1 𝐴𝐴1
Consider a band pass filter with the frequency response Γ 𝜔𝜔 : >
𝐴𝐴′2 𝐴𝐴2
For an ideal filter with infinitely steep
lower and upper cutoff: A filter function is represented as Γ 𝜔𝜔
1⁄2
∞
∫0 𝑆𝑆 𝜔𝜔 T 𝜔𝜔 𝑑𝑑𝑑𝑑
𝑆𝑆𝑆𝑆𝑆𝑆 = ∞
∫0 𝑁𝑁 𝜔𝜔 T 𝜔𝜔 𝑑𝑑𝑑𝑑 𝐴𝐴𝐴2
𝑙𝑙 𝐴𝐴𝐴1
𝜔𝜔ℎ 1⁄2
∫𝜔𝜔 𝑆𝑆 𝜔𝜔 𝑑𝑑𝑑𝑑 𝐴𝐴1′
𝑙𝑙
= 𝜔𝜔ℎ =
∫𝜔𝜔 𝑁𝑁 𝜔𝜔 𝑑𝑑𝑑𝑑 𝐴𝐴′2
𝑙𝑙
This equation is useful to estimate the improvement in the SNR. However, the challenge is to
know the signal and noise spectrum before designing the filter Γ 𝝎𝝎 .
29
Table 1.1 at page 10, 11 of the textbook listed the frequency range of major biomedical signals.
30
31
• Most of signals are ranged in DC to 100 Hz.
• Major noise source from man’s environment: Electrical power lines, fluorescence lights, vibrations and etc.
• To prevent noise from entering the transducer: shielding and inherently insensitive to the noise source.
32
• Most of signals are ranged in DC to 100 Hz.
• Major noise source from man’s environment: Electrical power lines, fluorescence lights, vibrations and etc.
• To prevent noise from entering the transducer: shielding and inherently insensitive to the noise source.
Simple approaches:
• A grounded metal plate or screen can shield the undesired electrical field;
• A rubber damper could serve as a shield against high-frequency vibration.
• Optical fiber sensor is inherently insensitive to electromagnetic noise radiated from nearby
equipment. It has much better performance than traditional electrodes.
Depolarization in:
SH Sinoatrial node
Atria Right atrium and left atrium
AV node Atrioventricular node
H Bundle of His
BB Bundle branches
P Purkinje network
Repolarization in:
a Right atrium and left atrium
v Right ventricle and left ventricle
34
C. Interpretation:
A clean, noise-free signal is worthless if the user does not know what it means.
How?
• Collecting numerous data and build up reliable data base
• Analyzing the data by using different statistical methods
• Learning from the statistical results, generating new information
• Interpreting
Examples:
The waveform of electrocardiogram (ECG) is full of meaning.
⇒ Pattern analysis, alarm system and etc.
Generate new information from measured variables: imaging reconstruction.
D. Display
• Never underestimate the importance of display the measured result. It determines the
success or failure of the design of a medical instrument.
• Most of modern medical instruments are modified from old models by introducing the
computer graphics.
E. Feedback
• Major function: to stabilize a given variable. Considering the user as part of the system,
almost all the biomedical devices employ some sort of feedback.
35
A General Biomedical Measurement Systems
Functions:
• Sense variables which contain information about the physiological status of the patient
• Extract the desired information from the variables
• Display the information
36
IMPORTANT NOTE:
37
Biological Signal is Random Signal.
SIGNAL?
A detectable physical quantity or impulse (as a voltage, current, or magnetic field
strength, etc.) by which messages or information can be transmitted.
RANDOM?
38
Signals
𝑉𝑉 𝑡𝑡 = 𝐴𝐴⋅𝑐𝑐𝑐𝑐𝑐𝑐 𝜔𝜔𝜔𝜔 + 𝜑𝜑 + 𝐶𝐶
𝑉𝑉 𝑡𝑡 ≈ 2.0
Random signal:
39
Why is biological signal Random?
Background:
Mammals such as man are 'warm-blooded' or 'homeothermic' as they can maintain their body
temperature within a narrow range despite fluctuations in environmental temperature. 'Cold-
blooded' or 'poikilothermic' animals such as reptiles cannot and their body temperatures fluctuate
depending on the temperature of their surroundings.
40
How well is our temperature maintained?
41
Mechanisms by which heat is gained and lost
Heat gain:
(a) heat input from environment - sun, fire, warm objects etc
(b) heat production by body
• basal metabolism
• ingestion of food
• muscular activity - voluntary (exercise) or involuntary (shivering) - remember
most of the energy used in exercise is wasted as heat (about 70%)
• endocrine mechanisms - thyroid activity ( growth hormone, testosterone)
• emotion/fear (adrenaline)
• non shivering thermogenesis - brown adipose tissue - particularly newborn
Heat Loss
Heat generated in deeper parts of the body is first conducted to the body surface, this
42 depends on blood flow to the skin and on insulation of the body (fat)
Mechanisms by which heat is gained and lost
Heat loss from skin depends on temperature differential, so as the ambient temperature approaches 35
degrees then heat loss by the first three mechanisms decreases and heat loss by evaporation increases and
eventually becomes the only means by which the body can lose heat.
43
Regulation of Body Temperature
• Information from both sets of receptors goes to the posterior hypothalamus for
integration, this is the body's thermostat . To prevent heat gain or loss it has a set
point or normal temperature around which it operates. It responds to deviations
from this by initiating both involuntary and voluntary responses.
• mechanisms that decrease body temperature (mainly from anterior hypothalamus but
some local reflexes when skin temperature is changed)
vasodilation - reduction of sympathetic tone to all skin blood vessels ->
increase of heat transfer to skin (can be eight times as much)
sweating - sharp increase in evaporative heat loss when core temp rises above
37 degrees (sympathetic control) -increases by ten times for one degree rise
inhibition of heat producing mechanisms, reduced voluntary movement
behavioural - seek shade - cool drink etc
45
3. Effect organs to lose or produce heat (continued)
46
Regulation of Body Temperature - What can go wrong?
• Any increase in body temperature above the normal range ie from sustained exercise, hot
humid weather
• Core temperature stabilises above normal temperature due to increased heat production
• Heat stroke may result if rate of heat gain exceeds rate of heat loss and body temperature
continues to rise
• Critical temperature above 42 degrees
• Dizziness, delerium, circulatory shock from loss of water and electrolytes
• fatal if not cooled down
• Heat exhaustion - less severe - fainting due to decreased blood pressure resulting from
excess sweating which reduces blood volume
• Malignant hyperthermia - abnormal rise in body temperature resulting from a gene
mutation that causes a great increase in heat production during muscle contraction
• Reduction in body temperature (eg: immersion in ice water fatal after 20-30min)
hypothalamus can no longer regulate temp if core
• Temp falls too low - depressed metabolic rate, drowsiness, coma frost bite - freezing
causing tissue damage (cold vasodilation for protection)
• Hybernation
• Induced hypothermia for surgery - allowing the circulation to be stopped because the
48 oxygen needs of the tissues are reduced
BIOMEDICAL SIGNALS
Classification of signals:
SIGNAL
DETERMINISTIC RANDOM
NON-
PERIODIC NON-PERIODIC STATIONARY
STATIONARY
Random signals can not be exactly expressed and much more difficult to deal with.
49
BIOMEDICAL SIGNALS
Classification of signals:
SIGNAL
DETERMINISTIC RANDOM
NON-
PERIODIC NON-PERIODIC STATIONARY
STATIONARY
Random signals can not be exactly expressed and much more difficult to deal with.
A stationary process has the statistical property of which is not a function of time. We
can calculate the expectation by averaging the value of desired variable over a set of
sample function or ensemble.
50
BIOMEDICAL SIGNALS
51
BIOMEDICAL SIGNALS
• A stationary process has the statistical property of which is not a function of time.
We can calculate the expectation by averaging the value of desired variable over
a set of sample function or ensemble.
• A non-stationary process is very difficult to process. Very often, we have to assume
the process is ergodic even the assumption is false.
• A common approach is to divide the non-stationary signal to many segments. In
each segment, the signal is assume as a stationary.
52
BIOMEDICAL SIGNALS
1T
S (t ) = lim ∫ S (t )dt → Central tendency
T →∞ T 0
𝐴𝐴 𝑐𝑐𝑐𝑐𝑐𝑐 𝜔𝜔𝜔𝜔 − 1
e.g. S (t ) = A sin (ωt ) 𝑆𝑆 𝑡𝑡 = lim
𝑇𝑇→∞ 𝑇𝑇
=0
𝜔𝜔
54
Probability theory plays important role to mathematically
describe and analyze the biomedical signals.
1 k
WT (t ) = ∑ Wi (t )
k i =1
55
Different signals
with the same
mean value.
T
The mean-square value:
S (t ) = lim ∫ S 2 (t )dt
2 1
• measure of signal power T →∞ T
0
The variance:
∫ [S (t ) − S (t )] dt
T 2
1
• measure of power in fluctuations about mean σ 2 = lim
T →∞ T
0
𝑆𝑆 2 𝑡𝑡
e.g. S (t ) = A sin (ωt )
S 2 (t ) = σ 2 = 0.5
σ = 0.707 - rms value
56
The probability density function (PDF)
describes the probability that a value of a random variable lies in a range between x and x+dx.
+∞
Normalized as: ∫ f ( x )dx = 1
−∞
+∞
( )
∞ 2
X= ∫ xf (x )dx
−∞
σ 2 = ∫ x − X f (x )dx
∞
Uniform:
1
a< x<b
f (x ) = b − a
,
0 , otherwise
( ) (b − a)
∞ 2
+∞ 2
a+b
X = ∫ xf ( x )dx = σ2 = ∫ x− X f ( x )dx =
−∞ 2 12
∞
58
Gaussian or normal distribution:
1 (x − x )2
f (x ) = exp − 2
2π σ 2σ
59
The crosscorrelation and autocorrelation functions:
• Crosscorrelation function compares two different signals in order to assess the similarity
of them
• Autocorrelation function describes how similar a signal is to itself when measured at a
different time or location
T
Γ(τ ) = lim ∫ S (t )S (t + τ )dt
1
Autocorrelation function:
T →∞ T
0
Some properties:
60
The Power Spectral Density or “Power Spectrum”:
• describes the distribution of power in different frequency bands.
• useful for random, as well as deterministic signals, but must be defined as
an average of samples of finite, but sufficiently long duration.
1 2
𝜙𝜙 𝜔𝜔 = lim 𝐹𝐹(𝜔𝜔)
𝑇𝑇→∞ 2𝑇𝑇
𝑇𝑇
61
The Power Spectral Density or “Power Spectrum”:
• describes the distribution of power in different frequency bands.
• useful for random, as well as deterministic signals, but must be defined as
an average of samples of finite, but sufficiently long duration.
Examples:
62
The Power Spectral Density or “Power Spectrum”:
Examples:
Beat-to-beat heart rate variation (HRV)
63
The Power Spectral Density or “Power Spectrum”:
Examples:
How a filter discriminates signal from noise is best understood by examining its effects in the
frequency domain.
𝑆𝑆 𝜔𝜔
N 𝜔𝜔
Power spectrum of a corrupted signal separated into its signal and noise components
𝑆𝑆 𝜔𝜔 and N 𝜔𝜔 . The filter function is represented as Γ 𝜔𝜔
The first thing to recognize is that the spectra of the signal and noise components overlap.
The major concern is the extent of the overlap.
65
𝑆𝑆 𝜔𝜔 ∞ 1⁄2
N 𝜔𝜔 ∫0 𝑆𝑆 𝜔𝜔 𝑑𝑑𝑑𝑑 𝐴𝐴1
𝐴𝐴1 𝑆𝑆𝑆𝑆𝑆𝑆 = ∞ =
𝐴𝐴2 ∫0 𝑁𝑁 𝜔𝜔 𝑑𝑑𝑑𝑑 𝐴𝐴2
𝐴𝐴′1 𝐴𝐴1
Consider a band pass filter with the frequency response Γ 𝜔𝜔 : >
𝐴𝐴′2 𝐴𝐴2
For an ideal filter with infinitely steep
lower and upper cutoff: A filter function is represented as Γ 𝜔𝜔
1⁄2
∞
∫0 𝑆𝑆 𝜔𝜔 T 𝜔𝜔 𝑑𝑑𝑑𝑑
𝑆𝑆𝑆𝑆𝑆𝑆 = ∞
∫0 𝑁𝑁 𝜔𝜔 T 𝜔𝜔 𝑑𝑑𝑑𝑑 𝐴𝐴𝐴2
𝑙𝑙 𝐴𝐴𝐴1
𝜔𝜔ℎ 1⁄2
∫𝜔𝜔 𝑆𝑆 𝜔𝜔 𝑑𝑑𝑑𝑑 𝐴𝐴1′
𝑙𝑙
= 𝜔𝜔ℎ =
∫𝜔𝜔 𝑁𝑁 𝜔𝜔 𝑑𝑑𝑑𝑑 𝐴𝐴′2
𝑙𝑙
This equation is useful to estimate the improvement in the SNR. However, the challenge is to
know the signal and noise spectrum before designing the filter Γ 𝝎𝝎 .
66
67
Summary:
68
Graphic illustration:
69
Graphic illustration:
70
Graphic illustration:
71