Color Quality Assessment of Coconut Sugar Using Artificial Neural Network (Ann)

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

8th IEEE International Conference Humanoid, Nanotechnology, Information Technology

Communication and Control, Environment and Management (HNICEM)


The Institute of Electrical and Electronics Engineers Inc. (IEEE) – Philippine Section
9-12 December 2015 Water Front Hotel, Cebu, Philippines

COLOR QUALITY ASSESSMENT OF


COCONUT SUGAR USING
ARTIFICIAL NEURAL NETWORK (ANN)
Aaron AQUINO#1, Mary Grace Ann BAUTISTA#2, Argel BANDALA#3, Elmer DADIOS#4
Gokongwei College of Engineering
De La Salle University
Manila, Philippines
1
aaron_u_aquino@dlsu.edu.ph
2
mary_grace_cabungcal@dlsu.edu.ph
3
argel.bandala@dlsu.edu.ph
4
elmer.dadios@dlsu.edu.ph

Abstract – This paper presents a simple color recognition Table 1.


algorithm using digital image processing techniques and pattern Coconut Sugar Classification
recognition to eliminate the subjectiveness of manual inspection
of the quality of coconut sugar based on Philippine National Class Specification
Standard. The image processing was built using MATLAB Premium class Color: Light yellow to cream
functions through RGB acquisition. The Backpropagation (Superior quality) Water Activity, aw < 0.5
Artificial Neural Network was used in this project to enhance the Class I Color: Light brown to brown
accuracy and performance of image processing. The database of (Good quality) Water Activity, aw 0.5 – 0.7
the network involved 300 images and 70% of these were used for
This class includes coconut sap sugar
training the network, 15% for validation and 15% for testing.
which does not qualify for inclusion
Class II
Keywords – Color Quality Assessment, Coconut Sugar, RGB in the higher classes, but satisfy the
Extraction, Neural Network minimum requirements specified.

Current technologies in coconut sugar making pose many


I. INTRODUCTION risks during the production process including chemical
contamination due to unsanitized containers and pans,
The Bureau of Agricultural and Fisheries Product inconsistency of sugar color, and moisture caused by
Standards drafted national standards for the quality of coconut excessive heat applied. These risks challenge the industry with
sugar in order to safeguard the industry. Certifications by the regards to the quality of coconut sugar as an export material.
Organic Certification Center of the Philippines (OCCP) are An unacceptable quality is deemed to be unsafe to the
issued for the products that meet the criteria set by this body. consumers. [4] In order to maintain the consistency of quality
Organic certification of products for commercial use is of produced coconut sugar for export, the researchers
intended to assure quality and prevent fraud. These conceptualized the design of an automated system for grading
certifications serve a product assurance for the consumers and coconut sugar quality using computational algorithms, instead
approval for operation for organic producers. [1] of manual visual inspection.

There are three quality classifications for coconut sugar The study will introduce a more improved quality
set by the the Philippine National Standards Table 1 shows classification system for coconut sugar production compliant
these classes and their respective specifications. (PNS/BAFPS to Philippine National Standards, in comparison to subjective
76:2010) nature of quality assessment by visual examination. [4]

978-1-5090-0360-0/15/$31.00 ©2015 IEEE


8th IEEE International Conference Humanoid, Nanotechnology, Information Technology
Communication and Control, Environment and Management (HNICEM)
The Institute of Electrical and Electronics Engineers Inc. (IEEE) – Philippine Section
9-12 December 2015 Water Front Hotel, Cebu, Philippines

Quality identification for coconut sugar may help increase its and classified quality served as the input and target output of
marketability and further improve its attractiveness for export. the network, respectively, and were normalized prior to
training. Normalization is performed by dividing each of the
Furthermore, future research involving technologies for data set by the largest value present in that set.
manufacturing of coconut sugar can benefit in this study.
Integration of a color-based quality assessment system for the B. Training the Neural Network
output product may help future researchers further develop the
automation process for the manufacturing of coconut sugar, The neural network served as the medium for identifying
from pre-processing of coconut sap to packaging of the final the quality of the coconut sugar. The basic structure of the
product whose quality is properly identified. neural network is a neuron, which involves mathematical
equations and processes.

II. ARCHITECTURE OF THE SYSTEM The training will only stop after the neural network has
met the stopping criterions: (1) Maximum iteration is reached,
(2) Minimum gradient is reached, and (3) Maximum
validation checks (number of iterations in which error has
failed to decrease) is reached. If the neural network produced
satisfying results after the training, the network can be used
now for quality identification.

C. Testing, Quality Assessment and Classification

Testing the developed neural network will be conducted


using the nntool function in MATLAB. This function will
give the performance plot and regression plot of the test data
for analysis and validation of the network.

III. DESIGN CONSIDERATIONS

The neural network was created in different


