Questions tagged [stft]

Short-Time Fourier Transform

Filter by
Sorted by
Tagged with
0 votes
1 answer
75 views

Why does NMF (Non Negative Matrix Factorization) decompose a spectrogram into time and frequency component?

I compute the NMF over a spectrogram (magnitude of STFT of a signal) in this way: W,H = NMF(MyStft,r) # where r=2 is the rank W and H respectively contain the ...
1 vote
2 answers
204 views

Wigner-Ville Distribution (WVD) vs STFT for Spectral Analysis

What are the Pros and Cons of using Wigner-Ville Distribution for spectral analysis of a signal vs taking the STFT. When is it appropriate to use one over the other and is WVD used in real-time ...
5 votes
5 answers
5k views

What is really the Mel-filterbank?

After applying STFT to a signal, you typically need to convert the frequencies to the Mel scale. Typically the frequency values range from $0$ to $N/2$, where $N$ is the width of each sliding window. ...
0 votes
0 answers
21 views

difference in speed between tensorflow implementations of mfcc and stft

I am trying to preprocess audio clips for a keyword spotting task that uses machine learning models. The first step is to calculate the spectrogram starting from the waveform and in order to do so I ...
0 votes
0 answers
30 views

How to detect "buzz" components in audio by frequency domain analysis

I am trying to detect the amplitude, frequency and phase of the dominant "buzz" in an audio signal. By "buzz" I mean a periodic signal with sharp edges. For example, an impulse ...
5 votes
1 answer
4k views

STFT Window Size is 2048, Why is the output 1025?

I feel like I am having a brainfart over here and can't seem to remember what's going on with STFT outputs. Consider these two lines of code from the Python library Librosa: ...
0 votes
1 answer
80 views

Best way to get the bin amplitudes of an audio DFT "normalized" 0-1

