医学伦理研究助手
前沿
论文精读

论文 · 队列研究

用大语言模型自动化细针穿刺及非妇科细胞学质量控制:诊断准确性与效率的真实世界评估

Cytojournal · 2026年8月4日 · Naik 等 3 位作者

问这篇
一分钟了解要点本地部署大语言模型自动分类细胞学报告,准确率与省时均很高。结果模型分类与专家一致率 98.5%,Kappa 值 0.973,仅 7 份误分,多因语义模糊、语境缺失或机构判读习惯。

不需要生物学背景,多打比方

正在阅读全文并生成讲解…

已等待 0 秒大约需要 10–20 秒

可以先看别的,做好了会自动出现在这里。

这篇还没有动画

动画会把研究的流程、作用机制和关键结果一步一步演示出来,每一步都标明出自原文哪里。制作大约需要一两分钟。

摘要Abstract

第 1 段问这一段

Objectives:: Cytopathology laboratories are required to track diagnostic category distributions as part of quality control (QC) under Clinical Laboratory Improvement Amendments regulations. This process is typically manual, time-consuming, and prone to inconsistency. We evaluated whether a large language model (LLM) could accurately and efficiently categorize cytopathology reports to support regulatory QC processes.

第 2 段问这一段

Material and Methods:: A total of 472 fine needle aspiration and non-gynecologic (NG) cytology reports from 1–31 January 2024 were processed using DeepSeek-R1:32B, a locally deployed open-source LLM. GYN cytology reports were excluded because their diagnostic categories are already captured as discrete data in our laboratory information system, eliminating the need for natural language processing. The model extracted the final diagnosis, diagnostic category, and confidence score from each report. A board-certified cytopathologist independently reviewed all cases to serve as the ground truth. Cases were categorized as correct or incorrect. Time required for manual versus artificial intelligence (AI)-assisted review was also measured.

第 3 段问这一段

Results:: The model achieved 98.5% categorization agreement (95% confidence interval: 97.0–99.3%; Cohen’s Kappa = 0.973) with expert review (465/472 cases were classified as correct), with only 1.5% (7/472) raw misclassifications. Most misclassifications were due to semantic ambiguity, missing context, or institutional interpretation conventions. The pipeline implemented a human-in-the-loop mechanism by flagging low-confidence or non-standard outputs for manual review, enhancing safety. The AI-assisted workflow reduced total review time by 98.5%, from 279 to 4.15 min.

第 4 段问这一段

Conclusion:: This study demonstrates that LLMs can accurately and safely support cytopathology QC tasks, significantly reducing workload while maintaining reporting consistency. With further development and validation, LLM-powered tools may become integral to pathology workflows across specialties.

第 5 段问这一段

Keywords: Artificial intelligence, Clinical natural language processing, Cytopathology, Diagnostic automation, Fine needle aspiration, Large language model, Quality control

引言INTRODUCTION

第 6 段问这一段

Cytopathology laboratories in the United States are required under the Clinical Laboratory Improvement Amendments (CLIA) to track and report specific quality control (QC) metrics. Among these is the distribution of diagnostic categories assigned to specimens, which serves as a measure of consistency across cytotechnologists, cytopathologists, and the laboratory as a whole. At our laboratory, this categorization is performed manually on a monthly basis. A designated cytotechnologist retrospectively reviews each final report, extracts the diagnostic category (Non-diagnostic, Benign, Atypical, Suspicious, or Malignant), and enters the tally into a spreadsheet. This aggregate data is then used to generate a monthly QC report that is reviewed by the Laboratory Director. The statistics are essential for CLIA compliance, allowing us to monitor for diagnostic drift over time, identify potential areas for staff education, and calculate individual cytopathologist/cytotechnologist rates of diagnoses.

第 7 段问这一段

