CASHEW KERNELS CLASSIFICATION USING TEXTURE FEATURES

NARENDRA V.G.1*, HAREESH K.S.2
1Department of CSE, Manipal Institute Of Technology, Manipal, Karnataka, India-576 104
2Department of CSE, Manipal Institute Of Technology, Manipal, Karnataka, India-576 104
* Corresponding Author : narendra.vg@manipal.edu

Received : 10-08-2011     Accepted : 06-09-2011     Published : 08-09-2011
Volume : 3     Issue : 2       Pages : 45 - 51
Int J Mach Intell 3.2 (2011):45-51
DOI : http://dx.doi.org/10.9735/0975-2927.3.2.45-51

Conflict of Interest : None declared

Cite - MLA : NARENDRA V.G. and HAREESH K.S. "CASHEW KERNELS CLASSIFICATION USING TEXTURE FEATURES." International Journal of Machine Intelligence 3.2 (2011):45-51. http://dx.doi.org/10.9735/0975-2927.3.2.45-51

Cite - APA : NARENDRA V.G., HAREESH K.S. (2011). CASHEW KERNELS CLASSIFICATION USING TEXTURE FEATURES. International Journal of Machine Intelligence, 3 (2), 45-51. http://dx.doi.org/10.9735/0975-2927.3.2.45-51

Cite - Chicago : NARENDRA V.G. and HAREESH K.S. "CASHEW KERNELS CLASSIFICATION USING TEXTURE FEATURES." International Journal of Machine Intelligence 3, no. 2 (2011):45-51. http://dx.doi.org/10.9735/0975-2927.3.2.45-51

Copyright : © 2011, NARENDRA V.G. and HAREESH K.S., Published by Bioinfo Publications. This is an open-access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution and reproduction in any medium, provided the original author and source are credited.

Abstract

Cashew is a commercial commodity that plays a major role in earning foreign currency among export commodities of India. The sub-sector is getting governmental and non-governmental attention due its significance in commercial activities. The brand patent creation of each cashew varies based on cashew kernels is an issue in current periods. The purpose of this research work is to explore image processing techniques and approaches on Indian cashew variety identification based on their kernels. Colour is an important quality factor for grading, marketing, and end use of Cashew. Our objective is to develop a cost-effective way to identify the cashew kernels. Such a system would not only facilitate cashew grading but also serve as a quality control tool for processing facilities such as grading and sorting in export industries like cashew. This paper presents a methodology for identification and classification of cashew kernels white wholes. The texture features are extracted using gray level co-occurrence matrix method. The multilayer feed forward neural network is developed to classify cashew kernels white wholes. An analysis of the efficiency of methodology is found 90%.

Keywords

Cashew kernel, Texture Features, Neural Network.

Introduction

