DOI 10.1038/s41746-026-02628-z
Patch-to-slide fusion deep learning model for histological diagnosis of early pregnancy loss including hydatidiform mole.
Аннотация
Distinguishing histological subtypes of early pregnancy loss is crucial for clinical practice. Current gold standards combining pathological and molecular profiling are costly, limiting implementation. We developed a patch-to-slide fusion artificial intelligence (AI) model with adaptive masking to predict histological diagnosis. A total of 1380 haematoxylin and eosin stained, 1057 p57 and 646 Ki-67 immunohistochemistry stained whole-slide images from 1287 patients were used for multicenter development and validation. Cases were classified as complete hydatidiform moles, partial hydatidiform moles, hydropic abortion, and normal control. The model achieved slide-level accuracy of 0.843 and AUROC of 0.959 in the development test, and accuracy of 0.801 with AUROC of 0.930 in independent testing. AI-assisted diagnosis significantly improved pathologist performance (p < 0.05). The multi-stain model integrating haematoxylin and eosin and p57 outperformed single-stain models. This tool may improve diagnostic precision, assist triage for genetic testing, and reduce costs.
Другие публикации по теме
Перевод полного текста: Перевод в очереди
Полный текст источника
https://creativecommons.org/licenses/by-nc-nd/4.0/ Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/ .
Текст сохранён. Часть иллюстраций пока доступна только в первоисточнике; загрузка будет проверена повторно.
Introduction
Early pregnancy loss is defined as spontaneous abortion occurring during the first trimester and affects 50–70% of all conceptions in humans 1 . Histological examination of products of conception (POC) obtained from early miscarriages is a routine and essential practice. It serves to confirm and document the adverse pregnancy outcome, while also excluding conditions such as ectopic pregnancy or gestational trophoblastic disease 2 , 3 . The most common histological subtypes of early pregnancy loss include hydropic abortion (HA), complete hydatidiform mole (CHM), and partial hydatidiform mole (PHM) 4 , 5 . These conditions present hydropic villi in 6 , making them difficult to differentiate and leading to high pathological misdiagnosis rates (up to 30% for CHMs and 71% for PHMs) 7 . For surgical pathologists, distinguishing these factors is important for determining the appropriate treatment for patients. Hydatidiform moles (HMs) are relatively rare (approximately 1/1000 pregnancies) but are associated with a relatively high risk of gestational trophoblastic neoplasia 8 . Persistent gestational trophoblastic disease occurs in approximately <0.0002% of HA cases, 5% of PHM cases, and 15–20% of CHM cases, and requires single- or multiagent chemotherapy 9 , 10 . Misdiagnosis of HMs can result delayed treatment or costly monitoring and inadequate contraception.
Although the unique genetic profiles of CHM (androgenetic diploids), PHM (diandric triploids) and nonmolar (balanced biparental diploids) gestation allow for some ancillary techniques, including p57 immunohistochemistry (IHC) analysis and DNA genotyping, to refine the diagnosis, these methods still have limitations. Specifically, p57 IHC cannot distinguish PHMs from nonmolar gestations, and DNA genotyping, though the current gold standard, is resource-intensive and costly, requiring specialized facilities and expertise. These limitations make routine implementation challenging and increase the financial burden on patients 9 . In nearly all cases, HMs are primarily diagnosed on the basis of pathological examination. However, accurate diagnosis of products of conception samples is still a laborious task with substantial interobserver variability (~10–50%) and low accuracy (~30–50%) 4 , 7 , because (1) the parameters assessed to distinguish the subtypes have sufficiently wide spectra, resulting in some morphologic overlap, especially between PHMs and HAs 10 ; (2) the villi are not fully developed in the first trimester, and the pathological features are not obvious; and (3) pathologists do not consistently apply histologic criteria, resulting in subjectivity 4 .
Artificial intelligence (AI)-based algorithms could greatly assist pathologists by reducing their workload and increasing their reproducibility and accuracy 11 . AI algorithms that combine digital pathology have been developed for various disease diagnoses, including breast cancer 12 , 13 , cervical cancer 14 , 15 , gastric cancer 16 , and colorectal cancer 17 , among others 18 , 19 . The application of deep learning approaches with convolutional neural networks (CNNs) has become the most commonly used method for analysing biomedical images recently 20 , and several CNN methods that process an input image as a set of smaller patches have been proposed to overcome the hardware limitations caused by the large size of digital histological images 16 , 17 , 21 – 25 .
To date, only two studies have explored the use of AI for diagnosing hydatidiform moles (HMs) in histological samples, both constrained by small-scale, single-centre datasets, lack of precise diagnostic criteria for case inclusion, and absence of independent validation. Pal et al. manually extracted superficial villous features to classify normal, CHM, and PHM subtypes 26 , while Zhu et al. developed a real-time recognition module focused solely on villous hydrops 27 . However, these methods fail to account for the global attributes of the image, as spatial information is lost once patches are labelled 21 , and they rely heavily on simplified or superficial features rather than refined diagnostic markers. As a result, their approaches remain incapable of providing diagnostic classifications at the whole-slide level. To the best of our knowledge, no study has yet applied deep learning algorithms to large-scale WSI-level histological images of products of conception, addressing these gaps comprehensively. Auxiliary automatic diagnosis of the pathological subtype in whole placenta images is extremely challenging because, in addition to villi, there are nonvillous in the whole placenta, such as decidua, blood clots and images, which inevitably contain noise. In addition, unlike common cancer classification, heterogeneity in the early pregnancy loss pathological images of different subtypes is lacking. For example, typical hydropic villi may appear in both HA and PHM, making current computer-aided design algorithms difficult to work with, as their top-K patch features may not necessarily match the overall diagnostic WSI labels.
Hence, we establish a two-stage CNN pipeline to extract a spatially smaller feature map from patches and then stack the local features and global information from the whole image to classify the early pregnancy loss pathological images (Fig. 1 ). We collected and trained 1380 haematoxylin and eosin (H&E) stained, 1057 p57 immunohistochemically stained, and 646 Ki-67 immunohistochemically stained products of conception histology images from multiple institutes. We aimed to develop an AI-based assistive tool that bridges modern digital technologies with human expertise, enabling faster and more accurate diagnoses, reducing misdiagnosis rates, and optimizing treatment strategies to prevent both undertreatment and overtreatment. Fig. 1 Schematic of the model architecture. a WSIs were pre-processed via segmentation into one-third overlapping patches of 3072 × 3072 pixels and colour normalized. Gynaecological pathologists annotated a subset of these patches across 5 classes for the first stage of model training. b Tissue-containing patches were processed through a convolutional neural network (CNN) to classify them into 4 distinct tissue types and extract discriminative features. c The extracted features were then concatenated and fed into a second CNN, which integrates the information to predict slide-level labels, thereby assisting pathologists in diagnosis. CHM complete hydatidiform mole, CNN convolutional neural network, HA hydropic abortion, PHM partial hydatidiform mole, WSI whole-slide image.
Иллюстрация — в первоисточнике ↗
Results
Clinicopathological features of the cohorts
This study included 1287 patients, including 455 CHMs, 231 PHMs, 338 HAs and 263 NCs. Given the relatively low incidence of HM, the patients were enrolled from more than 20 institutions and consultation cases. Rigorous selection criteria and a comprehensive diagnostic algorithm incorporating histopathological evaluation, p57 immunohistochemical analysis, and STR genotyping were applied (Fig. 2 and Fig. S1 ). Among these patients, an independent validation set ( n = 146) was retrospectively collected after model freezing (post Jan 1, 2024), with the remaining pre-freezing cases allocated to training (70%), validation (10%), and test (20%) sets for development. The baseline characteristics among the sets were generally balanced (Table 1 and Table S2 ). CHM cases exhibited higher maternal age (median: 32.30 years), aligning with established epidemiological risk profiles. PHM cases had the longest gestational age (median 77.77 days), likely reflecting delayed pregnancy termination due to their atypical clinical presentation. CHM patients showed the highest rates of previous adverse pregnancy and post-molar gestational trophoblastic neoplasia (23.68%) among the four groups, consistent with the previous reports 28 , 29 . The percentage of correct classifications from the original institute of all cases by morphology was 44.87% for CHM [including 175 (79.91%) cases diagnosed without p57 IHC analyses], 87.28% for PHM, and 69.25% for HA (Table S2 ). However, 51.82% (214/413) of cases initially diagnosed as PHM were subsequently reclassified into other groups after genotyping. Therefore, the diagnosis of HMs on the basis of morphology remains problematic, as previously reported 30 . A total of 15.63% (40/256) of the cases of persistent trophoblast disease following abortion were recorded, and 47 patients experienced recurrent abortion or HMs during follow-up. The clinical and histologic characteristics of the patients are shown in Tables 1 and S 1 . Fig. 2 Inclusion and exclusion workflow. Note: The number of whole-slide images (WSIs) shown refers to H&E-stained slides. Table 1 Demographics characteristics in the four subtypes Subjects characters a CHM ( N = 448) PHM ( N = 228) HA ( N = 335) NC ( N = 263) Original diagnosis ( n = 1011) a CHM 201 (44.87%) 2 (0.88%) 1 (0.30%) N/A PHM 117 (26.12%) 199 (87.28%) 97 (28.96%) N/A HA 5 (1.12%) 12 (5.26%) 232 (69.25%) N/A NC 6 (1.34%) 14 (6.14%) 3 (0.90%) N/A HM (untyped) 119 (26.56%) 1 (0.44%) 2 (0.60%) N/A Clinical information a Age (y) n = 1119 32.30 ± 8.91 28.57 ± 4.81 31.30 ± 5.66 29.46 ± 5.72 Gestational age (d) n = 968 64.08 ± 18.32 77.77 ± 18.09 60.43 ± 15.46 47.67 ± 8.56 β-hCG (10 3 mIU/mL) n = 523 131.97 ± 128.49 105.89 ± 94.79 68.21 ± 105.31 32.38 ± 40.55 Adverse pregnancy history n = 47 Previous molar pregnancy 12 (40.00%) 0 (0.00%) 1 (11.11%) 0 (0.00%) Previous spontaneous abortion 18 (60.00%) 13 (100.00%) 8 (88.89%) 1 (100.00%) Prognosis n = 250 GTN 36 (23.68%) 1 (1.33%) 0 (0.00%) N/A Healthy 116 (76.32%) 74 (98.67%) 30 (100.00%) N/A Ultrasound detection n = 546 HM 60 (38.96%) 34 (40.48%) 11 (13.75%) 0 (0.00%) SA 87 (56.49%) 42 (50.00%) 61 (76.25%) 0 (0.00%) NC 7 (4.55%) 8 (9.52%) 8 (10.00%) 228 (100.00%) Note: Results are presented as the mean ± standard deviation. GTN gestational trophoblastic neoplasia, HM hydatidiform mole, SA spontaneous abortion. a Not all patients provided complete clinical informtation.
Иллюстрация — в первоисточнике ↗
Table 1
Demographics characteristics in the four subtypes
Note: Results are presented as the mean ± standard deviation. GTN gestational trophoblastic neoplasia, HM hydatidiform mole, SA spontaneous abortion. a Not all patients provided complete clinical informtation.
| Subjects characters a | CHM ( N = 448) | PHM ( N = 228) | HA ( N = 335) | NC ( N = 263) |
| Original diagnosis ( n = 1011) a | ||||
| CHM | 201 (44.87%) | 2 (0.88%) | 1 (0.30%) | N/A |
| PHM | 117 (26.12%) | 199 (87.28%) | 97 (28.96%) | N/A |
| HA | 5 (1.12%) | 12 (5.26%) | 232 (69.25%) | N/A |
| NC | 6 (1.34%) | 14 (6.14%) | 3 (0.90%) | N/A |
| HM (untyped) | 119 (26.56%) | 1 (0.44%) | 2 (0.60%) | N/A |
| Clinical information a | ||||
| Age (y) n = 1119 | 32.30 ± 8.91 | 28.57 ± 4.81 | 31.30 ± 5.66 | 29.46 ± 5.72 |
| Gestational age (d) n = 968 | 64.08 ± 18.32 | 77.77 ± 18.09 | 60.43 ± 15.46 | 47.67 ± 8.56 |
| β-hCG (10 3 mIU/mL) n = 523 | 131.97 ± 128.49 | 105.89 ± 94.79 | 68.21 ± 105.31 | 32.38 ± 40.55 |
| Adverse pregnancy history n = 47 | ||||
| Previous molar pregnancy | 12 (40.00%) | 0 (0.00%) | 1 (11.11%) | 0 (0.00%) |
| Previous spontaneous abortion | 18 (60.00%) | 13 (100.00%) | 8 (88.89%) | 1 (100.00%) |
| Prognosis n = 250 | ||||
| GTN | 36 (23.68%) | 1 (1.33%) | 0 (0.00%) | N/A |
| Healthy | 116 (76.32%) | 74 (98.67%) | 30 (100.00%) | N/A |
| Ultrasound detection n = 546 | ||||
| HM | 60 (38.96%) | 34 (40.48%) | 11 (13.75%) | 0 (0.00%) |
| SA | 87 (56.49%) | 42 (50.00%) | 61 (76.25%) | 0 (0.00%) |
| NC | 7 (4.55%) | 8 (9.52%) | 8 (10.00%) | 228 (100.00%) |
First stage p-CNN reveals distinctive patch-level features
The original WSIs were segmented into numerous distinct, nonoverlapping subpatches. These patches were divided into 5 classes according to the pathological tissue type: villous (CHM, PHM, HA and NC) patches and nonvillous patches. For each sample matching pathology and genotyping, a group of 3 gynaecological pathologists (X.F.Z., H.F.Z., and B.H.) were asked to retrospectively select the most typical patches for the p-CNN model feature learning in training, validation, and test (Fig. S4 and Table S3 ). Neither the development test set nor the independent validation cohort included any artificially annotated patches or cases. The patches for which there was a disagreement between pathologists were discarded. The first-stage model exhibited commendable classification efficacy at the patch level (Fig. 3a, b and Table S4 ). Upon evaluation of a validation dataset comprising 7732 patches, the model achieved an overall accuracy of 98.50%, coupled with an AUROC of 0.990 (CI: 0.989–0.991) across the five distinct classes on the basis of ROC analysis (Fig. 3c ). Ensuring that the classification process captures all quintessential characteristics without omission is of paramount importance in the first stage, so we focused on the recall rate and precision, which reached 0.986 and 0.984, respectively, with this model (Fig. 3d ). The cluster diagram illustrates feature embedding prior to global pooling by applying t-distributed stochastic neighbour embedding (t-SNE) to project the data into a two-dimensional space 23 . Each hue corresponds to the feature distribution of a distinct patch class. Figure 3b shows the distinct separation among the five patch classes, indicating the advantages of the p-CNN. The accurate and representative annotations of the patches, combined with the p-CNN’s exceptional feature extraction capability, ensured the reliability of the high-dimensional feature fusion maps used as input for the second-stage model. Fig. 3 Performance assessment of the first-stage model. a Confusion matrix for the patch-level convolutional neural network (CNN), illustrating the classification accuracy. b t-Distributed stochastic neighbour embedding (t-SNE) analysis of patch features, where coloured dots correspond to different patch subtypes. c , d Receiver operating characteristic (ROC) and precision–recall (PR) curves for the model’s 5-class patch prediction, demonstrating its discriminatory power. e Saliency maps for correctly predicted image patches, highlighting regions instrumental in accurate classification. f Representative raw images alongside heatmaps derived from the model’s feature outputs, visualizing areas of interest identified by the algorithm.
Иллюстрация — в первоисточнике ↗
The CNN employs gradient-weighted class activation to generate a rough localization map, highlighting the salient areas within the image. In this map, warmer colours indicate the regions the network pays more attention to in its analysis of specific features, primarily focusing on areas such as the trophoblast cells lining and oedematous villous stroma, which are important for real-world diagnostic concerns (Fig. 3e ). Heatmaps that are strongly predictive of each subset are shown in Fig. 3f . A patch-level heatmap highlights all the pixels contributing to the prediction of the final labels for a specific image tile. To increase the model transparency and local feature explanations, we set up the function module of the confidence value output at the patch level (Fig. S6 ). The higher the confidence value is, the more typical pathological features the model considers, which helps pathologists locate and focus on critical areas quickly.
The model exhibits very high accuracy in detecting villous tissue and can distinguish the villous area from the nonvillous (decidua, blood, or gland, etc.) area in almost all WSIs. The accuracy was 0.998, with an AUROC of 0.9997 (CI: 0.9995–0.9998) (Fig. 2f ). This can help pathologists quickly identify key regions of villi and ensure the effectiveness of the nonvillous masking strategy.
Second stage s-CNN achieves accurate WSI-level classification
Next, the aim was to verify the classification ability of our deep learning model for each WSI. A cohort of 1234 H&E-stained WSIs was randomly divided into training, tuning, and test sets at a 7:1:2 ratio. After five iterations of simple random sampling, the best accuracy of the model for classifying WSIs were 0.928 for the CHMs, 0.892 for the PHMs, 0.896 for the HAs and 0.972 for the NCs in the test set (Fig. 4b ). The AUROCs were 0.998 for train set, 0.972 for validation set, and 0.959 for test set (Table S5 and Fig. 4a ). Fig. 4 Performance of the second-stage model. a Receiver operating characteristic (ROC) curves for slide-level classification across the training, validation, and test datasets. b Diagnostic accuracy comparison among the four patient groups within various datasets upon five runs. c ROC curve for the model’s prediction with an independent validation set ( N = 146). d Comparison of diagnostic performance between original institutional morphological diagnoses and model predictions in the independent validation cohort ( N = 146). Each data point represents a disease group (CHM, PHM, or HA), showing balanced accuracy (mean of sensitivity and specificity) and F1-score. Note: ** p < 0.01.
Иллюстрация — в первоисточнике ↗
For clinical application, it is necessary to assess the model performance using independent unseen multicentric cohorts. For this purpose, we enrolled a cohort of 146 WSIs from more than 5 institutions after model freezing (post Jan 1, 2024) for independent validation, and the model reached overall accuracy of 0.801 and AUROC of 0.930 (CI: 0.898–0.957, Fig. 4c ). One relevant finding was that proper differentiation of PHMs from HAs could be challenging. Although our model did not achieve perfect classification performance for these two groups, it demonstrated significant improvement over human performance (Table S6 ). Compared with the original histologic diagnosis, this model increased the overall accuracy from 0.500 to 0.801, and increased the average F1-score from 0.496 to 0.804 ( p < 0.01, Fig. 4d ). This finding shows that our model is highly robust and generalizable, especially with respect to colour normalization with different staining protocols.
Additionally, we evaluated our augmentation approach on several published medical image analysis models. The results showed our CNN model improved classification performance compared to standard CNN and MIL-RNN methods, while maintaining competitive accuracy with state-of-the-art approaches such as TransMIL and CLAMMB (Fig. S7 ). Our CNN-based framework demonstrated particular advantages in computational efficiency, architectural simplicity, and operational stability, as evidenced by its lower performance variance across repeated trials (ΔAccuracy=3.84%, ΔAUROC = 1.51%, ΔSD = 0.0181–0.0211, Fig. S7 and Table S9 ). This approach offers a robust baseline for current clinical applications, while a more comprehensive benchmarking against complex attention-based architectures is reserved for future investigation. These findings suggest that the proposed enhancement strategy can be effectively generalized across different model architectures.
Enhancing pathologists’ accuracy with AI assistance
A comparison of the classification provided by the AI model with that of 5 pathologists was performed for 60 H&E-stained slides (Fig. 5a ). The agreement between the model and the genotyping truth was 85.00% (kappa 0.800; p < 0.0001, Fig. 5b ), with a mean AUROC of 0.900, a mean sensitivity of 0.850, and a mean specificity of 0.950 across the four groups (Table S7a ). Fig. 5 AI-assisted diagnostics in the reader study dataset ( N = 60 patients). a Schematic diagram of the reader study. Five pathologists participated in this study, each undergoing two rounds of pathology review. b Agreement analysis between AI-predicted classifications and gold standard diagnoses established by genotyping and pathological assessments. c Comparative analysis of case evaluation times for the AI model and the five pathologists. d , e Accuracy analysis for the AI model and individual pathologists, both unaided and assisted by AI, in diagnosing EPL within the reader study cohort. f ROC curves for each group, illustrating the AI model’s performance with the reader study dataset. The average performance of each pathologist is depicted, with initial performance indicated at the base of each arrow and the arrowhead showing the change in performance postexposure to the AI model’s output. Note: *, **, ***, and **** denote statistical significance at the p < 0.05, <0.01, <0.001, and <0.0001 levels, respectively; ns indicates no significance. AI artificial intelligence, EPL early pregnancy loss, P1–P5 pathologists 1–5, WSI whole-slide images.
Иллюстрация — в первоисточнике ↗
As an auxiliary diagnostic tool, time efficiency is another critical parameter that needs to be evaluated. Therefore, we compared the mean time-to-analysis per case for pathologists in the first round with that of the AI model for the same task. Given the substantial image size, which especially prolonged the time required to show typical patches, the average preprocessing time for all images (mean file size of 792.3 MB at 40× magnification) was 88.2 s, and the inference time was 97.5 s with an RTX 3090 GPU. When the magnification was reduced to 5×, the average preprocessing time was 8.3 s, and the inference time was 27.7 s. Among the 60 images, the AI tool decreased the average analysis duration from 2.27 min to 1.69 min (40×) and 10.56 s (5×) per slide compared with the time required by pathologists ( p < 0.0001, Fig. 5c ).
In analyses of pathologists’ diagnoses with and without AI support, a mean AUROC of 0.742, and an accuracy of 0.613 were reported without the model. With AI support, the mean values increased to an AUROC of 0.789, and an accuracy of 0.697 ( p < 0.05, Fig. 5d–f , and Table S7b, c ). Consequently, the model’s assistance enhanced the predictive performance of all pathologists compared with that of their unassisted assessments. According to the AUROCs, the model demonstrated superior predictive accuracy compared with that of the pathologists, but a correlation between the pathologists’ reliance on model outcomes and their work experience was observed, with less experienced pathologists showing a greater inclination to accept the auxiliary diagnostic results of the model (Fig. 5d, e and Table S7d ).
Evaluation of model benefits and misclassifications
Additionally, we conducted an in-depth analysis of the deep learning model to increase pathologists’ trust in the AI system. Since p57 IHC can reliably distinguish CHM from other subtypes, the primary focus was on improving the diagnostic precision for PHM and HA. In the aforementioned reader study, 8 cases, comprising 4 PHMs, were concurrently reclassified correctly by multiple pathologists. Figure 6a shows a representative case. The model was good at identifying mild trophoblastic hyperplasia, irregular villus contours and pseudoinclusions in PHMs. The AI system effectively identified these nuanced areas, suggesting its potential to prompt pathologists to reevaluate the slides and consider supplementary testing in clinical practice. Fig. 6 Illustrative cases demonstrating the utility and limitations of AI-assisted diagnosis. a Example of a case where AI assistance was beneficial. Initially, this case was misclassified as hydropic abortion (HA) by pathologists. The model’s highlighted patches and associated confidence interval (CI) scores are depicted. The right panel displays positive p57 immunohistochemistry (IHC) staining and diandric triploidy findings from short tandem repeat (STR) genotyping, confirming the correct diagnosis. b A false-positive case is illustrated, where features typically associated with partial hydatidiform moles (PHMs), including mild trophoblast proliferation and irregular villi, were observed in a hydropic abortion (HA) case. The right panel shows positive p57 immunohistochemical staining and biparental diploidy findings from STR genotyping. Note: the upper panel of the STR reports represents maternal DNA, and the lower panel represents products of conception DNA.
Иллюстрация — в первоисточнике ↗
The model did not correctly identify 1 (1.67%) CHM slide, 2 (3.33%) PHM slides, 5 (8.83%) HA slides and 1 (1.67%) NC slide in the reader study. Within the two-stage test set, the false-negative rates were 10.83% for CHM, 9.62% for PHM, and 35.00% for HA. The corresponding false-positive rates were 3.88% for CHM, 11.17% for PHM, 2.65% for HA, and 3.02% for NC. Notably, the independent validation cohort exhibited potential selection bias: 42/60 (70%) HA cases were initially diagnosed as PHM by pathology but reclassified as HA after STR genotyping, suggesting inherent diagnostic challenges due to overlapping morphological features. This likely contributed to the model’s 35% false-negative rate for HA. Nevertheless, our approach demonstrated superior performance compared to original pathological diagnosis (false-negative rate: 71.67% vs. 35.00%), highlighting its clinical utility as an adjunct diagnostic tool.
The major problem is that overlap, particularly in immature HMs and HAs or PHMs and HAs, was observed in some cases. As depicted in Fig. 6b , features such as mild trophoblast proliferation, irregular villi, the presence of two distinct villous populations, or pseudoinclusions can also be encountered in HAs 31 . Despite STR analysis confirming their diploid and biparental origin, these cases require careful consideration. For these cases, the model can quickly prompt suspicious areas, encouraging human pathologists to consider IHC or genotyping to help them make the final correct diagnosis. Other misdiagnoses may arise from poor image quality issues such as over- or understaining, knife marks, blurred focus, and dispersed villi (see Fig. S8 ). These issues could be mitigated through enhanced data augmentation strategies or standardized slide processing.
IHC-based models incorporating multi-stain patterns
We also developed IHC staining models for two prevalent molecular biomarkers, p57 and Ki-67, to assess their diagnostic efficacy, employing the same deep learning framework as that utilized in the H&E-AI model. A total of 1057 p57 WSIs and 646 Ki-67 WSIs were used to train, validate and test the IHC models (Table S8 ). The overall accuracy of these models for classifying subtypes was 0.807 for p57 and 0.707 for Ki-67. The average AUROC was 0.934 (CI: 0.914–0.954) for p57 and 0.874 (CI: 0.837–0.909) for Ki-67. Hence, we concluded that our deep learning approach also demonstrates reliable performance IHC-stained images. It should be noted that Ki-67, as a commonly used ancillary diagnostic marker, remains controversial 32 , 33 . Despite the limited sample size, this AI-based model appeared to provide a more objective assessment of Ki-67 IHC, with higher specificity (0.951) for CHM and higher sensitivity (0.913) for PHM. Notably, the p57-AI model was superior to the H&E-AI model or Ki-67-AI model in classifying CHM cases, which is consistent with the diagnostic reality (Table S8 ).
We then trained a multi-stain model that integrates the features of paired H&E and p57 IHC staining types (Fig. 7a ) and obtained an average accuracy of 0.861 (± 0.030), an average AUROC of 0.971 (± 0.004) in the test sets after five simple random samplings. This was better than all single-stain-based models, specifically average accuracy of 0.841 (± 0.047, p = 0.462) and AUROC of 0.961 (± 0.009, p < 0.05) in single-H&E stain, average accuracy of 0.825 (± 0.028, p < 0.05) and AUROC of 0.942 (± 0.013, p < 0.001) in single-p57 stain (Fig. 7b–d ). The above series of models was training and testing in a subset of the total WSI dataset, which each included subject has both H&E and p57 WSI, containing 273 CHM, 185 PHM, 202 HA, 179 NC WSIs. These findings suggest that the performance of the IHC model, which integrates the characteristics of image staining and morphological assessment, may be better than that of the traditional H&E staining model. Fig. 7 Multi-stain model architecture and performance. a Schematic diagram of the multi-stain model architecture. For subjects with multi-stained WSIs, the model integrates information from H&E and p57 IHC patches in parallel. Feature extraction and fusion are performed through a two-stage process, where features from the two stains are concatenated to predict the classification probability of the subjects. b – d Accuracy and AUROC values of paired single-stain and multi-stain models across the training, validation, and test sets. Note, *, **, ***, and **** represent p values < 0.05, <0.01, <0.001, and <0.0001, respectively. ns: nonsignificant.
Иллюстрация — в первоисточнике ↗
Discussion
In this study, a two-stage AI model to diagnose early pregnancy loss histopathology using multi-centre data was developed. The model achieved overall AUROCs of 0.998, 0.972, 0.959, and 0.930 for three development sets and an unseen independent validation set. The model can identify typical regions and provide subtype diagnostic results with greater accuracy than current pathological examinations can in all development and independent cohorts, demonstrating its robustness and generalizability. Studies have shown that this tool can assist pathologists by offering improved efficiency, reliability, and reproducibility.
To the best of our knowledge, only two other studies have used AI models to classify HM histological images 26 , 27 . These studies, (1) lacked evidence of refined diagnosis (e.g., p57 IHC or molecular genetic identification) before the images were collected, which may have led to deviations in the subsequent results; (2) focused only on local features (single villi or villi oedema) rather than the ability to construct a WSI-level classification model, which does not appear to be clinically applicable. Pathologists make a diagnosis by comprehensively focusing on the characteristics of trophoblast proliferation, foetal components, villus populations, etc. 9 , in addition to single villous features; and (3) their diagnostic frameworks have not been tested on diverse, multi-center datasets, limiting their generalizability to broader clinical scenarios. In our study, we developed our algorithm on the basis of a large, extensively annotated dataset and validated it with independent data from multiple institutions and multi-stain images. Importantly, we achieved higher diagnostic accuracies at the WSI level than the currently reported histological diagnostic accuracy.
Our study has several notable strengths. With a total cohort comprising 1380 WSIs from 1287 patients, we introduced an AI model based on one of the largest datasets currently available for early pregnancy loss pathology, to our knowledge. The integration of expert pathology review and molecular profiling has allowed us to rigorously benchmark our AI methodology against the prevailing gold standard for diagnosing HMs. The two-stage pipeline strategy of our model allows the training and inference of the slide-level model to occur in the feature space instead of the pixel space, thereby reducing the computation and data storage. An additional advantage of this design is the ability to visualize local features while integrating global contextual information, which differs from traditional local tumour pathology approaches and may inform the development of other image-based models that require global context 34 . Owing to the presence of nonvillous content that is extraneous to early pregnancy loss diagnosis, we adopted a weakly supervised patch annotation approach (only labelled the corresponding WSI type or nonvillous or detailed organizational type), which not only reduces the annotation difficulty but also introduces additional decidual knowledge into the model. Furthermore, our method demonstrated consistent performance when evaluated on other published pathological image frameworks, supporting the generalizability of the model and the utility of the adaptive masking strategy within the evaluated settings.
Our study had several limitations. First, although the proposed model can assist pathologists in improving diagnostic accuracy, it does not fully achieve concordance with the current gold standard of genetic genotyping. A small subset of misclassified cases could not be readily explained, likely reflecting overlapping morphological features that are inherently difficult to distinguish on histological images alone. Although we used multiple centre datasets to validate the AI tool, more validation attempts with datasets from other institutions, scanning magnifications, and scanners are needed to demonstrate its broader generalizability. Furthermore, we constructed independent models for three types of staining (H&E, p57, and Ki-67) and explored initial integration of their outputs. However, the results from these models have not yet been effectively or deeply integrated. Given that most AI models of digital histology are based on H&E-stained images, there are too few reports on immunohistochemistry-stained images 35 , 36 . Accordingly, in this study, the number of available Ki-67 IHC slides was relatively small, therefore, future work will require larger cohorts with well-matched multi-stain slides to enable deeper model fusion. Moreover, the time analysis per slide in the reader study confirmed that the two-stage model architecture significantly reduces diagnosis time compared to manual analysis. However, as pathologists may have already formed an impression of the slides in the first round, we did not compare the diagnosis time between the first and second rounds. Future studies with carefully designed reader studies—such as involving different pathologist groups or time constraints—could better evaluate the AI model’s impact on diagnostic efficiency and clinical utility 11 , 16 . Finally, state-of-the-art computational pathology analyses have revealed the potential in identifying cellular features imperceptible to the human eye, such as genetic origin characterization, molecular markers, and prognosis prediction 37 , 38 . Future studies can extend our methods to integrate the linked information of patients (for example, clinical profiles and genomic or omics data) under different staining patterns.
In conclusion, the AI model that we developed is a foundational tool for accurate classification of early pregnancy loss tissue classes. We demonstrated the precision and generalizability of this model via samples collected from multiple centres and patient cohorts at the WSI level. We hope that this model offers clinical value as a refined and automated auxiliary tool for disease diagnosis and patient management.
Methods
Experimental design
An overview of the entire pipeline is depicted in Fig. 1 . This pipeline includes the following steps: (1) histological segmentation and manual labelling, (2) feature extraction in the first stage, and (3) WSI classification in the second stage.
The development cohort included histopathological slides and clinical data for three early pregnancy loss subtypes (CHM, PHM, and HA) retrospectively collected from over 15 institutions and consultation cases between January 1, 2015, and December 31, 2023. Normal placental villi for the normal control (NC) group were prospectively collected and embedded from over 4 institutions (Table S1 ). Model training, validation, and evaluation were conducted from September 30, 2020, to Jan 1, 2024. The independent validation cohort, comprising cases of CHM, PHM, and HA, was retrospectively collected from over 5 institutions between January and June 2024, after model freezing. In routine clinical practice, chorionic villi from normal pregnancies are rarely submitted for pathological examination. Therefore, the NC group was included only in the Development cohort to aid the model in learning morphological features of pathological pregnancy loss (e.g., hydropic villi), but was excluded from the independent validation cohort, which was designed to better reflect real-world clinical use (Fig. 2 and Table 1 ).
Participants
Histopathological slides and clinical data for early pregnancy loss subtypes were collected, all cases had an intrauterine gestational age <13 weeks and available pathological slides for refined diagnosis and scanning. HMs were included if diagnosed by H&E morphology and/or confirmed by ancillary testing (p57 IHC, DNA genotyping, or SNP microarray), including cases reclassified after external review. HA was defined as spontaneous abortion with clinical evidence of miscarriage and hydropic villous changes on pathology. NC was defined as clinically normal early pregnancy (ultrasound-confirmed gestational sac with fetal pole and cardiac activity, and normal hCG doubling when available) from healthy women requesting elective termination. Cases were excluded if surgical pathology reports were unavailable, villous tissue was absent or minimal, maternal–villous tissue admixture precluded separation for downstream molecular analysis, or known miscarriage risk factors were present (e.g., autoimmune disease, uterine anomalies, or male-factor causes).
Following the diagnostic algorithm for HMs 9 , 10 , 39 , all the samples underwent initial histological and p57 immunostaining. For p57-positive samples, short tandem repeat (STR) genotyping was performed to confirm the diagnosis. A group of three gynaecological pathologists (Xiaofei Zhang, Bo Huang, and Huifang Zhang) was assembled to evaluate all the stained slides and interpret the molecular diagnosis results. The consensus-based definitive refined diagnostic criteria can be found in the Fig. S1 . Clinical data were collected to the greatest extent possible via a questionnaire distributed to collaborating laboratories or directly to patients. Except for referral cases transferred to our hospital and consultation cases, the use of specimens and clinical information was approved by the institutional review boards of The First Affiliated Hospital, Zhejiang University School of Medicine (No. 2020IIT339), The Zhejiang University School of Medicine Women’s Hospital (No. 20140016), Ningbo Clinical Pathology Diagnosis Centre (No. SGY202101), Huzhou Maternity & Child Health Care Hospital (2020-R-036), Jinhua Hospital of Zhejiang University (No. 2020KY032), and Hangzhou Women’s Hospital (No. 2021A7-12). As this was a retrospective study, the requirement for informed consent was waived.
Image acquisition and dataset
All the tissue slides were separately prepared into 3 kinds of pathology slides: H&E-stained, p57-immunohistochemistry (IHC) stained, and Ki-67-IHC stained. WSIs were captured at 40× magnification via a KF-PRO scanner (KFBio, Zhejiang, China; 0.238 μm/pixel). Only WSIs containing at least 60% tissue content (vs. white background) and at least 10% villous tissue were included. We excluded maternal decidual slides, atypical pathologically insignificant slides, and severely defocused slides (Fig. S2 ).
A total of 1234 slides from 1141 patients in the development cohort and 146 slides from 146 patients in the independent validation cohort were included (Fig. 2 ).
Data preprocessing and annotation
Each collected WSI was partitioned into one-third overlapping image patches via QuPath (version 0.2.3) 40 , with a size of 3072 × 3072, and a stride of 2048 pixels and 0.23 μm/pixel resolution. This patch dataset was used for model training. Compared with the other patch sizes, the large patch size was chosen to retain greater tissue architectural context. To improve model generalizability, the patch dataset was subjected to stain normalization via Macenko stain transfer method (Fig. S3 ) after removing nontissue regions 41 .
After preprocessing, the pathologists performed patch-level annotations of the development dataset to select the most representative patches in each group for feature extraction. These annotations included stages of initial labelling, verification and final checks. Pathologists, aware of the refined diagnostic group labels (e.g., CHM, PHM, HA, NC) for each case, selected and annotated patches that best represented the pathological features of each group. These patches were categorized into five classes: representative CHM, PHM, HA, and NC patches, as well as nonvillous patches (including decidua, blood, and glands). Only histopathological patches achieving inter-rater consensus among all three pathologists were retained for first-stage model development; discordant cases were excluded. The corresponding annotated WSIs were subsequently partitioned in a 9:1 ratio for second-stage model training and validation, with explicit exclusion from test sets and independent validation cohorts. Label assignment incorporated both nonvillous morphological features and WSI-level diagnoses. This consensus-driven annotation paradigm, implemented to address inherent diagnostic challenges in early pregnancy specimens, effectively constitutes a weakly supervised learning framework. See Fig. S4 and Table S3a, b for a detailed description and data distribution.
Network architecture
We proposed products of conception pathology as a four-class classification problem in which each WSI was classified into CHM, PHM, HA, and NC. Owing to the large size of each WSI, we propose a two-stage early pregnancy loss diagnosis framework, as shown in Fig. 1 . We tested different data augmentation strategies, and the CNN-based model with a 0.75 masking ratio for the 40× magnification patch features achieved the best performance across multiple experiments and comparisons (see Fig. S9 ).
In the first stage, we aimed the “patch-based” CNN (p-CNN) to focus on extracting local annotated image features, such as pathology texture, edge structures and also keep sufficient discrimination at the pathology semantic level in multi-centre source to provide a generalizable patch-type map for auxiliary diagnosis. In the second stage, due to the comprehensive consideration of global information in early pregnancy loss image diagnosis, the “slide-based” CNN (s-CNN) was designed to aggregate the patch features to achieve global feature fusion and the WSI-level diagnosis. Here, the CNN was chosen as the backbone to ensure a balance between high diagnostic accuracy and operational stability. Both stages employ CNNs based on a modified residual network (ResNet) structure 42 and the PyTorch deep learning framework.
In the first stage, the annotated patch dataset for training was augmented with random flipping, resizing and cropping. Additionally, we incorporated a colour jitter augmentation strategy, which included adjustments for brightness (0.8–1.2), contrast (0.8–1.2), saturation (0.8–1.2), and hue (−0.05 to 0.05), to overcome systematic differences in staining among multiple centres and applied a standard regularization algorithm to normalize the colour distribution of the patches. Afterwards, this patch dataset was randomly divided into training, validation, and test sets at a ratio of 7:1:2. To better train and visualize the first-stage model, we added a multilayer perceptron branch in the backbone network that learned to estimate the label and confidence for the prediction of each patch. To prevent the network from simply learning to report the most common label, we weight the loss function on the basis of the inverse of the number of current labels within the training set.
In the second stage, s-CNN inputs a fused feature map and outputs the WSI level classification result. We observed that the patches and WSI naturally have a relative positional relationship so that did not adopt the commonly Top-K features aggregation 22 but fused patch features based on spatial position to maintain global relationships. Some nonvillous areas in early pregnancy loss images are inevitably not useful for HM diagnosis from a histological perspective.
To address this issue, we introduced an Adaptive Masking Strategy consisting of two complementary components: (1) Content-Adaptive Irrelevant Mask: Recognizing that nonvillous areas are histologically irrelevant for HM diagnosis, we use the first-stage p-CNN’s output to generate a dynamic mask. This mask identifies and zeros out features in nonvillous regions, enabling the s-CNN to adaptively focus on the informative villous regions based on the specific histological distribution of each slide. (2) Stochastic Patch Mask: Simultaneously, a random mask (0.75 ratio) is applied to the remaining features. This forces the model to mine “hard patches” and prevents over-reliance on a few dominant features, thereby enhancing generalization.
By combining these two strategies, the masked regions vary across images according to their unique tissue composition. Ultimately, the s-CNN model combines two masking strategies during training via the adaptive moment estimation (Adam) optimizer 43 . Next, we froze the model with the lowest loss with the validation set and then tested it via the left-out testing set as the test cohort and the independent validation cohort as the external test cohort. To reduce the influence of random initialization, we repeated the model training process five times with different random seeds, and reported the average performance across these five runs as the final results. To further improve the inference speed, we also tested our proposed two-stage algorithm at a lower magnification (5×).
Generalizability across published models
Cross-model adaptability of the proposed strategy was evaluated using representative pathology WSI classification methods, including MIL-RNN 22 , CLAMMB 24 , and TransMIL 44 . As no public early pregnancy loss dataset was available, these methods were reproduced on the current dataset using the hyperparameter settings reported in the original studies. Each model was trained five times with different random seeds. Results are summarized in Table S9 and Fig. S7 .
Ablation experiments
Ablation experiments were conducted using a vanilla CNN as the baseline to evaluate three masking modules, including irrelevant masking and random patch masking (Table S10 ). Irrelevant masking removed pathologically irrelevant regions (e.g., blank background and nonvillous areas). Random patch masking was implemented by setting randomly selected patch features to zero. A combined strategy was further assessed, and additional performance metrics are reported in Table S10 . The same augmentation methods were also applied to the baseline models described in the experiments of generalizability across published models, with augmented variants denoted by an asterisk in Table S10 . Detailed results for each model are provided in Table S11 .
5× Magnification model
The framework was applied to 5× WSIs with input patches resized to 256 × 256 pixels. A ResNet18 pre-trained on ImageNet was used for the first-stage model, with all layers frozen except the last two ResNet blocks and MLP classification layers, which were fine-tuned. The second-stage model retained the structure of the aforementioned original model, with the random patch mask ratio set to 0.25 (Fig. S9b ). First-stage fine-tuning employed the Adam optimizer (learning rate 1e-4), ImageNet normalization, 20 epochs, batch size 64, and weighted cross-entropy loss. Second-stage hyperparameters were consistent with the aforementioned original model. Performance metrics and comparisons are provided in Table S12 .
AI assistance system design
The system architecture shown in Fig. 1 and Fig. S5 contains a preprocessing module and a classification module. The interaction interface was developed via PyQt, and the pre-trained model was hosted on PyTorch. Once a prediction request is initiated, the message is passed to the preprocessing module, which performs WSI transcoding, patches slicing and storage. Then, the effective region queue of the WSI was fed into the classification module containing the p-CNN and s-CNN models. When the predictions of all the patches were complete, feature vectors extracted from the p-CNN were aggregated into a feature map. Then, a WSI-level prediction was returned from the s-CNN. The execution progress was displayed in a timely manner on the software interface (Fig. S6 ). After the prediction was made, the pathologist could easily check the historical prediction and browse the complete WSI with different scales on the interface, highlighting confidence regions.
Reader study
To benchmark the deep learning model against pathologists and assess its diagnostic performance, five experienced pathologists reviewed 60 randomly chosen WSIs (15 each of CHMs, PHMs, HAs, and NCs). Initially, the pathologists interpreted the WSIs without assistance. Then, these pathologists reviewed the outcomes of the deep learning model and opted to revise or maintain their initial diagnoses accordingly (Fig. 5a ). To assess the degree of agreement among the pathologists and the AI tool, we used the pROC package in R and the kappa test in SPSS.
Statistical analysis and algorithm evaluation
The accuracies of the models were analysed with the following metrics: accuracy, agreement, area under the receiver operating characteristic curve (AUROC) analysis, specificity, and sensitivity (or recall). A receiver operating characteristic (ROC) curve and an AUROC analysis were performed with 95% confidence interval (CI) calculations. In addition, patch-level accuracies were demonstrated using a heatmap, cluster diagram and patch confidence visualizations. For individual group classification (e.g., CHM), performance was evaluated as a binary classification problem using: \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${\rm{Accuracy}}=\frac{TP+TN}{TP+TN+FP+FN}$$\end{document} Accuracy = T P + T N T P + T N + F P + F N \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${\rm{Sensitivity}}/{\rm{Recall}}=\frac{TP}{TP+FN}$$\end{document} Sensitivity / Recall = T P T P + F N \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${\rm{Specificity}}=\frac{TN}{TN+FP}$$\end{document} Specificity = T N T N + F P \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${\rm{Precision}}=\frac{TP}{TP+FP}$$\end{document} Precision = T P T P + F P \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\mathrm{F1}\,\mathrm{score}=\frac{2\times \mathrm{Precision}\times \mathrm{Recall}}{\mathrm{Precision}+\mathrm{Recall}}$$\end{document} F1 score = 2 × Precision × Recall Precision + Recall where TP , TN , FP , FN represented the number of true positive, true negative, false positive, false negative slides, respectively. Overall classification performance was assessed as a four-class problem with accuracy defined by: \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\mathrm{Accuracy}=\mathrm{Agreement}=\frac{\mathrm{Number}\,\mathrm{of}\,\mathrm{correctly}\,\mathrm{classified}\,\mathrm{cases}}{\mathrm{Total}\,\mathrm{number}\,\mathrm{of}\,\mathrm{cases}}$$\end{document} Accuracy = Agreement = Number of correctly classified cases Total number of cases
The data are presented as the means ± standard deviations (SDs). The unpaired t-test was used to compare two individual groups with normal distribution. One-way ANOVA with the Tukey’s post hoc test to correct for multiple testing was used when more than two groups with normal distribution were compared. Fisher’s exact test and/or chi-squared test was used for analysing cross tables. Statistical analyses were performed using SPSS (version 19), R package, Microsoft Excel and GraphPad Prism software (version 9.0.2) unless otherwise specified. A p value < 0.05 was considered statistically significant.
Supplementary information
Supplementary Information
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
These authors contributed equally: Yating Zhao, Xinhui He, Xin Ye, Zhe Wang.
Supplementary information
The online version contains supplementary material available at 10.1038/s41746-026-02628-z.
Acknowledgements
The authors would like to thank Dr. Qian Wang for helpful discussions. We also acknowledge the patients and collaborators for their participation in this study. This research was funded by the National Key Research and Development Program of China (No. 2023YFC2705801); the Key Research and Development Program of Zhejiang Province, P.R. China (No. 2025C02115 and 2020C03116); the National Natural Science Foundation of China (No. 82071665 and 82371669).
Author contributions
Conceptualization and study design: J.H.Q., X.T., X.F.Z. and J.X.; methodology and supervision: J.H.Q., X.T. and X.F.Z.; code writing, test and software: X.H.H., X.Y. and J.Q.N.; cases refine diagnosis and manual annotation: Y.T.Z., B.H., H.F.Z. and X.F.Z.; reader study: B.H., H.F.Z., Q.M.H., H.C. and X.F.Z.; specimen collection: Z.W., P.L.H., H.C., X.G.Y., J.D., P.D., H.F.S., H.M., Z.W., Q.H.W., X.P.L., Q.W.Z., W.T.H. and H.X.L.; technical and equipment support: J.Z. and R.Q.S.; formal analysis: Y.T.Z., X.H.H., X.Y. and Z.W.; writing—original draft: Y.T.Z. and X.H.H.; writing—review & editing: X.Y., Z.W., J.H.Q., X.T., X.F.Z. and J.X.; all authors had full access to all the data in the study and approved the final manuscript.
Data availability
All data needed to evaluate the conclusions in the paper are present in the paper and/or the Supplementary Materials. The data used in this article cannot be totally shared publicly due to the violation of patient privacy and being lack of informed consent for data sharing. A portion of demo data could be acquired from the corresponding authors (contact J.Q., qianjianhua@zju.edu.cn, and X.T., tianx@zju.edu.cn) for researchers who meet the criteria for access to confidential data.
Code availability
The underlying code for this study is not publicly available but may be made available to qualified researchers on reasonable request from the corresponding authors. Analyses were performed using the software and key parameters detailed in the ‘Methods’ section.
Competing interests
The authors declare no competing interests.
References
1. Norwitz ER Schust DJ Fisher SJ Implantation and the survival of early pregnancy N. Engl. J. Med. 2001 345 1400 1408 10.1056/NEJMra000763 11794174 Norwitz, E. R., Schust, D. J. & Fisher, S. J. Implantation and the survival of early pregnancy. N. Engl. J. Med. 345 , 1400–1408 (2001). 11794174 10.1056/NEJMra000763
2. Hinshaw, K. & Fayyad, A. The Management of Early Pregnancy Loss (Royal College of Obstetricians and Gynaecologists, 2000).
3. Novais Nogueira Cardoso RMA First-trimester miscarriage: a histopathological classification proposal Heliyon 2021 7 e06359 10.1016/j.heliyon.2021.e06359 33748461 PMC7969342 Novais Nogueira Cardoso, R. M. A. et al. First-trimester miscarriage: a histopathological classification proposal. Heliyon 7 , e06359 (2021). 33748461 10.1016/j.heliyon.2021.e06359 PMC7969342
4. Fukunaga M Interobserver and intraobserver variability in the diagnosis of hydatidiform mole Am. J. Surg. Pathol. 2005 29 942 947 10.1097/01.pas.0000157996.23059.c1 15958860 Fukunaga, M. et al. Interobserver and intraobserver variability in the diagnosis of hydatidiform mole. Am. J. Surg. Pathol. 29 , 942–947 (2005). 15958860 10.1097/01.pas.0000157996.23059.c1
5. Jauniaux E Burton GJ Pathophysiology of histological changes in early pregnancy loss Placenta 2005 26 114 123 10.1016/j.placenta.2004.05.011 15708112 Jauniaux, E. & Burton, G. J. Pathophysiology of histological changes in early pregnancy loss. Placenta 26 , 114–123 (2005). 15708112 10.1016/j.placenta.2004.05.011
6. Norris-Kirby A Abnormal villous morphology associated with triple trisomy of paternal origin J. Mol. Diagn. 2010 12 525 529 10.2353/jmoldx.2010.090184 20413680 PMC2893639 Norris-Kirby, A. et al. Abnormal villous morphology associated with triple trisomy of paternal origin. J. Mol. Diagn. 12 , 525–529 (2010). 20413680 10.2353/jmoldx.2010.090184 PMC2893639
7. Maisenbacher MK Merrion K Kutteh WH Single-nucleotide polymorphism microarray detects molar pregnancies in 3% of miscarriages Fertil. Steril. 2019 112 700 706 10.1016/j.fertnstert.2019.06.015 31395308 Maisenbacher, M. K., Merrion, K. & Kutteh, W. H. Single-nucleotide polymorphism microarray detects molar pregnancies in 3% of miscarriages. Fertil. Steril. 112 , 700–706 (2019). 31395308 10.1016/j.fertnstert.2019.06.015
8. Colgan TJ Chang MC Nanji S Kolomietz E A reappraisal of the incidence of placental hydatidiform mole using selective molecular genotyping Int. J. Gynecol. Cancer 2016 26 1345 1350 10.1097/IGC.0000000000000754 27258730 Colgan, T. J., Chang, M. C., Nanji, S. & Kolomietz, E. A reappraisal of the incidence of placental hydatidiform mole using selective molecular genotyping. Int. J. Gynecol. Cancer 26 , 1345–1350 (2016). 27258730 10.1097/IGC.0000000000000754
9. Zhao Y Challenges in diagnosing hydatidiform moles: a review of promising molecular biomarkers Expert Rev. Mol. Diagn. 2022 22 783 796 10.1080/14737159.2022.2118050 36017690 Zhao, Y. et al. Challenges in diagnosing hydatidiform moles: a review of promising molecular biomarkers. Expert Rev. Mol. Diagn. 22 , 783–796 (2022). 36017690 10.1080/14737159.2022.2118050
10. Ronnett BM Hydatidiform moles: ancillary techniques to refine diagnosis Arch. Pathol. Lab Med. 2018 142 1485 1502 10.5858/arpa.2018-0226-RA 30500280 Ronnett, B. M. Hydatidiform moles: ancillary techniques to refine diagnosis. Arch. Pathol. Lab Med. 142 , 1485–1502 (2018). 30500280 10.5858/arpa.2018-0226-RA
11. Tolkach Y Artificial intelligence for tumour tissue detection and histological regression grading in oesophageal adenocarcinomas: a retrospective algorithm development and validation study Lancet Digit Health 2023 5 e265 e275 10.1016/S2589-7500(23)00027-4 37100542 Tolkach, Y. et al. Artificial intelligence for tumour tissue detection and histological regression grading in oesophageal adenocarcinomas: a retrospective algorithm development and validation study. Lancet Digit Health 5 , e265–e275 (2023). 37100542 10.1016/S2589-7500(23)00027-4
12. Zhang J Recent advancements in artificial intelligence for breast cancer: image augmentation, segmentation, diagnosis, and prognosis approaches Semin Cancer Biol. 2023 96 11 25 10.1016/j.semcancer.2023.09.001 37704183 Zhang, J. et al. Recent advancements in artificial intelligence for breast cancer: image augmentation, segmentation, diagnosis, and prognosis approaches. Semin Cancer Biol. 96 , 11–25 (2023). 37704183 10.1016/j.semcancer.2023.09.001
13. Mao N A multimodal and fully automated system for prediction of pathological complete response to neoadjuvant chemotherapy in breast cancer Sci. Adv. 2025 11 eadr1576 10.1126/sciadv.adr1576 40305609 PMC12042891 Mao, N. et al. A multimodal and fully automated system for prediction of pathological complete response to neoadjuvant chemotherapy in breast cancer. Sci. Adv. 11 , eadr1576 (2025). 40305609 10.1126/sciadv.adr1576 PMC12042891
14. Guo P Nuclei-based features for uterine cervical cancer histology image analysis with fusion-based classification IEEE J. Biomed. Health Inf. 2016 20 1595 1607 10.1109/JBHI.2015.2483318 PMC6760851 26529792 Guo, P. et al. Nuclei-based features for uterine cervical cancer histology image analysis with fusion-based classification. IEEE J. Biomed. Health Inf. 20 , 1595–1607 (2016). 10.1109/JBHI.2015.2483318 PMC6760851 26529792
15. Keenan SJ An automated machine vision system for the histological grading of cervical intraepithelial neoplasia (CIN) J. Pathol. 2000 192 351 362 10.1002/1096-9896(2000)9999:9999<::AID-PATH708>3.0.CO;2-I 11054719 Keenan, S. J. et al. An automated machine vision system for the histological grading of cervical intraepithelial neoplasia (CIN). J. Pathol. 192 , 351–362 (2000). 11054719 10.1002/1096-9896(2000)9999:9999<::AID-PATH708>3.0.CO;2-I
16. Song Z Clinically applicable histopathological diagnosis system for gastric cancer detection using deep learning Nat. Commun. 2020 11 4294 10.1038/s41467-020-18147-8 32855423 PMC7453200 Song, Z. et al. Clinically applicable histopathological diagnosis system for gastric cancer detection using deep learning. Nat. Commun. 11 , 4294 (2020). 32855423 10.1038/s41467-020-18147-8 PMC7453200
17. Yamashita R Deep learning model for the prediction of microsatellite instability in colorectal cancer: a diagnostic study Lancet Oncol. 2021 22 132 141 10.1016/S1470-2045(20)30535-0 33387492 Yamashita, R. et al. Deep learning model for the prediction of microsatellite instability in colorectal cancer: a diagnostic study. Lancet Oncol. 22 , 132–141 (2021). 33387492 10.1016/S1470-2045(20)30535-0
18. Tran KA Deep learning in cancer diagnosis, prognosis and treatment selection Genome Med. 2021 13 152 10.1186/s13073-021-00968-x 34579788 PMC8477474 Tran, K. A. et al. Deep learning in cancer diagnosis, prognosis and treatment selection. Genome Med. 13 , 152 (2021). 34579788 10.1186/s13073-021-00968-x PMC8477474
19. Huang S Yang J Fong S Zhao Q Artificial intelligence in cancer diagnosis and prognosis: opportunities and challenges Cancer Lett. 2020 471 61 71 10.1016/j.canlet.2019.12.007 31830558 Huang, S., Yang, J., Fong, S. & Zhao, Q. Artificial intelligence in cancer diagnosis and prognosis: opportunities and challenges. Cancer Lett. 471 , 61–71 (2020). 31830558 10.1016/j.canlet.2019.12.007
20. Wei X 3D soma detection in large-scale whole brain images via a two-stage neural network IEEE Trans. Med Imaging 2023 42 148 157 10.1109/TMI.2022.3206605 36103445 Wei, X. et al. 3D soma detection in large-scale whole brain images via a two-stage neural network. IEEE Trans. Med Imaging 42 , 148–157 (2023). 36103445 10.1109/TMI.2022.3206605
21. Nazeri, K., Aminpour, A. & Ebrahimi, M. In Image Analysis and Recognition (eds Campilho, A., Karray, F. & ter Haar Romeny, B.) (Springer International Publishing, 2018).
22. Campanella G Clinical-grade computational pathology using weakly supervised deep learning on whole slide images Nat. Med 2019 25 1301 1309 10.1038/s41591-019-0508-1 31308507 PMC7418463 Campanella, G. et al. Clinical-grade computational pathology using weakly supervised deep learning on whole slide images. Nat. Med 25 , 1301–1309 (2019). 31308507 10.1038/s41591-019-0508-1 PMC7418463
23. Shi Z A two-stage end-to-end deep learning framework for pathologic examination in skin tumor diagnosis Am. J. Pathol. 2023 193 769 777 10.1016/j.ajpath.2023.02.008 36868466 Shi, Z. et al. A two-stage end-to-end deep learning framework for pathologic examination in skin tumor diagnosis. Am. J. Pathol. 193 , 769–777 (2023). 36868466 10.1016/j.ajpath.2023.02.008
24. Lu MY Data-efficient and weakly supervised computational pathology on whole-slide images Nat. Biomed. Eng. 2021 5 555 570 10.1038/s41551-020-00682-w 33649564 PMC8711640 Lu, M. Y. et al. Data-efficient and weakly supervised computational pathology on whole-slide images. Nat. Biomed. Eng. 5 , 555–570 (2021). 33649564 10.1038/s41551-020-00682-w PMC8711640
25. Shao, Z. et al. TransMIL: transformer based correlated multiple instance learning for whole slide image classification. In Neural Information Processing Systems (2021).
26. Palee P Heuristic neural network approach in histological sections detection of hydatidiform mole J. Med. Imaging 2019 6 044501 10.1117/1.JMI.6.4.044501 PMC6830426 31720313 Palee, P. et al. Heuristic neural network approach in histological sections detection of hydatidiform mole. J. Med. Imaging 6 , 044501 (2019). 10.1117/1.JMI.6.4.044501 PMC6830426 31720313
27. Zhu C A real-time computer-aided diagnosis method for hydatidiform mole recognition using deep neural network Comput. Methods Prog. Biomed. 2023 234 107510 10.1016/j.cmpb.2023.107510 37003042 Zhu, C. et al. A real-time computer-aided diagnosis method for hydatidiform mole recognition using deep neural network. Comput. Methods Prog. Biomed. 234 , 107510 (2023). 10.1016/j.cmpb.2023.107510 37003042
28. Elias KM Berkowitz RS Horowitz NS State-of-the-art workup and initial management of newly diagnosed molar pregnancy and postmolar gestational trophoblastic neoplasia J. Natl. Compr. Cancer Netw. 2019 17 1396 1401 10.6004/jnccn.2019.7364 31693988 Elias, K. M., Berkowitz, R. S. & Horowitz, N. S. State-of-the-art workup and initial management of newly diagnosed molar pregnancy and postmolar gestational trophoblastic neoplasia. J. Natl. Compr. Cancer Netw. 17 , 1396–1401 (2019). 10.6004/jnccn.2019.7364 31693988
29. Seckl MJ Sebire NJ Berkowitz RS Gestational trophoblastic disease Lancet 2010 376 717 729 10.1016/S0140-6736(10)60280-2 20673583 Seckl, M. J., Sebire, N. J. & Berkowitz, R. S. Gestational trophoblastic disease. Lancet 376 , 717–729 (2010). 20673583 10.1016/S0140-6736(10)60280-2
30. Zhao, Y. et al. Reappraisal and refined diagnosis of ultrasonography and histological findings for hydatidiform moles: a multicentre retrospective study of 821 patients. J. Clin. Pathol . 78 , 483–494 (2025). 10.1136/jcp-2024-209638 PMC12322450 39048306
31. Nagy A Diandric triploid partial mole versus digynic nonmolar triploidy: is morphological assessment sufficient for the diagnostic distinction? Histopathology 2024 85 879 888 10.1111/his.15247 39031756 Nagy, A. et al. Diandric triploid partial mole versus digynic nonmolar triploidy: is morphological assessment sufficient for the diagnostic distinction? Histopathology 85 , 879–888 (2024). 39031756 10.1111/his.15247
32. Zhao Y Xiong GW Zhang XW Hang BO Is Ki-67 of diagnostic value in distinguishing between partial and complete hydatidiform moles? A systematic review and meta-analysis Anticancer Res 2018 38 1105 1110 29374747 10.21873/anticanres.12329 Zhao, Y., Xiong, G. W., Zhang, X. W. & Hang, B. O. Is Ki-67 of diagnostic value in distinguishing between partial and complete hydatidiform moles? A systematic review and meta-analysis. Anticancer Res 38 , 1105–1110 (2018). 29374747 10.21873/anticanres.12329
33. Balan TA Hydatidiform moles: the contribution of ancillary techniques in refining their histopathological diagnosis Int. J. Mol. Sci. 2025 27 1 18 10.3390/ijms27010142 41516022 PMC12785981 Balan, T. A. et al. Hydatidiform moles: the contribution of ancillary techniques in refining their histopathological diagnosis. Int. J. Mol. Sci. 27 , 1–18 (2025). 41516022 10.3390/ijms27010142 PMC12785981
34. Savedra MC Highley BL Photography. Is it useful in learning how adolescents view hospitalization? J. Adolesc. Health Care 1988 9 219 224 10.1016/0197-0070(88)90075-7 3372289 Savedra, M. C. & Highley, B. L. Photography. Is it useful in learning how adolescents view hospitalization? J. Adolesc. Health Care 9 , 219–224 (1988). 3372289 10.1016/0197-0070(88)90075-7
35. Blessin NC Automated Ki-67 labeling index assessment in prostate cancer using artificial intelligence and multiplex fluorescence immunohistochemistry J. Pathol. 2023 260 5 16 10.1002/path.6057 36656126 Blessin, N. C. et al. Automated Ki-67 labeling index assessment in prostate cancer using artificial intelligence and multiplex fluorescence immunohistochemistry. J. Pathol. 260 , 5–16 (2023). 36656126 10.1002/path.6057
36. Fan L Artificial intelligence-aided multiple tumor detection method based on immunohistochemistry-enhanced dark-field imaging Anal. Chem. 2022 94 1037 1045 10.1021/acs.analchem.1c04000 34927419 Fan, L. et al. Artificial intelligence-aided multiple tumor detection method based on immunohistochemistry-enhanced dark-field imaging. Anal. Chem. 94 , 1037–1045 (2022). 34927419 10.1021/acs.analchem.1c04000
37. Wang X A pathology foundation model for cancer diagnosis and prognosis prediction Nature 2024 634 970 978 10.1038/s41586-024-07894-z 39232164 PMC12186853 Wang, X. et al. A pathology foundation model for cancer diagnosis and prognosis prediction. Nature 634 , 970–978 (2024). 39232164 10.1038/s41586-024-07894-z PMC12186853
38. Ektefaie Y Integrative multiomics-histopathology analysis for breast cancer classification NPJ Breast Cancer 2021 7 147 10.1038/s41523-021-00357-y 34845230 PMC8630188 Ektefaie, Y. et al. Integrative multiomics-histopathology analysis for breast cancer classification. NPJ Breast Cancer 7 , 147 (2021). 34845230 10.1038/s41523-021-00357-y PMC8630188
39. Hui P Buza N Murphy KM Ronnett BM Hydatidiform moles: genetic basis and precision diagnosis Annu. Rev. Pathol. 2017 12 449 485 10.1146/annurev-pathol-052016-100237 28135560 Hui, P., Buza, N., Murphy, K. M. & Ronnett, B. M. Hydatidiform moles: genetic basis and precision diagnosis. Annu. Rev. Pathol. 12 , 449–485 (2017). 28135560 10.1146/annurev-pathol-052016-100237
40. Bankhead P QuPath: open source software for digital pathology image analysis Sci. Rep. 2017 7 16878 10.1038/s41598-017-17204-5 29203879 PMC5715110 Bankhead, P. et al. QuPath: open source software for digital pathology image analysis. Sci. Rep. 7 , 16878 (2017). 29203879 10.1038/s41598-017-17204-5 PMC5715110
41. Macenko, M. et al. A method for normalizing histology slides for quantitative analysis. In 2009 IEEE International Symposium on Biomedical Imaging: From Nano to Macro (2009).
42. He, K., Zhang, X., Ren, S. & Sun, J. Deep residual learning for image recognition. In 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (2016).
43. Kingma, D. P. & Ba, J. Adam: a method for stochastic optimization. CoRR abs/1412.6980 , (2014).
44. Shao, Z. et al. TransMIL: transformer based correlated multiple instance learning for whole slide image classification. 10.48550/arXiv.2106.00908 (2021).
Подготовка и перевод публикации
Обработка статьи · этапы, ошибки и управление
Ошибки и ограничения
История · было → стало
Состояние обновляется каждые 5 секунд, пока блок открыт. Процент показывается только там, где известен объём работы. Пауза останавливает продолжение этапа; текущий запрос к источнику может завершиться.
Тип публикации указан по данным источника. Уровень доказательности автоматически не присваивается.