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:
- Domain and Language Gaps: Existing Norwegian sentiment datasets (like NoReC) consist of professional news reviews, which look nothing like informal, user-generated patient comments.
- 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:
- 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.
- LLM Evaluation: The authors evaluated two open-source Norwegian models that can be run locally to preserve data privacy:
- ChatNorT5: A relatively small (808-million parameter) encoder-decoder model instruction-tuned on translated conversational datasets.
- 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.
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.
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