The free text in the reports may or may not explicitly include the diagnostic categories, depending on the case and the professional judgment of the cytopathologist. Numerous laboratory information systems (LIS) allow for these categories to be entered discretely at the time of sign-out; however, this feature is not universally implemented or available. In our laboratory, we utilize the Cerner PathNet LIS (Oracle Corporation, Austin, Texas, USA), which technically allows for discrete data entry of the diagnostic category. However, this feature is often bypassed. Many fine needle aspiration (FNA) and some non-gynecologic (NG) cases involve multiple specimens, such as passes from different sites or organs that warrant different diagnostic categories. The LIS forces entry of a single category for the case, which often results in a non-specific “mixed” designation that negates the utility of the discrete category capture. Although this limitation reflects our local institutional LIS configuration, other laboratories face similar barriers to consistent discrete capture, such as free-text amendments and uncommon case scenarios. The relatively straightforward development and implementation of this large language model (LLM)-based system suggest that this approach could be easily adapted by other institutions to address their own informatics limitations. Accurate categorization is essential for maintaining diagnostic standards, yet this process can be time-consuming when it is performed manually. In addition to the substantial time demands, it introduces the potential for human error and inconsistency.

第 8 段问这一段

The increasing shortage of pathologists and cytotechnologists further compounds these challenges. In the United States, there are approximately 6.4 pathologists per 100,000 individuals, and <10.5% of them are aged <40. Meanwhile, the number of graduating cytotechnologists has decreased from 246 per year in 2007 to 109 per year in 2022. As workloads increase and staffing challenges grow, there is a critical need to explore automation tools that can support existing personnel in meeting their regulatory and clinical responsibilities.

第 9 段问这一段

While cytopathology features several highly standardized reporting systems (e.g., Bethesda for thyroid, Paris System for urine), the diagnostic ambiguity remaining in many other specimen types (e.g., effusions, lymph nodes, soft tissue) still necessitates the interpretation of highly variable free-text. Furthermore, the categories within these standardized systems (e.g., “Neoplastic: Other” or “Salivary Gland Neoplasm of Undetermined Malignant Potential”) do not always map cleanly to the five regulatory QC categories required by CLIA. Traditional text automation approaches, such as regular-expression-based string searching, are notoriously brittle and often fail in the presence of semantic nuance. For example, they may misclassify a report stating “Negative for high-grade carcinoma” simply because it contains the phrase “high-grade carcinoma.” Conversely, training a classical machine learning model requires massive, manually annotated datasets, which are time-consuming and expensive. We chose an LLM approach because its zero-shot learning capability allows it to interpret the subtle, context-dependent language of pathology reports without the need for extensive, task-specific data annotation, thus offering a robust, cost-effective, and semantically sensitive solution for this regulatory task.

第 10 段问这一段

LLMs represent a promising class of artificial intelligence (AI) tools that have demonstrated robust capabilities in understanding and generating human language. Trained on vast quantities of text data, LLMs can extract structured information from unstructured documents, perform text classification, and summarize clinical content without requiring task-specific training. Several recent studies have shown that LLMs can match or outperform traditional natural language processing (NLP) pipelines for extracting structured data from pathology reports. Some tools have even been deployed within hospital firewalls to protect patient privacy while enabling rapid and accurate data processing.

第 11 段问这一段

However, most prior work has focused on extracting clinical or research data from pathology reports and not on assisting with operational laboratory tasks such as regulatory QC monitoring. Our study addresses this gap by evaluating whether a modern LLM can be used to automate a real-world cytopathology QC task: Categorizing pathology reports by diagnostic category in a CLIA-compliant format. Importantly, our aim was not to replace manual workflows. Instead, we evaluated whether LLMs are capable of performing this narrowly defined and legally required function with sufficient reliability to support human experts. Crucially, the LLM’s performance is evaluated strictly on its NLP accuracy in interpreting the finalized diagnostic text, not on diagnostic accuracy or correlation with subsequent histopathologic gold standards. This demonstration of reliable, efficient automation of a mandated regulatory task represents a significant step toward improving laboratory efficiency and mitigating the impact of ongoing workforce shortages.

MATERIAL AND METHODS / Human subjects and ethical approval

第 12 段问这一段

This study was conducted in accordance with the Code of Ethics of the World Medical Association (Declaration of Helsinki) for experiments involving humans. All procedures were performed in compliance with relevant laws and institutional guidelines.

第 13 段问这一段

The proposed activity, as described in this manuscript, was reviewed by the Human Research Protection Program (Institutional Review Board [IRB] Study ID: STUDY00026725, Submission ID: STUDY00026725). The program determined that this activity does not meet the definition of human subject research as defined in 45 CFR 46.102(e) and/or (l). Therefore, IRB review and approval were not required.

