Abstract
Background: Uveal melanoma (UM) is the most common primary intraocular malignancy in adults, where the presence of epithelioid cell morphotypes correlates with high metastatic risk. Manual cytomorphological evaluation is limited by inter-observer variability. This pilot study aimed to develop and evaluate an interpretable digital morphometry framework for the quantitative cell morphotyping and differential diagnosis of UM and benign ocular melanocytic lesions. Methods: Digitized H&E-stained high-power-field patches (×400) from 21 clinical cases-10 uveal melanomas and 11 conjunctival nevi-were processed. Five patches were analysed per case, yielding 105 patches in total: 50 melanoma patches and 55 nevus patches. Nuclear segmentation was performed via HED color deconvolution and Otsu thresholding. Extracted nuclear metrics (Aspect Ratio, area) were categorized into spindle, epithelioid, or intermediate morphotypes using calibrated decision rules. Case-level Epithelioid Ratio was computed, and a patch-count sensitivity analysis (k = 1–22 patches) was conducted to determine sampling stability. Results: Case-level nuclear count (r = 0.74) and median nuclear area (r = 0.73) demonstrated the strongest positive correlations with melanoma diagnosis. Based on predefined aspect-ratio thresholds, segmented nuclei were stratified into spindle (mean aspect ratio 3.07), epithelioid (mean 1.25), and intermediate buffer (mean 1.71) categories. Exploratory sensitivity testing in case M07 indicated that sampling 5 representative ×400 patches achieved 96.7% overall feature stability relative to 22 patches. Conclusions: The proposed digital morphometry system provides an objective, transparent, and reproducible pipeline for quantifying tumor cell composition in UM. By eliminating black-box opacity and establishing a 5-patch sampling guideline, this tool offers a transparent, reproducible framework for quantitative cytomorphometric characterization in ocular pathology.
1. Introduction
Uveal melanoma (UM) is the most common primary intraocular tumor, associated with significant morbidity and mortality (accounting for 3–5% of all diagnosed melanomas) [1,2]. In ophthalmology, artificial intelligence (AI) is most frequently employed for the screening, differential diagnosis, and prognosis of UMs [3,4,5,6,7].
Various datasets are used to develop AI systems in ophthalmology, with fundus photographs being the most common [8,9,10]. Patient clinical characteristics, computed tomography and magnetic resonance imaging results, ultrasound scans, histopathological images, gene expression profiles, and even tear sample analysis results can also be utilized for this purpose [11,12,13,14,15]. Early AI models in this field focused on detecting metastases and predicting survival, whereas more recent models typically concentrate on the differential diagnosis of UMs and assessing the risk of malignant transformation in uveal nevi—including through the analysis of specific morphological patterns in histological images [16].
Morphological patterns of tumor cells, specifically the relative proportions of spindle and epithelioid phenotypes, are considered clinically informative and are reflected in classic histopathological classification schemes [17].
Tissues with a higher proportion of epithelioid cells are generally associated with a poorer prognosis compared to predominantly spindle-cell tumors, highlighting the practical value of a quantitative, reproducible description of these cytomorphological patterns [18,19,20]. However, manual assessment is labor-intensive and subject to subjective thresholds and potential inter-observer variability. Therefore, it is logical to automate this task by characterizing the tumor through its geometric and textural parameters.
For instance, one study, which scanned and analyzed the morphology and protein marker expression of over a million melanocytes (derived from normal uveal tissue, uveal nevi, melanomas, and liver metastases), identified four cell types: normal, epithelioid, spindle A (smaller, with fine nuclear chromatin and indistinct nucleoli), and spindle B (larger, with coarser chromatin and distinct nucleoli). Moreover, in normal tissues, in addition to normal melanocytes, only spindle-shaped A cells were present, whereas epithelioid and spindle-shaped B cells were present in melanoma tissue; conversely, metastases contained no normal or spindle-shaped A cells at all [21].
Previous studies on uveal melanoma indicate that digital morphometric measurements of nuclei can be reproducible and biologically meaningful, supporting the value of a systematic quantitative description of morphology. Digital morphometry offers a compromise between manual analysis and fully automated tumor identification. Thus, nuclear size and shape descriptors can be automatically extracted from routine hematoxylin and eosin (H&E) images and aggregated at the patch level to form interpretable morphological metrics that are easy to visualize and verify for consistency with expectations. Although genetic testing (e.g., chromosome 3 monosomy or gene expression profiling) is the gold standard for prognosis, it is costly and not available in all clinics [22]. Digital pathology based on routine H&E staining serves as a low-cost alternative or complement.
Despite these advances, a critical methodological gap remains in routine ophthalmic pathology. Existing computational approaches either rely on costly proteomic or molecular assays (e.g., chromosome 3 monosomy and BAP1 profiling) unavailable in standard diagnostic laboratories, or employ deep convolutional neural networks (CNNs) that require large training cohorts and operate as opaque “black boxes” [23]. Furthermore, conventional automated pipelines often force every segmented object into binary tumor classes, causing stromal cells and artifacts to skew morphotype ratios and rarely establish quantitative guidelines for how many microscopic fields must be sampled to achieve stable case-level estimates. To address these limitations, this pilot study introduces an interpretable, low-cost digital morphometry framework based on routine H&E staining that incorporates an explicit “intermediate buffer” class to suppress classification noise and evaluates the minimum patch-sampling threshold required for reproducible case-level characterization.
In this pilot study, we perform nuclear segmentation on H&E patches using a hematoxylin-based approach, extract nuclear-level morphometric features, and assign morphotypes (spindle, epithelioid, intermediate) based on calibrated decision rules. We define a quantitative framework integrating quantitative descriptors (area, perimeter, axis ratio) and qualitative-categorical metrics (cell morphotypes) across two scales (cellular and patch levels).
2. Materials and Methods
2.1. Tissue Sample Preparation and Ethics
This study was approved by the ethics committee of the Academic and Research Medical Institute of Sumy State University (Proceedings 2/09, 22 September 2026).
The histological dataset comprised 21 clinical cases (10 uveal melanomas and 11 conjunctival nevi) obtained from two clinical centers in Ukraine: Medical Laboratory “CSD” (Kyiv) and the Sumy Regional Scientific Pathomorphological Center (Sumy State University, Sumy). Specifically, 20 cases (all 10 uveal melanomas and 10 of the 11 conjunctival nevi) were retrieved from the Medical Laboratory “CSD” archive (contributed by co-author Oleksandr Chepets) and digitized as whole-slide images (WSIs) using a Leica Aperio GT 450 DX digital slide scanner (Leica Biosystems, Nussloch, Germany) at ×400 equivalent magnification. One additional reference case of conjunctival nevus was prepared from archival formalin-fixed paraffin-embedded (FFPE) blocks sectioned at 4 μm, stained with routine H&E, and digitized at the Department of Pathology, Sumy State University, using a light microscope equipped with a digital camera at ×400 magnification. Thus, both diagnostic classes were predominantly processed and scanned under identical standardized conditions at a single reference center (CSD), minimizing inter-laboratory staining or acquisition bias. In the reference patches used for nuclear morphometry, the 50 µm bars spanned 197 pixels, corresponding to approximately 0.2538 µm/pixel.
Five H&E-stained high-power-field patches (×400) were analysed per case, yielding 105 patches in total. This sampling strategy was informed by an exploratory analysis of an additional uveal melanoma case, M07, in which five-patch subsets achieved 96.7% stability relative to the full set of 22 patches. The generalizability of this sampling strategy requires further evaluation. As conjunctival nevi are the most clinically accessible and well-characterized benign ocular melanocytic lesions, exhibiting typical, mild spindle-shaped nuclear morphology, they served as the baseline for non-malignant nuclear geometric parameters. Since intraocular uveal nevi are rarely biopsied in clinical practice due to high risk of ocular morbidity, conjunctival nevi were selected as an accessible, cytologically well-characterized benign ocular melanocytic baseline with typical mild spindle nuclear geometry.
2.2. Reproducibility Workflow
The implemented algorithm is a unified software pipeline based on cytological morphometry. Each input image was represented as a distinct mathematical object, generated by extracting informative features from the specimen’s hematoxylin channel. To process the data, the resulting description undergoes a normalization sequence comprising Gaussian smoothing, Otsu thresholding, nuclear segmentation based on connected components, and area-based filtering. The extracted diagnostic features form a feature vector that characterizes the recognition classes based on the following parameters: nuclear count; mean and median nuclear area; mean and median aspect ratio; and the proportions of spindle-shaped cells, epithelioid cells and intermediate cells.
Each image patch was processed separately, and patch-level morphometric measurements were aggregated within each clinical case. Clinical cases were treated as independent observations for diagnostic comparisons and evaluation. Following the extraction of its mathematical description, the resulting morphometric data were compared against reference cytological values established during the machine learning phase. This approach enables the diagnosis of uveal melanoma and nevus across input images of arbitrary scale by segregating the morphometric analysis into two levels: individual cells and tumor conglomerates.
To enhance methodological transparency and reproducibility, the complete computational workflow is summarized in Figure 1. The pipeline begins with H&E-stained histological image patches assigned to diagnostic classes, melanoma or nevus, and linked to clinical case identifiers. Initially, the image files are organized into a structured manifest containing the image identifier, diagnostic label, and path to the source file. This step ensures the traceability of each analyzed patch throughout the entire workflow.
Figure 1.
Algorithmic pipeline for digital morphometric diagnosis of uveal melanocytic lesions from raw H&E image patches to aggregated diagnostic features and case-level classification. Blue blocks indicate data ingestion and organization; green blocks represent image preprocessing and nuclear segmentation; orange blocks denote feature extraction and morphotyping; purple blocks indicate statistical comparison and validation; the gray block represents study outputs.
Next, each image undergoes a standardized preprocessing procedure. RGB images are loaded into the analysis environment with spatial calibration; a scale factor is applied, and the images are converted to the HED color space. The hematoxylin channel is isolated, as it highlights nuclear structures and is thus suitable for subsequent nuclear segmentation. Segmentation is performed using Gaussian smoothing, Otsu thresholding, small object removal, connected-component labeling, and area-based filtering of segmented objects.
For each segmented nucleus, morphometric features are extracted, including area, perimeter, centroid coordinates, eccentricity, solidity, major and minor axis lengths, and the axis ratio. Each nucleus is then assigned to one of three morphotype categories: spindle-shaped, epithelioid, or intermediate. Following area-based selection, morphotype classification was based on predefined aspect-ratio thresholds. The intermediate category serves as a buffer class for nuclei that do not clearly meet the criteria for the spindle-shaped or epithelioid morphotypes.
To mitigate potential inter-specimen staining intensity variations without requiring external template-based color normalization, all RGB patches underwent mathematical color deconvolution into the Hematoxylin–Eosin–DAB (HED) color space, isolating exclusively the hematoxylin optical density channel. Combined with patch-specific adaptive Otsu thresholding and subsequent information-extremal feature extraction, this decolorization step normalizes nuclear contrast across slides. Furthermore, visual inspection of the cohort (available in the public Zenodo repository) confirmed that the included tumor regions exhibited minimal or absent melanin pigmentation, preventing melanin–hematoxylin spectral overlap from interfering with nuclear segmentation.
Subsequently, the measurements taken at the level of individual nuclei are aggregated. Patch-level descriptors include the total number of nuclei, the counts and proportions of spindle-shaped and epithelioid nuclei, the proportion of intermediate cells, and the mean and median values of nuclear area and axis ratio. These aggregated morphometric descriptors are subsequently used to compare diagnostic classes and to select features. Morphometric features are evaluated based on class distributions, correlations with the melanoma label, and standardized mean differences, enabling the selection of features that provide the clearest and most complementary diagnostic information.
Selected morphometric features are used to diagnose melanoma versus nevi. Threshold-based models are trained on training sets, and candidate thresholds are evaluated in both directions. To mitigate the risk of data leakage at the clinical case level, performance is assessed using a case-aware strategy in which all patches from a held-out case are excluded from training. The final results comprise tables of morphometric features, segmentation overlays, correlation heatmaps, distribution plots for selected features, and diagnostic performance metrics, including accuracy, sensitivity, specificity, F1 score, and ROC AUC. This structured workflow supports the independent reproducibility of the image processing, feature extraction, classification, and evaluation stages.
2.3. Mathematical Model
This section formalizes the proposed digital morphometry workflow as a connected mathematical model, covering image preprocessing, nuclear segmentation, morphometric feature extraction, feature selection, classification, and model evaluation.
Let the dataset consist of histological image patches indexed by case and patch number:
where Ici denotes patch i from case c, and yc in {0,1} is the diagnostic label, with 0 denoting nevus and 1 denoting melanoma.
Each RGB image patch is transformed into the HED color space. The hematoxylin channel is used for nuclear detection:
where Hci, the hematoxylin channel used for nuclear detection. The hematoxylin channel is smoothed by a Gaussian filter:
A binary mask is obtained by Otsu thresholding, where p denotes a pixel coordinate and is the automatically estimated threshold:
Connected components are extracted from the binary mask:
Segmented objects were retained within an area range corresponding to approximately 64.4–322.1 µm2. This was equivalent to the original 1000–5000-pixel area filter at the verified calibration of approximately 0.2538 µm/pixel. Physical area was calculated by multiplying the segmented pixel count by the squared pixel size:
with Amin = 64.4 µm2 and Amax = 322.1 µm2
Nuclear area in µm2 was calculated by multiplying the segmented pixel count by the squared pixel size. For the reference patches, the 1000–5000-pixel filter corresponded to approximately 64.4–322.1 µm2
For each segmented nucleus Rcik, a nucleus-level morphometric vector is computed:
where A is nuclear area, P is perimeter, e is eccentricity, s is solidity, a and b are the major and minor axis lengths, and r is the aspect ratio:
Each segmented nucleus is assigned to one of three morphotype classes:
The classification rules are:
Let Nci be the number of segmented nuclei in patch Ici:
The number of spindle and epithelioid nuclei is computed as:
The corresponding morphotype fractions are:
The patch-level feature vector is therefore defined as:
where and are the mean and median nuclear area, and , are the mean and median aspect ratio, respectively, for patch i of case c
For case-level analysis, patch-level features are averaged across all patches belonging to case c:
where nc denotes the number of image patches analysed for case c. In the main cohort, five patches were analysed per case (nc = 5), yielding 105 patches across 21 clinical cases.
For feature j, class-wise means are calculated separately for melanoma and nevus cases:
Class separation is summarized using the standardized mean difference:
where σ1j and σ0j are the standard deviations in melanoma and nevus cases. Correlation with diagnosis is estimated as:
Features with larger absolute standardized mean differences or stronger absolute correlations with the diagnostic label are considered more informative:
For each candidate feature j, a threshold model is fitted. For features positively associated with melanoma:
For features inversely associated with melanoma:
The optimal threshold θj and decision direction are selected on training data by maximizing balanced accuracy:
Model performance is evaluated using leave-one-case-out validation. For each fold, one case c* is held out:
All patches from the held-out case are excluded from training, reducing case-level data leakage. Performance is summarized using the following metrics:
The complete workflow can be represented as the following composite mapping:
2.4. Morphometric Features
For nucleus segmentation, the RGB patch of the input tissue image is converted to HED space; subsequently, the hematoxylin channel is smoothed (using Gaussian filtering) and subjected to global thresholding via Otsu’s method. The resulting binary mask is refined through morphological operations (specifically, the removal of small objects), followed by connected-component labeling to isolate individual nuclei. Key characteristics are presented in Table 1 below.
Table 1.
Definition and clinical interpretation of extracted nuclear and patch-level morphometric features.
For each segmented nucleus, a set of morphometric features is calculated based on connected-component statistics. The feature set includes: area, perimeter, eccentricity, solidity, major and minor axis lengths, centroid coordinates, and a derived feature—the aspect ratio—defined as:
Following area-based selection, each nucleus was assigned to the spindle, epithelioid, or intermediate category using the aspect-ratio rules described below. This process relies on decision rules within the intelligent component based on morphological features: nuclear area and the cell’s degree of elongation (aspect ratio). The system was calibrated using reference samples characterized by a marked predominance of their respective patterns.
Following nuclear-level classification, the results are aggregated for each patch by counting the number of nuclei of each morphotype. To facilitate interpretation, the spindle and epithelioid types are expressed as proportions calculated relative to only the two “primary” morphotypes (excluding the intermediate type):
Nep—this is the number of epithelioid cells;
Nsp—this is the number of spindle-shaped cells;
Following area-based filtering, nuclei were classified using the aspect ratio, defined as the major-to-minor axis length ratio. The classification rules were:
- (1)
- Spindle: Aspect_Ratio ≥ 2.0.
- (2)
- Epithelioid: Aspect_Ratio ≤ (approximately 1.40028).
- (3)
- Intermediate: all remaining nuclei.
These simplified rules are mathematically equivalent to the original combined eccentricity and aspect-ratio criteria. The intermediate category retains nuclei that do not meet the criteria for either primary morphotype.
3. Results
3.1. Analysis of Diagnostic Signs
At the diagnostic stage, to ensure reliable class separation, a correlation analysis was performed during machine learning to identify the features most strongly associated with the diagnosis. To this end, a reference dataset was compiled in our laboratory, with images labeled as either uveal melanoma (class X_1) or nevus (class X_2). The correlation analysis revealed that the most characteristic feature of melanoma is an increase in both the number and size of nuclei.
To establish valid diagnostic rules, morphometric analysis was conducted at the case level (Figure 2); calculations involved averaging the morphometric characteristics associated with a single clinical case. This approach made it possible to determine whether the identified morphometric patterns persisted after data aggregation within each case.
Figure 2.
Correlation heatmap of morphometric traits. Morphometric parameters are shown on the X and Y axes. Each cell represents the Pearson correlation coefficient between the corresponding parameters. Red indicates a positive correlation, and blue indicates a negative one.
The analysis demonstrated a strong positive correlation with melanoma for the number of nuclei (r = 0.74), total nuclear area (r = 0.48), and median nuclear area (r = 0.48). A similar trend was observed at the case level: the highest correlations with melanoma were found for the number of nuclei (r = 0.74), median nuclear area (r = 0.73), and mean nuclear area (r = 0.69). The fraction of nuclei assigned to the epithelioid category by the algorithm showed a negative correlation with melanoma at both levels of analysis.
To interpret the relationship between a morphometric feature and the diagnostic class, the “melanoma label” parameter was used. In this analysis, uveal melanoma was encoded as 1 and nevus as 0; thus, the correlation of each feature with the melanoma label indicates the strength of its association specifically with melanoma. A positive correlation coefficient indicates that an increase in the feature is associated with a stronger association with melanoma, whereas a negative value indicates a stronger association with a nevus.
3.2. Analysis of the Training Dataset
Twenty-one clinical cases contributed 105 H&E-stained patches, with five patches analysed per case. Nuclear segmentation identified 9482 unique nuclei. The mean number of segmented nuclei per patch was 90.3 ± 16.6 (median: 95; range:55–113). Spatial calibration measured from the embedded scale bars was approximately 0.2538 µm/pixel.
Figure 3 shows case-level morphometric measurements in the available diagnostic subset. The spindle nuclear count per patch showed the largest between-group difference (Hedges’ g = 2.74, 95% CI 2.20 to 6.58, Holm-adjusted p = 0.048) and was the only feature to meet the adjusted significance threshold of 0.05. The spindle proportion showed a smaller difference (Hedges’ g = 0.50, 95% CI −0.59 to 2.62, Holm-adjusted p = 0.651). The selected features are representative because they demonstrate better class separation compared to the full set of parameters (Table 1) and reflect various aspects of nuclear morphology and tissue architecture.
Figure 3.
Illustration of case-level morphometric patterns. Horizontal bars show group means.
Overall, these results indicate that various morphometric features reflect the diagnostic variability of the neoplasms. Quantitative nuclear metrics characterize cellularity and lesion density; dimensional metrics reflect nuclear enlargement and cytologic atypia; and spindle-shaped and epithelioid characteristics describe the morphological composition of the tumor cells. No single feature ensures complete differentiation between a nevus and melanoma: some indicators possess strong discriminative power yet still exhibit partial overlap, while others show weaker separation but reflect additional aspects of the tumor phenotype. Consequently, combining multiple morphometric descriptors can enhance diagnostic discrimination by integrating independent and partially complementary signals. This supports a multiparametric morphometric approach, in which classification is based on the aggregate profile of cellularity, nuclear size, and morphological composition, rather than on any single indicator.
Representative overlay visualizations demonstrate the expected morphological patterns at the patch level. In the spindle-cell image, the majority of detected nuclei are classified as the spindle morphotype (teal markers), reflecting a predominance of elongated nuclei oriented along stromal or tumor tissue bundles. Epithelioid nuclei (red markers) appear only sporadically in this field of view (Figure 4).
Figure 4.
Representative spatial overlay of segmented nuclear morphotypes on H&E-stained uveal melanoma patches: (a) Histologic patch exhibiting a predominant spindle cell pattern with characteristically elongated cyan centroids aligned with stromal/tumor architecture; (b) Mixed histologic patch displaying sporadic red markers indicating individual epithelioid nuclei intermixed within the tissue.
Such qualitative examples complement the quantitative distributions of morphometric features and provide visual verification that morphotyping generates interpretable spatial patterns on H&E patches (Table 2; Figure 5).
Table 2.
Morphometric attributes of segmented cell nuclei categorized by diagnostic cell morphotypes.
Figure 5.
Distributions of morphometric features across algorithm-assigned nuclear morphotypes (n = 9482 unique nuclei from 105 H&E patches obtained from 21 clinical cases): (a) aspect ratio distributions, with means of 3.07, 1.71, and 1.25 for spindle, intermediate, and epithelioid morphotypes, respectively; (b) nuclear area distributions, with corresponding means of 121.25, 108.85, and 116.23 µm2. Nuclear areas were calibrated using the embedded 50 µm scale bars (approximately 0.254 µm/pixel).
It is worth emphasizing that the developed algorithm specifically classifies only those nuclei whose morphological features clearly correspond to the described patterns—spindle or epithelioid. Nuclei exhibiting intermediate, ambiguous, or potentially artifact-related morphology are not forced into one of the two primary classes; instead, they are categorized as intermediate/undetermined and accounted for separately. This strategy mitigates the risk of systematic statistical distortion—in which the algorithm might erroneously assign cells unrelated to the target pattern (such as normal or reactive elements or technical segmentation artifacts) to tumor morphotypes. In the context of morphological analysis, this is critical, as even a small number of false positives can disproportionately affect the calculated proportions of morphotypes and, consequently, the interpretation of the histological presentation.
The pipeline measures multiple nuclear morphometric features, listed in Table 1. After area-based filtering, aspect ratio (AR) is the primary shape descriptor used to assign nuclear morphotypes. It illustrates how the algorithm uses explicit thresholds to distinguish epithelioid and spindle nuclei while retaining an intermediate category. To assess the sensitivity of these assignments, we tested 25 combinations of relative changes (−10%, −5%, 0%, +5%, and +10%) around the baseline AR thresholds of approximately 1.40028 for epithelioid nuclei and 2.0 for spindle nuclei. Segmentation was held fixed across 13,019 nuclei from 160 patches grouped under nine source case identifiers (five melanoma and four nevus). Perturbations of up to 5% and 10% reassigned up to 8.9% and 17.9% of nuclei, respectively. The intermediate category showed the largest change in mean case-level proportion (−17.8 to +15.7 percentage points). Across all 25 combinations, the mean epithelioid proportion was 0.5 to 2.4 percentage points lower in melanoma than in nevus in this subset (Figure 6).
Figure 6.
Sensitivity of nuclear morphotype proportions to aspect-ratio thresholds. Each cell shows the change in the mean case-level proportion, in percentage points, relative to the outlined baseline. Patch-level proportions were averaged within each case, and cases were weighted equally.
Figure 7 presents case-level diagnostic performance under nested leave-one-case-out cross-validation. The ROC curve was computed from one out-of-fold score per clinical case across all 21 cases (10 uveal melanomas and 11 conjunctival nevi).
Figure 7.
Case-level diagnostic performance using constructed scores. (a) Confusion matrix. (b) Receiver operating characteristic curve, with the orange marker indicating the operating point used in the matrix. (c) Summary of accuracy, sensitivity, specificity, F1 score, and ROC AUC.
It should also be noted that the system is designed to process a collection of patches sampled from a single tissue specimen rather than isolated images. Aggregating results at the set level, for instance, by summarizing the proportions of spindle and epithelioid cells across multiple fields of view, enhances the stability of the assessment, minimizes the impact of local tissue heterogeneity, and ensures that the conclusions are more representative. Therefore, an individual patch is treated as a local observation, whereas summary metrics are derived from a set of patches, thereby better reflecting the sample’s actual histological profile.
To explore within-case morphometric stability, we performed an exploratory sensitivity analysis using an additional uveal melanoma case, M07, which was separate from the dataset of 21 reference H&E patches. For M07, 22 images acquired at ×400 magnification were available (Figure 8). Morphometric estimates from smaller patch subsets were compared with reference values calculated from all 22 images.
Figure 8.
Representative whole-patch H&E-stained histological view of uveal melanoma (case M07) used for the patch-count stability and sensitivity analysis. The tissue displays prominent cellularity and a mixed spindle-epithelioid architecture (scale bar as indicated).
Morphometric features obtained at the level of individual patches were aggregated at the clinical case level and compared with reference values calculated using all 22 patches. A subset was considered stable if the estimate of a given feature remained within 10% of the full-sample value, with an additional absolute tolerance of 0.03 for relative metrics near zero. The required number of patches was defined as the minimum number of images at which at least 95% of feature estimates met this stability criterion.
The algorithm identified 2830 nuclei across the 22 images: 1304 spindle-shaped, 479 epithelioid, and 1047 intermediates. Mean values for the full sample were: a proportion of epithelioid nuclei of 0.168, a proportion of spindle-shaped nuclei of 0.461, and an average of 128.64 nuclei per patch.
For each subset size k, we evaluated all possible combinations when their number was 5000 or fewer. Otherwise, we randomly sampled 5000 distinct subsets without replacement using a fixed random seed of 42. Each subset contained k distinct fields. Patch-level feature values were averaged within each subset and compared with the corresponding mean across all 22 fields. An estimate was within the exploratory tolerance when its absolute deviation was no greater than the larger of 0.03 and 10% of the absolute reference value. Each subset contributed to the 22-field reference, so the deviation was zero by construction at k = 22.
At k = 5, nine of the ten evaluated descriptors had a 95th-percentile absolute deviation within their respective tolerances (Figure 9). For the primary epithelioid ratio, the 95th-percentile absolute deviation was 4.60 percentage points against a tolerance of 3.00 percentage points, yielding a normalized deviation of 1.53.
Figure 9.
Feature-level deviations from the 22-field reference in case M07. Each curve shows the 95th percentile of the absolute deviation across subsets, divided by the feature-specific tolerance. The horizontal dashed line marks the exploratory tolerance at 1.0.
Sensitivity analysis (Figure 10) showed that a single patch was insufficient: only 74.5% of the feature estimates met the stability criterion. Using two patches increased stability to 85.7%, three patches to 91.1%, and four patches to 94.6%—figures that still fell short of the predefined 95% threshold. Five patches yielded 96.7% stability, with a P95-normalized error of 0.885, indicating that the estimates fell within the permissible deviation range. Thus, for the M07 uveal melanoma test sample, five photographed or scanned patches were sufficient to obtain a stable morphometric result representative of the entire set of 22 images.
Figure 10.
Patch-count stability curve demonstrating that sampling 5 representative high-power fields (×400) achieves >95% stability in morphometric feature estimation for case M07.
In M07, five-patch subsets met the predefined stability criteria for 96.7% of evaluated feature estimates. This case-specific finding requires evaluation across additional melanoma and nevus cases before a general minimum patch count can be recommended.
4. Discussion
Our pilot study is based on the distinct cytopathological characteristics of the nevus cells under investigation. For instance, uveal nevi, like conjunctival nevi, consist primarily of typical spindle-shaped cells (Callender type A) arranged within the stroma without marked atypical polymorphism, exhibiting low nuclear density (n_nuclei) and a compact area [17]. In contrast, uveal melanoma is associated with a marked increase in nuclear polymorphism and hyperchromasia, enlarged nuclear areas (mean_area and median_area), and a disruption of normal tissue architecture and cellular cytomorphology [24]. The proposed correlation coefficients (r = 0.74 for n_nuclei and r = 0.69 for mean_area) corroborate these classic pathological criteria.
The prognostic significance of findings distinguishing spindle and epithelioid cell phenotypes stems directly from the pathophysiological characteristics of melanocytic tumor cells. Our study results indicate that spindle-shaped cells have a high Aspect Ratio (mean = 3.07). Tissues exhibiting this morphotype show lower mitotic activity, extremely rarely demonstrate monosomy 3, and are associated with a low risk of metastasis [25]. At the same time, we show that cells with an epithelioid phenotype are rounded (Aspect Ratio = 1.25). According to several authors, these cells are pathogenetically linked to BAP1 loss, dysplasia, and aneuploidy [26,27]. Thus, the detection of even isolated red marks (epithelioid nuclei) on the patch may be of potential prognostic interest.
The negative correlation between algorithm-assigned epithelioid fraction and melanoma diagnosis may reflect the classifier’s reliance on nuclear geometry and the use of conjunctival nevi as controls. Rounded benign nevus nuclei may satisfy the algorithmic criteria for epithelioid morphology. Consequently, this category should not be equated directly with histologically confirmed epithelioid melanoma cells. This association requires cautious interpretation and evaluation against expert-annotated nuclear morphotypes.
Our digital morphometric system successfully differentiates nuclear morphotypes of uveal melanomas and nevi using objective parameters (specifically, an Aspect Ratio of 3.07 for spindle-shaped cells versus 1.25 for epithelioid cells).
A significant practical outcome of our work is the determination of the data volume required to assess a specimen (Figure 9 and Figure 10). Modern WSI scanners generate files several gigabytes in size, necessitating substantial computational power. An exploratory sensitivity analysis on a representative mixed-morphology case (M07) indicated that sampling five ×400 fields of view achieved 96.7% overall feature stability (with 9 of 10 descriptors falling within the permissible error threshold, whereas the sparser epithelioid ratio required k ≥ 9 patches to stabilize). While this provides a practical preliminary benchmark for reducing whole-slide computational overhead, broader multi-case validation is required before establishing a universal sampling guideline. This enables the algorithm’s integration into routine practice without exhaustive scanning of the entire slide.
Unlike Stålhammar et al., who employed complex proteomic analysis and four melanocyte classes [21], our approach is more feasible for routine practice, as it relies solely on standard H&E staining and geometric descriptors. Furthermore, the mathematical interpretability of each nucleus [28,29] eliminates the “black box” effect often associated with deep convolutional neural networks (CNNs).
Most automated systems force the classification of every pixel, thereby generating noise [30]. Our method filters this data to ensure high specificity for the Epithelioid Ratio.
Unlike deep neural networks, which require thousands of WSIs [16,31], our method operates at the patch and computational descriptor levels, making it ideally suited for rare tumors. In particular, the reliability of this approach was explored through a sensitivity analysis of the diagnostic algorithm using a limited dataset. Thus, just five images from a representative sample were suggested as a preliminary benchmark to achieve a stable morphometric assessment. This finding suggests that digital morphometry may not require an exhaustive scan of all available microscopic fields, provided that representative areas are selected.
This result is significant for practical implementation, as it reduces the pathologist’s workload while maintaining the quantitative stability of the assessment at the sample level.
Study limitations. The cohort comprised only 21 independent clinical cases. Although five patches per case increased tissue sampling, the additional patches did not increase the number of independent cases and further external evaluation using scanners from other manufacturers is required. Additionally, the sensitivity analysis of the intelligent diagnostic system was conducted on a limited number of clinical cases. Therefore, the proposed recommendations should be verified using a larger sample that encompasses a range of lesion sizes, pigmentation intensities, tissue qualities, and levels of cellular heterogeneity. Another limitation is the use of a single-center sample for stability evaluation. Future studies will aim to expand the analysis to include a series of WSIs from various oncology centers and to correlate the Epithelioid Ratio with long-term patient survival and genetic testing data (monosomy 3). Another limitation is the use of conjunctival nevi rather than intraocular (choroidal) nevi as benign controls. While conjunctival nevi serve as a valid non-malignant melanocytic baseline, future studies should aim to include rare archival choroidal nevus specimens to control for tissue-specific stromal characteristics. Finally, nuclear segmentation relied on global Otsu thresholding and area filtering (64.4–322.1 μm2) without watershed splitting of touching nuclei or pixel-level Dice/IoU benchmarking against manual ground-truth masks, and algorithmic morphotype labels were not yet cross-validated against multi-pathologist consensus (kappa statistics) or heavily pigmented tumors. Addressing these technical refinements will be the focus of future multi-center studies.
5. Conclusions
We developed and evaluated an interpretable digital morphometry framework based on HED color deconvolution and Otsu segmentation for the differential diagnosis of ocular melanocytic lesions. The proposed pipeline enables automated nuclear segmentation and the extraction of geometric features directly from standard H&E-stained slides, without relying on “black-box” architectures.
Among the extracted case-level descriptors, total nuclear count and nuclear area showed the strongest association with uveal melanoma, while aspect-ratio rules separated segmented nuclei into spindle (mean 3.07) and epithelioid (mean 1.25) phenotypes. Incorporating an “intermediate buffer” category (mean aspect ratio 1.71) prevented the forced classification of ambiguous or non-neoplastic elements. Exploratory analysis of case M07 suggested that five ×400 patches offer a promising preliminary sampling benchmark (96.7% overall descriptor stability). Overall, this pilot framework provides a transparent, reproducible tool for quantitative cytomorphometric assessment in ophthalmic pathology.
Author Contributions
Conceptualization, R.M., S.E.C. and T.S.; methodology, T.S.; software, T.S.; validation, T.S., R.M. and A.D.; formal analysis, T.S., A.K., O.C. and A.D.; investigation, T.S., R.M. and A.D.; resources, R.M., O.C. and A.K.; data curation, O.C., A.K. and T.S.; writing—original draft preparation, T.S., A.D. and R.M.; writing—review and editing, S.E.C. and R.M.; visualization, T.S.; supervision, S.E.C. and R.M.; project administration, R.M.; funding acquisition, R.M. All authors have read and agreed to the published version of the manuscript.
Funding
This research was performed with the financial support of grant No. 0126U000780 from the Ministry of Education and Science of Ukraine (“Automated workplace of a pathologist based on artificial intelligence solutions”).
Institutional Review Board Statement
The study was conducted in accordance with the Declaration of Helsinki, and approved by the Ethics Committee of Sumy State University (Proceedings No. 2/09, 22 September 2026).
Informed Consent Statement
Patient consent was waived due to the retrospective nature of this study utilizing archived, anonymized histopathological specimens. The research protocol was approved by the Ethics Committee of Sumy State University (Proceedings No. 2/09, 22 September 2026), which granted a waiver of direct informed consent provided that complete data anonymization was ensured. All personal identifiers (including names, exact birth dates, and medical record numbers) were removed prior to digitization and assigned unique project ID codes. The study strictly adhered to the principles of the Declaration of Helsinki and relevant data protection legislation (Law of Ukraine “On Protection of Personal Data”). No personal patient data were shared with third parties, and computational models were trained exclusively on fully de-identified digital patches, precluding any possibility of patient re-identification.
Data Availability Statement
The image dataset analyzed during the current study is available at Zenodo: https://doi.org/10.5281/zenodo.24426644.
Acknowledgments
The authors express their sincere gratitude and appreciation to Max Jackson (Department of Eye and Vision Science, University of Liverpool) for his valuable technical discussions, expert insight on digital cytomorphometry, and critical pre-submission review of the manuscript draft.
Conflicts of Interest
The authors declare no conflicts of interest.
Abbreviations
The following abbreviations are used in this manuscript:
| UM | Uveal melanoma |
| AI | Artificial intelligence |
| H&E | Hematoxylin and eosin |
| FFPE | Formalin-fixed paraffin-embedded |
| HPF | High-Power Field |
| WSI | Whole slide image |
| CNNs | Convolutional neural networks |
References
- Păsărică, M.A.; Curcă, P.F.; Dragosloveanu, C.D.M.; Nisipașu, C.I.; Curcă, G.C. Redox Homeostasis, Metabolic Pathways and Plasticity in Uveal Melanoma Compared to Other Cancers. Cancers 2026, 18, 2402. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Nowowiejska, J.; Ordon, A.J.; Purpurowicz, P.; Argenziano, G.; Piccolo, V. Many Faces of Melanoma: A Comparison Between Cutaneous, Mucosal, Acral, Nail, and Ocular Malignancy. Pigment Cell Melanoma Res. 2025, 38, e70051. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Suri, H.; Lentz, P.C.; Leske, D.A.; Mousavi, M.; D’Souza, H.S.; Qureshi, M.B.; Iezzi, R.; Varatharajah, Y.; Dalvin, L.A. Development of a deep learning model to classify choroidal melanoma risk factors based on color fundus photographs. AJO Int. 2025, 2, 100167. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Wu, S.N.; Qin, D.Y.; Zhu, L.; Guo, S.J.; Li, X.; Huang, C.H.; Hu, J.; Liu, Z. Uveal melanoma distant metastasis prediction system: A retrospective observational study based on machine learning. Cancer Sci. 2024, 115, 3107–3126. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Ibrahim, O.; Khalid, M.; Talha, M.; Waafira, A. Smart dosing: Revolutionizing uveal melanoma treatment with AI. Ann. Med. Surg. 2025, 87, 6238–6239. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Wang, X.; Wang, P. Clinical decision-making for uveal melanoma radiotherapy: Comparative performance of experienced radiation oncologists and leading generative AI models. Front. Oncol. 2025, 15, 1605916. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Koseoglu, N.D.; Corrêa, Z.M.; Liu, T.Y.A. Artificial intelligence for ocular oncology. Curr. Opin. Ophthalmol. 2023, 34, 437–440. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Tasso, V.; Ganesh, S.; Iddir, S.; Alahmadi, R.; Heiferman, M.J.; Yi, D. Uveal Pigmented Lesion Classification, Detection, and Segmentation: A Comparative Analysis of Machine Learning Tasks. Transl. Vis. Sci. Technol. 2025, 14, 35, Erratum in Transl. Vis. Sci. Technol. 2025, 14, 28. https://doi.org/10.1167/tvst.14.11.28. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Kanavos, T.; Birbas, E.; Francis, J.H.; Barile, G.R.; Zanos, T.P. Artificial Intelligence–Driven Differentiation Between Uveal Melanoma and Nevus Based on Fundus Photographs: A Systematic Review and Meta-Analysis. Transl. Vis. Sci. Technol. 2026, 15, 34. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Heiferman, M.; Ganesh, S.; Tasso, V.; AlAhmadi, R.; Yi, D. Deep Learning Optimisation Strategies for Uveal Melanoma Detection Using Ultra-Widefield Photography. Prepr. Res. Sq. 2026. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Fleury, E.; Pignol, J.P.; Kiliç, E.; van Rij, C.; Naus, N.; Yavuzyigitoglu, S.; Toom, W.D.; Zolnay, A.; Spruijt, K.; van Vulpen, M.; et al. Stereotactic Radiation Therapy or Protons for Uveal Melanoma Patients? An Artificial Intelligence (AI)-Based Clinical Treatment Decision-Making Tool Predicting Doses To Radiation Therapy Constraints. Int. J. Radiat. Oncol. Biol. Phys. 2025, 123, 1159–1164. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Tahmasebzadeh, A.; Yazdani, E.; Naseripour, M.; Mirshahi, R.; Ghaderi, R.; Sadeghi, M. Automatic classification of uveal melanoma response patterns following ruthenium-106 plaque brachytherapy using ultrasound images and deep convolutional neural network. Sci. Rep. 2025, 15, 44835. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Khorshid Sokhangouy, S.; Amin, M.; Haratizadeh, M.J.; Fathi, S.; Nazari, E. Integrated bioinformatics and deep learning (MLP) approach reveals a novel five miRNA prognostic signature in uveal melanoma. Sci. Rep. 2025, 15, 44476. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Rakhshandeh, H.; Nasiraei, A.; Riazi-Esfahani, H.; Masoomian, B.; Ghassemi, F.; Arjmand, M.; Keshel, S.H.; Atyabi, F.; Dinarvand, R. Non-invasive detection of choroidal melanoma via tear-derived protein corona on gold nanoparticles: A machine learning approach. Sci. Rep. 2025, 15, 32829. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Jackson, M.; Kalirai, H.; Hussain, R.; Heimann, H.; Zheng, Y.; Coupland, S.E. Deep Learning Classification of Uveal Melanoma and Metastatic Carcinoma on Cytology Specimens: A Single-Center Experience. Invest Ophthalmol. Vis. Sci. 2026, 67, 47. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Vempuluru, V.S.; Kaliki, S. A Scoping Review of Artificial Intelligence in Ocular Oncology. Cancers 2026, 18, 1698. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- McLean, I.W.; Foster, W.D.; Zimmerman, L.E.; Gamel, J.W. Modifications of Callender’s Classification of Uveal Melanoma at the Armed Forces Institute of Pathology. Am. J. Ophthalmol. 2018, 195, lvi–lx. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Luan, Y.; Tang, J.; Zhu, T.; Gu, X.; Chen, Y.; Wu, P.; Ding, X.; Yang, L.; Ye, L.; Zhang, W.; et al. Comparative Proteomic Profiling of Microdissected Spindle and Epithelioid Uveal Melanoma Subtypes. Investig. Ophthalmol. Vis. Sci. 2026, 67, 32. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Chen, Y.; Yan, Y.; Wei, W. Research advances of matrix metalloproteinases family in uveal melanoma. Eur. J. Med. Res. 2025, 30, 609. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Steinberg-Vorhoff, H.L.; Ting, S.C.; Zensen, S.; Ludwig, J.M.; Li, Y.; Richly, H.; Grüneisen, J.; Siveke, J.T.; Theysohn, J.M.; Schaarschmidt, B.M. Are histomorphological patterns a predictor for survival in uveal melanoma patients with hepatic metastases undergoing hepatic artery infusion chemotherapy? J. Med. Imaging Radiat. Oncol. 2024, 68, 862–869. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Stålhammar, G.; Gill, V.T. Digital morphometry and cluster analysis identifies four types of melanocyte during uveal melanoma progression. Commun. Med. 2023, 3, 60. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Huang, C.Y.; Wu, R.C.; Chao, A.; Lin, C.-H.; Lin, C.-Y.; Lee, Y.-S.; Tsai, Y.-J.; Chen, K.-J.; Chao, A.-N. Feasibility of Low-Pass Whole Genome Sequencing for Detecting Somatic Copy Number Alterations in Formalin-Fixed Uveal Melanoma Specimens. Transl. Vis. Sci. Technol. 2025, 14, 31. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Alsallal, M.; Habeeb, M.S.; Shareef, A.; Jyothi, S.R.; Nayak, P.P.; Chauhan, A.S.; Singla, S.; Sameer, H.N.; Yaseen, A.; Athab, Z.H.; et al. Innovative pathomics approach: Integrating radiomic and CNN features for breast cancer classification using histopathological images. Diagn. Pathol. 2026, 21, 97. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Kulbay, M.; Marcotte, E.; Remtulla, R.; Lau, T.H.A.; Paez-Escamilla, M.; Wu, K.Y.; Burnier, M.N. Uveal Melanoma: Comprehensive Review of Its Pathophysiology, Diagnosis, Treatment, and Future Perspectives. Biomedicines 2024, 12, 1758. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Mrázová, K.; Hecová, L.; Rusňák, Š.; Ferda, J.; Ferdová, E.; Vaneček, T. Assessment of the Relationship between Metabolic Activity of Uveal Melanoma in Positron Emission Tomography (PET) and Chromosome 3 Monosomy. Cesk Slov. Oftalmol. 2026, 82, 1–6. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Bhanvadia, V.; Mehta, S.; Joshi, U.; Baisil, S.; Sanjay Kini, B. Clinicopathological characteristics, diagnostic challenges, and systemic implications of metastatic tumors to the eyelid: A systematic review. Graefes Arch. Clin. Exp. Ophthalmol. 2026. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Nam, C.H.; Kim, Y.J.; Youk, J.; Park, H.S.; Ju, Y.S.; Lee, C.S. Metastasis-related genomic aberrations and evolutionary trajectory in uveal melanoma. Exp. Mol. Med. 2026, 58, 2024–2032. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Dovbysh, A.; Shelehov, I.; Romaniuk, A.; Moskalenko, R.; Savchenko, T. Decision-making support system for diagnosis of oncopathologies by histological images. J. Pathol. Inform. 2023, 14, 100193. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Savchenko, T.; Lakhtaryna, R.; Denysenko, A.; Dovbysh, A.; Coupland, S.E.; Moskalenko, R. An Information-Extreme Algorithm for Universal Nuclear Feature-Driven Automated Classification of Breast Cancer Cells. Diagnostics 2025, 15, 1389. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Sethi, A.; Sha, L.; Vahadane, A.R.; Deaton, R.J.; Kumar, N.; MacIas, V.; Gann, P.H. Empirical comparison of color normalization methods for epithelial-stromal classification in H and e images. J. Pathol. Inform. 2016, 7, 17. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Meirelles, A.L.S.; Kurc, T.; Kong, J.; Ferreira, R.; Saltz, J.H.; Teodoro, G. Building Efficient CNN Architectures for Histopathology Images Analysis: A Case-Study in Tumor-Infiltrating Lymphocytes Classification. Front. Med. 2022, 9, 894430. [Google Scholar] [CrossRef] [Scilit] [PubMed]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.









