CMM344 Digital Signal Analysis and Processing

Digital Signal Analysis and ProcessingUnit 111 min read

Discrete-Time Signals & Systems: Classification, Operations & Properties

Unit 1 of Digital Signal Analysis and Processing covers discrete-time signals (classification, operations, properties) and systems (causality, linearity, time-invariance, stability), with visual tools like signal plots, system block diagrams, and real-world DSP applications in Nepalese tech.

1. Discrete-Time Signals: Definition & Classification

A discrete-time signal is a sequence of numbers defined only at integer values of (e.g., ). Unlike continuous signals, it exists only at sampled points.

1.1 Classification of Signals

Signals are categorized based on their duration, amplitude, and periodicity:

Property Type Definition Example
Duration Finite (FIR) Non-zero for samples: for . Echo in a room (decays after time).
Infinite (IIR) Non-zero for all . Sine wave .
Amplitude Bounded for some . Audio signal from a microphone.
Unbounded Grows without limit (e.g., ). Unstable system output.
Periodicity Periodic Repeats every samples: . Digital clock signal (0,1,0,1,...).
Aperiodic No repeating pattern. Speech signal.

Visual:

classDiagram
    class Signal {
        +isFinite(): bool
        +isBounded(): bool
        +isPeriodic(): bool
    }
    Signal <|-- FiniteSignal : "1"
    Signal <|-- InfiniteSignal : "1"
    Signal <|-- BoundedSignal : "1"
    Signal <|-- UnboundedSignal : "1"
    Signal <|-- PeriodicSignal : "1"
    Signal <|-- AperiodicSignal : "1"

1.2 Common Discrete-Time Signals

  1. Unit Impulse (Delta) Signal

    • Defined as:
    • Plot:
      
      
    • Use: Used to test systems (like a hammer test in mechanical systems).
  2. Unit Step Signal

    • Defined as:
    • Plot:
      
      
    • Use: Models sudden changes (e.g., turning on a switch in a circuit).
  3. Exponential Signal

    • Plot (for ):
      
      
    • Use: Models decaying systems (e.g., capacitor discharge in digital circuits).
  4. Sinusoidal Signal

    • Plot (for ):
      
      
    • Use: Represents periodic phenomena (e.g., music notes in digital audio).

2. Signal Operations

Operations manipulate signals to extract features or simplify analysis.

2.1 Time Shifting (Delay/Advance)

  • Delay by : shifts signal right by samples.
  • Advance by : shifts signal left by samples.
  • Example: If (rectangular pulse), then delays it by 2 samples.
  • Plot:

2.2 Time Reversal (Folding)

  • flips the signal about .
  • Example: If , then .

2.3 Time Scaling (Expansion/Compression)

  • Expansion by : (only defined for integer ).
  • Compression by : .
  • Example: Compressing by 2 gives (higher frequency).

2.4 Amplitude Scaling & Addition

  • Scaling: multiplies amplitude by .
  • Addition: adds signals pointwise.

3. Discrete-Time Systems

A discrete-time system processes an input signal to produce an output . It is defined by an input-output relationship:

3.1 System Properties

Systems are classified based on four key properties:

Property Definition Example (Yes/No) Real-World Analogy
Causality Output at depends only on current/future inputs (not past). No: (past input used). Yes: A predictive text app (output depends only on current keystrokes).
Linearity Satisfies additivity and homogeneity: . Yes: . No: A nonlinear amplifier (e.g., clipping in audio).
Time-Invariance If input gives , then gives . Yes: . No: A system whose behavior changes over time (e.g., aging battery).
Stability Bounded input → bounded output (BIBO stable). Yes: . No: Unstable feedback loop in a power amplifier.

Visual: System Properties Flowchart

flowchart TD
    A["System"] --> B["Causal?"]
    B -->|"Yes"| C["Linear?"]
    B -->|"No"| D["Non-causal"]
    C --> E["Time-Invariant?"]
    C -->|"No"| F["Nonlinear"]
    E --> G["Stable?"]
    E -->|"No"| H["Time-Variant"]
    G -->|"Yes"| I["LTI System"]
    G -->|"No"| J["Unstable"]

