Skip to content

Evaluation, diagnostics, benchmarks, and additional tests · Evaluation, diagnostics, benchmarks, and additional hypothesis tests · EVA040 · Metric

Scale-invariant signal-to-distortion ratio

Measures waveform reconstruction quality after projecting the estimate onto a reference signal.

Runs in CodeSplash Complete calculation CodeSplash's run and the reference's record

In CodeSplash

A CodeSplash method runs this entry in Python and R. Set it up from the method's page.

Do it in CodeSplash Run it on your own data, in Python or R.

Availability
Runs in CodeSplash
Code example
Complete calculation
Who ran it
CodeSplash's run and the reference's record
CodeSplash's run
Verified in Python and R through evaluate.separation. The reference's example ran in Python and R here, and they agree.
The reference's record
Python: Ran in the reference's review. The report doesn't record which version of the code ran. R: Reviewed but not run: R wasn't available to the reference's authors.

Purpose

Measures waveform reconstruction quality after projecting the estimate onto a reference signal.

Question / hypotheses

How large is the reference-aligned component relative to the remaining error, allowing a global gain difference?

Architecture / computational structure

A fixed scoring/calibration pipeline applied to model outputs or supplied observations; the formula and usage sections identify its operations.

Assumptions

Reference and estimate must be time-aligned with compatible sample rates. Declare zero-mean preprocessing, channel treatment, silence handling, and source-permutation matching.

Formula / computational definition

α=s^Ts∥s∥2,SI-SDR=10log⁡10∥αs∥2∥s^−αs∥2.\alpha=\frac{\hat s^Ts}{\|s\|^2},\quad SI\text{-}SDR=10\log_{10}\frac{\|\alpha s\|^2}{\|\hat s-\alpha s\|^2}.

Parameters and notation

s is reference, s-hat estimate. Epsilon stabilization, centering, and aggregation are implementation choices. No learned parameters belong to the metric.

Fitting, fine-tuning, and adaptation

There is no model fine-tuning step for this evaluation procedure. Freeze the evaluated systems and evaluator before the final test. Select evaluation settings on development data; if a learned evaluator or calibration model is adapted, use separate fitting data, version it, and reassess its validity.

How to use and calibrate

Evaluate each source after valid matching, report improvement over the input mixture, and include perceptual/intelligibility evaluation for the same utterances.

Example application

Compare source-separation systems trained on identical mixtures.

Interpretation / pitfalls

Watch out

Scale invariance can conceal gain errors. Time shifts may dominate the score, and high signal fidelity does not guarantee good perceived quality or intelligibility.

Python and R code examples

Scope: Mathematical calculation on synthetic inputs; not a complete benchmark pipeline.

Validation: Python — Executed successfully on synthetic inputs. R — reviewed but not executed in this environment. Python dependencies are explicit imports; R uses base R unless a package/bridge is explicitly named.

Python and R

The reference's own programs, shown as written. A component demo shows one central piece of the method; it doesn't train a full model.

Python

Complete calculation — Mathematical calculation on synthetic inputs; not a complete benchmark pipeline. · needs numpy

import numpy as np
s=np.array([1.,-1.,2.,-2.]); est=np.array([1.1,-.8,1.9,-2.1]); a=est@s/(s@s)
print(10*np.log10(np.sum((a*s)**2)/np.sum((est-a*s)**2)))
R

Complete calculation — Mathematical calculation on synthetic inputs; not a complete benchmark pipeline.

s <- c(1,-1,2,-2); est <- c(1.1,-.8,1.9,-2.1); a <- sum(est*s)/sum(s*s)
print(10*log10(sum((a*s)^2)/sum((est-a*s)^2)))

Sources

From the CodeSplash reference, entry EVA040.