Hubbry Logo
SpectrogramSpectrogramMain
Open search
Spectrogram
Community hub
Spectrogram
logo
8 pages, 0 posts
0 subscribers
Be the first to start a discussion here.
Be the first to start a discussion here.
Spectrogram
Spectrogram
from Wikipedia
Spectrogram of the spoken words "nineteenth century". Frequencies are shown increasing up the vertical axis, and time on the horizontal axis. The legend to the right shows that the color intensity increases with the density.
A 3D spectrogram: The RF spectrum of a battery charger is shown over time

A spectrogram is a visual representation of the spectrum of frequencies of a signal as it varies with time. When applied to an audio signal, spectrograms are sometimes called sonographs, voiceprints, or voicegrams. When the data are represented in a 3D plot they may be called waterfall displays.

Spectrograms are used extensively in the fields of music, linguistics, sonar, radar, speech processing,[1] seismology, ornithology, and others. Spectrograms of audio can be used to identify spoken words phonetically, and to analyse the various calls of animals.

A spectrogram can be generated by an optical spectrometer, a bank of band-pass filters, by Fourier transform or by a wavelet transform (in which case it is also known as a scaleogram or scalogram).[2]

Scaleograms from the DWT and CWT for an audio sample

A spectrogram is usually depicted as a heat map, i.e., as an image with the intensity shown by varying the colour or brightness.

Format

[edit]

A common format is a graph with two geometric dimensions: one axis represents time, and the other axis represents frequency; a third dimension indicating the amplitude of a particular frequency at a particular time is represented by the intensity or color of each point in the image.

There are many variations of format: sometimes the vertical and horizontal axes are switched, so time runs up and down; sometimes as a waterfall plot where the amplitude is represented by height of a 3D surface instead of color or intensity. The frequency and amplitude axes can be either linear or logarithmic, depending on what the graph is being used for. Audio would usually be represented with a logarithmic amplitude axis (probably in decibels, or dB), and frequency would be linear to emphasize harmonic relationships, or logarithmic to emphasize musical, tonal relationships.

Sound spectrography of infrasound recording 30301

Generation

[edit]

Spectrograms of light may be created directly using an optical spectrometer over time.

Spectrograms may be created from a time-domain signal in one of two ways: approximated as a filterbank that results from a series of band-pass filters (this was the only way before the advent of modern digital signal processing), or calculated from the time signal using the Fourier transform. These two methods actually form two different time–frequency representations, but are equivalent under some conditions.

The bandpass filters method usually uses analog processing to divide the input signal into frequency bands; the magnitude of each filter's output controls a transducer that records the spectrogram as an image on paper.[3]

Creating a spectrogram using the FFT is a digital process. Digitally sampled data, in the time domain, is broken up into chunks, which usually overlap, and Fourier transformed to calculate the magnitude of the frequency spectrum for each chunk. Each chunk then corresponds to a vertical line in the image; a measurement of magnitude versus frequency for a specific moment in time (the midpoint of the chunk). These spectrums or time plots are then "laid side by side" to form the image or a three-dimensional surface,[4] or slightly overlapped in various ways, i.e. windowing. This process essentially corresponds to computing the squared magnitude of the short-time Fourier transform (STFT) of the signal — that is, for a window width , .[5]

Limitations and resynthesis

[edit]

From the formula above, it appears that a spectrogram contains no information about the exact, or even approximate, phase of the signal that it represents. For this reason, it is not possible to reverse the process and generate a copy of the original signal from a spectrogram, though in situations where the exact initial phase is unimportant it may be possible to generate a useful approximation of the original signal. The Analysis & Resynthesis Sound Spectrograph[6] is an example of a computer program that attempts to do this. The pattern playback was an early speech synthesizer, designed at Haskins Laboratories in the late 1940s, that converted pictures of the acoustic patterns of speech (spectrograms) back into sound.

In fact, there is some phase information in the spectrogram, but it appears in another form, as time delay (or group delay) which is the dual of the instantaneous frequency.[7]

The size and shape of the analysis window can be varied. A smaller (shorter) window will produce more accurate results in timing, at the expense of precision of frequency representation. A larger (longer) window will provide a more precise frequency representation, at the expense of precision in timing representation. This is an instance of the Heisenberg uncertainty principle, that the product of the precision in two conjugate variables is greater than or equal to a constant (B*T>=1 in the usual notation).[8]

Applications