3.2 LTI Systems & Convolution

Linear Time-Invariant (LTI) systems are the most important class. Their output is given by convolution:

Example: Convolution of and

  1. is a finite impulse response (FIR) filter (differentiator).
  2. Convolution:
    • This is a rectangular pulse of width 1.

Plot:


4. Real-World Applications in Nepal

4.1 eSewa & Khalti: Digital Payment Systems

  • Idea Used: Discrete-time sampling of transaction data.
    • When you pay via eSewa, the app samples your fingerprint/OTP as a discrete signal (sequence of binary values).
    • The system processes this signal through an LTI filter (e.g., checksum validation) to detect fraud.
    • Example: If your OTP is 3-8-2-7, the system treats it as and applies a moving average filter to smooth out noise (e.g., typos).

4.2 Pathao: Ride-Hailing & Traffic Routing

  • Idea Used: Periodic signals for traffic light synchronization.
    • Pathao’s algorithm uses discrete-time models to predict driver arrival times at traffic lights.
    • Traffic lights follow a periodic signal , where is the light cycle (e.g., 60 seconds).
    • The system convolves this with driver arrival patterns to optimize green light duration.

4.3 NTC & Ncell: Voice Signal Processing

  • Idea Used: Sampling & LTI filtering in mobile calls.
    • Your voice is sampled at 8 kHz (discrete-time signal) and passed through anti-aliasing filters (LTI systems) to remove high-frequency noise.
    • Example: If your voice signal is , the filter removes frequencies above 3.4 kHz (Nyquist limit).

5. Worked Example: Traffic Light Control System

Problem: Design a discrete-time system to model a traffic light that cycles through Green (1s) → Yellow (0.5s) → Red (2s) and repeats.

Solution:

  1. Define the periodic signal: The traffic light can be represented as: (Assuming sampling rate = 8 samples/sec: 1s = 8 samples.)

  2. Plot:

  3. System Properties:

    • Periodic: .
    • Bounded: .
    • LTI? No, because the output depends on absolute time (not just input history). However, if we model it as a state machine, we can approximate it with LTI components.
  4. LTI Approximation: Use a feedback system with a delay line to create periodicity: where is a gain to enforce repetition.


6. Exam Tip

What to Focus On:

  1. Signal Classification:

    • Memorize the definitions of finite/infinite, bounded/unbounded, and periodic/aperiodic signals.
    • Common pitfalls: Confusing periodic with constant (e.g., is periodic with any period, but trivial).
  2. System Properties:

    • Causality: Check if depends on future inputs (e.g., is non-causal).
    • Linearity: Test with superposition (e.g., if , it’s nonlinear).
    • Time-Invariance: Shift input and see if output shifts similarly.
    • Stability: For LTI systems, check if the impulse response is absolutely summable ().
  3. Convolution:

    • Graphical method: Flip , shift, and multiply-accumulate.
    • Shortcut: For , (pure delay).
    • Common mistake: Forgetting to flip before shifting.
  4. Real-World Links:

    • eSewa/Khalti: Think of sampling (discrete signals) and filtering (LTI systems for fraud detection).
    • Pathao: Periodic signals for traffic light synchronization.
    • NTC/Ncell: Sampling rate and anti-aliasing filters.

How to Score Full Marks:

  • Draw plots: For every signal operation (shift, scale, convolution), sketch the input/output.
  • State properties clearly: For a system, explicitly check all 4 properties (causality, linearity, time-invariance, stability).
  • Use examples: Relate convolution to audio effects (e.g., reverb = convolution with impulse response of a hall).
  • Avoid memorization: Derive results from definitions (e.g., prove linearity by showing ).

Key Formulas to Remember

Concept Formula
Unit Impulse
Unit Step
Convolution
LTI System Output
Periodicity Check for some .
BIBO Stability Condition .

Based on the PU BE Computer (PU) syllabus for Digital Signal Analysis and Processing (CMM344), unit 1.

Discussion

Loading…