journal article·2025-10-05Open access

Classification of Blackcurrant Genotypes by Ploidy Levels on Stomata Microscopic Images with Deep Learning: Convolutional Neural Networks and Vision Transformers

Aleksandra Konopka, Ryszard Kozera, Agnieszka Marasek-Ciołakowska, Aleksandra Machlańska

Applied Sciences· Volume 15· Issue 19

Abstract

Plants vary in number of chromosomes (ploidy levels), which can influence morphological traits, including the size and density of stomata cells. Although biologists can detect these differences under a microscope, the process is often time-consuming and tedious. This study aims to automate the classification of blackcurrant (Ribes nigrum L.) ploidy levels—diploid, triploid, and tetraploid—by leveraging deep learning techniques. Convolutional Neural Networks and Vision Transformers are employed to perform microscopic image classification across two distinct blackcurrant datasets. Initial experiments demonstrate that these models can effectively classify ploidy levels when trained and tested on subsets derived from the same dataset. However, the primary challenge lies in proposing a model capable of yielding satisfactory classification results across different datasets ensuring robustness and generalization, which is a critical step toward developing a universal ploidy classification system. In this research, a variety of experiments is performed including application of augmentation technique. Model efficacy is evaluated with standard metrics and its interpretability is ensured through Gradient-weighted Class Activation Mapping visualizations. Finally, future research directions are outlined with application of other advanced state-of-the-art machine learning methods to further refine ploidy level prediction in botanical studies.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Smart Agriculture and AI · Genetic Mapping and Diversity in Plants and Animals · Spectroscopy and Chemometric Analyses

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Institute of Information Technology, Warsaw University of Life Sciences—SGGW, ul. Nowoursynowska 159, 02-776 Warsaw, Poland

School of Physics, Mathematics and Computing, The University of Western Australia, 35 Stirling Highway, Crawley, Perth, WA 6009, Australia

Department of Applied Biology, The National Institute of Horticultural Research, ul. Konstytucji 3 Maja 1/3, 96-100 Skierniewice, Poland

References (51)

