Skip to content

Annals of Clinical and Analytical Medicine

E-ISSN: 2667-663X · Monthly · English

The application of artificial intelligence for the detection of chorionic villi in the biopsy specimens

Detection of chorionic villi using computer vision

Abstract

AimIn this study, we aimed to find out the usefulness of artificial intelligence for the histological diagnosis of products of conception by identifying the cho- rionic villi in the tissue specimens.MethodsA total of 400 anonymized digital images were acquired, which were divided into two groups. Group 1 included 200 images containing chorionic villi while Group 2 was comprised of 200 images of decidual tissue. Two variants of two deep learning computer vision algorithms VGG-16, VGG-19, and Resnet -18, Resnet -34 had been applied for the evaluation and analysis of the digital pathology image.ResultsThe application of deep learning computer vision algorithms, VGG-16, VGG-19, Resnet-18, and Resnet-34 revealed the diagnostic accuracy of 95.3%, 99.4%, 98.1 %, 98.2% and F1-Score of 0.989, 0.989, 0.984 and 0.989 on test data respectively.ConclusionThe specimens of products of conception are quite frequently received for histopathological evaluation by the pathology laboratory. A careful his- tological examination is required for the identification of chorionic villi in the submitted specimens. The present study revealed that the application of artificial intelligence could be valuable assistance to the histopathologists for the microscopic examination of biopsy specimens. The diagnostic accuracy achieved in the present study is quite close to the reported figures for the diagnosis of lung and prostatic cancer with the help of deep learning in other series. The present study revealed that computer vision-based system may be an effective adjunct tool for the histopathological detection of chorionic villi.

Keywords

chorionic villideep learningcomputer visionresnetVGG

Introduction

One of the important causes of vaginal bleeding in females of the reproductive age group is retained products of conception (RPOCs) after the childbirth or miscarriage. Different modalities are used for the diagnosis of retained products of conception (RPOCs) which include assessment of clinical features, ultrasound, and histopathology. The clinical signs and symptoms of retained products of conception include bleeding per vagina, fever, and pain in the lower abdomen. Ultrasound is usually done to detect retained products of conception, which usually shows hyperechoic material and increased thickness of the endometrium.1,2 Histopathological evaluation for the diagnosis of retained products of conception is considered to be the gold standard of all. The histopathological examination is also required for the differentiation between the trophoblastic and non- trophoblastic tissue which cannot be done on the basis of clinical, sonographic, and intraprocedural criteria.3 The retained products of conception are managed either medically or surgically.4,5 Medical management is usually given to women with no signs of infection, heavy bleeding or fever. While surgical management is usually performed in patients who show signs and symptoms of infection like fever, heavy bleeding, severe abdominal pain or suspected gestation trophoblastic disease. The majority of females who were admitted to the hospital due to miscarriage were in the gestational week of five to thirteen.6 Surgical management includes traditional Evacuation and Curettage or hysteroscopic removal (morcellation or loop resection).7 After the uterine evacuation, the tissue should be examined histologically to rule out the possibility of any neoplasm or gestational trophoblastic disease.8 The thorough microscopic evaluation of retained products of conception is quite time-consuming task as sometimes the tissue is abundant in amount. The mounting stress on histopathologists due to histological examination of a large number of glass slides maybe relieved to some extent by the application of artificial intelligence.
This study is aimed to find out the effectiveness of artificial intelligence for the histological diagnosis of products of conception by identifying the chorionic villi in the tissue specimens.

Materials and Methods

Four hundred (400) anonymized digital images have been acquired from the anonymized glass slides stained with hematoxylin and eosin stain. The state-of-the- art two deep learning computer vision algorithms with two variations, VGG- 16, VGG-19, Resnet-18 and Resnet -34 have been applied for the evaluation and analysis of digital pathology images. Due to the data limitation, transfer learning approach was applied; weights trained on ImageNet data set were downloaded and given as initial weights to the algorithms using FastAI library.9 The 400 anonymized digital images have been split into two categories. There were 200 images of chorionic villi and this category was labeled as chorionic villi. The other category had 200 images of decidual tissues. These images have been reviewed by two histopathologists.
A random approach of FastAI API was used to load the data into train and test sets, to avoid the chances of selecting images of the same class been selected for mini-batch input, which could harm the performance of model validation in the training phase.
The entire dataset have been split into two sets. Eighty (80) % of the images were included in the training set. The testing set contained 20% of the total images. To increase the accuracy and F1-Score image, augmentation was done using default parameters of FastAI library. A 5-fold cross-validation was used to train the algorithms.

