Metaheuristic Optimized Fuzzy Ensemble for Maize Seed Quality Prediction Using Vis/NIR Spectroscopy
##plugins.themes.bootstrap3.article.main##
Abstract
Maize (Zea mays) seed quality assessment is essential for supporting agricultural productivity and sustainable seed management. This study proposes a non-destructive machine learning framework for predicting maize seed quality using portable Visible/Near-Infrared (Vis/NIR) spectroscopy. The framework integrates NIPPY-based spectral preprocessing, metaheuristic wavelength selection, and fuzzy ensemble learning to handle spectral noise, multicollinearity, and nonlinear relationships in small-sample spectral data. Informative wavelengths were selected using Genetic Algorithm (GA) and Particle Swarm Optimization (PSO). Two fuzzy ensemble models were developed: a Fuzzy Residual-Corrected Ensemble that refines predictions through residual-based fuzzy correction, and an RF+XGB Fuzzy Ensemble that combines Random Forest and XGBoost outputs using confidence-based fuzzy weighting. The models were evaluated for Moisture Content (MC), Germination Rate (GR), and Electrical Conductivity (EC) using repeated cross-validation, variability measures, and statistical validation. The proposed fuzzy ensemble models achieved R² values ranging from 0.8249 to 0.8689 and showed performance comparable to the strongest Random Forest baseline. Statistical comparison indicated that the main contribution of the fuzzy ensemble framework lies not in large gains in mean accuracy, but in prediction stability, residual correction, and uncertainty-aware modeling. SHAP-based explainability further identified physiologically meaningful wavelength regions, including visible pigment-related bands and near-infrared moisture-related bands. The dataset consists of 800 maize seed samples from four varieties under laboratory conditions, which limits generalization to field environments. Future work will focus on multi-location validation, domain adaptation, and real-time implementation. Overall, the proposed framework provides a statistically validated and interpretable approach for portable Vis/NIR-based maize seed quality prediction.
##plugins.themes.bootstrap3.article.details##
[2] R. M. Kamel, D. V. Assaha, M. El-kholy, and H. I. A. Elsawy, “Influence of maize (Zea mays L.) moisture content stored in various compacted multi-layer hermetic bags on seed quality and mycotoxins contamination,” J. Stored Prod. Res., vol. 107, p. 102319, Jun. 2024, doi: 10.1016/j.jspr.2024.102319.
[3] M. B. Abadía, L. A. Castillo, Y. N. Alonso, M. G. Monterubbianesi, G. Maciel, and R. E. Bartosik, “Germination and Vigor of Maize Seeds: Pilot-Scale Comparison of Low-Oxygen and Traditional Storage Methods,” Agriculture, vol. 14, no. 8, p. 1268, Aug. 2024, doi: 10.3390/agriculture14081268.
[4] S. Wang et al., “A Rapid and Quantitative Method for Determining Seed Viability Using 2,3,5-Triphenyl Tetrazolium Chloride (TTC): With the Example of Wheat Seed,” Molecules, vol. 28, no. 19, p. 6828, Sep. 2023, doi: 10.3390/molecules28196828.
[5] R. B. Hegde, V. Kudva, S. Nayak, N. Sampathila, and A. Thalengala, “Advanced techniques for seed quality assessment and germination monitoring,” Discov. Appl. Sci., vol. 7, no. 7, p. 690, Jul. 2025, doi: 10.1007/s42452-025-07284-8.
[6] Z. Ji, J. Zhu, J. Deng, F. Meng, H. Jiang, and Q. Chen, “High-precision identification of zearalenone contamination in wheat based on olfactory sensor combined with near-infrared spectroscopy,” J. Food Compos. Anal., vol. 145, p. 107805, Sep. 2025, doi: 10.1016/j.jfca.2025.107805.
[7] M. L. F. Simeone et al., “Portable near-infrared (NIR) spectroscopy and multivariate calibration for reliable quality control of maize and sorghum grain chemical composition,” J. Food Compos. Anal., vol. 134, p. 106502, Oct. 2024, doi: 10.1016/j.jfca.2024.106502.
[8] I. J. S. Ferreira, D. dos Santos Costa, L. A. Rolim, S. T. de Freitas, N. A. C. de Souza, and B. Teruel, “Monitoring pesticides with portable NIR spectroscopy in different intact fruits,” J. Food Compos. Anal., vol. 148, p. 108024, Dec. 2025, doi: 10.1016/j.jfca.2025.108024.
[9] D. A. S. Saputri, M. Fahri Reza Pahlawan, B. M. A. Murti, and R. E. Masithoh, “Vis/NIR spectroscopy for non-destructive method in detecting soybean seeds viability,” IOP Conf. Ser. Earth Environ. Sci., vol. 1038, no. 1, p. 012043, Jun. 2022, doi: 10.1088/1755-1315/1038/1/012043.
[10] D. G. D. Bernardo Oliveira, G. Gorla, E. P. de Medeiros, S. da S. Simões, J. M. Amigo, and M. F. Pimentel, “Cottonseed germination prediction with non-destructive NIR strategies,” Talanta, vol. 298, p. 129017, Feb. 2026, doi: 10.1016/j.talanta.2025.129017.
[11] K. B. Beć, J. Grabska, and C. W. Huck, “Interpretability in near-infrared (NIR) spectroscopy: Current pathways to the long-standing challenge,” TrAC Trends Anal. Chem., vol. 189, p. 118254, Aug. 2025, doi: 10.1016/j.trac.2025.118254.
[12] X. Wang et al., “Simultaneous estimation of multiple soil properties from vis-NIR spectra using a multi-gate mixture-of-experts with data augmentation,” Geoderma, vol. 453, p. 117127, Jan. 2025, doi: 10.1016/j.geoderma.2024.117127.
[13] Y. Wang et al., “NIRS-based detection advances in agriculture: Data enhancement, characteristic wavelength selection and modelling techniques,” Spectrochim. Acta Part A Mol. Biomol. Spectrosc., vol. 343, p. 126611, Dec. 2025, doi: 10.1016/j.saa.2025.126611.
[14] A. Khumaidi, R. Raafi’udin, and N. S. Triastuti, “Enhancing Ship Coating Quality Detection via Machine Learning-Optimized Visible Near-Infrared Spectroscopy,” Instrum. Mes. Métrologie, vol. 23, no. 6, pp. 441–450, Dec. 2024, doi: 10.18280/i2m.230604.
[15] T. Zhu and J. Xing, “Near-infrared spectroscopy and ensemble learning modeling for moisture detection in forest floor leaf litter,” Vib. Spectrosc., vol. 140, p. 103841, Sep. 2025, doi: 10.1016/j.vibspec.2025.103841.
[16] Z. Zou et al., “Research on nondestructive detection of sweet-waxy corn seed varieties and mildew based on stacked ensemble learning and hyperspectral feature fusion technology,” Spectrochim. Acta Part A Mol. Biomol. Spectrosc., vol. 322, p. 124816, Dec. 2024, doi: 10.1016/j.saa.2024.124816.
[17] R. Saatchi, “Fuzzy Logic Concepts, Developments and Implementation,” Information, vol. 15, no. 10, p. 656, Oct. 2024, doi: 10.3390/info15100656.
[18] A. Khumaidi, Y. A. Purwanto, H. Sukoco, and S. H. Wijaya, “Using Fuzzy Logic to Increase Accuracy in Mango Maturity Index Classification: Approach for Developing a Portable Near-Infrared Spectroscopy Device,” Sensors, vol. 22, no. 24, p. 9704, Dec. 2022, doi: 10.3390/s22249704.
[19] H. Ouifak and A. Idri, “A comprehensive review of fuzzy logic based interpretability and explainability of machine learning techniques across domains,” Neurocomputing, vol. 647, p. 130602, Sep. 2025, doi: 10.1016/j.neucom.2025.130602.
[20] Z. Shi, L. Chen, J. Duan, G. Chen, and K. Zhao, “Robust and fuzzy ensemble framework via spectral learning for random projection-based fuzzy-c-means clustering,” Eng. Appl. Artif. Intell., vol. 117, p. 105541, Jan. 2023, doi: 10.1016/j.engappai.2022.105541.
[21] J. Li et al., “Explainable AI opens the black-box model of spectral technique to trace agro-products origin: The case of kiwifruit,” Artif. Intell. Agric., vol. 235, p. 110354, Jun. 2026, doi: 10.1016/j.aiia.2026.05.010.
[22] M. T. Ahmed, M. W. Ahmed, and M. Kamruzzaman, “A systematic review of explainable artificial intelligence for spectroscopic agricultural quality assessment,” Comput. Electron. Agric., vol. 235, p. 110354, Aug. 2025, doi: 10.1016/j.compag.2025.110354.
[23] A. Savari, Y. Li, K. Alnefaie, and N. S. S. Singh, “State-of-the-art Machine Learning Advances in Reliability-based Design, Integrity Assessment, Inspection and Maintenance of Pipelines: A Systematic Review,” J. Pipeline Sci. Eng., p. 100528, May 2026, doi: 10.1016/j.jpse.2026.100528.
[24] P. Muthudoss et al., “Machine Learning-Enabled NIR Spectroscopy in Assessing Powder Blend Uniformity: Clear-Up Disparities and Biases Induced by Physical Artefacts,” AAPS PharmSciTech, vol. 23, no. 7, p. 277, Oct. 2022, doi: 10.1208/s12249-022-02403-9.
[25] J. Workman, Jr. and L. Weyer, Practical Guide to Interpretive Near-Infrared Spectroscopy. CRC Press, 2007. doi: 10.1201/9781420018318.
[26] A. Khumaidi, R. Raafiudin, S. Muis, D. Susanti, and R. Budiarto, “Embedded System Design and Control of a Portable Vis/NIR Spectroscopy with Hybrid XGBoost-ANFIS for Soybean Seed Quality Prediction,” Int. J. Robot. Control Syst., vol. 6, no. 1, 2026, doi: https://doi.org/10.31763/ijrcs.v6i1.2392.
[27] M. Eslamifar, H. Tavakoli, E. Thiessen, R. Kock, J. Correa, and E. Hartung, “Effective spectral pre-processing methods enhance accuracy of soil property prediction by NIR spectroscopy,” Discov. Appl. Sci., vol. 7, no. 8, p. 896, Aug. 2025, doi: 10.1007/s42452-025-07580-3.
[28] C. Yan, “A review on spectral data preprocessing techniques for machine learning and quantitative analysis,” iScience, vol. 28, no. 7, p. 112759, Jul. 2025, doi: 10.1016/j.isci.2025.112759.
[29] J. Torniainen, I. O. Afara, M. Prakash, J. K. Sarin, L. Stenroth, and J. Töyräs, “Open-source python module for automated preprocessing of near infrared spectroscopic data,” Anal. Chim. Acta, vol. 1108, pp. 1–9, Apr. 2020, doi: 10.1016/j.aca.2020.02.030.
[30] E. Pamukçu, “Efficient Wavelength Selection for Limited Near‐Infrared Spectral Data via Genetic Algorithm and Hybrid Regression,” J. Chemom., vol. 39, no. 3, Mar. 2025, doi: 10.1002/cem.70015.
[31] X.-H. Ma, Z.-G. Chen, S. Liu, J.-M. Liu, and X. Tian, “Wavelength selection method for near-infrared spectroscopy based on the combination of mutual information and genetic algorithm,” Talanta, vol. 286, p. 127573, May 2025, doi: 10.1016/j.talanta.2025.127573.
[32] H. Xue, X. Xu, and Y. Yang, “Variety classification and identification of corn seeds based on hyperspectral imaging technology,” IET Conf. Proc., vol. 2022, no. 18, pp. 174–177, Dec. 2022, doi: 10.1049/icp.2022.3219.
[33] J. H. Holland, Adaptation in Natural and Artificial Systems. The MIT Press, 1992. doi: 10.7551/mitpress/1090.001.0001.
[34] L. Breiman, “Random Forests,” Mach. Learn., vol. 45, no. 1, pp. 5–32, Oct. 2001, doi: 10.1023/A:1010933404324.
[35] J. Kennedy and R. Eberhart, “Particle swarm optimization,” in Proceedings of ICNN’95 - International Conference on Neural Networks, Boston, MA: IEEE, 2011, pp. 1942–1948. doi: 10.1109/ICNN.1995.488968.
[36] D. H. Wolpert, “Stacked generalization,” Neural Networks, vol. 5, no. 2, pp. 241–259, Jan. 1992, doi: 10.1016/S0893-6080(05)80023-1.
[37] L. A. Zadeh, “Fuzzy sets,” Inf. Control, vol. 8, no. 3, pp. 338–353, Jun. 1965, doi: 10.1016/S0019-9958(65)90241-X.
[38] J. H. Friedman, “Greedy function approximation: A gradient boosting machine.,” Ann. Stat., vol. 29, no. 5, Oct. 2001, doi: 10.1214/aos/1013203451.
[39] J. Ssali Nantongo, E. Serunkuma, G. Burgos, M. Nakitto, F. Davrieux, and R. Ssali, “Machine learning methods in near infrared spectroscopy for predicting sensory traits in sweetpotatoes,” Spectrochim. Acta Part A Mol. Biomol. Spectrosc., vol. 318, p. 124406, Oct. 2024, doi: 10.1016/j.saa.2024.124406.
[40] M. J. Yacomelo Hernández et al., “Application of Vis–NIR Spectroscopy and Machine Learning for Assessing Soil Organic Carbon in the Sierra Nevada de Santa Marta, Colombia,” Sustainability, vol. 18, no. 1, p. 513, Jan. 2026, doi: 10.3390/su18010513.
[41] X. Hao, Z. Chen, S. Yi, and J. Liu, “Application of improved Stacking ensemble learning in NIR spectral modeling of corn seed germination rate,” Chemom. Intell. Lab. Syst., vol. 243, p. 105020, Dec. 2023, doi: 10.1016/j.chemolab.2023.105020.
[42] O. Khater, A. Khater, A. S. Al-Nasr, S. Abozyd, B. Mortada, and Y. M. Sabry, “Advancing near-infrared spectroscopy: A synergistic approach through Bayesian optimization and model stacking,” Spectrochim. Acta Part A Mol. Biomol. Spectrosc., vol. 318, p. 124492, Oct. 2024, doi: 10.1016/j.saa.2024.124492.
[43] N. Veček, M. Črepinšek, and M. Mernik, “On the influence of the number of algorithms, problems, and independent runs in the comparison of evolutionary algorithms,” Appl. Soft Comput., vol. 54, pp. 23–45, May 2017, doi: 10.1016/j.asoc.2017.01.011.
[44] D. Rey and M. Neuhäuser, “Wilcoxon-Signed-Rank Test,” in International Encyclopedia of Statistical Science, Berlin, Heidelberg: Springer Berlin Heidelberg, 2011, pp. 1658–1659. doi: 10.1007/978-3-642-04898-2_616.
[45] G. E. Gignac and E. T. Szodorai, “Effect size guidelines for individual differences researchers,” Pers. Individ. Dif., vol. 102, pp. 74–78, Nov. 2016, doi: 10.1016/j.paid.2016.06.069.
[46] S. M. Lundberg and S.-I. Lee, “A unified approach to interpreting model predictions,” in Proceedings of the 31st International Conference on Neural Information Processing Systems, Red Hook, New York: USA: Curran Associates Inc, 2017, pp. 4768–4777.
[47] S. Rezaei, J. Buitink, and F. R. Hay, “Seed responses to change in ambient humidity and the consequences for storability,” J. Stored Prod. Res., vol. 109, p. 102477, Dec. 2024, doi: 10.1016/j.jspr.2024.102477.
[48] O. Matsuda and Y. Ohara, “Last-percent improvement in eligibility rates of crop seeds based on quality evaluation using near-infrared imaging spectrometry,” PLoS One, vol. 18, no. 9, p. e0291105, Sep. 2023, doi: 10.1371/journal.pone.0291105.
[49] L. Feng, T. Hou, B. Wang, and B. Zhang, “Assessment of rice seed vigour using selected frequencies of electrical impedance spectroscopy,” Biosyst. Eng., vol. 209, pp. 53–63, Sep. 2021, doi: 10.1016/j.biosystemseng.2021.06.011.
[50] D. Yang, Y. Zhou, Y. Jie, Q. Li, and T. Shi, “Non-destructive detection of defective maize kernels using hyperspectral imaging and convolutional neural network with attention module,” Spectrochim. Acta Part A Mol. Biomol. Spectrosc., vol. 313, p. 124166, May 2024, doi: 10.1016/j.saa.2024.124166.
[51] M. Masoudi and R. Khodabakhshian, “Genetic algorithm-optimized PLS for detecting adulteration in cinnamon powder via FT-IR spectroscopy,” Expert Syst. Appl., vol. 290, p. 128522, Sep. 2025, doi: 10.1016/j.eswa.2025.128522.
[52] A. Azedou, A. Amine, I. Kisekka, and S. Lahssini, “Genetic algorithm optimization of ensemble learning approach for improved land cover and land use mapping: Application to Talassemtane National Park,” Ecol. Indic., vol. 177, p. 113776, Aug. 2025, doi: 10.1016/j.ecolind.2025.113776.
[53] N. Singh et al., “Integrating NIR spectroscopy with machine learning and heuristic algorithm-assisted wavelength selection algorithms for protein content prediction in rice bean (Vigna umbellata L.),” Food Humanit., vol. 3, p. 100399, Dec. 2024, doi: 10.1016/j.foohum.2024.100399.
[54] Y. Wang, L. Xing, H.-J. He, J. Zhang, K. W. Chew, and X. Ou, “NIR sensors combined with chemometric algorithms in intelligent quality evaluation of sweetpotato roots from ‘Farm’ to ‘Table’: Progresses, challenges, trends, and prospects,” Food Chem. X, vol. 22, p. 101449, Jun. 2024, doi: 10.1016/j.fochx.2024.101449.

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.