第 14 段问这一段

All patient reports were de-identified at the time of data collection to ensure patient privacy. Given the de-identified nature of the data and the determination that the activity does not constitute human subject research, informed consent was not required. The privacy rights of human subjects were observed throughout the study.

MATERIAL AND METHODS / Study design and dataset

第 15 段问这一段

This study evaluated the performance of an LLM in automating diagnostic categorization of cytopathology reports as part of a CLIA QC workflow. The current manual QC process in our laboratory serves as the operational baseline for this study, against which we compared the LLM-assisted workflow’s accuracy and efficiency.

第 16 段问这一段

Reports were retrieved from the Cerner Oracle LIS and represented all FNA and NG cytology cases accessioned between January 1st and 31st, 2024. Gynecologic (GYN) cytology reports were intentionally excluded from this analysis because their diagnostic categories are consistently captured in our LIS as discrete, categorical data (structured fields). Including these cases would have measured the extraction of pre-structured data rather than the interpretation of unstructured free text. We therefore focused on FNA and NG cases where NLP is operationally required in our workflow.

第 17 段问这一段

In total, 472 reports were included, comprising 149 FNA and 323 NG cases. All cases were included, and to simulate real-world conditions, there were no exclusion criteria.

第 18 段问这一段

Each report contained unstructured free-text fields authored by cytopathologists, including final diagnoses and cytologic findings. These text-based reports served as the input for the LLM pipeline.

第 19 段问这一段

Reports were de-identified at the time of data collection, and a local version of the model described below was deployed to ensure patient privacy.

MATERIAL AND METHODS / LLM model and prompt design

第 20 段问这一段

We developed and tested an AI-assisted QC pipeline using the DeepSeek-R1:32B LLM for all experiments. This open-source LLM was locally deployed to process cytopathology reports and generate structured output. All inference and data processing were performed on a dedicated local workstation (Lenovo Legion 5 Pro) equipped with an AMD Ryzen 7 6800H (3.2 GHz), 32 GB RAM, and an NVIDIA GeForce RTX 3070 Ti Laptop GPU (NVIDIA, Santa Clara, California, USA), ensuring a consistent and controlled inference environment for all reports.

第 21 段问这一段

Each cytopathology report was submitted individually using a standardized prompt template that instructed the model to extract the following elements into JavaScript Object Notation (JSON) format:

第 22 段问这一段

Final diagnosis.

第 23 段问这一段

Diagnostic category (one of the five CLIA-mandated categories: Non-diagnostic, Benign, Atypical, Suspicious, or Malignant). Cases that do not fit these categories based on institutional convention were designated “Other” by the expert reviewer.

第 24 段问这一段

Confidence score (see below).

第 25 段问这一段

For simplicity, we will abbreviate “Suspicious for Malignancy” as “Suspicious” for the remainder of the manuscript. Reports with ambiguous or low-confidence predictions were flagged for manual review to ensure diagnostic safety.

MATERIAL AND METHODS / Model selection rationale

第 26 段问这一段

DeepSeek-R1:32B was selected because it provided a practical balance of performance and deployability for our study setting. At the time this project was initiated, it was among the strongest locally deployable open-weight models in its size class for instruction following, and it consistently adhered to a constrained output format, including reliable generation of valid JSON fields required by our pipeline. Local deployment was an explicit design requirement to support privacy adherence. The 32B parameter scale was compatible with our available workstation memory constraints, whereas larger models were not practical to run reliably in our environment. We note that the model landscape is evolving rapidly, and future work should evaluate newer lightweight models, including models with medical domain tuning, to assess whether comparable or improved accuracy and structured output reliability can be achieved with lower computational requirements.

MATERIAL AND METHODS / Confidence score

第 27 段问这一段

The model was prompted to generate a self-assigned confidence score to quantify the certainty of its diagnostic category prediction. This was implemented through a structured JSON field within the prompt template: “diagnostic_category_confidence”: int

第 28 段问这一段

//This should be an integer between 0 and 10, where 10 denotes absolute certainty.

第 29 段问这一段

//Use this to indicate how certain you are that the diagnostic category is what is mentioned above.

第 30 段问这一段