I'm working on a spectral processing plugin that's predicated on allowing the user to manipulate per-bin values in an STFT algorithm. I normalize the bin amplitudes by diving them by $N$ (number of ...
1 vote
1 answer
854 views

How to express STFT and ISTFT as a 1d convolution and 1d deconvolution in tensorflow/keras

I'm trying to implement this paper in tensorflow and keras. At the end of section 3 it says. ...
1 vote
1 answer
46 views

Spectrum analyzer with multirate filter bank

This paper gives a spectrum analyzer using the multirate filter bank technique. The basic idea of the paper is that STFT can be interpretated as a uniform DFT filter bank. But the baseband filter of ...
2 votes
1 answer
101 views

Choice of relationship between n_fft and window_length in STFT

Not a veteran in Signal Processing, it would be extremely appreciated to help me understand the idea/heuristic behinde the idea in STFT that $$\text{nfft} \ge \text{window length}$$ At least from a ...
2 votes
2 answers
175 views

How to calculate short-time fourier transform (STFT) when the window length is greater or smaller than the FFT size?

I have been trying to understand the weighted overlap-add (WOLA) method. By searching papers and posts in dsp.SE, I found that the window length can be larger and smaller than the FFT size. 1. Window ...
0 votes
0 answers
73 views

How to plot the STFT of a .wav file in GNU Octave?

I'm quite new to signal processing and am trying to find the short time fourier transform of an audio sample and plot it (I believe the best way is as a spectogram?) using Octave (similar to this ...
3 votes
2 answers
257 views

What is the cause of STFT artifacts when different signals overlap?

I'm trying to learn about why signals that cross in an STFT cause apparent artifacts in the magnitude. I've been looking at the example below, written in python, where a gaussian peak overlaps with a ...
1 vote
0 answers
42 views

STFT for Classification

I am working on this project in which I am using Short Time Fourier Transform (STFT) for feature extraction before applying classification model. I have a time series sensor data, applied signal ...
0 votes
1 answer
268 views

How to train a FCNN with Spectrogram images?

I'm working on a audio dereverberation deep learning model, based on the U-net architecture. The idea of my project came from image denoising with autoencoders. I feed the reverbered spectrogram to ...
0 votes
1 answer
60 views

Why does varying n_fft change the range of x axis values when plotting STFT?

I am using librosa.stft to apply an STFT to an audio sample and display a spectogram of the results when using different sampling windows (...
1 vote
1 answer
105 views

How to pad a array representing music to pad the stft of this array?

I have an array named samples of size (2, 1321967) representing an audio file. When I pass it to scipy stft with ...
5 votes
4 answers
49k views

FFT to spectrum in decibel

Here is a 10 seconds-long 440hz sine wave normalized at $0\textrm{ dBFS}$. When computing the STFT (with the code below) of this audio file, I noticed that ...
0 votes
1 answer
55 views

Spectrogram of a shock event

I have measured data of a vibration with chirp input were I suspect unwanted shock events occurred. I therefore thought about computing the spectrogram of my time histories to check the frequency ...
1 vote
1 answer
59 views

Filterbank Interpretation of Inverse STFT With Hop

The slide below, borrowed from CMU, shows the typical interpretation of the "filterbank interpretation" of signal reconstruction from a Short Time Fourier Transform. As far as I can tell, ...
8 votes
4 answers
1k views

Advantage of STFT over wavelet transform

I have learned about STFT and wavelet transform recently, and wavelet transform seems better than STFT in my opinion. So, I wonder if there is any advantage of using STFT than WT, and if so, what are ...
0 votes
2 answers
5k views

Estimate phase using STFT in Matlab?

My signal oscillates back and forth on the interval [-1, 1] at varying frequencies, with some added higher frequency noise components (example data shown below). I want to to estimate the phase of the ...
3 votes
1 answer
235 views

Detecting background noise from audio time-freq domain analysis

I have a requirement to detect/reduce sidetalk/background noise in real-time audio. I am stuck in how can I detect this from audio time-frequency domain analysis. I am already getting the time-freq ...
1 vote
1 answer
433 views

Spacing between gaussian windows for STFT

I'm computing discrete short time Fourier transform. Data is split into overlapping chunks and gaussian window is used for each chunk. However, I'm not sure how much overlap there should be between ...
1 vote
0 answers
126 views

How to create overlapping frames of input signal for stft using HDL coder for FPGA implementation?

I want to implement stft on FPGA. For this purpose I use HDL coder and the problem is I have no idea how to create overlapping frames of data for further FFT. In my example I want to use 256 frame ...
0 votes
1 answer
144 views

Selected bin oscilation in STFT

I am looking for a noisy signal using STFT. My window length is 128 and I am using 75% overlap. I am using a Hanning window before running the FFT process. I am using Quinn's 2nd estimator for ...
0 votes
2 answers
95 views

Impact of STFT window function and FFT length on computation time

I have been doing a study which part of it includes a comparison of computation time vs window type and length (among some other things in the computation time, however I speak in terms of relative ...
-1 votes
1 answer
157 views

scipy.signal.stft temporal resolution

Using the STFT function from scipy.signal has produced unexpected results for me. I am performing an STFT on 10 seconds of data, sampled at 25,000 Hz. I am using STFT settings of nperseg=256 and ...
-1 votes
1 answer
426 views

Using STFT as an input to a Neural Net

I'm trying to use the STFT as an input to a neural network. After flattening, there are over 4,000 features for a few seconds of audio. Is there a recommended way of summarising these to be a more ...
2 votes
1 answer
124 views

Window with optimal sidelobes for a given ENBW / frequency-resolution

Is there a family of windows which is "optimal" in terms of energy above/below a boundary, but with controllable ENBW/bandwidth? By optimal, I mean maximising energy concentration inside ...
-1 votes
1 answer
271 views

STFT to spectrogram

I would like to know whether I am correct in my understanding of going from STFT to a spectrogram. My goal is to convert a spectrogram back to a wav file. If I have my STFT: ...
6 votes
3 answers
326 views

In the formula for the windowed Fourier transform, why is the complex-exponential term not time-shifted to the position of the window?

I have a question about the "windowed / short-time / short-term" Fourier transform that is somewhat perplexing me. I have now added an Addendum at the bottom, where the issue is presented more ...
1 vote
1 answer
308 views

Variance of the Discrete Gabor Transform for practical implementation

When we design a discrete Gabor filter for a 1D signal, how do we determine the variance of the filter, depending on the time step of the signal? Is there any empirical theorem/result that we should ...
2 votes
1 answer
165 views

Performing STFT after Butterworth Filter Seems Lower in Resolution

I have a signal recorded at 2MHz sampling rate. Before any decimation might be required, I first looked for peaks in my periodic recorded signal using STFT/spectrogram. From here, I can clearly see ...
0 votes
1 answer
256 views

normalize STFT output by magnitude

I am using torch.stft() to generate spectrograms for neural networks and come across the below code. ...
0 votes
1 answer
154 views

Calculating Short Time Fourier Transform Manually

I am doing a project on short time Fourier transform, I have to perform STFT for 128 data points. I have developed a Matlab code to perform the STFT operation. But, my main concern is, I need to ...
1 vote
1 answer
118 views

Classifying STFT from multiple signal samples

I have a collection of signals (IQ wav) split up into ~2s samples of sampling rate 2MHz, and can collect the STFT information from these samples through the following code: ...
1 vote
2 answers
293 views

Reconstructing Audio From Spectrogram (Using it as a filter)

Given a spectrogram calculated using the following code: ...
0 votes
3 answers
176 views

Is it possible to classify signal samples using STFT without (image-based) spectrograms?

I am aiming to conduct a classification-based study using signals collected from various devices. I've researched other approaches which make use of STFT for producing a spectrogram for speech and EEG/...
-1 votes
1 answer
522 views

How to specify parameters in scipy.stft to reproduce published analysis

I am starting a project on this Keggle dataset containing EEG registrations (sampled at 128 Hz) of several subjects. What I am really interested in is the final ...
3 votes
2 answers
199 views

Optimize window length (STFT) via gradient descent (in neural networks)

The authors from this paper optimized a Gaussian window size via gradient descent (the σ parameter of the bell curve) together with the other parameters of neural networks. I don't use Gaussian window ...
1 vote
0 answers
82 views

Strong vs weak COLA (constant overlap-add)

My question is on the aliasing cancellation of the OLA method when spectral modification is involved. The book related to this question is given by this link. As stated by the webpage, for weak COLA ...
-1 votes
1 answer
93 views

The effect of doubling the sample rate in Spectrogram

If we have an audio file and we only change the sample rate (double it), what changes our spectrogram will have (after using the stft)?
0 votes
1 answer
26 views

Calculate number of buzzs and their duration

I'm trying to calculate the number of buzzs and their duration from a buzzer. I'm working with python and scipy lib and the short time fourier transformation capturing the audio with a microphone. To ...
0 votes
1 answer
174 views

How to zero pad and do overlapping block convolution to reconstruct audio for frequency filtering in time-frequency domain

I am doing STFT (short-time Fourier transform) on real-time audio to filter frequencies by magnitudes (to reduce noise) which have certain drawbacks like noise spikes in reconstructed audio in the ...
2 votes
2 answers
148 views

Inverse STFT causing unwanted noise spikes?

I have an (audio) signal. I am applying STFT continuously and after applying a certain magnitude threshold I am doing inverse STFT to reconstruct the signal. But I am getting some unwanted mini noise ...
1 vote
0 answers
143 views

Confusion regarding STFT phase vocoder-based pitch shifting

I'm currently working on a phase vocoder implementation based on the Short-Time Fourier Transform; it's heavily based on the models described here and here. I have successfully completed the analysis ...
5 votes
3 answers
590 views

Role of window length and overlap in uncertainty principle?

I am trying to predict epilepsy using spectrograms and a convolutional neural network. So far I have achieved a validation accuracy of 86% which i feel like is pretty good. Lots of the papers doing ...
0 votes
0 answers
286 views

Spectrogram normalizaion to train a Fully Convolutional Model for Audio dereverberation

I'm trying to implement a deep learning based dereverberation algorithm. The network I am using is inspired by the U-net. The idea is to supply the reverberated spectrogram as input and 'clean' it ...
2 votes
1 answer
73 views

Understanding stability in frame theory. Wavelets

I'm trying to grasp some understanding of the concept of stability in the context of the frame theory. The definition of frame in ref1 states that a sequence of functions $\{ \phi_n \}_{n \in \Gamma}$ ...

1
2 3 4 5 6