Help - Search - Members - Calendar
Full Version: Distortion statistical measure
Hydrogenaudio Forums > Hydrogenaudio Forum > Scientific Discussion
Ginswich
Hello everybody,

I'd like to measure the distortion introduced in a wave file after compression & decompression. For doing so, as they (the original and the comp & decomp files) must have the same number of samples, I'm calculating the Euclidean distance between the original wave file and the compressed & decompressed one, sample by sample. But I'd like to know if there is a better measure for this purpose.

Thank you.

PS: Of course, I mean compressing with any lossy audio codec.
kdo
QUOTE (Ginswich @ Sep 8 2009, 14:37) *
I'd like to measure the distortion introduced in a wave file after compression & decompression. For doing so, as they (the original and the comp & decomp files) must have the same number of samples, I'm calculating the Euclidean distance between the original wave file and the compressed & decompressed one, sample by sample. But I'd like to know if there is a better measure for this purpose.


You were right in your suspicion that a simple Euclidean distance might not be the best measure of audio quality. In fact, it is the worst.

Since lossy codecs are designed to reproduce the sound of the audio transparently to a human ear (instead of just mathematically approximating the source waveform), they are based on psycho-acoustic principles. So the measure of distortion must also be based on psychoacoustics of human hearing. You need a measure of "psycho-acoustic distance".

A well known example of such quality evaluation algorithm is EAQUAL.

However, there is a catch. Such evaluation algorithms can be appiled only to a codec that uses an inferior psycho-acoustic model. Only then the evaluation would make sense. For example, one could take a highly tuned version of EAQUAL and use it on some very low bitrate lossy codec.

But once you develop a highly tuned psycho-acoustic model for your evaluation algorithm, you may just as well build a new lossy codec using this model, and your own evaluation algorithm becomes useless for this improved codec.

At the moment, the best tuned psycho-acoustic models are incorporated into existing lossy codecs.
So we are left with the only ultimate measure of lossy codec quality - double blind listening tests by human subjects, such as ABX or ABC/HR and similar.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.