AI Logic

Evaluation Metrics

Perceptual Evaluation of Speech Quality (PESQ)

Updated:

The PESQ computation. Left: the flow in which the reference and degraded speech each go through level alignment, an input filter, time alignment, and conversion to an auditory representation (STFT, Bark bands, loudness); symmetric and asymmetric disturbances are computed from the loudness difference, aggregated over time into the raw PESQ (4.5 − 0.1 d_sym − 0.0309 d_asym), and mapped to MOS-LQO. Right: the narrowband (P.862.1) and wideband (P.862.2) mapping curves from raw PESQ (−0.5 to 4.5) to MOS-LQO, with end points of about 1.02 and 1.04 and 4.55 and 4.64

Background and overview

PESQ (Perceptual Evaluation of Speech Quality) is an evaluation metric that compares clean speech before degradation (the reference) with speech that has passed through transmission, coding, noise reduction, or similar processing, using a model that imitates human hearing, and predicts the quality score a listener would give (MOS). A larger value means the predicted listening quality is better.

PESQ was proposed by Rix et al. in 2001 and became ITU-T Recommendation P.862 in the same year. It was originally a way to measure the quality of telephone networks and speech coding (codecs) without running listening tests with human subjects. Today it is also widely used to evaluate deep-learning-based speech enhancement (noise removal) and speech separation.

The final step of the computation converts the magnitudes of two kinds of "disturbance" into a score with the following formula.

PESQ=4.5−0.1 dsym−0.0309 dasym\mathrm{PESQ} = 4.5 - 0.1\, d_{\mathrm{sym}} - 0.0309\, d_{\mathrm{asym}}

dsymd_{\mathrm{sym}} is the size of the perceptual difference between the reference and the degraded speech, and dasymd_{\mathrm{asym}} is the size of the difference caused specifically by added components that were not in the original. With no difference the score is the maximum of 4.5, and it drops as the difference grows. This "raw PESQ" ranges from −0.5 to 4.5, and the value mapped onto the MOS scale by a further formula (MOS-LQO) is often what gets reported.

The figure at the top shows the computation flow (left) and the two mapping curves from raw PESQ to MOS-LQO (right).

Definition and computation steps

PESQ is computed roughly in the following steps. The standard also includes finer corrections not covered here (such as recomputing bad intervals).

  1. Level alignment: The loudness of the reference and degraded speech is normalized to a fixed level, so that a mere difference in volume is not judged as a loss of quality.
  2. Input filtering: A filter that imitates the frequency response heard through a telephone handset is applied to both. Narrowband PESQ assumes telephone listening that strongly attenuates everything outside 300–3100 Hz, and wideband PESQ assumes listening over 50–7000 Hz.
  3. Time alignment: Since speech can be delayed in a channel, and the delay can change partway through, the two signals are matched to align the timing of each interval.
  4. Conversion to an auditory representation: The signal is split into frequencies with a short-time Fourier transform and grouped into bands on the Bark scale (49 bands), which matches human hearing. After the frequency response of the reference is matched to the degraded speech and frame-by-frame gain fluctuations of the degraded speech are compensated, the result is converted to perceived loudness with Zwicker's law.
  5. Computing disturbances: For each frame and band, the difference between the two loudness values is taken, and small differences (up to 0.25 times the smaller of the two) are treated as inaudible and set to 0. From this difference, a symmetric disturbance and an asymmetric disturbance, which weights heavily the case where components not in the original have been added to the degraded speech, are computed for each frame.
  6. Aggregation over time: A mean of 6th powers (L6 norm) is taken over every 20 frames to emphasize large disturbances in short intervals, and these are combined over the whole signal with a mean of squares (L2 norm) to obtain dsymd_{\mathrm{sym}} and dasymd_{\mathrm{asym}}.
  7. Scoring: The raw PESQ is computed with the formula above and, if needed, mapped to MOS-LQO.

In the ITU reference implementation, the mapping to MOS-LQO is the following (xx is the raw PESQ).

Narrowband (P.862.1): 0.999+41+e−1.4945x+4.6607,Wideband (P.862.2): 0.999+41+e−1.3669x+3.8224\text{Narrowband (P.862.1)}: \ 0.999 + \frac{4}{1 + e^{-1.4945 x + 4.6607}}, \qquad \text{Wideband (P.862.2)}: \ 0.999 + \frac{4}{1 + e^{-1.3669 x + 3.8224}}

As shown on the right of the figure at the top, both are S-shaped curves: raw values from −0.5 to 4.5 map to about 1.02–4.55 for narrowband and about 1.04–4.64 for wideband. Wideband PESQ (P.862.2) can only be used for signals sampled at 16 kHz, and it outputs only MOS-LQO, not a raw value.

The asymmetric disturbance is obtained by multiplying the difference by the factor ((Bdeg+50)/(Bref+50))1.2\left( (B_{\mathrm{deg}} + 50) / (B_{\mathrm{ref}} + 50) \right)^{1.2} (BB is the power in a Bark band; the factor is set to 0 if below 3 and to 12 if above 12). Because it weights the difference heavily only when the degraded speech is larger in that band, that is, when components not in the original have been added, the score can distinguish degradations that add noise or coding distortion from degradations in which part of the speech is lost.