combinations, with 3 input nodes, one hidden layer with
varying number of hidden nodes for each training and output
one output node. Both the hidden and output layer neurons
were activated by binary sigmoid activation function.
Fig. 1 System Block Diagram
The output is 1 if the sugar has superior quality, 2 if it has
A. Collection of Data and Preprocessing good quality and 3 if it is a reject. 300 images were extracted
and divided into three sections. 70% of the images were used
The proponents gathered 300 images from partner
for training, 15% for testing and the remaining 15% for
agencies involving coconut sugar production such as the
validation. Weights and biases were arbitrarily initialized and
Philippine Coconut Authority and United Coconut
the images are presented to the network one at a time. This
Association in the Philippines. These images include the
process is repeated until the training number is reached. Table
quality classifications Superior, Good and Reject. In the
1 shows sample data used to train the Neural Network.
preprocessing stages, the images were resized in order to
reduce the color index of the images. Each image was
extracted by pixel into its red, green and blue color
component. These red, green and blue color components were
displayed in gray-scale index. Then, the RGB values obtained
8th IEEE International Conference Humanoid, Nanotechnology, Information Technology
Communication and Control, Environment and Management (HNICEM)
The Institute of Electrical and Electronics Engineers Inc. (IEEE) – Philippine Section
9-12 December 2015 Water Front Hotel, Cebu, Philippines

IV. EXPERIMENTS AND RESULTS

A. Presentation of Data

A total of 300 samples were gathered experimentally


using MATLAB. These data shows the classified quality and
extracted RGB components of each image. Samples of the
training data are presented in Table 2.

Table 2. Table 3.
Sample Training Data and Results for MSE, Learning Time and Regression Coefficient
Backpropagation Artificial Neural Network of Varying Hidden Node Sizes

Normalized Normalized Extracted No. of Hidden MSE Learning Regression


Actual Classified RGB Components Nodes Time (s) Coefficient
Quality 9 0.008450 3 0.9107
R G B 12 0.006030 10 0.9398
0.33 0.94 0.78 0.60 15 0.004100 34 0.9639
0.33 0.81 0.72 0.42 18 0.002410 9 0.9752
0.33 0.86 0.80 0.52 21 0.003500 45 0.9697
0.67 0.75 0.52 0.35 24 0.002110 31 0.9801
0.33 0.91 0.72 0.39 30 0.001120 44 0.9895
0.67 0.77 0.58 0.39 36 0.000854 37 0.9920
0.67 0.63 0.47 0.32 45 0.000885 112 0.9906
0.67 0.80 0.58 0.31 50 0.000851 50 0.9904
0.67 0.61 0.35 0.15 60 0.000714 132 0.9921
1.00 0.36 0.18 0.08 70 0.000357 20 0.9968
1.00 0.35 0.20 0.11 80 0.000361 35 0.9968
0.67 0.52 0.32 0.15 90 0.000406 71 0.9968
0.67 0.65 0.38 0.15 100 0.000394 75 0.9967
0.67 0.64 0.35 0.04 120 0.002050 89 0.9809
1.00 0.34 0.20 0.09 140 0.000658 90 0.9936
160 0.001360 84 0.9875
B. Mean Square Error (MSE), Learning Time and
Regression Coefficient (R) 180 0.000313 70 0.9968
200 0.000389 249 0.9967
It is important to train the network with the appropriate
number of nodes in the hidden layer to satisfy the performance
requirements of the system. Hence, different network
Referring to these graphs, it is observed that the
structures are developed by changing the hidden node size.
lowest MSE is obtained from a hidden node size of 70. On the
other hand, fastest learning time is obtained at lower hidden
For each network constructed, the mean square error
node sizes. Also, it is seen that the regression coefficient
(MSE), learning time in seconds and the regression coefficient
acquired. the highest value at 70 hidden node size.
(R) are obtained after training. Table 3 shows the results. For
a more convenient interpretation, the results from Table 3 are
displayed on graphs for each hidden node size.
8th IEEE International Conference Humanoid, Nanotechnology, Information Technology
Communication and Control, Environment and Management (HNICEM)
The Institute of Electrical and Electronics Engineers Inc. (IEEE) – Philippine Section
9-12 December 2015 Water Front Hotel, Cebu, Philippines

hidden node size, while in the same fashion, the mean square
error decreases. It means that there is significant trade-off
between performance error and learning time of the network.
Furthermore, looking at figure (R), the regression coefficient
becomes closer to unity as hidden node size increases,
implying that the actual output – to – network output
relationship becomes increasingly linear.

V. CONCLUSION

In this study, a system for classifying the color quality of


coconut sugar based on its color was successfully developed.
The RGB components of each image obtained were obtained
using RGB color feature extraction in MATLAB.
Fig 2. Number of hidden nodes versus mean square error (MSE)
From the results of the training, it is observed that a
considerable trade-off between the mean square error and the
learning time exists and that the regression coefficient
becomes closer to unity with an increase of hidden node size.

REFERENCES

