$$\rightleftharpoonup{xx}$$
$$\longleftharp{xx}$$,
$$\longrightharp{xx}$$,
In this section, two use cases are presented to demonstrate how the AI can assist pathologists in assessing images and providing diagnostic inputs.
Prostate cancer diagnosis (Figure 7): Histopathology assessment of prostate biopsy with cancer, including tumor length and percentage, Gleason scores (3, 4, and 5), percentage of Gleason 4 and 5, etc. This information is then used to classify patients into 4 grade groups (1 to 4), with 4 being the most aggressive prostate cancer4,5. This information is required to be included in the pathology report; therefore, it is a perfect example to illustrate AI-assisted pathology diagnosis.
In this example, the glass slides with prostate biopsy were initially stained with the hematoxylin-eosin (H&E) procedure. The stained slide was then digitized to generate a whole slide image (WSI), which was uploaded to the system via a direct interface between the scanner computer and the software (Figure 7). Once uploaded, an AI-powered model processes the label, identifies and tags every entity, including the specimen source (i.e., prostate) and staining type (i.e., H&E). This model determines whether the image is a H&E-stained prostate biopsy. If it is, another AI-based model analyzes the image and generates feedback or outputs based on the analysis (Figure 7A). This AI-based model is also able to pre-order PIN4 immunohistochemical stains to assist pathologists in confirming the presence of small tumor areas (Figure 3).
This model was trained on over 1700 prostate whole slide images (WSI) that were pixel-wise annotated by a team of experienced pathologists. Following the annotation of WSIs, a deep learning model is applied to classify prostatic tissue tiles into four categories: Benign, Gleason3, Gleason4, and Gleason5. As illustrated in Figure 5, tile-based outputs are aggregated to create a whole-slide mask highlighting cancerous regions: Cancer (red), Gleason4 (green), and Gleason5 (blue; Figure 6). In addition to these masks, the AI model generated a final label (Cancer or Benign) for the prostate WSI. This classification is based on morphological features such as the areas of Gleason3, Gleason4, and Gleason5, the certainty of Gleason3, Gleason4, and Gleason5 masks, and other factors. The performance of our current prostate model for the detection of prostate cancer was confirmed by using an independent set of 1,000 WSIs that were not used during model development or validation. Each slide in the validation set is labeled as either Benign or Cancer. The trained model also assigns a label to each slide as described. By comparing the ground truth labels with the model's predictions, performance metrics such as accuracy, sensitivity, specificity, and F1 score were calculated, as presented in Table 1. The results indicate that the trained model performs comparably to other prostate AI models6.
In addition to Gleason scores, the AI model is able to determine tumor length and percentage, and grade group (Figure 7). Furthermore, the AI model is also able to calculate NCCN risk group-based pathology and clinical information if provided (Figure 7A). In FlexLIS, AI is able to transcribe all diagnostic information into the pathology report, so that pathologists do not have to manually enter it into the report (Figure 7B). Although the entire AI process is completed in the background and is not visible to pathologists, the AI analysis results and the same image are visible to pathologists who can decide to keep or change the AI results in the pathology report (Figure 7B).
Urine cytology for bladder cancer screen: Urine cytology is the primary non-invasive method for bladder cancer screen, diagnosis, and monitoring7. Urine cytology classifies patients into four categories: negative for high-grade urothelial carcinoma, atypical urothelial cells, suspicious for high-grade urothelial carcinoma, and high-grade urothelial carcinoma8. Review of urine cytology requires experience and skill and is very time-consuming. Therefore, AI-assisted urine cytology screening is highly demanded. This case presents a single-cell assessment by AI.
Examining urine cytology slides can be a labor-intensive and time-consuming process for pathologists. It requires meticulously scanning wide fields and frequently zooming in and out to locate rare, diagnostically significant cells, often resembling a search for a needle in a haystack. This manual approach not only demands considerable time and focus but also contributes to diagnostic fatigue and potential variability in interpretations. To streamline this process, the AI-based urine cytology model integrated within FlexLIS has been developed to support pathologists by automatically detecting and classifying a wide range of cell types in urine specimens. The model is capable of identifying the following categories: HGUC (High-Grade Urothelial Carcinoma cells), suspicious (urothelial cells with marked abnormalities suggestive of malignancy but not definitively diagnostic), atypical urothelial cells, RBCs (Red Blood Cells), crystals, lymphocytes, polymorphous cells, polyoma virus, renal tubular cells, sperm, squamous cells, normal urothelial cells, yeast, and others. To further enhance usability, the diagnostically significant categories-HGUC, atypical urothelial cells, and suspicious ones-are highlighted using distinct colors (Figure 8), enabling pathologists to rapidly focus on areas of interest without the need for exhaustive manual scanning.
Furthermore, the AI model quantifies the number of cells in each detected category and seamlessly integrates this data into the output (Figure 8). These findings are automatically transcribed into the pathology report, enabling the pathologist to focus solely on reviewing, verifying, and finalizing the case. This greatly enhances diagnostic efficiency, reduces manual workload, and promotes consistency and accuracy across reports.
To train the AI model, 500 regions were randomly selected from 150 whole slide images of urine cytology specimens. Expert cytopathologists manually annotated cells within these regions into 14 predefined categories, as previously described, resulting in over 30,000 annotated cells. Regions from 80% of the slides were used for training, while the remaining 20% were reserved for validation. An object detection model was then trained and evaluated to accurately identify and classify cells across the defined categories.
In addition to prostate and urine cytology models, the gastroenterology AI model is also available in the software. Other models, including bladder cancer and lung cancer, are in the process of development.