Cashew (Anacardium occidentale L.) a native of Eastern Brazil was introduced to India by the Portuguese nearly five centuries back. Cashew is the third largest edible tree nut in the world. India has been the dominant player in the cashew trade and has also pioneered the cashew processing and exports. In addition, India is the largest producer of cashew kernels and the largest area holder of this crop in the world.
Cashew processing India has been a pioneer in cashew processing and has been the first country to hit the world market with cashew kernels. The raw cashew nuts collected from the growing areas are moved to the factories for processing. It is ensured that the raw nuts are thoroughly cleaned and are free from all foreign matter before they are processed.
Grades Based on the Size, Shape, and Colour of the cashew kernels are graded into white or scorched wholes, pieces, splits, butts etc. The Government of India Act prescribes 33 different grades of cashew kernels of which only 26 grades are commercially available and exported. W- 320 is the most popular among cashew kernels and also the most available, worldwide. Scorched wholes are another grade of cashew kernels. They are prepared by subjecting the kernels to a longer duration of roasting, whereby they attain a slight brown colour. They however have all the other characteristics of white kernels including nutritional qualities. Butts, splits and pieces are priced low and are ideal for cooking, preparation of sweets and savory snacks and so on.
Today, various kinds of cashews are available in the market with different qualities. To ascertain the quality, grade standard have been designed by considering the colour and the size (weight) of the cashew kernel as important characteristic as shown in [Table-1] .
Grading of cashew kernels is based on inspection of physical quality attributes such as colour, shape, and size. By using these physical attributes, a trained person determines the cashew kernel of which class (i.e., white wholes). The [Table-1] illustrates the Grade designations and definitions of quality of cashew kernels (i.e., white wholes). Reference colour slides are available to assist with the assessment of cashew kernel colour. Despite the training of the grading personnel and the availability of reference slides, the current method for cashew kernel quality evaluation is time consuming, tedious, and inherently inconsistent. An objective and cost–effective computer vision system is needed to segregate cashew kernels. Such a system would not only facilitate cashew grading but also serve as a quality control tool for processing facilities such as elevators, seed cleaning plants, and oil mills [1] [2] .
Computer vision system has proven successful for the objective, online measurement of several agricultural products [2] . Computer vision based cashew grading system is an alternative to the manual, mechanical and optical methods. This method offers automated, high speed, non-destructive and cost effective technique for classification.
Colour and texture features are used to develop a neural network model for classification of different food objects like Idli, Wada, Bonda etc., is discussed in [3] [4] a method for classification and gradation of different grains such as Ground nut, Bengal Gram, wheat etc. Geometrical and colour features such as size, shape, RGB etc., are extracted. A neural network model is developed for classification. [3] [4] (Anami B.S et al, 2009) have discussed a knowledge based nearest mean classifier for classification of Bulk Food objects. L*a*b* colour features are used for classification. [5] (R.M. Harlick et al, 1973) have described some easily computable textural features based on gray tone spatial dependencies. They have illustrated the application in category identification tasks of three different kinds of image data. [6] (Giaime Ginesu et al, 2004) have worked on detection of foreign bodies in food by thermal image processing. [7] (D. Patel et al, 1994) have described a monitoring system, which detects contaminants such as pieces of stone or fragments of glass in foodstuffs. [8] (M Barni et.al, 1995) have described vision based intelligent perception system for making automated inspection of chicken meat feasible. The defects are classified by comparing their features against defect description container in a reference database. [9] (Bin Zhu et al, 2007) have developed an automated inspection of apple quality based on geometric or statistical features. Paper introduces a Gabor feature based kernel principal component analysis (PCA) method by combining Gabor wavelet representation of apple images and the kernel PCA method for apple quality inspection using near-infrared (NIR) imaging.
[10] (Dong-chen he and Li Wang, 1990) have described aset of textural measures derived from the texture spectrum. The proposed features are used to extract textural information of an image using gray-level co-occurrence matrix.
[11] (Cheng-Jin Du and Da-Wen Sun 2005) have developed an automated classification system of pizza sauce spread using colour vision and support vector machines (SVM).
The image transformed from red, green, and blue (RGB) colour space to hue, saturation, and value (HSV) colour space. A vector quantifier is designed to quantify the HS (hue and saturation) space to 256-dimension, and the quantified colour features of pizza sauce spread were represented by colour histogram. [12] (Zhao-yan Liu et.al 2005) have described image analysis algorithm based on colour and morphological features for identifying different varieties of rice seeds. Seven colour features and fourteen morphological features are used for discriminate analysis. A two-layer neural network model is developed for classification.
Most of the researchers have focused on classification of fruits, meat, processed food like pizza etc., from their digital images. The present work pertains to classification of cashew kernel white whole based on textural features.

Materials and Methods

Image Acquisition

The samples of whole cashews of different grades, used in this study were collected from Balaji Exports Jarkal Karkal Tq. one of the cashew production companies of Karnataka.
Images for Cashew kernels are acquired using a digital camera (Sony 7.2 Mega Pixels with optical zoom 4x) in a room with a proper control of lighting intensity. Distances and heights between camera and cashew kernel/cashew kernels were fixed for all the samples. A block paper was used as background surface to facilitate and simplify the further task. The images of each cashew kernel sample are captured in different angles. i.e., top, front, left, and right views are collected. The sample digital images of different samples of cashew kernels are shown in [Fig-1] .
The texture features such as Contrast, Correlation, Entropy, Energy, Homogeneity, Dissimilarity, Smoothness, Cluster Shade, Cluster Performance, Angular Second Moment, Third Moment, Mean, Variance, Standard Deviation, and Maximum Probability are extracted using gray level co-occurrence matrix. The extracted features are used to train the developed neural network model. The developed neural network model is tested for recognition and classification of different cashew kernel white whole samples [3] [4] . The block diagram representing different phases of the work is given in [Fig-2] .

Texture Features Extraction

