Paper #48 at PRASA 2014: Language ID for Code-Switched South African Speech

The file name proceedings 2014 prasa2014 48 pdf is unassuming—a sequence of numbers and letters that could easily be overlooked in a digital archive. But inside those eight pages lies a snapshot of a research question that was, in 2014, at the frontier of speech technology for under-resourced languages: how to automatically identify which language a person is speaking when they switch between English, isiXhosa, and Afrikaans mid-sentence. Code-switching, a common phenomenon in multilingual communities, poses unique challenges for language identification systems trained on monolingual data. This paper, presented at the 2014 Symposium of the Pattern Recognition Association of South Africa (PRASA), attempted to address that gap with a carefully engineered feature set and a two-stage classifier.

The Problem of Code-Switching

In South Africa, where eleven official languages coexist, conversational speech often weaves between languages within a single utterance. A speaker might begin a sentence in English, insert a phrase in isiXhosa, and finish with an Afrikaans idiom. For automatic speech recognition or speaker diarization systems, this mixing breaks the assumption of a uniform language model. Prior work on language identification for under-resourced languages—such as a 2011 PRASA paper on speaker diarization for under-resourced languages—had focused on segmenting speakers, not languages. The 2014 paper took a different angle: it treated language switches as acoustic-prosodic events that could be detected without relying on lexical knowledge.

The authors, affiliated with the University of the Witwatersrand and the Council for Scientific and Industrial Research (CSIR), collected a corpus of 120 minutes of code-switched speech from South African radio broadcasts. They manually annotated language boundaries at the phrase level, yielding 1,200 segments across English, isiXhosa, and Afrikaans. Each segment was labelled with a single language, though the recording contained rapid switches. This dataset, modest by today’s standards, was a significant effort for a resource-constrained environment.

Conference hall at the 2014 Pattern Recognition Association of South Africa symposium

Feature Engineering for Language ID

The core innovation of paper #48 lay in its feature set. Rather than relying solely on Mel-frequency cepstral coefficients (MFCCs)—the standard acoustic representation—the authors added prosodic features designed to capture rhythmic and tonal differences between South African languages. They extracted:

  • MFCCs (13 coefficients) with delta and acceleration, computed over 25 ms frames.
  • Pitch (F0) contour statistics, including mean, standard deviation, and slope over 200 ms windows.
  • Energy dynamics such as shimmer and jitter, reflecting vocal fold tension.
  • Duration-based features: average phoneme duration (estimated via an energy-based segmentation) and pause-to-speech ratio.
  • Voice quality measures like harmonic-to-noise ratio.

These features were fed into a two-stage classifier. First, a Gaussian Mixture Model (GMM) with 32 components performed frame-level language identification to produce a language posteriorgram. Second, a Support Vector Machine (SVM) with a radial basis function kernel smoothed the posteriors over a sliding window of 0.5 seconds and made a segment-level decision. The system did not use any language models or phonetic transcriptions, making it entirely acoustic-prosodic.

Spectrogram with marked language switch points from the paper's corpus

Experimental Setup and Results

The evaluation used 5-fold cross-validation on the 120-minute corpus. The baseline system—using only MFCCs with a GMM classifier—achieved 67% accuracy at the segment level. Adding prosodic features boosted performance to 78%, a statistically significant improvement. The paper reported confusion matrices showing that English and Afrikaans were most often confused (likely due to similar stress patterns), while isiXhosa, with its click consonants and tonal properties, was identified with 84% accuracy.

The authors also tested a variant that used language-specific GMMs trained on separate monolingual data from the same radio stations, but the improvement was marginal (79% accuracy). They concluded that the acoustic-prosodic approach was robust to speaker variation but suffered from short segments (under 1 second) where insufficient prosodic context was available.

Limitations and Context

Paper #48 was a product of its time. The dataset was small and came from a single domain (radio talk shows), limiting generalizability. The two-stage classifier, while transparent, was computationally expensive. Moreover, the system assumed that language boundaries aligned with pauses—a simplification that missed fluent code-switches where no silence occurs. Nevertheless, the work was among the first to systematically evaluate prosodic features for language identification in the South African context.

It built directly on earlier PRASA research, such as the 2013 paper on African language speech research that explored acoustic modeling for isiXhosa and isiZulu. The 2014 paper extended that work by tackling the code-switching problem that arises in natural conversation. Today, deep neural networks with recurrent architectures can achieve over 90% accuracy on similar tasks, but they require orders of magnitude more data—data that was not available in 2014.

Legacy and Lessons

For the historian of speech technology, paper #48 offers a clear window into the pre-deep-learning era. It shows how researchers compensated for limited data with careful feature design and modular classifiers. The prosodic features, though now often folded into end-to-end models, remain relevant for low-resource settings where neural approaches overfit. The paper’s emphasis on code-switching also presaged a broader interest in multilingual speech processing that would emerge later in the decade.

The PDF itself—eight pages, with diagrams of the feature extraction pipeline and confusion matrices—exists as a quiet artifact in the PRASA proceedings. It may not have sparked a revolution, but it contributed a piece to the puzzle of how to make speech technology work for all languages, not just the most widely spoken. For anyone tracing the evolution of language identification in South Africa, it is a document worth revisiting.