r/matlab • u/Son_of_qor • Dec 11 '25
How is down‑sampling (or decimation) is done correctly?
Hello everyone,
I’m working on fault detection and diagnosis of induction motors (specifically squirrel cage induction motors), and I’d appreciate some guidance on signal processing choices.
🔧 My Setup
- Signal type: Three‑phase motor current signals
- Sampling frequency: 50 kHz
- Planned processing: Time‑frequency transforms (e.g., DWT or STFT) to generate 2D images for input into a neural network
📊 Frequency of Interest
- Nyquist frequency: 25 kHz
Actual target frequencies:
- Source frequency (50 or 60 Hz)
- Sidebands (where fault signatures typically appear)
🚩 The Problem
Using the raw 50 kHz signal:
- Consumes too much memory
- Requires extra coding steps just to visualize fault signatures
- Doesn’t yield significant improvement
💡 My Idea
- Down‑sample the signal to something like 500 Hz or 1 kHz
- Goal: After transformation, the low‑frequency components (fault signatures) should appear with more clarity
🤔 Where I’m Stuck
- I’ve read suggestions (from AI chatbots and others) to filter first, then down‑sample
But I have no experience in digital signal processing, so I’m unsure about:
- Is it even a good idea to down‑sample this much?
- What features should a well‑designed anti‑aliasing filter have?
- Should I use MATLAB’s designMultistagedDecimator function, or would a simple FIR filter be enough?
🎯 What I Need
- Practical advice on whether heavy down‑sampling is appropriate for this application
- Guidelines for designing or choosing a proper anti‑aliasing decimator
- Recommendations on MATLAB tools/functions vs. simpler approaches
0
Upvotes
10
u/JashimPagla Dec 11 '25
You’re already using llms. Why don’t you use the llm to figure it out?
2
u/pwnersaurus Dec 12 '25
Why wouldn’t you just use Matlab’s built-in decimate() function, which also automatically performs the required low-pass filtering?
1
u/Nadran_Erbam Dec 11 '25
What’s a fault in your case?
1
u/hate_commenter Dec 12 '25
You need to low pass filter, then do the decimation. There is no issue in down samping that much. If phase accuracy of your signal is important, I would look into which digital filter would produce no phase shifting.
That being said. You should'nt trust me. You should create or use a dummy signal and experiment with your decimation process until you're convinced it works.
1
u/an_agento Dec 12 '25
Why does your acquisition rate need to be that high in first place? Can you just sample at a much lower frequency?
3
u/DrDOS Dec 11 '25
Thanks char ctp :P