The model’s confidence score was therefore self-reported, based on its internal language understanding rather than a probabilistic output. Scores ranged from 0 (no confidence) to 10 (complete confidence).

第 31 段问这一段

Predictions were considered low-confidence if the returned value was ≤4, and such cases were automatically flagged for manual review. Reports were also flagged if the model failed to output a valid diagnostic category (e.g., returned “Other” or “Not sure”), which indicated potential ambiguity or incompleteness in the source report.

第 32 段问这一段

This approach is consistent with previously published work using prompt-based confidence scoring for LLMs in clinical information extraction, where self-reported confidence values were used to triage uncertain cases for expert validation.

MATERIAL AND METHODS / Pipeline implementation

第 33 段问这一段

A custom Python 3.11.5 (Python Software Foundation, Wilmington, Delaware, USA) script was created to automate the processing of cytopathology reports and generate a structured QC summary as shown in Figure 1. The pipeline performed the following steps:

第 34 段问这一段

Figure 1. Quality control report generation artificial intelligence pipeline. LLM: Large language model, JSON: JavaScript Object Notation.

第 35 段问这一段

Loaded each de-identified cytology report individually.

第 36 段问这一段

Submitted the report text, along with a standardized prompt, to the DeepSeek-R1:32B model.

第 37 段问这一段

Parsed the model’s JSON-formatted output, extracting the predicted final diagnosis, diagnostic category, and confidence score.

第 38 段问这一段

Compiled all structured results into a centralized CSV file.

第 39 段问这一段

Aggregated diagnostic data across all cases to generate a summary QC report for human review.

第 40 段问这一段

Reports that yielded incomplete, ambiguous, or low-confidence predictions (defined as a confidence score ≤4) were automatically flagged for manual review.

第 41 段问这一段

The final QC report included a table summarizing the predicted distribution of diagnostic categories across all cases. In addition to the AI-generated tallies, the table featured a column for cytotechnologists to manually record tallies from the flagged cases that they reviewed, and a final column that combined both the manual and AI-derived counts for submission as part of the official QC documentation.

第 42 段问这一段

Flagged cases were clearly identified within the QC report, and the full text of each flagged report was reprinted directly in the document. This allowed cytotechnologists or cytopathologists to quickly review these cases without needing to manually retrieve them from the LIS, streamlining the follow-up process and ensuring efficiency in manual validation.

MATERIAL AND METHODS / Ground truth comparison and expert review

第 43 段问这一段

To evaluate diagnostic performance, all 472 LLM-processed reports were independently reviewed by a board-certified cytopathologist, who was blinded to the model’s outputs during initial review. The expert assigned a diagnostic category to each case based on the original text, which served as the ground truth for accuracy comparison.

第 44 段问这一段

After the initial review, a second validation step was conducted in which the same cytopathologist was presented with a custom report generated by the pipeline. This included the LLM’s predicted diagnostic category, associated confidence score, and metadata for each case. The goal of this second review was to assess the model’s output in context and flag any clinically concerning discrepancies.

第 45 段问这一段

Each LLM output was categorized into one of two performance classes based on the expert cytopathologist’s judgment:

第 46 段问这一段

Correct: The model’s predicted diagnostic category was a direct match to the expert-assigned ground truth.

第 47 段问这一段

Incorrect: The model’s predicted diagnostic category did not match the expert-assigned ground truth (raw misclassification).

第 48 段问这一段

The AI model was deemed to be ambiguous if it reported a confidence score ≤4 or if the returned category was anything other than the 5 standard diagnostic categories. These cases were flagged for manual review by the cytotechnologist.

MATERIAL AND METHODS / Statistical analysis

第 49 段问这一段

Statistical analysis was performed using Python 3.11.5 (Python Software Foundation, Wilmington, Delaware, USA) with the following libraries: Pandas, numpy, scikit-learn (for confusion matrices), seaborn, and matplotlib. The AI system’s structured output was compared against the cytopathologist-reviewed ground truth to calculate diagnostic accuracy, which was reported overall and separately for FNA and NG cases. Confusion matrices were constructed to visualize misclassification patterns. Inter-rater agreement between the LLM and the expert ground truth was quantified using Cohen’s Kappa. The 95% confidence interval (CI) for the overall accuracy rate was calculated using the Wilson score interval method. In addition, technical time was measured for both manual and AI-assisted workflows to quantify the time savings of the automated workflow. The technical time for the AI-assisted workflow (LLM-pipeline) was calculated to be the sum of the time required for technical staff to manually review all flagged (low-confidence and ambiguous) cases and compute the final tallies.

