Abstract
Clinical documentation can contain emotionally charged language with stigmatizing or privileging valences. We present a framework for detecting and classifying such language as stigmatizing, privileging, or neutral. We constructed a curated lexicon of biased terms scored for emotional valence. We then used lexicon-based matching to extract text chunks from OB-GYN delivery notes (Mount Sinai Hospital, NY) and MIMIC-IV discharge summaries across multiple specialties. Three clinicians annotated all chunks, enabling characterization of valence patterns across specialties and healthcare systems. We benchmarked multiple classification strategies (zero-shot prompting, in-context learning, and supervised fine-tuning) across encoder-only models (GatorTron) and generative large language models (Llama). Fine-tuning with lexically primed inputs consistently outperformed prompting approaches. GatorTron achieved an F1 score of 0.96 on the OB-GYN test set, outperforming larger generative models while requiring minimal prompt engineering and fewer computational resources. External validation on MIMIC-IV revealed limited cross-domain generalizability (F1 < 0.70, 44% drop). Training on the broader MIMIC-IV dataset improved generalizability when testing on OB-GYN (F1 = 0.71, 11% drop), but at the cost of reduced precision. Our findings demonstrate that fine-tuning outperforms prompting for emotional valence classification and that models must be adapted to specific medical specialties to achieve clinically appropriate performance. The same terms can carry different emotional valences across specialties: words with clinical meaning in one context may be stigmatizing in another. For bias detection, where misclassification risks undermining clinician trust or perpetuating patient harm, specialty-specific fine-tuning is essential to capture these semantic shifts. * Equal contribution.
Abstract (translated)
临床文档中可能包含具有情感色彩的语言,这些语言带有污名化或特权化的倾向。本文提出了一种框架,用于检测和分类此类语言,并将其归类为污名化、赋予特权或者中立的。 我们构建了一个经过精心挑选的情感词汇表,该词典中的偏见术语根据其情绪价值进行了评分。然后,我们使用基于词汇的方法从产科-妇科分娩记录(纽约西奈山医院)和MIMIC-IV出院总结(涵盖多个专业领域)中提取文本片段。三位临床医生对所有这些片段进行了标注,这使得能够根据不同专业领域和医疗系统的特征来描述情感模式。 为了基准测试,我们评估了多种分类策略的性能,包括零样本提示、上下文学习以及监督微调方法,并在编码器模型(GatorTron)与生成式大型语言模型(Llama)之间进行了对比。使用词汇引导输入进行微调的方法始终优于单纯使用提示的方法。 结果表明,在产科-妇科测试集上,GatorTron实现了0.96的F1分数,超越了更大的生成型模型,并且需要更少的提示工程和计算资源。然而,在MIMIC-IV数据集上的外部验证显示,跨领域泛化能力有限(F1 < 0.70,下降幅度为44%)。当在广泛的MIMIC-IV数据集上进行训练并在产科-妇科测试时,模型的泛化性能得到了改善(F1 = 0.71,下降幅度为11%),但以降低精度为代价。这表明,在情感价值分类方面,微调优于提示方法,并且为了实现临床适用的表现,模型必须适应特定的专业领域。 研究表明,同样的术语在不同的专业领域中可能具有不同的情感价值:在一个情境下具有医学意义的词汇,在另一个情境下可能是污名化的。对于偏见检测而言,不准确地分类可能会削弱临床医生的信任或进一步加剧对患者的伤害,因此,为了捕捉这些语义上的变化,特定专业的微调是至关重要的。*贡献均等。 注释:此研究由多名作者共同完成,他们的贡献相同(Equal contribution)。
URL
https://arxiv.org/abs/2603.10004