Texture is one of the most important defining characteristics of an image. It is characterized by the spatial distribution of gray levels in a neighborhood. There are different types of texture feature extraction methods like statistical, geometrical, and model based and signal processing reported in the literature. Statistical methods analyze the spatial distribution of gray values by computing local features at each point in the image and deriving a set of statistics from the distributions of the local features. Geometrical methods try to describe the primitives and the rules governing their spatial organization by considering texture to be composed of texture primitives. The structure and organization of the primitives can be presented using Voronoi tessellations. Model based texture analysis methods are based on the construction of an image model that can be used not only to describe texture, but also to synthesize it. The model parameters capture the essential perceived qualities of texture. Signal processing methods analyze the frequency content of the image. For food processing, the most widely used approaches are statistical including pixel-value run length method and the co-occurrence matrix method [3] .

Gray level Co-occurrence Matrix (GLCM) Method

GLCM is a two dimensional matrix of frequencies at which two pixels, separated by a certain vector, occurs in the image. i.e., the GLCM is a tabulation of how often different combination of pixel brightness values (gray levels) occur in an image. The distribution in the matrix depends on the angular and distance relationship between pixels. Varying the vector used allows the capturing of different texture characteristics. Once the GLCM has been created, various features can be computed from it. After creating GLCM, it is required to normalize the matrix before texture features are calculated. The measures require that each GLCM cell contain a count, but rather a probability [3] .
To accomplish texture analysis task, the first step is to extract texture features that most completely embody information about the spatial distribution of intensity variations in the textured image. Texture features derived from GLCM using the formulae given in [Table-2] [3] [4] .
Contrast returns a measure of intensity contrast between a pixel and its neighborhood. Contrast is 0 for a constant image. Energy means uniformity, or angular second moment (ASM). The more homogeneous of image, larger the value. When energy equals to 1, the image is believed to be a constant image. Entropy is a measure of randomness of intensity image. Image with more number of occurrences of particular colour configurations has resulted in higher value of entropy. Local Homogeneity measures the similarity of pixels. Diagonal gray level co-occurrence matrix gives homogeneity of 1. Cluster Shade and cluster prominence are measures of skewness of the matrix, in other words, the lack of symmetry. When cluster shade (CS) and cluster prominence (CP) are high, the image is not symmetry. Maximum Probability gives the maximum occurrence of gray levels which satisfies the relation given in an entropy equation. The steps involved in texture feature extraction are given in Algorithm 1. The algorithm is rotational and scaling invariant. However, the noise free images are used through suitable processing. Hence, it is noise invariant [3] .

Algorithm 1: Texture features extraction GLCM Method [3].

Input: RGB components of original Image.
Output: 15 Texture Features
Start:
Step 1: For all the sampled RGB components Derive the Gray Level Co-occurrence Matrices (GLCM)
P φ, d (x, y) for four directions φ (0º, 45º, 90º and 135º) and d = 1 which are dependent on direction φ
Step 2: Compute the co-occurrence matrix, which is independent of direction using equation (1).
C = 1/4 (P0º + P45º + P90º P135º ) --(1)
Step 3: GLCM features namely, mean, contrast etc., are calculated using equations given in [Table-2] .
Stop

Neural Network Model

The multilayer feed forward neural network model with back propagation algorithm for training is employed for classification task as shown in [Fig-3] . The number of neurons in the input layer is equal to the number of input features (15). The number of neurons in the output layer is equal to the number of categories of cashew kernel (single) white wholes (6). And in hidden layer the number of neurons are 10.

Training and Testing

The developed neural network is trained with six different cashew kernel white wholes categories namely W-180, W-210, W-240, W-320, W-450 and W-500 with 600 samples representing 100 examples of each of six types of cashew kernel white wholes. The texture features of an image are used as the inputs.
In the testing phase, the bulk cashew kernels from untrained set of samples are used to test the trained neural network model for classification. The developed neural network is trained with termination error (TE) 0.01 in 42 epochs the value of learning constant (learning rate LR) used is 0.1.

Results and discussions

This section gives results of experiments carried on the developed neural network model. The algorithm was developed for texture feature extraction using GLCM method performed well in the task of extracting texture features from images of different cashew kernels white wholes. The results obtained in this work indicate that the ANNs can in general classify cashew kernels white wholes with success rate of 80% to 90%. Initial model is developed using only six texture features such as Contrast, Correlation, Energy, Entropy, Homogeneity, and Dissimilarity. The neural network model performance found to be low (74%). Since these features are not sufficient for better classification of cashew kernels white wholes, some more features are extracted. Hence fifteen features shown in [Table-2] are considered for improving the performance. The accuracies (i.e.90%) obtained for classification of cashew kernels white wholes when developed neural network is trained with different learning constants and different termination errors. The results obtained in this work indicate that the ANNs can in general classify cashew kernel(single) white wholes.

