Non-Destructive Oil Palm Ripeness Detection using Multisensor Electronic Nose and Random Forest
Authors
Tia Purnami , Sri Lestari , Shabri Putra Wirman , Neneng FitryaDOI:
10.29303/jrpb.v14i1.1221Published:
2026-03-26Issue:
Vol. 14 No. 1 (2026): Jurnal Ilmiah Rekayasa Pertanian dan BiosistemKeywords:
hidung elektronik, kelapa sawit, Random Forest, kematangan buah, sensor gasArticles
Downloads
How to Cite
Downloads
Abstract
Accurate determination of oil palm fresh fruit bunch (FFB) ripeness is crucial to ensure crude palm oil (CPO) quality, yet conventional visual inspection remains subjective and inconsistent. This study proposes a non-destructive ripeness detection system based on a multisensor electronic nose combined with a Random Forest classifier. The system employs five metal oxide semiconductor gas sensors (MQ-2, MQ-3, MQ-4, MQ-5, and MQ-135) integrated with an ESP32 microcontroller to capture volatile organic compounds emitted during fruit ripening. Sensor signals were transformed into seven statistical features, including maximum, minimum, delta, mean, standard deviation, area under the curve, and slope. The dataset was divided into 70% training data and 30% testing data, and model performance was evaluated using a confusion matrix. The results demonstrated an accuracy of 95.3%, precision of 94.8%, recall of 95.1%, and an F1-score of 95.0%. The proposed system successfully classified oil palm fruits into four ripeness levels: unripe, underripe, ripe, and overripe. These findings indicate that the developed electronic nose system provides an objective and reliable approach for oil palm ripeness assessment, with strong potential to support harvesting decisions and quality control in the palm oil industry.
References
Akbar, A. R. M., Wibowo, A. D., & Santoso, R. (2023). Investigation on the optimal harvesting time of oil palm fruit. Jurnal Teknik Pertanian Lampung (Journal of Agricultural Engineering), 12(2), 524–532. https://doi.org/10.23960/jtep-l.v12i2.524-532 DOI: https://doi.org/10.23960/jtep-l.v12i2.524-532
Alfatni, M. S. M., Khairunniza-Bejo, S., Marhaban, M. H. B., Saaed, O. M. B., Mustapha, A., & Shariff, A. R. M. (2022). Towards a real-time oil palm fruit maturity system using supervised classifiers based on feature analysis. Agriculture (Switzerland), 12(9), 1461. https://doi.org/10.3390/agriculture12091461 DOI: https://doi.org/10.3390/agriculture12091461
Chicco, D., & Jurman, G. (2020). The advantages of the Matthews correlation coefficient (MCC) over F1 score and accuracy in binary classification evaluation. BMC Genomics, 21(1), 1–13. https://doi.org/10.1186/s12864-019-6413-7 DOI: https://doi.org/10.1186/s12864-019-6413-7
Chong, W. H., Ramli, N. A., Wan Mustafa, W. M. R., & Awalin, L. J. (2025). Computer vision and artificial intelligence (AI)-based ripeness classification of oil palm fruits in oil palm plantations. ASEAN Artificial Intelligence Journal, 2(1), 44–58. https://doi.org/10.37934/aaij.2.1.4458 DOI: https://doi.org/10.37934/aaij.2.1.4458
Gavrilenko, O. V. (2020). Social technologies as research field and instrument of social transformations. Moscow State University Bulletin. Series 18. Sociology and Political Science, 25(4), 77–94. https://doi.org/10.24290/1029-3736-2019-25-4-77-94 DOI: https://doi.org/10.24290/1029-3736-2019-25-4-77-94
Goh, J. Y., Md Yunos, Y., & Mohamed Ali, M. S. (2025). Fresh fruit bunch ripeness classification methods: A review. Food and Bioprocess Technology, 18(1), 183–206. https://doi.org/10.1007/s11947-024-03483-0 DOI: https://doi.org/10.1007/s11947-024-03483-0
Han, M., & Yi, C. (2025). Deep convolutional neural networks for palm fruit maturity classification. arXiv, 1–9. http://arxiv.org/abs/2502.20223
Hasibuan, A. A., Amran Nst, A. A., Antoni, A., Handika, R., Yanto, B., & Zulkifli, A. (2024). Advanced classification of oil palm fruit ripeness using ResNet50 and real-time image analysis for enhanced agricultural practices. Journal of ICT Applications and System, 3(2), 75–84. https://doi.org/10.56313/jictas.v3i2.395 DOI: https://doi.org/10.56313/jictas.v3i2.395
Himmah, E. F., Widyaningsih, M., & Maysaroh, M. (2020). Identifikasi kematangan buah kelapa sawit berdasarkan warna RGB dan HSV menggunakan metode K-Means clustering. Jurnal Sains dan Informatika, 6(2), 193–202. https://doi.org/10.34128/jsi.v6i2.242 DOI: https://doi.org/10.34128/jsi.v6i2.242
Husein, I. R., Shiddiq, M., Sari, D. L., & Putri, A. (2022). Wavelength dependence of optical electronic nose for ripeness detection of oil palm fresh fruits. Science, Technology and Communication Journal, 2(3), 73–80. https://doi.org/10.59190/stc.v2i3.212 DOI: https://doi.org/10.59190/stc.v2i3.212
Kremer, L., Booth, L., Fleming, K., & Abad, J. (2020). Using serious gaming to explore how uncertainty affects stakeholder decision-making across the science-policy divide during disasters. International Journal of Disaster Risk Reduction, 51, 101802. https://doi.org/10.1016/j.ijdrr.2020.101802 DOI: https://doi.org/10.1016/j.ijdrr.2020.101802
Mansour, M. Y. M. A., Dambul, K. D., & Choo, K. Y. (2022). Object detection algorithms for ripeness classification of oil palm fresh fruit bunch. International Journal of Technology, 13(6), 1326–1335. https://doi.org/10.14716/ijtech.v13i6.5932 DOI: https://doi.org/10.14716/ijtech.v13i6.5932
Rakshitha, K. (2024). Integration of MQ-5 gas sensors with Arduino board. Journal of Electrical Systems, 20(10s), 2154–2165. https://doi.org/10.52783/jes.5540 DOI: https://doi.org/10.52783/jes.5540
Refalista, A., Irawati, R., Irawan, I., & Wisjhnuadji, T. W. (2023). Penggunaan sensor MQ-2, MQ-4, MQ-7, MQ-135 dan ESP32 untuk air pollution monitoring berbasis internet of things. Jurnal Ticom: Technology of Information and Communication, 12(1), 31–36. https://doi.org/10.70309/ticom.v12i1.104 DOI: https://doi.org/10.70309/ticom.v12i1.104
Rizzo, M., Marcuzzo, M., Zangari, A., Gasparetto, A., & Albarelli, A. (2023). Fruit ripeness classification: A survey. Artificial Intelligence in Agriculture, 7, 44–57. https://doi.org/10.1016/j.aiia.2023.02.004 DOI: https://doi.org/10.1016/j.aiia.2023.02.004
Salman, H. A., Kalakech, A., & Steiti, A. (2024). Random forest algorithm overview. Babylonian Journal of Machine Learning, 2024, 69–79. https://doi.org/10.58496/bjml/2024/007 DOI: https://doi.org/10.58496/BJML/2024/007
Schonlau, M., & Zou, R. Y. (2020). The random forest algorithm for statistical learning. Stata Journal, 20(1), 3–29. https://doi.org/10.1177/1536867X20909688 DOI: https://doi.org/10.1177/1536867X20909688
Shahidi, S., Samadzai, A. W., & Shahbazi, H. (2025). Effective data preprocessing in data science: From method selection to domain-specific optimization. Journal of Data Science Applications, 2(4), 84–90. DOI: https://doi.org/10.29103/jacka.v2i4.22886
Shuaib, S. E., Riyapan, P., Jumrat, S., Pianroj, Y., & Muangprathub, J. (2024). Predictions of oil volume in palm fruit and estimates of their ripeness: A comparative study of machine learning algorithms. Acta Agrobotanica, 77, 1–18. https://doi.org/10.5586/AA/196387 DOI: https://doi.org/10.5586/aa/196387
Sitanggang, D., Sitompul, C. S., Suyanto, J. H., Kumar, S., & Indra, E. (2022). Analysis of air quality measuring device using internet of things-based MQ-135 sensor. SinkrOn, 7(3), 1078–1084. https://doi.org/10.33395/sinkron.v7i3.11618 DOI: https://doi.org/10.33395/sinkron.v7i3.11618
Sohibun, Daruwati, I., Hatika, R. G., & Mardiansyah, D. (2021). MQ-2 gas sensor using micro controller Arduino Uno for LPG leakage with short message service as a media information. Journal of Physics: Conference Series, 2049(1), 012068. https://doi.org/10.1088/1742-6596/2049/1/012068 DOI: https://doi.org/10.1088/1742-6596/2049/1/012068
Sumarsono, J., Murad, Widhiantari, I. A., Hidayat, S., Arief, U. M., & Andrasto, T. (2023). The best combination of gas sensor and machine learning classification algorithm in detecting mango (Mangifera indica L.) quality. Atlantis Press International BV. https://doi.org/10.2991/978-94-6463-274-3_11 DOI: https://doi.org/10.2991/978-94-6463-274-3_11
Tharwat, A. (2018). Classification assessment methods. Applied Computing and Informatics, 17(1), 168–192. https://doi.org/10.1016/j.aci.2018.08.003 DOI: https://doi.org/10.1016/j.aci.2018.08.003
Ye, Z., Liu, Y., & Li, Q. (2021). Recent progress in smart electronic nose technologies enabled with machine learning methods. Sensors, 21(22), 7620. https://doi.org/10.3390/s21227620 DOI: https://doi.org/10.3390/s21227620
Zhou, X., Wen, H., Zhang, Y., Xu, J., & Zhang, W. (2021). Landslide susceptibility mapping using hybrid random forest with GeoDetector and RFE for factor optimization. Geoscience Frontiers, 12(5), 101211. https://doi.org/10.1016/j.gsf.2021.101211 DOI: https://doi.org/10.1016/j.gsf.2021.101211
License
Copyright (c) 2026 Tia Purnami, Sri Lestari, Shabri Putra Wirman, Neneng Fitrya

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License 4.0 International License (CC-BY-SA License). This license allows authors to use all articles, data sets, graphics, and appendices in data mining applications, search engines, web sites, blogs, and other platforms by providing an appropriate reference. The journal allows the author(s) to hold the copyright without restrictions and will retain publishing rights without restrictions.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in Jurnal Ilmiah Rekayasa Pertanian dan Biosistem (JRPB).
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).







