Problemcore
Speaker diarization
Also called who spoke when, speaker segmentation and clustering.
Split an audio recording into segments by speaker and label segments of the same speaker alike, without knowing the speakers.
Speaker diarization answers the question "who spoke when" for a recording. It splits the audio into segments, each spoken by one person, and gives segments of the same person the same label. The labels are arbitrary: the system does not know the names of the speakers, and usually not their number. Diarization is a step in the transcription of meetings, calls and broadcasts, where it tells which words belong to which speaker.
In plain words
You have a recording of a meeting and no list of the people in it. Mark where each person talks, and use the same color for everything one person says. You do not need to know who the people are, only to keep them apart. Most systems first find where someone speaks, then cut the speech into short pieces, then group pieces that sound like the same voice.
Definition
The input is an audio recording of length . The output is a set of segments with labels from a set that the system chooses. Many systems assume one speaker at a time; others also mark overlapping speech, where a time can carry two labels.
The reference is a segmentation by people. A hypothesis is scored by the diarization error rate (DER). First map the hypothesis labels one to one to the reference labels so that the total time where the mapped labels agree is largest. This is an assignment problem, solved for example with the Hungarian algorithm. Then
where is reference speech with no hypothesis speaker, is hypothesis speech where the reference has none, is speech given to the wrong speaker after the mapping, and is the total reference speech time. With overlap, each time is weighted by the number of speakers. The DER can exceed 1, because false alarms are not bounded by the speech time. Lower is better.
Human boundaries are not exact to a few hundred milliseconds. So scoring often ignores a no-score collar around each reference boundary; 0.25 s on each side is a common value. Results with and without a collar, and with and without overlap, cannot be compared.
Variants
- Known or unknown number of speakers. With the number given (for example two in a phone call), clustering stops at that number. Otherwise the system must also estimate it.
- Overlap. In meetings, people often talk at once. Systems that assume one speaker at a time miss the second speaker in every overlap.
- Online diarization. The labels must come with a short delay, for live captions.
- Speaker-attributed recognition. The output is words with speaker labels, and the error counts words.
- Multichannel. Several microphones give the direction of the sound as a further cue.
Examples
- A DER by hand. The reference has speaker from 0 to 10 s and speaker from 10 to 20 s. The hypothesis has from 0 to 9 s, from 9 to 19 s and again from 21 to 22 s. The overlaps are , , and , so the best mapping is , . The errors are 1 s of confusion (9 to 10 s), 1 s of missed speech (19 to 20 s) and 1 s of false alarm (21 to 22 s). Without a collar, . With a collar of 0.25 s around the boundaries at 0, 10 and 20 s, the scored speech is s, the confusion and the miss shrink to 0.75 s each, and the false alarm stays 1 s, so .
- BIC change detection. Take the one-dimensional features (, ). For a split after frame , compare one Gaussian for all frames with one Gaussian per side:
with maximum likelihood variances and . This form, with the factor on both the likelihood term and the penalty, follows from the BIC. Chen and Gopalakrishnan write the likelihood term without the , so a value in their form equals in this one. For the values are , , , and . The largest value is at , and it is positive, so the method puts a change between the fourth and the fifth frame, where the mean jumps from about 0 to about 3.
Known algorithms
- Segmentation and clustering. Detect speech with voice activity detection. Find speaker changes, for example by the BIC test above (Chen and Gopalakrishnan 1998), a form of change-point detection. Then merge segments by agglomerative clustering, each time the closest pair, and stop when the BIC no longer improves. Tranter and Reynolds 2006 describe this design.
- Embeddings and clustering. Cut the speech into short overlapping windows (for example 1.5 s), compute an x-vector or i-vector per window, score pairs with PLDA or the cosine, and cluster with agglomerative or spectral clustering.
- Resegmentation. Refine the boundaries with a hidden Markov model whose states are the speakers, decoded by Viterbi or by variational Bayes.
- End-to-end neural diarization. A network outputs, for each frame, the probability that each speaker is active. It handles overlap, and it is trained with a loss that is invariant to the order of the speakers.
Bounds
- Scoring. With reference and hypothesis speakers, the mapping is an assignment problem on an matrix of overlap times, solved in time. The overlap times take one pass over the sorted segment boundaries.
- Clustering. Agglomerative clustering of segments takes scores and, with a priority queue, time. Finding the best partition for a general pairwise score is NP-hard in forms such as correlation clustering, so practical systems use greedy or spectral methods.
- Accuracy. DER values are measurements on a stated data set with a stated collar and overlap rule.
Reductions
- To speaker verification. Deciding whether two segments have the same speaker is a speaker verification trial, so the scores of verification systems serve as distances for clustering.
- To clustering. With a fixed segmentation, diarization is the clustering of segments with an unknown number of clusters.
- To change-point detection. Segmentation is change-point detection in the sequence of features.
- The metric to an assignment problem. The label mapping in the DER is a maximum weight bipartite matching.
Applications
Meeting transcription with speaker turns, call center analytics that separate the agent and the customer, the indexing of broadcast news and of podcasts, speaker adaptation in recognizers (the clusters give the speakers for MLLR or VTLN), and the study of conversation in medicine and linguistics.
References
- Sue E. Tranter and Douglas A. Reynolds, An overview of automatic speaker diarization systems, IEEE Transactions on Audio, Speech, and Language Processing 14(5), 2006, pages 1557 to 1565, the parts of a diarization system (speech detection, change detection, clustering) and the diarization error rate
- Xavier Anguera, Simon Bozonnet, Nicholas Evans, Corinne Fredouille, Gerald Friedland and Oriol Vinyals, Speaker diarization, a review of recent research, IEEE Transactions on Audio, Speech, and Language Processing 20(2), 2012, pages 356 to 370, the review of segmentation and clustering methods and of the evaluation
- Scott Shaobing Chen and P. S. Gopalakrishnan, Speaker, environment and channel change detection and clustering via the Bayesian information criterion, DARPA Broadcast News Transcription and Understanding Workshop, 1998, the change detection by the BIC difference of one Gaussian against two
- Jonathan G. Fiscus, Jerome Ajot, Martial Michel and John S. Garofolo, The Rich Transcription 2006 Spring meeting recognition evaluation, MLMI 2006, Lecture Notes in Computer Science 4299, pages 309 to 322, the speaker diarization task and its scoring
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag PMB4JR Edit this page History Report an error Markdown