Evaluation of Prompt Design and Internal Reasoning in Chatbot-Based Medical History Taking: Simulation Study.

IF 5 3区 医学 Q2 MEDICAL INFORMATICS
Nattawipa Thawinwisan, Chang Liu, Goshiro Yamamoto, Kazumasa Kishimoto, Yukiko Mori, Tomohiro Kuroda
{"title":"Evaluation of Prompt Design and Internal Reasoning in Chatbot-Based Medical History Taking: Simulation Study.","authors":"Nattawipa Thawinwisan, Chang Liu, Goshiro Yamamoto, Kazumasa Kishimoto, Yukiko Mori, Tomohiro Kuroda","doi":"10.2196/94614","DOIUrl":null,"url":null,"abstract":"<p><strong>Background: </strong>A persistent discrepancy exists between patient-reported information and physician documentation. While conversational agents have been developed to collect medical histories prior to consultations, existing evaluations have largely focused on diagnostic accuracy or user satisfaction rather than on the completeness and clinical relevance of the information collected. There remains a need to assess the extent to which clinically relevant information is captured through chatbot-based interviews, and to understand how model configurations and instructional strategies influence this coverage.</p><p><strong>Objective: </strong>This study aimed to evaluate the extent to which a chatbot can obtain clinically useful patient history information, and to examine how prompt detail and internal reasoning influence information coverage during chatbot-based medical interviews.</p><p><strong>Methods: </strong>We developed a medical history-taking chatbot using the Qwen3-14B-Instruct model and evaluated 4 configurations in a 2×2 factorial design: detailed and thinking mode, detailed and nonthinking mode, minimal and thinking mode, and minimal and nonthinking mode. These configurations were compared against a rule-based system baseline (choice mode) using 66 standardized primary care clinical cases, with simulated patients interacting with the chatbot according to predefined case scripts. Information coverage (%) was assessed using a checklist inspired by Objective Structured Clinical Examination (OSCE) frameworks. Three physicians independently evaluated transcript coverage, with interrater agreement assessed using full agreement rates and Fleiss κ. For the 4 LLM configurations, coverage was analyzed using 2-way repeated-measures ANOVA to examine the effects of prompt detail, internal reasoning, and their interaction. All 5 configurations, including the rule-based baseline, were additionally compared using 1-way repeated-measures ANOVA with post hoc 2-tailed paired <i>t</i> tests.</p><p><strong>Results: </strong>Interrater agreement was substantial (Fleiss κ=0.75). Across all 66 simulated cases, information coverage differed significantly among configurations (<i>P</i><.001), with the detailed prompt with thinking (detailed and thinking) mode achieving the highest mean coverage (72.3%, SD 14.3%), compared with moderate coverage in configurations using either thinking or detailed prompts alone (approximately 60%) and lower coverage in minimal nonthinking and rule-based configurations (approximately 51%-54%). In the factorial analysis of the 4 LLM configurations, both prompt detail and internal reasoning were significantly associated with improved information coverage, with a significant interaction between prompt detail and internal reasoning interaction. Mode-related differences were most pronounced for past medical and family history domains. Symptom-level analyses revealed substantial variability, with higher coverage for symptoms associated with well-defined diagnostic frameworks and lower coverage for multisystem presentations.</p><p><strong>Conclusions: </strong>In this controlled, simulated setting, the detailed prompt with a thinking mode achieved the highest overall checklist-based information coverage. The findings suggest that combining structured clinical prompts with internal reasoning may improve the completeness of chatbot-collected patient histories. Further research is needed to evaluate its impact on clinical documentation, workflow integration, and real-world usefulness.</p>","PeriodicalId":56334,"journal":{"name":"JMIR Medical Informatics","volume":"14 ","pages":"e94614"},"PeriodicalIF":5.0000,"publicationDate":"2026-08-21","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC13501399/pdf/","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"JMIR Medical Informatics","FirstCategoryId":"3","ListUrlMain":"https://doi.org/10.2196/94614","RegionNum":3,"RegionCategory":"医学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"MEDICAL INFORMATICS","Score":null,"Total":0}
引用次数: 0

Abstract

Background: A persistent discrepancy exists between patient-reported information and physician documentation. While conversational agents have been developed to collect medical histories prior to consultations, existing evaluations have largely focused on diagnostic accuracy or user satisfaction rather than on the completeness and clinical relevance of the information collected. There remains a need to assess the extent to which clinically relevant information is captured through chatbot-based interviews, and to understand how model configurations and instructional strategies influence this coverage.

Objective: This study aimed to evaluate the extent to which a chatbot can obtain clinically useful patient history information, and to examine how prompt detail and internal reasoning influence information coverage during chatbot-based medical interviews.

Methods: We developed a medical history-taking chatbot using the Qwen3-14B-Instruct model and evaluated 4 configurations in a 2×2 factorial design: detailed and thinking mode, detailed and nonthinking mode, minimal and thinking mode, and minimal and nonthinking mode. These configurations were compared against a rule-based system baseline (choice mode) using 66 standardized primary care clinical cases, with simulated patients interacting with the chatbot according to predefined case scripts. Information coverage (%) was assessed using a checklist inspired by Objective Structured Clinical Examination (OSCE) frameworks. Three physicians independently evaluated transcript coverage, with interrater agreement assessed using full agreement rates and Fleiss κ. For the 4 LLM configurations, coverage was analyzed using 2-way repeated-measures ANOVA to examine the effects of prompt detail, internal reasoning, and their interaction. All 5 configurations, including the rule-based baseline, were additionally compared using 1-way repeated-measures ANOVA with post hoc 2-tailed paired t tests.

Results: Interrater agreement was substantial (Fleiss κ=0.75). Across all 66 simulated cases, information coverage differed significantly among configurations (P<.001), with the detailed prompt with thinking (detailed and thinking) mode achieving the highest mean coverage (72.3%, SD 14.3%), compared with moderate coverage in configurations using either thinking or detailed prompts alone (approximately 60%) and lower coverage in minimal nonthinking and rule-based configurations (approximately 51%-54%). In the factorial analysis of the 4 LLM configurations, both prompt detail and internal reasoning were significantly associated with improved information coverage, with a significant interaction between prompt detail and internal reasoning interaction. Mode-related differences were most pronounced for past medical and family history domains. Symptom-level analyses revealed substantial variability, with higher coverage for symptoms associated with well-defined diagnostic frameworks and lower coverage for multisystem presentations.

Conclusions: In this controlled, simulated setting, the detailed prompt with a thinking mode achieved the highest overall checklist-based information coverage. The findings suggest that combining structured clinical prompts with internal reasoning may improve the completeness of chatbot-collected patient histories. Further research is needed to evaluate its impact on clinical documentation, workflow integration, and real-world usefulness.

基于聊天机器人的病史采集中提示设计和内部推理的评价:模拟研究。
背景:患者报告的信息和医生记录之间存在持续的差异。虽然已经开发了会话代理,以便在会诊前收集病史,但现有的评估主要侧重于诊断的准确性或用户满意度,而不是所收集信息的完整性和临床相关性。仍然需要评估通过基于聊天机器人的访谈捕获临床相关信息的程度,并了解模型配置和教学策略如何影响这种覆盖范围。目的:本研究旨在评估聊天机器人在多大程度上可以获得临床有用的患者病史信息,并研究在基于聊天机器人的医疗访谈中,提示细节和内部推理如何影响信息覆盖。方法:采用Qwen3-14B-Instruct模型开发了一款记录病史的聊天机器人,并在2×2析因设计中对4种配置进行了评价:详细与思考模式、详细与非思考模式、最小与思考模式、最小与非思考模式。这些配置与基于规则的系统基线(选择模式)进行比较,使用66个标准化的初级保健临床病例,模拟患者根据预定义的病例脚本与聊天机器人进行交互。使用客观结构化临床检查(OSCE)框架启发的检查表评估信息覆盖率(%)。三名医生独立评估转录覆盖,使用完全一致性率和Fleiss κ来评估转录间一致性。对于4种LLM配置,使用双向重复测量方差分析来分析覆盖率,以检查提示细节,内部推理及其相互作用的影响。所有5种配置,包括基于规则的基线,使用1-way重复测量方差分析和事后双尾配对t检验进行比较。结果:受试者间一致性显著(Fleiss κ=0.75)。在所有66个模拟案例中,不同配置的信息覆盖率存在显著差异(p结论:在这种受控的模拟设置中,带有思维模式的详细提示实现了最高的基于清单的总体信息覆盖率。研究结果表明,将结构化的临床提示与内部推理相结合,可能会提高聊天机器人收集的患者病史的完整性。需要进一步的研究来评估其对临床文档、工作流集成和实际应用的影响。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
JMIR Medical Informatics
JMIR Medical Informatics Medicine-Health Informatics
CiteScore
7.90
自引率
3.10%
发文量
173
审稿时长
12 weeks
期刊介绍: JMIR Medical Informatics (JMI, ISSN 2291-9694) is a top-rated, tier A journal which focuses on clinical informatics, big data in health and health care, decision support for health professionals, electronic health records, ehealth infrastructures and implementation. It has a focus on applied, translational research, with a broad readership including clinicians, CIOs, engineers, industry and health informatics professionals. Published by JMIR Publications, publisher of the Journal of Medical Internet Research (JMIR), the leading eHealth/mHealth journal (Impact Factor 2016: 5.175), JMIR Med Inform has a slightly different scope (emphasizing more on applications for clinicians and health professionals rather than consumers/citizens, which is the focus of JMIR), publishes even faster, and also allows papers which are more technical or more formative than what would be published in the Journal of Medical Internet Research.
×
引用
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学术文献互助群
群 号:604180095
Book学术官方微信
小红书