[edit]
  • Early analog spectrograms were applied to a wide range of areas including the study of bird calls (such as that of the great tit), with current research continuing using modern digital equipment[9] and applied to all animal sounds. Contemporary use of the digital spectrogram is especially useful for studying frequency modulation (FM) in animal calls. Specifically, the distinguishing characteristics of FM chirps, broadband clicks, and social harmonizing are most easily visualized with the spectrogram.
  • Spectrograms are useful in assisting in overcoming speech deficits and in speech training for the portion of the population that is profoundly deaf.[10]
  • The studies of phonetics and speech synthesis are often facilitated through the use of spectrograms.[11][12]
  • In deep learning-keyed speech synthesis, spectrogram (or spectrogram in mel scale) is first predicted by a seq2seq model, then the spectrogram is fed to a neural vocoder to derive the synthesized raw waveform.
  • By reversing the process of producing a spectrogram, it is possible to create a signal whose spectrogram is an arbitrary image. This technique can be used to hide a picture in a piece of audio and has been employed by several electronic music artists.[13] See also Steganography.
  • Some modern music is created using spectrograms as an intermediate medium; changing the intensity of different frequencies over time, or even creating new ones, by drawing them and then inverse transforming. See Audio timescale-pitch modification and Phase vocoder.
  • Spectrograms can be used to analyze the results of passing a test signal through a signal processor such as a filter in order to check its performance.[14]
  • High definition spectrograms are used in the development of RF and microwave systems.[15]
  • Spectrograms are now used to display scattering parameters measured with vector network analyzers.[16]
  • The US Geological Survey and the IRIS Consortium provide near real-time spectrogram displays for monitoring seismic stations.[17][18]
  • Spectrograms can be used with recurrent neural networks for speech recognition.[19][20]
  • Individuals' spectrograms are collected by the Chinese government as part of its mass surveillance programs.[21]
  • For a vibration signal, a spectrogram's color scale identifies the frequencies of a waveform's amplitude peaks over time. Unlike a time or frequency graph, a spectrogram correlates peak values to time and frequency. Vibration test engineers use spectrograms to analyze the frequency content of a continuous waveform, locating strong signals and determining how the vibration behavior changes over time.[22]
  • Spectrograms can be used to analyze speech in two different applications: automatic detection of speech deficits in cochlear implant users and phoneme class recognition to extract phone-attribute features.[23]
  • In order to obtain a speaker's pronunciation characteristics, some researchers proposed a method based on an idea from bionics, which uses spectrogram statistics to achieve a characteristic spectrogram to give a stable representation of the speaker's pronunciation from a linear superposition of short-time spectrograms.[24]
  • Researchers explore a novel approach to ECG signal analysis by leveraging spectrogram techniques, possibly for enhanced visualization and understanding. The integration of MFCC for feature extraction suggests a cross-disciplinary application, borrowing methods from audio processing to extract relevant information from biomedical signals.[25]
  • Accurate interpretation of temperature indicating paint (TIP) is of great importance in aviation and other industrial applications. 2D spectrogram of TIP can be used in temperature interpretation.[26]
  • The spectrogram can be used to process the signal for the rate of change of the human thorax. By visualizing respiratory signals using a spectrogram, the researchers have proposed an approach to the classification of respiration states based on a neural network model.[27]

See also

[edit]

References

[edit]
[edit]
Revisions and contributorsEdit on WikipediaRead on Wikipedia
from Grokipedia
A spectrogram is a two-dimensional visual representation depicting the spectrum of frequencies in a signal as it evolves over time, with intensity or color encoding the signal's amplitude or power at each frequency-time coordinate. Typically computed as the squared magnitude of the short-time Fourier transform (STFT), it divides the signal into short, overlapping windows, applies the Fourier transform to each, and plots the results to capture local spectral characteristics of non-stationary signals. This method trades off time and frequency resolution due to the fixed window size inherent in the STFT, though alternatives like wavelet transforms offer variable resolution for specific applications. Originating from the sound spectrograph invented in 1946 by Ralph K. Potter, Waldo E. Koenig Jr., and H. C. Lacey at Bell Laboratories for speech analysis, spectrograms initially supported phonetic research and military communications during World War II. They have since become essential in diverse domains, including audio engineering for identifying harmonics and formants, vibration analysis for fault detection, and radar for signal classification, providing intuitive insights into transient spectral events that waveform or static spectra alone obscure.

Fundamentals

Definition and Mathematical Foundation

A spectrogram provides a visual depiction of a signal's spectrum evolving over time, with the horizontal axis representing time, the vertical axis , and color or intensity encoding the of spectral components, often on a such as decibels. Mathematically, the spectrogram of a signal x(t)x(t) is the squared magnitude of its (STFT), yielding a time-frequency :
spectrogram(t,ω)=STFT(t,ω)2.\mathrm{spectrogram}(t, \omega) = \left| \mathrm{STFT}(t, \omega) \right|^2.
For a continuous-time signal x(t)x(t), the STFT is defined as
STFT(t,f)=x(τ)w(tτ)ej2πfτdτ,\mathrm{STFT}(t, f) = \int_{-\infty}^{\infty} x(\tau) \, w(t - \tau) \, e^{-j 2\pi f \tau} \, d\tau,
where w()w(\cdot) is a —typically real-valued and concentrated near zero—to restrict the to a short interval around time tt, and ff denotes in hertz. Variations may include a complex conjugate on the window for analytic representations or ω=2πf\omega = 2\pi f.
This formulation arises from applying the Fourier transform locally in time, balancing the global frequency resolution of the full Fourier transform with temporal localization. The window w(t)w(t) determines the trade-off: its duration inversely affects frequency resolution via the Fourier uncertainty principle, as narrower windows yield broader spectral spreads. In discrete implementations, the integral becomes a summation over samples, with the exponential evaluated at discrete frequencies via the discrete Fourier transform. The resulting spectrogram thus quantifies local power spectral density, enabling analysis of non-stationary signals where frequency content varies causally with time.

Physical and Causal Interpretation

The spectrogram physically represents the local of a signal in the time-frequency plane, where the horizontal axis denotes time, the vertical axis denotes (in hertz, corresponding to oscillation cycles per second), and the color or at each point quantifies the signal's power or squared at that around that time. For acoustic signals, this maps to the distribution of kinetic and in air oscillations, with brighter regions indicating higher-intensity vibrations at specific rates driven by the sound source. The underlying (STFT) decomposes the signal into overlapping windowed segments, each analyzed for sinusoidal components, yielding a physically interpretable approximation of how frequency-specific evolves, limited by the Heisenberg-Gabor that trades time resolution for frequency resolution based on window length. Causally, spectrogram features arise from the physical mechanisms generating the signal, such as periodic forcing in oscillatory systems producing sustained energy concentrations at resonant frequencies. In string instruments, for example, horizontal bands at integer multiples of the reflect standing wave modes excited by the string's vibration, where the fundamental determines pitch via length, tension, and mass density per the wave equation v=T/μv = \sqrt{T/\mu}
Add your contribution
Related Hubs
User Avatar
No comments yet.