Automated Pollen Classification via Subinstance Recognition: A Comprehensive Comparison of Classical and Deep Learning Architectures
Source abstract
Abstract
Pollen identification is critical for melissopalynology (honey authentication), ecological monitoring, and allergen tracking, yet manual microscopic analysis remains labor-intensive, subjective, and error-prone when multiple grains overlap in realistic samples. Existing automated approaches often fail to address multi-grain scenarios or lack systematic comparison across classical and deep learning paradigms, limiting their practical deployment. This study proposes a subinstance-based classification framework combining YOLOv12n object detection for grain isolation, independent classification via classical machine learning (ML), convolutional neural networks (CNNs), or Vision Transformers (ViTs), and majority voting aggregation. Five classical classifiers with systematic feature selection, three CNN architectures (ResNet50, EfficientNet-B0, ConvNeXt-Tiny), and three ViT variants (ViT-B/16, ViT-B/32, ViT-L/16) are evaluated on four datasets (full images vs. isolated grains; raw vs. CLAHE-preprocessed) for four berry pollen species (Ribes nigrum, Ribes uva-crispa, Lonicera caerulea, and Amelanchier alnifolia). Stratified image-level splits ensure no data leakage, and explainable AI techniques (SHAP, Grad-CAM++, and gradient saliency) validate biological interpretability across all paradigms. Results demonstrate that grain isolation substantially improves classical ML performance (F1 from 0.83 to 0.91 on full images to 0.96–0.99 on isolated grains, +8–13 percentage points), while deep learning excels on both levels (CNNs: F1 = 1.000 on full images with CLAHE; ViTs: F1 = 0.99). At the instance level, all paradigms converge to near-perfect discrimination (F1 ≥ 0.96), indicating sufficient capture of morphological information. Majority voting aggregation provides +3–5% gains for classical methods but only +0.3–4.8% for deep models already near saturation. Explainable AI analysis confirms that models rely on biologically meaningful cues: blue channel moments and texture features for classical ML (SHAP), grain boundaries and exine ornamentation for CNNs (Grad-CAM++), and distributed attention across grain structures for ViTs (gradient saliency). Qualitative validation on 211 mixed-pollen images confirms robust generalization to realistic multi-species samples. The proposed framework (YOLOv12n + SVC/ResNet50 + majority voting) is practical for deployment in honey authentication, ecological surveys, and fine-grained biological image analysis.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Allergic Rhinitis and Sensitization · Bee Products Chemical Analysis · Remote Sensing in Agriculture
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
Department of Applied Biology, The National Institute of Horticultural Research, ul. Konstytucji 3 Maja 1/3, 96-100 Skierniewice, Poland
Funding
National Institute of Horticultural Research in Skierniewice
References (54)
Show source-provided references
1. Kubera, E., Kubik-Komar, A., Kurasiński, P., Piotrowska-Weryszko, K., and Skrzypiec, M. (2022). Detection and Recognition of Pollen Grains in Multilabel Microscopic Images. Sensors, 22.10.3390/s22072690 ↗
2. Efficient, automated and robust pollen analysis using deep learning10.1111/2041-210X.13575 ↗
3. Puścion-Jakubik, A., Borawska, M.H., and Socha, K. (2020). Modern Methods for Assessing the Quality of Bee Honey and Botanical Origin Identification. Foods, 9.10.3390/foods9081028 ↗
4. Identification of pollen types of beekeeping interest by non-targeted mass spectrometry
5. Leponiemi, M., Freitak, D., Moreno-Torres, M., Pferschy-Wenzig, E.M., Becker-Scarpitta, A., Tiusanen, M., Vesterinen, E.J., and Wirta, H. (2023). Honeybees’ foraging choices for nectar and pollen revealed by DNA metabarcoding. Sci. Rep., 13.10.1038/s41598-023-42102-4 ↗
6. Hawkins, J., de Vere, N., Griffith, A., Ford, C.R., Allainguillaume, J., Hegarty, M.J., Baillie, L., and Adams-Groom, B. (2015). Using DNA Metabarcoding to Identify the Floral Composition of Honey: A New Tool for Investigating Honey Bee Foraging Preferences. PLoS ONE, 10.10.1371/journal.pone.0134735 ↗
7. Zhang, T., Jia, X., Cui, Y., and Zhang, H. (2025). GGD-YOLOv8n: A Lightweight Architecture for Edge-Computing-Optimized Allergenic Pollen Recognition with Cross-Scale Feature Fusion. Symmetry, 17.10.3390/sym17060849 ↗
8. Wang, J., Kambhampati, S., Allen, D.K., and Chen, L.Q. (2022). Comparative Metabolic Analysis Reveals a Metabolic Switch in Mature, Hydrated, and Germinated Pollen in Arabidopsis thaliana. Front. Plant Sci., 13.10.3389/fpls.2022.836665 ↗
9. Artificial intelligence-based classification of pollen grains using attention-guided pollen features aggregation network10.1016/j.jksuci.2023.01.013 ↗
10. Rostami, M.A., Balmaki, B., Dyer, L.A., Allen, J.M., Sallam, M.F., and Frontalini, F. (2023). Efficient pollen grain classification using pre-trained Convolutional Neural Networks: A comprehensive study. J. Big Data, 10.10.1186/s40537-023-00815-3 ↗
11. Viertel, P., and König, M. (2022). Pattern recognition methodologies for pollen grain image classification: A survey. Mach. Vis. Appl., 33.10.1007/s00138-021-01271-w ↗
12. Random radial basis function kernel-based support vector machine10.1016/j.jfranklin.2021.10.005 ↗
13. Solorio-Ramírez, J.L., Jiménez-Cruz, R., Villuendas-Rey, Y., and Yáñez-Márquez, C. (2023). Random forest Algorithm for the Classification of Spectral Data of Astronomical Objects. Algorithms, 16.10.3390/a16060293 ↗
14. Struniawski, K., Machlanska, A., Marasek-Ciolakowska, A., and Konopka, A. (2025). Pollen Classification Code Release: YOLOv12n Detection, Classical ML, CNN and ViT Classification with XAI Visualizations.
15. Battiato, S., Ortis, A., Trenta, F., Ascari, L., Politi, M., and Siniscalco, C. (2020, January 25–28). POLLEN13K: A Large Scale Microscope Pollen Grain Image Dataset. Proceedings of the 2020 IEEE International Conference on Image Processing (ICIP), Virtual.10.1109/ICIP40778.2020.9190776 ↗
16. Astolfi, G., Gonçalves, A.B., Menezes, G.V., Borges, F.S.B., Astolfi, A.C.M.N., Matsubara, E.T., Alvarez, M., and Pistori, H. (2020). POLLEN73S: An image dataset for pollen grains classification. Ecol. Inform., 60.10.1016/j.ecoinf.2020.101165 ↗
17. Valiente, J.M., Martín-Osuna, J.J., Peral, A.M., and Escriche, I. (2025). Assisting monofloral honey classification by automated pollen identification based on convolutional neural networks. Ecol. Inform., 90.10.1016/j.ecoinf.2025.103340 ↗
18. Chung, F., and Rodríguez, T. (2015). Automatic Pollen Grain and Exine Segmentation from Microscope Images. arXiv.
19. Murkute, J. (2021). Robust Pollen Imagery Classification with Generative Modeling and Mixup Training. arXiv.
20. Chen, X., and Ju, F. (2022). Automatic Classification of Pollen Grain Microscope Images Using a Multi-Scale Classifier with SRGAN Deblurring. Appl. Sci., 12.10.3390/app12147126 ↗
21. Nguyen, T. (2025). Improve Underwater Object Detection through YOLOv12 Architecture and Physics-informed Augmentation. arXiv.10.1007/978-981-95-4963-4_8 ↗
22. Zhou, C., He, H., Zhou, H., Ge, F., and Yu, P. (2025). MSRT-DETR: A novel RT-DETR model with multi-scale feature sequence for cell detection. Biomed. Signal Process. Control, 103.10.1016/j.bspc.2024.107378 ↗
23. Liu, J., Sun, P., Yuan, Y., Chen, Z., Tian, K., Gao, Q., Li, X., Xia, L., Zhang, J., and Xu, N. (2025). YOLOv12 Algorithm-Aided Detection and Classification of Lateral Malleolar Avulsion Fracture and Subfibular Ossicle Based on CT Images: Multicenter Study. JMIR Med. Inform., 13.10.2196/79064 ↗
24. Tang, G., Fei, X., Duan, W., Yan, R., Wu, X., and Wang, M. (2025). Construction of an efficient blood cell detection model for small targets and overlapping areas. AIP Adv., 15.10.1063/5.0296538 ↗
25. The WuC-Adam algorithm based on joint improvement of Warmup and cosine annealing algorithms10.3934/mbe.2024054 ↗
26. Ataman, F. (2025). Data Augmentation Techniques in Deep Image Processing. Deep Learning in Medical Signal and Image Processing, GI Global.10.4018/979-8-3693-9816-6.ch010 ↗
27. An optimal color image multilevel thresholding technique using grey-level co-occurrence matrix10.1016/j.eswa.2017.06.021 ↗
28. Gray level run length matrix based on various illumination normalization techniques for texture classification10.1007/s12065-018-0164-2 ↗
29. Variance Ranking Attributes Selection Techniques for Binary Classification Problem in Imbalance Data10.1109/ACCESS.2019.2899578 ↗
30. Machine Learning-Based Heart Disease Detection with ANOVA Feature Selection10.29304/jqcsm.2025.17.32427 ↗
31. Textural feature selection by joint mutual information based on Gaussian mixture model for multispectral image classification10.1016/j.patrec.2009.11.010 ↗
32. Gopika, N., and Kowshalaya M.E., A.M. (2018, January 15–16). Correlation Based Feature Selection Algorithm for Machine Learning. Proceedings of the 2018 3rd International Conference on Communication and Electronics Systems (ICCES), Coimbatore, India.10.1109/CESYS.2018.8723980 ↗
33. A computationally fast variable importance test for random forests for high-dimensional data10.1007/s11634-016-0276-4 ↗
34. Ng, A.Y. (2004). Feature selection, L1 vs. L2 regularization, and rotational invariance. Proceedings of the Twenty-First International Conference on Machine Learning-ICML’04, ACM Press. ICML’04.
35. Huang, N., Lu, G., and Xu, D. (2016). A Permutation Importance-Based Feature Selection Method for Short-Term Electricity Load Forecasting Using Random Forest. Energies, 9.10.3390/en9100767 ↗
36. Ahmed, R., Fahad, N., Miah, M.S.U., Hossen, M.J., Morol, M.K., Mahmud, M., and Mostafizur Rahman, M. (2024). A novel integrated logistic regression model enhanced with recursive feature elimination and explainable artificial intelligence for dementia prediction. Healthc. Anal., 6.10.1016/j.health.2024.100362 ↗
37. Akiba, T., Sano, S., Yanase, T., Ohta, T., and Koyama, M. (2019). Optuna: A Next-generation Hyperparameter Optimization Framework. arXiv.10.1145/3292500.3330701 ↗
38. Parmar, A., Katariya, R., and Patel, V. (2018). A Review on Random Forest: An Ensemble Classifier. International Conference on Intelligent Data Communication Technologies and Internet of Things (ICICI) 2018, Springer International Publishing.10.1007/978-3-030-03146-6_86 ↗
39. Wang, J., Chen, Q., and Chen, Y. (2004). RBF Kernel Based Support Vector Machine with Universal Approximation and Its Application. Advances in Neural Networks–ISNN 2004, Springer.10.1007/978-3-540-28647-9_85 ↗
40. Kramer, O. (2013). K-Nearest Neighbors. Dimensionality Reduction with Unsupervised Nearest Neighbors, Springer.10.1007/978-3-642-38652-7 ↗
41. Qin, J., and Lou, Y. (2019, January 3–6). L1-2 Regularized Logistic Regression. Proceedings of the 2019 53rd Asilomar Conference on Signals, Systems, and Computers, Pacific Grove, CA, USA.10.1109/IEEECONF44664.2019.9048830 ↗
42. Struniawski, K., Kozera, R., and Konopka, A. (2023). Performance of Selected Nature-Inspired Metaheuristic Algorithms Used for Extreme Learning Machine. Computational Science–ICCS 2023, Springer Nature.10.1007/978-3-031-36024-4_38 ↗
43. Struniawski, K., and Kozera, R. (2024). TfELM: Extreme Learning Machines framework with Python and TensorFlow. SoftwareX, 27.10.1016/j.softx.2024.101833 ↗
44. Mascarenhas, S., and Agarwal, M. (2021, January 19–21). A comparison between VGG16, VGG19 and ResNet50 architecture frameworks for Image Classification. Proceedings of the 2021 International Conference on Disruptive Technologies for Multi-Disciplinary Research and Applications (CENTCON), Bengaluru, India.10.1109/CENTCON52345.2021.9687944 ↗
45. Vingerhoeds, W.R., and De Saqui-Sannes, P. (2023). Performance Analysis of Residual Neural Networks in Soil Bacteria Microscopic Image Classification. Proceedings of the Modelling and Simulation’2023: The 2023 European Simulation and Modelling Conference.
46. ResNet-50 vs. EfficientNet-B0: Multi-Centric Classification of Various Lung Abnormalities Using Deep Learning10.1016/j.procs.2024.04.007 ↗
47. Xia, J., Yin, Y., and Li, X. (2025). An Efficient Medical Image Classification Method Based on a Lightweight Improved ConvNeXt-Tiny Architecture. arXiv.
48. Heo, J., Seo, S., and Kang, P. (2023). Exploring the differences in adversarial robustness between ViT- and CNN-based models using novel metrics. Comput. Vis. Image Underst., 235.10.1016/j.cviu.2023.103800 ↗
49. Hong, S., Wu, J., Zhu, L., and Chen, W. (2024). Brain tumor classification in VIT-B/16 based on relative position encoding and residual MLP. PLoS ONE, 19.10.1371/journal.pone.0298102 ↗
50. Srivastava, D., and Niedzielski, A. (2025). Vision Transformer for Transient Noise Classification. arXiv.
51. Azam, M.T., Balaha, H.M., Ali, K.M., Mekky, N.E., Hikal, N.A., Ghazal, M., Gondim, D.D., Mistry, A., and El-Baz, A. (2024, January 27–30). A Novel Vit-Based Multi-Scaled and Rotation-Invariance Approach for Precise Differentiation Between Meningioma and Solitary Fibrous Tumor. Proceedings of the 2024 IEEE International Symposium on Biomedical Imaging (ISBI), Athens, Greece.10.1109/ISBI56570.2024.10635228 ↗
52. Lundberg, S., and Lee, S.I. (2017). A Unified Approach to Interpreting Model Predictions. arXiv.
53. Chattopadhay, A., Sarkar, A., Howlader, P., and Balasubramanian, V.N. (2018, January 12–15). Grad-CAM++: Generalized Gradient-Based Visual Explanations for Deep Convolutional Networks. Proceedings of the 2018 IEEE Winter Conference on Applications of Computer Vision (WACV), Lake Tahoe, NV, USA.10.1109/WACV.2018.00097 ↗
54. Simonyan, K., Vedaldi, A., and Zisserman, A. (2014). Deep Inside Convolutional Networks: Visualising Image Classification Models and Saliency Maps. arXiv.