A Rule-Based Approach for Oil Palm Fruit Ripeness Detection using Machine Vision

Main Article Content

Pauline Ong
Jia Hang Wu
Tze Ching Ong
Kee Huong Lai
Nur Fathieyah Sulaiman

Abstract

In the oil palm industry, the grading process of oil palm fruits is conducted manually by trained inspectors via visual examination. Laborious and prone to human error, this process results in fruit ripeness being determined subjectively based on some developed standards.  This study presents the development of an automatic grading system for oil palm fruit ripeness using red-green-blue (RGB) channel and rule-based classification. The grading system consists of four main stages: (i) image acquisition using camera and computer; (ii) image processing involving the segmentation of oil palm fruit; (iii) calculation of mean colour intensity based on the RGB colour model; and (iv) determination of oil palm fruit ripeness using the rule-based classification. Several features are extracted from the RGB channel and based on these extracted features; simple classification rules are formed to identify fruit ripeness. The maturity of oil palm fruits is then classified into two categories, ripe and unripe. Thirty-nine samples of oil palm fruits, comprising 21 ripe fruits and 18 unripe ones, are used to develop the classification rule. A graphical user interface (GUI) is developed using Matlab software to assist with the grading system whereby all the relevant image processing steps are coded into the GUI. The validity of the grading system is tested using nine samples of oil palm fruits (four ripe and five unripe) and the classification accuracy, sensitivity and specificity of 77.78 – 88.89%, 75%, and 80 – 100% respectively are achieved based on the established classification rule. Performance comparison with fuzzy logic indicates the promising potential of these simple classification rules as well.

Article Details

How to Cite
[1]
Pauline Ong, Jia Hang Wu, Tze Ching Ong, Kee Huong Lai, and Nur Fathieyah Sulaiman, “A Rule-Based Approach for Oil Palm Fruit Ripeness Detection using Machine Vision”, Journal of Engineering Technology and Applied Physics, vol. 8, no. 1, pp. 6–11, Mar. 2026.
Section
Regular Paper for Journal of Engineering Technology and Applied Physics

References

C. C. Teik, “Examining the Role of Estate Factors, Fresh Fruit Bunch Processing and Logistics Efficiency on Oil Extraction Rate,” PhD. Dissertation, University Sains Malaysia, 2021.

Oil Palm Fruit Grading Manual, 2nd Edn. Malaysian Palm Oil Board (MPOB), Bangi, Malaysia, pp. vii, 40, 2003.

M. S. Alam, C. K. Saha, M. M. Alam and M. A. R. Sarkar, "Impact of Climate Change on Rainfall Intensity in Bangladesh," IOP Conf. Ser.: Earth Environ. Sci., vol. 540, no. 1, pp. 012092, 2020.

M. Abdullah, L. Guan and B. M. Azemi, "Stepwise Discriminant Analysis for Colour Grading of Oil Palm using Machine Vision System," Food Bioprod. Process., vol. 79, no. 4, pp. 223–231, 2001.

S. N. A. Abdullah, W. I. W. Ismail and M. F. Jamlos, "Commercial Colorimeter-Based Ripeness Classification System for Oil Palm Fresh Fruit Bunches: A Comparative Performance Analysis," Measurement, vol. 216, pp. 112934, 2023.

M. Makky and P. Soni, "Development of An Automatic Grading Machine for Oil Palm Fresh Fruits Bunches (FFBs) Based on Machine Vision," Comput. Electron. Agric., vol. 93, pp. 129–139, 2013.

K. H. Ghazali, R. Samad, N. W. Arshad and R. A. Karim, "Image Processing Analysis of Oil Palm Fruits for Automatic Grading," in Proc. Int. Conf. Instrum., Control Autom., Bandung, Indonesia, pp. 75-78, 2009.

M. S. M. Kassim, W. I. W. Ismail and L. H. Teik, "Oil Palm Fruit Classifications by Using Near Infrared Images," Res. J. Appl. Sci., Eng. Technol., vol. 7, no. 11, pp. 2200–2207, 2014.

A. Septiarini, A. Sunyoto, H. Hamdani, A. A. Kasim, F. Utaminingrum and H. R. Hatta, "Machine Vision for The Maturity Classification of Oil Palm Fresh Fruit Bunches Based on Color and Texture Features," Scientia Horticulturae, vol. 286, pp. 110245, 2021.

S. Sabzi, Y. Abbaspour-Gilandeh and G. García-Mateos, "A New Approach for Visual Identification of Orange Varieties Using Neural Networks and Metaheuristic Algorithms," Inf. Process. Agric., vol. 5, no. 1, pp. 162–172, 2018.

Y. M. Y. Mansaour, K. D. Dambul and K. Y. Choo, "A Review of Non-Destructive Ripeness Classification Techniques for Oil Palm Fresh Fruit Bunches," J. Oil Palm Res., vol. 35, no. 4, pp. 543-554, 2023.

D. Rajput, W. J. Wang and C. C. Chen, “Evaluation of A Decided Sample Size in Machine Learning Applications,” BMC Bioinformatics, vol. 24, pp. 48, 2023.

J. Zhang, L. Wang and R. S. Blum, "Sample Size Requirements for Stable Feature Selection in High-Dimensional Machine Learning," IEEE Trans. Pattern Anal. Mach. Intell., vol. 45, no. 3, pp. 3287–3299, 2023.

] M. H. M. Hazir, A. R. M. Shariff, M. D. Amiruddin, A. R. Ramli and M. I. Saripan, “Oil Palm Bunch Ripeness Classification using Fluorescence Technique,” J. Food Eng., vol. 113, no. 4, pp. 534-540, 2012.

J. Y. Goh, Y. Md Yunos and M. S. Mohamed Ali, “Fresh Fruit Bunch Ripeness Classification Methods: A Review,” Food and Bioprocess Technol., vol. 18, no. 1, pp.183-206, 2025.

M. A. Nanda, K. Amaru, S. Rosalinda, I. Novianty and T. Park, “Multi-Parameter Prediction of Oil Palm Fruit Quality Through Near Infrared Spectroscopy Combined with Chemometric Analysis,” Spectrochimica Acta Part A: Molecul. and Biomolecul. Spectroscopy, vol. 343, pp. 126505, 2025.