KT-Speech-Crawler: Automatic Dataset Construction for Speech Recognition from YouTube Videos

Egor Lakomkin, Sven Magg, Cornelius Weber, Stefan Wermter

Abstract

Modern end-to-end Automatic Speech Recognition (ASR) systems require thousands of hours of high-quality transcribed audio to achieve human-level performance. Manually curating such datasets is labor-intensive and expensive. This paper introduces KT-Speech-Crawler, an open-source tool designed to automatically harvest and validate speech data from YouTube. By leveraging user-provided closed captions and a "teacher" validation step using the Google ASR API, the system can collect approximately 150 hours of high-quality transcribed speech per day. Experiments show that augmenting existing datasets with this crawled data significantly reduces Word Error Rates (WER), with improvements of up to 42% on the Wall Street Journal benchmark.

1. Introduction

Deep learning models for ASR, such as DeepSpeech, are notoriously data-hungry. While the internet, particularly YouTube, offers a near-infinite supply of audio, most of it is unsuitable for training due to background noise, overlapping speakers, or inaccurate transcriptions. Traditional methods for dataset creation involve manual transcription or complex word-level alignment, which are difficult to scale. KT-Speech-Crawler addresses this by automating the extraction of "clean" speech segments from the "noisy" environment of public video platforms.

2. Methodology

The KT-Speech-Crawler employs a multi-stage filtering pipeline to ensure the quality of the collected data.

The KT-Speech-Crawler pipeline, illustrating the filtering stages from initial search to neural network training.

The process begins with candidate selection via the YouTube Search API, targeting videos with user-uploaded closed captions. Heuristic filters then remove segments with overlapping captions, non-ASCII characters, or music tags. To ensure alignment and language accuracy, the system validates a random subset of phrases against the Google ASR API. If the similarity score is below 70%, the entire video is discarded. Finally, forced alignment using Kaldi is applied to refine audio boundaries, adding a small buffer to prevent word clipping.

3. Evaluation and Results

The effectiveness of the crawled data was evaluated using a DeepSpeech 2-style architecture, consisting of 1D convolutional layers followed by bidirectional Gated Recurrent Units (GRUs).

The neural network architecture used for evaluation, featuring Conv1d layers and multiple GRU layers.

The researchers tested the impact of augmenting two standard benchmarks: the Wall Street Journal (WSJ) and TED-LIUM v2. Adding 200 hours of YouTube data to the WSJ training set reduced the WER from 27.4% to 15.8%, a relative improvement of 42.3%. For the TED-LIUM benchmark, adding 300 hours of data dropped the WER from 32.6% to 28.1%. A manual audit of the crawled samples indicated an internal WER of only 3.5%, confirming the robustness of the filtering pipeline.

4. Discussion and Conclusion

The results demonstrate that "wild" data from YouTube, which includes diverse accents and background conditions, significantly enhances the robustness of ASR models. The use of a high-performing "teacher" API for validation proves to be a cost-effective strategy for supervising large-scale data collection. Future work will focus on extending the crawler to support multiple languages and implementing speaker recognition to avoid biases introduced by Text-to-Speech (TTS) content.

Summary updated

BibTeX
@inproceedings{lakomkin2018kt,
  author = {Egor Lakomkin and Sven Magg and Cornelius Weber and Stefan Wermter},
  title = {{KT-Speech-Crawler: Automatic Dataset Construction for Speech Recognition from YouTube Videos}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2018},
  doi = {10.18653/v1/d18-2016},
}
Figure