Feature-based classification of sugarcane quality using the K-nearest neighbor algorithm

Authors

  • Nur Indrianti Department of Industrial Engineering, Faculty of Industrial Engineering, Universitas Pembangunan Nasional Veteran Yogyakarta, Indonesia
  • Muhammad Iqbal Department of Industrial Engineering, Faculty of Industrial Engineering, Universitas Pembangunan Nasional Veteran Yogyakarta, Indonesia
  • Heru Cahya Rustamaji Department of Informatics, Faculty of Industrial Engineering, Universitas Pembangunan Nasional Veteran Yogyakarta, Indonesia https://orcid.org/0000-0001-8283-863X
  • Andrey Ferriyan Department of Informatics, Faculty of Industrial Engineering, Universitas Pembangunan Nasional Veteran Yogyakarta, Indonesia https://orcid.org/0000-0001-5145-8490
  • Panut Mulyono Department of Chemical Engineering, Faculty of Engineering, Universitas Gadjah Mada, Indonesia https://orcid.org/0000-0002-5326-4339
  • Moh. Ais Ananta Department of Industrial Engineering, Faculty of Industrial Engineering, Universitas Pembangunan Nasional Veteran Yogyakarta, Indonesia

DOI:

https://doi.org/10.31315/opsi.v18i2.16000

Keywords:

Sugarcane quality, Bululawang variety, K-Nearest Neighbor, Non-destructive classification, Sustainable agro-industry

Abstract

The rapid advancement of artificial intelligence has enabled practical, data-driven approaches to agricultural quality assessment. However, many existing methods rely on complex sensor systems that are costly and difficult to deploy in the field. This study proposes a lightweight and interpretable K-Nearest Neighbor (KNN) model for non-destructive evaluation of sugarcane milling feasibility using five easily measurable physical attributes: relative distance ratio, internode length, mean diameter, circumference, and weight per centimeter. Samples with Brix less than 16 are categorized as not feasible for milling, while Brix equal to or greater than 16 are classified as possible. A dataset of 1,889 Bululawang samples collected in Malang, East Java, Indonesia, was evaluated across twenty-two scenarios that varied the train-test split, normalization method, distance metric, and neighborhood size. The optimal configuration, consisting of an 80:20 split, Standard normalization, the Minkowski distance metric, and k=75, achieved an accuracy of 78%. The findings confirm that physical measurements can serve as effective predictors of sugarcane quality and support data-driven inspection and sustainable resource utilization in line with SDGs 2, 9, and 12.

References

[1] P. Chauhan, M. Kaushal, D. Vaidya, A. Gupta, F. Ansari, and S. Patidar, “Storage Stability of Sugarcane Stalks,” Asian J. Dairy Food Res., no. Of, 2024, doi: 10.18805/ajdfr.dr-2126.

[2] S. Bhatia, Jyoti, S. K. Uppal, K. S. Thind, and S. K. Batta, “Post harvest quality deterioration in sugarcane under different environmental conditions,” Sugar Tech, vol. 11, no. 2, 2009, doi: 10.1007/s12355-009-0023-7.

[3] F. Ergasi, A. Q. Khan, and E. O. Keyata, “Effect of storage periods on quality characteristics and sugar yield of pre-harvest burnt and unburnt cane of sugarcane varieties (Saccharum spp. hybrid) at Finchaa Sugar Factory, Oromia, Ethiopia,” Cogent Food Agric., vol. 9, no. 1, 2023, doi: 10.1080/23311932.2023.2258776.

[4] G. D. Urgesa and E. O. Keyata, “Effect of storage periods and conditions on juice quality characteristics of sugarcane (Saccharum officinarum sp. Hybrid) at Finchaa sugar factory, Oromia, Ethiopia,” Vegetos, vol. 37, no. 4, 2024, doi: 10.1007/s42535-023-00678-2.

[5] V. Misra, A. K. Mall, S. Solomon, and M. I. Ansari, “Post-harvest biology and recent advances of storage technologies in sugarcane,” 2022. doi: 10.1016/j.btre.2022.e00705.

[6] South African Sugarcane Research Institute, “Determining crop maturity for purposes of cane quality management (Information Sheet 4.7),” Mount Edgecombe, South Africa, 2022.

[7] L. de P. Corrêdo, J. P. Molin, and R. Canal Filho, “Is It Possible to Measure the Quality of Sugarcane in Real-Time during Harvesting Using Onboard NIR Spectroscopy?,” AgriEngineering, vol. 6, no. 1, 2024, doi: 10.3390/agriengineering6010005.

[8] M. Suyal and P. Goyal, “A Review on Analysis of K-Nearest Neighbor Classification Machine Learning Algorithms based on Supervised Learning,” 2022. doi: 10.14445/22315381/IJETT-V70I7P205.

[9] M. Waleed, T. W. Um, T. Kamal, and S. M. Usman, “Classification of agriculture farm machinery using machine learning and internet of things,” Symmetry (Basel)., vol. 13, no. 3, 2021, doi: 10.3390/sym13030403.

