Signal processing

From beita6969/ScienceClaw · View interactive version

Signal processing is an AI agent skill from the GitHub repository beita6969/ScienceClaw. Performs signal processing tasks including spectral analysis (FFT), digital filtering, time-frequency decomposition, noise reduction, and modulation/demodulation; trigger when users discuss waveforms, frequency spectra, filters, or time series in engineering contexts.

How to use this skill

Skill file

When to Trigger

Activate this skill when the user mentions:

Step-by-Step Methodology

  1. Signal characterization - Identify signal type (continuous/discrete, deterministic/stochastic, stationary/non-stationary). Determine sampling rate, duration, and bit depth. Check Nyquist criterion (fs > 2*fmax).
  2. Preprocessing - Remove DC offset (mean subtraction). Apply windowing (Hann, Hamming, Blackman) to reduce spectral leakage. Handle missing data or outliers. Normalize amplitude if needed.
  3. Spectral analysis - Compute FFT with appropriate zero-padding for frequency resolution. Estimate power spectral density (Welch's method for noise reduction, periodogram for snapshot). Identify dominant frequency components and harmonics.
  4. Filtering - Design filter based on requirements: passband/stopband frequencies, ripple, attenuation. Choose type: FIR (linear phase, higher order) or IIR (lower order, nonlinear phase). Implement using appropriate method (Parks-McClellan for FIR, bilinear transform for IIR).
  5. Time-frequency analysis - For non-stationary signals: compute STFT (spectrogram) with appropriate window size trade-off. Apply wavelet transform (CWT for analysis, DWT for decomposition/compression). Select mother wavelet (Morlet for frequency, Daubechies for transients).
  6. Denoising - Estimate noise characteristics (white, colored, impulsive). Apply appropriate method: spectral subtraction, Wiener filter, wavelet thresholding (soft/hard), or adaptive filtering (LMS, RLS).
  7. Validation - Verify filter response meets specifications (frequency response, phase response, group delay). Check for artifacts (ringing, Gibbs phenomenon). Compute output SNR improvement.

Key Databases and Tools

Output Format

Quality Checklist

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.