Skip to main content
QUICK REVIEW

[Paper Review] Prevalence of code mixing in semi-formal patient communication in low resource languages of South Africa

Monika Obrocka, Charles Copley|arXiv (Cornell University)|Nov 13, 2019
Interpreting and Communication in HealthcareHealth Professions4 references4 citations
TL;DR

This study investigates code-mixing in semi-formal patient communications within South Africa’s national MomConnect health platform, analyzing 182,000 unique user messages. Using the Polyglot NLP library, it identifies code-switching at approximately 10% prevalence—primarily between English, isiZulu, and isiXhosa—highlighting significant challenges for NLP systems in low-resource multilingual settings.

ABSTRACT

In this paper we address the problem of code-mixing in resource-poor language settings. We examine data consisting of 182k unique questions generated by users of the MomConnect helpdesk, part of a national scale public health platform in South Africa. We show evidence of code-switching at the level of approximately 10% within this dataset -- a level that is likely to pose challenges for future services. We use a natural language processing library (Polyglot) that supports detection of 196 languages and attempt to evaluate its performance at identifying English, isiZulu and code-mixed questions.

Motivation & Objective

  • To quantify the prevalence of code-mixing in semi-formal patient communications on a national public health platform in South Africa.
  • To assess the performance of the Polyglot NLP library in identifying language and code-switching in low-resource languages.
  • To evaluate the impact of code-mixing on natural language processing accuracy in multilingual, resource-poor environments.
  • To provide insights for developing NLP tools that support equitable digital health access in multilingual societies.
  • To inform future development of automated question-answering systems for national health initiatives like South Africa’s National Health Insurance by 2026.

Proposed method

  • Collected and preprocessed 182,000 unique messages from the MomConnect helpdesk platform.
  • Preprocessing included removal of punctuation, emojis, digits, and splitting each message into four chunks.
  • Applied the Polyglot NLP library to label the language of each message chunk across 196 supported languages.
  • Created four manually annotated datasets: full data, monolingual English, monolingual isiZulu, and code-switched samples.
  • Evaluated classifier performance using accuracy, weighted precision, and weighted recall on the full data sample.
  • Conducted statistical comparison between registration language distribution (Table 1) and actual message language use (Table 3).

Experimental results

Research questions

  • RQ1What is the prevalence of code-mixing in semi-formal patient communications on a national health platform in South Africa?
  • RQ2How accurately can the Polyglot NLP library identify language and code-switching in low-resource South African languages?
  • RQ3How does the distribution of language use in actual messages compare to the language preferences registered by users?
  • RQ4To what extent does code-mixing degrade the performance of standard NLP techniques in multilingual, low-resource settings?
  • RQ5What are the implications of code-mixing for the development of scalable, automated language processing tools in public health applications?

Key findings

  • Code-mixing was detected in approximately 10% of messages, with 65.5% of messages classified as code-switched by the Polyglot model containing mixed language content.
  • The Polyglot classifier achieved an accuracy of 0.78, weighted precision of 0.89, and weighted recall of 0.78 on the full data sample.
  • The classifier correctly identified 100% of English-only messages but only 75.75% of isiZulu-only messages, indicating lower performance on low-resource languages.
  • There was a statistically significant difference (χ² = 93.168, p < 2.2e-16) between the language distribution in user registrations (Table 1) and actual message content (Table 3).
  • The model’s performance was not significantly better than assuming all messages were in English (accuracy 0.765), highlighting data imbalance issues.
  • Code-switching was most prevalent in combinations involving English and isiZulu (23.25%), English and isiXhosa (16%), and isiZulu and isiXhosa (17.5%).

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.