Processing Blocks
MFE
Turn sound into a picture of energy at different pitches over time, the usual first choice for Audio projects.
Try it in StudioOn this page
What is this block?
MFE (Mel-filterbank energy) turns one window of sound into a small grid: time runs along one side, pitch along the other, and each cell says how much energy the sound has at that pitch and moment. It is listed as Audio (MFE) when you add a processing block.
Think of it as a simple sheet of music drawn from the sound.
Why do we use it?
Raw audio is 16 000 numbers per second, and a word said twice never gives the same numbers. The MFE grid keeps what matters for recognising a sound (which pitches, and when) and is much smaller. It also spaces the pitch bands the way human hearing works: many narrow bands for low sounds, fewer wide bands for high sounds (the mel scale).
How does it work?
- Cut the window into short, overlapping frames (25 ms long, every 10 ms by default).
- Smooth the edges of each frame and measure its frequencies with an FFT.
- Group the frequencies into mel bands (40 by default) between the low and high frequency.
- Take the logarithm of each band's energy, so quiet and loud sounds are both visible.
- Raise very small values to the Noise floor (dB).
What input does it receive?
One audio window from the impulse, for example 1000 ms of sound at 16 000 Hz (16 000 samples).
What output does it produce?
A grid of frames × filters. For a 1-second window at 16 kHz with the default settings, that is 98 × 40 = 3,920 numbers.
What do its settings mean?
Settings are on the block's Parameters tab.
| Setting | Default | What changing it does |
|---|---|---|
| Frame length | 0.025 | Length of each frame in seconds (0.025 = 25 ms). Longer frames give finer pitch detail but blur fast changes. |
| Frame stride | 0.01 | Time between frame starts in seconds (0.01 = 10 ms). Smaller strides give more frames (a bigger output). |
| Filter number | 40 | Number of mel bands. More bands give more pitch detail and a bigger output. |
| FFT length | 512 | Number of points in each FFT. Use a power of 2 at least as large as the frame (400 samples at 16 kHz). |
| Low frequency | 80 | Lowest pitch included, in Hz. Raise it to ignore low hum. |
| High frequency | 0 | Highest pitch included, in Hz. 0 means "up to half the sample rate" (8000 Hz at 16 kHz). |
| Noise floor (dB) | −52 | Values below this are raised to it, which hides tiny background noise. |
Simple example
You record yes, no and noise in 1-second clips. With the defaults, each clip becomes a 98 × 40 grid. Yes shows a burst of high energy for the "s" near the end, no shows lower energy throughout, and noise stays flat. After Generate features, the three labels form separate groups in the feature explorer.
When should I use it?
- Use it as your first choice for almost any sound: words, alarms, animals, machines. It works well with the Classification and Transfer Learning learning blocks.
- Try MFCC instead when you want a smaller input for speech.
- Try Spectrogram instead to compare another time–pitch picture on the same data.
- For deployment, MFE models use the Generic TFLite package. See Deploying an Audio model.