egg volume prediction using computer vision system

JokoSisawantoro 11 views 28 slides Oct 02, 2024
Slide 1
Slide 1 of 28
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28

About This Presentation

egg volume prediction using cvs


Slide Content

Computer vision system for egg volume prediction using backpropagation neural network Joko Siswantoro , M Y Hilman and M Widiasri Department of Informatics Engineering, Faculty of Engineering, Universitas Surabaya

Outline Introduction CVS hardware CVS software Validation Results Conclusion

Introduction Indonesia is one of the top egg producing countries in the world . The huge egg production should be followed by a rapid sorting system . Egg sorting is a process to classify egg based on internal and external qualities. Volume is one of aspect used for assessing the quality of egg.

Introduction (cont.) Computer vision system (CVS) is an appropriate solution for measuring the volume of egg. Several CVSs have been proposed for measuring the volume of egg, including 2D CVS and 3D CVS [2]. 3D CVS has a high accuracy, as proposed by Siswantoro , et al. [3], but the system requires a high computational cost.

Introduction (cont.) Soltani , et al. [1] have proposed a 2D CVS to predict the volume of egg using ANN with the major and minor diameters of egg, as the input of ANN. By using only this two features, ANN may produce inaccurate prediction.

Introduction (cont.) Gonzalez, et al. [4] have proposed a 2D CVS to estimate the mass and volume of passion fruit using ANN combined with PCA and LDA based on color , texture, size, and shape. The system achieved only 73% in terms of the correlation coefficient, with a typical error of 31.58% for testing data.

Introduction (cont.) ANN is a nonlinear model that mimics the biological nervous system and has been widely used to solve various classification and prediction problems [5]. The performance of ANN is strongly related with input features and its structure [6].

Introduction (cont.) 1D and 2D sizes of egg are strongly related to the volume of egg. There is a need to investigate the using of 1D and 2D sizes as input features for ANN in predicting the volume of egg. The appropriate structure of ANN in predicting the volume of egg also needs to be investigated.

CVS hardware Logitech® HD Webcam c270h . Two LED lamps Intel ® Core™ i3 3217U Processor with Windows 7 Ultimate 64 bit operating system and 4 GB RAM Black painted c ontainer box

CVS hardware (cont.)

CVS software D eveloped to control the camera, to process the acquired image, and to predict the volume of measured eggs. Steps: image acquisition, pre-processing, segmentation, features extraction, and volume prediction. Implemented using C# in VS 2010 IDE and library Emgu CV 2.3.10, a cross platform .Net wrapper to the OpenCV image processing library.

Image acquisition The camera captured the image of measured egg from top view in a black background. The image was acquired in RGB color space. Dimension: 640×480 pixels. Resolution: 96 dpi. The measured egg was located in the bottom of container box.

Pre-processing Convert RGB image to grayscale image. Apply a 5×5 Gaussian filter to the grayscale image to increase the quality of image by means of noise reducing.

Segmentation Aims to separate object from its background in the grayscale image. The CVS used automatic thresholding to perform segmentation. The threshold value T was automatically determined using a simple iteration, as explained in Gonzalez and Woods [8].

Example of images The examples of (a) acquired image, (b) pre-processing result, and (c) segmentation result.

Features extraction The CVS used 1D and 2D sizes of egg to predict volume . 1D size: length and width 2D size: area, and perimeter.

Volume prediction The CVS employed an ANN to predict the volume of egg. The structure of ANN consisted of three layers: an input layer, a hidden layer, and an output layer. The input layer had four neurons correspond to four features. The output layer had a neuron corresponds to the volume of egg.

Volume prediction (cont.) The number of neuron in the hidden layer was determined empirically from two neurons until seven neurons in an experiment, such that the best structure of neural network is obtained . Criteria to choose the best structure of ANN: MSE and correlation coefficient between the predicted output and the actual output of ANN

Volume prediction (cont.) T ransfer functions: Sigmoid and Sigmoid. Training algorithm: backpropagation with momentum. All input and output variables were normalized to interval [-1,1] before training and testing phases . To predict the volume of egg, the predicted output of ANN was transformed to original scale using the invers of transformation used in normalization.

Volume prediction (cont.)

Validation Sampel : 80 eggs. The samples were chosen randomly from traditional market in Surabaya Indonesia . Training set : Testing set = 70:30. The actual volume for every egg was measured using water displacement method. Absolute relative error (ARE ) was used to assess the accuracy of the proposed CVS.

Results The best structure for ANN: 3 neurons in the hidden layer. MSE 2.3338 Correlation coefficiet : 0.9738 .

Results (cont.)

Results (cont.) For comparison, the volume of each sample was also measured using volume prediction method proposed by Soltani , et al. [1] : MSE: 26.1226 Correlation coefficient: 0.7281 mean ARE: 3.5016 %.

Results (cont.) The paired t -test was performed to show that the mean of predicted volume and actual volume are not significantly different. Level of significance : 0.05 Hypothesis: vs Result: could not be rejected.  

Results (cont.) Computation time: Training phase with 56 (70%) training samples: 2.636 s. To predicting the volume of egg: 0.0156 s per sample on average.

Conclusion A CVS for egg volume prediction using ANN is proposed . The CVS consisted of hardware and software used for image acquisition, image processing, and volume prediction. The CVS used length , width, area, and perimeter extracted from the image of object as the input of ANN in predicting the volume. The experiment result shows that, the proposed system achieved absolute relative error of 2.2078 % on average compared to the actual volume.

Thank you
Tags