Comparative Study of Spectrometer Sensors for Corn Moisture Content Prediction and Machine Learning Models

Main Article Content

Harki Himawan
Muhammad Dzakky Alghifari
Rut Juniar Nainggolan
Mochmad Bagus Hermanto
Sandra
Nazmi Mat Nawi
Ken Abamba Omwange
Dimas Firmanda Al Riza

Abstract

Determining the right harvest time is crucial to ensure seed quality, with moisture content as the primary parameter. This study evaluated the ability of portable near-visible infrared (Vis-NIR) spectrometers (AS7265X, C12880MA, and AS7421) combined with partial least squares regression (PLSR) and artificial neural network (ANN) models to accurately predict corn moisture content. A total of 250 samples of corn variety NK 7207 were analyzed using spectral reflectance data processed with multiple scatter correction (MSC), standard normal variate (SNV), and wavelength selection. The C12880MA sensor provided the best results, with the PLSR model achieving a testing accuracy of R² = 0.91 and the ANN model achieving R² = 0.94. The results show that Vis-NIR portable spectrometer can accurately predict moisture content with high reliability as a non-destructive, low-cost, and efficient device. This technology can help farmers determine the optimal harvest time, improve seed quality, and support agricultural productivity.

Article Details

How to Cite
Himawan, H., Alghifari, M. D., Nainggolan, R. J., Hermanto, M. B., Sandra, Nawi, N. M., Omwange, K. A., & Al Riza, D. F. (2026). Comparative Study of Spectrometer Sensors for Corn Moisture Content Prediction and Machine Learning Models. CURRENT APPLIED SCIENCE AND TECHNOLOGY, e0267701. https://doi.org/10.55003/cast.2026.267701
Section
Original Research Articles

References

Abu-Khalaf, N., & Hmidat, M. (2020). Visible/near infrared (VIS/NIR) spectroscopy as an optical sensor for evaluating olive oil quality. Computers and Electronics in Agriculture, 173, Article 105445. https://doi.org/10.1016/j.compag.2020.105445

Adnan, A., von Hörsten, D., Pawelzik, E., & Mörlein, D. (2017). Rapid prediction of moisture content in intact green coffee beans using near infrared spectroscopy. Foods, 6(5), Article 38. https://doi.org/10.3390/foods6050038

Ashenafi, E. L., Nyman, M. C., Shelley, J. T., & Mattson, N. S. (2023). Spectral properties and stability of selected carotenoid and chlorophyll compounds in different solvent systems. Food Chemistry Advances, 2, Article 100178. https://doi.org/10.1016/j.focha.2022.100178

Aswin, C., Geetha, R., Sujatha, K., Vanniarajan, C., & Sivakumar, T. (2023). Effect of harvesting time on the seed quality of hybrid maize (Zea mays L.) COHM 8. Agricultural Science Digest, 43(5), 622-629. https://doi.org/10.18805/ag.D-5748

BPS-Statistics Indonesia. (2023). Corn and soybean production in Indonesia 2023. BPS-Statistics Indonesia.

Charilaou, P., & Battat, R. (2022). Machine learning models and over-fitting considerations. World Journal of Gastroenterology, 28(5), 605-607. https://doi.org/10.3748/wjg.v28.i5.605

Fatemi, A., Singh, V., & Kamruzzaman, M. (2022). Identification of informative spectral ranges for predicting major chemical constituents in corn using NIR spectroscopy. Food Chemistry, 383, Article 132442. https://doi.org/10.1016/j.foodchem.2022.132442

Heman, A., & Hsieh, C. L. (2016). Measurement of moisture content for rough rice by visible and near-infrared (NIR) spectroscopy. Engineering in Agriculture, Environment and Food, 9(3), 280-290. https://doi.org/10.1016/j.eaef.2016.02.002

Karoui, R. (2018). Spectroscopic technique: Fluorescence and ultraviolet-visible (UV-Vis) spectroscopies. In D.-W. Sun (Ed.). Modern techniques for food authentication (2nd ed., pp. 219-252). Elsevier Inc. https://doi.org/10.1016/b978-0-12-814264-6.00007-4

Lazim, S. S. R. M., Nawi, N. M., Chen, G., Jensen, T., & Rasli, A. M. M. (2016). Influence of different pre-processing methods in predicting sugarcane quality from near-infrared (NIR) spectral data. International Food Research Journal, 23, S231-S236.

