Large language model-driven sentiment analysis for facilitating fibromyalgia diagnosis.

IF 5.1 2区 医学 Q1 RHEUMATOLOGY
Vincenzo Venerito, Florenzo Iannone
{"title":"Large language model-driven sentiment analysis for facilitating fibromyalgia diagnosis.","authors":"Vincenzo Venerito, Florenzo Iannone","doi":"10.1136/rmdopen-2024-004367","DOIUrl":null,"url":null,"abstract":"<p><strong>Background: </strong>Fibromyalgia (FM) is a complex disorder with widespread pain and emotional distress, posing diagnostic challenges. FM patients show altered cognitive and emotional processing, with a preferential allocation of attention to pain-related information. This attentional bias towards pain cues can impair cognitive functions such as inhibitory control, affecting patients' ability to manage and express emotions. Sentiment analysis using large language models (LLMs) can provide insights by detecting nuances in pain expression. This study investigated whether open-source LLM-driven sentiment analysis could aid FM diagnosis.</p><p><strong>Methods: </strong>40 patients with FM, according to the 2016 American College of Rheumatology Criteria and 40 non-FM chronic pain controls referred to rheumatology clinics, were enrolled. Transcribed responses to questions on pain and sleep were machine translated to English and analysed by the LLM Mistral-7B-Instruct-v0.2 using prompt engineering targeting FM-associated language nuances for pain expression ('prompt-engineered') or an approach without this targeting ('ablated'). Accuracy, precision, recall, specificity and area under the receiver operating characteristic curve (AUROC) were calculated using rheumatologist diagnosis as ground truth.</p><p><strong>Results: </strong>The prompt-engineered approach demonstrated accuracy of 0.87, precision of 0.92, recall of 0.84, specificity of 0.82 and AUROC of 0.86 for distinguishing FM. In comparison, the ablated approach had an accuracy of 0.76, precision of 0.75, recall of 0.77, specificity of 0.75 and AUROC of 0.76. The accuracy was superior to the ablated approach (McNemar's test p<0.001).</p><p><strong>Conclusion: </strong>This proof-of-concept study suggests LLM-driven sentiment analysis, especially with prompt engineering, may facilitate FM diagnosis by detecting subtle differences in pain expression. Further validation is warranted, particularly the inclusion of secondary FM patients.</p>","PeriodicalId":21396,"journal":{"name":"RMD Open","volume":"10 2","pages":""},"PeriodicalIF":5.1000,"publicationDate":"2024-06-28","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC11227845/pdf/","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"RMD Open","FirstCategoryId":"3","ListUrlMain":"https://doi.org/10.1136/rmdopen-2024-004367","RegionNum":2,"RegionCategory":"医学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"RHEUMATOLOGY","Score":null,"Total":0}
引用次数: 0

Abstract

Background: Fibromyalgia (FM) is a complex disorder with widespread pain and emotional distress, posing diagnostic challenges. FM patients show altered cognitive and emotional processing, with a preferential allocation of attention to pain-related information. This attentional bias towards pain cues can impair cognitive functions such as inhibitory control, affecting patients' ability to manage and express emotions. Sentiment analysis using large language models (LLMs) can provide insights by detecting nuances in pain expression. This study investigated whether open-source LLM-driven sentiment analysis could aid FM diagnosis.

Methods: 40 patients with FM, according to the 2016 American College of Rheumatology Criteria and 40 non-FM chronic pain controls referred to rheumatology clinics, were enrolled. Transcribed responses to questions on pain and sleep were machine translated to English and analysed by the LLM Mistral-7B-Instruct-v0.2 using prompt engineering targeting FM-associated language nuances for pain expression ('prompt-engineered') or an approach without this targeting ('ablated'). Accuracy, precision, recall, specificity and area under the receiver operating characteristic curve (AUROC) were calculated using rheumatologist diagnosis as ground truth.

Results: The prompt-engineered approach demonstrated accuracy of 0.87, precision of 0.92, recall of 0.84, specificity of 0.82 and AUROC of 0.86 for distinguishing FM. In comparison, the ablated approach had an accuracy of 0.76, precision of 0.75, recall of 0.77, specificity of 0.75 and AUROC of 0.76. The accuracy was superior to the ablated approach (McNemar's test p<0.001).

Conclusion: This proof-of-concept study suggests LLM-driven sentiment analysis, especially with prompt engineering, may facilitate FM diagnosis by detecting subtle differences in pain expression. Further validation is warranted, particularly the inclusion of secondary FM patients.

大语言模型驱动的情感分析促进纤维肌痛的诊断。
背景:纤维肌痛(FM)是一种复杂的疾病,具有广泛的疼痛和情绪困扰,给诊断带来了挑战。纤维肌痛患者的认知和情绪处理发生了改变,注意力优先分配给与疼痛相关的信息。这种对疼痛线索的注意偏向会损害抑制控制等认知功能,影响患者管理和表达情绪的能力。使用大型语言模型(LLM)进行情感分析可以通过检测疼痛表达中的细微差别来提供见解。本研究调查了开源 LLM 驱动的情感分析是否有助于 FM 诊断。方法:根据 2016 年美国风湿病学会标准,40 名 FM 患者和 40 名转诊到风湿病诊所的非 FM 慢性疼痛对照组患者被纳入研究。针对疼痛表达的 FM 相关语言细微差别("prompt-engineered")或不针对该细微差别的方法("ablated"),对有关疼痛和睡眠问题的转录回答进行机器翻译成英语,并由 LLM Mistral-7B-Instruct-v0.2 进行分析。以风湿病学家的诊断为基本事实,计算了准确度、精确度、召回率、特异性和接收者操作特征曲线下面积(AUROC):结果:在鉴别 FM 方面,提示工程方法的准确度为 0.87,精确度为 0.92,召回率为 0.84,特异性为 0.82,接收者操作特征曲线下面积为 0.86。相比之下,消融方法的准确度为 0.76,精确度为 0.75,召回率为 0.77,特异性为 0.75,AUROC 为 0.76。准确性优于消融方法(McNemar 检验 pConclusion):这项概念验证研究表明,LLM 驱动的情感分析,尤其是与即时工程相结合的情感分析,可以通过检测疼痛表达的细微差别来促进调频诊断。还需要进一步验证,尤其是纳入继发性 FM 患者。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
RMD Open
RMD Open RHEUMATOLOGY-
CiteScore
7.30
自引率
6.50%
发文量
205
审稿时长
14 weeks
期刊介绍: RMD Open publishes high quality peer-reviewed original research covering the full spectrum of musculoskeletal disorders, rheumatism and connective tissue diseases, including osteoporosis, spine and rehabilitation. Clinical and epidemiological research, basic and translational medicine, interesting clinical cases, and smaller studies that add to the literature are all considered.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信