Classifier performance

A test sample set, which was not part of either the training or validation samples, was used to test the neural network classifier trained. The test set included 100 randomly selected cashew kernels. The test results of classification are summarized in [Table-3] . Almost all (90%) of the cashew kernels (single) were correctly classified.
We seen that, using the current features the first 4 grades can be discriminated with no errors. However work still has to be carried out to discriminate between grades ‘450’ and ‘500’.

Conclusions and Future Work

The work gives an efficient model for cashew kernel white wholes identification and classification. The gray level co-occurrence method is found to be an efficient method for texture future extraction. The developed neural network model classifies six different categories of a cashew kernel white wholes with overall 90% accuracy. In this work gray scale images are considered. The classification accuracy was acquired under laboratory setting, so it had some limits. In future work, a large quantity of colour features of cashew kernels will be investigated for better classification.

References

[1] Balasubramanian D. (2001) Journal of agricultural Engineering Research, 78(3), pp. 291-297.  
» CrossRef   » Google Scholar   » PubMed   » DOAJ   » CAS   » Scopus  

[2] Brosnan T. and Sun D.W. (2004) Journal of Food Engineering, 61, pp. 3-16.  
» CrossRef   » Google Scholar   » PubMed   » DOAJ   » CAS   » Scopus  

[3] Anami B.S. and Vishwanath C. Burkpalli (2009) ICGST-GVIP Journal, ISSN: 1687-398X, Volume 9, Issue 4, pp 9-14.  
» CrossRef   » Google Scholar   » PubMed   » DOAJ   » CAS   » Scopus  

[4] Anami B.S. and Savakar D.G. (2009) International Journal of Artificial Intelligence and Machine Learning Vol 9(1), pp 1-9.  
» CrossRef   » Google Scholar   » PubMed   » DOAJ   » CAS   » Scopus  

[5] Haralick R.M., Shanmugan K. and Dinestein I. (1973) IEEE Transactions on Systems, Man, Cybernetics, Vol (3), pp. 610-621.  
» CrossRef   » Google Scholar   » PubMed   » DOAJ   » CAS   » Scopus  

[6] Giaime Ginesu, Daniele D. Giusto, Volker Margner, Peter Meinlschmidt (2004) IEEE Transactions on Industrial Electronics, Vol 51, No 2.  
» CrossRef   » Google Scholar   » PubMed   » DOAJ   » CAS   » Scopus  

[7] Patel D., Hannah I. and Davies E.R. (1994) Proc of the 12th IAPR international conference E., Volume 1 pp 586-588.  
» CrossRef   » Google Scholar   » PubMed   » DOAJ   » CAS   » Scopus  

[8] Barni M., Mussa A.W., Mecocci A., Cappelline V., Durrani T.S. (1995) IEEE International Conference on Image Processing Vol 1, pp 450-453.  
» CrossRef   » Google Scholar   » PubMed   » DOAJ   » CAS   » Scopus  

[9] Bin Zhu, Lu Jiang, Yaguang Luo and Yang Tao (2007) Journal of Food Engineering. Vol 81(4), pp 741-749.  
» CrossRef   » Google Scholar   » PubMed   » DOAJ   » CAS   » Scopus  

[10] Dong-Chen HE and LI Wang (1990) IEEE Trans. Geosciences and remote sensing, vol 28, no 4.  
» CrossRef   » Google Scholar   » PubMed   » DOAJ   » CAS   » Scopus  

[11] Cheng-Jin Du, Da-wen (2005) Journal Food Engineering. Vol. 66 (2) pp 137-145.  
» CrossRef   » Google Scholar   » PubMed   » DOAJ   » CAS   » Scopus  

[12] Zhao-yan Liu, Fang Cheng, Yi-bin Ying, & Xiu-qin Rao (2005) Journal of Zhejiang University, Science B, Vol. 6 (11), pp 1095-1100.  
» CrossRef   » Google Scholar   » PubMed   » DOAJ   » CAS   » Scopus  

Images
Fig. 1- Images of cashew kernels (a) White wholes-180 (b) White wholes-210 (c) White wholes-240 (d) White wholes-320 (e) White wholes-450 (f) White wholes-500
Fig. 2- Block Diagram of the Proposed Methodology [3]
Fig. 3- Neural Network Architecture
Table 1- Cashew Kernels (White Wholes)
Table 2- Texture Features Used In The Work
Table 3- Classification Results for 'White Wholes'