[1] (Bureau of Product Standards, "Philippine National Standard: Coconut


sap sugar – Grading and classification," Manila, Philippines, 2010.

[2] B. Krose, and P. Smagt, An Introduction to Neural Networks, eighth


edition. Amsterdam: The University of Amsterdam, 1996.

[3] C. Madhura and D. Dheeraj, “Feature Extraction for Image Retrieval


using Color Spaces and GLCM,” International Journal of Innovative
Fig 3. Number of hidden nodes versus learning time (s) Technology and Exploring Engineering (IJITEE), vol.3 issue2, pp.159-
162, July 2013.

[4] D. Masa, “Coco Sugar: Current Processing, Technologies, Utilization


and Recommended Practices”, in Coco Sugar Congress 2012.

[5] G. Waldman, Introduction to Light: The Physics of Light, Vision,


and Color., Mineola: Dover Publications. , 2002.

[6] J. Freeman and D. Skapura, Neural Networks: Algorithms, Applications


and Programming Techniques, Massachusetts, USA: Addison-Wesley
Publishing Company, Inc., 1991.

[7] J. Orillo, G. Emperador, M. Gasgonia, M. Parpan and J. Yang, "Rice Plant


Nitrogen Level Assessment through Image Processing using Artificial
Neural Network," in International Conference on Humanoid,
Nanotechnology, Information Technology, Communication and Control,
Environment and Management (HNICEM), Puerto Princessa, Philippines,
2014.

Fig 4. Number of hidden nodes versus Regression coefficient [8] J. R. Rabunal and J. Dorado, Artificial Neural Networks in Real-Life
Applications, USA: IGI Publishing, 2006.

[9] J. Zhou, H. Yin, J. Liu and L. Fan, "Method of Image Fusion for Apple
For figures (mse) and (learning time), there is a Surface Quality Detection," in International Conference on Automatic
considerable increase in learning time for an increase in Control and Artificial Intelligence (ACAI), Xiamen, China, 2012.
8th IEEE International Conference Humanoid, Nanotechnology, Information Technology
Communication and Control, Environment and Management (HNICEM)
The Institute of Electrical and Electronics Engineers Inc. (IEEE) – Philippine Section
9-12 December 2015 Water Front Hotel, Cebu, Philippines

[10] M. Nixon and A. Aguado, Feature Extraction and Image Processing, 1st
ed., Oxford,USA: Newnes Publishing, 2002.

[11] M. P. Paulraj, C. Hema, R. P. Krishnan and S. S. M. Radzi, "Color


Recognition Algorithm using a Neural Network Model in Determining
the Ripeness of a Banana," in International Conference on Man-Machine
Systems (ICoMMS), Batu Ferringhi, Penang, Malaysia, 2009.

[12] N. P, A. S, V. P. K and R. Valantina.S., "Analysis of rice granules using


Image Processing and Neural Network," in IEEE Conference on
Information and Communication Technologies, JeJu Island, South Korea,
2013.

[13] P. Shirley, Fundamentals of Computer Graphics, Massachusetts, USA:


A K Peters, Ltd., 2005.

[14] P.K. Thampan, “Production of neera and coconut sugar deserves


encouragement”, Indian Coconut Journal, pp. 11-14, May 2013.

[15] R. Ofreneo, “Green jobs ang green skills in a brown Philippine economy”,
International Labour Office, Manila Philippines, 2010.

[16] S. Haykin, Neural Networks and Learning Machines, 3rd edition, Jersey
City, New Jersey: Pearson Prentice Hall, 2009.

[17] S.N. Sivanandam and M. Paulraj, An Introduction to Neural Networks,


India: Vikhas Publications Company Ltd., 2003.

[18] T. Kubo, M. Obuchi, G. Ohashi and Y. Shimodaira, "Image Processing


System for Direction Detection of an Object Using Neural Network," in
IEEE Asia-Pacific Conference on Circuits and Systems (APCCAS),
Chiangmai, China, 1998.

[19] T. Trinidad, “Nutrition and Health Benefits of Coconut Sap Sugar/Syrup,”


Food and Nutrition Research Institute – Department of Science and
Technology, 2003.

[20] W. Sun and Y. He, “Spatial-chromatic clustering for color image


compression,” Proceedings of 1998 IEEE World Congress on
Computation Intelligence, FUZZ-IEEE, 1998, pp. 1601-1604.

[21] Z. Zhang, M. Zhao, B. Li and P. Tang, “ColorPCA: Color Principal


Feature Extraction Technique for Color Image Reconstruction and
Recognition,” International Joint Conference in Neural Networks
(IJCNN), 2013, pp. 1-7.

[22] Z. Zhu and Y. Guo, "Print Quality Detection of Cigarette Wrapper Based
on Image Processing and BP Network," in The 7th World Congress on
Intelligent Control and Automation, Chongqing, China, 2008.

[23] (2009). Coconut Sugar Philippines website. [Online]. Available:


http://www.coconutsugarphilippines.com/coconutsugarhealthinfo.php

[24] (2015). Neuroscience for Kids website. [Online]. Available:


http://faculty.washington.edu/chudler/retina.html

You might also like