结果RESULTS

第 50 段问这一段

The ground truth labels for the FNA cases consisted of 4 Non-diagnostic cases, 61 Benign cases, 19 Atypical cases, 7 Suspicious cases, 57 Malignant cases, and 1 case designated “other,” totaling 149 cases. The “Other” designation applied to cases that did not fit any of the five standard CLIA categories. In practice, this occurred only once, in a case with an addendum that lacked a conventional final diagnosis. The ground truth labels for the NG cases consisted of 4 Non-diagnostic cases, 233 Benign cases, 33 Atypical cases, 25 Suspicious cases, and 28 Malignant cases, totaling 323 NG cases. FNA sites included thyroid, lymph node, lung, liver, salivary gland, pancreas, and soft tissue, while NG specimens included urine and bladder washings, pleural fluid, bronchial brushings, bronchoalveolar lavages, pericardial fluid, ascitic and peritoneal fluids, bile duct brushings, and cerebrospinal fluids.

第 51 段问这一段

The DeepSeek-R1:32B model achieved a 98.5% raw categorization agreement rate (95% CI: 97.0–99.3%) with expert review, with 465 direct matches to the ground truth (Cohen’s Kappa = 0.973). Seven cases (six FNA and 1 NG) were raw misclassifications, meaning that the LLM’s prediction did not match the expert-assigned category. Seven cases were flagged for manual review due to low confidence scores (six FNA cases and one NG case). Among the flagged cases, the LLM’s initial categorization was correct in six of seven instances, all falling into the Atypical, Suspicious, or Other categories. Two of the low-confidence FNA cases were also flagged because they were classified as “other.” One of these reports contained only an addendum and lacked a standard final diagnosis field; this case was likewise classified as “Other” by the ground truth pathologist. The second case was a mucinous cyst that should have been classified as Atypical under our internal laboratory workflow.

第 52 段问这一段

Only seven cases, representing 1.5% of the total, were raw misclassifications [Table 1], including one NG case and six FNA cases. It is important to note that one of these seven misclassifications was correctly intercepted by the pipeline as it was flagged for manual review. NG cases had a 99.7% raw correct rate, while FNA cases had a 96.0% raw correct rate. Specific misclassifications included a three-part specimen with two insufficient parts and one that was Benign [Figure 2]. The model labeled the case as Benign, whereas the cytopathologist classified it as Non-diagnostic. One case with a mucinous cyst was classified as Benign by the model but Atypical by the cytopathologist. A case of thymic cortical tissue where “lymphocyte-rich thymoma cannot be excluded” was labeled Suspicious by the model but Atypical by the cytopathologist. An oncocytic follicular neoplasm was classified as Benign by the model and Atypical or Suspicious by the cytopathologist. A urine cytology case that was diagnosed as “Negative for High Grade Urothelial Carcinoma with squamous atypia” and labeled as Benign by the model but Atypical by the cytopathologist. A case of “atypical adipose tissue” was labeled Non-diagnostic by the model but Atypical by the cytopathologist. Notably, all misclassifications in this study occurred outside the most critical distinction between “Benign” and “Malignant.” Furthermore, the low-confidence flagging mechanism successfully intercepted one of these errors. This suggests that the risk of high-stakes misclassification within the current human-in-the-loop framework is minimal. Manual review of all 472 reports required 279 min, whereas AI-assisted review took 4.15 min. The AI-assisted review included the manual review of all the flagged cases and tallying of the categories, representing a 98.5% reduction in technical time.

第 53 段问这一段

Table 1. Detailed breakdown of large language model (LLM) misclassification (n =7 cases).

第 54 段问这一段