What it measures and its limitations

PESQ converts the reference and degraded speech into how they sound at the ear (loudness) and measures how different they sound, then aligns the result with the scale of listener ratings. Unlike SI-SDR, which compares waveforms directly, it gives little weight to errors at hard-to-hear frequencies and to small differences that cannot be distinguished.

On the other hand, it has the following limitations.

  • Designed for telephone speech: The input filter assumes telephone-handset listening, so it is not suited to music or to high-quality speech with a bandwidth wider than the telephone band. Torcoli et al. note that PESQ's correlation with perceived quality falls short of newer metrics.
  • Requires a clean reference: Because it compares against reference speech (full-reference), it cannot be used on real recordings where no ground-truth speech exists.
  • Does not measure intelligibility: It predicts quality (how pleasant the speech is to listen to); whether the words can be understood is measured separately with STOI.
  • The recommendation has been withdrawn: PESQ was superseded by POLQA (P.863), and the recommendation was withdrawn (Torcoli et al. date this to 2018; the ITU page states that P.862 and its related recommendations were deleted on January 5, 2024, and directs readers to P.863). Even so, because implementations are easy to obtain, it is still widely used in research.

Values labeled "PESQ" come in several versions and cannot be compared as they are. There is the narrowband raw value (P.862), the narrowband MOS-LQO mapped from it (P.862.1), the wideband MOS-LQO (P.862.2), and also a wideband version fixed by the 2018 corrigendum (Corrigendum 2). Papers should always state "wideband or narrowband", "raw value or MOS-LQO", and "the implementation used", and these should be matched when comparing with prior work.

Differences between versions and implementations

Torcoli et al. (2025) examined how PESQ values differ across versions and implementations on the same 240 speech clips (the Open Dataset of Audio Quality). The baseline was wideband P.862.2 from the ITU reference implementation (the version without the corrigendum).

Compared againstDifference from baseline (RMSE)Maximum difference
Narrowband raw PESQ (P.862, 16 kHz)0.621.82
Narrowband MOS-LQO (P.862.1, 16 kHz)0.610.92
Wideband with the corrigendum applied0.561.30
ludlows/PESQ (Python pesq) wideband0.030.10
audiolabs/torch-pesq (differentiable approximation)0.150.84

Narrowband and wideband differ by about 0.4 on average, and applying the corrigendum or not also makes a difference of about 0.44 on average, which shows that values cannot be compared unless the version is matched. The corrigendum acknowledged that the coefficients of the wideband filter were wrong, causing listener ratings to be predicted about 0.8 too low on average. However, most public implementations do not apply the corrigendum, and the version without it has become the de facto standard in research.

In the same paper, on two datasets (stereo audio) in which listeners rated the quality of speech enhancement processing, the correlation between PESQ and listener ratings (Pearson correlation coefficient) was 0.73–0.85.

Where it is used

PESQ is mainly used in the following settings.

  • Evaluating speech enhancement (noise removal): It measures the quality of denoised speech by comparing it with clean speech. It is common to report it alongside SI-SDR and STOI.
  • Evaluating speech coding and transmission: This is its original purpose. It estimates how quality changes when codec or channel settings are changed, without gathering listeners.
  • Training objective and validation: Some studies use PESQ as a training objective or a validation metric. Since PESQ itself is not differentiable, they use differentiable implementations that approximate the computation (such as torch-pesq), approximate losses (Kim et al., 2019), or networks that predict PESQ (MetricGAN, Fu et al., 2019).

