An improved convolutional neural network for abnormality detection and segmentation from human sperm images


Recent days, the infertility is affecting one of every ten couples. This makes the negative effect on the quality of a couple’s life, social causes, and psychological problems. Here the sperm morphology analysis helps to diagnose this problem. Here the machine learning approach is used for classification, detection and segmentation process. This also utilizes morphology approach for image representation. In this proposed method, the deep convolutional neural network is used for detecting the abnormality of human male infertility. Here the image morphological process is employed with the enhanced Otsu’s threshold method for segmenting the sperm image, which helps to detect the abnormal region using convolution layer. Here the database is collected from the human sperm image analysis dataset. Initially, the morphological process is applied to reduce the noise from the given set of input image then the segmentation process is performed by using E-Otsu’s threshold method. Two-dimensional Otsu’s thresholding technique reduces the computation complexity and it uses the median filter and for edge reduction approach sobel operator is used, which improves the performance of segmentation. Overall, the proposed research work optimizes three sections that are image representation by morphology approach, image segmentation by Enhanced-Otsu’s thresholding approach, and abnormality detection by Convolutional Neural Network. This method obtains the result of accuracy, detection rate, and computation time. By comparing with the existing method, the proposed method achieves the 98.99% of accuracy result and detects the abnormality effectively with the reduced computation time of 4 min and 15 s. This proposed work is done by using MATLAB with the adaptation of 2018a.