Figure 1: Pathology workflow. (A) Traditional pathology workflow. (B) Digital pathology workflow. Please click here to view a larger version of this figure.

Figure 2: Log in window. Enter email in the email box. Please click here to view a larger version of this figure.

Figure 3: Accession List window. (A) The left sidebar indicates different user options. (B) Accession Filter to search and sort the cases. (C) Accession List with the information of each case, including accession number, patient name, case status, number and quality of the images, etc. In this case, 4 cases were assigned to the user. Please click here to view a larger version of this figure.

Figure 4: Pathologist Review window. (A) Case information, including the status of the case. (B) The Specimen Summary table provides a summary of each specimen, including site, diagnosis, and comments. (C) Specimen information provides additional information about the specimen. (D) Case Control Panel for navigating the case. The right diagram indicates prostate biopsy sites and AI results (red-cancer, orange-ASAP, and black-benign). Please click here to view a larger version of this figure.

Figure 5: Image Review window. (A) Image library (left sidebar) lists all specimens alphabetically with information on stain type and status. (B) Toolbar (top) to move, annotate, and share the images. (C) Case information/AI (right sidebar) for making comments, communicating with staff, and viewing AI feedback/outputs. This case is a prostate biopsy with prostate cancer masked by AI (red-cancer and green-Gleason 4). Please click here to view a larger version of this figure.

Figure 6: AI outputs. (A) Histology image. (B) AI feedback, i.e., AI assessment of image, including tumor length, Gleason score, grade group, etc. Please click here to view a larger version of this figure.

Figure 7: Prostate AI model automatically assesses the image of prostate biopsy and assists in generating pathology reports. (A) After analysis of images in IMS. (B) AI outputs the results to the pathology report. Please click here to view a larger version of this figure.

Figure 8: AI assessment of urine cytology slide. Abnormal urothelial cells were highlighted in red (high-grade urothelial cancer cells) and pink (suspicious cells). AI results showing in the insert (right upper corner). Please click here to view a larger version of this figure.
| Accuracy | Precision | Sensitivity | Specificity | F1-score |
| 97% | 96% | 98% | 96% | 97% |
Table 1: Performance of the prostate AI model for detection of adenocarcinoma in prostate biopsies.