Results

A total of four hundred (400) anonymized digital images were collected. One group was composed of two hundred images (200), which contain chorionic villi and this group was labeled as chorionic villi. The other group had two hundred (200) images of decidual tissues only without any chorionic villi and this group was labeled as decidual tissue. Three hundred and twenty (320) images were chosen randomly from both groups (chorionic villi and decidual tissue) that is 80% of the total data set and employed for training data set. Whereas eighty (80) images were randomly chosen from both groups (chorionic villi and decidual tissue), which is 20% of the total data set employed in the test data set. Two deep learning computer vision algorithms with two variations, VGG-16, VGG- 19, Resnet-18, and Resnet-34 were used that revealed the accuracy of 95.3%, 99.4 %, 98.1 %, 98.2% and F1-Score of 0.989, 0.989, 0.984, and 0.989 respectively on test data set. The results are shown in Table 1, Table 2.

Discussion

The results of the present study are very encouraging regarding the application of artificial intelligence for the histological diagnosis of products of conception. The retained products of conception may occur due to miscarriage or abortions. The miscarriage/abortions are associated with morbidity and mortality in women.10 Miscarriages are also a risk factor of anemia in females.11
The tissue specimens of miscarriage/abortion/products of conception are quite frequently received by the pathology laboratory for histopathological examination. A thorough microscopic assessment of slides is required for the identification of chorionic villi. Artificial intelligence may be applied to provide assistance to the histopathologists for the histological assessment of glass slides.
Artificial intelligence is making a significant contribution to the digital revolution. The artificial intelligence is trying to enhance the capabilities of computers so that the computer-based system can better do what humans are currently doing. The application of artificial intelligence will provide the capability to the system to learn and improve automatically from the experience and available data. The development of deep learning technology (a subset of artificial intelligence) has yielded markedly improvement in image analysis and recognition. The subset of deep learning is a convolutional neural network which has remarkably improved the image processing.12 Makimoto H et al. published a study in which the performance of the convolutional neural network was better than clinicians for the accuracy in the diagnosis of myocardial infarction by analyzing the images of electrocardiogram.13 In the present study, two deep learning computer vision algorithms with two variations VGG-16, VGG-19, Resnet-18, and Resnet-34 have been applied on the test data, which revealed the accuracy of 95.3%, 99.4%, 98.1 %, 98.2% respectively. The diagnostic accuracy of convolutional neural network architecture for the diagnosis of products of conception in the present study is quite close to the reported figures for the diagnosis of lung and prostatic cancer with deep learning.14,15 The microscopic examination of glass slides by the anatomic pathologist for the histopathological diagnosis of malignant tumors is a labor- intensive and time- consuming process. Missing or non- visualization of a small area on the slide may lead to a lethal mistake in the diagnosis. Over the past century, this process has been practiced with minor modifications. This laborious job increases the chance of fatigability which raises the risk of human errors. There are possibilities of errors in the pathology laboratories which may have severe devastating effects in patient care.16 The development of artificial intelligence applications for the assessment of biopsies will be a great help to the histopathologists in the current scenario of the rising trend in workload in the diagnostic laboratories. The limitation of the present study includes the limited availability of digital pathology images. Further studies on large data set are recommended.

Conclusion

The application of deep learning technology in the field of pathology for the histological diagnosis of chorionic villi in biopsy specimens is a very helpful tool.

Declarations

Animal and Human Rights Statement

All procedures performed in this study were in accordance with the ethical standards of the institutional and/or national research committee and with the 1964 Helsinki declaration and its later amendments or comparable ethical standards. No animal or human studies were carried out by the authors for this article.

Data Availability

The datasets used and/or analyzed during the current study are not publicly available due to patient privacy reasons but are available from the corresponding author on reasonable request.

Conflict of Interest

None of the authors received any type of financial support that could be considered potential conflict of interest regarding the manuscript or its submission.

Funding

None.

Acknowledgements

The authors are grateful to Faran Mazhar and Syed Umar Armaghan for their assistance.

