Professional Documents
Culture Documents
The hearing aid receives sound through a microphone, which converts the
sound
waves to electrical signals and sends them to an amplifier that increas-
es the power of the signals and then sends them to the ear through a speaker.
The main application of signal processing here is to perform filtering and noise
reduction .
ECG
pacemaker prosthetic hand
noninvasive
Invasive 1-a little bit lesser signal quality than
1- Higher quality of signal because It Invasie due to interference and distance
records signals directly from the source from the source increase
2- more dangerous and difficult and must be 2- Safe and easy to perform
performed by specialists
generated sweat after while as a result of effort and stress
causes noise in the signal . Therefore , The signal must be
filtered to let the medical specialist diagnose the case
Stress EMG bicycle
type depending on the filtered signal
2. .
3. .
knowledge in device installation and its specific conditions such as using gel and removing
hair from parts the electrodes would be attached to.
BCI
Electrodes
Cables
EMG
Action potential (AP)
EEG
ECG : Periodic signal
Sound
Phonocardiography (PCG)
Carotid pulse (mechanical)
Visual Evoked Potential
(VEP)
considered as a type of EEG
Spontaneous
EEG
ECG
EMG
Evoked potential
recording signal
of bodypart after
stimulation
Electroneurography
by connecting two
electrodes to the nerve
and stimulating it by short
electrical pulse and the
nerve conduction velocity
(NCV) is calculated depending
on conduction time and dis-
tance between
electrodes
Electroretinography
1- BD OF BCI APPLICATION BASED ON EEG
AND ECOG
EEG
ECog
Local field
potential
1
0.5
Feature
0
Windowing Extraction
Classification
-0.5
-1
(TD-AR)
-1.5
0 2 4 6 8 10 12
4
x 10
LDA
EMG Board (sensor) A/D conversion. motor drive board.
amplify and filter Arduino also also SP.
processes signal.
EEG
Wheel chair
+
BCI
CCU : coronary care unit (Heart diseases)
ICU : Intensive care unit ( General diseases )
Lecture. 2
Specifications of Biomedical Signals
Dr Ali Hussein
BioDSP LEC 2
This isn’t the Original Lecture , It’s just a copy of the
original one filled with the Lecture notes mentioned
during the Lecture time.
1- .
Band width
A/D Conversion + Filtering
lower than 2 fmax will cause aliasing of the signal
Higher than 2 fmax will make a high resolusion signal
2- . but very large in size, Thys , difficult to transfer
Balance must be maintained 0.5
Original Data
3- .
-0.5
0 2 4 6 8 10 12 14 16
Determine gain in Operational Time(s)
amplifier 80
60
Magnitude
40
20
0
0 200 400 600 800 1000 1200 1400 1600 1800 2000
Intramuscular, ECoG,Local field potential ... etc Example- EMG signal and its frequency
spectrum
NOTE Electrodes depends
on Ag/AgCl
Examples
VAG
1- ELECTROMYOGRAPHY (EMG)
USES AND APPLICATIONS
3. Prosthesis Control
(FES) is a treatment that applies small electrical charges to a muscle , that has become paralysed or
weakened , to stimulates the muscle to make its usual movement.
4. Functional electrical stimulation (Stroke
CVA patients) - Exoskeleton
Cerebrovascular accident
BD OF EMG BASED UPPER LIMB EXOSKELETON
Students
1-
Training
NN
NN
2- Testing
http://www.mdpi.com/sensors/sensors-14-06677/article_deploy/html/images/sensors-
14-06677f3-1024.png
2- ELECTROCARDIOGRAPHY (STUDENT)
Students
3. Treatment??
1. Pacemaker DC Shock (Defibrillator)
BIOELECTRICAL SIGNAL PROCESSING Leif Sörnmo EVICAB, 2010
NOTE
4-MAGNETOENCEPHLOGRAPHY
Diagnosis of the psychological disease (Bipolar, depression,
Schizophrenia)
Understand the brain??
http://www.medgadget.com/img/3
6658324.jpg
noncontact/
noninvasive
http://ilabs.washington.edu/sites/default/files/magneticfield-origin.jpg
(STUDENT)
1- Respiratory signals
VAG
EGG electrogastrography
Living organisms are made up of many
component tem :
Each tem ill do a eci ic ta k
e
un t n d s ste Student
Analyse to
Process
System Signal understand
Phenomena
the normal
Students
1-Example- Normal System
Pump ECG
Heart Blood or Signal Analyse?
function • Normal
http://upload.wikimedia.org/wikipedia/commons/d/d1/Blaus
http://upload.wikimedia.org/wikipedia/commons/8/8a/Blausen_0168 en_0257_CoronaryArtery_Plaque.png
_CardiovascularSystem.png
Example on Information,
In doing action, the systems generate signals (very important for us !!! )
e cardiovascular system generate arotid pulse signals when
the heart pumps.
Student the patient is diagnosed by comparing the picked
up signal to previous normal signals
1.Biochemical, hormones and neurotransmitters,
!"#$%&"'(&)*#
2.Electrical signals, ECG
3.Physical signals, CP
=
Mechanical signals : Carotid pulse( from neck ) , Other mechani-
cal signal : Mechanomyography (MMG)
Also there are Audio signals : PCG
ABNORMAL ECG
http://192.185.141.126/~lifecare/new/wp- http://en.ecgpedia.org/images/thumb/a/a7/Stelevat
content/uploads/2015/02/ECG-tracing-pic.jpg ie_en.png/300px-Stelevatie_en.png
Semester 2
2019-2020
Lecture. 3
Temperature and Pressure Signals
Dr Ali Hussein
BioDSP LEC 3
This isn’t the Original Edition , It’s just a copy
of the original one filled with the Lecture notes
mentioned during the Lecture time.
•
•
•
Sampling frequency: hardware and
computational cost trade-off
Example. Fs 10000 EMG good but need fast
processor and big storage.
• A discrete time signal that can take amplitude
values only from a limited list of quanti e levels
is calle a igital signal
• Sampling: We will review and discuss that in the
next lectures (S/H) 8 bit
• X (Scalar) -----x(t) (Contiguous or analogue)-
x(n) Discrete.
Examples of Biomedical Measurements
I- Example Temperature
• At time 4:00 PM 37 C
- Periodic increase in
temperature could be
• At time 6:00 PM 36 diagnosed as malaria
disease
Figure 1.1: Measurements of the temperature of a patient presented as (a) a scalar with one
temperature measurement x at a time instant t; (b) an array x(n) made up of several
measurements at different instants of time; and (c) a signal x(t) or x(n). The horizontal axis
of the plot represents time in ours t e vertical a is gives temperature in egrees elsius
ata courtes of oot ills ospital, algar
II- Another basic measurement in health care and
monitoring:
Example Blood pressure (BP)
• Each measurement consists of two
values —
1. the systolic pressure
2. and the diastolic pressure.
Students
p
und )
http://www.medicine.mcgill.ca/physio/vlab/c
ardio/images/directtech.GIF
• A single BP measurement:
a vector x = [x1, x2]T it t o components
– x1 indicating the systolic pressure and
– x2 indicating the diastolic pressure.
Example:
At 3.30 PM, the BP for patient XX is
Task-2
• Plot the following BP parameters versus time?
http://faculty.pasadena.edu/dkwon/chapter%20
15/chapter%2015_files/images/image8.png
https://voer.edu.vn/file/57023
Brief History on DSP
• Historical roots of digital signal
processing are very old. •
• According to several researchers
(Prandoni and Veterli,2008). •
• They date back to the 25th century BC
and they are related to the ”Palermo
stone” with earliest records of Nile’s
floods observed on the time base of 12
months (naive sampling). 1
• Processing of these records was
concentrated to prediction of floods Palermo stone (25th cent.BC)
fundamental for watering fields. with records of the water level 2
A. Proch´azka and O. Vyˇsata ‘HISTORY AND BIOMEDICAL APPLICATIONS
OF DIGITAL SIGNAL AND IMAGE PROCESSING, 2014
A. Proch´azka and O. Vyˇsata ‘HISTORY AND BIOMEDICAL
APPLICATIONS
OF DIGITAL SIGNAL AND IMAGE PROCESSING, 2014
A
A
co
similar to
Cos wave M
fu
1.
2.
3.
4.
5.
Biological Systems
o Physiological o
i ls ys sos
Example: 1- Heart
2- Muscle
As we said earlier,
A system is a collection of processes or
components that interact
Elsevier, New York, NY, 2012.
Many systems of the human body are based on
function such as
gy a ia l s ci ic l c a io o o as s
1 h ical
Chemical h ical ac i i y a o loo io ho o al
co c a io co c a io s a o h ch is y
2 Mechanical
cha ical Posi io scl o
oc o o ss a io asc la ss s scl
co ac ili y
al a o h ca iac so s
3 Electrical
l c `ical ol ag o ial gy o
cha g ca i s
cha g ca i lo
4 Thermal
h al a o y a h og a hy
Infrared (IR)
Biotransducers
• A “transducer”: is a device that converts energy from one
form to another.
• In measurement systems, all transducers are so-called
input transducers, they convert non-electrical energy
into an electronic signal Why?
• We need electrical signal for computers.
#Q Analogue or digital?
pcg (signal)
A cardiac microphone is a biotransducer
that converts the
Mechanical electrical
XXXX into an XXXX.
The white foam pad covers the piezoelectric disk and is specially
designed to improve the coupling of energy between the chest
and the piezoelectric disk.
•
M
Piezoelectric effect.
• In 1880, French physicists Pierre and
Jacques Curie discovered the piezoelectric
effect.
http://www.pixelandight.com/images/clien
ts/silverplatter/hammer_bulb.gif
25
6/1/2020
Lithotripsy is a medical procedure that uses shock
waves to break down stones in the kidney or
gallbladder.
Both effects are used in the ultra sound
transducer
http://itersnews.com/wp-content/uploads/2014/01/Epson-Electrical-Characteristics_piezoelectric-effect.jpg
26 6/1/2020 Lec.2 Ultrasound
Waves
Example on blood pressure
measurement
• Non invasive • Invasive: How??
• What is the device
(t) = f(t)
where f(t) is some function of time and can be quite complex. For an
electronic signal, this could be the value of the voltage or current at
a given time.
• By doing a calibration
• By doing a calibration
• We have force• sensor,
We have 4 forces, 4 voltages
force sensor, known.
4 forces, 4 voltages know
1. Plot the sensor1.output forsensor
Plot the a known few measurements
output for a known few measurem
2. Then we can use curvewe
2. Then fitting
can to find
use the fitting
curve equation.
to find the equation
on projection techniques
3 from 3
h
The two main processes involved in A/D
conversion are 1. sampling and 2.
quantization.
1 2
Read voltage as
integers
http://www.wbuttutorials.com/images/network/analog-digital-15.jpg
Analogue-to-digital conversion
Encoding ( 3rd stage )
ADC
DAC
DAC
DAC
Course on Signals and systems for BME
Semester 2
2019-2020
Dr Ali Hussein
BioDSP LEC 4
This isn’t the Original Edition , It’s just a copy
of the original one filled with the Lecture notes
mentioned during the Lecture time.
Example:
Assessment of respiratory function based on the
measurement of blood (pO2) by pulse oximeter (transmission of light
through blood in the finger tip to measure
partial pressure of oxygen oxygen presence and heart beats )
Q/ Can you give us more examples:
indirect blood pressure measurement (BPM)
2-Environmental noise
• Environmental noise can come from
Power line interference or termed electricity interference or also termed 50 Hz
sources noise is the most common in biomedical signals (ECG ,EMG and other electrical
signals ) {A peak will appear with the required signal at f=50 Hz or 60 Hz} solu-
-Example:
Electrodes susceptible to motion artifact.
4- Electronic noise
• It is the only noise that has well known
source and characteristics.
the only noise that can be quantified
0.025
0.02
0.015
0.01
0.005
0
20 40 60 80 100 120
Relative Frequency
0.025
0.02
0.015
0.01
0.005
0
20 40 60 80 100 120
Relative Frequency
4-A Thermal or Johnson Noise
• Johnson or thermal noise is produced by resistance
Revision print
sources ( resistors) and the amount of noise generated is
related to 1)the resistance and to 2) the temperature as well
as the 3) bandwidth. A-Thermal or Johnson Noise (R)
VJ = 4kT R BW volts
Is = 2q Id BW amps VT = V1 2 +
where q is the charge on an electron (1.662 X
which equals 1 amp-sec), and Id is the baseline
current.
Revision print
A-Thermal or Johnson Noise (R)
VJ = 4kT R BW volts
4-B Shot Noise IJ = 4 kT BW R amps
• Shot noisewhere
is R is the resistance in ohms, T the temperature in degrees Kelvin, BW
defined as a current noise and is
frequencies in Hz (a.k.a. cycles/sec), and k is Boltzman’s constant (k = 1.38
proportional to the baseline
temperature of 310 K iscurrent
often usedthrough a
for room temperature, in which case 4kT
semiconductor junction (e.g. diodes and transistors) :
B- Shot Noise (Semiconductor)
Is = 2q Id BW amps VT = V1 2 + V22 + V3
where q is the charge on an electron (1.662 X 10-19 coulo
where q is the chargewhich
on anequals 1 amp-sec),
electron (1.662 and
X 10Id-19
is coulomb
the baseline semicond
current.
which equals 1 amp-sec), and I is the baseline semiconductor
d
current.
Sumarry - Noise and Variability
Sources of Variability
Source Cause
VJ = 4kT R BW volts
IJ = 4 kT BW R amps
where R is the resistance in ohms, T the temperature in degrees Kelvin, BW is the range of
frequencies in Hz (a.k.a. cycles/sec), and k is Boltzman’s constant (k = 1.38 x 10-23 J/OK). A
temperature of 310 K is often used for room temperature, in which case 4kT = 1.7X10-20 J.
(Student)
(Student)
(Student)
(Student)
http://www.electronics-
tutorials.ws/accircuits/rms-voltage.html
Example:
VRMS Signal = 100 mv
VRMS Noise= 10 mv
1) Calculate the SNR in DB?
2) Calculate the SNR in linear scale
https://www.researchgate.net/profile/Tingting_Zhu6/publication/259462637/figure/fig2/AS:297251311243265@
1447881643119/Fig-2-An-example-of-a-5-second-noisy-ECG-segment-of-a-patient-with-myocardial.png
Task
Signal and XXXX
• 0 db means the XXXX Noise are
…….
Equal
vRMS = 10 XdB 20
(Student)
(Student)
10
1.412
1
0.7079
0.1
SNR A sinusoid with added noise at 4 levels of SNR (in dB).
4. SNR = 10 dB
0 0
-50
-100
10
SNR: +10db
-50
3
SNR: +3db
0 100 200 300 400 500 0 100 200 300 400 500
Time (msec.) Time (msec.)
Q./ How many
seconds? 50
SNR = ? 50
SNR = ?
0.5 S
Q/ Which figure
has less noise
and which one 0 0
has more
noise than the
others? -3
SNR: -3db -10
SNR: -10db
-50 -50
+10 less noise 0 100 200 300 400 500 0 100 200 300 400 500
Time (msec.) Time (msec.)
-10 more noise
6/15/2020
Course on SSBME
BioDSP LEC 5
Lecture 5: Basic Biomedical measurements
and statistics
Dr Ali Hussein
This isn’t the Original Edition , It’s just a copy of the original one filled with
1
6/15/2020
Examples
• Mean
• Max
2
6/15/2020
Applications of SP to improve
people’s life
https://cnet2.cbsistatic.com/img/0ORi-
Ot0VhhPHejBBT4TegGrGxM=/fit-
in/270x0/2016/01/18/9448be6e-89d8-
49b4-ad27-3f5976588c5b/arm1.jpg
http://web.mit.edu/jlramos/www/Imagen
s/Exo_real.png
Application:
BD of EMG Controlled Prosthesis
feature
0.5
segmentation
0
extraction
-0.5
classification
-1
(TD)
-1.5
0 2 4 6 8 10 12
4
x 10
LDA
3
6/15/2020
Pattern Recognition
EEG
4 2
3
http://www.degruyter.com/view/j/revneuro.2013.24.issue-5/revneuro-
2013-0032/graphic/revneuro-2013-0032_fig1.jpg
(classify)
https://www.etsu.edu/cas/bcilab/pictures/Leuthardt.jpg
4
6/15/2020
such as filtering
or termed ‘‘windowing’’
Application:
BD of EMG Controlled Prosthesis
Segmentation
1
0.5
-0.5
-1
-1.5
0 2 4 6 8 10 12
4
x 10
5
6/15/2020
Original Data
0.5
Voltage mV
-0.5
0 2 4 6 8 10 12 14 16
Time(s)
-0.5
0 2 4 6 8 10 12 14 16
Time(s)
6
6/15/2020
https://www.researchgate.net/profile/Houtan_Jebelli2/publication/325455360/figure/fig5/AS:735077755535360@1552267602279/EEG-windowing-
approaches-a-fixed-windowing-approach-b-sliding.ppm
https://encrypted-
tbn0.gstatic.com/images?q=tbn%3AANd9GcSNxM0F4LTrtUFra1upwhZzIkA3ztiy
oYmyT05xty0mgKRMn7OU&usqp=CAU
ze
https://www.frontiersin.org/files/Articles/215913/fnins-10-00445-HTML/image_m/fnins-10-00445-g006.jpg
7
6/15/2020
Application:
BD of EMG Controlled Prosthesis
Feature
extraction
0.5
-0.5
-1
-1.5
0 2 4 6 8 10 12
4
x 10
(Student)
(Student)
8
6/15/2020
9
6/15/2020
(Student)
10
6/15/2020
(Student)
https://bretcontreras.com/wp-content/uploads/EMG.png
11
6/15/2020
Answer
(Student)
12
6/15/2020
Task
abductor pollicis brevis
Students
13
6/15/2020
Students and
and
Students
14
6/15/2020
ZC and SSC
10 3 -4 5 -2 -1 6 7
ZC= 4
SSC= 3
Summary .
.
Group 1
.
Biomedical .
signal
measurements .
.
Group 2
.
15
6/15/2020
-0.5
0 2 4 6 8 10 12 14 16
Time(s)
https://www.frontiersin.org/files/Articles/215913/fnins-10-00445-HTML/image_m/fnins-10-00445-g006.jpg
16
6/15/2020
https://www.researchgate.net/profile/Fernando_Sciascio/publication/257690526/figure/fig3/AS:297570170621988@1447957665997/
The-EMG-channel-is-segmented-into-sliding-windows-of-256-samples-with-overlapping-of-128.png
I. .
II. .
III. .
IV. Classification
17
SSBME
LEC. 7
EXAMPLES OF BIOMEDICAL SIGNALS
APPLICATIONS
-0.5
0 1 2 3 4 5 6 7 8 9 10
0.5
Amplitude(mV)
-0.5
0 1 2 3 4 5 6 7 8 9 10
0.5
Amplitude(mV)
-0.5
0 1 2 3 4 5 6 7 8 9 10
Time(sec)
http://www.emg-eeg.com/wp-content/uploads/2011/05/emg.jpg
The electromyogram (EMG)
Skeletal muscle fibers are twitch fibers:
1-The recruitment of
additional MU.
2- Increase in the firing
Schematic illustration of two
rate of already active
motor units in a muscle. MUs.
Spatiotemporal
Recruitment of MU
Students
Figure 1.17 Schematic representation of spatiotemporal recruitment of motor units and the
resulting EMG signals assuming that the MUAPs do not overlap.
Schematic representation of a motor unit and
model for the generation of EMG signals.
A-
B-
C-
Figure 1.6: Schematic representation of a motor unit and model for the generation of EMG
signals.
A- Top panel: A motor unit includes an anterior horn cell or motor neuron (illustrated in a
cross-section of the spinal cord), an axon, and several connected muscle fibers. The hatched
fibers belong to one motor unit; the non-hatched fibers belong to other motor units. A
needle electrode is also illustrated.
B- Middle panel: The firing pattern of each motor neuron is represented by an impulse
train. Each system hi(t) shown represents a motor unit that is activated and generates a train
of SMUAPs. The net EMG is the sum of several SMUAP trains.
C- Bottom panel: Effects of instrumentation on the EMG signal acquired. The observed
EMG is a function of time t and muscular force produced F.
Reproduced with permission from C.J. de Luca, Physiology and mathematics of myoelectric signals, IEEE Transactions on Biomedical
Engineering, 26:313–325, 1979. c IEEE.
Gradation of muscular contraction: I
ways:
1. Temporal recruitment—increasing the frequency of
discharge or firing rate of each MU, with
increasing effort.
From (5-6) pps to 40 pps
Innervations Ratio
Number of muscle fibers per motor nerve fiber:
innervation ratio.
Students: Answer
Thus, Innervation ratio varies from muscle to
muscle
2. Biphasic
3. or Triphasic;
The shape of the
SMUAP is important
for medical diagnosis !
Factor affecting the shape of a
recorded SMUAP
The shape of a recorded SMUAP depends upon
(Students)
I- Neuropathy:
a) Nervous system is affected while the muscular system
is ok.
b) slow conduction,
c) desynchronized activation of fibers (muscle fibers
are activated with some delay),which will lead to:
d) polyphasic SMUAP with an amplitude larger
than normal (only one muscle fibre is activated).
Answer: ENG
II-Myopathy:
Nervous system is ok while the muscular system is
affected= loss of muscle fibers in the muscle, with the
neurons presumably intact.
SSBME
Lecture 9
The Wiener Filter and Adaptive Filter
Dr Ali Hussein
The Biomedical Engineering Department,
Al-Khawarzmi College of Engineering,
Baghdad University
40
1
7/13/2020
Lecture plan
– Optimal filter: Wiener filter
– STFT
42
Optimal Filter
The Wiener
Filter
43
2
7/13/2020
44
45
3
7/13/2020
Eq. 1
Eq. 2
46
47
4
7/13/2020
Applications to
Wiener filter
48
5
7/13/2020
50
Filtered signal
51
6
7/13/2020
Adaptive
Filters
52
• Such filters are not applicable when the characteristics of the signal
and/or noise vary with time: when they are nonstationary.
• They are also not suitable when the spectral contents of the signal
and the interference overlap significantly.
53
7
7/13/2020
54
55
8
7/13/2020
Figure 3.49: Block diagram of a generic adaptive noise canceller (ANC) or adaptive filter.
56
57
9
7/13/2020
Applications to
Adaptive Filters
59
10
7/13/2020
60
Last Application:
Removal of combined
Artifacts in the ECG
using traditional filters
61
11
7/13/2020
62
Figure 3.56 ECG signal with a combination of artifacts and its filtered versions. The
duration of the signal is10.7 s.
63
12
7/13/2020
Figure 3.57 Top and bottom plots: Power spectra of the ECG signals in the top and bottom
traces of Figure 3.8. Middle plot: Frequency response of the combination of lowpass, highpass,
and comb filters. The cutoff frequency f the highpass filter is 2 Hz; the highpass portion of the
frequency response is not clearly seen in the plot.
64
Review of
Transform
Domain methods
65
13
7/13/2020
Transforms
Short time
Time Frequency
Fourier
domain FFT
Transform
66
-0.5
0 2 4 6 8 10 12 14 16
Time(s)
80
60
Magnitude
40
20
0
0 200 400 600 800 1000 1200 1400 1600 1800 2000
Frequency(Hz)
67
14
7/13/2020
2. Frequency domain
-You convert the signal to frequency domain.
Limitation:
-You can not localize specific frequency for a specific
time.
68
69
15
7/13/2020
70
EEG
http://d29qn7q9z0j1p6.cloudfront.net/content
/roypta/369/1952/3884/F1.large.jpg
71
16
7/13/2020
72
EMG
https://i.ytimg.com/vi/jWZ5Cug9yyY/maxresd
efault.jpg
73
17
7/13/2020
Event
detection
74
Event detection
Example: QRS detection
75
18