SlideShare a Scribd company logo
IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308
__________________________________________________________________________________________
Volume: 02 Issue: 11 | Nov-2013, Available @ http://www.ijret.org 545
GRADING AND QUALITY TESTING OF FOOD GRAINS USING NEURAL
NETWORK
Nandini Sidnal1
, Uttam V. Patil2
, Pankaja Patil3
1
Professor, 2
Assistant Professor, Computer Science and Engineering KLE Dr MSSCET, Belgaum, Karnataka, India,
3
Assistant Professor, Dept of Master of Computer Application, GIT Belgaum, Karnataka, India
sidnal.nandini@gmail.com, mail_uttam@yahoo.com, pankaja_kadalagi@yahoo.co.in
Abstract
The quality of food grains is referred to the every aspect of the profit of supply and marketing. The varietals purity is one of the factors
whose inspection is more difficult and more complicated than that of other factors. In the present grain-handling system, grain type
and quality are rapidly assessed by visual inspection. This evaluation process is, however, tedious and time consuming. The decision-
making capabilities of a grain inspector can be seriously affected by his/her physical condition such as fatigue and eyesight, mental
state caused by biases and work pressure, and working conditions such as improper lighting, climate, etc. The farmers are affected by
this manual activity. Hence, these tasks require automation and develop imaging systems that can be helpful to identify quality of
grain images. A model of quality grade testing and identification is built which is based on appearance features such as the
morphological and colour with technology of computer image processing and neural network. The morphological and colour features
are presented to the neural network for training purposes. The trained network is then used to identify the unknown grain types,
impurities and its quality.
Keywords: Grain quality, image processing, neural network
-----------------------------------------------------------------------***-----------------------------------------------------------------------
1. INTRODUCTION
Grains are the prime crop for our country’s peasants to
increase their agricultural income. The automation level of
testing grain quality is low and most work is done by
manpower. The workload is so mass that it will lead to
workers‟ fatigue and need them to have ample testing
experience. And it also makes the testing more costly and long
to be made. With the development of import and export trade
this contradiction is more and more outstanding [1]. During
grain handling operations, information on grain type and grain
quality is required at several stages before the next course of
operation can be determined and performed. The varietals
purity is one of the factors whose inspection is more difficult
and more complicated than that of other factors. In the present
grain handling system, grain type and quality are rapidly
assessed by visual inspection. This evaluation process is,
however, tedious and time consuming. The decision-making
capabilities of a grain inspector can be seriously affected by
his/her physical condition such as fatigue and eyesight, mental
state caused by biases and work pressure, and working
conditions such as improper lighting, climate, etc. [2].The
farmers are affected by this manual activity. Hence, these
tasks require automation and develop systems that can be
helpful to identify grain images, rectify it & then being
analyzed.
1.1 Problem Definition
In the food industry there are various food stuffs in the form of
grains. The food grain types and their quality are rapidly
assessed through visual inspection by human inspectors. The
decision-making capabilities of human-inspectors are
subjected to external influences. A model of quality testing
and identification is built which is based on appearance
features such as the shape and color with technology of image
processing and neural network. The system will take an image
of grain and identifies the grains and impurities if any and
gives the quality of the grain.
2. DESIGN AND IMPLEMENTATION DETAILS
2.1 System Architecture & Design
The work finds application in grain handling operations at
Agriculture Produce Market Committee (APMC), which is an
important organization that deals with farmers, produce,
measures quality and finally values the produce [3]. Different
food grains like wheat, horse gram, corn and rice are
considered in the study. Considering example of rice, rice is
one of the most important cereal grain crops. The quality of
rice has distinct effect on the yield of rice, so the proper
inspection of rice quality is very important. During grain
handling operations, information on grain type and grain
quality is required at several stages before the next course of
IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308
__________________________________________________________________________________________
Volume: 02 Issue: 11 | Nov-2013, Available @ http://www.ijret.org 546
operation can be determined and performed. The varietals
purity is one of the factors whose inspection is more difficult
and more complicated than that of other factors. In the present
grain handling system, grain type and quality are rapidly
assessed by visual inspection. This evaluation process is,
however, tedious and time consuming. The decision-making
capabilities of a grain inspector can be seriously affected by
his/her physical condition such as fatigue and eyesight, mental
state caused by biases and work pressure, and working
conditions such as improper lighting, climate, etc. Hence,
these tasks require automation and develop imaging systems
that can be helpful to identify rice grain images, rectify it &
then being analyzed [5].
Fig -1: Block diagram
2.2 The Work Process of System
• Capturing the image of grains/ images
acquisition
• Image pre-processing
• Image Segmentation and Identifying region of
Interest
• Feature Extraction
• Training and Testing
2.2.1 Image Acquisition
Food grain images acquisition is considered as the most
critical step of the grain recognition system, as it determines
the final grain image quality, which has drastic effects on
overall system performance. A total of around 400 food grain
images are acquired. The images are acquired with a color
Digital Camera. Sony cyber-shot DSCS750 digital camera is
used to capture images. The acquired image is of 2592x1944
resolution. 2.5inch by 3.5 inch area is marked on background
of maroon color. Food grains are positioned beneath the focus
of a camera on that marked area of the background and the
image is captured.
2.2.2 Image Pre-processing
The images acquired with a color Digital Camera is resized to
a resolution of 640 by 480 saved as JPEG image. Further to
remove noise the image is converted to black and white image
and patches in an image are considered using matlab function
bwlabel, Label connected components in binary image. The
patches with size less than 70 pixels are assumed to be noise
and are ignored. The other patches are the region of interest.
2.2.3 Image Segmentation and Identifying Region of
Interest
Connected components labeling scans an image and groups its
pixels into components based on pixel connectivity, i.e. all
pixels in a connected component share similar pixel intensity
values and are in some way connected with each other. Once
all groups have been determined, each pixel is labeled with a
gray level or a color (color labeling) according to the
component it was assigned to. Connected component labeling
works by scanning an image, pixel-by-pixel (from top to
bottom and left to right) in order to identify connected pixel
regions, i.e. regions of adjacent pixels which share the same
set of intensity values V. (For a binary image Original image
is converted to black and white image and patches in an image
are considered using matlab function bwlabel, Label
connected components in binary image. The patches with size
more than 70 pixels are assumed to be the region of interest.
Once the patches (grains and impurities) are identified the top,
bottom, left and right is calculated to crop the segment from
original image.
2.2.4 Feature Extraction
The color features such as mean value of R, the mean value of
G, the mean value of B are calculated and four Morphological
feature namely Area, Major axis length, Minor axis length and
Aspect ratio are extracted and stored in knowledgebase, so a
total of 7 features as listed in table 1 are stored suitably for
later usage in training PNN.
Table -1: Morphological and color features used for grade and
grain classification
IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308
__________________________________________________________________________________________
Volume: 02 Issue: 11 | Nov-2013, Available @ http://www.ijret.org 547
2.2.5 Training and Testing Phase
Seven Morphological and color features are extracted from the
images and are stored in the knowledgebase. A probabilistic
neural network (PNN) is predominantly a classifier that maps
any input pattern to a number of classifications. The
probabilistic neural network is trained with eight different
types of food grains namely Sonamasuri rice, Basmati rice,
Horsegram brown, Horsegram white,yellow corn,Gujrat
Wheat, OrangeCorn and Khapli Wheat, with 200 samples.
Testing is the final step of the grain recognition system. In
case of testing phase an image from the testing set (different
from the training set) is selected and its features are extracted
as training images. Then those features are matched with the
feature from the database created for training image. It will
compute the shortest distance between the trained images
stored in the database and the image that was chosen for
testing. Then the image with the shorted distance is chosen to
be recognized. This process is repeated for all the testing
images in order to know the accuracy of the system.
3. THE ALGORITHM: RECOGNITION AND
CLASSIFICATION OF FOOD GRAIN
Input: Original Color Image
Output: Classified food grains along with Quality
Step1: Acquire the food grain images.
Step2: Enhance image to remove noise and resizing.
Step3: Identify Patches and Do the image segmentation.
Step4: Extract Color and morphological features.
Step5: Use these features to recognize and classify the food
grain image samples using Neural network
4. RESULTS AND ANALYSIS
4.1 Training Phase
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Features Extraction (TRAINING PHASE)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Enter Grain Type
1. Rice 2. Wheat 3.Corn 4.Horse Gram 5. Impurity 1
Enter Grain Grade
1. Basamati 2.Sona Masuri 1
Select the Grain image for training phase
Fig.2 Snapshot to select the Grain image
Fig.3: Original Resized Image of basmati rice
Snapshot of the selected basmati rice image after Background
subtraction
Fig.4: After Background subtraction
IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308
__________________________________________________________________________________________
Volume: 02 Issue: 11 | Nov-2013, Available @ http://www.ijret.org 548
Fig.5: Black and white Image to find ROI
Snapshot of the selected basmati rice image after segmentation
Fig.6: After Segmentation
The four Morphological feature namely and color features are
extracted and stored in knowledgebase, so a total of 7 features
for each segment of fig 6
4.2. Testing Phase
Select the Grain image for testing phase
Fig.7 Snapshot to select the Grain image during testing phase
The selected image for rice with impurities for testing phase
Fig.9: Original Resized Image of basmati rice
Output: The grain and the impurity is identified and its
quality is
Fig 10: The result after testing
5. RESULTS
More than 160 images were used to test the system and it was
found that accuracy of identifying grain and its grade is
100%.Where as the accuracy of identifying quality of grains
was 80-90% accurate for each grain type. The testing results
are as shown below in table 2. The result analysis is as shown
in figure 11
IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308
__________________________________________________________________________________________
Volume: 02 Issue: 11 | Nov-2013, Available @ http://www.ijret.org 549
Table 2: Consolidated results of all grains with accuracy of
testing
It is very clear from the graph below that accuracy of
identifying grain and its grade is 100%.Where as the accuracy
of identifying quality of grains is in the range of 80-90% for
each grain type.
Fig 11: Results of all grains with accuracy of testing
CONCLUSIONS
The system identifies the quality of grains which is based on
appearance features such as the shape and color, with
technology of image processing and neural network. More
than 160 Images were used to test the system and it was found
that accuracy of identifying grain and its grade is
100%.Quality testing of grains was 80-90% accurate for each
grain type. A very simple method is proposed for
classification of food grains which require limited features and
thus overcoming the disadvantages like tediousness and time
consumption. The quality of food grain includes not only
exterior quality but also the interior one such as the texture,
the nutrient component, the protein, moisture of the grain and
producing area. The latter is not researched in this work
because of the limitation of machine vision. It is difficult to
test the features by visual image.
REFERENCES
[1]. HAN Zhong-zhi; LI Yan-zhao; LIU Jing; ZHAO You-
gang, Quality Grade Testing of Peanut Based on Image
Processing, 2010,IEEE
[2]. Sanjivani Shantaiya, Mrs.Uzma Ansari, Identification Of
Food Grains And Its Quality Using Pattern lassification,
Special Issue of IJCCT Vol. 2 Issue 2, 3, 4; 2010 for
International Conference [ICCT-2010], 3rd December 2010
[3]. B. S. ANAMI, D. G. SAVAKAR,Improved Method for
Identification and Classification of Foreign Bodies Mixed
Food Grains Image Samples, ICGSTAIML Journal, ISSN:
1687-4846, Volume 9, Issue I, February 2009
[4]. Basavaraj .S. Anami and Vishwanath.C.Burkpalli, Texture
based Identification and Classification of Bulk Sugary Food
Objects, ICGST-GVIP Journal, ISSN: 1687-398X, Volume 9,
Issue 4, August 2009
[5]. Basavaraj S. Anami, Dayanand G. Savakar, Effect of
Foreign Bodies on Recognition and Classification of Bulk
Food Grain Image Samples, Journal of Applied Computer
Science, no. 6 (3) /2009, Suceava.
[6]. D. M. Hobson, R. M. Carter, Y. Yan, Characterisation and
Identification of Rice Grains through Digital Image
Analysis,2007,IMTC
[7]. ABDELLAOUI Mehrez , DOUIK Ali, Hybrid method for
cereal grain identification using morphological and color
features, 1-4244-0395-2/06/$20.00 ©2006 IEEE.
[8]. LIU Zhao-yan ,CHENG Fang , YING Yi-bin , RAO Xiu-
qin ,Identification of rice seed varieties using neural network,
Journal of Zhejiang University SCIENCE

More Related Content

PDF
Grading and quality testing of food grains using neural network
PDF
Identification and Classification of Leaf Diseases in Turmeric Plants
PDF
IRJET- A Fruit Quality Inspection Sytem using Faster Region Convolutional...
PDF
IRJET - Calorie Detector
PDF
Classification of Macronutrient Deficiencies in Maize Plant Using Machine Lea...
PDF
Paper id 71201958
PDF
Analysis And Detection of Infected Fruit Part Using Improved k-means Clusteri...
PDF
IRJET- A Food Recognition System for Diabetic Patients based on an Optimized ...
Grading and quality testing of food grains using neural network
Identification and Classification of Leaf Diseases in Turmeric Plants
IRJET- A Fruit Quality Inspection Sytem using Faster Region Convolutional...
IRJET - Calorie Detector
Classification of Macronutrient Deficiencies in Maize Plant Using Machine Lea...
Paper id 71201958
Analysis And Detection of Infected Fruit Part Using Improved k-means Clusteri...
IRJET- A Food Recognition System for Diabetic Patients based on an Optimized ...

What's hot (18)

PDF
A survey on content based medical image retrieval for
PDF
IRJET- Identify Quality Index of the Fruit Vegetable by Non Destructive or wi...
PDF
A Study of Image Processing in Agriculture
PPT
Defected fruit detection
PDF
Using k means cluster and fuzzy c means for defect segmentation in fruits
PPTX
Behavior-Based Authentication System Based on Smartphone Life-Logs Data
PDF
IRJET- Automatic Fruit Quality Detection System
PDF
La2418611866
PDF
Computer Vision based Model for Fruit Sorting using K-Nearest Neighbour clas...
PDF
Machine learning application-automated fruit sorting technique
PDF
Classification of Mango Fruit Varieties using Naive Bayes Algorithm
PDF
IRJET- Applications of different Techniques in Agricultural System: A Review
PPTX
Fruit detection using morphological
PDF
Image Mining for Flower Classification by Genetic Association Rule Mining Usi...
PDF
F010423541
PDF
IRJET- Farmer Advisory: A Crop Disease Detection System
PDF
Brain tumor pattern recognition using correlation filter
PDF
Weed and crop segmentation and classification using area thresholding
A survey on content based medical image retrieval for
IRJET- Identify Quality Index of the Fruit Vegetable by Non Destructive or wi...
A Study of Image Processing in Agriculture
Defected fruit detection
Using k means cluster and fuzzy c means for defect segmentation in fruits
Behavior-Based Authentication System Based on Smartphone Life-Logs Data
IRJET- Automatic Fruit Quality Detection System
La2418611866
Computer Vision based Model for Fruit Sorting using K-Nearest Neighbour clas...
Machine learning application-automated fruit sorting technique
Classification of Mango Fruit Varieties using Naive Bayes Algorithm
IRJET- Applications of different Techniques in Agricultural System: A Review
Fruit detection using morphological
Image Mining for Flower Classification by Genetic Association Rule Mining Usi...
F010423541
IRJET- Farmer Advisory: A Crop Disease Detection System
Brain tumor pattern recognition using correlation filter
Weed and crop segmentation and classification using area thresholding
Ad

Viewers also liked (20)

PDF
IEEE Projects 2012 Titles For Cse @ Seabirds ( Chennai, Pondicherry, Vellore,...
PDF
1. control of real time traffic with the help of image processing
PDF
Impact assessment of factors affecting information technology projects in riv...
PDF
Hardback solution to accelerate multimedia computation through mgp in cmp
PDF
Accelerted testing of deteriorated concrete structures due to carbonation
PDF
“Optimizing the data transmission between multiple nodes during link failure ...
PDF
Degradation of mono azo dye in aqueous solution using
PDF
“Development and performance analysis of a multi evaporating system”
PDF
A detection technique of signal in mimo system
PDF
Adapting singlet login in distributed systems
PDF
Green cutting fluid selection using moosra method
PDF
Distance protection of hvdc transmission line with novel fault location techn...
PDF
Review on “service granularity in service oriented
PDF
A model for performance testing of ajax based web applications
PDF
Design and development of high frequency resonant transition converter
PDF
Software testing effort estimation with cobb douglas function a practical app...
PDF
A fusion of soft expert set and matrix models
PDF
A comprehensive review on performance of aodv and dsdv protocol using manhatt...
PDF
Novel model for rural housing development
PDF
Extreme software estimation (xsoft estimation)
IEEE Projects 2012 Titles For Cse @ Seabirds ( Chennai, Pondicherry, Vellore,...
1. control of real time traffic with the help of image processing
Impact assessment of factors affecting information technology projects in riv...
Hardback solution to accelerate multimedia computation through mgp in cmp
Accelerted testing of deteriorated concrete structures due to carbonation
“Optimizing the data transmission between multiple nodes during link failure ...
Degradation of mono azo dye in aqueous solution using
“Development and performance analysis of a multi evaporating system”
A detection technique of signal in mimo system
Adapting singlet login in distributed systems
Green cutting fluid selection using moosra method
Distance protection of hvdc transmission line with novel fault location techn...
Review on “service granularity in service oriented
A model for performance testing of ajax based web applications
Design and development of high frequency resonant transition converter
Software testing effort estimation with cobb douglas function a practical app...
A fusion of soft expert set and matrix models
A comprehensive review on performance of aodv and dsdv protocol using manhatt...
Novel model for rural housing development
Extreme software estimation (xsoft estimation)
Ad

Similar to Grading and quality testing of food grains using neural (20)

PDF
IRJET- Detection and Classification of Leaf Diseases
PDF
Plant Leaf Disease Detection and Classification Using Image Processing
PDF
Gw3512081212
PDF
IRJET- Comparative Study of Artificial Neural Networks and Convolutional N...
PDF
MachineVisionforqualityinspectionofAgriculturalproduce (1).pdf
PDF
MachineVisionforqualityinspectionofAgriculturalproduce.pdf
PDF
IRJET- Image Processing based Detection of Unhealthy Plant Leaves
PDF
IMAGE PROCESSING BASED MONITORING OF PESTICIDES AND QUALITY ANALYSIS OF FRUITS
PDF
Automated Mechanism for Sugarcane Bud Detection & Cutting
PDF
WEB BASED NUTRITION AND DIET ASSISTANCE USING MACHINE LEARNING
PDF
IRJET-Android Based Plant Disease Identification System using Feature Extract...
PDF
IRJET- Recent Trends and Insight Towards Automated Identification of Plant Sp...
PDF
IRJET- Food (Fruit) Quality Recognition by External Appearance and InternalFl...
PDF
FOOD RECOGNITION USING DEEP CONVOLUTIONAL NEURAL NETWORK
PDF
A study of multimodal biometric system
PDF
IRJET- Leaf Quality Detection for Rudimentary Urban Home Gardeners using Imag...
PDF
Literature Review on Classification of Cotton Species
PDF
IRJET- Analysis of Plant Diseases using Image Processing Method
PDF
Automatic Seed Classification by Shape and Color Features using Machine Visio...
PDF
ORGANIC PRODUCT DISEASE DETECTION USING CNN
IRJET- Detection and Classification of Leaf Diseases
Plant Leaf Disease Detection and Classification Using Image Processing
Gw3512081212
IRJET- Comparative Study of Artificial Neural Networks and Convolutional N...
MachineVisionforqualityinspectionofAgriculturalproduce (1).pdf
MachineVisionforqualityinspectionofAgriculturalproduce.pdf
IRJET- Image Processing based Detection of Unhealthy Plant Leaves
IMAGE PROCESSING BASED MONITORING OF PESTICIDES AND QUALITY ANALYSIS OF FRUITS
Automated Mechanism for Sugarcane Bud Detection & Cutting
WEB BASED NUTRITION AND DIET ASSISTANCE USING MACHINE LEARNING
IRJET-Android Based Plant Disease Identification System using Feature Extract...
IRJET- Recent Trends and Insight Towards Automated Identification of Plant Sp...
IRJET- Food (Fruit) Quality Recognition by External Appearance and InternalFl...
FOOD RECOGNITION USING DEEP CONVOLUTIONAL NEURAL NETWORK
A study of multimodal biometric system
IRJET- Leaf Quality Detection for Rudimentary Urban Home Gardeners using Imag...
Literature Review on Classification of Cotton Species
IRJET- Analysis of Plant Diseases using Image Processing Method
Automatic Seed Classification by Shape and Color Features using Machine Visio...
ORGANIC PRODUCT DISEASE DETECTION USING CNN

More from eSAT Publishing House (20)

PDF
Likely impacts of hudhud on the environment of visakhapatnam
PDF
Impact of flood disaster in a drought prone area – case study of alampur vill...
PDF
Hudhud cyclone – a severe disaster in visakhapatnam
PDF
Groundwater investigation using geophysical methods a case study of pydibhim...
PDF
Flood related disasters concerned to urban flooding in bangalore, india
PDF
Enhancing post disaster recovery by optimal infrastructure capacity building
PDF
Effect of lintel and lintel band on the global performance of reinforced conc...
PDF
Wind damage to trees in the gitam university campus at visakhapatnam by cyclo...
PDF
Wind damage to buildings, infrastrucuture and landscape elements along the be...
PDF
Shear strength of rc deep beam panels – a review
PDF
Role of voluntary teams of professional engineers in dissater management – ex...
PDF
Risk analysis and environmental hazard management
PDF
Review study on performance of seismically tested repaired shear walls
PDF
Monitoring and assessment of air quality with reference to dust particles (pm...
PDF
Low cost wireless sensor networks and smartphone applications for disaster ma...
PDF
Coastal zones – seismic vulnerability an analysis from east coast of india
PDF
Can fracture mechanics predict damage due disaster of structures
PDF
Assessment of seismic susceptibility of rc buildings
PDF
A geophysical insight of earthquake occurred on 21 st may 2014 off paradip, b...
PDF
Effect of hudhud cyclone on the development of visakhapatnam as smart and gre...
Likely impacts of hudhud on the environment of visakhapatnam
Impact of flood disaster in a drought prone area – case study of alampur vill...
Hudhud cyclone – a severe disaster in visakhapatnam
Groundwater investigation using geophysical methods a case study of pydibhim...
Flood related disasters concerned to urban flooding in bangalore, india
Enhancing post disaster recovery by optimal infrastructure capacity building
Effect of lintel and lintel band on the global performance of reinforced conc...
Wind damage to trees in the gitam university campus at visakhapatnam by cyclo...
Wind damage to buildings, infrastrucuture and landscape elements along the be...
Shear strength of rc deep beam panels – a review
Role of voluntary teams of professional engineers in dissater management – ex...
Risk analysis and environmental hazard management
Review study on performance of seismically tested repaired shear walls
Monitoring and assessment of air quality with reference to dust particles (pm...
Low cost wireless sensor networks and smartphone applications for disaster ma...
Coastal zones – seismic vulnerability an analysis from east coast of india
Can fracture mechanics predict damage due disaster of structures
Assessment of seismic susceptibility of rc buildings
A geophysical insight of earthquake occurred on 21 st may 2014 off paradip, b...
Effect of hudhud cyclone on the development of visakhapatnam as smart and gre...

Recently uploaded (20)

PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPT
Mechanical Engineering MATERIALS Selection
PPTX
Artificial Intelligence
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
Sustainable Sites - Green Building Construction
PPT
Project quality management in manufacturing
PDF
Digital Logic Computer Design lecture notes
PPT
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PPTX
Construction Project Organization Group 2.pptx
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
Geodesy 1.pptx...............................................
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
OOP with Java - Java Introduction (Basics)
PDF
composite construction of structures.pdf
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PPTX
additive manufacturing of ss316l using mig welding
PPTX
Foundation to blockchain - A guide to Blockchain Tech
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Mechanical Engineering MATERIALS Selection
Artificial Intelligence
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Sustainable Sites - Green Building Construction
Project quality management in manufacturing
Digital Logic Computer Design lecture notes
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
Construction Project Organization Group 2.pptx
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
Geodesy 1.pptx...............................................
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Operating System & Kernel Study Guide-1 - converted.pdf
OOP with Java - Java Introduction (Basics)
composite construction of structures.pdf
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
additive manufacturing of ss316l using mig welding
Foundation to blockchain - A guide to Blockchain Tech

Grading and quality testing of food grains using neural

  • 1. IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308 __________________________________________________________________________________________ Volume: 02 Issue: 11 | Nov-2013, Available @ http://www.ijret.org 545 GRADING AND QUALITY TESTING OF FOOD GRAINS USING NEURAL NETWORK Nandini Sidnal1 , Uttam V. Patil2 , Pankaja Patil3 1 Professor, 2 Assistant Professor, Computer Science and Engineering KLE Dr MSSCET, Belgaum, Karnataka, India, 3 Assistant Professor, Dept of Master of Computer Application, GIT Belgaum, Karnataka, India sidnal.nandini@gmail.com, mail_uttam@yahoo.com, pankaja_kadalagi@yahoo.co.in Abstract The quality of food grains is referred to the every aspect of the profit of supply and marketing. The varietals purity is one of the factors whose inspection is more difficult and more complicated than that of other factors. In the present grain-handling system, grain type and quality are rapidly assessed by visual inspection. This evaluation process is, however, tedious and time consuming. The decision- making capabilities of a grain inspector can be seriously affected by his/her physical condition such as fatigue and eyesight, mental state caused by biases and work pressure, and working conditions such as improper lighting, climate, etc. The farmers are affected by this manual activity. Hence, these tasks require automation and develop imaging systems that can be helpful to identify quality of grain images. A model of quality grade testing and identification is built which is based on appearance features such as the morphological and colour with technology of computer image processing and neural network. The morphological and colour features are presented to the neural network for training purposes. The trained network is then used to identify the unknown grain types, impurities and its quality. Keywords: Grain quality, image processing, neural network -----------------------------------------------------------------------***----------------------------------------------------------------------- 1. INTRODUCTION Grains are the prime crop for our country’s peasants to increase their agricultural income. The automation level of testing grain quality is low and most work is done by manpower. The workload is so mass that it will lead to workers‟ fatigue and need them to have ample testing experience. And it also makes the testing more costly and long to be made. With the development of import and export trade this contradiction is more and more outstanding [1]. During grain handling operations, information on grain type and grain quality is required at several stages before the next course of operation can be determined and performed. The varietals purity is one of the factors whose inspection is more difficult and more complicated than that of other factors. In the present grain handling system, grain type and quality are rapidly assessed by visual inspection. This evaluation process is, however, tedious and time consuming. The decision-making capabilities of a grain inspector can be seriously affected by his/her physical condition such as fatigue and eyesight, mental state caused by biases and work pressure, and working conditions such as improper lighting, climate, etc. [2].The farmers are affected by this manual activity. Hence, these tasks require automation and develop systems that can be helpful to identify grain images, rectify it & then being analyzed. 1.1 Problem Definition In the food industry there are various food stuffs in the form of grains. The food grain types and their quality are rapidly assessed through visual inspection by human inspectors. The decision-making capabilities of human-inspectors are subjected to external influences. A model of quality testing and identification is built which is based on appearance features such as the shape and color with technology of image processing and neural network. The system will take an image of grain and identifies the grains and impurities if any and gives the quality of the grain. 2. DESIGN AND IMPLEMENTATION DETAILS 2.1 System Architecture & Design The work finds application in grain handling operations at Agriculture Produce Market Committee (APMC), which is an important organization that deals with farmers, produce, measures quality and finally values the produce [3]. Different food grains like wheat, horse gram, corn and rice are considered in the study. Considering example of rice, rice is one of the most important cereal grain crops. The quality of rice has distinct effect on the yield of rice, so the proper inspection of rice quality is very important. During grain handling operations, information on grain type and grain quality is required at several stages before the next course of
  • 2. IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308 __________________________________________________________________________________________ Volume: 02 Issue: 11 | Nov-2013, Available @ http://www.ijret.org 546 operation can be determined and performed. The varietals purity is one of the factors whose inspection is more difficult and more complicated than that of other factors. In the present grain handling system, grain type and quality are rapidly assessed by visual inspection. This evaluation process is, however, tedious and time consuming. The decision-making capabilities of a grain inspector can be seriously affected by his/her physical condition such as fatigue and eyesight, mental state caused by biases and work pressure, and working conditions such as improper lighting, climate, etc. Hence, these tasks require automation and develop imaging systems that can be helpful to identify rice grain images, rectify it & then being analyzed [5]. Fig -1: Block diagram 2.2 The Work Process of System • Capturing the image of grains/ images acquisition • Image pre-processing • Image Segmentation and Identifying region of Interest • Feature Extraction • Training and Testing 2.2.1 Image Acquisition Food grain images acquisition is considered as the most critical step of the grain recognition system, as it determines the final grain image quality, which has drastic effects on overall system performance. A total of around 400 food grain images are acquired. The images are acquired with a color Digital Camera. Sony cyber-shot DSCS750 digital camera is used to capture images. The acquired image is of 2592x1944 resolution. 2.5inch by 3.5 inch area is marked on background of maroon color. Food grains are positioned beneath the focus of a camera on that marked area of the background and the image is captured. 2.2.2 Image Pre-processing The images acquired with a color Digital Camera is resized to a resolution of 640 by 480 saved as JPEG image. Further to remove noise the image is converted to black and white image and patches in an image are considered using matlab function bwlabel, Label connected components in binary image. The patches with size less than 70 pixels are assumed to be noise and are ignored. The other patches are the region of interest. 2.2.3 Image Segmentation and Identifying Region of Interest Connected components labeling scans an image and groups its pixels into components based on pixel connectivity, i.e. all pixels in a connected component share similar pixel intensity values and are in some way connected with each other. Once all groups have been determined, each pixel is labeled with a gray level or a color (color labeling) according to the component it was assigned to. Connected component labeling works by scanning an image, pixel-by-pixel (from top to bottom and left to right) in order to identify connected pixel regions, i.e. regions of adjacent pixels which share the same set of intensity values V. (For a binary image Original image is converted to black and white image and patches in an image are considered using matlab function bwlabel, Label connected components in binary image. The patches with size more than 70 pixels are assumed to be the region of interest. Once the patches (grains and impurities) are identified the top, bottom, left and right is calculated to crop the segment from original image. 2.2.4 Feature Extraction The color features such as mean value of R, the mean value of G, the mean value of B are calculated and four Morphological feature namely Area, Major axis length, Minor axis length and Aspect ratio are extracted and stored in knowledgebase, so a total of 7 features as listed in table 1 are stored suitably for later usage in training PNN. Table -1: Morphological and color features used for grade and grain classification
  • 3. IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308 __________________________________________________________________________________________ Volume: 02 Issue: 11 | Nov-2013, Available @ http://www.ijret.org 547 2.2.5 Training and Testing Phase Seven Morphological and color features are extracted from the images and are stored in the knowledgebase. A probabilistic neural network (PNN) is predominantly a classifier that maps any input pattern to a number of classifications. The probabilistic neural network is trained with eight different types of food grains namely Sonamasuri rice, Basmati rice, Horsegram brown, Horsegram white,yellow corn,Gujrat Wheat, OrangeCorn and Khapli Wheat, with 200 samples. Testing is the final step of the grain recognition system. In case of testing phase an image from the testing set (different from the training set) is selected and its features are extracted as training images. Then those features are matched with the feature from the database created for training image. It will compute the shortest distance between the trained images stored in the database and the image that was chosen for testing. Then the image with the shorted distance is chosen to be recognized. This process is repeated for all the testing images in order to know the accuracy of the system. 3. THE ALGORITHM: RECOGNITION AND CLASSIFICATION OF FOOD GRAIN Input: Original Color Image Output: Classified food grains along with Quality Step1: Acquire the food grain images. Step2: Enhance image to remove noise and resizing. Step3: Identify Patches and Do the image segmentation. Step4: Extract Color and morphological features. Step5: Use these features to recognize and classify the food grain image samples using Neural network 4. RESULTS AND ANALYSIS 4.1 Training Phase ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Features Extraction (TRAINING PHASE) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Enter Grain Type 1. Rice 2. Wheat 3.Corn 4.Horse Gram 5. Impurity 1 Enter Grain Grade 1. Basamati 2.Sona Masuri 1 Select the Grain image for training phase Fig.2 Snapshot to select the Grain image Fig.3: Original Resized Image of basmati rice Snapshot of the selected basmati rice image after Background subtraction Fig.4: After Background subtraction
  • 4. IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308 __________________________________________________________________________________________ Volume: 02 Issue: 11 | Nov-2013, Available @ http://www.ijret.org 548 Fig.5: Black and white Image to find ROI Snapshot of the selected basmati rice image after segmentation Fig.6: After Segmentation The four Morphological feature namely and color features are extracted and stored in knowledgebase, so a total of 7 features for each segment of fig 6 4.2. Testing Phase Select the Grain image for testing phase Fig.7 Snapshot to select the Grain image during testing phase The selected image for rice with impurities for testing phase Fig.9: Original Resized Image of basmati rice Output: The grain and the impurity is identified and its quality is Fig 10: The result after testing 5. RESULTS More than 160 images were used to test the system and it was found that accuracy of identifying grain and its grade is 100%.Where as the accuracy of identifying quality of grains was 80-90% accurate for each grain type. The testing results are as shown below in table 2. The result analysis is as shown in figure 11
  • 5. IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308 __________________________________________________________________________________________ Volume: 02 Issue: 11 | Nov-2013, Available @ http://www.ijret.org 549 Table 2: Consolidated results of all grains with accuracy of testing It is very clear from the graph below that accuracy of identifying grain and its grade is 100%.Where as the accuracy of identifying quality of grains is in the range of 80-90% for each grain type. Fig 11: Results of all grains with accuracy of testing CONCLUSIONS The system identifies the quality of grains which is based on appearance features such as the shape and color, with technology of image processing and neural network. More than 160 Images were used to test the system and it was found that accuracy of identifying grain and its grade is 100%.Quality testing of grains was 80-90% accurate for each grain type. A very simple method is proposed for classification of food grains which require limited features and thus overcoming the disadvantages like tediousness and time consumption. The quality of food grain includes not only exterior quality but also the interior one such as the texture, the nutrient component, the protein, moisture of the grain and producing area. The latter is not researched in this work because of the limitation of machine vision. It is difficult to test the features by visual image. REFERENCES [1]. HAN Zhong-zhi; LI Yan-zhao; LIU Jing; ZHAO You- gang, Quality Grade Testing of Peanut Based on Image Processing, 2010,IEEE [2]. Sanjivani Shantaiya, Mrs.Uzma Ansari, Identification Of Food Grains And Its Quality Using Pattern lassification, Special Issue of IJCCT Vol. 2 Issue 2, 3, 4; 2010 for International Conference [ICCT-2010], 3rd December 2010 [3]. B. S. ANAMI, D. G. SAVAKAR,Improved Method for Identification and Classification of Foreign Bodies Mixed Food Grains Image Samples, ICGSTAIML Journal, ISSN: 1687-4846, Volume 9, Issue I, February 2009 [4]. Basavaraj .S. Anami and Vishwanath.C.Burkpalli, Texture based Identification and Classification of Bulk Sugary Food Objects, ICGST-GVIP Journal, ISSN: 1687-398X, Volume 9, Issue 4, August 2009 [5]. Basavaraj S. Anami, Dayanand G. Savakar, Effect of Foreign Bodies on Recognition and Classification of Bulk Food Grain Image Samples, Journal of Applied Computer Science, no. 6 (3) /2009, Suceava. [6]. D. M. Hobson, R. M. Carter, Y. Yan, Characterisation and Identification of Rice Grains through Digital Image Analysis,2007,IMTC [7]. ABDELLAOUI Mehrez , DOUIK Ali, Hybrid method for cereal grain identification using morphological and color features, 1-4244-0395-2/06/$20.00 ©2006 IEEE. [8]. LIU Zhao-yan ,CHENG Fang , YING Yi-bin , RAO Xiu- qin ,Identification of rice seed varieties using neural network, Journal of Zhejiang University SCIENCE