References

  1. Abbasi S, Jamal A, Eslamian L, Marsousi V. Role of clinical and ultrasound findings in the diagnosis of retained products of conception. Ultrasound Obstet Gynecol. 2008;32(5):704-707. doi:10.1002/uog.5391
  2. Iqbal H, Khan MS, Muneeb A, Mirza WA. Diagnostic accuracy of ultrasound in detecting retained products of conception: a study from a tertiary care hospital in Karachi, Pakistan. Cureus. 2018;10(11):e3564. doi:10.7759/cureus.3564
  3. Ganer Herman H, Kogan Z, Dabas A, et al. Clinical and sonographic findings in suspected retained trophoblast: correlation with histological findings. Isr Med Assoc J. 2018;20(12):761-764.
  4. Butt TA, Iqbal A, Saeed M, Yousuf I, Murtaza A. Outcomes of manual vacuum aspiration versus dilatation and curettage in first trimester miscarriages. Pak J Med Health Sci. 2018;12(2):611-613.
  5. Zaman N, Zahoor S, Zulfiqar S, Afzal R, Younus S, Zahoor A. Comparison of misoprostol with manual vacuum aspiration for the management of incomplete miscarriage. Pak J Med Health Sci. 2019;13(2):637-639.
  6. Campillo ISL, Meaney S, O’Donoghue K, Corcoran P. Miscarriage hospitalisations: a national population-based study of incidence and outcomes, 2005-2016. Reprod Health. 2019;16(1).
  7. van Wessel S, Coryn N, van Vliet H, Schoot B, Weyers S, Hamerlynck T. Reproductive and obstetric outcomes after hysteroscopic removal of retained products of conception. J Minim Invasive Gynecol. 2020;27(4):840-846. doi:10.1016/j.jmig.2019.07.016
  8. Kordić S, Matijević R. Does routine pathology evaluation of uterine content following evacuation for abnormal early pregnancy influence further management? Acta Med Croatica. 2016;70(2):97-101.
  9. Russakovsky O, Deng J, Su H, et al. ImageNet large scale visual recognition challenge. Int J Comput Vis. 2015;115(3):211-252. doi:10.1007/s11263-015-0816-y
  10. Reardon DC, Thorp JM. Pregnancy associated death in record linkage studies relative to delivery, termination of pregnancy, and natural losses: a systematic review with a narrative synthesis and meta-analysis. SAGE Open Med. 2017;5:205031211774049. doi:10.1177/2050312117740490
  11. Khalid R, Irshad J, Saleem A, Ashraf S. Risk factors for anemia in pregnant women in a rural area of Bahawalnagar Pakistan—a descriptive cross-sectional study. Pak J Med Health Sci. 2017;11(4):1238-1280.
  12. LeCun Y, Bengio Y, Hinton G. Deep learning. Nature. 2015;521(7553):436-444. doi:10.1038/nature14539
  13. Makimoto H, Höckmann M, Lin T, et al. Performance of a convolutional neural network derived from an ECG database in recognizing myocardial infarction. Sci Rep. 2020;10(1):8445. doi:10.1038/s41598-020-65105-x
  14. Campanella G, Hanna MG, Geneslaw L, et al. Clinical-grade computational pathology using weakly supervised deep learning on whole slide images. Nat Med. 2019;25(8):1301-1309. doi:10.1038/s41591-019-0508-1
  15. Coudray N, Ocampo PS, Sakellaropoulos T, et al. Classification and mutation prediction from non-small cell lung cancer histopathology images using deep learning. Nat Med. 2018;24(10):1559-1567. doi:10.1038/s41591-018-0177-5
  16. Santana MF, Ferreira LCL. Diagnostic errors in surgical pathology. J Bras Patol Med Lab. 2017;53(2):124-129.

Tables

Table 1. Confusion Matrix of train and test sets

Table 2. Detailed dataset of test results

Additional Information

Publisher’s Note
Bayrakol MP remains neutral with regard to jurisdictional and institutional claims.

Rights and Permissions

Creative Commons License

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License (CC BY-NC 4.0). To view a copy of the license, visit https://creativecommons.org/licenses/by-nc/4.0/

About This Article

How to Cite This Article

Syed Usama Khalid Bukhari, Syed Khuzaima Arsalan Bokhari, Ubeer Mehtab, Asmara Syed, Syed Sajid Hussain Shah. The application of artificial intelligence for the detection of chorionic villi in the biopsy specimens. Ann Clin Anal Med 2021;12(4):358-361. doi:10.4328/ACAM.20287

Publication History

Received:
22.07.2020
Accepted:
22.08.2020
Published Online:
04.09.2020
Printed:
01.04.2021