<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.0 20040830//EN" "journalpublishing.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="2.0" xml:lang="en" article-type="research-article"><front><journal-meta><journal-id journal-id-type="nlm-ta">JMIR Form Res</journal-id><journal-id journal-id-type="publisher-id">formative</journal-id><journal-id journal-id-type="index">27</journal-id><journal-title>JMIR Formative Research</journal-title><abbrev-journal-title>JMIR Form Res</abbrev-journal-title><issn pub-type="epub">2561-326X</issn><publisher><publisher-name>JMIR Publications</publisher-name><publisher-loc>Toronto, Canada</publisher-loc></publisher></journal-meta><article-meta><article-id pub-id-type="publisher-id">v10i1e88404</article-id><article-id pub-id-type="doi">10.2196/88404</article-id><article-categories><subj-group subj-group-type="heading"><subject>Original Paper</subject></subj-group></article-categories><title-group><article-title>Automated Extraction and Coding of Qualitative Data Within Physician-Patient Communication in Cancer Care Using Natural Language Processing: Development and Validation Study</article-title></title-group><contrib-group><contrib contrib-type="author" corresp="yes"><name name-style="western"><surname>Patel</surname><given-names>Jay Sureshbhai</given-names></name><degrees>BDS, MS, PhD</degrees><xref ref-type="aff" rid="aff1">1</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Siminoff</surname><given-names>Laura A</given-names></name><degrees>BA, MA, PhD</degrees><xref ref-type="aff" rid="aff2">2</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Siddiqui</surname><given-names>Zasim Azhar</given-names></name><degrees>BDS, MS, PhD</degrees><xref ref-type="aff" rid="aff3">3</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Thomson</surname><given-names>Maria D</given-names></name><degrees>PhD</degrees><xref ref-type="aff" rid="aff4">4</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Katiyar</surname><given-names>Ritwik</given-names></name><degrees>BS, MS</degrees><xref ref-type="aff" rid="aff1">1</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Memar</surname><given-names>Oqba</given-names></name><degrees>BDS, MSc, DMD</degrees><xref ref-type="aff" rid="aff5">5</xref></contrib></contrib-group><aff id="aff1"><institution>Center for Artificial Intelligence, Data Science, and Informatics, Department of Oral Health Sciences, Kornberg School of Dentistry, Temple University</institution><addr-line>400-C, 3223 N Broad St</addr-line><addr-line>Philadelphia</addr-line><addr-line>PA</addr-line><country>United States</country></aff><aff id="aff2"><institution>Department of Social and Behavioral Sciences, College of Public Health, Temple University</institution><addr-line>Philadelphia</addr-line><addr-line>PA</addr-line><country>United States</country></aff><aff id="aff3"><institution>Department of Pharmaceutical Systems and Policy, West Virginia University</institution><addr-line>Morgantown</addr-line><addr-line>WV</addr-line><country>United States</country></aff><aff id="aff4"><institution>Department of Social and Behavioral Sciences, School of Public Health, Virginia Commonwealth University</institution><addr-line>Richmond</addr-line><addr-line>VA</addr-line><country>United States</country></aff><aff id="aff5"><institution>Department of Restorative Dentistry, Kornberg School of Dentistry, Temple University</institution><addr-line>Philadelphia</addr-line><addr-line>PA</addr-line><country>United States</country></aff><contrib-group><contrib contrib-type="editor"><name name-style="western"><surname>Mavragani</surname><given-names>Amaryllis</given-names></name></contrib></contrib-group><contrib-group><contrib contrib-type="reviewer"><name name-style="western"><surname>Elbattah</surname><given-names>Mahmoud</given-names></name></contrib><contrib contrib-type="reviewer"><name name-style="western"><surname>Chatzimina</surname><given-names>Maria</given-names></name></contrib><contrib contrib-type="reviewer"><name name-style="western"><surname>Hossain</surname><given-names>Md Zakir</given-names></name></contrib><contrib contrib-type="reviewer"><name name-style="western"><surname>Lin</surname><given-names>Yannan</given-names></name></contrib></contrib-group><author-notes><corresp>Correspondence to Jay Sureshbhai Patel, BDS, MS, PhD, Center for Artificial Intelligence, Data Science, and Informatics, Department of Oral Health Sciences, Kornberg School of Dentistry, Temple University, 400-C, 3223 N Broad St, Philadelphia, PA, 19140, United States, 1 (215) 204-7000; <email>patel.jay@temple.edu</email></corresp></author-notes><pub-date pub-type="collection"><year>2026</year></pub-date><pub-date pub-type="epub"><day>26</day><month>11</month><year>2026</year></pub-date><volume>10</volume><elocation-id>e88404</elocation-id><history><date date-type="received"><day>24</day><month>11</month><year>2025</year></date><date date-type="rev-recd"><day>04</day><month>08</month><year>2026</year></date><date date-type="accepted"><day>04</day><month>08</month><year>2026</year></date></history><copyright-statement>&#x00A9; Jay Sureshbhai Patel, Laura A Siminoff, Zasim Azhar Siddiqui, Maria D Thomson, Ritwik Katiyar, Oqba Memar. Originally published in JMIR Formative Research (<ext-link ext-link-type="uri" xlink:href="https://formative.jmir.org">https://formative.jmir.org</ext-link>), 26.11.2026. </copyright-statement><copyright-year>2026</copyright-year><license license-type="open-access" xlink:href="https://creativecommons.org/licenses/by/4.0/"><p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (<ext-link ext-link-type="uri" xlink:href="https://creativecommons.org/licenses/by/4.0/">https://creativecommons.org/licenses/by/4.0/</ext-link>), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in JMIR Formative Research, is properly cited. The complete bibliographic information, a link to the original publication on <ext-link ext-link-type="uri" xlink:href="https://formative.jmir.org">https://formative.jmir.org</ext-link>, as well as this copyright and license information must be included.</p></license><self-uri xlink:type="simple" xlink:href="https://formative.jmir.org/2026/1/e88404"/><abstract><sec><title>Background</title><p>Large-scale analysis of qualitative clinical communication data typically requires substantial manual coding. Natural language processing (NLP) may reduce this burden by converting unstructured physician-patient communication transcripts into structured qualitative data.</p></sec><sec><title>Objective</title><p>This study aimed to develop, test, and validate an NLP application for identifying quality-of-life factors in cancer care communication. We also compared traditional machine learning (ML), rule-based, transformer-based, and out-of-the-box (OoB) large language model (LLM) approaches.</p></sec><sec sec-type="methods"><title>Methods</title><p>We analyzed 434 standardized patient encounter transcripts of physician-patient interactions collected from a prior study. A rule-based SpaCy model, traditional ML models, bidirectional encoder representations from transformer (BERT), Robustly Optimized BERT Pretraining Approach (RoBERTa), and the OoB Qwen3 LLM were evaluated using <italic>F</italic><sub>1</sub>-scores. The highest-performing model was incorporated into a web-based NLP application and further assessed through manual validation.</p></sec><sec sec-type="results"><title>Results</title><p>Transformer-based models demonstrated the strongest performance. RoBERTa achieved the highest initial <italic>F</italic><sub>1</sub>-score of 83%, outperforming BERT at 80%, the OoB Qwen3 LLM model at 39%, and the rule-based SpaCy baseline at 34%. Manual validation of the RoBERTa model produced an <italic>F</italic><sub>1</sub>-score of 91%. The comparatively low performance of Qwen3 indicated that OoB LLM use alone may not produce reliable results for qualitative, domain-specific clinical communication tasks.</p></sec><sec sec-type="conclusions"><title>Conclusions</title><p>A fine-tuned transformer model (RoBERTa) was better suited to capturing the complexity of patient encounter transcripts than traditional ML, rule-based approaches, or an OoB LLM. The findings demonstrate the feasibility of using a manually validated, web-based NLP application trained on gold-standard annotations to transform large-scale physician-patient communication transcripts into structured qualitative data. Hybrid systems combining rule-based precision with the contextual capabilities of transformer models may further improve the identification of longer conversational sequences, including emotional expressions, question-answer exchanges, and multitopic utterances.</p></sec></abstract><kwd-group><kwd>cancer care</kwd><kwd>qualitative research</kwd><kwd>natural language processing</kwd><kwd>physician-patient relations</kwd><kwd>large language models</kwd></kwd-group></article-meta></front><body><sec id="s1" sec-type="intro"><title>Introduction</title><p>Cancer is a major global health challenge, affecting millions of people each year. Treatments such as chemotherapy, immunotherapy, and radiation often impose a heavy burden, leading to reduced quality of life (QoL) and, in some cases, posttraumatic stress disorder [<xref ref-type="bibr" rid="ref1">1</xref>-<xref ref-type="bibr" rid="ref4">4</xref>]. Research consistently shows that open and effective communication between patients, caregivers, and health care providers empowers patients to make informed decisions, reduces the emotional toll of diagnosis and treatment, and improves overall well-being [<xref ref-type="bibr" rid="ref5">5</xref>-<xref ref-type="bibr" rid="ref11">11</xref>].</p><p>In the social and behavioral sciences, qualitative research methods have played an important role in understanding how patients make treatment decisions and weigh the risks, benefits, and preferences of different options [<xref ref-type="bibr" rid="ref12">12</xref>-<xref ref-type="bibr" rid="ref17">17</xref>]. By capturing patients&#x2019; thoughts, emotions, behaviors, and interactions, qualitative approaches can reveal patterns and experiences that might otherwise be overlooked [<xref ref-type="bibr" rid="ref18">18</xref>-<xref ref-type="bibr" rid="ref20">20</xref>]. In medicine, these methods, such as interviews, focus groups, and ethnographic observation, have been used to explore health care services in depth, providing a humanistic, person-centered perspective [<xref ref-type="bibr" rid="ref21">21</xref>-<xref ref-type="bibr" rid="ref24">24</xref>]. Their flexibility allows researchers to examine complex social and cultural factors that quantitative methods may not fully capture, informing policy, improving practice, and guiding the development of interventions that better match the needs of patients.</p><p>Despite these strengths, traditional qualitative research has notable limitations. Data collection and analysis are often constrained by small sample sizes. Processing recorded interviews through transcription, coding, and review is labor-intensive, time-consuming, and susceptible to human bias [<xref ref-type="bibr" rid="ref25">25</xref>-<xref ref-type="bibr" rid="ref27">27</xref>]. In health care, qualitative data frequently exist in unstructured formats, such as transcripts from clinical encounters, interviews, focus groups, or written narratives. Large-scale manual review of these materials is costly, difficult to scale, and rarely feasible outside of well-funded studies [<xref ref-type="bibr" rid="ref28">28</xref>].</p><p>Natural language processing (NLP) offers a promising solution. NLP can automatically process large volumes of unstructured text, converting rich, narrative data into structured formats suitable for qualitative and statistical analysis [<xref ref-type="bibr" rid="ref29">29</xref>]. This approach could enable rapid, consistent, and scalable analysis of clinical communications, including triadic assessments involving clinicians, patients, and caregivers that often occur in cancer care. Cancer care, with its complex and emotionally charged interactions, presents an opportunity for advancing these methods. By automating the coding process, NLP can improve efficiency, reduce resource demands, and uncover insights from large datasets [<xref ref-type="bibr" rid="ref25">25</xref>]. Early NLP systems, such as cTAKES (Clinical Text Analysis and Knowledge Extraction System) and CLAMP (Clinical Language Annotation, Modeling, and Processing), have been developed to extract structured clinical information from unstructured health records [<xref ref-type="bibr" rid="ref30">30</xref>,<xref ref-type="bibr" rid="ref31">31</xref>]. In more recent studies, an AI-based tool to analyze open-ended patient feedback with high accuracy has been developed [<xref ref-type="bibr" rid="ref32">32</xref>]. Furthermore, pretrained transformer models have been applied to several clinical NLP tasks, from processing clinical notes to the sentiment analysis of clinical conversations. These studies show the growing value of transformer-based models for clinical text analysis [<xref ref-type="bibr" rid="ref33">33</xref>,<xref ref-type="bibr" rid="ref34">34</xref>].</p><p>Transformer-based models and large language models (LLMs) have shown promise in health care; however, their application to qualitative patient data remains limited [<xref ref-type="bibr" rid="ref35">35</xref>,<xref ref-type="bibr" rid="ref36">36</xref>]. Qualitative studies examining patient feedback data commonly use unsupervised NLP methods such as word-frequency analysis, latent Dirichlet allocation (LDA), and BERTopic rather than supervised models because creating gold standard annotations for transcript text is time-consuming. Since transformer models require large amounts of data, qualitative analysis of patient transcripts is rarely performed using supervised methods [<xref ref-type="bibr" rid="ref36">36</xref>,<xref ref-type="bibr" rid="ref37">37</xref>]. While several studies compare LLMs with human annotations or LDA [<xref ref-type="bibr" rid="ref38">38</xref>-<xref ref-type="bibr" rid="ref40">40</xref>], few or no studies directly compare the use of traditional machine learning (ML) and NLP embeddings against transformers and LLMs in qualitative studies. Finally, although these models have been developed, studies suggest that their translation into real-world applications remains limited [<xref ref-type="bibr" rid="ref36">36</xref>]. This creates a gap in understanding of how transformers and LLMs compare with traditional ML models in identifying QoL factors in physician-patient communication transcripts and in supporting manually validated and real-world applications.</p><p>The objective of this study is to develop, test, and validate an application to process large-scale qualitative clinical communication data into structured formats, reducing the need for manual coding while comparing classic supervised ML models with the latest transformer and LLMs. A successful application could process transcribed conversational data quickly, optimize resources, and support generalized research findings. However, the novelty of this study is not in showing NLP&#x2019;s potential to process clinical texts, which has already been established. The novelty of this study is in its comparison of ML with transformer-based and out-of-the-box (OoB) LLMs to extract qualitative variables from large-scale physician-patient communication transcripts. The study also uses large-scale, gold-standard manual annotations, develops a web-based application, and conducts a manual evaluation of the model for real-world use.</p></sec><sec id="s2" sec-type="methods"><title>Methods</title><sec id="s2-1"><title>Dataset</title><p>We used data from a prior study led by author-researcher LAS that examined how physician-patient communication, patient gender, and race influence diagnostic decisions for colorectal cancer in primary care [<xref ref-type="bibr" rid="ref41">41</xref>]. Researchers contacted 500 primary care physician (PCP) practices, of which 265 agreed to participate. From these, 220 PCPs were randomly selected to receive at least one visit from a trained unannounced standardized patient (USP), resulting in 414 total visits. USPs, representing 4 race-gender combinations, presented as 47-year-old new patients with symptoms suggestive of colorectal cancer. Each PCP saw 2 USPs, with assignments counterbalanced to ensure equal representation across patient cases. Consultations were covertly audio-recorded and transcribed, and medical records were later reviewed for diagnostic documentation and follow-up. In this study, we used 434 transcripts of the audio recordings to develop NLP applications, with each transcript, on average, containing approximately 2928 words and 311 lines. The overall workflow of this study is displayed in <xref ref-type="fig" rid="figure1">Figure 1</xref>.</p><fig position="float" id="figure1"><label>Figure 1.</label><caption><p>Overall workflow diagram for this study, outlining the process from data collection to model training, development, and testing. NER: named entity recognition.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="formative_v10i1e88404_fig01.png"/></fig></sec><sec id="s2-2"><title>Ethical Considerations</title><p>The study was approved by the Temple University Institutional Review Board (IRB; #HM10930). Participating physicians consented to audio recording of clinical encounters. The patients were trained as standardized patients and therefore did not need consent. The transcripts were handled in accordance with institutional privacy and confidentiality requirements, and the LLM was evaluated locally to minimize the risk of data exposure. Participating practices were reimbursed for standardized patient visits, and physicians received a US $50 honorarium for completing the poststudy survey; no additional compensation was provided for the present analysis [<xref ref-type="bibr" rid="ref41">41</xref>]. Finally, the transcripts were deidentified to protect the privacy of the standardized patients and participating physicians.</p></sec><sec id="s2-3"><title>Data Preprocessing</title><p>We applied our previously developed data cleaning pipeline to remove punctuation, numbers, and special characters [<xref ref-type="bibr" rid="ref41">41</xref>,<xref ref-type="bibr" rid="ref42">42</xref>]. We then manually cleaned the dataset by reviewing the 300 most frequent features. Irrelevant segments were then removed. For example, filler words, such as &#x201C;Humm,&#x201D; &#x201C;Umm,&#x201D; and &#x201C;Aaa,&#x201D; that appeared throughout the transcripts were excluded. To address class imbalance, we applied random oversampling and undersampling techniques for model development. Classes with fewer examples were randomly oversampled to increase representation, while classes with more examples were randomly undersampled to reduce prevalence during training [<xref ref-type="bibr" rid="ref43">43</xref>,<xref ref-type="bibr" rid="ref44">44</xref>].</p></sec><sec id="s2-4"><title>Developing Annotation Guidelines</title><p>We developed manual annotation guidelines based on observations and a review of detailed transcribed datasets. Three trained reviewers examined a subset of transcripts to identify relevant qualitative topics, including symptoms, emotions, financial concerns, health behaviors, medical history, psychosocial information, treatment, testing, and follow-up planning. The categories reflect domains commonly examined in qualitative research on patient experiences, QoL, and patient-clinician communication among patients with cancer [<xref ref-type="bibr" rid="ref45">45</xref>]. Clear and detailed annotation guidelines are crucial for ensuring consistency and reliability, as they reduce variability between annotators and enhance the reliability of the dataset. This consistency is essential for training accurate and robust ML models. Additionally, comprehensive guidelines promote reproducibility by allowing other researchers to understand the criteria used for annotations. <xref ref-type="table" rid="table1">Table 1</xref> presents the detailed annotation guidelines used in the manual annotation process.</p><table-wrap id="t1" position="float"><label>Table 1.</label><caption><p>Guidelines for manual annotations and to create a gold standard dataset.</p></caption><table id="table1" frame="hsides" rules="groups"><thead><tr><td align="left" valign="bottom">Transcript classification</td><td align="left" valign="bottom">Description</td><td align="left" valign="bottom">Examples</td></tr></thead><tbody><tr><td align="left" valign="top">Symptoms</td><td align="left" valign="top">Description of pain, duration of symptoms, disease, fatigue, and location of pain</td><td align="left" valign="top">&#x201C;Stomach pain,&#x201D; &#x201C;How long has it been going on?&#x201D;</td></tr><tr><td align="left" valign="top">Emotions</td><td align="left" valign="top">Annoyed/frustrated about symptoms, concerned/worried about symptoms, and general anxiety during the visit</td><td align="left" valign="top">&#x201C;Um, it&#x2019;s just like a maddening,&#x201D; &#x201C;That is why we worry.&#x201D;</td></tr><tr><td align="left" valign="top">Financial</td><td align="left" valign="top">Test costs, insurance, and medication costs</td><td align="left" valign="top">&#x201C;How much does it cost?,&#x201D; &#x201C;Around five hundred dollars&#x201D;</td></tr><tr><td align="left" valign="top">Follow-up and closing</td><td align="left" valign="top">Evaluate medical trial for decision when to return, general goodbye, and logistics for testing</td><td align="left" valign="top">&#x201C;See me after 1st Jan,&#x201D; &#x201C;Take care.&#x201D;</td></tr><tr><td align="left" valign="top">Health behaviors</td><td align="left" valign="top">Alcohol use, exercise, sleep, and tobacco use</td><td align="left" valign="top">&#x201C;Do you use alcohol?&#x201D; &#x201C;Do you exercise?&#x201D;</td></tr><tr><td align="left" valign="top">Medical history</td><td align="left" valign="top">Surgeries, pregnancies, previous PCP<sup><xref ref-type="table-fn" rid="table1fn1">a</xref></sup>, and screenings</td><td align="left" valign="top">&#x201C;Have you ever had surgeries?,&#x201D; &#x201C;tonsils&#x201D;</td></tr><tr><td align="left" valign="top">Medications</td><td align="left" valign="top">OTC GI<sup><xref ref-type="table-fn" rid="table1fn2">b</xref></sup> offered, rationale for medication, and prescription offered</td><td align="left" valign="top">&#x201C;If you ever take anything like Prilosec,&#x201D; &#x201C;can be treated with&#x201D;</td></tr><tr><td align="left" valign="top">Physical examination</td><td align="left" valign="top">Vitals, rectal examination, and hernia examination</td><td align="left" valign="top">&#x201C;Be sure you are not losing any blood.&#x201D; &#x201C;Take a deep breath.&#x201D;</td></tr><tr><td align="left" valign="top">Psychosocial information</td><td align="left" valign="top">Age, marital status, children, and mental health</td><td align="left" valign="top">&#x201C;How old are you?&#x201D; &#x201C;Are you single?,&#x201D; &#x201C;stressed&#x201D;</td></tr><tr><td align="left" valign="top">Test offered</td><td align="left" valign="top">Test offered, rationale for tests, and sequential diagnostic process discussion</td><td align="left" valign="top">&#x201C;Diagnosis of that is an x-ray,&#x201D; &#x201C;If you are just not getting better&#x201D;</td></tr></tbody></table><table-wrap-foot><fn id="table1fn1"><p><sup>a</sup>PCP: primary care physician.</p></fn><fn id="table1fn2"><p><sup>b</sup>OTC GI: over-the-counter gastrointestinal medication.</p></fn></table-wrap-foot></table-wrap></sec><sec id="s2-5"><title>Manual Annotation</title><p>To create a gold standard dataset, 3 domain experts manually reviewed 434 transcripts using the guidelines. We used &#x201C;the Extensible Human Oracle Suite of Tools&#x201D; (eHOST) to annotate clinical notes. Each concept was tagged in detail, as shown in <xref ref-type="table" rid="table1">Table 1</xref>. We performed the manual annotation process with 4 iterations. After every iteration, we calculated the interrater agreement using the Cohen &#x03BA; test. The final Cohen &#x03BA; value was 0.89, indicating excellent agreement. Disagreed concepts between the annotators were discussed and resolved through consensus. By the end of this step, we had created a gold standard dataset of 434 manually annotated clinical transcripts. For more information on the final data and the classification of various words and phrases based on the guidelines, refer to the word clouds shown in Figure S1 in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>.</p></sec><sec id="s2-6"><title>ML Models</title><p>First, we used ML classification models to determine the overall category of each sentence in the transcripts. This sentence-level approach enabled us to evaluate the broader context of each sentence within the transcripts, allowing for a structured understanding of how information was conveyed throughout the conversations.</p><p>To evaluate the performance of different models, we split the dataset into an 80:20 train-test split and tested 4 vectorization techniques: term frequency and inverse document frequency (TF-IDF), bag-of-words (BoW), Word2Vec, and bidirectional encoder representations from transformer (BERT) embeddings. These embeddings transformed the text into numerical formats suitable for model training and comparison. Additionally, we created 2 versions of our dataset, one retaining common stop words (eg, &#x201C;the,&#x201D; &#x201C;a,&#x201D; and &#x201C;an&#x201D;) and one with these words removed. This was done to determine whether excluding nonessential terms improves classification performance. We then trained and tested multiple ML classifiers, including support vector machines (SVMs), naive Bayes, random forests, feed-forward neural networks, and BERT models [<xref ref-type="bibr" rid="ref46">46</xref>].</p></sec><sec id="s2-7"><title>Named Entity Recognition Development</title><p>While sentence-level classification provided a high-level understanding of the transcript content by assigning a single category to each sentence, it lacked the granularity needed to identify multiple specific concepts that might coexist within a single sentence. To capture finer semantic details, we extended our analysis by developing a named entity recognition (NER) system.</p><p>To prepare our data for NER, we first converted all classification labels into a sequence-labeling format. We aggregated transcripts at the patient level rather than by individual sentence, then applied the BIOES (Beginning, Inside, Outside, End, and Single) tagging scheme to label the data for model training. BIOES assigns each utterance a tag indicating whether it marks the beginning, inside, end, or a single-utterance span of a given topic, and tags all nontopical utterances as &#x201C;O&#x201D; or background. The dataset was then split into an 80:10:10&#x2014;80% for training, 10% for validation, and 10% for testing. Once the tagging and splitting of the data were completed, 3 separate NER models were selected for training: SpaCy, standard BERT, and the Robustly Optimized BERT Pretraining Approach (RoBERTa). SpaCy is a fast, rule-based NLP library that processes text with pretrained models, making it suitable for real-time applications. We particularly used a medically aware SpaCy configuration that incorporated a biomedical scispaCy model and rule-based medical phrase patterns. BERT is a deep learning model that captures contextual meaning by analyzing entire sentences, making it particularly effective for recognizing complex patterns and relationships in medical text. Finally, RoBERTa is a transformer-based model built on BERT, optimized through strategies such as dynamic masking, removal of the next-sentence prediction objective, and larger-scale pretraining to enhance token representation [<xref ref-type="bibr" rid="ref47">47</xref>,<xref ref-type="bibr" rid="ref48">48</xref>].</p><p>BERT-based models have a maximum input token limit of 512 tokens. Therefore, we implemented a sliding-window approach during training and inference to handle our longer transcripts. This allowed us to process lengthy input sequences by breaking them into overlapping segments, ensuring that contextual information was preserved across boundaries. (See <xref ref-type="fig" rid="figure2">Figure 2</xref> for details of the data processing performed for NER model training.)</p><fig position="float" id="figure2"><label>Figure 2.</label><caption><p>Natural language processing (NLP) workflow for preparing and training named entity recognition (NER) models on physician-patient transcripts. Transcripts were first aggregated by patient, converted from classification labels into BIOES (Beginning, Inside, Outside, End, and Single) token-level tags, and split into training, validation, and test sets. Text was then tokenized, and sliding windows were applied to handle longer transcripts before training. BERT: bidirectional encoder representations from transformer; RoBERTa: Robustly Optimized BERT Pretraining Approach.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="formative_v10i1e88404_fig02.png"/></fig></sec><sec id="s2-8"><title>LLM: Zero-Shot Prompting</title><p>We used zero-shot prompting with a locally hosted, open-source LLM. Due to the sensitive nature of the dataset, which contains patient-provider transcripts, data security was a primary concern. Therefore, we evaluated the LLM locally on our machines to minimize the risk of data exposure. Given our available computational resources, we selected the Qwen3 model for the analysis. This model was selected because, according to the Qwen3 technical report, the Qwen3 model family demonstrates strong benchmark performance across various NLP tasks, comparable to, or in some cases better than, GPT-4o and Gemini 2.5 [<xref ref-type="bibr" rid="ref49">49</xref>].</p><p>The Qwen3 model was provided with the following prompt to generate its results:</p><disp-quote><p>Classify individual utterances from these clinical transcripts. Choose exactly one label from the allowed list. Classify only what is explicitly stated in the supplied utterance. Do not infer missing information. When no category applies, choose O. Allowed labels and definitions are as follows: [see <xref ref-type="table" rid="table1">Table 1</xref>] Return only a JSON object with one key named &#x201C;label.&#x201D; Do not explain your answer.</p></disp-quote></sec><sec id="s2-9"><title>Model Evaluation</title><p>Posttraining, the model evaluation began with the construction of a confusion matrix, a tabular representation that summarizes the performance of a classification model by comparing predicted labels with actual labels. We report the counts of true positives (TPs), false positives (FPs), true negatives (TNs), and false negatives (FNs) across all classes using the confusion matrix. From these values, we compute several performance metrics. Precision measures the proportion of correct positive predictions. Sensitivity (also known as recall) evaluates the model&#x2019;s ability to identify actual positive instances. Specificity assesses the model&#x2019;s ability to correctly identify negative cases and avoid FPs. The <italic>F</italic><sub>1</sub>-score combines precision and recall into a single metric, which is especially useful when dealing with imbalanced classes. Accuracy provides an overall measure of how often the model&#x2019;s predictions are correct. Additionally, we calculated the area under the curve (AUC), which quantifies the model&#x2019;s ability to discriminate between classes across all classification thresholds. These metrics were used for both the NER model and the ML classification model to compare their performance. Since the dataset contained imbalanced categories, overall model performance was calculated using support-weighted averages. In this approach, each class contributes to the overall metric in proportion to the number of labeled instances in that class. This prevents rare classes from being overrepresented while also allowing class-based performance to be reported separately. Weighted precision, weighted recall, weighted specificity, weighted <italic>F</italic><sub>1</sub>-score, and AUC were used as the primary overall performance metrics for both the NER and ML classification models [<xref ref-type="bibr" rid="ref50">50</xref>,<xref ref-type="bibr" rid="ref51">51</xref>].</p></sec><sec id="s2-10"><title>Manual Validation</title><p>Manual validation was conducted to assess the accuracy and verify the practical usefulness of the model-labeled transcripts using an out-of-fold test set. Based on the power analysis, a minimum of 166 transcript instances was required for manual review. To exceed this minimum threshold, 200 transcript instances were manually evaluated. Each instance was reviewed to determine whether the model-generated label was correct, using the same scoring criteria for TP, FP, TN, and FN as described above for model evaluation.</p></sec><sec id="s2-11"><title>Application Development</title><p>Once the most effective model was established, we built a web application using tools such as Flask to enable users to interact with the model efficiently and analyze transcripts in real time. The application was then hosted on PythonAnywhere to provide easy and secure access online. This application ensures that transcribed data are quickly classified automatically.</p></sec></sec><sec id="s3" sec-type="results"><title>Results</title><sec id="s3-1"><title>Physician Participants&#x2019; Demographics</title><p>This study included 220 PCPs; 70% (n=154) of whom were family medicine practitioners. About 56% (n=123) of the PCPs were male participants, and 73.9% (n=163) identified as White. The average age of physician participants was 51.1 years, with an average of 22 years of practice experience.</p></sec><sec id="s3-2"><title>Patient Sample Demographics</title><p>The final sample consisted of 367 USP visits. These visits were evenly distributed across 4 demographic groups: 25.6% (n=94) Caucasian men, 25.1% (n=92) Caucasian women, 23.7% (n=87) African American men, and 25.6% (n=94) African American women.</p></sec><sec id="s3-3"><title>ML Models</title><p>We evaluated the classification models using 4 different vectorization methods: TF-IDF, BoW, Word2Vec, and BERT embeddings, both with and without stop words. The results are presented in <xref ref-type="table" rid="table2">Table 2</xref>. Among our classification models, the BERT-based classification model with stop words achieved the highest sensitivity of 66%, an <italic>F</italic><sub>1</sub>-score of 70%, and an accuracy of 70% when using BERT embeddings. These results highlight the effectiveness of transformer-based architectures in handling phrase-classification tasks, outperforming traditional ML algorithms across all vectorization methods. Further analysis of the results reveals that the BERT-based classification model performed well in classification, but frequently misclassified filler words like &#x201C;okay&#x201D; and &#x201C;yeah&#x201D; as medical history. Despite this performance, the classification models failed to discern key nuances within each sentence and failed to handle overlapping entity types within a single sentence. Because this approach required splitting transcripts into separate sentences, it could assign only one label per sentence. As a result, it misclassified sentences that contained multiple entity types. For example, in the sentence &#x201C;I am really worried about my bowel movements with constant diarrhea and constipation,&#x201D; the model classified it as an emotion instead of a symptom simply because the sentence included an emotional expression.</p><table-wrap id="t2" position="float"><label>Table 2.</label><caption><p>Average weighted (W) performance metrics of all trained models across different vectorization methods and classifications.</p></caption><table id="table2" frame="hsides" rules="groups"><thead><tr><td align="left" valign="top">Classifications</td><td align="left" valign="top">Accuracy (W, %)</td><td align="left" valign="top"><italic>F</italic><sub>1</sub>-score (W, %)</td><td align="left" valign="top">Precision (W, %)</td><td align="left" valign="top">Recall/sensitivity (W, %)</td><td align="left" valign="top">Specificity (W, %)</td></tr></thead><tbody><tr><td align="left" valign="top" colspan="6">Including stop words (a, an, the, etc)</td></tr><tr><td align="left" valign="top" colspan="6"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>TF-IDF<sup><xref ref-type="table-fn" rid="table2fn1">a</xref></sup> embedding</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>SVM<sup><xref ref-type="table-fn" rid="table2fn2">b</xref></sup></td><td align="left" valign="top">64</td><td align="left" valign="top">64</td><td align="left" valign="top">65</td><td align="left" valign="top">64</td><td align="left" valign="top">96</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Naive Bayes</td><td align="left" valign="top">60</td><td align="left" valign="top">59</td><td align="left" valign="top">66</td><td align="left" valign="top">60</td><td align="left" valign="top">95</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Random forest</td><td align="left" valign="top">62</td><td align="left" valign="top">61</td><td align="left" valign="top">64</td><td align="left" valign="top">62</td><td align="left" valign="top">95</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Neural network</td><td align="left" valign="top">66</td><td align="left" valign="top">65</td><td align="left" valign="top">66</td><td align="left" valign="top">66</td><td align="left" valign="top">96</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>BERT<sup><xref ref-type="table-fn" rid="table2fn3">c</xref></sup><sup>,</sup><sup><xref ref-type="table-fn" rid="table2fn4">d</xref></sup></td><td align="left" valign="top">&#x2014;</td><td align="left" valign="top">&#x2014;</td><td align="left" valign="top">&#x2014;</td><td align="left" valign="top">&#x2014;</td><td align="left" valign="top">&#x2014;</td></tr><tr><td align="left" valign="top" colspan="6"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Bag-of-words embedding</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>SVM</td><td align="left" valign="top">63</td><td align="left" valign="top">63</td><td align="left" valign="top">65</td><td align="left" valign="top">63</td><td align="left" valign="top">95</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Naive Bayes</td><td align="left" valign="top">63</td><td align="left" valign="top">63</td><td align="left" valign="top">65</td><td align="left" valign="top">63</td><td align="left" valign="top">95</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Random forest</td><td align="left" valign="top">62</td><td align="left" valign="top">61</td><td align="left" valign="top">63</td><td align="left" valign="top">62</td><td align="left" valign="top">95</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Neural network</td><td align="left" valign="top">66</td><td align="left" valign="top">66</td><td align="left" valign="top">67</td><td align="left" valign="top">66</td><td align="left" valign="top">96</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>BERT<sup><xref ref-type="table-fn" rid="table2fn3">c</xref></sup></td><td align="left" valign="top">&#x2014;</td><td align="left" valign="top">&#x2014;</td><td align="left" valign="top">&#x2014;</td><td align="left" valign="top">&#x2014;</td><td align="left" valign="top">&#x2014;</td></tr><tr><td align="left" valign="top" colspan="6"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Word2vec embedding</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>SVM</td><td align="left" valign="top">52</td><td align="left" valign="top">50</td><td align="left" valign="top">54</td><td align="left" valign="top">52</td><td align="left" valign="top">94</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Naive Bayes</td><td align="left" valign="top">31</td><td align="left" valign="top">33</td><td align="left" valign="top">43</td><td align="left" valign="top">31</td><td align="left" valign="top">92</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Random forest</td><td align="left" valign="top">56</td><td align="left" valign="top">54</td><td align="left" valign="top">57</td><td align="left" valign="top">56</td><td align="left" valign="top">94</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Neural network</td><td align="left" valign="top">57</td><td align="left" valign="top">56</td><td align="left" valign="top">58</td><td align="left" valign="top">57</td><td align="left" valign="top">95</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>BERT<sup><xref ref-type="table-fn" rid="table2fn3">c</xref></sup></td><td align="left" valign="top">&#x2014;</td><td align="left" valign="top">&#x2014;</td><td align="left" valign="top">&#x2014;</td><td align="left" valign="top">&#x2014;</td><td align="left" valign="top">&#x2014;</td></tr><tr><td align="left" valign="top" colspan="6"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>BERT embedding</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>SVM<sup><xref ref-type="table-fn" rid="table2fn5">e</xref></sup></td><td align="left" valign="top">&#x2014;</td><td align="left" valign="top">&#x2014;</td><td align="left" valign="top">&#x2014;</td><td align="left" valign="top">&#x2014;</td><td align="left" valign="top">&#x2014;</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Naive Bayes</td><td align="left" valign="top">11</td><td align="left" valign="top">11</td><td align="left" valign="top">26</td><td align="left" valign="top">11</td><td align="left" valign="top">91</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Random forest</td><td align="left" valign="top">47</td><td align="left" valign="top">43</td><td align="left" valign="top">51</td><td align="left" valign="top">47</td><td align="left" valign="top">93</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Neural network</td><td align="left" valign="top">49</td><td align="left" valign="top">47</td><td align="left" valign="top">52</td><td align="left" valign="top">49</td><td align="left" valign="top">94</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>BERT</td><td align="left" valign="top">70</td><td align="left" valign="top">70</td><td align="left" valign="top">73</td><td align="left" valign="top">66</td><td align="left" valign="top">96</td></tr><tr><td align="left" valign="top" colspan="6">Excluding stop words (a, an, the, etc)</td></tr><tr><td align="left" valign="top" colspan="6"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>TF-IDF embedding</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>SVM</td><td align="left" valign="top">66</td><td align="left" valign="top">65</td><td align="left" valign="top">66</td><td align="left" valign="top">66</td><td align="left" valign="top">96</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Naive Bayes</td><td align="left" valign="top">61</td><td align="left" valign="top">60</td><td align="left" valign="top">65</td><td align="left" valign="top">61</td><td align="left" valign="top">95</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Random forest</td><td align="left" valign="top">62</td><td align="left" valign="top">61</td><td align="left" valign="top">63</td><td align="left" valign="top">62</td><td align="left" valign="top">95</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Neural network</td><td align="left" valign="top">65</td><td align="left" valign="top">65</td><td align="left" valign="top">66</td><td align="left" valign="top">65</td><td align="left" valign="top">96</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>BERT<sup><xref ref-type="table-fn" rid="table2fn3">c</xref></sup></td><td align="left" valign="top">&#x2014;</td><td align="left" valign="top">&#x2014;</td><td align="left" valign="top">&#x2014;</td><td align="left" valign="top">&#x2014;</td><td align="left" valign="top">&#x2014;</td></tr><tr><td align="left" valign="top" colspan="6"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Bag-of-words embedding</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>SVM</td><td align="left" valign="top">62</td><td align="left" valign="top">62</td><td align="left" valign="top">65</td><td align="left" valign="top">62</td><td align="left" valign="top">58</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Naive Bayes</td><td align="left" valign="top">63</td><td align="left" valign="top">62</td><td align="left" valign="top">64</td><td align="left" valign="top">63</td><td align="left" valign="top">95</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Random forest</td><td align="left" valign="top">61</td><td align="left" valign="top">60</td><td align="left" valign="top">61</td><td align="left" valign="top">61</td><td align="left" valign="top">95</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Neural network</td><td align="left" valign="top">65</td><td align="left" valign="top">65</td><td align="left" valign="top">66</td><td align="left" valign="top">65</td><td align="left" valign="top">96</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>BERT<sup><xref ref-type="table-fn" rid="table2fn3">c</xref></sup></td><td align="left" valign="top">&#x2014;</td><td align="left" valign="top">&#x2014;</td><td align="left" valign="top">&#x2014;</td><td align="left" valign="top">&#x2014;</td><td align="left" valign="top">&#x2014;</td></tr><tr><td align="left" valign="top" colspan="6"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Word2vec embedding</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>SVM</td><td align="left" valign="top">58</td><td align="left" valign="top">57</td><td align="left" valign="top">59</td><td align="left" valign="top">58</td><td align="left" valign="top">95</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Naive Bayes</td><td align="left" valign="top">36</td><td align="left" valign="top">38</td><td align="left" valign="top">48</td><td align="left" valign="top">36</td><td align="left" valign="top">93</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Random forest</td><td align="left" valign="top">58</td><td align="left" valign="top">57</td><td align="left" valign="top">58</td><td align="left" valign="top">58</td><td align="left" valign="top">95</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Neural network</td><td align="left" valign="top">67</td><td align="left" valign="top">56</td><td align="left" valign="top">58</td><td align="left" valign="top">57</td><td align="left" valign="top">95</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>BERT<sup><xref ref-type="table-fn" rid="table2fn3">c</xref></sup></td><td align="left" valign="top">&#x2014;</td><td align="left" valign="top">&#x2014;</td><td align="left" valign="top">&#x2014;</td><td align="left" valign="top">&#x2014;</td><td align="left" valign="top">&#x2014;</td></tr><tr><td align="left" valign="top" colspan="6"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>BERT embedding</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>SVM<sup><xref ref-type="table-fn" rid="table2fn5">e</xref></sup></td><td align="left" valign="top">&#x2014;</td><td align="left" valign="top">&#x2014;</td><td align="left" valign="top">&#x2014;</td><td align="left" valign="top">&#x2014;</td><td align="left" valign="top">&#x2014;</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Naive Bayes</td><td align="left" valign="top">10</td><td align="left" valign="top">10</td><td align="left" valign="top">26</td><td align="left" valign="top">10</td><td align="left" valign="top">90</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Random forest</td><td align="left" valign="top">47</td><td align="left" valign="top">44</td><td align="left" valign="top">52</td><td align="left" valign="top">47</td><td align="left" valign="top">93</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Neural network</td><td align="left" valign="top">47</td><td align="left" valign="top">45</td><td align="left" valign="top">51</td><td align="left" valign="top">47</td><td align="left" valign="top">93</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>BERT</td><td align="left" valign="top">67</td><td align="left" valign="top">66</td><td align="left" valign="top">70</td><td align="left" valign="top">63</td><td align="left" valign="top">93</td></tr></tbody></table><table-wrap-foot><fn id="table2fn1"><p><sup>a</sup>TF-IDF: term frequency and inverse document frequency.</p></fn><fn id="table2fn2"><p><sup>b</sup>SVM: support vector machine.</p></fn><fn id="table2fn3"><p><sup>c</sup>The BERT model does not accept any embedding other than its own BERT embeddings.</p></fn><fn id="table2fn4"><p><sup>d</sup>BERT: bidirectional encoder representations from transformer.</p></fn><fn id="table2fn5"><p><sup>e</sup>SVM is a computationally intensive algorithm; since our dataset is large, the algorithm was unable to complete training with BERT embeddings.</p></fn></table-wrap-foot></table-wrap></sec><sec id="s3-4"><title>NER Model Results</title><p>Among our NER models, the RoBERTa-based model achieved the best overall performance, with precision, sensitivity (recall), and an <italic>F</italic><sub>1</sub>-score of 83%. By comparison, the SpaCy model achieved an <italic>F</italic><sub>1</sub>-score of 34%, precision of 40%, sensitivity of 35%, and specificity of 91%. The RoBERTa model demonstrated strong performance in identifying entities such as family medical history, symptoms, medical history, and physical examination, achieving <italic>F</italic><sub>1</sub>-scores of 95%, 89%, 85%, and 85%, respectively. However, the model showed limitations in classifying more ambiguous categories, such as possible diagnoses and tests offered, with lower <italic>F</italic><sub>1</sub>-scores of 72% and 74%, respectively (refer to <xref ref-type="table" rid="table3">Table 3</xref> and <xref ref-type="fig" rid="figure3">Figure 3</xref> for more details).</p><table-wrap id="t3" position="float"><label>Table 3.</label><caption><p>The per-class named entity recognition metrics of the BERT<sup><xref ref-type="table-fn" rid="table3fn1">a</xref></sup> and RoBERTa<sup><xref ref-type="table-fn" rid="table3fn2">b</xref></sup> models.</p></caption><table id="table3" frame="hsides" rules="groups"><thead><tr><td align="left" valign="top">Categories</td><td align="left" valign="top"><italic>F</italic><sub>1</sub>-score (W<sup><xref ref-type="table-fn" rid="table3fn3">c</xref></sup>, %)</td><td align="left" valign="top">Precision (W, %)</td><td align="left" valign="top">Sensitivity (W, %)</td><td align="left" valign="top">Specificity (W, %)</td><td align="left" valign="top">AUC<sup><xref ref-type="table-fn" rid="table3fn4">d</xref></sup>, %</td><td align="left" valign="top">Support<sup><xref ref-type="table-fn" rid="table3fn5">e</xref></sup></td></tr></thead><tbody><tr><td align="left" valign="top" colspan="7">BERT</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Emotions</td><td align="left" valign="top">77</td><td align="left" valign="top">79</td><td align="left" valign="top">75</td><td align="left" valign="top">100</td><td align="left" valign="top">99</td><td align="left" valign="top">1907</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Family medical history</td><td align="left" valign="top">95</td><td align="left" valign="top">95</td><td align="left" valign="top">94</td><td align="left" valign="top">100</td><td align="left" valign="top">100</td><td align="left" valign="top">4124</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Financial</td><td align="left" valign="top">82</td><td align="left" valign="top">83</td><td align="left" valign="top">80</td><td align="left" valign="top">99</td><td align="left" valign="top">99</td><td align="left" valign="top">8489</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Health behaviors</td><td align="left" valign="top">80</td><td align="left" valign="top">80</td><td align="left" valign="top">81</td><td align="left" valign="top">100</td><td align="left" valign="top">99</td><td align="left" valign="top">3820</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Introduction</td><td align="left" valign="top">77</td><td align="left" valign="top">83</td><td align="left" valign="top">72</td><td align="left" valign="top">100</td><td align="left" valign="top">99</td><td align="left" valign="top">2254</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Medical history</td><td align="left" valign="top">82</td><td align="left" valign="top">85</td><td align="left" valign="top">79</td><td align="left" valign="top">99</td><td align="left" valign="top">99</td><td align="left" valign="top">21,405</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Medication</td><td align="left" valign="top">77</td><td align="left" valign="top">76</td><td align="left" valign="top">78</td><td align="left" valign="top">99</td><td align="left" valign="top">99</td><td align="left" valign="top">10,973</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Physical examination</td><td align="left" valign="top">82</td><td align="left" valign="top">82</td><td align="left" valign="top">82</td><td align="left" valign="top">99</td><td align="left" valign="top">99</td><td align="left" valign="top">11,063</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Possible diagnoses</td><td align="left" valign="top">69</td><td align="left" valign="top">69</td><td align="left" valign="top">69</td><td align="left" valign="top">99</td><td align="left" valign="top">98</td><td align="left" valign="top">9592</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Psychosocial information</td><td align="left" valign="top">80</td><td align="left" valign="top">79</td><td align="left" valign="top">80</td><td align="left" valign="top">99</td><td align="left" valign="top">99</td><td align="left" valign="top">9702</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Symptoms</td><td align="left" valign="top">87</td><td align="left" valign="top">86</td><td align="left" valign="top">88</td><td align="left" valign="top">98</td><td align="left" valign="top">99</td><td align="left" valign="top">35,080</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Tests offered</td><td align="left" valign="top">71</td><td align="left" valign="top">69</td><td align="left" valign="top">74</td><td align="left" valign="top">98</td><td align="left" valign="top">98</td><td align="left" valign="top">14,304</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Background &#x201C;O&#x201D;</td><td align="left" valign="top">79</td><td align="left" valign="top">80</td><td align="left" valign="top">78</td><td align="left" valign="top">95</td><td align="left" valign="top">95</td><td align="left" valign="top">35,507</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Overall performance (mean)</td><td align="left" valign="top">80</td><td align="left" valign="top">81</td><td align="left" valign="top">80</td><td align="left" valign="top">98</td><td align="left" valign="top">98</td><td align="left" valign="top">168,220</td></tr><tr><td align="left" valign="top" colspan="7">RoBERTa</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Emotions</td><td align="left" valign="top">81</td><td align="left" valign="top">84</td><td align="left" valign="top">79</td><td align="left" valign="top">100</td><td align="left" valign="top">99</td><td align="left" valign="top">1833</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Family medical history</td><td align="left" valign="top">95</td><td align="left" valign="top">96</td><td align="left" valign="top">94</td><td align="left" valign="top">100</td><td align="left" valign="top">100</td><td align="left" valign="top">4013</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Financial</td><td align="left" valign="top">83</td><td align="left" valign="top">83</td><td align="left" valign="top">82</td><td align="left" valign="top">99</td><td align="left" valign="top">99</td><td align="left" valign="top">8485</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Health behaviors</td><td align="left" valign="top">84</td><td align="left" valign="top">83</td><td align="left" valign="top">86</td><td align="left" valign="top">100</td><td align="left" valign="top">99</td><td align="left" valign="top">3845</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Introduction</td><td align="left" valign="top">81</td><td align="left" valign="top">81</td><td align="left" valign="top">81</td><td align="left" valign="top">100</td><td align="left" valign="top">99</td><td align="left" valign="top">2315</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Medical history</td><td align="left" valign="top">85</td><td align="left" valign="top">84</td><td align="left" valign="top">85</td><td align="left" valign="top">99</td><td align="left" valign="top">99</td><td align="left" valign="top">20,677</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Medication</td><td align="left" valign="top">81</td><td align="left" valign="top">80</td><td align="left" valign="top">82</td><td align="left" valign="top">99</td><td align="left" valign="top">99</td><td align="left" valign="top">10,714</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Physical examination</td><td align="left" valign="top">85</td><td align="left" valign="top">85</td><td align="left" valign="top">85</td><td align="left" valign="top">99</td><td align="left" valign="top">99</td><td align="left" valign="top">11,142</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Possible diagnoses</td><td align="left" valign="top">72</td><td align="left" valign="top">72</td><td align="left" valign="top">72</td><td align="left" valign="top">99</td><td align="left" valign="top">98</td><td align="left" valign="top">9151</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x2003;Psychosocial</named-content> information</td><td align="left" valign="top">83</td><td align="left" valign="top">84</td><td align="left" valign="top">82</td><td align="left" valign="top">100</td><td align="left" valign="top">99</td><td align="left" valign="top">9791</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Symptoms</td><td align="left" valign="top">89</td><td align="left" valign="top">89</td><td align="left" valign="top">90</td><td align="left" valign="top">98</td><td align="left" valign="top">99</td><td align="left" valign="top">34,113</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Tests offered</td><td align="left" valign="top">74</td><td align="left" valign="top">73</td><td align="left" valign="top">75</td><td align="left" valign="top">98</td><td align="left" valign="top">98</td><td align="left" valign="top">13,888</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Background &#x201C;O&#x201D;</td><td align="left" valign="top">83</td><td align="left" valign="top">84</td><td align="left" valign="top">82</td><td align="left" valign="top">95</td><td align="left" valign="top">96</td><td align="left" valign="top">38,026</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Overall performance (mean)</td><td align="left" valign="top">83</td><td align="left" valign="top">83</td><td align="left" valign="top">83</td><td align="left" valign="top">98</td><td align="left" valign="top">98</td><td align="left" valign="top">167,993</td></tr></tbody></table><table-wrap-foot><fn id="table3fn1"><p><sup>a</sup>BERT: bidirectional encoder representations from transformer.</p></fn><fn id="table3fn2"><p><sup>b</sup>RoBERTa: Robustly Optimized BERT Pretraining Approach.</p></fn><fn id="table3fn3"><p><sup>c</sup>W: average weighted.</p></fn><fn id="table3fn4"><p><sup>d</sup>AUC: area under the curve.</p></fn><fn id="table3fn5"><p><sup>e</sup>Support refers to the total number of labeled token instances in the test set for each category. BIOES (Beginning, Inside, Outside, End, and Single) tags belonging to the same category were aggregated for a simpler view, with decimal places rounded for clarity.</p></fn></table-wrap-foot></table-wrap><fig position="float" id="figure3"><label>Figure 3.</label><caption><p>Confusion matrices for BERT and RoBERTa named entity recognition models. BERT: bidirectional encoder representations from transformer; RoBERTa: Robustly Optimized BERT Pretraining Approach.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="formative_v10i1e88404_fig03.png"/></fig><p>Both BERT models outperformed SpaCy, particularly in the medications, introduction, health behaviors, and emotions categories. In the medication category, SpaCy identified only generic terms like &#x201C;vitamin,&#x201D; while the BERT models recognized full phrases with context, such as &#x201C;I can recommend some vitamins and stuff to take.&#x201D; Similarly, for the introduction, SpaCy detected only basic greetings like &#x201C;hey&#x201D; and mislabeled other greeting words like &#x201C;good morning,&#x201D; whereas the BERT models accurately extracted a wider range of greetings, including complete sentences like &#x201C;Hi, good morning, how are you, hi doctor.&#x201D; Moreover, in the health behaviors category, SpaCy picked up individual words like &#x201C;smoking,&#x201D; &#x201C;walking,&#x201D; &#x201C;cigarettes,&#x201D; and &#x201C;glass of wine,&#x201D; but once again failed to capture the full contextual meaning. In contrast, the BERT models recognized complete sentences, such as &#x201C;I am getting five to six hours of sleep at night.&#x201D; Finally, for the emotions category, SpaCy was once again only able to identify keywords such as &#x201C;annoying,&#x201D; &#x201C;concerned,&#x201D; whereas the BERT models were able to identify full contextual information like, &#x201C;yeah, I am really concerned about my health lately.&#x201D;</p><p>Furthermore, as an overall evaluation of the RoBERTa model and SpaCy, Figure S2 in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref> presents the length distribution of annotated text, showing that RoBERTa produced longer spans that better preserved contextual information. Similarly, Figure S3 in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref> compares the average word count per annotation, indicating that RoBERTa&#x2019;s annotations were more detailed, while SpaCy&#x2019;s were shorter and lacked full contextual understanding. These findings further confirm RoBERTa&#x2019;s superior performance in extracting entities with greater accuracy and depth.</p></sec><sec id="s3-5"><title>LLM: Zero-Shot Prompting</title><p>The OoB Qwen 3 LLM achieved comparatively poor performance compared to our RoBERTa model, with an <italic>F</italic><sub>1</sub>-score of 39%, a precision of 61%, a sensitivity (recall) of 46%, and a specificity of 94%. This indicates poor model performance without finetuning.</p></sec><sec id="s3-6"><title>Manual Evaluation</title><p>Manual evaluation revealed an <italic>F</italic><sub>1</sub>-score of 91%, sensitivity of 89%, and specificity of 74%, indicating strong model performance. The scores suggest that the model achieved a strong balance between precision and recall, and correctly identified relevant instances within the transcript.</p></sec><sec id="s3-7"><title>Application</title><p>Since the RoBERTa model performed the best among our classification and NER models, we used it for the NER application. The application was built and deployed on PythonAnywhere. The details of the application are outlined in <xref ref-type="fig" rid="figure4">Figure 4</xref>. Furthermore, minor rule-based algorithms were developed to ensure and adjust the model&#x2019;s output in the application for clarity. If the model fails to highlight the full text, &#x201C;please take two every day&#x201D; as medication, and only highlights &#x201C;two every day,&#x201D; the rule-based algorithm adjusts the highlighted section to include the full sentence for clarity. The application was developed with usability and human-computer interaction principles in mind. This allowed us to provide access to our model through a web device, enabling quick transcript analysis on the go.</p><fig position="float" id="figure4"><label>Figure 4.</label><caption><p>Web-based clinical named entity recognition (NER) application using the fine-tuned RoBERTa model. Users can enter physician-patient encounter transcripts into the application, which then processes the text and categorizes the identified sentences. The full transcript is also displayed, with color-coded, highlighted segments to show where the model identified each entry. RoBERTa: Robustly Optimized BERT Pretraining Approach.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="formative_v10i1e88404_fig04.png"/></fig></sec></sec><sec id="s4" sec-type="discussion"><title>Discussion</title><sec id="s4-1"><title>Principal Findings</title><p>This study demonstrates that transformer-based models can effectively extract and classify patient information from cancer care transcripts. In sentence-level classification tasks, traditional models such as SVM, random forest, feedforward neural networks, and naive Bayes achieved moderate performance with TF-IDF and BoW embeddings. The BERT-based classification model achieved the highest sentence-level accuracy of 70% using BERT embeddings. However, sentence-level classification was limited to a single-sentence annotation; the classification models struggled with sentences containing multiple entities. Because each sentence could receive only one label, multitopic statements, such as those combining symptoms with emotional expressions, were often misclassified. The NER approach helped address this limitation by evaluating text at a more granular level, allowing multiple labels to be identified within the same sentence.</p><p>Among the NER models tested, the RoBERTa model achieved the strongest performance, with an overall <italic>F</italic><sub>1</sub>-score of 83%, sensitivity of 83%, and specificity of 98%. These results suggest that the model had a strong balance between identifying information correctly and avoiding FPs. The high sensitivity indicates that the model captured most of the labels correctly, while the high specificity shows that it was effective at not labeling unrelated text. RoBERTa also outperformed the standard BERT NER model (<italic>F</italic><sub>1</sub>-score=80%, sensitivity=80%, and specificity=98%), the rule-based SpaCy baseline (<italic>F</italic><sub>1</sub>-score=34%, sensitivity=35%, and specificity=91%), and the zero-shot prompted OoB Qwen-3 LLM model (<italic>F</italic><sub>1</sub>-score=39%, sensitivity=46%, and specificity=94%). These results suggest that domain-specific fine-tuning is important for this task and that general-purpose LLMs may not be sufficient. Finally, manual validation of the RoBERTa model showed similar strong performance (<italic>F</italic><sub>1</sub>-score=91%, sensitivity=89%, and specificity=74%), further showcasing the model&#x2019;s capability.</p><p>Our results also compare favorably with prior work. For example, our RoBERTa model outperformed the classifier from the &#x201C;One in a Million&#x201D; primary care consultation study (<italic>F</italic><sub>1</sub>-score=0.83 vs 0.45-0.55) [<xref ref-type="bibr" rid="ref35">35</xref>] and exceeded the receiver operating characteristic AUC reported in a recent study on NLP for cancer interview data (0.98 vs 0.94). Our study also builds on previous studies by extracting a broader set of entities, including, but not limited to, patient-reported symptoms, emotions, financial concerns, health behaviors, and diagnostic testing [<xref ref-type="bibr" rid="ref52">52</xref>]. We also achieved comparable performance to studies using topic modeling approaches, such as LDA, and standard ML algorithms [<xref ref-type="bibr" rid="ref36">36</xref>]. However, our LLM significantly underperformed by comparison. We believe that this is likely due to a lack of fine-tuning, thereby showcasing that OoB LLMs are not suitable for NER tasks in qualitative studies. Importantly, we manually validated our model and developed a web-based application that delivers near-instant annotations, making this work more directly translatable into research and clinical workflows.</p><p>This study&#x2019;s findings have practical value for qualitative research. By rapidly coding large collections of physician-patient transcripts, the developed NLP application/tool could reduce the time and resources required for manual review and support larger, multicenter studies that examine communication patterns across different health care settings. Researchers could use the application to qualitatively examine how patients describe and interpret symptoms, express emotions and financial concerns, discuss health behaviors and treatment experiences, communicate preferences, and participate in decision-making. In clinical quality improvement settings, the system could also help identify patterns in how clinicians discuss diagnostic testing, treatment concerns, follow-up plans, and patient questions.</p><p>The results indicate the value of future hybrid approaches. Clinical communication is relational and context-rich, often requiring models to capture longer sequences of text, such as emotional expressions, question-answer exchanges, and multitopic utterances. While transformer-based models provided the strongest performance in this study, a hybrid system that combines the precision of rule-based methods with the contextual depth of transformer models may better handle this variability. This concept parallels manual qualitative coding strategies such as &#x201C;lumping,&#x201D; where longer text segments are grouped to identify overarching themes, and &#x201C;splitting,&#x201D; where text is divided into smaller codes to capture finer details [<xref ref-type="bibr" rid="ref53">53</xref>]. Similar considerations exist in quantitative research, where broad psychometric measures may fail to capture the full dimensionality of a construct [<xref ref-type="bibr" rid="ref54">54</xref>]. Extending hybrid approaches could make NLP pipelines more adaptable to domains where conversation topics vary widely.</p><p>Despite its strengths, this study has several limitations. While the RoBERTa model performed well, it can still generate incorrect or incomplete annotations. Therefore, the application is best suited as a human-guided tool rather than a replacement for qualitative coding. Researchers could use model-generated annotations as a starting point and then review and edit them as needed, rather than manually annotating each transcript from scratch. Although this dataset was larger than those used in previous studies, future work should scale evaluation across more diverse health care contexts to improve robustness. We also acknowledge that larger and more recent proprietary LLMs, such as GPT 5.2 and Gemini 3.5, may achieve stronger zero-shot prompt performance. However, we could not evaluate these models in our local environment due to computational limitations and privacy concerns. Additionally, LLMs are known to be affected by different prompts and wording, which was not explored in this study; a single standard prompt was used to generate the results. Moreover, further clinical validation through direct application of our developed tool is needed to assess its performance in a qualitative study. This validation will be essential to determine its clinical usefulness further and support its future implementation in practice. Future research should also explore fine-tuning LLMs and further validate the NER tool in additional studies, including its ability to handle longer transcripts without a sliding window for stronger contextual understanding.</p></sec><sec id="s4-2"><title>Conclusions</title><p>This study demonstrates the feasibility and effectiveness of transformer-based models to process large-scale qualitative clinical communication data in cancer care. The RoBERTa NER model achieved the highest overall performance, outperforming traditional ML, rule-based approaches, and the OoB Qwen3 model. The real promise of this approach lies in its ability to enable large-scale, multi-center studies of communication and decision-making that can model systems-level factors. At present, small, single-center studies are limited by nesting effects, which undermine statistical power and prevent the large sample sizes necessary to answer high-level questions about structural and policy factors that shape communication. By accurately identifying and classifying clinically relevant information from complex medical dialogues, our approach addresses a key bottleneck in qualitative health research: the time-intensive and labor-intensive nature of manual coding. The development of a real-time, web-based application further enhances the practical use of this work, enabling rapid transcript analysis that can support qualitative research. These findings highlight the potential for integrating NLP into qualitative research workflows to improve efficiency, consistency, and scalability.</p></sec></sec></body><back><ack><p>The authors would like to acknowledge Mr Manan Patel for programming assistance with this study.</p></ack><notes><sec><title>Generative AI Use</title><p>The authors attest that there was no use of generative AI technology in the generation of text, figures, or other informational content in this manuscript.</p></sec><sec><title>Funding</title><p>This study was funded by the National Cancer Institute (R01 CA124607), with LAS serving as the principal investigator. This study was funded for a total of 5 years starting from 2008 to 2012. The study was funded for a total of US $3,840,853.</p></sec><sec><title>Data Availability</title><p>The dataset used in this paper was generated from the NIH-funded grant R01CA124607. Interview transcripts collected as part of this project are used for secondary analysis in this study. This dataset cannot be made publicly available to protect the privacy and security of patients and participants.</p></sec></notes><fn-group><fn fn-type="con"><p>Conceptualization: JSP, LAS, MDT</p><p>Formal analysis: JSP, ZAS, RK, OM</p><p>Writing &#x2013; review &#x0026; editing: JSP, LAS, MDT, RK, OM</p></fn><fn fn-type="conflict"><p>None declared.</p></fn></fn-group><glossary><title>Abbreviations</title><def-list><def-item><term id="abb1">AUC</term><def><p>area under the curve</p></def></def-item><def-item><term id="abb2">BERT</term><def><p>bidirectional encoder representations from transformer</p></def></def-item><def-item><term id="abb3">BIOES</term><def><p>Beginning, Inside, Outside, End, and Single</p></def></def-item><def-item><term id="abb4">BoW</term><def><p>bag-of-words</p></def></def-item><def-item><term id="abb5">CLAMP</term><def><p>Clinical Language Annotation, Modeling, and Processing</p></def></def-item><def-item><term id="abb6">cTAKES</term><def><p>Clinical Text Analysis and Knowledge Extraction System</p></def></def-item><def-item><term id="abb7">eHOST</term><def><p>Extensible Human Oracle Suite of Tools</p></def></def-item><def-item><term id="abb8">FN</term><def><p>false negative</p></def></def-item><def-item><term id="abb9">FP</term><def><p>false positive</p></def></def-item><def-item><term id="abb10">IRB</term><def><p>institutional review board</p></def></def-item><def-item><term id="abb11">LDA</term><def><p>Latent Dirichlet Allocation</p></def></def-item><def-item><term id="abb12">LLM</term><def><p>large language model</p></def></def-item><def-item><term id="abb13">ML</term><def><p>machine learning</p></def></def-item><def-item><term id="abb14">NER</term><def><p>named entity recognition</p></def></def-item><def-item><term id="abb15">NLP</term><def><p>natural language processing</p></def></def-item><def-item><term id="abb16">OoB</term><def><p>out-of-the-box</p></def></def-item><def-item><term id="abb17">PCP</term><def><p>primary care physician</p></def></def-item><def-item><term id="abb18">QoL</term><def><p>quality of life</p></def></def-item><def-item><term id="abb19">RoBERTa</term><def><p>Robustly Optimized BERT Pretraining Approach</p></def></def-item><def-item><term id="abb20">SVM</term><def><p>support vector machine</p></def></def-item><def-item><term id="abb21">TF&#x2011;IDF</term><def><p>term frequency and inverse document frequency</p></def></def-item><def-item><term id="abb22">TN</term><def><p>true negative</p></def></def-item><def-item><term id="abb23">TP</term><def><p>true positive</p></def></def-item><def-item><term id="abb24">USP</term><def><p>unannounced standardized patient</p></def></def-item></def-list></glossary><ref-list><title>References</title><ref id="ref1"><label>1</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Granek</surname><given-names>L</given-names> </name><name name-style="western"><surname>Nakash</surname><given-names>O</given-names> </name><name name-style="western"><surname>Ariad</surname><given-names>S</given-names> </name><name name-style="western"><surname>Shapira</surname><given-names>S</given-names> </name><name name-style="western"><surname>Ben-David</surname><given-names>M</given-names> </name></person-group><article-title>Mental health distress: oncology nurses&#x2019; strategies and barriers in identifying distress in patients with cancer</article-title><source>Clin J Oncol Nurs</source><year>2019</year><month>02</month><day>1</day><volume>23</volume><issue>1</issue><fpage>43</fpage><lpage>51</lpage><pub-id pub-id-type="doi">10.1188/19.CJON.43-51</pub-id><pub-id pub-id-type="medline">30681995</pub-id></nlm-citation></ref><ref id="ref2"><label>2</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Kaul</surname><given-names>S</given-names> </name><name name-style="western"><surname>Avila</surname><given-names>JC</given-names> </name><name name-style="western"><surname>Mutambudzi</surname><given-names>M</given-names> </name><name name-style="western"><surname>Russell</surname><given-names>H</given-names> </name><name name-style="western"><surname>Kirchhoff</surname><given-names>AC</given-names> </name><name name-style="western"><surname>Schwartz</surname><given-names>CL</given-names> </name></person-group><article-title>Mental distress and health care use among survivors of adolescent and young adult cancer: a cross-sectional analysis of the National Health Interview Survey</article-title><source>Cancer</source><year>2017</year><month>03</month><day>1</day><volume>123</volume><issue>5</issue><fpage>869</fpage><lpage>878</lpage><pub-id pub-id-type="doi">10.1002/cncr.30417</pub-id><pub-id pub-id-type="medline">27859009</pub-id></nlm-citation></ref><ref id="ref3"><label>3</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Kwekkeboom</surname><given-names>KL</given-names> </name><name name-style="western"><surname>Seng</surname><given-names>JS</given-names> </name></person-group><article-title>Recognizing and responding to post-traumatic stress disorder in people with cancer</article-title><source>Oncol Nurs Forum</source><year>2002</year><month>05</month><volume>29</volume><issue>4</issue><fpage>643</fpage><lpage>650</lpage><pub-id pub-id-type="doi">10.1188/02.ONF.643-650</pub-id><pub-id pub-id-type="medline">12011911</pub-id></nlm-citation></ref><ref id="ref4"><label>4</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Zebrack</surname><given-names>B</given-names> </name><name name-style="western"><surname>Kayser</surname><given-names>K</given-names> </name><name name-style="western"><surname>Sundstrom</surname><given-names>L</given-names> </name><etal/></person-group><article-title>Psychosocial distress screening implementation in cancer care: an analysis of adherence, responsiveness, and acceptability</article-title><source>J Clin Oncol</source><year>2015</year><month>04</month><day>1</day><volume>33</volume><issue>10</issue><fpage>1165</fpage><lpage>1170</lpage><pub-id pub-id-type="doi">10.1200/JCO.2014.57.4020</pub-id><pub-id pub-id-type="medline">25713427</pub-id></nlm-citation></ref><ref id="ref5"><label>5</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Cusatis</surname><given-names>R</given-names> </name><name name-style="western"><surname>Holt</surname><given-names>JM</given-names> </name><name name-style="western"><surname>Williams</surname><given-names>J</given-names> </name><etal/></person-group><article-title>The impact of patient-generated contextual data on communication in clinical practice: a qualitative assessment of patient and clinician perspectives</article-title><source>Patient Educ Couns</source><year>2020</year><month>04</month><volume>103</volume><issue>4</issue><fpage>734</fpage><lpage>740</lpage><pub-id pub-id-type="doi">10.1016/j.pec.2019.10.020</pub-id><pub-id pub-id-type="medline">31744702</pub-id></nlm-citation></ref><ref id="ref6"><label>6</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>de Haes</surname><given-names>JC</given-names> </name><name name-style="western"><surname>van Knippenberg</surname><given-names>FC</given-names> </name></person-group><article-title>The quality of life of cancer patients: a review of the literature</article-title><source>Soc Sci Med</source><year>1985</year><volume>20</volume><issue>8</issue><fpage>809</fpage><lpage>817</lpage><pub-id pub-id-type="doi">10.1016/0277-9536(85)90335-1</pub-id><pub-id pub-id-type="medline">3890194</pub-id></nlm-citation></ref><ref id="ref7"><label>7</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Ekberg</surname><given-names>S</given-names> </name><name name-style="western"><surname>Parry</surname><given-names>R</given-names> </name><name name-style="western"><surname>Land</surname><given-names>V</given-names> </name><etal/></person-group><article-title>Communicating with patients and families about illness progression and end of life: a review of studies using direct observation of clinical practice</article-title><source>BMC Palliat Care</source><year>2021</year><month>12</month><day>8</day><volume>20</volume><issue>1</issue><fpage>186</fpage><pub-id pub-id-type="doi">10.1186/s12904-021-00876-2</pub-id><pub-id pub-id-type="medline">34876096</pub-id></nlm-citation></ref><ref id="ref8"><label>8</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Fenton</surname><given-names>ATHR</given-names> </name><name name-style="western"><surname>Fletcher</surname><given-names>KM</given-names> </name><name name-style="western"><surname>Kizildag</surname><given-names>D</given-names> </name><etal/></person-group><article-title>Cancer caregivers&#x2019; prognostic and end-of-life communication needs and experiences and their impact</article-title><source>J Pain Symptom Manage</source><year>2023</year><month>01</month><volume>65</volume><issue>1</issue><fpage>16</fpage><lpage>25</lpage><pub-id pub-id-type="doi">10.1016/j.jpainsymman.2022.09.012</pub-id><pub-id pub-id-type="medline">36198337</pub-id></nlm-citation></ref><ref id="ref9"><label>9</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Kwame</surname><given-names>A</given-names> </name><name name-style="western"><surname>Petrucka</surname><given-names>PM</given-names> </name></person-group><article-title>A literature-based study of patient-centered care and communication in nurse-patient interactions: barriers, facilitators, and the way forward</article-title><source>BMC Nurs</source><year>2021</year><month>09</month><day>3</day><volume>20</volume><issue>1</issue><fpage>158</fpage><pub-id pub-id-type="doi">10.1186/s12912-021-00684-2</pub-id><pub-id pub-id-type="medline">34479560</pub-id></nlm-citation></ref><ref id="ref10"><label>10</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Michael</surname><given-names>N</given-names> </name><name name-style="western"><surname>Gorelik</surname><given-names>A</given-names> </name><name name-style="western"><surname>Georgousopoulou</surname><given-names>E</given-names> </name><etal/></person-group><article-title>Patient-caregiver communication concordance in cancer&#x2014;refinement of the cancer communication assessment tool in an Australian sample</article-title><source>Support Care Cancer</source><year>2022</year><month>09</month><volume>30</volume><issue>9</issue><fpage>7387</fpage><lpage>7396</lpage><pub-id pub-id-type="doi">10.1007/s00520-022-07163-7</pub-id><pub-id pub-id-type="medline">35612665</pub-id></nlm-citation></ref><ref id="ref11"><label>11</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Sharkiya</surname><given-names>SH</given-names> </name></person-group><article-title>Quality communication can improve patient-centred health outcomes among older patients: a rapid review</article-title><source>BMC Health Serv Res</source><year>2023</year><month>08</month><day>22</day><volume>23</volume><issue>1</issue><fpage>886</fpage><pub-id pub-id-type="doi">10.1186/s12913-023-09869-8</pub-id><pub-id pub-id-type="medline">37608376</pub-id></nlm-citation></ref><ref id="ref12"><label>12</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Bourque</surname><given-names>MA</given-names> </name><name name-style="western"><surname>Loiselle</surname><given-names>CG</given-names> </name></person-group><article-title>Patients&#x2019; cancer care perceptions conceptualized through the Cancer Experience Measurement Framework</article-title><source>BMC Health Serv Res</source><year>2022</year><month>05</month><day>23</day><volume>22</volume><issue>1</issue><fpage>693</fpage><pub-id pub-id-type="doi">10.1186/s12913-022-07946-y</pub-id><pub-id pub-id-type="medline">35606765</pub-id></nlm-citation></ref><ref id="ref13"><label>13</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>L&#x00E5;ver</surname><given-names>J</given-names> </name><name name-style="western"><surname>McAleavey</surname><given-names>A</given-names> </name><name name-style="western"><surname>Valaker</surname><given-names>I</given-names> </name><name name-style="western"><surname>Castonguay</surname><given-names>LG</given-names> </name><name name-style="western"><surname>Moltu</surname><given-names>C</given-names> </name></person-group><article-title>Therapists&#x2019; and patients&#x2019; experiences of using patients&#x2019; self-reported data in ongoing psychotherapy processes&#x2014;a systematic review and meta-analysis of qualitative studies</article-title><source>Psychother Res</source><year>2024</year><month>03</month><volume>34</volume><issue>3</issue><fpage>293</fpage><lpage>310</lpage><pub-id pub-id-type="doi">10.1080/10503307.2023.2222896</pub-id><pub-id pub-id-type="medline">37322037</pub-id></nlm-citation></ref><ref id="ref14"><label>14</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Mulley</surname><given-names>AG</given-names> </name><name name-style="western"><surname>Trimble</surname><given-names>C</given-names> </name><name name-style="western"><surname>Elwyn</surname><given-names>G</given-names> </name></person-group><article-title>Stop the silent misdiagnosis: patients&#x2019; preferences matter</article-title><source>BMJ</source><year>2012</year><month>11</month><day>8</day><volume>345</volume><fpage>e6572</fpage><pub-id pub-id-type="doi">10.1136/bmj.e6572</pub-id><pub-id pub-id-type="medline">23137819</pub-id></nlm-citation></ref><ref id="ref15"><label>15</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Sanda</surname><given-names>MG</given-names> </name><name name-style="western"><surname>Dunn</surname><given-names>RL</given-names> </name><name name-style="western"><surname>Michalski</surname><given-names>J</given-names> </name><etal/></person-group><article-title>Quality of life and satisfaction with outcome among prostate-cancer survivors</article-title><source>N Engl J Med</source><year>2008</year><month>03</month><day>20</day><volume>358</volume><issue>12</issue><fpage>1250</fpage><lpage>1261</lpage><pub-id pub-id-type="doi">10.1056/NEJMoa074311</pub-id><pub-id pub-id-type="medline">18354103</pub-id></nlm-citation></ref><ref id="ref16"><label>16</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Sitzia</surname><given-names>J</given-names> </name><name name-style="western"><surname>Wood</surname><given-names>N</given-names> </name></person-group><article-title>Patient satisfaction: a review of issues and concepts</article-title><source>Soc Sci Med</source><year>1997</year><month>12</month><volume>45</volume><issue>12</issue><fpage>1829</fpage><lpage>1843</lpage><pub-id pub-id-type="doi">10.1016/s0277-9536(97)00128-7</pub-id><pub-id pub-id-type="medline">9447632</pub-id></nlm-citation></ref><ref id="ref17"><label>17</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Truog</surname><given-names>RD</given-names> </name></person-group><article-title>Patients and doctors&#x2014;evolution of a relationship</article-title><source>N Engl J Med</source><year>2012</year><month>02</month><day>16</day><volume>366</volume><issue>7</issue><fpage>581</fpage><lpage>585</lpage><pub-id pub-id-type="doi">10.1056/NEJMp1110848</pub-id><pub-id pub-id-type="medline">22335734</pub-id></nlm-citation></ref><ref id="ref18"><label>18</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Davidson</surname><given-names>E</given-names> </name><name name-style="western"><surname>Edwards</surname><given-names>R</given-names> </name><name name-style="western"><surname>Jamieson</surname><given-names>L</given-names> </name><name name-style="western"><surname>Weller</surname><given-names>S</given-names> </name></person-group><article-title>Big data, qualitative style: a breadth-and-depth method for working with large amounts of secondary qualitative data</article-title><source>Qual Quant</source><year>2019</year><volume>53</volume><issue>1</issue><fpage>363</fpage><lpage>376</lpage><pub-id pub-id-type="doi">10.1007/s11135-018-0757-y</pub-id><pub-id pub-id-type="medline">30930496</pub-id></nlm-citation></ref><ref id="ref19"><label>19</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Massie</surname><given-names>MJ</given-names> </name></person-group><article-title>Prevalence of depression in patients with cancer</article-title><source>J Natl Cancer Inst Monographs</source><year>2004</year><month>07</month><day>1</day><volume>2004</volume><issue>32</issue><fpage>57</fpage><lpage>71</lpage><pub-id pub-id-type="doi">10.1093/jncimonographs/lgh014</pub-id></nlm-citation></ref><ref id="ref20"><label>20</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>S&#x00F6;llner</surname><given-names>W</given-names> </name><name name-style="western"><surname>DeVries</surname><given-names>A</given-names> </name><name name-style="western"><surname>Steixner</surname><given-names>E</given-names> </name><etal/></person-group><article-title>How successful are oncologists in identifying patient distress, perceived social support, and need for psychosocial counselling?</article-title><source>Br J Cancer</source><year>2001</year><month>01</month><volume>84</volume><issue>2</issue><fpage>179</fpage><lpage>185</lpage><pub-id pub-id-type="doi">10.1054/bjoc.2000.1545</pub-id><pub-id pub-id-type="medline">11161373</pub-id></nlm-citation></ref><ref id="ref21"><label>21</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Greenfield</surname><given-names>G</given-names> </name><name name-style="western"><surname>Ignatowicz</surname><given-names>AM</given-names> </name><name name-style="western"><surname>Belsi</surname><given-names>A</given-names> </name><etal/></person-group><article-title>Wake up, wake up! It&#x2019;s me! It&#x2019;s my life! Patient narratives on person-centeredness in the integrated care context: a qualitative study</article-title><source>BMC Health Serv Res</source><year>2014</year><month>11</month><day>29</day><volume>14</volume><issue>1</issue><fpage>619</fpage><pub-id pub-id-type="doi">10.1186/s12913-014-0619-9</pub-id><pub-id pub-id-type="medline">25471663</pub-id></nlm-citation></ref><ref id="ref22"><label>22</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Kusurkar</surname><given-names>RA</given-names> </name><name name-style="western"><surname>Mak-van der Vossen</surname><given-names>M</given-names> </name><name name-style="western"><surname>Kors</surname><given-names>J</given-names> </name><etal/></person-group><article-title>&#x201C;One size does not fit all&#x201D;: the value of person-centred analysis in health professions education research</article-title><source>Perspect Med Educ</source><year>2021</year><month>08</month><volume>10</volume><issue>4</issue><fpage>245</fpage><lpage>251</lpage><pub-id pub-id-type="doi">10.1007/s40037-020-00633-w</pub-id><pub-id pub-id-type="medline">33284407</pub-id></nlm-citation></ref><ref id="ref23"><label>23</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Liang</surname><given-names>M</given-names> </name><name name-style="western"><surname>Liang</surname><given-names>J</given-names> </name><name name-style="western"><surname>Xu</surname><given-names>J</given-names> </name><name name-style="western"><surname>Chen</surname><given-names>Q</given-names> </name><name name-style="western"><surname>Lu</surname><given-names>Q</given-names> </name></person-group><article-title>Experience of multidisciplinary medical teams on humanistic palliative care in oncology wards: a descriptive qualitative study in Southern China</article-title><source>BMJ Open</source><year>2024</year><month>02</month><day>26</day><volume>14</volume><issue>2</issue><fpage>e074628</fpage><pub-id pub-id-type="doi">10.1136/bmjopen-2023-074628</pub-id><pub-id pub-id-type="medline">38413159</pub-id></nlm-citation></ref><ref id="ref24"><label>24</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Ullrich</surname><given-names>C</given-names> </name><name name-style="western"><surname>St&#x00FC;rmlinger</surname><given-names>A</given-names> </name><name name-style="western"><surname>Wensing</surname><given-names>M</given-names> </name><name name-style="western"><surname>Krug</surname><given-names>K</given-names> </name></person-group><article-title>Qualitative research methods in medical dissertations: an observational methodological study on prevalence and reporting quality of dissertation abstracts in a German university</article-title><source>BMC Med Res Methodol</source><year>2020</year><month>12</month><day>10</day><volume>20</volume><issue>1</issue><fpage>301</fpage><pub-id pub-id-type="doi">10.1186/s12874-020-01186-6</pub-id><pub-id pub-id-type="medline">33302886</pub-id></nlm-citation></ref><ref id="ref25"><label>25</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Abram</surname><given-names>MD</given-names> </name><name name-style="western"><surname>Mancini</surname><given-names>KT</given-names> </name><name name-style="western"><surname>Parker</surname><given-names>RD</given-names> </name></person-group><article-title>Methods to integrate natural language processing into qualitative research</article-title><source>Int J Qual Methods</source><year>2020</year><month>01</month><day>1</day><volume>19</volume><fpage>1609406920984608</fpage><pub-id pub-id-type="doi">10.1177/1609406920984608</pub-id></nlm-citation></ref><ref id="ref26"><label>26</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Crowston</surname><given-names>K</given-names> </name><name name-style="western"><surname>Allen</surname><given-names>EE</given-names> </name><name name-style="western"><surname>Heckman</surname><given-names>R</given-names> </name></person-group><article-title>Using natural language processing technology for qualitative data analysis</article-title><source>Int J Soc Res Methodol</source><year>2012</year><month>11</month><volume>15</volume><issue>6</issue><fpage>523</fpage><lpage>543</lpage><pub-id pub-id-type="doi">10.1080/13645579.2011.625764</pub-id></nlm-citation></ref><ref id="ref27"><label>27</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>McMullin</surname><given-names>C</given-names> </name></person-group><article-title>Transcription and qualitative methods: implications for third sector research</article-title><source>Voluntas</source><year>2023</year><volume>34</volume><issue>1</issue><fpage>140</fpage><lpage>153</lpage><pub-id pub-id-type="doi">10.1007/s11266-021-00400-3</pub-id><pub-id pub-id-type="medline">34522070</pub-id></nlm-citation></ref><ref id="ref28"><label>28</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Carminati</surname><given-names>L</given-names> </name></person-group><article-title>Generalizability in qualitative research: a tale of two traditions</article-title><source>Qual Health Res</source><year>2018</year><month>11</month><volume>28</volume><issue>13</issue><fpage>2094</fpage><lpage>2101</lpage><pub-id pub-id-type="doi">10.1177/1049732318788379</pub-id><pub-id pub-id-type="medline">30043686</pub-id></nlm-citation></ref><ref id="ref29"><label>29</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Allen</surname><given-names>KS</given-names> </name><name name-style="western"><surname>Hood</surname><given-names>DR</given-names> </name><name name-style="western"><surname>Cummins</surname><given-names>J</given-names> </name><name name-style="western"><surname>Kasturi</surname><given-names>S</given-names> </name><name name-style="western"><surname>Mendonca</surname><given-names>EA</given-names> </name><name name-style="western"><surname>Vest</surname><given-names>JR</given-names> </name></person-group><article-title>Natural language processing-driven state machines to extract social factors from unstructured clinical documentation</article-title><source>JAMIA Open</source><year>2023</year><month>07</month><volume>6</volume><issue>2</issue><fpage>ooad024</fpage><pub-id pub-id-type="doi">10.1093/jamiaopen/ooad024</pub-id><pub-id pub-id-type="medline">37081945</pub-id></nlm-citation></ref><ref id="ref30"><label>30</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Savova</surname><given-names>GK</given-names> </name><name name-style="western"><surname>Masanz</surname><given-names>JJ</given-names> </name><name name-style="western"><surname>Ogren</surname><given-names>PV</given-names> </name><etal/></person-group><article-title>Mayo clinical Text Analysis and Knowledge Extraction System (cTAKES): architecture, component evaluation and applications</article-title><source>J Am Med Inform Assoc</source><year>2010</year><volume>17</volume><issue>5</issue><fpage>507</fpage><lpage>513</lpage><pub-id pub-id-type="doi">10.1136/jamia.2009.001560</pub-id><pub-id pub-id-type="medline">20819853</pub-id></nlm-citation></ref><ref id="ref31"><label>31</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Soysal</surname><given-names>E</given-names> </name><name name-style="western"><surname>Wang</surname><given-names>J</given-names> </name><name name-style="western"><surname>Jiang</surname><given-names>M</given-names> </name><etal/></person-group><article-title>CLAMP - a toolkit for efficiently building customized clinical natural language processing pipelines</article-title><source>J Am Med Inform Assoc</source><year>2018</year><month>03</month><day>1</day><volume>25</volume><issue>3</issue><fpage>331</fpage><lpage>336</lpage><pub-id pub-id-type="doi">10.1093/jamia/ocx132</pub-id><pub-id pub-id-type="medline">29186491</pub-id></nlm-citation></ref><ref id="ref32"><label>32</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Buchalter</surname><given-names>RB</given-names> </name><name name-style="western"><surname>Kamath</surname><given-names>SD</given-names> </name><name name-style="western"><surname>Nair</surname><given-names>KG</given-names> </name><name name-style="western"><surname>Liska</surname><given-names>D</given-names> </name><name name-style="western"><surname>Khorana</surname><given-names>AA</given-names> </name><name name-style="western"><surname>Schmit</surname><given-names>SL</given-names> </name></person-group><article-title>Novel hot and cold spots of young-onset colorectal cancer mortality in United States counties</article-title><source>Gastroenterology</source><year>2022</year><month>06</month><day>18</day><volume>163</volume><issue>4</issue><fpage>1101</fpage><pub-id pub-id-type="doi">10.1053/j.gastro.2022.06.044</pub-id><pub-id pub-id-type="medline">35728692</pub-id></nlm-citation></ref><ref id="ref33"><label>33</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Cheligeer</surname><given-names>C</given-names> </name><name name-style="western"><surname>Wu</surname><given-names>G</given-names> </name><name name-style="western"><surname>Lee</surname><given-names>S</given-names> </name><etal/></person-group><article-title>BERT-based neural network for inpatient fall detection from electronic medical records: retrospective cohort study</article-title><source>JMIR Med Inform</source><year>2024</year><month>01</month><day>30</day><volume>12</volume><fpage>e48995</fpage><pub-id pub-id-type="doi">10.2196/48995</pub-id><pub-id pub-id-type="medline">38289643</pub-id></nlm-citation></ref><ref id="ref34"><label>34</label><nlm-citation citation-type="confproc"><person-group person-group-type="author"><name name-style="western"><surname>Arnaud</surname><given-names>&#x00C9;</given-names> </name><name name-style="western"><surname>Elbattah</surname><given-names>M</given-names> </name><name name-style="western"><surname>Gignon</surname><given-names>M</given-names> </name><name name-style="western"><surname>Dequen</surname><given-names>G</given-names> </name></person-group><article-title>Learning embeddings from free-text triage notes using pretrained transformer models</article-title><conf-name>15th International Joint Conference on Biomedical Engineering Systems and Technologies (BIOSTEC 2022) &#x2014; Scale-IT-up / HEALTHINF track</conf-name><conf-date>Feb 9-11, 2022</conf-date><pub-id pub-id-type="doi">10.5220/0011012800003123</pub-id></nlm-citation></ref><ref id="ref35"><label>35</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Pyne</surname><given-names>Y</given-names> </name><name name-style="western"><surname>Wong</surname><given-names>YM</given-names> </name><name name-style="western"><surname>Fang</surname><given-names>H</given-names> </name><name name-style="western"><surname>Simpson</surname><given-names>E</given-names> </name></person-group><article-title>Analysis of &#x201C;One in a Million&#x201D; primary care consultation conversations using natural language processing</article-title><source>BMJ Health Care Inform</source><year>2023</year><month>04</month><volume>30</volume><issue>1</issue><fpage>e100659</fpage><pub-id pub-id-type="doi">10.1136/bmjhci-2022-100659</pub-id><pub-id pub-id-type="medline">37116948</pub-id></nlm-citation></ref><ref id="ref36"><label>36</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Feizollah</surname><given-names>A</given-names> </name><name name-style="western"><surname>Lin</surname><given-names>CY</given-names> </name><name name-style="western"><surname>O&#x2019;Malley</surname><given-names>L</given-names> </name><name name-style="western"><surname>Thompson</surname><given-names>W</given-names> </name><name name-style="western"><surname>Listl</surname><given-names>S</given-names> </name><name name-style="western"><surname>Byrne</surname><given-names>M</given-names> </name></person-group><article-title>The use of natural language processing to interpret unstructured patient feedback on health services: scoping review</article-title><source>J Med Internet Res</source><year>2025</year><month>08</month><day>14</day><volume>27</volume><fpage>e72853</fpage><pub-id pub-id-type="doi">10.2196/72853</pub-id><pub-id pub-id-type="medline">40811803</pub-id></nlm-citation></ref><ref id="ref37"><label>37</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>L&#x00E1;zaro</surname><given-names>E</given-names> </name><name name-style="western"><surname>Moscard&#x00F3;</surname><given-names>V</given-names> </name></person-group><article-title>Qualitative health-related quality of life and natural language processing: characteristics, implications, and challenges</article-title><source>Health Care (Don Mills)</source><year>2024</year><volume>12</volume><issue>19</issue><fpage>2008</fpage><pub-id pub-id-type="doi">10.3390/healthcare12192008</pub-id></nlm-citation></ref><ref id="ref38"><label>38</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Castellanos</surname><given-names>A</given-names> </name><name name-style="western"><surname>Jiang</surname><given-names>H</given-names> </name><name name-style="western"><surname>Gomes</surname><given-names>P</given-names> </name><name name-style="western"><surname>Vander Meer</surname><given-names>D</given-names> </name><name name-style="western"><surname>Castillo</surname><given-names>A</given-names> </name></person-group><article-title>Large language models for thematic summarization in qualitative health care research: comparative analysis of model and human performance</article-title><source>JMIR AI</source><year>2025</year><month>04</month><day>4</day><volume>4</volume><fpage>e64447</fpage><pub-id pub-id-type="doi">10.2196/64447</pub-id><pub-id pub-id-type="medline">40611510</pub-id></nlm-citation></ref><ref id="ref39"><label>39</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Parker</surname><given-names>RD</given-names> </name><name name-style="western"><surname>Mancini</surname><given-names>K</given-names> </name><name name-style="western"><surname>Abram</surname><given-names>MD</given-names> </name></person-group><article-title>Natural language processing enhanced qualitative methods: an opportunity to improve health outcomes</article-title><source>Int J Qual Methods</source><year>2023</year><month>10</month><volume>22</volume><fpage>16094069231214144</fpage><pub-id pub-id-type="doi">10.1177/16094069231214144</pub-id></nlm-citation></ref><ref id="ref40"><label>40</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Mathis</surname><given-names>WS</given-names> </name><name name-style="western"><surname>Zhao</surname><given-names>S</given-names> </name><name name-style="western"><surname>Pratt</surname><given-names>N</given-names> </name><name name-style="western"><surname>Weleff</surname><given-names>J</given-names> </name><name name-style="western"><surname>De Paoli</surname><given-names>S</given-names> </name></person-group><article-title>Inductive thematic analysis of healthcare qualitative interviews using open-source large language models: how does it compare to traditional methods?</article-title><source>Comput Methods Programs Biomed</source><year>2024</year><month>10</month><volume>255</volume><fpage>108356</fpage><pub-id pub-id-type="doi">10.1016/j.cmpb.2024.108356</pub-id><pub-id pub-id-type="medline">39067136</pub-id></nlm-citation></ref><ref id="ref41"><label>41</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Rogers</surname><given-names>HL</given-names> </name><name name-style="western"><surname>Dumenci</surname><given-names>L</given-names> </name><name name-style="western"><surname>Epstein</surname><given-names>RM</given-names> </name><name name-style="western"><surname>Siminoff</surname><given-names>LA</given-names> </name></person-group><article-title>Impact of patient gender and race and physician communication on colorectal cancer diagnostic visits in primary care</article-title><source>J Womens Health (Larchmt)</source><year>2019</year><month>05</month><volume>28</volume><issue>5</issue><fpage>612</fpage><lpage>620</lpage><pub-id pub-id-type="doi">10.1089/jwh.2018.6961</pub-id><pub-id pub-id-type="medline">30489201</pub-id></nlm-citation></ref><ref id="ref42"><label>42</label><nlm-citation citation-type="confproc"><person-group person-group-type="author"><name name-style="western"><surname>Sureshbhai Patel</surname><given-names>J</given-names> </name><name name-style="western"><surname>Rao</surname><given-names>R</given-names> </name><name name-style="western"><surname>Brandon</surname><given-names>R</given-names> </name><etal/></person-group><article-title>Develop a natural language processing pipeline to automate extraction of periodontal disease information from electronic dental clinical notes</article-title><conf-name>ICMHI &#x2019;22: Proceedings of the 6th International Conference on Medical and Health Informatics</conf-name><conf-date>May 13-15, 2022</conf-date><pub-id pub-id-type="doi">10.1145/3545729.3545744</pub-id></nlm-citation></ref><ref id="ref43"><label>43</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Patel</surname><given-names>JS</given-names> </name><name name-style="western"><surname>Brandon</surname><given-names>R</given-names> </name><name name-style="western"><surname>Tellez</surname><given-names>M</given-names> </name><etal/></person-group><article-title>Developing automated computer algorithms to phenotype periodontal disease diagnoses in electronic dental records</article-title><source>Methods Inf Med</source><year>2022</year><month>12</month><volume>61</volume><issue>S 02</issue><fpage>e125</fpage><lpage>e133</lpage><pub-id pub-id-type="doi">10.1055/s-0042-1757880</pub-id><pub-id pub-id-type="medline">36413995</pub-id></nlm-citation></ref><ref id="ref44"><label>44</label><nlm-citation citation-type="book"><person-group person-group-type="author"><name name-style="western"><surname>Wang</surname><given-names>X</given-names> </name><name name-style="western"><surname>Wang</surname><given-names>Y</given-names> </name></person-group><article-title>Sentence-level resampling for named entity recognition</article-title><source>Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies</source><year>2022</year><publisher-name>Association for Computational Linguistics</publisher-name><fpage>2151</fpage><lpage>2165</lpage><pub-id pub-id-type="doi">10.18653/v1/2022.naacl-main.156</pub-id></nlm-citation></ref><ref id="ref45"><label>45</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Chawla</surname><given-names>NV</given-names> </name><name name-style="western"><surname>Bowyer</surname><given-names>KW</given-names> </name><name name-style="western"><surname>Hall</surname><given-names>LO</given-names> </name><name name-style="western"><surname>Kegelmeyer</surname><given-names>WP</given-names> </name></person-group><article-title>SMOTE: synthetic minority over-sampling technique</article-title><source>J Artif Intell Res</source><year>2002</year><volume>16</volume><fpage>321</fpage><lpage>357</lpage><pub-id pub-id-type="doi">10.1613/jair.953</pub-id></nlm-citation></ref><ref id="ref46"><label>46</label><nlm-citation citation-type="report"><person-group person-group-type="author"><name name-style="western"><surname>Epstein</surname><given-names>RM</given-names> </name><name name-style="western"><surname>Street</surname><given-names>RL</given-names>  <suffix>Jr</suffix></name></person-group><article-title>Patient-centered communication in cancer care: promoting healing and reducing suffering</article-title><year>2007</year><access-date>2026-10-12</access-date><publisher-name>National Cancer Institute, National Institutes of Health, US Department of Health and Human Services</publisher-name><comment><ext-link ext-link-type="uri" xlink:href="https://cancercontrol.cancer.gov/sites/default/files/2020-06/pcc_monograph.pdf">https://cancercontrol.cancer.gov/sites/default/files/2020-06/pcc_monograph.pdf</ext-link></comment></nlm-citation></ref><ref id="ref47"><label>47</label><nlm-citation citation-type="other"><person-group person-group-type="author"><name name-style="western"><surname>Petridis</surname><given-names>C</given-names> </name></person-group><article-title>Text classification: neural networks vs machine learning models vs pre-trained models</article-title><source>arXiv</source><comment>Preprint posted online on  Dec 30, 2024</comment><pub-id pub-id-type="doi">10.48550/arXiv.2412.21022</pub-id></nlm-citation></ref><ref id="ref48"><label>48</label><nlm-citation citation-type="other"><person-group person-group-type="author"><name name-style="western"><surname>Liu</surname><given-names>Y</given-names> </name><name name-style="western"><surname>Ott</surname><given-names>M</given-names> </name><name name-style="western"><surname>Goyal</surname><given-names>N</given-names> </name><etal/></person-group><article-title>RoBERTa: a robustly optimized BERT pretraining approach</article-title><source>arXiv</source><comment>Preprint posted online on  Jul 26, 2019</comment><pub-id pub-id-type="doi">10.48550/arXiv.1907.11692</pub-id></nlm-citation></ref><ref id="ref49"><label>49</label><nlm-citation citation-type="book"><person-group person-group-type="author"><name name-style="western"><surname>Neumann</surname><given-names>M</given-names> </name><name name-style="western"><surname>King</surname><given-names>D</given-names> </name><name name-style="western"><surname>Beltagy</surname><given-names>I</given-names> </name><name name-style="western"><surname>Ammar</surname><given-names>W</given-names> </name></person-group><article-title>scispaCy: fast and robust models for biomedical natural language processing</article-title><source>Proceedings of the 18th BioNLP Workshop and Shared Task</source><year>2019</year><publisher-name>Association for Computational Linguistics</publisher-name><fpage>319</fpage><lpage>327</lpage><pub-id pub-id-type="doi">10.18653/v1/W19-5034</pub-id></nlm-citation></ref><ref id="ref50"><label>50</label><nlm-citation citation-type="other"><person-group person-group-type="author"><name name-style="western"><surname>Yang</surname><given-names>A</given-names> </name><name name-style="western"><surname>Li</surname><given-names>A</given-names> </name><name name-style="western"><surname>Yang</surname><given-names>B</given-names> </name><etal/></person-group><article-title>Qwen3 technical report</article-title><source>arXiv</source><comment>Preprint posted online on  May 14, 2025</comment><pub-id pub-id-type="doi">10.48550/arXiv.2505.09388</pub-id></nlm-citation></ref><ref id="ref51"><label>51</label><nlm-citation citation-type="other"><person-group person-group-type="author"><name name-style="western"><surname>Grandini</surname><given-names>M</given-names> </name><name name-style="western"><surname>Bagli</surname><given-names>E</given-names> </name><name name-style="western"><surname>Visani</surname><given-names>G</given-names> </name></person-group><article-title>Metrics for multi-class classification: an overview</article-title><source>arXiv</source><comment>Preprint posted online on  Aug 13, 2020</comment><pub-id pub-id-type="doi">10.48550/arXiv.2008.05756</pub-id></nlm-citation></ref><ref id="ref52"><label>52</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Opitz</surname><given-names>J</given-names> </name></person-group><article-title>A closer look at classification evaluation metrics and a critical reflection of common evaluation practice</article-title><source>Trans Assoc Comput Linguist</source><year>2024</year><month>06</month><day>25</day><volume>12</volume><fpage>820</fpage><lpage>836</lpage><pub-id pub-id-type="doi">10.1162/tacl_a_00675</pub-id></nlm-citation></ref><ref id="ref53"><label>53</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Fang</surname><given-names>C</given-names> </name><name name-style="western"><surname>Markuzon</surname><given-names>N</given-names> </name><name name-style="western"><surname>Patel</surname><given-names>N</given-names> </name><name name-style="western"><surname>Rueda</surname><given-names>JD</given-names> </name></person-group><article-title>Natural language processing for automated classification of qualitative data from interviews of patients with cancer</article-title><source>Value Health</source><year>2022</year><month>12</month><volume>25</volume><issue>12</issue><fpage>1995</fpage><lpage>2002</lpage><pub-id pub-id-type="doi">10.1016/j.jval.2022.06.004</pub-id><pub-id pub-id-type="medline">35840523</pub-id></nlm-citation></ref><ref id="ref54"><label>54</label><nlm-citation citation-type="book"><person-group person-group-type="author"><name name-style="western"><surname>Salda&#x00F1;a</surname><given-names>J</given-names> </name></person-group><source>The Coding Manual for Qualitative Researchers</source><year>2025</year><access-date>2026-10-12</access-date><publisher-name>SAGE Publications Ltd</publisher-name><comment><ext-link ext-link-type="uri" xlink:href="https://collegepublishing.sagepub.com/products/the-coding-manual-for-qualitative-researchers-5-287917">https://collegepublishing.sagepub.com/products/the-coding-manual-for-qualitative-researchers-5-287917</ext-link></comment></nlm-citation></ref></ref-list><app-group><supplementary-material id="app1"><label>Multimedia Appendix 1</label><p>Word cloud, the distribution of annotated entity text lengths, and the comparison of average word counts.</p><media xlink:href="formative_v10i1e88404_app1.docx" xlink:title="DOCX File, 1444 KB"/></supplementary-material></app-group></back></article>