Full text
44,823 characters
· extracted from
preprint-html
· click to expand
Application of a general LLM-based classification system to retrieve information about oncological trials | medRxiv /* */ /* */ <!-- <!-- /*! * yepnope1.5.4 * (c) WTFPL, GPLv2 */ (function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0];var j=d.createElement(s);var dl=l!='dataLayer'?'&l='+l:'';j.src='//www.googletagmanager.com/gtm.js?id='+i+dl;j.type='text/javascript';j.async=true;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-P4HH5NV'); Skip to main content Home About Submit ALERTS / RSS Search for this keyword Advanced Search Application of a general LLM-based classification system to retrieve information about oncological trials View ORCID Profile Fabio Dennstädt , Paul Windisch , Irina Filchenko , Johannes Zink , Paul Martin Putora , Ahmed Shaheen , Roberto Gaio , Nikola Cihoric , Marie Wosny , Stefanie Aeppli , Max Schmerder , Mohamed Shelan , Janna Hastings doi: https://doi.org/10.1101/2024.12.03.24318390 Fabio Dennstädt 1 Department of Radiation Oncology, Inselspital, Bern University Hospital and University of Bern , Switzerland 2 School of Medicine, University of St. Gallen , St. Gallen, Switzerland Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Fabio Dennstädt For correspondence: fabiodennstaedt{at}gmx.de Paul Windisch 3 Department of Radiation Oncology, Cantonal Hospital Winterthur , Winterthur, Switzerland Find this author on Google Scholar Find this author on PubMed Search for this author on this site Irina Filchenko 4 Department of Neurology, Inselspital, Bern University Hospital and University of Bern , Switzerland Find this author on Google Scholar Find this author on PubMed Search for this author on this site Johannes Zink 5 TUM School of Computation, Information and Technology (CIT), Technical University of Munich , Heilbronn, Germany Find this author on Google Scholar Find this author on PubMed Search for this author on this site Paul Martin Putora 1 Department of Radiation Oncology, Inselspital, Bern University Hospital and University of Bern , Switzerland 6 Department of Radiation Oncology, Cantonal Hospital of St. Gallen , St. Gallen, Switzerland Find this author on Google Scholar Find this author on PubMed Search for this author on this site Ahmed Shaheen 7 Alexandria University, Alexandria Faculty of Medicine , Alexandria, Egypt Find this author on Google Scholar Find this author on PubMed Search for this author on this site Roberto Gaio 1 Department of Radiation Oncology, Inselspital, Bern University Hospital and University of Bern , Switzerland 8 Insel Data Science Center, Inselspital, Bern University Hospital and University of Bern , Switzerland Find this author on Google Scholar Find this author on PubMed Search for this author on this site Nikola Cihoric 1 Department of Radiation Oncology, Inselspital, Bern University Hospital and University of Bern , Switzerland Find this author on Google Scholar Find this author on PubMed Search for this author on this site Marie Wosny 2 School of Medicine, University of St. Gallen , St. Gallen, Switzerland Find this author on Google Scholar Find this author on PubMed Search for this author on this site Stefanie Aeppli 9 Department of Medical Oncology, Cantonal Hospital of St. Gallen , St. Gallen, Switzerland Find this author on Google Scholar Find this author on PubMed Search for this author on this site Max Schmerder 10 Department of Radiology, Inselspital, Bern University Hospital and University of Bern , Switzerland Find this author on Google Scholar Find this author on PubMed Search for this author on this site Mohamed Shelan 1 Department of Radiation Oncology, Inselspital, Bern University Hospital and University of Bern , Switzerland Find this author on Google Scholar Find this author on PubMed Search for this author on this site Janna Hastings 2 School of Medicine, University of St. Gallen , St. Gallen, Switzerland 11 Institute for Implementation Science in Health Care, University of Zurich , Zurich, Switzerland 12 Swiss Institute of Bioinformatics , Lausanne, Switzerland Find this author on Google Scholar Find this author on PubMed Search for this author on this site Abstract Full Text Info/History Metrics Supplementary material Data/Code Preview PDF ABSTRACT Purpose The automated classification of clinical trials and medical literature is increasingly relevant, particularly in oncology, as the volume of publications and trial reports continues to expand. Large Language Models (LLMs) may provide new opportunities for automated diverse classification tasks. In this study, we developed a general-purpose text classification framework using LLMs and evaluated its performance on oncological trial classification tasks. Methods and Materials A general text classification framework with adaptable prompt, model and categories for the classification was developed. The framework was tested with four datasets comprising nine binary classification questions related to oncological trials. Evaluation was conducted using a locally hosted version of Mixtral-8x7B-Instruct v0.1 and three cloud-based LLMs: Mixtral-8x7B-Instruct v0.1, Llama3.1-70B-Instruct, and Qwen-2.5-72B. Results The system consistently produced valid responses with the local Mixtral-8x7B-Instruct model and the Llama3.1-70B-Instruct model. It achieved a response validity rate of 99.70% and 99.88% for the cloud-based Mixtral and Qwen models, respectively. Across all models, the framework achieved an overall accuracy of >94%, precision of >92%, recall of >90%, and an F1-score of >92%. Question-specific accuracy ranged from 86.33% to 99.83% for the local Mixtral model, 85.49% to 99.83% for the cloud-based Mixtral model, 90.50% to 99.83% for the Llama3.1 model, and 77.13% to 99.83% for the Qwen model. Conclusions The LLM-based classification framework exhibits robust accuracy and adaptability across various oncological trial classification tasks. The findings highlight the potential of automated, LLM- driven trial classification systems, which may become increasingly used in oncology. INTRODUCTION The volume of published biomedical research has grown substantially over recent decades ( 1 ). This substantial increase underscores the challenge of efficiently identifying and synthesizing scientific evidence to inform clinical decision-making. In oncology, one of the most rapidly advancing fields of medicine, randomized controlled trials (RCTs) are considered the gold standard for evidence-based decision-making. Accurate classification of trial data is essential, as cancer diagnoses and treatment strategies often rely on a variety of classification systems. These include tumor staging systems like TNM, molecular and genetic profiling, risk stratification systems such as the Gleason Score for prostate cancer, and general health scales like ECOG or Karnofsky Performance Status. Moreover, the diversity of trial settings and endpoints adds complexity. Depending on the research context, clinical trials may evaluate endpoints such as overall survival, progression-free survival, or quality-of-life measures (e.g., ECOG performance scale). In this context, manual curation of research evidence is increasingly impractical. Using natural language processing (NLP) approaches to automatically classify clinical trials or answer certain questions about them has therefore been of longstanding interest ( 2 ) ( 3 ). Due to the large number or trials published every year it is virtually impossible to keep track. On ClinicalTrials.gov alone there are roughly half a million registered studies, most of them interventional studies, with oncology accounting for about a fifth ( 4 ) ( 5 ). An automated system for classifying oncological trials would be highly valuable. Such a system could substantially support systematic literature reviews and meta-analyses, facilitating the maintenance of up-to-date investigations as part of concepts like living systematic reviews ( 6 ) and living guidelines ( 7 ). Current solutions like Trialstreamer ( 8 ) using both machine learning (ML) and rule-based approaches are being used for RCTs. Such systems have shown promising results in extracting defined PICO (population, intervention, comparator and outcome) characteristics about RCTs from scientific abstracts. Using optimization techniques like fine-tuning of ML models and iterative optimization, current solutions can already classify trials with high accuracy into established categories. A classification system that is not only highly accurate but also adaptable to various classification tasks would be highly valuable. Classifying a trial essentially involves answering a predefined categorical question about the trial (e.g., “Is this trial in the field of oncology? Yes or No?” ). The concept of a flexible general classifier is to provide answers to any question without requiring additional development, such as task-specific optimization or fine-tuning. Successful development of such a system has been limited with classical NLP techniques for text classification like bag-of-words models or term-frequency-inversed document frequency (TF-IDF) ( 9 ). In contrast, traditional ML algorithms (e.g., support vector machines or random forests) often require extensive feature engineering and struggle to generalize across diverse tasks or datasets ( 10 ). Large Language Models (LLMs) are trained on extensive datasets and provide innovative ways to interpret data, access knowledge, and answer complex questions ( 11 ). Recent advancements in LLM performance have enabled a range of new applications in medical and clinical knowledge generation and analysis. LLMs have demonstrated substantial potential across various tasks, including medical question-answering ( 12 ), summarization of clinical text ( 13 ), data extraction from unstructured text ( 14 ), and generating high-quality medical writing ( 15 ). In one of our studies, we developed a framework for automated LLM-based title-and-abstract screening, showing promising results across various biomedical domains ( 16 ). Title-and-abstract screening to check for the relevance of a publication is a specific classification application ( “Is this publication relevant for the topic? Yes or No?” ). Based on our previous work, we tested the feasibility of developing a general classifier to answer various questions about oncological trials based on corresponding text (like the abstract of the publication). METHODS Development of a general LLM-based classification framework We developed a straightforward, general approach for using LLMs to classify any given text into user- defined categories. An overview of the concept is shown in Figure 1 . Download figure Open in new tab Figure 1: Schematic illustration of the general classifier framework. The output of the LLM is either directly constrained (if run on local hardware) or can be analyzed using regular expressions. The approach follows these steps: Defining categories: The categories for classification are specified by the user. Text input: The model receives a text string for the classification task, which includes: A text description of the classification task and the predefined categories. The text to be classified, based on the task or question to be answered. LLM: An LLM is run to perform the classification and is run either locally or called via API. The model generates a text output based on the input. Category determination: The output is either directly constrained to ensure it matches one of the defined categories, or it is analyzed with methods such as regular expressions to determine which category the model has selected. Constraining the output of an LLM has the advantage, that the classifier will always give a valid response as it must select one of the defined categories. Constraining can be done using local implementation of libraries like Guidance ( 17 ) or Outlines ( 18 ). However, as libraries need to be directly implemented when performing output calculations, the model is run on local hardware. This can be a problem if state-of- the-art models are used that require adequate hardware infrastructure and considerable computing resources. To implement and test more resource-intense models that could not be run on our local hardware (i.e., two Nvidia RTX6000 GPUs, each of which with 48GB of RAM), we used the cloud service DeepInfra ( 19 ). Since direct constraining of the output is not possible if models are called via API in a cloud-based approach, we used in these cases regular expressions to check for the occurrence of the defined categories in the output of the model. However, in this case the output of an LLM is not principally limited. For the experiments using the cloud computing solution, it is therefore possible that the general classifier gives an invalid output if the answer does not contain a text string corresponding to one of the defined categories. A Python script was created to implement this process, including the direct evaluation of the approach and a basic user interface (UI). The script is publicly available at https://github.com/med-data-tools/general-classifier . Large Language Models Different models were tested for the general classifier framework to investigate the approach with various LLMs that are also diverse regarding design and training data. The following three open-source models were used in the experiments: Mixtral-8x7B-Instruct-v0.1 is a pretrained generative Mixture of Experts LLM developed by Mistral AI ( 20 ), ( 21 ). It is a powerful model reported to outperform gpt-3.5-turbo, Claude-2.1, Gemini Pro, and Llama 2 70B-chat on human benchmarks. The script with the model was run both on our local hardware (using a GPTQ version of the model ( 22 )), as well as on cloud computing ( 23 ). It should be noted that some small variations in output between local and cloud-based model variant are to be expected due to differences in model versions (GPTQ vs. base), hardware configurations, software environments, and drivers. Meta-Llama-3.1-70B-Instruct is a powerful model published in July 2024 by Meta AI ( 24 ). The model is specifically tuned for improved reliability and safety in real-world applications. It builds on the Llama 3 architecture with fine-tuning that optimizes response accuracy, reduces biases, and increases usability, targeting better alignment with user intent and enhancing adaptability across various tasks. The model was run using cloud computing ( 25 ). Qwen2.5-72B-Instruct is Alibaba’s advanced LLM ( 26 ) designed for high-performance instruction-following with a focus on accuracy and depth in complex tasks. With 72 billion parameters, this model improves understanding and response generation, aiming for versatility across professional and technical domains. The model was run using cloud computing ( 27 ). Datasets and questions for the evaluation For the evaluation, several datasets created by human annotators classifying oncological trials were used. Four different datasets with eleven classification tasks were used in the study. The first two datasets had been annotated as part of previous projects of our group ( 28 ) ( 29 ) ( 30 ) ( 31 ). The third and fourth dataset were created as part of an ongoing systematic review of clinical trials on metastatic castration-resistant prostate cancer (mCRPC) ( 32 ). Briefly, the trials in the third and fourth dataset were independently annotated by two researchers (SA and MW) with a third researcher (JH) making a final decision in case of disagreement. All datasets had been created after publication of the LLMs, ensuring that the datasets were not part of the training data of the models. Dataset 1 contains the abstracts of 899 trials with labels whether they are oncological trials and/or RCTs. Dataset 2 contains the abstracts of 600 oncological trials with labels whether patients with non- metastatic and/or metastatic disease were included and labels about the type of primary cancer. Dataset 3 contains abstracts with accompanying information about 144 oncological trials and the label whether it is a trial about patients with mCRPC. Dataset 4 contains abstracts with accompanying information about 64 oncological trials and the label of whether the trial investigated a therapeutic intervention. To ensure clear binary categories, the datasets were designed or adapted by breaking down compound classifications or questions into corresponding binary questions answerable with ‘true/false’ or ‘yes/no’. Figure 2 illustrates how more complex questions in Dataset 1 and Dataset 2 were simplified into corresponding binary questions. Download figure Open in new tab Figure 2: Schematic illustration of breaking down of compound classifications or questions into corresponding binary questions answerable with ‘true/false’ or ‘yes/no’. Breaking down the questions this way simplifies the task and defines clear concepts with mutually exclusive binary categories. This is important for the classification as only a single category is selected by the general classifier . Furthermore, it allows the calculation of classification metrics like accuracy, precision, recall and F1-score. However, it should be noted that the script in general works also with more than two categories and can also perform several classification tasks in the same run on one dataset. In total nine binary questions labeled with “true” and “false” were provided in the datasets on which the classifier was tested ( Figure 3 ). Download figure Open in new tab Figure 3: Questions/classification tasks in the four datasets used in the study with the proportion of answers labeled with ‘yes/true’ and ‘no/false’. The datasets used in the study are provided at https://github.com/med-data-tools/general-classifier . Prompts for classification tasks The relevant flexible factor changed by the user of the general classifier is the input text / prompt given to the LLM explaining the classification task. The prompts were created in a non-systematic way following a basic structure containing a brief Instruction (“You are a helpful classifier”), followed by a brief explanation that a question about a clinical trial is to be answered followed by the text for classification and the question. Furthermore, the beginning of the answer to that question was also included, so that a reasonable context is already given before the LLM provides the answer. As an example, the prompt for the question on RCTs was the following: “ INSTRUCTION: You are a helpful classifier. You are given the abstract of a scientific publication and you have to decide whether it is of a Randomized Controlled Trial (Answer is ‘TRUE’) or it is not of a Randomized Controlled Trial (Answer is ‘FALSE’). QUESTION: The abstract is ‘[TEXT]’. ANSWER: The correct answer for this abstract is ‘‘ “ (The [TEXT] string is replaced with the abstract of the trial to be classified). The settings and prompts used in the experiments for all the questions are provided at https://github.com/med-data-tools/general-classifier . As it has been shown, multiple strategies exist to improve outputs from LLMs and enhance performance in LLM-based classification tasks ( 33 ). However, the goal of the general classifier framework is to create a flexible tool that could be applied to new questions without requiring extensive prompt optimization. Consequently, no systematic or unsystematic optimization of the prompts was conducted for this study. Evaluation, statistical analyses The performance of the classifier, based on the model used, was evaluated using accuracy, precision, recall, and F1-score. In cases where cloud computing was utilized (using non-constrained output), the number of invalid responses produced by the classifier was also measured. These metrics were calculated for individual datasets as well as for the combined data, aggregating all classification cases. RESULTS Performance of locally run Mixtral-8x7B-Instruct-v0.1-GPTQ (Constrained output) Since the output of the locally run Mixtral-8x7B-Instruct v0.1-GPTQ was constrained, it always gave valid responses for the classification. Figure 4 shows the confusion matrices of the general LLM-based classifier on all nine questions across the four datasets using the locally run model. Download figure Open in new tab Figure 4: Confusion matrices for the performance of the general classifier using the local Mixtral-8x7B-Instruct-v0.1-GPTQ model. In comparison, using the cloud-run version with output analysis using regular expressions, the Mixtral8x7B model returned some invalid responses (1.56%) on the question “Were patients with localized cancer disease included in this trial?” , while valid responses were obtained for all the other questions. The Qwen-2.5.-72B-Instruct model provided some invalid responses (0.33 to 0.11%) on 4 of the 9 questions. The Llama-3.1-Instruct-v0.1 always returned valid responses. An overview is provided in Supplementary Table 1 . Table 1 provides an overview of the overall classification metrics using the different models. View this table: View inline View popup Download powerpoint Table 1. Classification metrics of different LLMs on all nine questions. Values for best-performing model in bold. The lowest performance across all models was observed for the question “ Were patients with localized cancer disease included in this trial? ” with accuracies of 86.33% (Mixtral local), 85.49% (Mixtral cloud), 90.50% (Llama3.1), and 77.13% (Qwen2.5). For the remaining eight questions, all models achieved accuracies above 90%, with the Llama3.1 model reaching accuracies greater than 95%. An overview of the classification metrics of the models on the individual questions is provided in Supplementary Table 2 . DISCUSSION Comparison with classical NLP approaches Recent technological advancements led to improved performance of LLMs. Apart from well-known examples like general chat systems (e.g., ChatGPT), successful medical applications were demonstrated for various tasks like summarization, translation, or data extraction ( 13 ) ( 14 ). Text classification is a foundational task in NLP with proven success in well-defined use cases. As the volume of medical literature, particularly in oncology, continues to grow, automated systems for the classification and analysis of scientific publications are increasingly important. Our findings demonstrate that a general-purpose classification system using modern LLMs can effectively analyze clinical trials by accurately answering related questions. Unlike traditional ML and NLP approaches, this general classifier does not require task-specific adaptations (e.g., fine-tuning or retraining), beyond providing the appropriate text prompt for the classification task. In a previous study we used a RoBERTa-based transformer model to classify the dataset on RCTs ( Is this a randomized controlled trial (RCT)? ) after training the model using a random 85:15 split. The system achieved an accuracy of 94%, precision of 100%, recall of 92% and an F1-score of 96% ( 31 ), which is comparable to the performance of the general classifier using the Llama 3.1 model (see also Supplementary Table 2 ). Also on other datasets tested in some of our previous studies ( 31 ) ( 34 ) the general classifier achieved good performance with results comparable to optimized ML- and rule-based approaches. The results of our study show that an LLM-based general classifier can be applied to various questions on oncological trials with high rates of accuracy. There are numerous potential applications and use cases for such a system, including citation screening, collection of trial eligibility criteria (see also ( 35 )), and grouping of trials based on specific criteria. Automating these tasks can aid in systematic literature reviews, meta-analyses, knowledge collection, and trial database management. While the approach used in the LLM-based general classifier was applied to oncological trials in this study, it could be applied to other domains as well. The system can, in principle, classify any given text into any set of user-defined categories, making it highly adaptable to a wide range of use cases. While the framework itself is general, depending on the specific use case, optimization techniques such as fine-tuning LLMs, in-context learning, or prompt optimization could still be applied. However, the fact that the system achieved high performance without relying on such techniques suggests its potential for widespread applicability and utility. Rather than relying on widely used, powerful LLMs provided by private companies, such as GPT-4 by OpenAI or Claude 3.5 by Anthropic, we deliberately chose to use open-source models. While these models are still resource-intensive (which is why we needed to rely on cloud computing services), they can, in principle, be deployed on local hardware in a private environment. Relying on LLMs that are accessible only through APIs, effectively “black boxes” controlled by private companies, limits transparency and could hinder the accessibility of the system. For academic biomedical research, it is preferable for literature or trial classification systems to be independent of proprietary LLMs provided by tech companies, ensuring greater transparency and autonomy. While the results of our study are promising, there are several limitations. The approach itself is resource-intensive and requires adequate hardware to function effectively. Additionally, we tested the method on a limited set of nine questions, which can be answered by binary ‘True/False’ answers. As a result, the generalizability of the findings may be restricted. Using binary categories, rather than multiple categories, enables clearer definitions and facilitates better interpretation of results. In general, classification tasks with multiple categories can be broken down into binary categories (see Figure 2 ). Overall, selecting a single correct class from multiple choices is meaningful only when the categories are mutually exclusive and free from semantic overlap. It is important to note that evaluating an LLM-based classification system requires the use of new, unseen datasets. LLMs which are trained on extensive internet text data ( 11 ), should not have previously encountered the datasets used in such evaluations. The presented general classifier framework itself, also has limitations. Although it can be used to answer questions about oncological trials, it is currently limited to questions with categorical answers. For example, questions requiring numerical responses, such as “How many patients were included in this trial?” , cannot be answered in its present form. Additionally, the framework is confined to text-based data, meaning that information presented in non-textual forms, such as figures and tables, cannot be directly incorporated into the classification process. Future developments may explore the use of vision-language models or integrate optical character recognition (OCR) technologies into such a framework, which could enable the inclusion of such visual data ( 36 ). A fundamental limitation of any LLM-based approach is its reliance on the input prompt, which directly influences the results. While the ability to modify the input prompt is a key feature that allows the classification system to be flexible, it also makes the LLM output, and, consequently, the performance of the classifier, difficult to predict. Thus, it is essential to formulate clear, well-defined questions with unambiguous answers. Precise descriptions and clear definitions are required to ensure high performance of a classification system. This may partly explain the slight decline in the performance on the less clearly defined question, “ Were patients with localized disease included in this trial? ”. However, ambiguous definitions would likely also affect human performance, leading to inconsistencies in answering such questions. Despite these limitations, we believe LLM-based classification systems will play a crucial role in the analysis of medical literature and clinical trials in the future. Oncology might benefit substantially from these advancements, as it involves complex criteria, large datasets, and the nuanced interpretation of clinical evidence to guide decision-making. CONCLUSIONS The general classifier developed in our study demonstrated promising results in answering a variety of questions related to oncological trials. It offers a flexible framework for the automatic classification of trials, literature, and other text forms into predefined categories. While there are still some limitations that need to be addressed in future work, we are confident that LLM-based classification systems will become increasingly valuable, particularly in oncological research. Data Availability The source code for the general classifier as well as the datasets used in the experiments are available at https://github.com/med-data-tools/general-classifier https://github.com/med-data-tools/general-classifier Code and data availability statement The source code for the general classifier as well as the datasets used in the experiments are available at https://github.com/med-data-tools/general-classifier Author contributions Conceptualization – FD, JZ, NC, JH Methodology, technical implementation – FD, JZ, RG Methodology, creation of datasets – PW, MW, SA, JH Statistical Analysis – FD Writing, original draft preparation – FD, PW, JZ, PMP, NC, MW, MSc, MSh Writing, illustrations – FD, PW, IF Writing, review and editing – All authors Project administration – FD, NC, JH Competing interests Dr. Cihoric is a technical lead for the SmartOncology project and medical advisor for Wemedoo AG, Steinhausen AG, Switzerland. The authors declare no other conflicts of interest. Acknowledgements Not applicable. Footnotes Contact, Fabio Dennstädt – fabio.dennstaedt{at}insel.ch List of abbreviations AI artificial intelligence API application programming interface ISROI International Society for Radiation Oncology LLM Large Language Model mCRPC metastatic castration resistant prostate cancer ML machine learning NLP natural language processing OCR optical character recognition PICO population, intervention, comparator and outcome RCT randomized controlled trial TF-IDF term-frequency-inversed document frequency UI – user interface References 1. ↵ Bornmann L , Mutz R. Growth rates of modern science: A bibliometric analysis based on the number of publications and cited references . Asso for Info Science & Tech . 2015 Nov ; 66 ( 11 ): 2215 – 22 . OpenUrl 2. ↵ Kilicoglu H , Rosemblat G , Hoang L , Wadhwa S , Peng Z , Malički M , et al. Toward assessing clinical trial publications for reporting transparency . Journal of Biomedical Informatics . 2021 Apr ; 116 : 103717 . OpenUrl PubMed 3. ↵ Schmidt L , Sinyor M , Webb RT , Marshall C , Knipe D , Eyles EC , et al. A narrative review of recent tools and innovations toward automating living systematic reviews and evidence syntheses . Zeitschrift für Evidenz, Fortbildung und Qualität im Gesundheitswesen . 2023 Sep ; 181 : 65 – 75 . OpenUrl 4. ↵ Hirsch BR , Califf RM , Cheng SK , Tasneem A , Horton J , Chiswell K , et al. Characteristics of Oncology Clinical Trials: Insights From a Systematic Analysis of ClinicalTrials.gov . JAMA Intern Med . 2013 Jun 10; 173 ( 11 ): 972 . OpenUrl PubMed 5. ↵ Boston University Medical Campus and Boston medical Center: ClinicalTrials.gov – What, Why , Which Studies, When [Internet] . Available from: https://www.bumc.bu.edu/ohra/clinicaltrials-gov/clinicaltrials-gov-what-why-which-studies-when/ 6. ↵ Cochrane Community: Living systematic reviews [Internet] . Available from: https://community.cochrane.org/review-development/resources/living-systematic-reviews 7. ↵ ESMO: Living Guidelines [Internet] . Available from: https://www.esmo.org/living-guidelines/ 8. ↵ Marshall IJ , Nye B , Kuiper J , Noel-Storr A , Marshall R , Maclean R , et al. Trialstreamer: A living, automatically updated database of clinical trial reports . Journal of the American Medical Informatics Association . 2020 Dec 9; 27 ( 12 ): 1903 – 12 . OpenUrl PubMed 9. ↵ Métais E. Enhancing information systems management with natural language processing techniques . Data & Knowledge Engineering . 2002 Jun ; 41 ( 2–3 ): 247 – 72 . OpenUrl 10. ↵ Montejo-Ráez A , Jiménez-Zafra SM. Current Approaches and Applications in Natural Language Processing . Applied Sciences . 2022 May 11; 12 ( 10 ): 4859 . OpenUrl 11. ↵ Minaee S , Mikolov T , Nikzad N , Chenaghlu M , Socher R , Amatriain X , et al. Large Language Models: A Survey [Internet] . arXiv ; 2024 [cited 2024 Nov 25 ]. Available from: http://arxiv.org/abs/2402.06196 12. ↵ Singhal K , Tu T , Gottweis J , Sayres R , Wulczyn E , Hou L , et al. Towards Expert-Level Medical Question Answering with Large Language Models [Internet] . arXiv ; 2023 [cited 2024 Nov 25 ]. Available from: http://arxiv.org/abs/2305.09617 13. ↵ Van Veen D , Van Uden C , Blankemeier L , Delbrouck JB , Aali A , Bluethgen C , et al. Adapted large language models can outperform medical experts in clinical text summarization . Nat Med . 2024 Apr ; 30 ( 4 ): 1134 – 42 . OpenUrl CrossRef PubMed 14. ↵ Huang J , Yang DM , Rong R , Nezafati K , Treager C , Chi Z , et al. A critical assessment of using ChatGPT for extracting structured data from clinical notes . npj Digit Med . 2024 May 1; 7 ( 1 ): 106 . OpenUrl PubMed 15. ↵ Ali SR , Dobbs TD , Hutchings HA , Whitaker IS . Using ChatGPT to write patient clinic letters . The Lancet Digital Health . 2023 Apr ; 5 ( 4 ): e179 – 81 . OpenUrl 16. ↵ Dennstädt F , Zink J , Putora PM , Hastings J , Cihoric N. Title and abstract screening for literature reviews using large language models: an exploratory study in the biomedical domain . Syst Rev . 2024 Jun 15; 13 ( 1 ): 158 . OpenUrl PubMed 17. ↵ GitHub: Guidance [Internet] . Available from: https://github.com/guidance-ai/guidance 18. ↵ GitHub: Outlines [Internet] . Available from: https://github.com/dottxt-ai/outlines 19. ↵ DeepInfra [Internet] . Available from: https://deepinfra.com/ 20. ↵ Huggingface: Mixtral-8x7B-Instruct-v0.1 [Internet] . Available from: https://huggingface.co/mistralai/Mixtral-8x7B-Instruct-v0.1 21. ↵ Jiang AQ , Sablayrolles A , Roux A , Mensch A , Savary B , Bamford C , et al. Mixtral of Experts [Internet] . arXiv; 2024 [cited 2024 Nov 25 ]. Available from: http://arxiv.org/abs/2401.04088 22. ↵ Huggingface: Mixtral-8x7B-Instruct-v0.1-GPTQ [Internet] . Available from: https://huggingface.co/TheBloke/Mixtral-8x7B-Instruct-v0.1-GPTQ 23. ↵ DeepInfra: Mixtral-8x7B-Instruct-v0.1 [Internet] . Available from: https://deepinfra.com/mistralai/Mixtral-8x7B-Instruct-v0.1 24. ↵ Meta AI: Meta-Llama 3.1 [Internet] . Available from: https://ai.meta.com/blog/meta-llama-3-1/ 25. ↵ DeepInfra: Meta-Llama-3.1-70B-Instruct [Internet] . Available from: https://deepinfra.com/meta-llama/Meta-Llama-3.1-70B-Instruct 26. ↵ Qwen: Qwen2.5 [Internet] . Available from: https://qwenlm.github.io/blog/qwen2.5/ 27. ↵ DeepInfra: Qwen2.5-72B-Instruct [Internet] . Available from: https://deepinfra.com/Qwen/Qwen2.5-72B-Instruct 28. ↵ Windisch P , Zwahlen DR . Medical publications with information as to whether a publication reports a randomized controlled trial and/or if it covers an oncology topic [Internet] . Dryad ; 2024 [cited 2024 Nov 25 ]. p. 5207120 bytes. Available from: https://datadryad.org/stash/dataset/doi:10.5061/dryad.gb5mkkx00 29. ↵ Windisch P , Zwahlen DR . Randomized controlled oncology trials with tumor stage inclusion criteria [Internet] . Dryad ; 2024 [cited 2024 Nov 30 ]. p. 4560235 bytes. Available from: https://datadryad.org/stash/dataset/doi:10.5061/dryad.g4f4qrfzn 30. ↵ Windisch P , Dennstädt F , Koechli C , Förster R , Schröder C , Aebersold DM , et al. Metastatic Versus Localized Disease as Inclusion Criteria That Can Be Automatically Extracted From Randomized Controlled Trials Using Natural Language Processing . JCO Clin Cancer Inform . 2024 Dec ;( 8 ): e2400150 . 31. ↵ Windisch P , Dennstädt F , Koechli C , Förster R , Schröder C , Aebersold DM , et al. A Pipeline for the Automatic Identification of Randomized Controlled Oncology Trials and Assignment of Tumor Entities Using Natural Language Processing [Internet] . 2024 [cited 2024 Nov 25 ]. Available from: http://medrxiv.org/lookup/doi/10.1101/2024.07.01.24309767 32. ↵ National Institute for Health and Care Research: Comparing the Efficacy of Therapies for Metastatic Castration-Resistant Prostate Cancer: A Systematic Review of the ClinicalTrials.gov database and Network Meta-Analysis . [Internet] . Available from: https://www.crd.york.ac.uk/prospero/display_record.php?RecordID=499607 33. ↵ Sun X , Li X , Li J , Wu F , Guo S , Zhang T , et al. Text Classification via Large Language Models [Internet] . arXiv ; 2023 [cited 2024 Nov 25 ]. Available from: http://arxiv.org/abs/2305.08377 34. ↵ Windisch P , Dennstädt F , Koechli C , Förster R , Schröder C , Aebersold DM , et al. Metastatic vs . Localized Disease As Inclusion Criteria That Can Be Automatically Extracted From Randomized Controlled Trials Using Natural Language Processing [Internet] . 2024 [cited 2024 Nov 25 ]. Available from: http://medrxiv.org/lookup/doi/10.1101/2024.06.17.24309020 35. ↵ Jin Q , Wang Z , Floudas CS , Chen F , Gong C , Bracken-Clarke D , et al. Matching patients to clinical trials with large language models . Nat Commun . 2024 Nov 18; 15 ( 1 ): 9074 . OpenUrl PubMed 36. ↵ Bordes F , Pang RY , Ajay A , Li AC , Bardes A , Petryk S , et al. An Introduction to Vision-Language Modeling [Internet] . arXiv ; 2024 [cited 2024 Nov 27 ]. Available from: http://arxiv.org/abs/2405.17247 View the discussion thread. Back to top Previous Next Posted December 05, 2024. Download PDF Supplementary Material Data/Code Email Thank you for your interest in spreading the word about medRxiv. NOTE: Your email address is requested solely to identify you as the sender of this article. Your Email * Your Name * Send To * Enter multiple addresses on separate lines or separate them with commas. You are going to email the following Application of a general LLM-based classification system to retrieve information about oncological trials Message Subject (Your Name) has forwarded a page to you from medRxiv Message Body (Your Name) thought you would like to see this page from the medRxiv website. Your Personal Message CAPTCHA This question is for testing whether or not you are a human visitor and to prevent automated spam submissions. Share Application of a general LLM-based classification system to retrieve information about oncological trials Fabio Dennstädt , Paul Windisch , Irina Filchenko , Johannes Zink , Paul Martin Putora , Ahmed Shaheen , Roberto Gaio , Nikola Cihoric , Marie Wosny , Stefanie Aeppli , Max Schmerder , Mohamed Shelan , Janna Hastings medRxiv 2024.12.03.24318390; doi: https://doi.org/10.1101/2024.12.03.24318390 Share This Article: Copy Citation Tools Application of a general LLM-based classification system to retrieve information about oncological trials Fabio Dennstädt , Paul Windisch , Irina Filchenko , Johannes Zink , Paul Martin Putora , Ahmed Shaheen , Roberto Gaio , Nikola Cihoric , Marie Wosny , Stefanie Aeppli , Max Schmerder , Mohamed Shelan , Janna Hastings medRxiv 2024.12.03.24318390; doi: https://doi.org/10.1101/2024.12.03.24318390 Citation Manager Formats BibTeX Bookends EasyBib EndNote (tagged) EndNote 8 (xml) Medlars Mendeley Papers RefWorks Tagged Ref Manager RIS Zotero Tweet Widget Facebook Like Google Plus One Subject Area Oncology Subject Areas All Articles Addiction Medicine (573) Allergy and Immunology (865) Anesthesia (302) Cardiovascular Medicine (4453) Dentistry and Oral Medicine (444) Dermatology (383) Emergency Medicine (609) Endocrinology (including Diabetes Mellitus and Metabolic Disease) (1515) Epidemiology (15242) Forensic Medicine (30) Gastroenterology (1131) Genetic and Genomic Medicine (6615) Geriatric Medicine (669) Health Economics (1001) Health Informatics (4552) Health Policy (1372) Health Systems and Quality Improvement (1614) Hematology (543) HIV/AIDS (1270) Infectious Diseases (except HIV/AIDS) (15929) Intensive Care and Critical Care Medicine (1106) Medical Education (624) Medical Ethics (147) Nephrology (670) Neurology (6625) Nursing (346) Nutrition (999) Obstetrics and Gynecology (1148) Occupational and Environmental Health (957) Oncology (3344) Ophthalmology (979) Orthopedics (369) Otolaryngology (421) Pain Medicine (436) Palliative Medicine (130) Pathology (665) Pediatrics (1696) Pharmacology and Therapeutics (693) Primary Care Research (714) Psychiatry and Clinical Psychology (5461) Public and Global Health (9252) Radiology and Imaging (2207) Rehabilitation Medicine and Physical Therapy (1371) Respiratory Medicine (1197) Rheumatology (597) Sexual and Reproductive Health (715) Sports Medicine (530) Surgery (714) Toxicology (99) Transplantation (289) Urology (265) (function(){function c(){var b=a.contentDocument||a.contentWindow.document;if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'a02c48927b4c8e2e',t:'MTc3OTk2MTA3NQ=='};var a=document.createElement('script');a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();
Text is read by the "Ask this paper" AI Q&A widget below.
Extraction quality varies by source — PMC NXML preserves structure
cleanly, OA-HTML may include some navigation residue, and OA-PDF can
have broken hyphenation. The publisher copy
(via DOI)
is the canonical version.