Introduction to Biosignal Processing
Introduction to Biosignal Processing
(3+1)
1
BME-303 – BSP (CLO-PLO Mapping)
2
Course Contents
• 1. Introduction to Digital Signal c. Discrete Fourier Analysis and Periodic Signal
Processing Spectrum
• a. Analog-to-Digital& Digital-to-Analog d. Fast Fourier transform (FFT)
Conversion 5. Finite Impulse Response Filter Design
• b. Digital Signals, Systems, and Difference a. FIR filter design using window method.
Equations
6. Infinite Impulse Response Filter Design
• c. Realizations of Digital Systems
a. IIR filter design using Bilinear
• 2. Time domain Analysis Transformation Method
• a. Digital Convolution b. IIR filter design using Pole-Zero placement,
• b. Auto and Cross Correlation and Impulse Invariance methods.
7. Biomedical Applications
• 3. Discrete System Stability
a. Detection of Events: ECG rhythm analysis,
• a. The z-Transforms
Maternal Interference in Fetal ECG
• b. Transfer function, pole zero plot, and b. EEG wave-shape and wave-complexity:
System Stability Analysis of event related potentials, coherence
• 4. Discrete Time Fourier Transform analysis, detection of EEG rhythms
• a. Frequency response of discrete system c. PPG wave analysis
• b. Frequency spectra of discrete signals d. Sound wave analysis, e. EMG Processing
3
Text and Reference Books
• Li Tan, “DSP Fundamentals and Applications”, Academic Press
(Elsevier).
• Proakis J.G. and Manolakis D.G., “Digital Signal Processing”,
Macmillan Publishing Company.
• Oppenhiem A.V., “Digital Signal Processing”, Prentice Hall
• Rangaraj M. Rangayyan, Biomedical Signal Analysis (IEEE
Press Series on Biomedical Engineering), 2nd Edition, Wiley-
IEEE Press; 2015
• Suresh R. Devasahayam, Signals and Systems in Biomedical
Engineering: Physiological Systems Modeling and Signal
Processing, 3rd Edition, Springer; 2019
4
Signal and System
• A signal is a physical quantity, or quality, which conveys information
Example:
• Voice of a friend is a signal which causes certain actions to perform or react in a
particular way
• Friend's voice is called an excitation
• Action or reaction is called a response
• A system is an entity that manipulates one or more signals to accomplish a function,
thus yielding new signals.
Signal Examples
Signal Processing
• The conversion from excitation to response is called signal processing
• A typical reason for signal processing is to eliminate or reduce an undesirable signal
• To convert the original signal into a form that is suitable for further processing
• One fundamental representation of a signal is as a function of at least one
independent variable
Analog Vs. Digital Signal Processing
Analog input Signal Analog output Signal
x(t) Analog y(t)
Signal Processor
7
DSP Examples
Digital Filtering
8
DSP Examples
• In ECG recording, there often is unwanted 60-
Hz interference in the recorded data (Webster, Elimination of 50/60 Hz
1998). Interference in
• The analysis shows that the interference comes Electrocardiography
from the power line and includes magnetic
induction, displacement currents in leads or in
the body of the patient, effects from equipment
interconnections, and other deficiencies.
• Although using proper grounding or twisted
pairs minimizes such as 50/60-Hz effects,
another effective choice can be use of a digital
notch filter, which eliminates the 50/60-Hz
interference while keeping all the other useful
information.
• Figure illustrates a 50/60-Hz interference
eliminator using a digital notch filter.
• With such enhanced ECG recording, doctors in
clinics can give accurate diagnoses for patients.
• This technique can also be applied to remove
5060-Hz interferences in audio systems.
9
DSP Applications
10
Typical Digital Signal Processing System
It consists of
• an analog filter called (anti-aliasing) filter,
• an analog-to-digital conversion (ADC) unit,
• a digital signal (DS) processor,
• a digital-to-analog conversion (DAC) unit,
• and an analog filter called reconstruction (anti-image) filter.
• An anti-aliasing filter (AAF) is a filter used before a signal sampler to restrict the
bandwidth of a signal to approximately or completely satisfy the Nyquist–Shannon
sampling theorem over the band of interest.
12
Analog to Digital (A/D) Conversion
• Most signals of practical interest are analog in nature
Examples: Voice, Video, RADAR signals, Transducer/Sensor output, Biological
signals etc
• So in order to utilize those benefits, we need to convert analog signals into digital
• This process is called A/D conversion
13
Analog to Digital Conversion
Three steps are involved in A/D conversion process
14
Analog to Digital Conversion
Sample & Hold (Sampler)
• Analog signal is continuous in time and continuous in amplitude.
• It means that it carries infinite information of time and infinite information of
amplitude.
• Analog (continuous-time) signal has some value defined at every time
instant, so it has infinite number of sample points.
• It is impossible to digitize an infinite number of points.
• The infinite points cannot be processed by the digital signal (DS) processor
or computer, since they require an infinite amount of memory and infinite
amount of processing power for computations.
• Sampling is the process to reduce the time information or sample points.
• The first essential step in analog-to-digital (A/D) conversion is to sample an
analog signal.
• This step is performed by a sample and hold circuit, which samples at regular
intervals called sampling intervals.
• Sampling can take samples at a fixed time interval.
• The length of the sampling interval is the same as the sampling period, and the
reciprocal of the sampling period is the sampling frequency fs.
• Length of sample interval = sample period = 1/Fs 15
16
Sample & Hold (Sampler)
Figure below shows an analog (continuous-time) signal (solid line) defined at every
point over the time axis (horizontal line) and amplitude axis (vertical line).
Hence, the analog signal contains an infinite number of points.
Each sample maintains its voltage level during the sampling interval 𝑻 to give the ADC
enough time to convert it.
This process is called sample and hold.
17
Sample & Hold (Sampler)
18
Nyquist–Shannon Sampling Theorem
The sampling theorem guarantees that an analogue signal can be perfectly recovered as
long as the sampling rate is at least twice as large as the highest-frequency component
of the analogue signal to be sampled.
19
Nyquist–Shannon Sampling Theorem (Examples)
Example: For the following analog signal, find the Nyquist sampling rate, also
determine the digital signal frequency and the digital signal
20
Nyquist–Shannon Sampling Theorem
23
Anti Aliasing Filter
• A signal with no frequency component above a certain maximum frequency
is known as a band-limited signal.
• In our case we want to have a signal band-limited to ½ Fs.
• Some times higher frequency components (both harmonics and noise) are
added to the analog signal (practical signals are not band-limited).
• In order to keep analog signal band-limited, we need a filter, usually a low
pass that stops all frequencies above ½ Fs.
• This is called an “Anti-Aliasing” filter and are analog in nature.
• They process the signal before it is sampled.
• In most cases, they are also low-pass filters unless band-pass sampling
techniques are used.
• Anti-aliasing filter are low pass filter that will reject high frequency that
causes aliasing.
• Anti-image filter is a reconstruction low pass filter that will smooth the
recovered the sample and hold voltage levels to analog signal.
24
Quantizer
• After the sampling, the discrete time continuous signal still carry infinite information
(can take any value) in terms of amplitude.
• Quantization is the process to reduce infinite information of the amplitude.
• Quantizer do the conversion of discrete time continuous valued signal into a discrete-
time discrete-value signal.
• Figure shows quantization is a part of ADC
There are several ways to implement ADC. The most common ones are
• Flash ADC,
• Successive approximation ADC
• Sigma-delta ADC
25
2-bit Flash ADC
26
• The value of each signal sample is represented by a value selected from a finite set of
possible values.
• The A/D converter chooses a quantization level for each analog sample.
• Number of levels of quantizer is equal to L = 2N
• An N-bit converter chooses among 2N possible quantization levels.
• So 3 bit converter has 8 quantization levels, and 4 bit converter has 16 quantization levels.
Where
• xmax and xmin are the maximum and minimum values, respectively, of the analog input signal
x.
• The symbol L denotes the number of quantization levels, which is determined by Equation
2.20, where m is the number of bits used in ADC.
• The symbol delta is the step size of the quantizer or the ADC resolution.
• Finally, xq indicates the quantization level, and i is an index corresponding to the binary
28
code.
3-bit Quantizer
29
30
31
32
Quantization Error
33
Analog to Digital Conversion
• Lets consider the signal which is to be
quantized.
34
Analog to Digital Conversion
35
Digital-to-Analog (D/A) Conversion
Block Diagram of D/A Conversion
36
Zero-order Hold
• The zero-order hold (ZOH) is a mathematical model of the practical signal
reconstruction done by a conventional digital-to-analog converter (DAC).
• That is, it describes the effect of converting a discrete-time signal to a continuous-
time signal by holding each sample value for one sample interval.
• A zero-order hold reconstructs the following continuous-time waveform from a
sample sequence x[n], assuming one sample per time interval T:
37
Digital-to-Analog (D/A) Conversion
38
Summary
39