Figure 2. Confusion matrices comparing LLM prediction against expert ground truth. (a) Nongynecologic cases (n = 323). (b) Fine needle aspiration Cases (n = 149). Cells represent the absolute number of cases classified into each category. The “Other” category represents non-standard cases (e.g., reports lacking a conventional diagnosis field) that do not fit the five CLIA-mandated diagnostic categories. The matrices demonstrate high accuracy with misclassifications concentrated in the Atypical, Suspicious, and Non-diagnostic categories, illustrating the semantic ambiguity present in these indeterminate classes. LLM: Large language model, CLIA: Clinical Laboratory Improvement Amendments.

讨论DISCUSSION

第 55 段问这一段

This study demonstrates that integrating an LLM into the cytopathology QC workflow can be both highly accurate and operationally efficient. The AI-assisted QC pipeline achieved 98.5% raw category agreement with expert review while simultaneously reducing review time by 98.5%. Notably, only one NG and six FNA cases were misclassified. This high level of performance is particularly significant for a QC task, as human inter-observer variability in microscopic interpretation of cytopathology slides is well-documented to vary substantially. Although previous studies have evaluated variability in the microscopic interpretation of specimens rather than in the textual interpretation of finalized reports, they nonetheless illustrate the intrinsic subjectivity of diagnostic classification. Reported inter-observer agreement rates vary enormously, falling as low as 65%, depending on specimen type and reporting system, with lower concordance often observed in indeterminate categories such as Atypical and Suspicious. Given that our model’s agreement rate was measured against a single expert’s “ground truth,” the observed 98.5% performance, combined with a human-in-the-loop mechanism to review all low-confidence or ambiguous cases, provides a level of reliability that exceeds typical human consistency and is sufficient for its intended use of monitoring diagnostic category drift under CLIA QC requirements.

第 56 段问这一段

The results suggest that LLMs can serve as a valuable decision-support tool, capable of parsing nuanced, free-text reporting language and correctly categorizing cytology cases with minimal oversight. This is particularly relevant for free-text cytology reports, in which rule-based NLP approaches often require extensive maintenance and may fail in the setting of negation and context-dependent phrasing. Importantly, the model’s output included a confidence score, and cases with low or ambiguous confidence were flagged for expert review, preserving clinical safety. This approach aligns with broader findings in the literature showing that AI-based clinical decision support tools can achieve high accuracy while supporting safe and efficient integration into diagnostic workflows.

第 57 段问这一段

The overall model accuracy was similar to that reported in prior studies, with newer models often achieving higher performances, likely because of larger model sizes and improved architecture. For example, an early study that extracted breast cancer data using ChatGPT 3 reported accuracies that varied (63.8–98.2%) depending on the specific data extracted. In contrast, more recent studies using Generative Pretrained Transformer 4 LLM, Llama 3.1, and GPT-4o achieved average accuracies that ranged from 94.7% to 99.8% when extracting data from prostate and breast cancer pathology reports. These trends confirm that the high accuracy achieved in our study is consistent with the current capabilities of modern, high-performance LLMs.

DISCUSSION / Addressing diagnostic ambiguity

第 58 段问这一段

Most misclassified cases involved semantic ambiguity or missing clinical context, rather than purely syntactic complexity. For example, the model classified a multi-part specimen as Benign instead of Non-diagnostic due to institution-specific rules for handling insufficient parts, and a mucinous cyst as Benign instead of Atypical, missing an implied diagnostic concern. Other errors, such as labeling thymic cortical tissue as Suspicious instead of Atypical or a urine cytology case with squamous atypia as Benign instead of Atypical, reflect challenges in parsing nuanced diagnostic phrases or applying context-specific knowledge. Ambiguous cases often involve nuanced diagnostic phrases or implied intent, which can also pose difficulties for human reviewers, as seen in prior NLP studies. Further improvements could likely be achieved by refining the prompt to better flag ambiguous cases for review and to ensure that diagnostic classification is performed at the specimen-part level rather than the case level.

DISCUSSION / Operational benefits and workflow enhancement

第 59 段问这一段

Manual cytopathology QC is time-intensive and demands skilled personnel. This study shows that an LLM-based pipeline can substantially alleviate the workload by automating initial categorization and prioritizing ambiguous reports for expert review. Rather than replacing human reviewers, the model enhances their effectiveness by ensuring that attention is focused where it is most needed.

第 60 段问这一段