[10] M. K. Senapaty, A. Ray, and N. Padhy, “A decision support system for crop recommendation using machine learning classification algorithms,” Agriculture, vol. 14, no. 8, p. 1256, 2024.

[11] I. G. I. Sudipa, R. A. Azdy, I. Arfiani, N. M. Setiohardjo, and others, “Leveraging k-nearest neighbors for enhanced fruit classification and quality assessment,” Indones. J. Data Sci., vol. 5, no. 1, pp. 30–36, 2024.

[12] A. Gupta and P. Nahar, “Classification and yield prediction in smart agriculture system using IoT,” J. Ambient Intell. Humaniz. Comput., vol. 14, no. 8, 2023, doi: 10.1007/s12652-021-03685-w.

[13] S. O. Araujo, R. S. Peres, J. C. Ramalho, F. Lidon, and J. Barata, “Machine learning applications in agriculture: current trends, challenges, and future perspectives,” Agronomy, vol. 13, no. 12, p. 2976, 2023.

[14] M. V. Subbarao, J. T. S. Sindhu, Y. C. A. Padmanabha Reddy, V. Ravuri, K. P. Vasavi, and G. C. Ram, “Performance Analysis of Feature Selection Algorithms in the Classification of Dry Beans using KNN and Neural Networks,” in 2nd International Conference on Sustainable Computing and Data Communication Systems, ICSCDS 2023 - Proceedings, 2023. doi: 10.1109/ICSCDS56580.2023.10104809.

[15] T. K. Mishra, S. K. Mishra, K. J. Sai, B. S. Alekhya, and A. R. Nishith, “Crop Recommendation System using KNN and Random Forest considering Indian Data set,” in Proceedings - 2021 19th OITS International Conference on Information Technology, OCIT 2021, 2021. doi: 10.1109/OCIT53463.2021.00068.

[16] Y. Li and S. Ercisli, “Data-efficient crop pest recognition based on KNN distance entropy,” Sustain. Comput. Informatics Syst., vol. 38, 2023, doi: 10.1016/j.suscom.2023.100860.

[17] X. Chao and Y. Li, “Semisupervised Few-Shot Remote Sensing Image Classification Based on KNN Distance Entropy,” IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens., vol. 15, 2022, doi: 10.1109/JSTARS.2022.3213749.

[18] S. Zhang, “Challenges in KNN Classification,” IEEE Trans. Knowl. Data Eng., vol. 34, no. 10, 2022, doi: 10.1109/TKDE.2021.3049250.

[19] V. Gurunathan, T. Sathiya Priya, J. Dhanasekar, M. Ishwarya Niranjana, and S. Suganya, “Plant Leaf Diseases Detection Using KNN Classifier,” in 2023 9th International Conference on Advanced Computing and Communication Systems, ICACCS 2023, 2023. doi: 10.1109/ICACCS57279.2023.10112901.

[20] V. Gurunathan, T. Sathiya Priya, J. Dhanasekar, M. Ishwarya Niranjana, and S. Suganya, “Plant Leaf Diseases Detection Using KNN Classifier,” in 9th International Conference on Advanced Computing and Communication Systems, (ICACCS ), IEEE, 2023, pp. 2157–2162. doi: 10.1109/ICACCS57279.2023.10112901.

[21] A. Taner, M. T. Mengstu, K. Ç. Selvi, H. Duran, İ. Gür, and N. Ungureanu, “Apple Varieties Classification Using Deep Features and Machine Learning,” Agric., vol. 14, no. 2, 2024, doi: 10.3390/agriculture14020252.

[22] R. Yunita, R. S. Hartati, S. Suhesti, and Syafaruddin, “Response of bululawang sugarcane variety to salt stress,” in IOP Conference Series: Earth and Environmental Science, 2020. doi: 10.1088/1755-1315/418/1/012060.

[23] S. Budi, A. E. Prihatiningrum, N. D. P. Budiono, N. E. W. Budianto, and R. Agustina, “Genetic diversity and yields of promising sugarcane clones under ratoon crop in a rainfed land,” Aust. J. Crop Sci., vol. 19, no. 5, pp. 539–547, 2025.

[24] J. Li et al., “KRA: K-Nearest Neighbor Retrieval Augmented Model for Text Classification,” Electronics, vol. 13, no. 16, p. 3237, 2024.

[25] OECD/FAO, “OECD-FAO Agricultural Outlook 2020-2029,” Rome/OECD Publishing, Paris, 2020. doi: https://doi.org/10.1787/1112c23b-en.

[26] International Energy Agency, “Renewables 2021: Analysis and forecast to 2026,” 2021.

[27] Climate Action Tracker, “Indonesia: Policies and action,” 2024.

[28] A. L. Duguma and X. Bai, “How the internet of things technology improves agricultural efficiency,” Artif. Intell. Rev., vol. 58, no. 2, p. 63, 2024.

[29] W. Wang, Z. Li, and Q. Meng, “Digital Transformation Drivers, Technologies, and Pathways in Agricultural Product Supply Chains: A Comprehensive Literature Review,” Appl. Sci., vol. 15, no. 19, p. 10487, 2025.

Downloads

Published

2025-12-30