Baishideng Publishing Group Inc, 7041 Koll Center Parkway, Suite 160, Pleasanton, CA 94566, USA
Share the Article
Zhou SM, Zhang MJ, Zhang SL, Chen T, Wei ZJ, Dong HB, Cui Q, Li M, Wang D, Wang HC, Guan YR, Yang HH, Jiangtulu B, Cui B, Xu Q, Zhao Y, Jiang X. Large language models with supervised fine-tuning for inflammatory bowel disease diagnosis and prognosis. World J Gastroenterol 2027; 33(1): 123087 [DOI: 10.3748/wjg.123087]
Shi-Ming Zhou, Ming-Jun Zhang, Shu-Lin Zhang, Tao Chen, Zheng-Jie Wei, Hai-Bin Dong, Qi Cui, Xuan Jiang, Department of Gastroenterology, Beijing Tsinghua Changgung Hospital, School of Clinical Medicine, Tsinghua Medicine, Tsinghua University, Beijing 102218, China
Meng Li, Dan Wang, Hui-Chao Wang, Yi-Ru Guan, Hai-Hua Yang, Bahabaike Jiangtulu, Bo Cui, Qian Xu, Xiaohe Health, Bytedance, Beijing 100192, China
Yi Zhao, Department of Dermatology and Venereology, Beijing Tsinghua Changgung Hospital, School of Clinical Medicine, Tsinghua Medicine, Tsinghua University, Beijing 102218, China
Co-first authors: Shi-Ming Zhou and Ming-Jun Zhang.
Co-corresponding authors: Yi Zhao and Xuan Jiang.
Author contributions: Zhou SM and Zhang MJ share co-first authorship based on their equivalent substantive contributions to study design, research execution, and manuscript drafting and revision; Chen T, Wei ZJ, Dong HB and Cui Q participated in data collection and model evaluation; Zhang SL was responsible for data collection and statistical analysis; Li M, Wang D, Wang HC, Guan YR, Yang HH, Jiangtulu B, Cui B and Xu Q assisted with data collection and model training; Zhao Y and Jiang X serve as co-corresponding authors, with equivalent contributions to the overall study design, research supervision, and manuscript revision; all authors have read and approve the final manuscript.
AI contribution statement: AI tools were used solely for linguistic refinement and formatting assistance. No AI tool was involved in the generation of research data, interpretation of results, or formulation of conclusions. All AI-generated outputs were critically reviewed and revised by the authors.
Institutional review board statement: The study was reviewed and approved by Beijing Tsinghua Changgung Hospital Institutional Review Board (approval No. 23695-4-01).
Informed consent statement: The data we used were all de-identified information provided by the hospital’s information department, which did not involve patient privacy or any other sensitive information, and no informed consent was required.
Conflict-of-interest statement: The authors declare that they have no conflict of interest.
STROBE statement: The authors have read the STROBE Statement—a checklist of items, and the manuscript was prepared and revised according to the STROBE Statement-a checklist of items.
Data sharing statement: The data that support the findings of this study are available from the corresponding author, upon reasonable request.
Corresponding author: Xuan Jiang, MD, Doctor, Department of Gastroenterology, Beijing Tsinghua Changgung Hospital, School of Clinical Medicine, Tsinghua Medicine, Tsinghua University, No. 168 Litang Road, Beijing 102218, China. jxa01998@btch.edu.cn
Received: May 8, 2026 Revised: July 3, 2026 Accepted: August 28, 2026 Published online: January 7, 2027 Processing time: 185 Days and 20.4 Hours
Abstract
BACKGROUND
Inflammatory bowel disease (IBD) is a chronic, incurable condition characterized by complex complications. Effective management of IBD demands extensive physician expertise and time, presenting major challenges due to limited experience and healthcare resources. Large language models (LLMs) may serve as efficient auxiliary tools to alleviate workforce pressures and enhance the accessibility and efficiency of healthcare services.
AIM
To evaluate the capabilities of an LLM trained by supervised fine-tuning (SFT) in the diagnosis and treatment of IBD.
METHODS
In this observational study, the diagnostic and treatment capabilities of a general LLM for IBD were evaluated using cases derived from real-world electronic health records. High-quality medical records were filtered for SFT to construct a dedicated IBD-LLM, followed by a direct head-to-head comparison of IBD care performance between the IBD-LLM and resident physicians.
RESULTS
The general LLM demonstrated suboptimal performance in IBD diagnosis and treatment, although its response consistency and harmlessness were confirmed. In the head-to-head comparison, IBD-LLM vs resident physicians achieved scores of 2.88 vs 3.47 out of 5 in diagnostic accuracy (P = 0.001), 4.18 vs 3.47 out of 5 in humanistic care (P = 0.001), 4.39 vs 3.41 out of 5 in clinical judgment (P = 0.001), 3.88 vs 3.53 out of 5 in communication skills (P = 0.002), and 4.11 vs 3.74 out of 5 in organizational effectiveness (P = 0.003). Although the IBD-LLM demonstrated performance comparable to resident physicians in three parameters, it showed significantly lower diagnostic accuracy. No safety risks or artificial intelligence hallucinations were observed in outputs from either the general LLM or IBD-LLM.
CONCLUSION
A specialized LLM can be efficiently trained with limited samples using SFT, and demonstrated significant potential for assisting with medical tasks under the supervision of attending physicians.
Core Tip: This study constructed a specialized inflammatory bowel disease-large language model (LLM) using supervised fine-tuning (SFT) on a limited number of high-quality data from real-world electronic health records. In a head-to-head comparison with resident physicians during simulated clinical interactions, the model excelled in humanistic care, clinical judgment, and organizational effectiveness, but demonstrated a significant deficit in diagnostic accuracy. Notably, no artificial intelligence hallucinations were observed, attributed to rigorous structured training and a conservative learning rate. These findings establish SFT-trained LLMs as valuable clinical adjuncts for enhancing patient interaction in resource-constrained settings, although complex diagnostic reasoning still mandates human oversight.
Citation: Zhou SM, Zhang MJ, Zhang SL, Chen T, Wei ZJ, Dong HB, Cui Q, Li M, Wang D, Wang HC, Guan YR, Yang HH, Jiangtulu B, Cui B, Xu Q, Zhao Y, Jiang X. Large language models with supervised fine-tuning for inflammatory bowel disease diagnosis and prognosis. World J Gastroenterol 2027; 33(1): 123087
Inflammatory bowel disease (IBD), which includes Crohn’s disease and ulcerative colitis, is characterized by a chronic, incurable course and complex progression[1-3]. Accurate diagnosis and effective treatment of IBD present significant challenges, requiring comprehensive medical history evaluation, precise diagnostic procedures, and individualized therapeutic adjustments[4-6]. Both developed and developing countries are facing the problem of a shortage of gastroenterologists[7,8]. Even the ratio of nurses is extremely low, with only 1.5 nurses available for every 250000 IBD patients[9]. However, millions of people worldwide suffer from IBD, and the incidence rate continues to rise, especially in newly industrialized regions[10,11]. The obvious mismatch between the increasing number of IBD patients and the limited clinical medical capacity highlights the urgent need for innovative solutions to bridge this gap.
Large language models (LLMs), as artificial intelligence (AI) systems, utilize neural network architectures and deep learning to represent complex relationships between words in textual datasets, aiming to mimic human capabilities for automated language analysis[12,13]. In the medical field, LLMs demonstrate significant application potential[14-17]. For instance, their ability to pass the United States medical licensing examination[15,18] indicates competent performance in static medical question-answering tasks. However, written examinations are unvalidated proxies for clinical competency[19], and the test performance of LLMs does not necessarily translate to real-world clinical effectiveness or utility[15,16]. The essence of clinical practice lies in dynamic physician-patient interactions, particularly in medical history-taking and diagnostic reasoning. Studies have revealed that LLMs exhibit markedly reduced performance in simulated hospital environments[20], highlighting their current limitations in dynamic information gathering and clinical decision-making. Autonomous deployment of LLMs for clinical decision-making or patient communication may thus introduce significant risks[21].
In real-world clinical practice, it is an open-ended question-and-answer situation without preset options. Medical decision-making depends on the accuracy and comprehensiveness of information collection. Currently, general LLMs find it difficult to meet the needs of complex clinical practices[22]. Structured and unstructured texts, such as electronic health records (EHRs)[23], clinical notes[24], and medical literature[25], can be applied to pre-train medical LLMs, enabling them to achieve excellent performance in medical tasks, offering significant potential to assist healthcare professionals in clinical decision-making and medical history collection across diverse scenarios[21,26]. However, training a specialized medical LLM from scratch remains prohibitively expensive and resource-intensive[22], requiring massive domain-specific datasets and computational power. Critically, supervised fine-tuning (SFT)[27-29] provides a cost-effective alternative by repurposing pre-trained general LLMs through targeted data adaptation, effectively extending their capabilities without full retraining.
To address this gap, our study leveraged SFT to efficiently construct an IBD-specific LLM with limited samples, overcoming the traditional sample-size barriers in medical AI development. Beyond model development, we rigorously evaluated its real-world applicability in IBD diagnosis and clinical history intake, aiming to bridge the translational divide between AI research and practical healthcare delivery.
MATERIALS AND METHODS
Data collection
This observational study was conducted and approved by the ethics committee of Beijing Tsinghua Changgung Hospital and all methods were performed in accordance with the relevant guidelines and regulations. The medical records used in this study were all sourced from Beijing Tsinghua Changgung Hospital, a tertiary hospital in China with 1500 beds. Furthermore, the Gastroenterology Department has appointed a dedicated case manager[30,31] to ensure the quality of medical records.
In this study, the medical records of 97 patients were selected as the training set. Of these, 63 cases were confirmed to have IBD and 34 cases had other diseases requiring differential diagnosis from IBD. Detailed information is shown in Table 1. Newly admitted IBD patients from November 2023 to November 2024 were selected as the validation set to ensure that the trained LLM had no prior exposure to this dataset in order to avoid bias.
Table 1 The distribution of disease types in the training set.
For the patients included in this study, an informed consent waiver was approved due to the use of retrospective data and the minimal risk posed to participants. All patient information was de-identified to protect privacy and maintain hospital information security.
Model training
In this study, we employed a decoder-only model architecture. Compared to encoder-only frameworks such as bidirectional encoder representations from transformers, decoder-only models enable direct generation of continuous natural language responses from input sequences thereby yielding enhanced fluency and coherence in long-form text generation. In contrast to encoder-decoder architectures (e.g., T5), decoder-only models exhibit more efficient capture of contextual dependencies, rendering them particularly well-suited for multi-turn dialogue scenarios.
For the model training process, we selected Doubao-32k-0615, a LLM developed by ByteDance, as the foundational model. Constructed on the Transformer Decoder architecture, Doubao boasts a context window of 32K tokens, demonstrating remarkable performance in long-text understanding and generation tasks. Following pre-training on a massive general corpus, Doubao has undergone validation across multiple professional domains, including healthcare, education, and finance.
SFT technique
SFT is a well-established and efficient technique for tailoring pre-trained language models to specific tasks by utilizing high-quality annotated datasets[32-35]. Through the construction of input-output pairs, such as symptom descriptions paired with corresponding diagnoses or medical questions with standardized responses, SFT enables targeted adjustment of model parameters. This approach significantly enhances performance on specific tasks while mitigating computational costs associated with full-scale retraining[33,36,37].
Following the de-identification of EHRs in the validation set, five gastroenterologists reconstructed and recast these records into doctor-patient dialogue formats. The objective was to authentically replicate dynamic clinical communication scenarios, ensuring the accuracy of clinical reasoning, the validity of medical judgments, and integrating the humanistic aspects of doctor-patient interaction.
To ensure that the quality of the dialogues could accurately reflect the diagnosis and treatment thinking and completely present the medical decision-making process of doctors after collecting and integrating information, three doctors with both professional backgrounds in clinical medicine and model learning rules reviewed and adjusted the rewritten medical dialogues again using the constructed high-quality medical corpus, and conducted SFT training on Doubao in the low-rank adaptation manner.
The training dataset consists of two components: The core dataset comprises 97 samples (with 2 × up sampling) of multi-turn dialogue data, meticulously annotated by medical experts and augmented to expand data diversity, comprehensively covering clinical scenarios such as symptom inquiry, differential diagnosis, and treatment recommendations for IBD. An auxiliary dataset of approximately 10000 general task samples was integrated to enhance the model’s generalization ability and language comprehension diversity. Through systematic grid search and cross-validation during parameter tuning, we determined the optimal parameter configuration: A learning rate of 0.0002 and 5 training epochs. The final training loss curve is presented in Figure 1. We trained Doubao into an upgraded version using the SFT technique and named it IBD-LLM. The process of constructing the medical corpus and training the model is shown in Figure 2.
Figure 2 The process of constructing the medical corpus and training the model.
EHR: Electronic health record; D-P: Doctor-patient; SFT: Supervised fine-tuning; IBD: Inflammatory bowel disease.
Evaluation
Ensuring the safety, ethical integrity, and lack of bias in LLMs for clinical applications is critical. We conducted a comprehensive evaluation of our proposed framework, focusing on patient safety and clinical utility. To ensure a fair comparison, the three resident physicians involved in the head-to-head evaluation were in their second to third year of gastroenterology residency training, each with at least one year of dedicated clinical experience in managing IBD under the supervision of attending gastroenterologists. This ensured that the residents possessed the fundamental clinical competency required for medical history collection and preliminary disease diagnosis.
Our unique evaluation framework was designed to: (1) Given that medical history collection is an essential skill for resident physicians and this task is mainly performed by resident physicians in clinical practice, we designed a head-to-head comparison between the SFT LLM (IBD-LLM) and the resident physicians in terms of their capabilities in medical history collection and disease diagnosis; and (2) Adopted a scoring system inspired by the mini-clinical evaluation exercise (mini-CEX)[38,39] to assess the interaction quality. This scoring system, modeled after the mini-CEX, evaluates key dimensions such as accuracy, completeness, professionalism, logical reasoning ability, and patient-centered care, ensuring a comprehensive and standardized assessment. The scoring dimensions were defined as follows: (1) Diagnostic accuracy: The correctness of the final diagnosis; (2) Humanistic care: Empathy, respect, and patient-centered communication; (3) Clinical judgment: The logical progression of inquiry, appropriateness of follow-up questions based on responses, and the ability to formulate a reasonable differential diagnosis process; (4) Communication skills: Clarity, professionalism, and efficiency of information delivery; and (5) Organizational effectiveness: Time management and logical structuring of the consultation. This approach highlights the IBD-LLM’s ability to perform comparably to resident physicians while maintaining high clinical standards.
Statistical analysis
To assess the general performance of the LLM in medical history collection and disease diagnosis, a 5-point Likert scale was employed (1 = unacceptable, 5 = excellent). Additionally, three attending physicians used a 3-point Likert scale (1 = unacceptable, 3 = excellent) to evaluate response consistency and the presence of offensive content. Doubao was approved to undergo SFT training after its outputs were confirmed to be stable and free of harmful information. The three attending physicians evaluated four interaction records for each patient in the validation set, three from the resident physicians and one from the IBD-LLM, without knowing the source of each record.
To enhance consistency and reliability, the attending physicians received standardized scoring training before the evaluation and conducted a simulation assessment on three cases selected from the training set. Additionally, after independent scoring, they held regular meetings to ensure consensus on the multidimensional scoring framework.
Statistical analysis was performed using GraphPad Prism 9.5. Normality tests were conducted on the data. Normally distributed measurement data are presented as mean ± SD. Comparisons between two groups were performed using the unpaired two-tailed Student’s t-test, while comparisons among multiple groups were analyzed using one-way analysis of variance followed by Tukey’s post hoc test. Non-normally distributed measurement data are presented as the median. Comparisons between two groups were performed using the Mann-Whitney U test, while comparisons among multiple groups were analyzed using the Kruskal-Wallis H test, supplemented by Dunn’s post hoc test. A P value < 0.05 was considered statistically significant.
RESULTS
Clinical characteristics
The clinical characteristics of IBD patients in the validation set are shown in Table 2, revealing the complexity and challenge in managing IBD patients. A significant proportion of patients showed low body mass index (BMI), with 26% having a BMI < 18.5 kg/m2. Additionally, the cohort exhibited prolonged disease duration, as 100% of cases had a disease course ≥ 3 months and 36% ≥ 5 years. Notably, 30% of patients had a history of surgical intervention, and the majority presented with complex medication profiles. These characteristics fully reflect the complexity and refractory nature of IBD and pose extremely high demands on the diagnostic and therapeutic capabilities of clinicians. The multifaceted nature of IBD presents a stringent challenge for diagnostic tools. If LLM can effectively handle medical history collection and diagnosis for such a complex condition, it is poised to demonstrate comparable performance across other diseases.
Table 2 Clinical characteristics of inflammatory bowel disease patients in the validation set.
Our validation set could cover a wide range of clinical application scenarios. The dataset featured a balanced distribution of Crohn’s disease (50%) and ulcerative colitis (50%), an equitable gender composition (53% male, 47% female), and a symmetrical representation of disease activity states (47% in remission, 53% active). It is worth noting that the treatment options for IBD are diverse and complex, and this validation set encompassed almost all current medical treatment options for IBD, including patients who had not yet been prescribed any medication at their initial visit.
General LLM evaluation results
Following the anonymization of EHRs in the validation set, a gastroenterologist assumed the role of a patient using EHR data to engage in interactions with Doubao. Interactions began with the patient’s chief complaint and concluded with a disease diagnosis. Three separate interactions were conducted for each EHR, and the experts systematically assessed the medical history collection and disease diagnosis processes documented in the interaction records. The overall process is shown in Figure 3.
Figure 3
Testing and scoring process of the general large language model.
The assessment results are shown in Figure 4. Doubao’s performance in medical history collection and disease diagnosis yielded the following scores: Poor (4%), unacceptable (92%), and good (4%). General LLMs demonstrate limited adaptability to real-world clinical scenarios. Doubao’s output consistency received a “good” rating across all evaluations (100%), and no instances of AI hallucinations or harmful information were detected during the output process (100%). The intraclass correlation coefficient (ICC) for inter-rater reliability was 0.725 [95% confidence interval (CI): 0.559-0.852], demonstrating a substantial level of consistency.
Figure 4 The assessment results of the Doubao.
A: The ability in medical history collection and disease diagnosis; B: The ability in output stability; C: The ability of the appropriateness of the output content.
Head-to-head evaluation results
Following the anonymization of EHRs in the validation set, a gastroenterologist assumed the role of a patient using EHR data to engage in separate interactions with the IBD-LLM and resident physicians. The experts systematically evaluated the medical history collection and disease diagnosis processes documented in the interaction records. The detailed procedure is illustrated in Figure 5.
Figure 5 Head-to-head comparison between resident physicians and the inflammatory bowel disease-large language model.
LLM: Large language model; SFT: Supervised fine-tuning; IBD: Inflammatory bowel disease.
In the head-to-head comparison between the IBD-LLM and resident physicians (Figure 6), the IBD-LLM achieved an average score of 19.44/25, while resident physicians scored an average of 17.67/25. The top-performing resident physician attained 20.40/25 in this evaluation. In terms of the scores for diagnostic accuracy, IBD-LLM and resident physicians (on average) scored 2.88 ± 0.49 vs 3.47 ± 0.59 (P = 0.001, out of 5 points), for humanistic care 4.18 ± 0.46 vs 3.47 ± 0.55 (P = 0.0001, out of 5 points), for clinical judgment 4.39 ± 0.76 vs 3.41 ± 1.12 (P = 0.0001, out of 5 points), for communication skills 3.88 ± 0.55 vs 3.53 (P = 0.002, out of 5 points), and for organizational effectiveness 4.11 ± 0.55 vs 3.74 ± 0.46 (P = 0.003, out of 5 points). The ICC for accuracy was 0.87 (95%CI: 0.81-0.92), indicating excellent consistency; for humanistic care, the ICC was 0.76 (95%CI: 0.67-0.83), reflecting good consistency; for clinical judgment, the ICC was 0.79 (95%CI: 0.71-0.85), with good consistency; for communication skills, the ICC was 0.83 (95%CI: 0.76-0.89), showing good consistency; and for organizational effectiveness, the ICC was 0.81 (95%CI: 0.73-0.87), also demonstrating good consistency.
Figure 6 Evaluated and averaged across three consultant-level gastroenterologists.
A: Rating in five domains; B: Total scores (defined as the sum of domain-specific scores); C: Evaluated and averaged across three consultant-level gastroenterologists. LLM: Large language model; SFT: Supervised fine-tuning.
DISCUSSION
IBD shares overlapping symptoms with other gastrointestinal disorders[5], and its clinical manifestations are often variable and fluctuating[40], which complicates the diagnostic process. Misdiagnosis increases the risk of adverse events[41-43], such as anastomotic fistula, intra-abdominal abscess, and enterocutaneous fistula[44]. Approximately 40%-60% of patients exhibit primary non-response to pharmacological therapies[45-48], while 10%-40% develop secondary non-response or experience adverse events necessitating treatment discontinuation[49,50]. Complications frequently occur during the course of IBD, and intestinal surgery is sometimes inevitable[5,51]. Compared with the non-IBD group, the medical expenses of patients with IBD are significantly elevated[52,53]. The majority of the patients expressed concern over their financial circumstances[54], and about 25% of them fall into financial difficulties due to medical expenses[55]. The high cost of IBD is essentially due to the shortage of professionals, which leads to failure in receiving systematic diagnosis and treatment in the early stage of the disease, resulting in poor disease control[56-58].
LLMs suffer from substantial inaccuracy and uncertainty issues[21], while their constraints in dynamic interaction and iterative reasoning limit their applicability in real-world medical settings, failing to meet the demands of personalized patient care[59-61]. Our study demonstrates that an LLM fine-tuned with limited samples via SFT can achieve performance comparable to resident physicians across several key domains of IBD management, while excelling in humanistic care and organizational effectiveness. However, a critical finding was the IBD-LLM’s lower score in diagnostic accuracy compared to residents (2.88 vs 3.47, P = 0.001). This discrepancy may stem from the nature of the training data; while SFT effectively taught the model conversational patterns and clinical reasoning from expert-annotated dialogues, it may not have fully captured the nuanced, iterative diagnostic heuristics that experienced clinicians develop over years. Specifically, a detailed analysis of the lower-scoring interactions revealed that the IBD-LLM occasionally exhibited incomplete medical history taking in complex cases and omitted crucial differential diagnoses when symptoms overlapped with other gastrointestinal disorders. For instance, for concurrent abdominal pain and altered bowel habits, the IBD-LLM sometimes prematurely concluded without probing for alarm symptoms or recommending endoscopy, thus missing underlying IBD. Such errors highlight its limitations with ambiguous presentations, supporting its role as an adjunct rather than a standalone diagnostician. This suggests that while SFT can rapidly enhance a model’s utility, mastering complex diagnostic reasoning remains a distinct challenge that may require more extensive or specialized data.
The model’s superior performance in humanistic care and clinical judgment is noteworthy. This could be attributed to the high-quality dialogues used for SFT, which were meticulously reconstructed to incorporate not only clinical facts but also the empathetic and logical aspects of doctor-patient communication. This highlights a potential strength of the SFT approach: By curating data that exemplifies desired clinical behaviors, we can shape an AI’s “soft skills” more effectively than its “hard skills” like diagnosis. This finding confirms that AI-assisted tools represent viable solutions for healthcare systems grappling with physician shortages, particularly in resource-constrained settings, but their optimal role may be as an adjunct that enhances efficiency and patient interaction, rather than as a standalone diagnostician.
A notable finding was the absence of AI hallucinations during the simulated interactions. While this is encouraging, it is crucial to view this result within the context of our study’s limitations. The absence of hallucinations may be primarily attributed to the strict question-and-answer structure of the high-quality SFT corpus, which closely bound the model’s outputs to established clinical reasoning pathways. Additionally, the extremely low learning rate (0.0002) may have played a crucial constraining role, preventing the model from overfitting or generating unprompted associations. This does not guarantee similar safety in more complex, real-world settings, and the risk remains, particularly as the model is tasked with more ambiguous patient presentations. Therefore, future safeguards, such as real-time clinician validation and integration with evidence-based databases, are essential before clinical deployment.
Our decision to use a general LLM as a baseline was strategic, offering distinct advantages in resource accessibility and fine-tuning feasibility over domain-specific models. This approach effectively lowers the barrier for developing specialized medical AI, aligning with the practical needs of resource-limited healthcare environments. While our IBD-LLM shows promise, its current evaluation was conducted in a simulated setting. Real clinical practice is far more complex and dynamic, meaning the model’s performance may not fully align with its effectiveness in actual patient care. Prospective validation studies are necessary to establish its clinical viability. The study is further limited by its single-center data, simulated evaluation environment, lack of iterative learning mechanisms, and notably, the exceedingly limited sample sizes for both the training set (97 cases) and validation set (30 cases). These small sample sizes are insufficient to encompass the vast complexity of IBD and its wide array of differential diagnoses. Therefore, future research must prioritize large-scale, multicenter, prospective validation to confirm the model’s effectiveness and safety in real-world clinical workflows.
CONCLUSION
In this study, we demonstrated that a specialized IBD-LLM can be efficiently trained via SFT with a small, high-quality dataset. The model showed promising capabilities, performing on par with resident physicians in several critical domains of medical history collection and clinical interaction, which highlights its potential as a supportive tool to alleviate workforce pressures (Figure 7). However, its lower performance in diagnostic accuracy compared to residents underscores that while SFT can rapidly enhance a model’s clinical utility, mastering complex diagnostic reasoning remains a key challenge. This finding suggests that the model is best positioned as an adjunct to assist physicians, particularly in high-volume or resource-constrained settings, rather than as a replacement for clinical judgment. While the absence of AI hallucinations in our simulated study is a positive indicator, this result is conditional and does not eliminate the risk in broader clinical applications. The study is limited by its single-center data, simulated evaluation environment, and lack of iterative learning mechanisms. Therefore, future research must prioritize multicenter, prospective validation to confirm the model’s effectiveness and safety in real-world clinical workflows. Addressing these limitations through larger, more diverse datasets and continuous learning frameworks will be essential to fully realize the transformative potential of AI-assisted tools in medicine.
Figure 7 Clinical scenarios with and without inflammatory bowel disease-large language model assistance.
LLM: Large language model; AI: Artificial intelligence; IBD: Inflammatory bowel disease.
Stamm R, Aluzaite K, Arnold M, Caspritz T, White C, Schultz M. Challenges for the future: the gastroenterology specialist workforce in New Zealand.N Z Med J. 2020;133:32-40.
[PubMed] [DOI]
Ng SC, Shi HY, Hamidi N, Underwood FE, Tang W, Benchimol EI, Panaccione R, Ghosh S, Wu JCY, Chan FKL, Sung JJY, Kaplan GG. Worldwide incidence and prevalence of inflammatory bowel disease in the 21st century: a systematic review of population-based studies.Lancet. 2017;390:2769-2778.
[RCA] [PubMed] [DOI] [Full Text][Cited by in Crossref: 5207][Cited by in RCA: 4831][Article Influence: 536.8][Reference Citation Analysis (17)]
Buie MJ, Quan J, Windsor JW, Coward S, Hansen TM, King JA, Kotze PG, Gearry RB, Ng SC, Mak JWY, Abreu MT, Rubin DT, Bernstein CN, Banerjee R, Yamamoto-Furusho JK, Panaccione R, Seow CH, Ma C, Underwood FE, Ahuja V, Panaccione N, Shaheen AA, Holroyd-Leduc J, Kaplan GG; Global IBD Visualization of Epidemiology Studies in the 21st Century (GIVES-21) Research Group, Balderramo D, Chong VH, Juliao-Baños F, Dutta U, Simadibrata M, Kaibullayeva J, Sun Y, Hilmi I, Raja Ali RA, Paudel MS, Altuwaijri M, Hartono JL, Wei SC, Limsrivilai J, El Ouali S, Vergara BI, Dao VH, Kelly P, Hodges P, Miao Y, Li M. Global Hospitalization Trends for Crohn's Disease and Ulcerative Colitis in the 21st Century: A Systematic Review With Temporal Analyses.Clin Gastroenterol Hepatol. 2023;21:2211-2221.
[RCA] [PubMed] [DOI] [Full Text][Cited by in Crossref: 268][Cited by in RCA: 201][Article Influence: 67.0][Reference Citation Analysis (1)]
Fan ZH, Tang JL, Chen W, Wang SY, Wei ZY, Xi J, Huang F, Zhou JR.
AI Hospital: Benchmarking Large Language Models in a Multi-agent Medical Interaction Simulator. Available from: arXiv:2402.09742.
[PubMed] [DOI] [Full Text]
Liu F, Zhou H, Gu B, Zou X, Huang J, Wu J, Li Y, Chen SS, Hua Y, Zhou P, Liu J, Mao C, You C, Wu X, Zheng Y, Clifton L, Li Z, Luo J, Clifton DA. Application of large language models in medicine.Nat Rev Bioeng. 2025;3:445-464.
[PubMed] [DOI] [Full Text]
Alsentzer E, Murphy J, Boag W, Weng W, Jindi D, Naumann T, Mcdermott M.
Publicly Available Clinical NERT Embeddings. Proceedings of the 2nd Clinical Natural Language Processing Workshop; 2019 Jun 7; Minneapolis, MN, United States. Association for Computational Linguistics, 2019: 72-78.
[PubMed] [DOI]
Dong G, Yuan H, Lu K, Li C, Xue M, Liu D, Wang W, Yuan Z, Zhou C, Zhou J.
How Abilities in Large Language Models are Affected by Supervised Fine-tuning Data Composition. Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers); 2024 August 11-16; Bangkok, Thailand. Association for Computational Linguistics, 2024: 177-198.
[PubMed] [DOI]
Gunel B, Du J, Conneau A, Stoyanov V.
Supervised Contrastive Learning for Pre-trained Language Model Fine-tuning. Available from: arXiv:2011.01403.
[PubMed] [DOI] [Full Text]
Li Z, Chen C, Xu T, Qin Z, Xiao J, Luo ZQ, Sun R.
Preserving Diversity in Supervised Fine-Tuning of Large Language Models. Available from: arXiv:2408.16673.
[PubMed] [DOI] [Full Text]
Merner B, Schonfeld L, Virgona A, Lowe D, Walsh L, Wardrope C, Graham-Wisener L, Xafis V, Colombo C, Refahi N, Bryden P, Chmielewski R, Martin F, Messino NM, Mussared A, Smith L, Biggar S, Gill M, Menzies D, Gaulden CM, Earnshaw L, Arnott L, Poole N, Ryan RE, Hill S. Consumers' and health providers' views and perceptions of partnering to improve health services design, delivery and evaluation: a co-produced qualitative evidence synthesis.Cochrane Database Syst Rev. 2023;3:CD013274.
[RCA] [PubMed] [DOI] [Full Text] [Full Text (PDF)][Cited by in Crossref: 15][Cited by in RCA: 31][Article Influence: 10.3][Reference Citation Analysis (0)]
Ye Q, Liu J, Chong D, Zhou P, Hua Y, Liu F, Cao M, Wang Z, Cheng X, Lei Z, Guo Z.
Qilin-Med: Multi-stage Knowledge Injection Advanced Medical Large Language Model. Available from: arXiv:2310.09089.
[PubMed] [DOI] [Full Text]
Wang H, Liu C, Xi N, Qiang Z, Zhao S, Qin B, Liu T.
HuaTuo: Tuning LLaMA Model with Chinese Medical Knowledge. Available from: arXiv:2304.06975.
[PubMed] [DOI] [Full Text]
Han T, Adams LC, Papaioannou JM, Grundmann P, Oberhauser T, Figueroa A, Loser A, Truhn D, Bressem KK.
MedAlpaca -- An Open-Source Collection of Medical Conversational AI Models and Training Data. Available from: arXiv:2304.08247.
[PubMed] [DOI] [Full Text]
Zhang X, Tian C, Yang X, Chen L, Li Z, Petzold LR.
AlpaCare:Instruction-tuned Large Language Models for Medical Application. Available from: arXiv:2310.14558.
[PubMed] [DOI] [Full Text]
Yang S, Zhao H, Zhu S, Zhou G, Xu H, Jia Y, Zan H.
Zhongjing: Enhancing the Chinese Medical Capabilities of Large Language Model through Expert Feedback and Real-world Multi-turn Dialogue. Available from: arXiv:2308.03549.
[PubMed] [DOI] [Full Text]
Kennedy NA, Heap GA, Green HD, Hamilton B, Bewshea C, Walker GJ, Thomas A, Nice R, Perry MH, Bouri S, Chanchlani N, Heerasing NM, Hendy P, Lin S, Gaya DR, Cummings JRF, Selinger CP, Lees CW, Hart AL, Parkes M, Sebastian S, Mansfield JC, Irving PM, Lindsay J, Russell RK, McDonald TJ, McGovern D, Goodhand JR, Ahmad T; UK Inflammatory Bowel Disease Pharmacogenetics Study Group. Predictors of anti-TNF treatment failure in anti-TNF-naive patients with active luminal Crohn's disease: a prospective, multicentre, cohort study.Lancet Gastroenterol Hepatol. 2019;4:341-353.
[RCA] [PubMed] [DOI] [Full Text][Cited by in Crossref: 592][Cited by in RCA: 560][Article Influence: 80.0][Reference Citation Analysis (16)]
Sandborn WJ, Feagan BG, Rutgeerts P, Hanauer S, Colombel JF, Sands BE, Lukas M, Fedorak RN, Lee S, Bressler B, Fox I, Rosario M, Sankoh S, Xu J, Stephens K, Milch C, Parikh A; GEMINI 2 Study Group. Vedolizumab as induction and maintenance therapy for Crohn's disease.N Engl J Med. 2013;369:711-721.
[RCA] [PubMed] [DOI] [Full Text][Cited by in Crossref: 1826][Cited by in RCA: 1682][Article Influence: 129.4][Reference Citation Analysis (8)]
Fiorino G, Lytras T, Younge L, Fidalgo C, Coenen S, Chaparro M, Allocca M, Arnott I, Bossuyt P, Burisch J, Campmans-Kuijpers M, de Ridder L, Dignass A, Drohan C, Feakins R, Gilardi D, Grosek J, Groß E, Hart A, Jäghult S, Katsanos K, Lönnfors S, Panis Y, Perovic M, Pierik M, Rimola J, Tulchinsky H, Gisbert JP. Quality of Care Standards in Inflammatory Bowel Diseases: a European Crohn's and Colitis Organisation [ECCO] Position Paper.J Crohns Colitis. 2020;14:1037-1048.
[RCA] [PubMed] [DOI] [Full Text][Cited by in Crossref: 99][Cited by in RCA: 103][Article Influence: 17.2][Reference Citation Analysis (4)]
Nastasi AJ, Courtright KR, Halpern SD, Weissman GE.
Does ChatGPT Provide Appropriate and Equitable Medical Advice?: A Vignette-Based, Clinical Evaluation Across Care Contexts. 2023 Preprint.
[PubMed] [DOI] [Full Text]