Show source-provided references
1. Environmental regulation of stomatal development10.1016/j.pbi.2009.08.005 ↗
2. Ploidy differences affect leaf functional traits, but not water stress responses in a mountain endemic plant population10.1016/j.sajb.2020.11.029 ↗
3. Influence of ploidy level on morphology, growth and drought susceptibility in Spathiphyllum wallisii
4. StomaAI: An efficient and user-friendly tool for measurement of stomatal pores and density using deep computer vision10.1111/nph.18765 ↗
5. Wu, T.L., Chen, P.Y., Du, X., Wu, H., Ou, J.Y., Zheng, P.X., Wu, Y.L., Wang, R.S., Hsu, T.C., and Lin, C.Y. (2024). StomaVision: Stomatal trait analysis through deep learning. bioRxiv.10.1101/2024.04.24.590919 ↗
6. StomataCounter: A neural network for automatic stomata identification and counting10.1111/nph.15892 ↗
7. NIH Image to ImageJ: 25 years of image analysis10.1038/nmeth.2089 ↗
8. Microscope image based fully automated stomata detection and pore measurement method for grapevines10.1186/s13007-017-0244-9 ↗
9. The implementation of deep learning using Convolutional Neural Network to classify based on stomata microscopic image of curcuma herbal plants10.1088/1757-899X/851/1/012035 ↗
10. LabelStoma: A tool for stomata detection based on the YOLO algorithm10.1016/j.compag.2020.105751 ↗
11. An integrated method for tracking and monitoring stomata dynamics from microscope videos10.34133/2021/9835961 ↗
12. Stomata morphology measurement with interactive machine learning: Accuracy, speed, and biological relevance?10.1186/s13007-025-01416-2 ↗
13. Stomatal state identification and classification in quinoa microscopic imprints through deep learning10.1155/2021/9938013 ↗
14. Konopka, A., Struniawski, K., Kozera, R., Ortenzi, L., Marasek-Ciołakowska, A., and Machlańska, A. (2025). Deep Learning Classification of Blackcurrant Genotypes by Ploidy Levels on Stomata Microscopic Images. Computational Science—ICCS 2025 Workshops, Springer Nature.10.1007/978-3-031-97564-6_11 ↗
15. Backpropagation applied to handwritten zip code recognition10.1162/neco.1989.1.4.541 ↗
16. Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, L., and Polosukhin, I. (2017). Attention is all you need. arXiv.
17. An automatic plant leaf stoma detection method based on YOLOv510.1049/ipr2.12617 ↗
18. A survey on image data augmentation for deep learning10.1186/s40537-019-0197-0 ↗
19. In vitro tetraploid induction of the blackcurrant (Ribes nigrum L.) and preliminary phenotypic observations10.13080/z-a.2019.106.020 ↗
20. Haykin, S. (2008). Neural Networks and Learning Machines, Pearson. [3rd ed.].
21. Rosenblatt, F. (1957). The Perceptron—A Perceiving and Recognizing Automaton, Cornell Aeronautical Laboratory. Report 85-460-1.
22. Konopka, A., Struniawski, K., and Kozera, R. (2023, January 24–26). Performance analysis of Residual Neural Networks in soil bacteria microscopic image classification. Proceedings of the 37th Annual European Simulation and Modelling Conference, ESM 2023, Toulouse, France.
23. Slavutskii, L., Lazareva, N., Portnov, M., and Slavutskaya, E. (2022, January 21–23). Neural net without deep learning: Signal approximation by multilayer perceptron. Proceedings of the 2nd International Conference on Computer Applications for Management and Sustainable Development of Production and Industry (CMSD-II-2022), SPIE, Dushanbe, Tajikistan.10.1117/12.2669233 ↗
24. Wang, L., and Meng, Z. (2022). Multichannel two-dimensional Convolutional Neural Network based on interactive features and group strategy for chinese sentiment analysis. Sensors, 22.10.3390/s22030714 ↗
25. Konopka, A., Kozera, R., Sas-Paszt, L., Trzcinski, P., and Lisek, A. (2023). Identification of the selected soil bacteria genera based on their geometric and dispersion features. PLoS ONE, 18.10.1371/journal.pone.0293362 ↗
26. Automated imaging and machine learning for soil bacteria classification: Challenges and insights10.1016/j.engappai.2025.111369 ↗
27. Hsu, C.Y., Tseng, C.C., Lee, S.L., and Xiao, B.Y. (2020, January 28–30). Image classification using Convolutional Neural Networks with different convolution operations. Proceedings of the 2020 IEEE International Conference on Consumer Electronics—Taiwan (ICCE-Taiwan), Taoyuan, Taiwan.10.1109/ICCE-Taiwan49838.2020.9258148 ↗
28. LeCun, Y., Jackel, L.D., Bottou, L., Cortes, C., Denker, J.S., Drucker, H., Guyon, I., Muller, U.A., Sackinger, E., and Simard, P. (1995). Learning algorithms for classification: A comparison on handwritten digit recognition. Neural Networks, World Scientific.
29. Vang-Mata, R. (2020). Multilayer Perceptrons: Theory and Applications, Nova Science Publishers, Inc.
30. Zhao, L., and Zhang, Z. (2024). A improved pooling method for Convolutional Neural Networks. Sci. Rep., 14.10.1038/s41598-024-51258-6 ↗
31. He, K., Zhang, X., Ren, S., and Sun, J. (2016, January 27–30). Deep Residual Learning for image recognition. Proceedings of the 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA.10.1109/CVPR.2016.90 ↗
32. Borawar, L., and Kaur, R. (2023). ResNet: Solving Vanishing Gradient in Deep Networks. Proceedings of International Conference on Recent Trends in Computing, Springer Nature.10.1007/978-981-19-8825-7_21 ↗
33. Philipp, G., Song, D., and Carbonell, J.G. (May, January 30). Gradients explode—Deep networks are shallow—ResNet explained. Proceedings of the 6th International Conference on Learning Representations, ICLR 2018—Workshop Track Proceedings, Vancouver, BC, Canada.
34. He, K., Zhang, X., Ren, S., and Sun, J. (2016). Identity mappings in Deep Residual Networks. arXiv.10.1007/978-3-319-46493-0_38 ↗
35. Optimizing nonlinear activation function for convolutional neural networks10.1007/s11760-021-01863-z ↗
36. Azar, G.A., Emami, M., Fletcher, A., and Rangan, S. (2024, January 13–15). Learning embedding representations in high dimensions. Proceedings of the 2024 58th Annual Conference on Information Sciences and Systems (CISS), Princeton, NJ, USA.10.1109/CISS59072.2024.10480173 ↗
37. DAPE: Data-Adaptive Positional Encoding for length extrapolation
38. Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn, D., Zhai, X., Unterthiner, T., Dehghani, M., Minderer, M., Heigold, G., and Gelly, S. (2020). An image is worth 16x16 words: Transformers for image recognition at scale. arXiv.
39. A hybrid neuro-fuzzy approach for heterogeneous patch encoding in ViTs using contrastive embeddings and deep knowledge dispersion10.1109/ACCESS.2023.3302253 ↗
40. (2025, September 30). Keras. Available online: https://keras.io.
41. Kingma, D.P., and Ba, J. (2014). Adam: A method for stochastic optimization. arXiv.
42. Wolf, T., Debut, L., Sanh, V., Chaumond, J., Delangue, C., Moi, A., Cistac, P., Rault, T., Louf, R., and Funtowicz, M. (2020, January 16–20). Transformers: State-of-the-art natural language processing. Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, Online.10.18653/v1/2020.emnlp-demos.6 ↗
43. Loshchilov, I., and Hutter, F. (2017). Decoupled weight decay regularization. arXiv.
44. Paszke, A., Gross, S., Massa, F., Lerer, A., Bradbury, J., Chanan, G., Killeen, T., Lin, Z., Gimelshein, N., and Antiga, L. (2019). PyTorch: An imperative style, high-performance deep learning library. Advances in Neural Information Processing Systems 32, Curran Associates, Inc.
45. Clark, A. (2025, September 30). Pillow (PIL Fork) Documentation. Available online: https://buildmedia.readthedocs.org/media/pdf/pillow/latest/pillow.pdf.
46. Marcel, S., and Rodriguez, Y. (2010, January 25–29). Torchvision the machine-vision package of torch. Proceedings of the 18th ACM International Conference on Multimedia, Firenze, Italy. MM ’10.10.1145/1873951.1874254 ↗
47. Selvaraju, R.R., Cogswell, M., Das, A., Vedantam, R., Parikh, D., and Batra, D. (2016). Grad-CAM: Visual explanations from deep networks via gradient-based localization. arXiv.10.1109/ICCV.2017.74 ↗
48. Tan, M., and Le, Q.V. (2019). EfficientNet: Rethinking model scaling for Convolutional Neural Networks. arXiv.
49. Liu, Z., Mao, H., Wu, C.Y., Feichtenhofer, C., Darrell, T., and Xie, S. (2022). A ConvNet for the 2020s. arXiv.10.1109/CVPR52688.2022.01167 ↗
50. Liu, Z., Lin, Y., Cao, Y., Hu, H., Wei, Y., Zhang, Z., Lin, S., and Guo, B. (2021). Swin Transformer: Hierarchical Vision Transformer using shifted windows. arXiv.10.1109/ICCV48922.2021.00986 ↗
51. Zhu, L., Liao, B., Zhang, Q., Wang, X., Liu, W., and Wang, X. (2024). Vision Mamba: Efficient visual representation learning with bidirectional state space model. arXiv.