0% found this document useful (0 votes)
2 views44 pages

Spectrogram - Wikipedia

A spectrogram is a visual representation of the spectrum of frequencies of a signal over time, commonly used in various fields such as music, linguistics, and speech processing. It can be generated through methods like Fourier transform and is typically displayed as a heat map, where color intensity indicates amplitude. Spectrograms have applications in analyzing audio signals, studying animal calls, and assisting in speech training for the deaf.

Uploaded by

Stuart
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views44 pages

Spectrogram - Wikipedia

A spectrogram is a visual representation of the spectrum of frequencies of a signal over time, commonly used in various fields such as music, linguistics, and speech processing. It can be generated through methods like Fourier transform and is typically displayed as a heat map, where color intensity indicates amplitude. Spectrograms have applications in analyzing audio signals, studying animal calls, and assisting in speech training for the deaf.

Uploaded by

Stuart
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Spectrogram

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.
:
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

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
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.

Spectrogram of this recording of a


violin playing. Note the harmonics
occurring at whole-number multiples
of the fundamental frequency.
:
3D surface spectrogram of a part
from a music piece.

Spectrogram of a male voice saying


'ta ta ta'.
:
Spectrogram of dolphin
vocalizations; chirps, clicks and
harmonizing are visible as inverted
Vs, vertical lines and horizontal
striations respectively.

Spectrogram of an FM signal. In this


case the signal frequency is
modulated with a sinusoidal
frequency vs. time profile.
:
frequency vs. time profile.

Spectrum above and waterfall


(Spectrogram) below of an 8MHz
wide PAL-I Television signal.

Spectrogram of great tit song.


:
Constant-Q spectrogram of a
gravitational wave (GW170817).

Spectrogram and waterfalls of 3


whistled notes.
:
Spectrogram of the soundscape
ecology of Mount Rainier National
Park, with the sounds of different
creatures and aircraft highlighted

Spectrogram (generated with the


:
freeware Sonogram visible Speech (
[Link]
Sonogram-Visible-Speech) ).

Variable-Q transform spectrogram of


a piano chord (generated using
FFmpeg's showcqt filter).
:
Sound spectrography of infrasound
recording 30301

Generation
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
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
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]
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.[21]
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.
[22]

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.[23]
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.[24]
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.[25]
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.[26]

See also
Acoustic signature
:
Acoustic signature
Chromagram
Fourier analysis for computing
periodicity in evenly spaced data
Generalized spectrogram
Least-squares spectral analysis
for computing periodicity in
unevenly spaced data
List of unexplained sounds
Reassignment method
Spectral music
Spectrometer
:
Strobe tuner
Waveform

