Fiveable

🩺Biomedical Instrumentation Unit 12 Review

QR code for Biomedical Instrumentation practice questions

12.1 Introduction to Digital Signal Processing

12.1 Introduction to Digital Signal Processing

Written by the Fiveable Content Team • Last updated August 2025
Written by the Fiveable Content Team • Last updated August 2025
🩺Biomedical Instrumentation
Unit & Topic Study Guides

Analog-to-Digital Conversion

Digital signal processing (DSP) is how we take the continuous electrical signals produced by the body and convert them into numbers a computer can work with. Once in digital form, these signals can be filtered, analyzed, and stored with far greater precision than analog methods allow. In biomedical contexts, DSP underpins everything from ECG interpretation to EEG spectral analysis.

The core pipeline involves three stages: sampling (grabbing values at regular time intervals), quantization (rounding those values to discrete levels), and frequency analysis (decomposing the signal into its component frequencies). Each stage introduces trade-offs between fidelity and computational cost.

Sampling and Quantization

Analog-to-digital conversion (ADC) is the process of turning a continuous analog signal into a sequence of discrete digital values.

Sampling captures the signal's amplitude at evenly spaced time intervals. The rate at which you sample is the sampling frequency (fsf_s), measured in Hertz. A higher fsf_s preserves more detail from the original signal but demands more storage and processing power.

Quantization maps each sampled amplitude to the nearest available discrete level. The gap between the true analog value and the assigned level is called quantization error. You reduce this error by increasing the number of bits per sample:

  • An 8-bit system provides 28=2562^8 = 256 levels.
  • A 16-bit system (used in audio CDs) provides 216=65,5362^{16} = 65{,}536 levels.
  • Medical-grade ADCs for ECG signals commonly use 12-bit to 24-bit resolution to capture the small voltage changes of cardiac activity (on the order of millivolts).

More bits means finer resolution, but also larger data files and higher processing demands.

Sampling and Quantization, Analog To Digital Conversion - Sampling and Quantization - Electronics-Lab.com

Nyquist Theorem and Aliasing

The Nyquist Theorem sets a hard rule: your sampling frequency must be at least twice the highest frequency present in the signal. That minimum rate is called the Nyquist rate.

fs2fmaxf_s \geq 2 f_{max}

If you sample below this rate, aliasing occurs. High-frequency components "fold" back into the spectrum and masquerade as lower frequencies, producing distortion that cannot be corrected after the fact.

To prevent aliasing, you place an anti-aliasing filter (a low-pass filter) before the ADC. This filter removes any frequency content above the Nyquist frequency (fs/2f_s / 2) so that only representable frequencies reach the sampler.

A concrete example: audio CDs sample at 44.1 kHz, so the Nyquist frequency is 22.05 kHz. Since human hearing tops out around 20 kHz, this rate captures the full audible range. In biomedical applications, an ECG signal with clinically relevant content up to about 150 Hz would need a sampling rate of at least 300 Hz, though 500 Hz or higher is standard practice to provide a comfortable margin.

Sampling and Quantization, TI introduces a new ultra-high-speed analog-to-digital converter - Electronics-Lab.com

Frequency Domain Analysis

Time-domain signals show you when something happens. Frequency-domain analysis shows you what frequencies are present and how strong each one is. For biomedical signals, this distinction matters: an EEG's alpha rhythm (8–13 Hz) is much easier to identify and quantify in the frequency domain than by staring at a raw time trace.

Discrete Fourier Transform (DFT) and Fast Fourier Transform (FFT)

The Discrete Fourier Transform (DFT) takes a finite sequence of NN time-domain samples and computes the amplitude and phase of each frequency component. It converts x[n]x[n] (time domain) into X[k]X[k] (frequency domain):

X[k]=n=0N1x[n]ej2πkn/N,k=0,1,,N1X[k] = \sum_{n=0}^{N-1} x[n] \, e^{-j 2\pi kn / N}, \quad k = 0, 1, \dots, N-1

Computing the DFT directly requires O(N2)O(N^2) operations, which becomes impractical for large datasets.

The Fast Fourier Transform (FFT) is an algorithm that computes the exact same result in O(NlogN)O(N \log N) operations by exploiting symmetry and periodicity in the DFT calculation. For a signal with N=1,024N = 1{,}024 samples, the FFT is roughly 100 times faster than the brute-force DFT. This efficiency is what makes real-time spectral analysis feasible in clinical monitors.

Common biomedical uses of the FFT include:

  • EEG power spectral analysis to quantify brain wave bands (delta, theta, alpha, beta)
  • Heart rate variability (HRV) analysis from ECG data, separating sympathetic and parasympathetic contributions by frequency band
  • Artifact identification in EMG or ECG recordings, where power-line interference at 50 or 60 Hz shows up as a sharp spectral peak

Z-Transform

The Z-transform generalizes the Fourier transform for discrete-time signals by replacing the complex exponential with a general complex variable zz:

X(z)=n=x[n]znX(z) = \sum_{n=-\infty}^{\infty} x[n] \, z^{-n}

Here x[n]x[n] is the discrete-time signal and zz is a complex number. When you evaluate the Z-transform on the unit circle (z=ejωz = e^{j\omega}), you recover the DFT. Off the unit circle, the Z-transform captures information about signal growth and decay, which the Fourier transform alone cannot represent.

The Z-transform is primarily a design and analysis tool for digital filters. It lets you:

  1. Express a filter's transfer function H(z)H(z) as a ratio of polynomials in zz.
  2. Determine stability by checking whether the poles of H(z)H(z) lie inside the unit circle in the z-plane.
  3. Shape the frequency response to achieve specific filter types (low-pass, high-pass, band-pass, or notch).

In practice, if you're designing a notch filter to remove 60 Hz power-line noise from an ECG, you'd use the Z-transform to place zeros at the corresponding frequency on the unit circle and verify that the resulting filter is stable. The Z-transform bridges the gap between the math of filter design and the actual implementation running on a digital processor.