Urinary Bladder Acute Inflammations and Nephritis of the Renal Pelvis: Diagnosis Using Fine-Tuned Large Language Models
2025 (English)In: Journal of Personalized Medicine, E-ISSN 2075-4426, Vol. 15, no 2, article id 45Article in journal (Refereed) Published
Abstract [en]
Background: Large language models (LLMs) have seen a significant boost recently in the field of natural language processing (NLP) due to their capabilities in analyzing words. These autoregressive models prove robust in classification tasks where texts need to be analyzed and classified. Objectives: In this paper, we explore the power of base LLMs such as Generative Pre-trained Transformer 2 (GPT-2), Bidirectional Encoder Representations from Transformers (BERT), Distill-BERT, and TinyBERT in diagnosing acute inflammations of the urinary bladder and nephritis of the renal pelvis. Materials and Methods: the LLMs were trained and tested using supervised fine-tuning (SFT) on a dataset of 120 examples that include symptoms that may indicate the occurrence of these two conditions. Results: By employing a supervised fine-tuning method and carefully crafted prompts to present the data, we demonstrate the feasibility of using minimal training data to achieve a reasonable diagnostic, with overall testing accuracies of 100%, 100%, 94%, and 79%, for GPT-2, BERT, Distill-BERT, and TinyBERT, respectively.
Place, publisher, year, edition, pages
Multidisciplinary Digital Publishing Institute (MDPI) , 2025. Vol. 15, no 2, article id 45
Keywords [en]
autoregressive, BERT, Distill-BERT, GPT-2, large language models, LLMs, NLP, SFT, supervised fine-tuning, TinyBERT, transformer, accuracy, Article, body temperature, convolutional neural network, cystitis, dysuria, human, kidney pelvis, language processing, large language model, learning, low back pain, machine learning, nausea, nephritis, random forest, urethritis, urinary bladder acute inflammation
National Category
Natural Language Processing
Identifiers
URN: urn:nbn:se:liu:diva-222947DOI: 10.3390/jpm15020045PubMedID: 39997322Scopus ID: 2-s2.0-85218858252OAI: oai:DiVA.org:liu-222947DiVA, id: diva2:2053495
2026-04-162026-04-162026-06-27