This is a preview of subscription content, access via your institution.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11


  1. Boumaza K, Loukil A, Aarizou K (2017) Computer aided human sperm motility detection. In: Proceedings of the IEEE international conference on automatic control, telecommunication and signals, Algeria, 12 Dec 2017

  2. Chaudhari NM, Pawar BV (2016) New human semen analysis system (CASA) using Microscopic image processing techniques. ICTACT J Image Video Process 7(2):1381–1391.

    Article  Google Scholar 

  3. Davila Garcia ML, Paredes Soto DA, Mihaylova LS (2017) A Bag of features based approach for classification of motile sperm cells. In: International conference on IoT and IEEE Green Computing and communication and Cyber, Physical and social computing and IEEE smart data, UK, 21–23 June 2017.

  4. Fariba Shaker S, Monadjemi A, Naghsh-Nilchi AR (2016) Automatic detection and segmentation of sperm head, acrosome and nucleus in microscopic images of human semen smears. Comput Methods Progr Biomed 132:11–20.

    Article  Google Scholar 

  5. Fateme MK, Hamid Reza SM, Abdolhossein S (2019) Efficient and robust segmentation and tracking of sperm cells in microscopic image sequence. IET Comput Vis 13(5):489–499.

    Article  Google Scholar 

  6. Ghasemian F, Mirroshandel SA, Monji-Azad S, Azarnia M, Zahiri Z (2015) An efficient method for automatic morphological abnormality detection for human sperm image. Comput Methods Progr Biomed 122(3):409–420.

    Article  Google Scholar 

  7. Hirai M, Boersma A, Hoeflich A, Wolf E, Foll J, Aumuller T, Braun J (2001) Objectively measured sperm motility and sperm head morphometry in boars (Sus scrofa): relation to fertility and seminal plasma growth factors. J Androl 22(1):104–110.

    Article  Google Scholar 

  8. Ilhan HO, Serbes G, Aydin N (2019) Automatic directional masking technique for better sperm morphology segmentation and classification analysis. Electron Lett 55(5):256–258.

    Article  Google Scholar 

  9. Ilhan HO, Onur Sigirci I, Serbes G, Aydin N (2020) A Fully automated hybrid human sperm detection and classification system based on mobile-net and the performance comparison with conventional methods. Med Biol Eng Comput 58:1047–1068.

    Article  Google Scholar 

  10. Illhan HO, Elbir A (2016) The evaluation of detectors and descriptors on determination of semen cell. In: Proceedings of the international symposium on innovations in intelligent system and applications, 2–5 Aug. 2016, Romania.

  11. Koh JBY, Shen X, Marcos (2018) Supervised learning to predict sperm sorting by magnetophoresis. Magmetochemistry 4(31):1–17.

    Article  Google Scholar 

  12. Luo G, Huang W, Li S (2010) 2D maximum entropy spermatozoa Image Segmentation based on Canny operator. In: Proceedings of the international conference on intelligent computing and integrated systems, 22–24 Oct. 2010, Guilin, China, pp 243–246.

  13. McCallum C, Riordon J, Sinton D, Wang Y et al (2019) Deep learning based selection of human Sperm with high DNA integrity. Commun Biol.

    Article  Google Scholar 

  14. Medina-Rodriguez R, Guzman-Masias L, Alatrista-Salas H, Beltran-Castanon C (2015) Sperm cells segmentation in micrographic images through lambertian reflectance model. Proc Int Conf Comput Anal Images Patterns 9257:664–674.

    MathSciNet  Article  Google Scholar 

  15. Mirroshandel SA, Ghasemian F (2018) Automated morphology detection from human sperm images. In: Intracytoplasmic sperm injection-Chapter 8, pp. 99–122, Jan. 2018.

  16. Movahed RA, Orooji M (2019) Automatic segmentation of sperm’s parts in microscopic images of human semen smears using concatenated learning approaches. Comput Biol Med 109:242–253.

    Article  Google Scholar 

  17. Nissen MS, Krause O, Kristian A, Soren K, Nielsen TT, Nielsen M (2017) Convolutional neural networks for segmentation and object detection of human semen. In: Scandinavian conference on image analysis, 3 April 2017. aXiv:1704.00498v1

  18. Paul H-H, Fermando M, Juan Manuel R-M, Alberto D, Gabri (2018) 3D +t human sperm flagellum tracing in low SNR fluorescence images. IEEE Trans Med Imaging 37(10):2236–2247.

    Article  Google Scholar 

  19. Qi S, Nie T, Li Q, He Z, Xu D, Chen Q (2019) A sperm cell tracking recognition and classification method. In: Proceedings of the international conference on systems signals and image processing, Croatia, 5–7 June 2019.

  20. Rajaram A, Naveenkumar D (2014) A modified clustering approach for sub micron CMOS amplifiers. Int J Adv Inf Sci Technol 22(22):93–106

    Google Scholar 

  21. Ravanfar MR, Moradi MH (2011) Low contrast sperm detection and tracking by watershed algorithm and particle filter. In: Proceedings of the Iranian conference on biomedical engineering, 14–16 Dec. 2011, Iran, pp 260–263.

  22. Reza AM, Mahdi O (2019) A learning based framework for the automatic segmentation of human sperm Head, Acrosome and Nucleus. In: Proceedings of the national and international conference on biomedical engineering 29–30 Nov. 2019, Iran.

  23. Rojas HA, Rojas JA, Zuleta GA, Madrigal CA (2012) Extraction of new features for classification of porcine sperm motility. In: Proceedings of the symposium of image, signal processing and artificial vision, Colombia, 12–14 Sept 2012.

  24. Seven AH, Jorunn MA, Oliwia W, Thambawita V, Pal H, Hammer HL, Haugen TB, Riegler MA (2019) Machine learning based analysis of sperm videos and participant data for male fertility prediction. Sci Rep 9:16770.

    Article  Google Scholar 

  25. Simcha KM, Barnea I, Green Span H, Natan TS (2017) Automated analysis of individual sperm cells using stain-fee interferometric phase microscopy and machine learning. Cytometry 91(9):893–900.

    Article  Google Scholar 

  26. Swaraj Raman M, Sukanya M (2012) A novel labeling algorithm for object counting. In: Proceedings of the international conference on computing communication and networking technologies, 26–28 July 2012, Coimbatore, India, pp 1–7.

  27. Tan WC, Isa NAM (2015) Segmentation and detection of human spermatozoa using modified pulse coupled neural network optimized by particle swarm optimization with mutual information. In: Proceedings of the international conference on industrial electronics and applications, 15–17 June 2015, New Zealand.

  28. Tan WC, Isa MNA (2016) Automated sperm head detection using intersecting cortical model optimized by particle swarm optimization. PLoS One 11(9):e0162985.

    Article  Google Scholar 

  29. Tseng K-K, Li Y, Hsu Chih-Yu, Huang H-N, Zhao M, Ding M (2013) Computer Assisted system with multiple feature fused support vector machine for sperm morphology diagnosis. Biomed Res Int.

    Article  Google Scholar 

  30. Vala HJ, Baxi A (2013) A review on Otsu image segmentation algorithm. Int J Adv Res Comput Eng Technol 2(2):387–389

    Google Scholar 

  31. Wang W, Duan L, Wang Y (2017) Fast image segmentation using two-dimensional otsu based on estimation of distribution algorithm. J Electr Comput Eng.

    Article  Google Scholar 

  32. Wijchman J, Wolf BD, Graafe R, Arts E (2001) Variation in semen parameters derived from computerized semen analysis, within donors and between donors. J Androl 22(5):773–780.

    Article  Google Scholar 

Download references

Author information



Corresponding author

Correspondence to L. Prabaharan.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Reprints and Permissions

About this article

Verify currency and authenticity via CrossMark

Cite this article

Prabaharan, L., Raghunathan, A. An improved convolutional neural network for abnormality detection and segmentation from human sperm images. J Ambient Intell Human Comput (2021).

Download citation


  • Sperm images
  • Deep Convolutional Neural Network
  • Enhanced Otsu’s threshold method
  • Median filtering
  • Segmentation
  • Abnormality detection