Skip to content

Lab: a distortionless beam and a loud interferer

The specialist-sequences chapter's second lab. Build MVDR weights for a six-microphone array, check that the target passes unchanged, and compare their rejection of a loud interferer with delay-and-sum.

Advanced ~22 min6 steps

What runs in CodeSplash

You will be able to

  • Build steering vectors for a uniform line array
  • Compute MVDR weights by solving a linear system and check the distortionless constraint
  • Compare an interferer's level after MVDR and after delay-and-sum
  • Name what breaks MVDR in practice

Read first

01

The question

Read

A beamformerBeamformingWeighting and adding several microphones so sound from one direction adds up and sound from other directions cancels. combines several microphones so sound from one direction passes and sound from others is reduced. MVDRMVDR beamformerPasses the target direction unchanged while making the total noise power as small as possible, from speech and noise covariances. picks the weights with the least output power, under the constraint that the target direction passes with gain exactly one. How much better does it reject a loud talker off to the side than plain delay-and-sum, which only lines up the target? The lab answers with an exact covariance for six microphones.

02

Explore it

Explore

DExplorable · Beamforming: delay-and-sum, MVDR and a misaimed beam

How can a row of microphones listen to one talker and tune out another?

With these settings, what happens to the talker's level at the output?

How sure?
8

Microphones in a straight row. More of them give a narrower beam and more nulls to place.

0.50

Gap between neighbors in wavelengths. Above one half, copies of the beam (grating lobes) appear.

0

Where the wanted talker is, in degrees from straight ahead.

35

Where the unwanted sound comes from.

20

How loud the interferer is at each microphone, relative to the sensor noise.

0

How loud the talker is at each microphone, relative to the sensor noise.

Beamformer

Delay-and-sum lines the microphones up toward the talker; MVDR also uses the measured covariance to cancel what it hears from elsewhere.

Covariance

Noise and interference only (known silent moments), or everything the array hears, the talker included.

0.0

How far the assumed talker direction is from the true one.

0.0

Adds this much white noise to the covariance before inverting: a robustness fix that shallows the nulls.

talkerinterferer−2.4 dBDelay-and-sum9.0 dBAs set9.0 dBIdeal MVDR

Orange dot: the direction the beam was told to keep at 0 dB. Gains below −60 dB are drawn at −60. Bars below zero are drawn flat; read their numbers.

Commit your prediction above to see the result

Make your prediction first; the figure appears when you commit.

Make your prediction to see the result.

Move the interferer and watch the beam pattern: delay-and-sum keeps the same pattern wherever the interferer is, while MVDR places a null on it. Press Break it to give MVDR a slightly wrong target direction and watch it start canceling the target.

03

Do it yourself

Explore

The notebook builds the steering vectors and the covariance, solves for the MVDR weights, checks the target's gain, and compares the interferer's level in decibels for MVDR and delay-and-sum.

Notebook exercise · ~12 min

A distortionless beam and a loud interferer

Build MVDR weights for a six-microphone array, check they pass the target direction unchanged, and compare their interferer rejection with delay-and-sum.

  1. MVDR weights pass the target unchanged

    MVDR weights are w = R⁻¹ a / (aᴴ R⁻¹ a), with a the target's steering vector a_s. Compute them (solve a linear system rather than inverting R) and store the size of the output for the target, |wᴴ a_s|, in gain_target.

    Show a solution
    Python
    Ri_a = np.linalg.solve(R, a_s)
    w = Ri_a / np.vdot(a_s, Ri_a)
    gain_target = abs(np.vdot(w, a_s))
    R
    Ri_a <- solve(R, a_s)
    w <- Ri_a / sum(Conj(a_s) * Ri_a)
    gain_target <- Mod(sum(Conj(w) * a_s))
  2. How much of the interferer gets through

    Store the MVDR output for the interferer in decibels, db(wᴴ a_i), in mvdr_db.

    Show a solution
    Python
    mvdr_db = db(np.vdot(w, a_i))
    R
    mvdr_db <- db(sum(Conj(w) * a_i))
  3. Compare with delay-and-sum

    Delay-and-sum ignores the covariance: w = a_s / M. It also passes the target with gain one. Store its output for the interferer in decibels in das_db.

    Show a solution
    Python
    das_db = db(np.vdot(a_s / M, a_i))
    R
    das_db <- db(sum(Conj(a_s / M) * a_i))

In the app this opens as a Python or R notebook with the sample data, and its checks mark your progress.

04

Where it stands in CodeSplash

Read

CodeSplash loads audio files but not multichannel array recordings with known geometry, so beamforming runs in the notebook only: Needs a data type CodeSplash doesn't load yet. The neural mask-based form in the reference estimates the covariances from a network's speech and noise masks.

Reference · SEQ006 · Needs a data type CodeSplash doesn't load yetNeural mask-based MVDR beamformingA hybrid multichannel speech system in which neural time–frequency masks estimate speech/noise spatial statistics and a minimum-variance distortionless beamformer combines microphone signals.
05

Check: the lab

Checkpoint

Check yourself

What does the distortionless constraint guarantee?

Show the answer

Answer: a

MVDR minimizes output power subject to wᴴa = 1 for the target's steering vector a, so the target is untouched and everything else is reduced as far as possible.

Check yourself

Your steering vector points a few degrees away from the real target. What can MVDR do?

Show the answer

Answer: a

MVDR suppresses whatever isn't in the constrained direction. A mismatch makes the real target look like interference; diagonal loading and better direction estimates reduce the damage.

06

Recap

Recap
  • MVDR: w = R⁻¹a / (aᴴR⁻¹a); solve the system rather than inverting R.
  • It passes the target exactly and nulls a strong interferer far below delay-and-sum.
  • It depends on an accurate steering vector and covariance; a better beam pattern still needs its own recognition test.

Concepts in this lesson