Mandarin-English Code-Switching Speech Recognition System for Specific Domain

Chung-Pu Chiou, Hou-An Lin, Chia-Ping ChenROCLING 2022

Abstract

This paper presents a specialized Automatic Speech Recognition (ASR) system designed to handle Mandarin-English code-switching (often termed "Chinglish") commonly found in technical university lectures. By utilizing a Conformer-based architecture and a multi-stage transfer learning approach, the researchers successfully reduced the Character Error Rate (CER) on domain-specific course content from 82.0% to 34.8%.

Introduction

The COVID-19 pandemic accelerated the shift toward online education, with many professors uploading lectures to platforms like YouTube. However, these recordings often suffer from two major issues: acoustic noise from classroom environments and frequent code-switching between Mandarin and English, especially regarding technical jargon (e.g., "Data Structures," "Complexity"). Standard ASR systems often struggle with this linguistic mixing and fail to recognize niche technical terms, making automated captioning unreliable for specialized academic use.

Methodology

The proposed system utilizes the Conformer architecture, a state-of-the-art End-to-End (E2E) model that integrates Transformers for long-distance context and Convolutional Neural Networks (CNNs) for local audio features.

The Conformer-based ASR architecture featuring an encoder-decoder structure with CTC and attention mechanisms.

The core strategy involves Multi-stage Transfer Learning:

  1. Base Training: The model is first trained on a massive corpus of pure Mandarin speech to establish a foundation in language and acoustics.
  2. General Code-Switching Fine-Tuning: The model is fine-tuned using a general "Education" dataset containing Mandarin-English mixing to learn language transitions.
  3. Domain-Specific Fine-Tuning: Finally, the model is fine-tuned on a "Course" dataset—specifically, a Data Structures course—to familiarize it with specific technical vocabulary.

Data augmentation techniques such as Speed Perturbation and SpecAugment were employed to enhance robustness against background noise.

Datasets

The researchers utilized several datasets to transition from general to specific recognition:

  • Mandarin Base: A 221-hour collection including AISHELL-1, AISHELL-2, and the Formosa Grand Challenge dataset.
  • Education Dataset: Approximately 13 hours of general educational content from YouTube, featuring Mandarin-English code-switching.
  • Course Dataset: Roughly 20 hours of audio from a specific professor’s "Data Structures" course, characterized by high classroom noise and dense technical jargon.

Results and Discussion

The authors found that a "stepping stone" approach to fine-tuning is critical. Moving directly from pure Mandarin to specific course data was less effective than passing through a general code-switching phase first. The primary bottleneck identified was the recognition of English "islands" (technical nouns) within the Mandarin "sea."

Character Error Rate (CER) comparison across different fine-tuning stages.

The impact of multi-stage fine-tuning was dramatic:

  • General Education Model: 82.0% CER (Essentially unusable).
  • Course-Specific Model (Single Stage): 35.4% CER.
  • Sequential Fine-Tuning (Education -> Course): 34.8% CER.

Qualitative analysis confirmed that the final model correctly identified technical terms like "space complexity" and "stack," which baseline models failed to recognize.

Conclusion and Future Work

While the system shows significant improvement, a 34.8% CER indicates room for growth. Future work will focus on integrating more robust Language Models (LM), adding explicit language classification components to detect switching points, and improving acoustic front-ends to better handle real-world classroom noise.

Summary updated

BibTeX
@inproceedings{chiou2022mandarin,
  author = {Chung-Pu Chiou and Hou-An Lin and Chia-Ping Chen},
  title = {{Mandarin-English Code-Switching Speech Recognition System for Specific Domain}},
  booktitle = {ROCLING},
  year = {2022},
}
Figure