Mpob
Mpob
Mpob
1 (2023) 185-194
© Universiti Tun Hussein Onn Malaysia Publisher’s Office
EEEE
Homepage: http://publisher.uthm.edu.my/periodicals/index.php/eeee
e-ISSN : 2756-8458
DOI: https://doi.org/10.30880/eeee.2023.04.01.022
Received 15 January 2023; Accepted 10 April 2023; Available online 30 April 2023
Abstract: Elaeis guineensis is a typical oil palm fresh fruit bunches (FFB) in Malaysia
that must be harvested at the optimum ripeness. In order to effectively assess the
quality of oil palm fruit (FFB), non-contact image sensing technology can provide
automatic and non -destructive detection fruit itself. Oil palm fruit is harvested in
conditions that FFB oil palm should not gather due to the raw fruit that looks ripe due
to an error from the human vision to recognize the best state for ripe fruit. The
expected FFB are ripe bunches with a yellowish and reddish outer layer and a yellow-
colored mesocarp. Thus, the proposed system can determine the quality directly via
an android smartphone to speed up the recognition of oil palm FFB. Convolution
Neural Network (CNN) system will use to classify types of ripeness grading of the
oil palm fruit via android smartphone. The overall results for 8458 total number of
images for four classes of oil palm fruit bunch FFB (Overripe, Ripe, Underripe, and
Unripe) is 93.19% accuracy using Anaconda Jupyter Notebook and Google Colab Pro
platform. The model is deployed into the Android Studio successfully by using
TensorFlow Lite to build an android application. The android application detection
accuracy was 88.79% for the Samsung Galaxy S22 (SM-S901E) model with 1050ms
inference time and 91% for the Samsung Galaxy A30 (SM-A305F) model with
1140ms inference time. This model approach can assist workers to determine the
maturity level of oil palm fruit bunch before making a decision.
1. Introduction
On 4 January 2021, there was a significant increase in crude palm oil prices, rising from RM
3903.00 per ton to RM 6602.50 per ton on 30 March 2022 [1]. This highlights the importance of
harvesting oil palm fruit in the best condition to produce high-quality palm oil.
Determining the maturity of oil palm fruit before harvest requires a high level of expertise, and
human grading can be time-consuming. It may lead to inaccuracies, especially for new workers.
According to the Palm Oil Mill (MJM) Sdn. Bhd., the ideal Fresh Fruit Bunches (FFBs) have a
yellowish and reddish outer layer, with a yellow-colored mesocarp and at least ten loose sockets [2].
These bunches should be sent to the mill within 24 hours of harvesting, but some FFBs may be
downgraded or rejected due to their condition, such as unripe, empty, long stalk, dirty, poorly pollinated,
damaged, small, under-ripe, and overripe bunches.
The problem with human grading is that it can lead to errors in recognizing and assessing the best
condition for fresh fruit bunches of oil palm. To overcome this problem, the report proposes a system
that uses smartphones to detect and evaluate the quality of fresh fruit bunches of oil palm more
accurately. This will help to improve the efficiency and accuracy of oil palm fruit harvesting, which is
essential for producing high-quality palm oil. The proposed system can also directly determine the
quality via an android smartphone to speed up the recognition of oil palm fresh fruit bunches. As a
result, the objective of this project was to create a CNN-based model capable of accurately categorizing
oil palm fruit bunches. This model was utilized to create a mobile application for Android that can
identify the maturity level of oil palm. Table 1 presents a comparison between oil palm research, method
and dataset for neural network method use for classification from related works.
Table 1: Comparison between oil palm research, method and dataset for neural network method
Classification ANN Oil palm fresh fruit Has a high accuracy Has a low
of Oil Palm bunches of 95.48% with accuracy
Fruit Ripeness - Ripe Raman peaks compared to
Using - Underripe Suitable for use on convolution
Artificial - Overripe tabular Data and text neural network
Neural Data
Network
Classification SVM Oil palm fresh fruit 91.3% accuracy by 4 The amount of
of oil palm bunches Peak intensity β-carotene
fresh fruit - Ripe reduces as the
maturity based - Underripe fruit ripens and
on carotene - Overripe becomes
content from overripe
Raman spectra
Oil palm fruit KNN Oil palm fresh fruit Required no training Sorting data into
ripeness bunches time categories takes
detection using accuracy at 65% by longer
K-Nearest applying Sobel edge
neighbour detection
186
Azman et al., Evolution in Electrical and Electronic Engineering Vol. 4 No. 1 (2023) p. 185-194
Thermal vision ANN- Ripeness Level of The thermal vision MLP has
of oil palm MLP FFB by day has a detection different
fruits under - 110-130 accuracy of 95.35%. validation
difference - 131-140 accuracy.
ripeness - 141-170
quality - 171-190
- 191-200
Oil Palm Fruit CNN Oil palm fresh fruit proved its ability in Resat Dense
Image DenseNet bunches reducing vanishing net achieved
Ripeness - Ripening gradient problem for an accuracy
Classification - Raw attention module of 69%
with Computer - Less Ripped Too many
Vision using - Almost Ripped datasets
Deep Learning - Ripped used
and Visual - Perfectly Ripped
Attention - Too Ripped
Maturity LDA Oil palm fresh fruit Can perform with misclassification
Grading of Oil bunches less dataset regularly
Palm Fresh - Raw The system achieved occurs in an
Fruit Bunches - Under-Ripe an accuracy of under-ripe
Based on a - Ripe 98.88%. image
Machine
Learning
Approach
187
Azman et al., Evolution in Electrical and Electronic Engineering Vol. 4 No. 1 (2023) p. 185-194
Figure 1: System configuration for classifying oil palm fruit using an android smartphone
Figure 1 shows the system overview of the oil palm fruit classification that consist of two parts
which are system development and application development. The system began with a smartphone that
are used to capture oil palm fruit bunch. The image data is preprocessed to develop in deep learning
process. The preprocessing image includes the resizing, augmentation, data splitting, and normalization.
The images are resized to 512 x 512 x 3 pixel. The data augmentation techniques such as rotate and
flip, are applied to enhance the number of training technique, the preprocessed image is used to develop
the deep learning by train the images with CNN model. TensorFlow Lite is used to deploy a model on
an android smartphone in establishing an application development system.
2.3 Software development
Figure 2 shows the flowchart of the software development.
188
Azman et al., Evolution in Electrical and Electronic Engineering Vol. 4 No. 1 (2023) p. 185-194
189
Azman et al., Evolution in Electrical and Electronic Engineering Vol. 4 No. 1 (2023) p. 185-194
Figure 4: Graph of training and validation accuracy Figure 5: Graph of training and validation loss
190
Azman et al., Evolution in Electrical and Electronic Engineering Vol. 4 No. 1 (2023) p. 185-194
The confusion matrix in Figure 6 has four different categories of ripeness for oil palm fruit:
overripe, ripe, underripe, and unripe. The confusion matrix in Figure 5 displays the count of accurate
and inaccurate predictions made by the classification model for each class. These counts can be used to
calculate the accuracy of the model for each class. The matrix reveals that the model has an accuracy
of 97.22% for the overripe class, 88.94% for the ripe class, 93.07% for the underripe class, and 100%
for the unripe class. The overall accuracy of the model, which is the proportion of all predictions that
are correct, is 93.19%. This information provides insights into the model's performance for each class
and identifies any potential areas for improvement in the classification process.
191
Azman et al., Evolution in Electrical and Electronic Engineering Vol. 4 No. 1 (2023) p. 185-194
Figure 8: Result of four classes dataset using Samsung Galaxy S22 via camera
Figure 9: Result of four classes dataset using Samsung Galaxy A30 via camera
192
Azman et al., Evolution in Electrical and Electronic Engineering Vol. 4 No. 1 (2023) p. 185-194
got 98%, while the SM-A305F got 86% for the ripe class. For the underripe class, a total of 18 oil palm
fruit bunch samples were taken for the detection of ripeness. The coded underripe accuracy is 78% for
both of these models. For unripe, accuracy is 90% for the SM-S901E and SM-A305F models get 100%
accuracy for this class. The total accuracy recorded was 88.79% for the SM-S901E model and 91% for
the SM-A305F model. The difference in accuracy is based on the image processing on the android
smartphone model itself after taking a sample picture.
Percentage Accuracy
1.2
1 0.98 1
1 0.89 0.9
0.86
0.78 0.78
0.8
0.6
0.4
0.2
0
Overripe Ripe Underripe Unripe
S22 A30
The accuracy for the overripe class got 89% for model SM-S901E, while SM-A305F got 100% for
the overripe class with 19 samples of oil palm fruit bunch. The second class is the class with the most
samples taken, which is 43 samples of oil palm fruit bunch. The SM-S901E model got 98%, while the
SM-A305F got 86% for the ripe class. For the underripe class, a total of 18 oil palm fruit bunch samples
were taken for the detection of ripeness. The coded underripe accuracy is 78% for both of these models.
For unripe, accuracy is 90% for the SM-S901E and SM-A305F models get 100% accuracy for this
class. The total accuracy recorded was 88.79% for the SM-S901E model and 91% for the SM-A305F
model. The difference in accuracy is based on the image processing on the android smartphone model
itself after taking a sample picture.
4. Conclusion
The effectiveness of using a Convolutional Neural Network for this classification task by training
a model on a dataset of 8458 images from the four classes. The model achieved an overall accuracy of
93.19% on the Google Colab Pro platform. An Android application successfully developed that allows
users to classify the ripeness of oil palm fruit bunches using their smartphones. The results of the
classification are displayed within the app's user interface. This application is compatible with a wide
range of Android smartphones and has a small size of 81.82MB, making it easy to use without
consuming significant storage space. The effectiveness of the smartphone application was demonstrated
with a detection time of under 1200ms, depending on the performance of the device being used.
Acknowledgement
The authors would like to thank the Faculty of Electrical and Electronic Engineering for supporting
the development of this project.
193
Azman et al., Evolution in Electrical and Electronic Engineering Vol. 4 No. 1 (2023) p. 185-194
References
[1] FFB grading guideline. MJM (PALM OIL MILL) SDN BHD. Retrieved April 6, 2022, from
http://www.mjmpom.com/ffb-grading-guideline/
[2] Malaysia prices of crude palm oil. Retrieved April 6, 2022, from
https://bepi.mpob.gov.my/admin2/price_local_daily_view_cpo_msia.php?more=Y&jeni
s=1Y&tahun=2022
[3] Basic CNN architecture: Explaining 5 layers of Convolutional Neural Network. upGrad blog.
(2021, December 9). Retrieved May 15, 2022, from https://www.upgrad.com/blog/basic-cnn-
architecture/
[4] Difference between ann, CNN and RNN. GeeksforGeeks. (2020, July 17). Retrieved May 15,
2022, from https://www.geeksforgeeks.org/difference-between-ann-cnn-and-rnn/
194