CLUZH at VarDial GDI 2017: Testing a Variety of Machine Learning Tools for the Classification of Swiss German Dialects

Simon Clematide, Peter Makarov

Abstract

This paper describes the participation of the CLUZH team in the VarDial 2017 German Dialect Identification (GDI) Shared Task. We evaluate several machine learning approaches, including Naive Bayes, Conditional Random Fields (CRF), and Long Short-Term Memory (LSTM) networks, to classify transcribed Swiss German utterances into four regional dialects. Our results show that traditional models and ensemble methods outperform deep learning approaches in this low-resource, high-variability setting, with our best ensemble achieving second place in the competition.

Introduction

Swiss German is not a single language but a cluster of diverse dialects with no standardized spelling. This makes German Dialect Identification (GDI) particularly challenging. The VarDial 2017 GDI Shared Task required classifying manually transcribed utterances into one of four dialects: Basel (BS), Bern (BE), Lucerne (LU), or Zurich (ZH).

The primary challenges in this task included:

  1. Short Utterances: Many training examples were only 1–3 words long, providing very little context for classification.
  2. Transcription Variability: The data used "Dieth transcription," a system designed for laypeople rather than linguists, leading to inconsistent representations.
  3. The Zipfian Trap: A massive number of words in the dataset appeared only once, making it difficult for models to build reliable statistical patterns based on vocabulary alone.
Distribution of utterance lengths in words (left) and characters (right) across the four dialects.

Methods

The researchers tested four distinct approaches to address these challenges:

  • Naive Bayes (Baseline): A standard classifier trained on "bags" of character n-grams (sequences of 2 to 6 characters). Text was pre-processed to remove very short, noisy utterances and simplify complex diacritics.
  • Conditional Random Fields (CRF): Typically used for sequence labeling, the authors applied CRF by treating every word in an utterance as a sequence item. They utilized rich features including word prefixes/suffixes and "word shapes" (mapping characters to 'C' for consonants and 'V' for vowels).
  • Ensemble Method: A majority-vote system combining Naive Bayes, CRF, and a linear Support Vector Machine (SVM).
  • LSTMs (Recurrent Neural Networks): Experiments were conducted with Long Short-Term Memory networks using character embeddings. To improve performance, data augmentation was used to slice long sentences into multiple shorter chunks.

Key Insights and Results

Despite the current industry trend toward deep learning, the LSTMs performed worse than the non-neural approaches. The authors attribute this to the efficiency and robustness of linear classifiers on small, specific datasets.

Confusion matrices and performance metrics for the three official competition runs.

As shown in Figure 4, the team’s traditional ML models performed exceptionally well in the official competition:

  • Run 3 (Ensemble): Achieved 67.34% accuracy, taking 2nd place overall.
  • Run 2 (CRF): Achieved a 65% weighted F1 score, taking 3rd place.
  • Naive Bayes: Served as a surprisingly strong baseline at 63.5% accuracy.

A key linguistic insight was the difficulty in classifying the Lucerne (LU) dialect. The model frequently confused LU with Zurich or Bern, reflecting the geographical and linguistic reality that these dialects exist on a continuum rather than having hard boundaries. Furthermore, feature engineering proved vital; for the CRF model, adding "word shape" features provided a 1% boost in accuracy, demonstrating that structural linguistic patterns are as important as the words themselves.

Limitations and Future Work

The study noted a significant "covariate shift," where internal cross-validation reached ~85% accuracy while official test results were ~67%, suggesting a distribution mismatch between training and test data. Future work will explore more diverse ensembles, hybrid architectures like character-level CNNs, and the integration of word-prediction models directly into the CRF sequence classifier to resolve ambiguities in short text segments.

Summary updated

BibTeX
@inproceedings{clematide2017cluzh,
  author = {Simon Clematide and Peter Makarov},
  title = {{CLUZH at VarDial GDI 2017: Testing a Variety of Machine Learning Tools for the Classification of Swiss German Dialects}},
  booktitle = {VarDial},
  year = {2017},
  doi = {10.18653/v1/w17-1221},
}
Figure