<?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">J Med Internet Res</journal-id><journal-id journal-id-type="publisher-id">jmir</journal-id><journal-id journal-id-type="index">1</journal-id><journal-title>Journal of Medical Internet Research</journal-title><abbrev-journal-title>J Med Internet Res</abbrev-journal-title><issn pub-type="epub">1438-8871</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">v28i1e102789</article-id><article-id pub-id-type="doi">10.2196/102789</article-id><article-categories><subj-group subj-group-type="heading"><subject>Original Paper</subject></subj-group></article-categories><title-group><article-title>Improving Postpolypectomy Surveillance Decisions Using an Automated Analysis of Colonoscopy and Histopathology Reports: 2-Center Validation Study</article-title></title-group><contrib-group><contrib contrib-type="author"><name name-style="western"><surname>Zecevic</surname><given-names>Agathe</given-names></name><degrees>MSc</degrees><xref ref-type="aff" rid="aff1">1</xref><xref ref-type="aff" rid="aff2">2</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>De Martino</surname><given-names>Sabina</given-names></name><degrees>MD</degrees><xref ref-type="aff" rid="aff3">3</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Lee</surname><given-names>Joshua Shan Chen</given-names></name><degrees>MSc</degrees><xref ref-type="aff" rid="aff4">4</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>To</surname><given-names>Victoria</given-names></name><degrees>MSc</degrees><xref ref-type="aff" rid="aff4">4</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Bhardwaj</surname><given-names>Vedant</given-names></name><degrees>MSc</degrees><xref ref-type="aff" rid="aff4">4</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Sibal</surname><given-names>Rhea</given-names></name><degrees>MSc</degrees><xref ref-type="aff" rid="aff4">4</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Trudgill</surname><given-names>Nigel</given-names></name><degrees>MBBS, MD</degrees><xref ref-type="aff" rid="aff5">5</xref><xref ref-type="aff" rid="aff6">6</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Mohamed</surname><given-names>Shahd A</given-names></name><degrees>MBChB</degrees><xref ref-type="aff" rid="aff5">5</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Roberts</surname><given-names>Angus</given-names></name><degrees>MSc, PhD</degrees><xref ref-type="aff" rid="aff7">7</xref></contrib><contrib contrib-type="author" corresp="yes"><name name-style="western"><surname>Zeki</surname><given-names>Sebastian</given-names></name><degrees>MA, MB BS, MSc, PhD, MRCP</degrees><xref ref-type="aff" rid="aff1">1</xref><xref ref-type="aff" rid="aff3">3</xref></contrib></contrib-group><aff id="aff1"><institution>School of Cancer and Pharmaceutical Sciences, Faculty of Life Sciences and Medicine, King's College London</institution><addr-line>Great Maze Pond, SE1 1UL, United Kingdom</addr-line><addr-line>London</addr-line><country>United Kingdom</country></aff><aff id="aff2"><institution>Clinical Scientific Computing, Guy's and St Thomas' NHS Foundation Trust</institution><addr-line>London</addr-line><country>United Kingdom</country></aff><aff id="aff3"><institution>Gastroenterology Department, Guy's and St Thomas' NHS Foundation Trust</institution><addr-line>Gassiot House, St Thomas' Hospital, Westminster Bridge Road</addr-line><addr-line>London</addr-line><country>United Kingdom</country></aff><aff id="aff4"><institution>GKT School of Medical Education, Faculty of Life Sciences and Medicine, King's College London</institution><addr-line>London</addr-line><country>United Kingdom</country></aff><aff id="aff5"><institution>Gastroenterology Department, Sandwell and West Birmingham Hospitals NHS Trust</institution><addr-line>West Bromwich</addr-line><country>United Kingdom</country></aff><aff id="aff6"><institution>Department of Cancer and Genomic Sciences, University of Birmingham</institution><addr-line>Birmingham</addr-line><country>United Kingdom</country></aff><aff id="aff7"><institution>Biostatistics and Health Informatics, Institute of Psychiatry, Psychology and Neuroscience, King's College London</institution><addr-line>London</addr-line><country>United Kingdom</country></aff><contrib-group><contrib contrib-type="editor"><name name-style="western"><surname>Steenstra</surname><given-names>Ivan</given-names></name></contrib></contrib-group><contrib-group><contrib contrib-type="reviewer"><name name-style="western"><surname>Deshpande</surname><given-names>Amar R</given-names></name></contrib><contrib contrib-type="reviewer"><name name-style="western"><surname>Idouchi</surname><given-names>Kacey</given-names></name></contrib></contrib-group><author-notes><corresp>Correspondence to Sebastian Zeki, MA, MB BS, MSc, PhD, MRCP, Gastroenterology Department, Guy's and St Thomas' NHS Foundation Trust, Gassiot House, St Thomas' Hospital, Westminster Bridge Road, London, SE1 7EH, United Kingdom; <email>sebastian.zeki2@nhs.net</email></corresp></author-notes><pub-date pub-type="collection"><year>2026</year></pub-date><pub-date pub-type="epub"><day>16</day><month>10</month><year>2026</year></pub-date><volume>28</volume><elocation-id>e102789</elocation-id><history><date date-type="received"><day>28</day><month>05</month><year>2026</year></date><date date-type="rev-recd"><day>17</day><month>09</month><year>2026</year></date><date date-type="accepted"><day>17</day><month>09</month><year>2026</year></date></history><copyright-statement>&#x00A9; Agathe Zecevic, Sabina De Martino, Joshua Shan Chen Lee, Victoria To, Vedant Bhardwaj, Rhea Sibal, Nigel Trudgill, Shahd A Mohamed, Angus Roberts, Sebastian Zeki. Originally published in the Journal of Medical Internet Research (<ext-link ext-link-type="uri" xlink:href="https://www.jmir.org">https://www.jmir.org</ext-link>), 16.10.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 the Journal of Medical Internet Research (ISSN 1438-8871), is properly cited. The complete bibliographic information, a link to the original publication on <ext-link ext-link-type="uri" xlink:href="https://www.jmir.org/">https://www.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://www.jmir.org/2026/1/e102789"/><abstract><sec><title>Background</title><p>Postpolypectomy surveillance intervals derived from colonoscopy findings and histopathology should be guideline-based, yet these are frequently not adhered to, contributing to under- and oversurveillance. This motivates a more structured and automated approach to improve adherence.</p></sec><sec><title>Objective</title><p>We developed and evaluated an automated, implementable, guideline-aligned decision support tool that extracts colorectal polyp features from free-text colonoscopy and histopathology reports and produces auditable surveillance recommendations.</p></sec><sec sec-type="methods"><title>Methods</title><p>We extracted paired colonoscopy and histopathology reports from a National Health Service (NHS) trust and designed a 4-stage prompting pipeline using open-weight large language models to separate multispecimen histopathology reports into individual containers (&#x201C;pots&#x201D;), align endoscopic findings with specimens, and normalize each pot into a structured schema. The surveillance intervals were then computed by a deterministic rule engine encoding guideline rules. We evaluated extraction performance on 100 procedures (215 pots), assessed surveillance recommendation performance on a same-site cohort (n=100), and performed external validation on a cohort from a second trust (n=100). A separate retrospective audit compared automated recommendations and observed routine scheduling against a clinician-derived reference based on full electronic health record review in 127 patients.</p></sec><sec sec-type="results"><title>Results</title><p>Key extraction fields showed end-to-end accuracy (specimen type=0.995; location=0.981; diagnosis=0.981; excision completeness=0.949), with mean report-level pot comprehensiveness of 0.968 (SD 0.112). Overall surveillance recommendation accuracy was 0.96 (95% CI 0.90-0.98) at Guy&#x2019;s and St Thomas&#x2019; NHS Foundation Trust (GSTT) and 0.93 (95% CI 0.86-0.97) at Sandwell and West Birmingham NHS Trust (SWB) and showed strong class-level performance (no follow-up <italic>F</italic><sub>1</sub>-score of 0.98 at GSTT and 0.97 at SWB; site check <italic>F</italic><sub>1</sub>-score of 0.93 at GSTT and 0.91 at SWB; 3-year follow-up <italic>F</italic><sub>1</sub>-score of 0.86 at GSTT and 0.80 at SWB; cancer alert <italic>F</italic><sub>1</sub>-score of 1.00 at GSTT and 1.00 at SWB). The comparison to current clinical practice showed that the tool would improve guideline adherence primarily by reducing potential undersurveillance.</p></sec><sec sec-type="conclusions"><title>Conclusions</title><p>This hybrid approach using open-weight large language models for structured extraction and guideline-encoded rules for decision-making can generate accurate, lightweight, and auditable postpolypectomy surveillance recommendations. Such a tool has the potential to improve safety netting and guideline adherence in NHS colonoscopy workflows.</p></sec></abstract><kwd-group><kwd>colorectal polyps</kwd><kwd>clinical decision support</kwd><kwd>natural language processing</kwd><kwd>large language model</kwd><kwd>gastroenterology</kwd><kwd>endoscopy</kwd><kwd>artificial intelligence</kwd><kwd>AI</kwd></kwd-group></article-meta></front><body><sec id="s1" sec-type="intro"><title>Introduction</title><sec id="s1-1"><title>Background</title><p>Colorectal polyps are a significant risk factor for colorectal cancer (CRC). When polyps are identified during an index colonoscopy, patients may require further colonoscopic surveillance depending on the endoscopic and pathological characteristics of the lesions [<xref ref-type="bibr" rid="ref1">1</xref>]. Colorectal polyp surveillance improves the detection of CRCs, particularly in high-risk groups defined by specific endoscopic and pathological findings [<xref ref-type="bibr" rid="ref2">2</xref>-<xref ref-type="bibr" rid="ref5">5</xref>]. Endoscopy represents a substantial workload in the United Kingdom, with around 2 million procedures performed each year. Polyp surveillance accounts for approximately 15% of the half a million colonoscopies performed annually [<xref ref-type="bibr" rid="ref1">1</xref>,<xref ref-type="bibr" rid="ref6">6</xref>].</p><p>Postpolypectomy surveillance decisions are particularly vulnerable to inaccuracies. Reported compliance with the updated 2020 postpolypectomy surveillance guidelines varies from 66.2% to 86.5% [<xref ref-type="bibr" rid="ref7">7</xref>,<xref ref-type="bibr" rid="ref8">8</xref>]. Poor compliance can often be attributed to surveillance intervals not being updated once pathology results become available [<xref ref-type="bibr" rid="ref9">9</xref>]. Nonadherence to guidelines can lead to both under- and oversurveillance, with one study reporting 73% of nonadherent patients having earlier-than-recommended colonoscopies [<xref ref-type="bibr" rid="ref9">9</xref>]. These findings highlight the need for continued efforts to improve guideline adherence in colorectal surveillance and the need for accurate calculation of surveillance intervals based on evolving guidelines.</p><p>Several studies have proposed to automate portions of the decision-making workflow, but they frequently rely on applying inflexible rules or pattern recognition to endoscopy and pathology report text (regular expressions) that struggle to accommodate variations in clinical report language. Existing studies are often limited to single-center data or focus on partial tasks such as adenoma detection without extending to full guideline-based follow-up recommendations [<xref ref-type="bibr" rid="ref10">10</xref>-<xref ref-type="bibr" rid="ref13">13</xref>]. Wu et al [<xref ref-type="bibr" rid="ref14">14</xref>] developed an automatic surveillance system for postpolypectomy follow-up that encodes multiple international guidelines and combines free-text endoscopy and pathology reports to assign surveillance intervals. Their approach relies heavily on regular expressions, which are used to identify patients and map extracted polyp attributes. In practice, this design requires a long list of exclusion categories (no pathology result; poor bowel preparation; previous CRC, colorectal surgery, or endoscopic submucosal dissection; nonpolyp lesions; hamartomas; inconsistent endoscopic vs pathological reports; and missing or malformed size information) so that many real-world reports fall back to manual review rather than fully automated surveillance. The system was developed and evaluated in three hospitals in China, which may limit direct transferability to English-language histopathology workflows in UK practice.</p><p>Recent studies have evaluated general-purpose large language models (LLMs) for postpolypectomy surveillance interval prediction [<xref ref-type="bibr" rid="ref15">15</xref>-<xref ref-type="bibr" rid="ref17">17</xref>]. The larger study by Acharya et al [<xref ref-type="bibr" rid="ref17">17</xref>] leveraged GPT-4o to generate recommendations from colonoscopy and pathology report impressions using prompted US Multi-Society Task Force guidance. These approaches treat surveillance interval generation as an end-to-end language model task, which leaves clinical decision-making implicit without auditable intermediate representation for clinicians to review.</p><p>Our study used a different task breakdown: explicit extraction of specimen-level variables followed by separately implemented British Society of Gastroenterology (BSG) guideline rules. This approach allows for evaluation of the extracted variables and the final interval suggestion. This also allows decision rules to be modified alongside guideline changes independently of the language model. Additionally, we compared automated recommendations with observed care under real-world deployment conditions, looking at patients&#x2019; full electronic health record (EHR) history beyond the index colonoscopy.</p></sec><sec id="s1-2"><title>Aims</title><p>The primary objective of the current study was to develop and retrospectively evaluate an implementable and interpretable hybrid decision-making tool that accurately suggests follow-up timings for patients undergoing colorectal surveillance based on colonoscopy and associated histopathology reports grounded in BSG guidelines. We validated our tool on reports from two geographically disparate National Health Service (NHS) trusts in the United Kingdom (Guy&#x2019;s and St Thomas&#x2019; NHS Foundation Trust [GSTT] and Sandwell and West Birmingham NHS Trust [SWB]).</p><p>A secondary objective was to assess the tool&#x2019;s potential clinical utility in routine NHS care. We compared automated recommendations with observed surveillance timing provided by gastroenterologists&#x2019; review of full EHRs. This approach enabled us to understand whether automated decision support could reduce under- or oversurveillance and identify limitations of decisions based on the index reports.</p></sec></sec><sec id="s2" sec-type="methods"><title>Methods</title><sec id="s2-1"><title>Overview</title><p><xref ref-type="fig" rid="figure1">Figure 1</xref> summarizes the entire pipeline from data access to the evaluation of the AI component. We adhered to the TRIPOD-LLM (Transparent Reporting of a Multivariable Prediction Model for Individual Prognosis or Diagnosis&#x2013;Large Language Models) guidelines [<xref ref-type="bibr" rid="ref18">18</xref>] and completed the checklist (<xref ref-type="supplementary-material" rid="app6">Checklist 1</xref>) ().</p><fig position="float" id="figure1"><label>Figure 1.</label><caption><p>Overview of the entire methodology, including data access (A), large language model (LLM) information extraction (B), guideline-grounded rule-based algorithm (C), and multi-trust evaluation (D). ACPGBI: Association of Coloproctology of Great Britain and Ireland; BSG: British Society of Gastroenterology; GPU: graphics processing unit; GSTT: Guy&#x2019;s and St Thomas&#x2019; National Health Service Foundation Trust; PHE: Public Health England; SWB: Sandwell and West Birmingham National Health Service Trust.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="jmir_v28i1e102789_fig01.png"/></fig></sec><sec id="s2-2"><title>Ethical Considerations</title><p>Data access and processing at GSTT was authorized by the Guy&#x2019;s and St Thomas&#x2019; Electronic Records Research Interface (Integrated Research Application System [IRAS] ID 257283; Research Ethics Committee ID 20/EM/0112). This approval was effective from June 3, 2023. Data access for SWB was authorized through a data sharing agreement between the institutions in compliance with the General Data Protection Regulation. This work used deidentified, routinely collected clinical data with no direct participant contact. Individual informed consent was not required under the governance and ethics approvals for the data access route. Patients in England can register in the National Data Opt-Out service to prevent use of their confidential patient information for purposes beyond individual care (research and planning).</p></sec><sec id="s2-3"><title>Data Sources</title><p>We extracted colonoscopy and histopathology text reports from GSTT&#x2019;s EHR system covering procedures performed between January 2017 and September 2023.</p><sec id="s2-3-1"><title>Inclusion Criteria</title><p>Colonoscopy reports with the mention of the keywords &#x201C;polyp&#x201D; or &#x201C;lesion&#x201D; were extracted. Corresponding histopathology reports were merged on a per-procedure basis using the <italic>EndoMineR</italic> package [<xref ref-type="bibr" rid="ref19">19</xref>] by patient identifier and fuzzy-matched date, resulting in a dataset of over 14,735 reports and 11,538 unique patients. Cases with no pathology information were excluded. Patients under the age of 18 years and patients who had opted out of data analysis using the NHS opt-out system were also excluded. The latter program allows individuals to prevent their confidential patient information from being used for research and planning purposes [<xref ref-type="bibr" rid="ref20">20</xref>]. The final reports were anonymized by removing all personally identifiable information, including patient names, addresses, and phone numbers. The dataset only contained essential clinical fields for decision-making: endoscopic findings (endoscopy report), macroscopic description (histopathology report), microscopic description (histopathology report), and date of birth. More details about patient involvement can be found in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>.</p></sec><sec id="s2-3-2"><title>Training and Test Sets</title><p>Ten GSTT reports spanning a range of complexities were selected for model development (in-context learning). For evaluation, we randomly sampled 100 GSTT procedures from unique patients, corresponding to 215 individual histopathology specimen pots from the same date range, excluding the reports included for in-context learning. The test set size was defined as a pragmatic internal validation size given the time required for gold-standard annotations. <xref ref-type="table" rid="table1">Table 1</xref> summarizes the demographics of the GSTT test set. For the comparison with current clinical practice, we extracted 127 consecutive GSTT colonoscopy procedures performed between January 2021 and September 2021, along with their associated histopathology reports.</p><table-wrap id="t1" position="float"><label>Table 1.</label><caption><p>Demographic characteristics of the Guy&#x2019;s and St Thomas&#x2019; National Health Service Foundation Trust (GSTT) test set compared with the full GSTT cohort.</p></caption><table id="table1" frame="hsides" rules="groups"><thead><tr><td align="left" valign="bottom">Characteristics</td><td align="left" valign="bottom">GSTT test set (n=100)</td><td align="left" valign="bottom">GSTT original cohort (n=14,735)</td></tr></thead><tbody><tr><td align="left" valign="top" colspan="3">Sex, n (%)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Female</td><td align="left" valign="top">45 (45)</td><td align="left" valign="top">6722 (45.6)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Male</td><td align="left" valign="top">55 (55)</td><td align="left" valign="top">8012 (54.4)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Other or unknown</td><td align="left" valign="top">0 (0)</td><td align="left" valign="top">1 (0.0)</td></tr><tr><td align="left" valign="top" colspan="3">Ethnicity, n (%)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Asian</td><td align="left" valign="top">2 (2)</td><td align="left" valign="top">608 (4.1)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Black</td><td align="left" valign="top">2 (2)</td><td align="left" valign="top">1892 (12.8)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>White</td><td align="left" valign="top">93 (93)</td><td align="left" valign="top">7625 (51.7)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Other or not specified</td><td align="left" valign="top">3 (3)</td><td align="left" valign="top">4610 (31.3)</td></tr><tr><td align="left" valign="top">Age (y), mean (SD; range)</td><td align="left" valign="top">69.4 (9.35; 48-86)</td><td align="left" valign="top">57.3 (14.50; 18-94)</td></tr></tbody></table></table-wrap></sec><sec id="s2-3-3"><title>SWB External Validation Cohort</title><p>An independent set of 100 colonoscopy and histopathology text reports was obtained from SWB. The same inclusion criteria and deidentification procedures were applied. Date of birth was not shared for the SWB cohort. A CONSORT (Consolidated Standards of Reporting Trials) diagram describing the datasets is provided in <xref ref-type="fig" rid="figure2">Figure 2</xref>.</p><fig position="float" id="figure2"><label>Figure 2.</label><caption><p>Cohort description. GSTT: Guy&#x2019;s and St Thomas&#x2019; National Health Service Foundation Trust; SWB: Sandwell and West Birmingham National Health Service Trust.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="jmir_v28i1e102789_fig02.png"/></fig></sec><sec id="s2-3-4"><title>Data Governance and Approvals</title><p>As mentioned, data acquisition at GSTT was authorized through institutional board review (IRAS ID257283), under the governance of the Guy&#x2019;s and St Thomas&#x2019; Electronic Research Records Interface. SWB data was provided under a data sharing agreement between institutions. No identifiable patient information left any of the NHS trusts. Patient age was not shared for the SWB cohort, making the algorithm bypass age-dependent conditions.</p></sec></sec><sec id="s2-4"><title>Task Definition and Annotation</title><p>The pipeline aims to extract guideline-relevant polyp features from paired colonoscopy and histopathology reports and then apply the BSG guidelines to generate a follow-up recommendation. A key challenge is that the evidence needed for surveillance is fragmented across sections: endoscopic findings describe the lesions sampled, whereas histopathology reports describe multiple specimens (&#x201C;pots&#x201D;) with macroscopic and microscopic text that must be linked to determine which pots correspond to polyps, which represent nonpolyp tissue, and which findings are unresected or described only endoscopically. The GSTT test set was annotated by a committee of 3 clinical experts to establish the gold standard. For each procedure, annotators reviewed the endoscopic findings and the histopathology macroscopic and microscopic descriptions to derive the number of histology pots and extract pot-level variables listed in <xref ref-type="table" rid="table2">Table 2</xref>. &#x201C;Premalignant&#x201D; and &#x201C;advanced&#x201D; polyps were defined according to the BSG criteria [<xref ref-type="bibr" rid="ref1">1</xref>]. Disagreements between annotators were resolved through consensus. When consensus could not be reached, a fourth clinical expert (SZ) resolved the discrepancy. The SWB test set was annotated by a single gastroenterologist (SZ).</p><table-wrap id="t2" position="float"><label>Table 2.</label><caption><p>Information extraction annotation categories and definitions.</p></caption><table id="table2" frame="hsides" rules="groups"><thead><tr><td align="left" valign="bottom">Category</td><td align="left" valign="bottom">Definition</td></tr></thead><tbody><tr><td align="left" valign="top">Number of pots</td><td align="left" valign="top">Total number of histology pots submitted for a given colonoscopy</td></tr><tr><td align="left" valign="top">Specimen type</td><td align="left" valign="top">Classification of the tissue sample (polyp, biopsy, mucosal fragment, etc)</td></tr><tr><td align="left" valign="top">Size</td><td align="left" valign="top">Dimensions of all specimens within the pot</td></tr><tr><td align="left" valign="top">Number of specimens&#x2014;findings</td><td align="left" valign="top">Number of polyps or biopsies documented in the colonoscopy report</td></tr><tr><td align="left" valign="top">Number of specimens&#x2014;macro</td><td align="left" valign="top">Number of specimens received as per the histopathology macroscopic description</td></tr><tr><td align="left" valign="top">Location</td><td align="left" valign="top">Anatomical site of origin (such as rectum or ascending, descending, or sigmoid colon)</td></tr><tr><td align="left" valign="top">Diagnosis</td><td align="left" valign="top">Extracted histopathological diagnosis (such as tubular adenoma or high-grade dysplasia)</td></tr><tr><td align="left" valign="top">Other polyp characteristics</td><td align="left" valign="top">Details of polyps described endoscopically but not resected or sampled</td></tr><tr><td align="left" valign="top">Excision completeness</td><td align="left" valign="top">Completeness of excision: &#x201C;yes&#x201D; (R0 or en bloc) or &#x201C;no&#x201D; (piecemeal or uncertain)</td></tr><tr><td align="left" valign="top">Negation</td><td align="left" valign="top">Presence of negated diagnostic terms (&#x201C;no adenocarcinoma&#x201D;)</td></tr></tbody></table></table-wrap></sec><sec id="s2-5"><title>Approach and Model Selection</title><sec id="s2-5-1"><title>Overview</title><p>Our objective required extracting multiple interdependent variables (<xref ref-type="table" rid="table2">Table 2</xref>) from heterogeneous free-text colonoscopy and histopathology reports. Pot-level alignment and cross-referencing were difficult to model reliably using simple pattern-matching rules. A purely supervised approach would require large-scale, pot-level annotations to generalize across report templates and anatomical sites. In preliminary experiments, a fine-tuned encoder-based baseline did not generalize well under the available annotation budget. We therefore used LLMs as flexible extractors that could be constrained to produce structured outputs with minimal labeled data. The design of this study explicitly separates information extraction from clinical decision-making. The LLM was not used to infer risk categories or recommend intervals. The final surveillance recommendation was computed by a deterministic, auditable, guideline-encoded rule engine.</p></sec><sec id="s2-5-2"><title>Model Selection</title><p>Given typical on-premises hospital hardware constraints, we evaluated which open-weight instruction-tuned LLM size was sufficient for this task without additional supervised fine-tuning. We compared multiple models (Microsoft Phi-4, Phi-4-mini-instruct, Llama 3.1-8B-Instruct [Meta AI], Falcon3-7B-Instruct [Technology Innovation Institute], and Mistral-7B-Instruct-v0.3 [Mistral AI SAS]) under an identical prompting, decoding, and parsing configuration. We report the surveillance accuracy for each model in <xref ref-type="supplementary-material" rid="app2">Multimedia Appendix 2</xref>. We used Microsoft Phi-4 [<xref ref-type="bibr" rid="ref21">21</xref>] (Hugging Face) at revision 932b33c for the actual pipeline.</p></sec><sec id="s2-5-3"><title>Hardware and Pipeline Setup</title><p>All LLM inference was executed on local graphics processing unit (GPU) hardware (NVIDIA DGX-1 server running Ubuntu 20.04, configured with eight 32-GB V100 GPUs and 512 GB of RAM). We loaded the model with 4-bit quantization and initialized the model with automatic sharding across available GPUs. Generation was performed in batches to improve throughput. Decoding was deterministic, with a temperature set to 0. Each pipeline step used a configured maximum number of new token budget. When output parsing failed, the pipeline retried generation with an increased token budget per attempt.</p></sec><sec id="s2-5-4"><title>Multi-Prompt Strategy</title><p>Breaking down complex information extraction tasks into smaller subtasks has proven to improve the performance of LLM pipelines [<xref ref-type="bibr" rid="ref22">22</xref>]. The task at hand was complex by nature as relevant information is fragmented across report sections and multiple specimens (pots) must be aligned before guideline features can be extracted. We therefore broke down the pipeline into four sequential prompts that progressively (1) segmented histopathology text pot by pot, (2) appended endoscopic findings to the corresponding pots, (3) normalized each pot into a structured schema, and (4) extracted guideline-relevant attributes. <xref ref-type="fig" rid="figure3">Figure 3</xref> illustrates this progressive transformation for a synthetic report.</p><fig position="float" id="figure3"><label>Figure 3.</label><caption><p>Description of the information extraction pipeline and example of the evolution of an input colonoscopy and histopathology report, prompt by prompt.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="jmir_v28i1e102789_fig03.png"/></fig></sec></sec><sec id="s2-6"><title>Rule-Based Logic</title><p>The structured outputs produced by the final LLM prompt were parsed into histopathology pot-level variables (<xref ref-type="table" rid="table2">Table 2</xref>) and passed to a deterministic rule-based algorithm that encoded the guidelines. The algorithm first raised an alert if cancer was detected, then filtered out nonpolyp specimens; aggregated polyp counts and sizes across all pots; identified premalignant and advanced polyps using guideline-aligned criteria; and, finally, output a surveillance recommendation according to the BSG, Association of Coloproctology of Great Britain and Ireland, or Public Health England risk categories (no surveillance, 3-year surveillance, 5-year surveillance, or site check for large nonpedunculated polyps with uncertain excision). If age was missing, the algorithm ignored age-based conditions and defaulted to the non&#x2013;age-specific guideline branches.</p><p>The pseudocode functions &#x201C;<sc>IsPremalignantPolyp</sc>,&#x201D; &#x201C;<sc>IsAdvancedPolyp</sc>,&#x201D; and &#x201C;<sc>IsHighRisk&#x201D;</sc> implemented guideline definitions of premalignant polyps, advanced polyps, and high-risk patients. In summary, premalignant polyps included adenomatous polyps and clinically relevant serrated lesions (excluding diminutive rectal hyperplastic polyps), and advanced polyps were defined by size and/or dysplasia according to the UK guideline thresholds. High risk was assigned when either 2 or more premalignant polyps were present, including 1 or more advanced polyps, or 5 or more premalignant polyps were present.</p><p>The algorithm compared the endoscopic polyp count with the number of histopathology specimens to detect specimen fragmentation and reduce pot-level size and count estimation bias. The algorithm preferentially used the endoscopic size as pathology-reported measurements may underestimate true size due to specimen shrinkage after formalin fixation [<xref ref-type="bibr" rid="ref23">23</xref>]. The pseudocode for the rule-based algorithm can be found in <xref ref-type="supplementary-material" rid="app3">Multimedia Appendix 3</xref>.</p></sec><sec id="s2-7"><title>Model Evaluation</title><sec id="s2-7-1"><title>Overview</title><p>Most studies on LLMs in health care focus on accuracy. However, accuracy alone is not enough for clinical integration: reliability, completeness, and deployment feasibility are equally important. We evaluated our chain-prompting pipeline across multiple dimensions aligned with best practices in health care LLM evaluation [<xref ref-type="bibr" rid="ref24">24</xref>-<xref ref-type="bibr" rid="ref26">26</xref>]. Some commonly used evaluation criteria such as human preference do not apply to this study, which is focused on structured information extraction rather than free-text generation.</p></sec><sec id="s2-7-2"><title>Accuracy and Comprehensiveness</title><p>Accuracy was assessed by comparing the model&#x2019;s extracted values to gold-standard annotations for each category. We evaluated information extraction at the pot level by comparing the model output against clinician gold-standard annotations. For single-value fields, including number of pots, specimen type, excision completeness, location, number of specimens&#x2014;findings, and number of specimens&#x2014;macroscopy, correctness was defined as an exact match to the gold-standard label. For the size field, order was ignored, but all size entries had to match the gold-standard annotations. Diagnosis was evaluated using a structured &#x201C;diagnosis signature&#x201D; derived from the microscopic description consisting of information about the lesion type (tubular adenoma, tubulovillous adenoma, serrated lesion, or hyperplastic), dysplasia grade (none, low grade, or high grade), and invasive cancer (present or absent). A diagnosis was scored as correct only if all components of the signature matched the gold-standard annotation for that pot. Negation was evaluated by comparing the set of clinically critical negated concepts extracted for each pot to the gold-standard set.</p><p>Comprehensiveness was evaluated at the report level as the proportion of gold-standard fields whose values were extracted exactly correctly. Because incorrect or missing values are counted as false negatives, this metric is equivalent to per-report, field-level recall:</p><p>Comprehensiveness = (number of gold-standard fields extracted exactly correctly)/(number of gold-standard fields)</p><p>We averaged this score across reports to obtain an overall measure of the model&#x2019;s ability to extract all the expected fields. We also report the <italic>F</italic><sub>1</sub>-score per category, capturing both precision and recall. The 95% Wilson CIs were calculated for overall recommendation accuracy and class-specific precision and recall.</p></sec><sec id="s2-7-3"><title>Robustness</title><p>Robustness was assessed by evaluating the model&#x2019;s performance on a perturbed version of the test set, inspired by established methods in the literature [<xref ref-type="bibr" rid="ref27">27</xref>-<xref ref-type="bibr" rid="ref29">29</xref>]. To simulate real-world typos, we introduced controlled typographical noise, including adjacent letter swaps, random character deletions, insertions, random word splits, and letter case alterations. Synonym replacement was not performed as it is rarely encountered in real-world practice (eg, &#x201C;adenoma&#x201D; has no exact lexical variant). Key terms such as &#x201C;polyp,&#x201D; &#x201C;adenoma,&#x201D; and &#x201C;dysplasia&#x201D; were intentionally corrupted at least once per noisy test set to test the model&#x2019;s resilience to critical colorectal polyp terminology distortions. We generated multiple noisy test sets with increasing perturbation levels (1 to 5 per report) and compared their <italic>F</italic><sub>1</sub>-scores against that of the original clean set. Examples can be found in <xref ref-type="supplementary-material" rid="app4">Multimedia Appendix 4</xref>.</p></sec><sec id="s2-7-4"><title>Deployment Feasibility</title><p>Deployment feasibility was assessed by measuring computational requirements, including the number of model parameters and memory use.</p></sec></sec><sec id="s2-8"><title>Retrospective Analysis of Current Practice</title><p>In addition to per-report extraction metrics, we performed a retrospective, real-world eligibility study where we compared the automated system recommendations and observed care to a clinician-derived reference based on full EHR review. The automated system used the index colonoscopy and associated histopathology reports, with age where available. This analysis aimed to evaluate how the automated surveillance recommendations would align with guideline-based care when full longitudinal patient information was available.</p><p>A single gastroenterologist (SDM) reviewed the complete EHR of all the patients in the retrospective test set (n=127). The clinician determined the gold-standard guideline-concordant surveillance interval for each patient accounting for but not limited to previous CRC or colorectal surgery, prior large or advanced polyps, hereditary or other high-risk conditions, and comorbidities or contraindications that would alter surveillance timing. We then compared 3 intervals: the clinician gold-standard interval from full EHR review, the interval recommended by the automated system using only the index colonoscopy and associated histopathology reports, and the observed care interval based on real-world scheduling (a completed follow-up colonoscopy or a future booking recorded in the EHR). Observed care was assessed using all information available in Epic. A completed procedure, future booking, or absence of surveillance were classified looking at all post&#x2013;index colonoscopy data available in Epic. Reference assessment was blinded to model output. This analysis assessed the extent to which this system could improve alignment with guideline-concordant surveillance and, therefore, its potential impact on clinical practice. Full EHR review also identified patients whose management required a clinical pathway beyond the postpolypectomy recommendations generated by the system.</p></sec></sec><sec id="s3" sec-type="results"><title>Results</title><p>We report per-field extraction performance at GSTT, surveillance recommendation performance at GSTT and SWB, robustness to typographical noise, an analysis of the trade-off between model size, and on-premises feasibility and performance. Unless otherwise stated, results correspond to the final Phi-4 multistage prompting configuration.</p><sec id="s3-1"><title>Extraction Performance</title><p><xref ref-type="table" rid="table3">Table 3</xref> shows that the extraction of key fields for the final surveillance decision was highly reliable (mean comprehensiveness 0.968, SD 0.112), with close to perfect accuracy for location, type of specimen, and histopathological size (0.981, 0.995, and 0.995, respectively). The model also showed high accuracy for diagnosis (0.981) and excision completeness (0.949). The endoscopic size, number of specimens, and extraction of unresected polyps showed the lowest accuracy (0.935, 0.935, and 0.903, respectively).</p><table-wrap id="t3" position="float"><label>Table 3.</label><caption><p>Per-field extraction performance.<sup><xref ref-type="table-fn" rid="table3fn1">a</xref></sup></p></caption><table id="table3" frame="hsides" rules="groups"><thead><tr><td align="left" valign="bottom">Extracted fields</td><td align="left" valign="bottom">Precision</td><td align="left" valign="bottom">Recall</td><td align="left" valign="bottom"><italic>F</italic><sub>1</sub>-score</td><td align="left" valign="bottom">Accuracy</td><td align="left" valign="bottom">Support<sup><xref ref-type="table-fn" rid="table3fn2">b</xref></sup></td></tr></thead><tbody><tr><td align="left" valign="top">Type of specimen</td><td align="left" valign="top">1.000</td><td align="left" valign="top">0.995</td><td align="left" valign="top">0.998</td><td align="left" valign="top">0.995</td><td align="left" valign="top">215</td></tr><tr><td align="left" valign="top">Size&#x2014;findings</td><td align="left" valign="top">0.939</td><td align="left" valign="top">0.925</td><td align="left" valign="top">0.932</td><td align="left" valign="top">0.935</td><td align="left" valign="top">133</td></tr><tr><td align="left" valign="top">Size&#x2014;macro</td><td align="left" valign="top">1.000</td><td align="left" valign="top">0.995</td><td align="left" valign="top">0.998</td><td align="left" valign="top">0.995</td><td align="left" valign="top">215</td></tr><tr><td align="left" valign="top">Number of specimens&#x2014;findings</td><td align="left" valign="top">0.945</td><td align="left" valign="top">0.957</td><td align="left" valign="top">0.951</td><td align="left" valign="top">0.935</td><td align="left" valign="top">162</td></tr><tr><td align="left" valign="top">Number of specimens&#x2014;macro</td><td align="left" valign="top">0.962</td><td align="left" valign="top">0.958</td><td align="left" valign="top">0.960</td><td align="left" valign="top">0.958</td><td align="left" valign="top">214</td></tr><tr><td align="left" valign="top">Location</td><td align="left" valign="top">0.986</td><td align="left" valign="top">0.981</td><td align="left" valign="top">0.984</td><td align="left" valign="top">0.981</td><td align="left" valign="top">215</td></tr><tr><td align="left" valign="top">Diagnosis</td><td align="left" valign="top">0.981</td><td align="left" valign="top">0.981</td><td align="left" valign="top">0.981</td><td align="left" valign="top">0.981</td><td align="left" valign="top">215</td></tr><tr><td align="left" valign="top">Excision completeness</td><td align="left" valign="top">0.958</td><td align="left" valign="top">0.949</td><td align="left" valign="top">0.953</td><td align="left" valign="top">0.949</td><td align="left" valign="top">215</td></tr><tr><td align="left" valign="top">Negation</td><td align="left" valign="top">0.995</td><td align="left" valign="top">0.990</td><td align="left" valign="top">0.992</td><td align="left" valign="top">0.991</td><td align="left" valign="top">193</td></tr><tr><td align="left" valign="top">Other polyp characteristics<sup><xref ref-type="table-fn" rid="table3fn3">c</xref></sup></td><td align="left" valign="top">0.709</td><td align="left" valign="top">0.938</td><td align="left" valign="top">0.808</td><td align="left" valign="top">0.903</td><td align="left" valign="top">65</td></tr></tbody></table><table-wrap-foot><fn id="table3fn1"><p><sup>a</sup>Precision, recall, and <italic>F</italic><sub>1</sub>-score were computed using exact-match entity extraction. Accuracy is the overall end-to-end accuracy: correct extraction when the ground truth was present or correctly outputting nothing when the ground truth was absent. Comprehensiveness is the proportion of gold-standard fields extracted exactly correctly for each report (mean pot comprehensiveness 0.968, SD 0.112; mean other polyp comprehensiveness 0.920, SD 0.277).</p></fn><fn id="table3fn2"><p><sup>b</sup>Support corresponds to the number of pots where the category is present.</p></fn><fn id="table3fn3"><p><sup>c</sup>Microaveraged over other fields (location, number of specimens&#x2014;findings, and size&#x2014;findings).</p></fn></table-wrap-foot></table-wrap></sec><sec id="s3-2"><title>Surveillance Recommendation Performance and Cross-Site Generalization</title><p><xref ref-type="table" rid="table4">Table 4</xref> summarizes the performance of the decision support system for surveillance recommendations at GSTT and SWB. The system achieved an overall accuracy of 0.96 at GSTT and 0.93 at SWB, with strong performance for site check (<italic>F</italic><sub>1</sub>-score of 0.93 at GSTT and 0.91 at SWB) and no follow-up (<italic>F</italic><sub>1</sub>-score of 0.98 at GSTT and 0.97 at SWB). Cancer alerting exhibited perfect performance (<italic>F</italic><sub>1</sub>-score=1.00) for both sites.</p><table-wrap id="t4" position="float"><label>Table 4.</label><caption><p>Performance of the decision support system for surveillance recommendations at 2 National Health Service (NHS) trusts (Guy&#x2019;s and St Thomas&#x2019; NHS Foundation Trust [GSTT] and Sandwell and West Birmingham NHS Trust [SWB]).<sup><xref ref-type="table-fn" rid="table4fn1">a</xref></sup></p></caption><table id="table4" frame="hsides" rules="groups"><thead><tr><td align="left" valign="bottom">Categories and metrics</td><td align="left" valign="bottom" colspan="2">GSTT</td><td align="left" valign="bottom" colspan="2">SWB</td></tr><tr><td align="left" valign="bottom"/><td align="left" valign="bottom">Score</td><td align="left" valign="bottom">Support<sup><xref ref-type="table-fn" rid="table4fn2">b</xref></sup></td><td align="left" valign="bottom">Score</td><td align="left" valign="bottom">Support<sup><xref ref-type="table-fn" rid="table4fn2">b</xref></sup></td></tr></thead><tbody><tr><td align="left" valign="top" colspan="2">Site check</td><td align="left" valign="top">23</td><td align="left" valign="top"/><td align="left" valign="top">35</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Precision (95% CI)</td><td align="left" valign="top">1.00 (0.84-1.00)</td><td align="left" valign="top"/><td align="left" valign="top">0.91 (0.78-0.97)</td><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Recall (95% CI)</td><td align="left" valign="top">0.87 (0.68-0.95)</td><td align="left" valign="top"/><td align="left" valign="top">0.91 (0.78-0.97)</td><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><italic>F</italic><sub>1</sub>-score</td><td align="left" valign="top">0.93</td><td align="left" valign="top"/><td align="left" valign="top">0.91</td><td align="left" valign="top"/></tr><tr><td align="char" char="hyphen" valign="top" colspan="2">3-y follow-up</td><td align="left" valign="top">9</td><td align="left" valign="top"/><td align="left" valign="top">12</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Precision (95% CI)</td><td align="left" valign="top">0.75 (0.47-0.91)</td><td align="left" valign="top"/><td align="left" valign="top">0.77 (0.50-0.92)</td><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Recall (95% CI)</td><td align="left" valign="top">1.00 (0.70-1.00)</td><td align="left" valign="top"/><td align="left" valign="top">0.83 (0.55-0.95)</td><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><italic>F</italic><sub>1</sub>-score</td><td align="left" valign="top">0.86</td><td align="left" valign="top"/><td align="left" valign="top">0.80</td><td align="left" valign="top"/></tr><tr><td align="left" valign="top" colspan="2">No follow-up</td><td align="left" valign="top">63</td><td align="left" valign="top"/><td align="left" valign="top">50</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Precision (95% CI)</td><td align="left" valign="top">0.98 (0.92-1.00)</td><td align="left" valign="top"/><td align="left" valign="top">0.98 (0.89-1.00)</td><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Recall (95% CI)</td><td align="left" valign="top">0.98 (0.92-1.00)</td><td align="left" valign="top"/><td align="left" valign="top">0.96 (0.87-0.99)</td><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><italic>F</italic><sub>1</sub>-score</td><td align="left" valign="top">0.98</td><td align="left" valign="top"/><td align="left" valign="top">0.97</td><td align="left" valign="top"/></tr><tr><td align="left" valign="top" colspan="2">ALERT (CRC<sup><xref ref-type="table-fn" rid="table4fn3">c</xref></sup> or &#x003E;10 polyps)</td><td align="left" valign="top">5</td><td align="left" valign="top"/><td align="left" valign="top">3</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Precision (95% CI)</td><td align="left" valign="top">1.00 (0.57-1.00)</td><td align="left" valign="top"/><td align="left" valign="top">1.00 (0.44-1.00)</td><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Recall (95% CI)</td><td align="left" valign="top">1.00 (0.57-1.00)</td><td align="left" valign="top"/><td align="left" valign="top">1.00 (0.44-1.00)</td><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><italic>F</italic><sub>1</sub>-score</td><td align="left" valign="top">1.00</td><td align="left" valign="top"/><td align="left" valign="top">1.00</td><td align="left" valign="top"/></tr><tr><td align="left" valign="top">Overall accuracy (95% CI)</td><td align="left" valign="top">0.96 (0.90-0.98)</td><td align="left" valign="top"><italic>100</italic></td><td align="left" valign="top"><italic>0.93</italic> (0.86-0.97)</td><td align="left" valign="top"><italic>100</italic></td></tr></tbody></table><table-wrap-foot><fn id="table4fn1"><p><sup>a</sup>Wilson 95% CIs are shown for overall accuracy and class-specific precision and recall. The pipeline was run 5 times with different seeds and observed identical outputs across runs (run-to-run SD 0).</p></fn><fn id="table4fn2"><p><sup>b</sup>Support corresponds to the number of reports where the category is present.</p></fn><fn id="table4fn3"><p><sup>c</sup>CRC: colorectal cancer.</p></fn></table-wrap-foot></table-wrap></sec><sec id="s3-3"><title>Robustness</title><p>Detailed robustness results across perturbation levels are provided in <xref ref-type="supplementary-material" rid="app5">Multimedia Appendix 5</xref>. Across progressively perturbed test sets (1 to 5 perturbations per report), <italic>F</italic><sub>1</sub>-scores decreased only modestly compared with the clean test set, indicating that the pipeline is robust to realistic typographical noise and minor formatting artifacts. In particular, performance on the number of pots, type of specimen, and diagnosis remained stable, whereas size extraction showed the greatest sensitivity to perturbations.</p></sec><sec id="s3-4"><title>Retrospective Analysis of Current Practice</title><p>Using gold-standard guideline-concordant intervals derived from full chart review, we audited current practice within the department for 127 patients in the test cohort and compared it to the system&#x2019;s suggestions. Overall, only 59.1% (75/127) of patients were booked in line with the recommended surveillance interval. A further 15.7% (20/127) deviated from guideline-concordant care: 5.5% (7/127) were potentially oversurveilled (either booked earlier than recommended or scheduled for an unnecessary colonoscopy), and 10.2% (13/127) were potentially undersurveilled (6/127, 4.7% were booked later than recommended, and 7/127, 5.5% had no surveillance booked despite needing one). A further 25.2% (32/127) were managed via alternative pathways (CRC or other colonoscopy pathways), where surveillance scheduling was driven by additional clinical findings (<xref ref-type="table" rid="table5">Table 5</xref>). Even excluding these alternative-pathway cases, 21.1% (20/95) of patients in routine care had potentially missed or unnecessary surveillance relative to guideline-concordant recommendations. In contrast, our system provided a consistent, automated, and guideline-based recommendation for every patient based on structured information from index colonoscopy and histopathology reports. Overall, the decision support tool improves alignment with guideline-concordant care (<xref ref-type="table" rid="table5">Table 5</xref>), particularly by reducing undersurveillance. These findings highlight a real opportunity to identify patients at risk of undersurveillance and potentially reduce unnecessary procedures, supporting efficient use of endoscopic resources.</p><table-wrap id="t5" position="float"><label>Table 5.</label><caption><p>Comparison of the automated decision support system with current hospital practice (clinician-led booking) using clinician-derived ground-truth intervals from full chart review (n=127).</p></caption><table id="table5" frame="hsides" rules="groups"><thead><tr><td align="left" valign="bottom">Interval relative to clinician reference interval</td><td align="left" valign="bottom">Decision support system, n<sup><xref ref-type="table-fn" rid="table5fn1">a</xref></sup></td><td align="left" valign="bottom">Clinician-led booking, n<sup><xref ref-type="table-fn" rid="table5fn1">a</xref></sup></td></tr></thead><tbody><tr><td align="left" valign="top">Concordant with reference interval (subtotal)<sup><xref ref-type="table-fn" rid="table5fn2">b</xref></sup></td><td align="left" valign="top">88</td><td align="left" valign="top">75</td></tr><tr><td align="left" valign="top">&#x2003;No surveillance needed</td><td align="left" valign="top">65</td><td align="left" valign="top">63</td></tr><tr><td align="left" valign="top">&#x2003;Cancer or ALERT</td><td align="left" valign="top">6</td><td align="left" valign="top">6</td></tr><tr><td align="left" valign="top">&#x2003;Site check at 2-6 mo</td><td align="left" valign="top">7</td><td align="left" valign="top">2</td></tr><tr><td align="left" valign="top">&#x2003;3-y surveillance</td><td align="left" valign="top">7</td><td align="left" valign="top">4</td></tr><tr><td align="left" valign="top">&#x2003;5-y surveillance</td><td align="left" valign="top">3</td><td align="left" valign="top">0</td></tr><tr><td align="left" valign="top">&#x2003;Age of &#x003E;75 y with high-risk findings</td><td align="left" valign="top">0</td><td align="left" valign="top">0</td></tr><tr><td align="left" valign="top">Potential oversurveillance (subtotal)</td><td align="left" valign="top">4</td><td align="left" valign="top">7</td></tr><tr><td align="left" valign="top">&#x2003;Interval earlier than guideline</td><td align="left" valign="top">1</td><td align="left" valign="top">2</td></tr><tr><td align="left" valign="top">&#x2003;Unnecessary surveillance</td><td align="left" valign="top">3</td><td align="left" valign="top">5</td></tr><tr><td align="left" valign="top">Potential undersurveillance (subtotal)</td><td align="left" valign="top">3</td><td align="left" valign="top">13</td></tr><tr><td align="left" valign="top">&#x2003;Interval later than guideline</td><td align="left" valign="top">1</td><td align="left" valign="top">6</td></tr><tr><td align="left" valign="top">&#x2003;No surveillance booked despite indication</td><td align="left" valign="top">2</td><td align="left" valign="top">7</td></tr><tr><td align="left" valign="top">Total excluded</td><td align="left" valign="top">32</td><td align="left" valign="top">32</td></tr></tbody></table><table-wrap-foot><fn id="table5fn1"><p><sup>a</sup>n corresponds to a single patient in this case.</p></fn><fn id="table5fn2"><p><sup>b</sup>Guideline-concordant surveillance interval determined by a gastroenterologist from full electronic health record review.</p></fn></table-wrap-foot></table-wrap></sec></sec><sec id="s4" sec-type="discussion"><title>Discussion</title><sec id="s4-1"><title>Principal Findings</title><p>This study introduced a decision support tool that combines open-weight, medium-sized language models for extraction of guideline-relevant information with a deterministic rule-based algorithm for postpolypectomy recommendations. Focusing on implementation encouraged the use of a computationally lightweight LLM to only perform report standardization and information extraction. We demonstrated that such a decision aid system presents an opportunity to improve guideline adherence by conducting a retrospective chart review using patients&#x2019; full medical histories, showing that routine surveillance sometimes occurs later than guideline-recommended intervals. We identified cases with no indicated surveillance booking, highlighting a concrete opportunity to strengthen safety netting and reduce missed surveillance in routine care.</p><p>Acharya et al [<xref ref-type="bibr" rid="ref16">16</xref>,<xref ref-type="bibr" rid="ref17">17</xref>] evaluated direct LLM-based surveillance interval assignment in an initial 100-case feasibility study and subsequently in a 2-institution cohort of 1000 cases. The latter study reported a mean GPT-4o accuracy of 94.6% across 10 runs. Our recommendation accuracy was 96% at GSTT (95% CI 90%-98%) and 93% at SWB (95% CI 86%-97%). These independently obtained results cannot be compared directly as the studies differ in guideline systems, populations, output categories, and evaluation scale. The later study by Acharya et al [<xref ref-type="bibr" rid="ref17">17</xref>] also provides evidence from a substantially larger validation cohort.</p><p>In the larger study by Acharya et al [<xref ref-type="bibr" rid="ref17">17</xref>], accuracy was lower for cases containing 4 or more polyps than for those with 1 to 3 polyps. This finding highlights the importance of evaluating complex cases. Our framework separates specimen-level extraction and aggregation from deterministic guideline application, which facilitates granular evaluation at the individual polyp level.</p></sec><sec id="s4-2"><title>Strengths</title><p>There are several key strengths to this study. While general-purpose LLMs are increasingly used for a wide range of tasks, our work focuses on a specialist clinical setting in which smaller open-weight models are applied to narrow, auditable subtasks. This design choice supports transparency and increases clinician confidence by making the extracted information and decision logic available for inspection. We divided the overall task into components that closely mirrored clinical practice: collating endoscopy and histopathology reports, extracting information pot by pot, aggregating findings across pots, and deriving a surveillance recommendation. It is important to highlight that the language model was only tasked with extracting and normalizing information already present in the reports and did not generate the surveillance recommendation. The LLM did not generate any clinical decision-making, and the surveillance decision itself was made by a rule-based algorithm anchored in the guidelines, which can be audited and updated independently as guidelines change. By separating extraction from decision-making, the framework could also be adapted to other gastrointestinal surveillance pathways by modifying the extraction layer and introducing condition-specific rules.</p><p>The evaluation of the language model information extraction was performed using a range of metrics (accuracy, comprehensiveness, <italic>F</italic><sub>1</sub>-score, robustness, and deployment considerations) that provide a more complete picture of performance than accuracy or <italic>F</italic><sub>1</sub>-score alone. The SWB evaluation provided evidence of performance in a second environment with differing documentation styles and reporting practices subject to its small sample size and the restriction concerning age-dependent rules.</p><p>This study deliberately focused on small- to medium-sized language models to reflect typical on-premises hardware constraints in NHS settings. While some hospitals can process clinical text via external LLM APIs, this capability varies widely across institutions due to governance and privacy requirements, and on-premises inference is generally preferred.</p></sec><sec id="s4-3"><title>Limitations</title><p>Future work should include larger and more geographically diverse sites to better assess robustness and generalizability.</p><p>The retrospective analysis highlighted that a subset of patients (n=32) required referral to alternative pathways (eg, inflammatory bowel disease or ulcerative colitis), which is currently out of scope for this study. This reinforces why this study introduced a decision support tool rather than a fully automated system: clinicians sometimes need to combine multiple guideline pathways and clinical context to make the correct decision. The SWB and the retrospective audit annotations were provided by a single gastroenterologist, which may introduce reference standard bias.</p><p>The two 100-procedure test sets provided limited precision, particularly for minority classes. Larger cohorts with diverse representations of rare outcomes are needed to draw broader generalizability conclusions. The small number of ALERT cases resulted in wide CIs.</p><p>The GSTT test set was older (mean 69.4, SD 9.35 vs 57.3, SD 14.50 years) and had a higher recorded proportion of procedures involving White patients (93/100, 93% vs 7625/14,735, 51.7%). Interpretation was also affected by the larger combined &#x201C;other or not specified&#x201D; category in the source cohort (4610/14,735, 31.3% vs 3/100, 3%). These differences limit representativeness and may reflect differences in the sampled clinical population. The small numbers in some demographic groups precluded formal subgroup performance analyses across sex or ethnicity. Instead, we report overall performance and highlight fairness as an important direction for future work, particularly as larger and more diverse validation cohorts become available.</p><p>Finally, although we compared models of different sizes, the final configuration used a 14 billion&#x2013;parameter model with 4-bit quantization on the reported hospital server. While our institution has the necessary infrastructure, we acknowledge that this may not be the case in other settings. However, the modular design and code available upon request allow the language model component to be swapped for smaller or fine-tuned alternatives, enabling adaptation to local computation constraints.</p></sec><sec id="s4-4"><title>Conclusions</title><p>This study demonstrates that a hybrid automated system can generate accurate and auditable postpolypectomy surveillance recommendations from paired colonoscopy and histopathology free-text reports. The framework enables inspection of intermediate information and rule application. External validation across two NHS trusts suggests that the approach could generalize across different reporting environments. The retrospective comparison with routine care suggests potential improvements over current surveillance practice in specific patient groups. It also identified 25.2% (32/127) of patients requiring alternative clinical pathways, highlighting the importance of broader patient history. Future research could therefore investigate whether integrating longitudinal clinical information helps distinguish patients eligible for routine postpolypectomy surveillance from those requiring alternative pathways. Future research could also explore whether smaller open-weight language models can be used to extend this framework and more broadly support gastroenterology surveillance pathways under realistic deployment constraints.</p></sec></sec></body><back><ack><p>The authors used generative AI (ChatGPT 5.5, 5.6, Claude) to assist with language editing and manuscript proofreading. Generative AI was not used to generate research ideas or experiments.</p></ack><notes><sec><title>Funding</title><p>This work was funded by the South East London Cancer Alliance.</p></sec><sec><title>Data Availability</title><p>The datasets generated or analyzed during this study are not publicly available owing to ethical restrictions. Guy&#x2019;s and St Thomas&#x2019; Electronic Research Records Interface is governed by the overarching Clinical Research Analytics Governance Group. The underlying code for this study is not publicly available but may be made available to qualified researchers on reasonable request from the corresponding author.</p></sec></notes><fn-group><fn fn-type="con"><p>AZ developed the concept, methodology, and validation and was the principal contributor to visualization, writing of the original draft, and review and editing. SZ took a lead supervising role in conceptualization, methodology, validation, investigation, funding acquisition, project administration, and supervision. SDM contributed to the retrospective analysis of current practice, annotated the data, and provided supporting evidence for the study. JSCL, VT, and VB supported data annotation of the Guy's and St Thomas' National Health Service Foundation Trust test sets. RS conducted a literature review, elements of which were incorporated into the manuscript. NT and SAM supported the evaluation of the software on Sandwell and West Birmingham National Health Service Trust data. AR provided support in supervision and contributed equally to writing and reviewing. All authors have read and approved the manuscript.</p></fn><fn fn-type="conflict"><p>None declared.</p></fn></fn-group><glossary><title>Abbreviations</title><def-list><def-item><term id="abb1">BSG</term><def><p>British Society of Gastroenterology</p></def></def-item><def-item><term id="abb2">CONSORT</term><def><p>Consolidated Standards of Reporting Trials</p></def></def-item><def-item><term id="abb3">CRC</term><def><p>colorectal cancer</p></def></def-item><def-item><term id="abb4">EHR</term><def><p>electronic health record</p></def></def-item><def-item><term id="abb5">GPU</term><def><p>graphics processing unit</p></def></def-item><def-item><term id="abb6">GSTT</term><def><p>Guy&#x2019;s and St Thomas&#x2019; National Health Service Foundation Trust</p></def></def-item><def-item><term id="abb7">IRAS</term><def><p>Integrated Research Application System</p></def></def-item><def-item><term id="abb8">LLM</term><def><p>large language model</p></def></def-item><def-item><term id="abb9">NHS</term><def><p>National Health Service</p></def></def-item><def-item><term id="abb10">SWB</term><def><p>Sandwell and West Birmingham National Health Service Trust</p></def></def-item><def-item><term id="abb11">TRIPOD-LLM</term><def><p>Transparent Reporting of a Multivariable Prediction Model for Individual Prognosis or Diagnosis&#x2013;Large Language Models</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>Rutter</surname><given-names>MD</given-names> </name><name name-style="western"><surname>East</surname><given-names>J</given-names> </name><name name-style="western"><surname>Rees</surname><given-names>CJ</given-names> </name><etal/></person-group><article-title>British Society of Gastroenterology/Association of Coloproctology of Great Britain and Ireland/Public Health England post-polypectomy and post-colorectal cancer resection surveillance guidelines</article-title><source>Gut</source><year>2020</year><month>02</month><volume>69</volume><issue>2</issue><fpage>201</fpage><lpage>223</lpage><pub-id pub-id-type="doi">10.1136/gutjnl-2019-319858</pub-id><pub-id pub-id-type="medline">31776230</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>Atkin</surname><given-names>W</given-names> </name><name name-style="western"><surname>Wooldrage</surname><given-names>K</given-names> </name><name name-style="western"><surname>Brenner</surname><given-names>A</given-names> </name><etal/></person-group><article-title>Adenoma surveillance and colorectal cancer incidence: a retrospective, multicentre, cohort study</article-title><source>Lancet Oncol</source><year>2017</year><month>06</month><volume>18</volume><issue>6</issue><fpage>823</fpage><lpage>834</lpage><pub-id pub-id-type="doi">10.1016/S1470-2045(17)30187-0</pub-id><pub-id pub-id-type="medline">28457708</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>Atkin</surname><given-names>W</given-names> </name><name name-style="western"><surname>Brenner</surname><given-names>A</given-names> </name><name name-style="western"><surname>Martin</surname><given-names>J</given-names> </name><etal/></person-group><article-title>The clinical effectiveness of different surveillance strategies to prevent colorectal cancer in people with intermediate-grade colorectal adenomas: a retrospective cohort analysis, and psychological and economic evaluations</article-title><source>Health Technol Assess</source><year>2017</year><month>04</month><volume>21</volume><issue>25</issue><fpage>1</fpage><lpage>536</lpage><pub-id pub-id-type="doi">10.3310/hta21250</pub-id><pub-id pub-id-type="medline">28621643</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>Huang</surname><given-names>Y</given-names> </name><name name-style="western"><surname>Gong</surname><given-names>W</given-names> </name><name name-style="western"><surname>Su</surname><given-names>B</given-names> </name><etal/></person-group><article-title>Recurrence and surveillance of colorectal adenoma after polypectomy in a southern Chinese population</article-title><source>J Gastroenterol</source><year>2010</year><month>08</month><volume>45</volume><issue>8</issue><fpage>838</fpage><lpage>845</lpage><pub-id pub-id-type="doi">10.1007/s00535-010-0227-3</pub-id><pub-id pub-id-type="medline">20336471</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>Cross</surname><given-names>AJ</given-names> </name><name name-style="western"><surname>Robbins</surname><given-names>EC</given-names> </name><name name-style="western"><surname>Pack</surname><given-names>K</given-names> </name><etal/></person-group><article-title>Colorectal cancer risk following polypectomy in a multicentre, retrospective, cohort study: an evaluation of the 2020 UK post-polypectomy surveillance guidelines</article-title><source>Gut</source><year>2021</year><month>12</month><volume>70</volume><issue>12</issue><fpage>2307</fpage><lpage>2320</lpage><pub-id pub-id-type="doi">10.1136/gutjnl-2020-323411</pub-id><pub-id pub-id-type="medline">33674342</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>Lee</surname><given-names>TJ</given-names> </name><name name-style="western"><surname>Siau</surname><given-names>K</given-names> </name><name name-style="western"><surname>Esmaily</surname><given-names>S</given-names> </name><etal/></person-group><article-title>Development of a national automated endoscopy database: the United Kingdom National Endoscopy Database (NED)</article-title><source>United European Gastroenterol J</source><year>2019</year><month>07</month><volume>7</volume><issue>6</issue><fpage>798</fpage><lpage>806</lpage><pub-id pub-id-type="doi">10.1177/2050640619841539</pub-id><pub-id pub-id-type="medline">31316784</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>Ali</surname><given-names>M</given-names> </name><name name-style="western"><surname>Heyes</surname><given-names>A</given-names> </name><name name-style="western"><surname>Stephen</surname><given-names>A</given-names> </name><name name-style="western"><surname>Ng</surname><given-names>S</given-names> </name><name name-style="western"><surname>Hanif</surname><given-names>Z</given-names> </name></person-group><article-title>TU2.5 Compliance of colonic polyp surveillance with British Society of Gastroenterology (BSG) and the Association of Coloproctology of Great Britain and Ireland (ACPGBI) guidelines</article-title><source>BJS</source><year>2022</year><month>08</month><volume>109</volume><issue>Supplement_5</issue><pub-id pub-id-type="doi">10.1093/bjs/znac248.017</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>Butler</surname><given-names>DM</given-names> </name><name name-style="western"><surname>Myintmo</surname><given-names>A</given-names> </name><name name-style="western"><surname>Flashman</surname><given-names>H</given-names> </name><name name-style="western"><surname>Ukoumunne</surname><given-names>OC</given-names> </name><name name-style="western"><surname>Bethune</surname><given-names>R</given-names> </name></person-group><article-title>Adherence to post-polypectomy surveillance guidelines at a large district general hospital</article-title><source>Cureus</source><year>2023</year><month>02</month><volume>15</volume><issue>2</issue><fpage>e35516</fpage><pub-id pub-id-type="doi">10.7759/cureus.35516</pub-id><pub-id pub-id-type="medline">37007318</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>Liu</surname><given-names>MC</given-names> </name><name name-style="western"><surname>Kassim</surname><given-names>G</given-names> </name><name name-style="western"><surname>Mead-Harvey</surname><given-names>C</given-names> </name><name name-style="western"><surname>Anderson</surname><given-names>LR</given-names> </name><name name-style="western"><surname>Ramirez</surname><given-names>F</given-names> </name><name name-style="western"><surname>Gurudu</surname><given-names>S</given-names> </name></person-group><article-title>S209 Non-adherence to colorectal polyp surveillance guidelines: magnitude and factors associated with non-adherence in an open access colonoscopy screening program at an academic institution</article-title><source>Am J Gastroenterol</source><year>2023</year><volume>118</volume><issue>10S</issue><fpage>S156</fpage><lpage>S157</lpage><pub-id pub-id-type="doi">10.14309/01.ajg.0000950476.05709.2e</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>Seong</surname><given-names>D</given-names> </name><name name-style="western"><surname>Choi</surname><given-names>YH</given-names> </name><name name-style="western"><surname>Shin</surname><given-names>SY</given-names> </name><name name-style="western"><surname>Yi</surname><given-names>BK</given-names> </name></person-group><article-title>Deep learning approach to detection of colonoscopic information from unstructured reports</article-title><source>BMC Med Inform Decis Mak</source><year>2023</year><month>02</month><day>7</day><volume>23</volume><issue>1</issue><fpage>28</fpage><pub-id pub-id-type="doi">10.1186/s12911-023-02121-7</pub-id><pub-id pub-id-type="medline">36750932</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>Bae</surname><given-names>JH</given-names> </name><name name-style="western"><surname>Han</surname><given-names>HW</given-names> </name><name name-style="western"><surname>Yang</surname><given-names>SY</given-names> </name><etal/></person-group><article-title>Natural language processing for assessing quality indicators in free-text colonoscopy and pathology reports: development and usability study</article-title><source>JMIR Med Inform</source><year>2022</year><month>04</month><day>15</day><volume>10</volume><issue>4</issue><fpage>e35257</fpage><pub-id pub-id-type="doi">10.2196/35257</pub-id><pub-id pub-id-type="medline">35436226</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>Galoosian</surname><given-names>A</given-names> </name><name name-style="western"><surname>Soroudi</surname><given-names>C</given-names> </name><name name-style="western"><surname>Jain</surname><given-names>S</given-names> </name><etal/></person-group><article-title>S259 Validation of a machine learning algorithm to measure adenoma detection rate from screening colonoscopies in a large health system</article-title><source>Am J Gastroenterol</source><year>2021</year><volume>116</volume><fpage>S115</fpage><pub-id pub-id-type="doi">10.14309/01.ajg.0000773508.71234.2b</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>Peterson</surname><given-names>E</given-names> </name><name name-style="western"><surname>May</surname><given-names>FP</given-names> </name><name name-style="western"><surname>Kachikian</surname><given-names>O</given-names> </name><etal/></person-group><article-title>Automated identification and assignment of colonoscopy surveillance recommendations for individuals with colorectal polyps</article-title><source>Gastrointest Endosc</source><year>2021</year><month>11</month><volume>94</volume><issue>5</issue><fpage>978</fpage><lpage>987</lpage><pub-id pub-id-type="doi">10.1016/j.gie.2021.05.036</pub-id><pub-id pub-id-type="medline">34087201</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>Wu</surname><given-names>L</given-names> </name><name name-style="western"><surname>Shi</surname><given-names>C</given-names> </name><name name-style="western"><surname>Li</surname><given-names>J</given-names> </name><etal/></person-group><article-title>Development and evaluation of a surveillance system for follow-up after colorectal polypectomy</article-title><source>JAMA Netw Open</source><year>2023</year><month>09</month><day>5</day><volume>6</volume><issue>9</issue><fpage>e2334822</fpage><pub-id pub-id-type="doi">10.1001/jamanetworkopen.2023.34822</pub-id><pub-id pub-id-type="medline">37728926</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>Brennan</surname><given-names>G</given-names> </name><name name-style="western"><surname>Osikoya</surname><given-names>OE</given-names> </name></person-group><article-title>S1702 Comparing large language models accuracy in following interval surveillance colonoscopy guidelines</article-title><source>Am J Gastroenterol</source><year>2023</year><volume>118</volume><issue>10S</issue><fpage>S1271</fpage><lpage>S1271</lpage><pub-id pub-id-type="doi">10.14309/01.ajg.0000956448.72258.9a</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>Acharya</surname><given-names>V</given-names> </name><name name-style="western"><surname>Kumaresan</surname><given-names>V</given-names> </name><name name-style="western"><surname>England</surname><given-names>J</given-names> </name><name name-style="western"><surname>Mehta</surname><given-names>S</given-names> </name><name name-style="western"><surname>Sussman</surname><given-names>D</given-names> </name><name name-style="western"><surname>Deshpande</surname><given-names>A</given-names> </name></person-group><article-title>Use of large language models to identify surveillance colonoscopy intervals-a feasibility study</article-title><source>Gastroenterology</source><year>2025</year><month>02</month><volume>168</volume><issue>2</issue><fpage>382</fpage><lpage>384.e4</lpage><pub-id pub-id-type="doi">10.1053/j.gastro.2024.09.032</pub-id><pub-id pub-id-type="medline">39362570</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>Acharya</surname><given-names>V</given-names> </name><name name-style="western"><surname>Mehta</surname><given-names>SJ</given-names> </name><name name-style="western"><surname>Sussman</surname><given-names>DA</given-names> </name><etal/></person-group><article-title>Use of large language models to determine the surveillance colonoscopy interval: a bi-institutional validation study</article-title><source>Am J Gastroenterol</source><year>2026</year><month>04</month><day>1</day><volume>121</volume><issue>4</issue><fpage>950</fpage><lpage>963</lpage><pub-id pub-id-type="doi">10.14309/ajg.0000000000003864</pub-id><pub-id pub-id-type="medline">41351229</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>Gallifant</surname><given-names>J</given-names> </name><name name-style="western"><surname>Afshar</surname><given-names>M</given-names> </name><name name-style="western"><surname>Ameen</surname><given-names>S</given-names> </name><etal/></person-group><article-title>The TRIPOD-LLM reporting guideline for studies using large language models</article-title><source>Nat Med</source><year>2025</year><month>01</month><volume>31</volume><issue>1</issue><fpage>60</fpage><lpage>69</lpage><pub-id pub-id-type="doi">10.1038/s41591-024-03425-5</pub-id><pub-id pub-id-type="medline">39779929</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>Zeki</surname><given-names>SS</given-names> </name></person-group><article-title>EndoMineR for the extraction of endoscopic and associated pathology data from medical reports</article-title><source>J Open Source Softw</source><year>2018</year><volume>3</volume><issue>24</issue><fpage>701</fpage><pub-id pub-id-type="doi">10.21105/joss.00701</pub-id></nlm-citation></ref><ref id="ref20"><label>20</label><nlm-citation citation-type="web"><article-title>National data opt-out</article-title><source>NHS England</source><access-date>2026-09-09</access-date><comment><ext-link ext-link-type="uri" xlink:href="https://digital.nhs.uk/services/national-data-opt-out">https://digital.nhs.uk/services/national-data-opt-out</ext-link></comment></nlm-citation></ref><ref id="ref21"><label>21</label><nlm-citation citation-type="other"><person-group person-group-type="author"><name name-style="western"><surname>Abdin</surname><given-names>M</given-names> </name><name name-style="western"><surname>Aneja</surname><given-names>J</given-names> </name><name name-style="western"><surname>Behl</surname><given-names>H</given-names> </name><etal/></person-group><article-title>Phi-4 technical report</article-title><source>arXiv</source><comment>Preprint posted online on  Dec 12, 2024</comment><pub-id pub-id-type="doi">10.48550/arXiv.2412.08905</pub-id></nlm-citation></ref><ref id="ref22"><label>22</label><nlm-citation citation-type="book"><person-group person-group-type="author"><name name-style="western"><surname>Zhang</surname><given-names>Z</given-names> </name><name name-style="western"><surname>You</surname><given-names>W</given-names> </name><name name-style="western"><surname>Wu</surname><given-names>T</given-names> </name><name name-style="western"><surname>Wang</surname><given-names>X</given-names> </name><name name-style="western"><surname>Li</surname><given-names>J</given-names> </name><name name-style="western"><surname>Zhang</surname><given-names>M</given-names> </name></person-group><article-title>A survey of generative information extraction</article-title><source>Proceedings of the 31st International Conference on Computational Linguistics</source><year>2025</year><publisher-name>Association for Computational Linguistics</publisher-name><fpage>4840</fpage><lpage>4870</lpage></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>Djinbachian</surname><given-names>R</given-names> </name><name name-style="western"><surname>Khellaf</surname><given-names>A</given-names> </name><name name-style="western"><surname>Noyon</surname><given-names>B</given-names> </name><name name-style="western"><surname>Soucy</surname><given-names>G</given-names> </name><name name-style="western"><surname>Nguyen</surname><given-names>BN</given-names> </name><name name-style="western"><surname>von Renteln</surname><given-names>D</given-names> </name></person-group><article-title>Accuracy of measuring colorectal polyp size in pathology: a prospective study</article-title><source>Gut</source><year>2023</year><month>11</month><volume>72</volume><issue>11</issue><fpage>2015</fpage><lpage>2018</lpage><pub-id pub-id-type="doi">10.1136/gutjnl-2023-330241</pub-id><pub-id pub-id-type="medline">37507216</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>Bedi</surname><given-names>S</given-names> </name><name name-style="western"><surname>Liu</surname><given-names>Y</given-names> </name><name name-style="western"><surname>Orr-Ewing</surname><given-names>L</given-names> </name><etal/></person-group><article-title>Testing and evaluation of health care applications of large language models: a systematic review</article-title><source>JAMA</source><year>2025</year><month>01</month><day>28</day><volume>333</volume><issue>4</issue><fpage>319</fpage><lpage>328</lpage><pub-id pub-id-type="doi">10.1001/jama.2024.21700</pub-id><pub-id pub-id-type="medline">39405325</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>Abbasian</surname><given-names>M</given-names> </name><name name-style="western"><surname>Khatibi</surname><given-names>E</given-names> </name><name name-style="western"><surname>Azimi</surname><given-names>I</given-names> </name><etal/></person-group><article-title>Foundation metrics for evaluating effectiveness of healthcare conversations powered by generative AI</article-title><source>NPJ Digit Med</source><year>2024</year><month>03</month><day>29</day><volume>7</volume><issue>1</issue><fpage>82</fpage><pub-id pub-id-type="doi">10.1038/s41746-024-01074-z</pub-id><pub-id pub-id-type="medline">38553625</pub-id></nlm-citation></ref><ref id="ref26"><label>26</label><nlm-citation citation-type="other"><person-group person-group-type="author"><name name-style="western"><surname>Huang</surname><given-names>Y</given-names> </name><name name-style="western"><surname>Tang</surname><given-names>K</given-names> </name><name name-style="western"><surname>Chen</surname><given-names>M</given-names> </name><name name-style="western"><surname>Wang</surname><given-names>B</given-names> </name></person-group><article-title>A comprehensive survey on evaluating large language model applications in the medical industry</article-title><source>arXiv</source><comment>Preprint posted online on  Apr 24, 2024</comment><pub-id pub-id-type="doi">10.48550/arXiv.2404.15777</pub-id></nlm-citation></ref><ref id="ref27"><label>27</label><nlm-citation citation-type="other"><person-group person-group-type="author"><name name-style="western"><surname>Singh</surname><given-names>A</given-names> </name><name name-style="western"><surname>Singh</surname><given-names>N</given-names> </name><name name-style="western"><surname>Vatsal</surname><given-names>S</given-names> </name></person-group><article-title>Robustness of large language models to perturbations in text</article-title><source>arXiv</source><comment>Preprint posted online on  Jul 12, 2024</comment><pub-id pub-id-type="doi">10.48550/arXiv.2407.08989</pub-id></nlm-citation></ref><ref id="ref28"><label>28</label><nlm-citation citation-type="book"><person-group person-group-type="author"><name name-style="western"><surname>Moradi</surname><given-names>M</given-names> </name><name name-style="western"><surname>Samwald</surname><given-names>M</given-names> </name></person-group><article-title>Evaluating the robustness of neural language models to input perturbations</article-title><source>Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing</source><year>2021</year><publisher-name>Association for Computational Linguistics</publisher-name><fpage>1558</fpage><lpage>1570</lpage><pub-id pub-id-type="doi">10.18653/v1/2021.emnlp-main.117</pub-id></nlm-citation></ref><ref id="ref29"><label>29</label><nlm-citation citation-type="book"><person-group person-group-type="author"><name name-style="western"><surname>Dong</surname><given-names>G</given-names> </name><name name-style="western"><surname>Zhao</surname><given-names>J</given-names> </name><name name-style="western"><surname>Hui</surname><given-names>T</given-names> </name><etal/></person-group><article-title>Revisit input perturbation problems for LLMs: a unified robustness evaluation framework for noisy slot filling task</article-title><source>Natural Language Processing and Chinese Computing</source><year>2023</year><publisher-name>Springer</publisher-name><fpage>682</fpage><lpage>694</lpage><pub-id pub-id-type="doi">10.1007/978-3-031-44693-1_53</pub-id></nlm-citation></ref></ref-list><app-group><supplementary-material id="app1"><label>Multimedia Appendix 1</label><p>Patient public involvement (PPI).</p><media xlink:href="jmir_v28i1e102789_app1.docx" xlink:title="DOCX File, 14 KB"/></supplementary-material><supplementary-material id="app2"><label>Multimedia Appendix 2</label><p>Large language model selection.</p><media xlink:href="jmir_v28i1e102789_app2.docx" xlink:title="DOCX File, 15 KB"/></supplementary-material><supplementary-material id="app3"><label>Multimedia Appendix 3</label><p>Guideline-grounded rule-based algorithm.</p><media xlink:href="jmir_v28i1e102789_app3.docx" xlink:title="DOCX File, 15 KB"/></supplementary-material><supplementary-material id="app4"><label>Multimedia Appendix 4</label><p>Examples of robustness perturbations.</p><media xlink:href="jmir_v28i1e102789_app4.docx" xlink:title="DOCX File, 14 KB"/></supplementary-material><supplementary-material id="app5"><label>Multimedia Appendix 5</label><p>Robustness analysis.</p><media xlink:href="jmir_v28i1e102789_app5.docx" xlink:title="DOCX File, 14 KB"/></supplementary-material><supplementary-material id="app6"><label>Checklist 1</label><p>TRIPOD-LLM checklist.</p><media xlink:href="jmir_v28i1e102789_app6.docx" xlink:title="DOCX File, 21 KB"/></supplementary-material></app-group></back></article>