It's Difficult to be Neutral - Human and LLM-based Sentiment Annotation of Patient Comments

Petter Mæhlum, David Samuel, Rebecka Maria Norman, Elma Jelin, Øyvind Andresen Bjertnæs, Lilja Øvrelid, Erik Velldal

TL;DR

This paper explores the challenges of automating sentiment analysis on sensitive, user-generated Norwegian patient feedback. By comparing a newly developed human-annotated dataset against two open-source Norwegian large language models (LLMs), the authors show that while LLMs excel at binary classification (positive vs. negative), they struggle significantly with identifying neutral or mixed sentiments, proving that human expertise remains irreplaceable for nuanced healthcare data.

What Problem Does This Paper Address?

The Norwegian Institute of Public Health (NIPH) collects tens of thousands of open-ended patient survey comments annually. This qualitative feedback is a goldmine for improving healthcare quality, but manually analyzing it is incredibly resource-intensive.

Automating this process via Sentiment Analysis (SA) is an obvious solution, but it faces two major hurdles:

  1. Domain and Language Gaps: Existing Norwegian sentiment datasets (like NoReC) consist of professional news reviews, which look nothing like informal, user-generated patient comments.
  2. Privacy Constraints: Patient feedback is highly sensitive. Healthcare organizations cannot simply send this data to proprietary external APIs (like OpenAI's GPT-4) due to strict privacy regulations.

To address this, the authors document a large-scale human annotation effort to build an in-domain dataset and evaluate whether local, open-source Norwegian LLMs can reliably act as automated annotators.

Methods

The researchers took a two-pronged approach:

  1. Human Annotation Pipeline: Seven health service researchers annotated comments at both the comment and sentence level. They used a multi-round process with regular alignment meetings to establish a high-quality "gold standard" dataset.
  2. LLM Evaluation: The authors evaluated two open-source Norwegian models that can be run locally to preserve data privacy:
  3. ChatNorT5: A relatively small (808-million parameter) encoder-decoder model instruction-tuned on translated conversational datasets.
  4. NorMistral: A larger (7-billion parameter) decoder-only model continually pretrained from Mistral 7B.

Instead of letting the LLMs generate free-text answers (which are hard to evaluate), the authors formulated the task as a multiple-choice completion problem based on likelihood scores. They tested 48 prompt variations derived from 9 base prompts (translated from the FLAN dataset) across both zero-shot and few-shot (4-shot) settings.

Table 4: The 9 base prompts, and their English translations. Note that the translations here are back- translations. sent.=sentence, setn. =setningen.

Datasets

The study introduces a new, specialized dataset consisting of free-text comments from NIPH surveys regarding General Practitioners (GPs) and Special Mental Healthcare (SMH).

  • Size: 2,250 comments comprising over 7,740 sentences.
  • Distribution: Split 50-50 into training and testing sets. The dataset covers four classes: Positive (POS), Negative (NEG), Neutral (NEUT), and Mixed (MIX).

Due to privacy regulations, the raw text cannot be publicly distributed, but the authors have released their annotation guidelines and prompt configurations.

Key Insights and Ideas

  • The "Neutrality Trap" for LLMs: While humans can align and agree on what constitutes a neutral or mixed sentence with high accuracy (achieving Inter-Annotator Agreement Kappa scores up to 0.96), LLMs fail miserably at this. In a 4-class setup, models frequently collapse into over-predicting a single class (e.g., NorMistral classifying almost everything as "mixed").
  • Prompt Structure Matters: The spatial arrangement of the prompt influences performance. In 19 out of 24 sentence pairs, placing the patient's comment before the question prompt yielded higher macro $F_1$ scores.
  • Few-Shot Learning Isn't a Silver Bullet: Introducing few-shot examples did not consistently improve performance. For ChatNorT5, few-shot prompts actually caused the 4-class $F_1$ score to drop because the examples biased the model toward predicting the "mixed" class.

Key Results

The quantitative evaluation highlighted a stark contrast between binary and multi-class performance:

  • Binary Setup (Positive vs. Negative): Both LLMs performed exceptionally well, easily beating a Naive Bayes baseline (79.0% $F_1$). Zero-shot ChatNorT5 achieved 89.3% $F_1$, and NorMistral reached 89.1% $F_1$.
  • 4-Class Setup (Positive, Negative, Neutral, Mixed): Performance plummeted. ChatNorT5 managed a modest 42.4% $F_1$ (barely above the Naive Bayes baseline of 41.0%), while NorMistral collapsed to a mere 9.4% $F_1$ due to its systemic bias toward the mixed class.
Zero-shot results comparing ChatNorT5 and NorMistral

Limitations and Future Work

The authors acknowledge several limitations:

  • Workload Imbalance: Human annotations weren't perfectly evenly distributed among the seven researchers due to real-world operational constraints.
  • Simplification of Intensity: Though humans annotated sentiment intensity (slight, standard, strong), these nuances were stripped out of the LLM experiments to reduce complexity.
  • Linguistic Noise: The dataset contains a mix of Bokmål, Nynorsk, English, and spoken-language syntax, which complicates automated analysis.

Future work will focus on improving the models' ability to distinguish neutral text from polar text and exploring how linguistic variations impact automated sentiment analysis in healthcare.

Summary updated

Abstract

Sentiment analysis is an important tool for aggregating patient voices, in order to provide targeted improvements in healthcare services. A prerequisite for this is the availability of in-domain data annotated for sentiment. This article documents an effort to add sentiment annotations to free-text comments in patient surveys collected by the Norwegian Institute of Public Health (NIPH). However, annotation can be a time-consuming and resource-intensive process, particularly when it requires domain expertise. We therefore also evaluate a possible alternative to human annotation, using large language models (LLMs) as annotators. We perform an extensive evaluation of the approach for two openly available pretrained LLMs for Norwegian, experimenting with different configurations of prompts and in-context learning, comparing their performance to human annotators. We find that even for zero-shot runs, models perform well above the baseline for binary sentiment, but still cannot compete with human annotators on the full dataset.
BibTeX
@inproceedings{mhlum2024it,
  author = {Petter Mæhlum and David Samuel and Rebecka Maria Norman and Elma Jelin and Øyvind Andresen Bjertnæs and Lilja Øvrelid and Erik Velldal},
  title = {{It's Difficult to be Neutral - Human and LLM-based Sentiment Annotation of Patient Comments}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2024},
}
Figure