Lepot, M., Aubin, J. B., Clemens, F. H. L. R., & Mašić, A. (2017). Outlier detection in UV/Vis spectrophotometric data. Urban Water Journal, 14(9), 908-921. https://doi.org/10.1080/1573062X.2017.1280515

Lin, L., He, Y., Xiao, Z., Zhao, K., Dong, T., & Nie, P. (2019). Rapid-detection sensor for rice grain moisture based on NIR spectroscopy. Applied Sciences, 9(8), Article 1654. https://doi.org/10.3390/app9081654

Liu, Y. J., Tran, T., Postma, G., Buydens, L. M. C., & Jansen, J. (2018). Estimating the number of components and detecting outliers using angle distribution of loading subspaces (ADLS) in PCA analysis. Analytica Chimica Acta, 1020, 17-29. https://doi.org/10.1016/j.aca.2018.03.044

Lopin, P., Nawsang, P., Laywisadkul, S., & Lopin, K. V. (2025). Evaluation of low-cost multi-spectral sensors for measuring chlorophyll levels across diverse leaf types. Sensors, 25(7), Article 2198. https://doi.org/10.3390/s25072198

Makky, M., Santosa, Putri, R. E., & Nakano, K. (2019). Determination of moisture content in rice using non-destructive short-wave near infrared spectroscopy. AIP Conference Proceedings, 2155, Article 5125518. https://doi.org/10.1063/1.5125518

Mehmood, T., Liland, K. H., Snipen, L., & Sæbø, S. (2012). A review of variable selection methods in partial least squares regression. Chemometrics and Intelligent Laboratory Systems, 118, 62-69. https://doi.org/10.1016/j.chemolab.2012.07.010

Nurba, D., Agustina, R., & Zahara, M. (2021). Study of changes in physical and chemical properties of corn during drying and storage process using a modified in-store dryer. IOP Conference Series: Earth and Environmental Science, 644(1), Article 012016. https://doi.org/10.1088/1755-1315/644/1/012016

Pal, K., & Patel, B. V. (2020). Data classification with k-fold cross validation and holdout accuracy estimation methods with 5 different machine learning techniques. Proceedings of the 4th international conference on computing methodologies and communication, ICCMC 2020, 83-87. https://doi.org/10.1109/ICCMC48092.2020.ICCMC-00016

Sandak, J., Sandak, A., Zitek, A., Hintestoisser, B., & Picchi, G. (2020). Development of low-cost portable spectrometers for detection of wood defects. Sensors, 20(2), Article 545. https://doi.org/10.3390/s20020545

Smiti, A. (2020). A critical overview of outlier detection methods. Computer Science Review, 38, Article 100306. https://doi.org/10.1016/j.cosrev.2020.100306

Sokołowski, P., Wróbel, M. S., & Karpienko, K. (2021). Design and implementation of the driver system for a Hamamatsu C12880MA microspectrometer. Photonics Letters of Poland, 13(2), 34-36. https://doi.org/10.4302/plp.v13i2.1103

Sonobe, R., Yamashita, H., Nofrizal, A. Y., Seki, H., Morita, A., & Ikka, T. (2022). Use of spectral reflectance from a compact spectrometer to assess chlorophyll content in Zizania latifolia. Geocarto International, 37(18), 5363-5375. https://doi.org/10.1080/10106049.2021.1914747

Sundaram, J., Mani, S., Kandala, C. V. K., & Holser, R. A. (2015). Application of NIR reflectance spectroscopy on rapid determination of moisture content of wood pellets. American Journal of Analytical Chemistry, 6(12), 923-932. https://doi.org/10.4236/ajac.2015.612088

Ulinnuha, A. R. I., Bahtiar, Z. A., Nauri, A. R., Rhamadan, I., Wulansari, R. C., & Iqbal, Z. (2021). The performance of the C12880MA MEMS sensor for classification of the roasting level of coffee bean. IOP Conference Series: Earth and Environmental Science, 924, Article 012021. https://doi.org/10.1088/1755-1315/924/1/012021

Uzair, M., & Jamil, N. (2020). Effects of hidden layers on the efficiency of neural networks. 2020 IEEE 23rd international multi-topic conference (INMIC) (pp. 1-6). IEEE. https://doi.org/10.1109/INMIC50486.2020.9318195

Zhang, Y., & Guo, W. (2020). Moisture content detection of maize seed based on visible/near-infrared and near-infrared hyperspectral imaging technology. International Journal of Food Science and Technology, 55(2), 631-640. https://doi.org/10.1111/ijfs.14317