The model also provides structured outputs (e.g., CSV [comma-separated value]-formatted tables) that are compatible with existing QC workflows, potentially increasing consistency and reducing data-entry errors. Further, this approach could be extended to other data-driven QC tasks in cytopathology, such as tracking diagnostic category distributions by provider, identifying cases for retrospective review, or correlating cytology results with surgical pathology follow-up. This aligns with prior studies showing that AI-based tools can reduce review time, prioritize high-risk cases, and support more efficient pathology workflows.

第 61 段问这一段

The alternative to using LLMs for report categorization is to employ traditional NLP methods such as regular expression searches, keyword rules, or handcrafted decision trees. While these approaches can perform well when report language is highly standardized, they are brittle in the presence of negation, hedging language, multi-specimen structure, and stylistic variation across pathologists. For example, if not designed carefully, simple keyword matching can misclassify phrases such as “negative for high-grade carcinoma” because it contains a malignant keyword. Even carefully crafted rule sets require ongoing maintenance to adequately handle new data. In contrast, the LLM used in this study performed semantic interpretation of the report text and produced structured outputs in a fixed JSON schema, enabling robust downstream parsing with minimal rule engineering. For this QC task, the key operational advantage is that a single prompt-based pipeline can generalize across heterogeneous free text patterns without the need to construct and continuously update an extensive set of institution-specific rules.

DISCUSSION / Indirect educational and diagnostic improvement value

第 62 段问这一段

While the primary objective of this study was to demonstrate efficiency and accuracy for CLIA compliance, the resulting AI-assisted QC pipeline establishes a robust infrastructure for continuous performance improvement. By automatically and reliably categorizing every case, the system provides the fundamental data required to track and benchmark the diagnostic categorical distributions of individual cytopathologists and cytotechnologists. More importantly, the system can be adapted to systematically track inter-observer disagreements between the initial cytotechnologist screening and the final cytopathologist sign-out. This capability would allow the laboratory to easily identify and flag cases exhibiting significant diagnostic category changes (e.g., Benign to Malignant). These flagged, high-impact discrepancy cases can then be prioritized for retrospective review, which serves as a powerful, targeted tool for staff education and quality assurance, thereby indirectly leading to long-term improvements in diagnostic performance and consistency within the laboratory.

DISCUSSION / Deployment consistency and safety guardrails

第 63 段问这一段

To ensure reliable performance within our operational environment, we controlled for potential sources of LLM variability. Specifically, deploying a single, open-source model (DeepSeek-R1:32B) locally with a fixed prompt template provided a consistent, verifiable inference environment. This controlled design ensures that the model’s performance is stable within our environment, though continuous monitoring for drift will be essential upon deployment. Crucially, the model was designed with a builtin safety mechanism: The self-assigned confidence score. Cases that yielded low confidence or ambiguous output were automatically flagged for human intervention. This human-in-the-loop strategy acts as a critical guardrail, ensuring that any rare, non-reproducible misclassification by the LLM is intercepted and corrected by an expert, thereby maintaining diagnostic integrity while achieving operational efficiency.

DISCUSSION / Scalability and future directions

第 64 段问这一段

As pathology laboratories face increasing case volumes and workforce shortages, tools like this AI QC pipeline offer a scalable solution to maintain quality while improving efficiency. Although this study focused on cytopathology, similar approaches could be adapted for other subspecialties such as histopathology, surgical pathology, hematopathology, and in medical practice outside of the laboratory, where structured extraction from unstructured text is similarly valuable. In all such settings, careful attention must be made to ensure that the pipeline remains compliant with the Health Insurance Portability and Accountability Act or other local information security regulatory requirements. Possible solutions include employing local AI infrastructure or obtaining a business associate agreement to use a compliant cloud provider. The use of DeepSeek-R1:32B, an open-source model, was specifically identified to facilitate local deployment; however, other open-source LLMs could be considered.

第 65 段问这一段

To prepare this system for broader clinical deployment, further validation across diverse datasets, institution-specific prompt refinement, and ongoing performance monitoring will be essential. Future studies comparing model performance with human inter-observer consistency would provide additional context for interpreting model accuracy. Incorporating a human-in-the-loop approach, where technical staff, pathologists, and other physicians remain in control but are supported by AI, strikes the right balance between safety and efficiency.