Maximizing PESQ directly during training risks raising only the PESQ value without a matching improvement in perceived quality (the Goodhart's law problem: when a measure becomes a target, it ceases to be a good measure). When PESQ is used in training, results should also be checked with other metrics not used in training and with listener MOS.

Comparison with similar metrics

Four metrics that measure speech quality and intelligibility are compared from the same viewpoints.

MetricReference speechWhat it measuresRange and directionHow it is computed
SI-SDRRequired (full-reference)Waveform distortion (energy ratio of the target-signal component to everything else)dB, unbounded; higher is betterInner products and energies
PESQRequired (full-reference)Perceived quality (degradation as heard as telephone speech)Raw value −0.5 to 4.5; about 1.0 to 4.6 when mapped to MOS-LQO; higher is betterComparison with an auditory model
STOIRequired (full-reference)Intelligibility (whether words can be understood)−1 to 1 by formula, about 0 to 1 in practice; higher is betterCorrelation of envelopes over short segments
MOSNot required (for ACR, where listeners rate one clip at a time)Subjective quality (the impression of human listeners)1 to 5; higher is betterAverage of listener ratings

Rough guidelines for choosing:

  • Comparing with prior work on speech enhancement or separation: It is common to compute wideband PESQ (16 kHz, P.862.2) with the same implementation as prior work, and to report SI-SDR and STOI as well.
  • Telephone-band (8 kHz) speech: Use narrowband PESQ (MOS-LQO from P.862.1).
  • To know whether words can be understood: Use STOI rather than PESQ. Quality (how pleasant it is to listen to) and intelligibility (whether words can be understood) are different properties.
  • Final quality judgment: PESQ is only a prediction of listener ratings, so for decisive claims about a product or in a paper, run a MOS test with listeners.
  • No reference speech: PESQ cannot be used. Use MOSNet, UTMOS, or similar models that predict MOS without a reference.

PyTorch example

Show code
python
import torch
import torchaudio.functional as AF
from torchmetrics.audio import PerceptualEvaluationSpeechQuality

# torchmetrics' PESQ internally calls the pesq package (a wrapper of the ITU reference implementation) on the CPU. Requires pip install pesq.
# fs must be 8000 or 16000. mode is 'wb' (wideband, P.862.2) or 'nb' (narrowband, P.862.1).
# 'wb' only works at 16 kHz (the pesq package raises an error for fs=8000 with 'wb').
# In either mode, the returned value is MOS-LQO, not raw PESQ (about 1.02-4.55 for narrowband, about 1.04-4.64 for wideband).
wb_pesq = PerceptualEvaluationSpeechQuality(fs=16000, mode="wb")
nb_pesq = PerceptualEvaluationSpeechQuality(fs=8000, mode="nb")

model.eval()
with torch.no_grad():
  enhanced = model(noisy)  # (batch, time), waveform at sampling rate orig_fs

# If processing at 48 kHz or similar, resample to 16 kHz (8 kHz for narrowband) before evaluation
enhanced_16k = AF.resample(enhanced, orig_freq=orig_fs, new_freq=16000)
clean_16k = AF.resample(clean, orig_freq=orig_fs, new_freq=16000)
print(wb_pesq(enhanced_16k, clean_16k))  # Arguments are (speech to evaluate, reference). Batch mean

clean_8k = AF.resample(clean, orig_freq=orig_fs, new_freq=8000)
enhanced_8k = AF.resample(enhanced, orig_freq=orig_fs, new_freq=8000)
print(nb_pesq(enhanced_8k, clean_8k))

# When using the pesq package directly, the argument order is (fs, reference, speech to evaluate, mode), the reverse of torchmetrics
from pesq import pesq

score = pesq(16000, clean_16k[0].numpy(), enhanced_16k[0].numpy(), "wb")

FAQ

Q. Is the range of PESQ −0.5 to 4.5, or 1 to 4.5?
A.

It depends on which version of the value is meant. The raw PESQ produced at the end of the standard's computation ranges from −0.5 to 4.5. The MOS-LQO, which maps it onto the MOS scale, ranges from about 1.02 to 4.55 for narrowband (P.862.1) and about 1.04 to 4.64 for wideband (P.862.2). The Python pesq package and torchmetrics return MOS-LQO, so papers should state clearly which one is reported.

Q. Should I use 'wb' or 'nb'?
A.

For 16 kHz speech enhancement and speech separation, wideband 'wb' (P.862.2) is the norm. For 8 kHz speech that assumes the telephone band, use 'nb' (P.862.1). 'wb' can only be computed at 16 kHz. The two values can differ by about 0.4 on average, so match whichever one prior work used.

Q. If PESQ is high, does that mean the audio quality is good to human listeners?
A.

Broadly they correspond, but there is no guarantee. PESQ is a prediction that assumes telephone speech, and its correlation with listener ratings is not perfect. In particular, models trained with PESQ as the objective can raise only the value. For the final judgment, run a listener MOS test.

References

  1. Rix, A. W., Beerends, J. G., Hollier, M. P., & Hekstra, A. P. (2001). Perceptual evaluation of speech quality (PESQ) – a new method for speech quality assessment of telephone networks and codecs. ICASSP 2001, pp. 749–752.
  2. ITU-T Recommendation P.862 (2001). Perceptual evaluation of speech quality (PESQ).
  3. Torcoli, M., Halimeh, M. M., & Habets, E. A. P. (2025). Navigating PESQ: Up-to-Date Versions and Open Implementations. arXiv:2505.19760.
  4. Kim, J., El-Khamy, M., & Lee, J. (2019). End-to-End Multi-Task Denoising for joint SDR and PESQ Optimization. arXiv:1901.09146.
  5. ludlows/PESQ (Python wrapper of the ITU reference implementation; pesq on PyPI).
  6. Lightning AI. torchmetrics.audio.PerceptualEvaluationSpeechQuality (API reference).
  7. ANSI-C reference implementation of ITU-T P.862 Annex A (C source bundled with ludlows/PESQ; used to verify the PESQ formula coefficients, the asymmetry factor, and the mapping to MOS-LQO).
  8. Hu, Y., & Loizou, P. C. (2008). Evaluation of Objective Quality Measures for Speech Enhancement. IEEE Transactions on Audio, Speech, and Language Processing, 16(1), 229–238.
  9. Fu, S.-W., Liao, C.-F., Tsao, Y., & Lin, S.-D. (2019). MetricGAN: Generative Adversarial Networks based Black-box Metric Scores Optimization for Speech Enhancement. ICML 2019. arXiv:1905.04874.