References
1. JL Flanagan, Speech
Analysis, Synthesis and
Perception, Springer- Verlag,
New York, 1972
2. Sejdic, E.; Djurovic, I.;
Stankovic, L. (August 2008).
"Quantitative Performance
Analysis of Scalogram as
Instantaneous Frequency
:
Instantaneous Frequency
Estimator". IEEE Transactions
on Signal Processing. 56 (8):
3837–3845.
Bibcode:2008ITSP...56.3837
S ([Link]
du/abs/2008ITSP...56.3837
S) .
doi:10.1109/TSP.2008.9248
56 ([Link]
2FTSP.2008.924856) .
ISSN 1053-587X ([Link]
[Link]/issn/1053-5
87X) . S2CID 16396084 (htt
:
87X) . S2CID 16396084 (htt
ps://[Link]/
CorpusID:16396084) .
3. "Spectrograph" ([Link]
[Link]/sonic-studio/handboo
k/[Link]) .
[Link]. Retrieved 7 April
2018.
4. "Spectrograms" ([Link]
[Link]/~jos/mdft/S
[Link]) .
[Link].
Retrieved 7 April 2018.
:
5. "STFT Spectrograms VI – NI
LabVIEW 8.6 Help" ([Link]
[Link]/reference/en-XX/h
elp/371361E-01/lvanls/stft_s
pectrogram_core/#details) .
[Link]. Retrieved 7 April
2018.
6. "The Analysis & Resynthesis
Sound Spectrograph" (http://
[Link]) .
[Link].
Retrieved 7 April 2018.
7. Boashash, B. (1992).
:
7. Boashash, B. (1992).
"Estimating and interpreting
the instantaneous frequency
of a signal. I. Fundamentals".
Proceedings of the IEEE. 80
(4). Institute of Electrical and
Electronics Engineers (IEEE):
520–538.
doi:10.1109/5.135376 (http
s://[Link]/10.1109%2F5.135
376) . ISSN 0018-9219 (http
s://[Link]/issn/
0018-9219) .
:
8. "Heisenberg Uncertainty
Principle" ([Link]
[Link]/web/20190125182117/
[Link]
61/lectures/fourier/[Link]
ml) . Archived from the
original ([Link]
[Link]/e161/lectures/fourier/n
[Link]) on 2019-01-25.
Retrieved 2019-02-05.
9. "BIRD SONGS AND CALLS
WITH SPECTROGRAMS (
SONOGRAMS ) OF
:
SONOGRAMS ) OF
SOUTHERN TUSCANY (
Toscana – Italy )" ([Link]
[Link]/[Link]) .
[Link]. Retrieved
7 April 2018.
10. Saunders, Frank A.; Hill,
William A.; Franklin, Barbara
(1 December 1981). "A
wearable tactile sensory aid
for profoundly deaf children".
Journal of Medical Systems.
5 (4): 265–270.
:
doi:10.1007/BF02222144 (ht
tps://[Link]/10.1007%2FBF
02222144) . PMID 7320662
([Link]
gov/7320662) .
S2CID 26620843 ([Link]
[Link]/Corpus
ID:26620843) .
11. "Spectrogram Reading" (http
s://[Link]/web/199
90427185722/[Link]
[Link]/tutordemos/Spectr
ogramReading/spectrogram_
:
ogramReading/spectrogram_
[Link]) . [Link].
Archived from the original (ht
tp://[Link]/tutorde
mos/SpectrogramReading/sp
ectrogram_reading.html) on
27 April 1999. Retrieved
7 April 2018.
12. "Praat: doing Phonetics by
Computer" ([Link]
[Link]/praat/) .
[Link].
Retrieved 7 April 2018.
:
13. "The Aphex Face –
bastwood" ([Link]
[Link]/[Link]) .
[Link].
Retrieved 7 April 2018.
14. "SRC Comparisons" ([Link]
[Link]) .
[Link]. Retrieved
7 April 2018.
15. "[Link] –
constantwave Resources and
Information" ([Link]
[Link]/[Link])
:
[Link]/[Link])
. [Link].
Retrieved 7 April 2018.
16. "Spectrograms for vector
network analyzers" ([Link]
[Link]/web/2012081
0020043/[Link]
[Link]/spectro_vna.asp
x) . Archived from the original
([Link]
m/spectro_vna.aspx) on
2012-08-10.
17. "Real-time Spectrogram
:
17. "Real-time Spectrogram
Displays" ([Link]
[Link]/monitoring/spectr
ograms/24hr/) .
[Link].
Retrieved 7 April 2018.
18. "IRIS: MUSTANG: Noise-
Spectrogram: Docs: v. 1:
Help" ([Link]
u/mustang/noise-spectrogra
m/docs/1/help/) .
19. Geitgey, Adam (2016-12-
24). "Machine Learning is
:
Fun Part 6: How to do
Speech Recognition with
Deep Learning" ([Link]
[Link]/@ageitgey/machine-
learning-is-fun-part-6-how-t
o-do-speech-recognition-wit
h-deep-learning-28293c162
f7a) . Medium. Retrieved
2018-03-21.
20. See also Praat.
21. "What is a Spectrogram?" (ht
tps://[Link]/b
log/what-is-a-spectrogra
:
log/what-is-a-spectrogra
m/) . Retrieved 2023-12-18.
22. T., Arias-Vergara; P., Klumpp;
J. C., Vasquez-Correa; E.,
Nöth; J. R., Orozco-Arroyave;
M., Schuster (2021). "Multi-
channel spectrograms for
speech processing
applications using deep
learning methods" ([Link]
[Link]/10.1007%2Fs10044-02
0-00921-5) . Pattern
Analysis and Applications. 24
:
(2): 423–431.
doi:10.1007/s10044-020-
00921-5 ([Link]
007%2Fs10044-020-0092
1-5) .
23. Jia, Yanjie; Chen, Xi; Yu,
Jieqiong; Wang, Lianming;
Xu, Yuanzhe; Liu, Shaojin;
Wang, Yonghui (2021).
"Speaker recognition based
on characteristic
spectrograms and an
improved self-organizing
:
improved self-organizing
feature map neural network"
([Link]
40747-020-00172-1) .
Complex & Intelligent
Systems. 7 (4): 1749–1757.
doi:10.1007/s40747-020-
00172-1 ([Link]
007%2Fs40747-020-00172
-1) .
24. Yalamanchili, Arpitha;
Madhumathi, G. L.; Balaji, N.
(2022). "Spectrogram
analysis of ECG signal and
:
analysis of ECG signal and
classification efficiency using
MFCC feature extraction
technique" ([Link]
[Link]/article/10.1007/s1265
2-021-02926-2) . Journal of
Ambient Intelligence and
Humanized Computing. 13
(2): 757–767.
doi:10.1007/s12652-021-
02926-2 ([Link]
007%2Fs12652-021-02926
-2) . S2CID 233657057 (htt
:
ps://[Link]/
CorpusID:233657057) .
25. Ge, Junfeng; Wang, Li; Gui,
Kang; Ye, Lin (30 September
2023). "Temperature
interpretation method for
temperature indicating paint
based on spectrogram" (http
s://[Link]/s
cience/article/pii/S02632241
23008813) . Measurement.
219.
Bibcode:2023Meas..219133
:
Bibcode:2023Meas..219133
17G ([Link]
[Link]/abs/2023Meas..21913
317G) .
doi:10.1016/[Link].2
023.113317 ([Link]
0.1016%[Link].20
23.113317) .
S2CID 259871198 ([Link]
[Link]/Corpu
sID:259871198) .
26. Park, Cheolhyeong; Lee,
Deokwoo (11 February
:

You might also like