第 66 段问这一段

Although this was a single institution evaluation, the pipeline is designed to be portable. It operates on report text alone, and the task is defined entirely in the prompt template, which can be adjusted to match local reporting conventions or category mappings without changing the core codebase. We did not have access to external multi-institution datasets and therefore did not directly assess cross-site generalizability. However, the validation approach used here, including expert adjudication, structured output checks, and manual review of low confidence or non-standard outputs, can be applied by other laboratories to evaluate performance on their own data before use.

DISCUSSION / Limitations

第 67 段问这一段

This study has several limitations that should be considered. First, it represents a single-center evaluation with ground truth established by a single board-certified cytopathologist. While this is consistent with internal laboratory QC practices, future multi-center studies involving multiple expert reviewers are needed to further establish the generalizability and reproducibility of the model’s performance. We further acknowledge that pathological diagnosis inherently involves subjectivity, as does the interpretation of pathology notes in cases where the diagnostic category is not explicitly stated. Inclusion of multiple expert reviewers would provide a more comprehensive assessment of model performance. Furthermore, because model performance relies on prompt engineering, its effectiveness at other sites may vary due to differences in terminology and report structure. However, the core framework presented, including local deployment, confidence-based filtering, and a human-in-the-loop pipeline, is highly portable. Other laboratories can adapt this method by validating and fine-tuning prompts using their local data before deployment. Second, the study’s scope was intentionally restricted to FNA and NG cytology reports for which manual NLP is currently required. The model’s performance on GYN specimens was not assessed. Finally, this evaluation focused strictly on the model’s NLP accuracy in correctly categorizing the finalized report text. We did not evaluate correlation with subsequent surgical pathology results, as our objective was to support CLIA regulatory QC requirements.

SUMMARY

第 68 段问这一段

This study provides strong evidence that LLMs can play a meaningful and practical role in cytopathology QC. By combining high diagnostic accuracy, low error rates, and dramatic time savings, LLMs represent a promising tool for augmenting laboratory operations. With continued refinement, AI systems such as this could soon become an integral part of the pathology workflow, enhancing both QC consistency and operational efficiency.

DECLARATION OF GENERATIVE AI AND AI-ASSISTED TECHNOLOGIES IN THE WRITING PROCESS

第 69 段问这一段

During the preparation of this work, the author(s) used DeepSeek-R1:32B to process cytopathology reports and generate structured output containing diagnostic categories and model confidence. After initially drafting the manuscript, the authors further used ChatGPT and Google Gemini to help edit the manuscript and ensure compatibility with the Author Guidelines. After using these tools/services, the authors reviewed and edited the content as needed and take full responsibility for the content of the publication.

AVAILABILITY OF DATA AND MATERIALS

第 70 段问这一段

The model weights for the open-weight large language model used in this study, DeepSeek-R1:32B, are publicly available from the model developer. The cytopathology report text used for model evaluation is not publicly available, even in de-identified form, because it consists of institutional clinical report data and remains subject to institutional privacy and data-use restrictions. Aggregate results necessary to support the findings of this study are included within the article.

ETHICS APPROVAL AND CONSENT TO PARTICIPATE

第 71 段问这一段

The Human Research Protection Program/Institutional Review Board at Penn State Health Milton S. Hershey Medical Center reviewed this activity (Study ID: STUDY00026725; Submission ID: STUDY00026725) and determined that it did not meet the definition of human subject research under 45 CFR 46.102(e) and/or (l). Accordingly, IRB approval and informed consent were not required. All reports were de-identified at the time of data collection to protect patient privacy.

EDITORIAL/PEER REVIEW

第 72 段问这一段

To ensure the integrity and highest quality of CytoJournal publications, the review process of this manuscript was conducted under a double-blind model (authors are blinded for reviewers and vice versa) through an automatic online system.

Associated Data / Data Availability Statement

第 73 段问这一段

The model weights for the open-weight large language model used in this study, DeepSeek-R1:32B, are publicly available from the model developer. The cytopathology report text used for model evaluation is not publicly available, even in de-identified form, because it consists of institutional clinical report data and remains subject to institutional privacy and data-use restrictions. Aggregate results necessary to support the findings of this study are included within the article.

这篇对您:
讲解或动画有问题: