A New Segmentation Method For Plant Disease Diagnosis
A New Segmentation Method For Plant Disease Diagnosis
Abstract—Detecting plant diseases automatically with the help processing of image, image segmentation, extracting features
of symptoms present on leaves at earlier stage yields more and disease detection and classification.Image acquisition is
productivity in agriculture.In this paper, a novel plant disease the process of reading an image. Pre-processing of image
diagnosis method is proposed for the plants using image pro-
cessing techniques and SVM classifier. Here, disease diagnosis is done in order to enhance the quality of image which
is carried based on features extracted from the segmented will be helpful in later stages of image processing. In pre-
image after pre-processing the image of the leaves which are processing, Contrast enhancement, sharpening of image etc.,
affected with diseases.Modified color processing detection al- can be done.Image segmentation is helpful in extracting
gorithm (CPDA) is used as segmentation method to extract the features of the image.From that segmented image the
the features. SVM classifier is trained with a dataset of about
100 images of diseased leaves to identify the diseases like an- statistical parameters are extracted and that parameters are
thracnose,leafspot,leafblight,scab .For disease detection,the per- called features. These features are mean, variance, kurtosis,
formance of proposed segmentation technique is better when homogeneity etc.,Classifier classifies the disease of a plant
compared to the K-means clustering segmentation. based upon the training data given to it.
Index Terms—Plant disease, Contrast stretching, Image Seg- Arya et al proposed a method that uses Ostu segmentation
mentation, K-means clustering, Modified Colour Processing De-
tection Algorithm, SVM classifier technique along with genetic algorithm in order to detect
blight and leaf spot diseases of potato,tomato and pepper
leaves[1].Chouhan et al propped a methodology which de-
I. I NTRODUCTION
tects the diseases like common rust,leaf curl,cedar apple rust
Agriculture is responsible for providing food to mankind. It etc., using Bacterial foraging optimization based Radial Basis
is also responsible for economic development in India.So,in Function Neural Network (BRBFNN) algorithm [2].Prakash
order to get more productivity many factors like climatic et al detected the diseases of citrus leaves using K-means
conditions, water availability, plant diseases etc., play a key- clustering, GLCM features and SVM classifier[3]. Kiani et
role. Diseases that occur to plants degrade the productivity al used Colour processing detection algorithm(CPDA), Fuzzy
levels.So early detection of plant diseases and taking appro- logic classification algorithm (FLCA) to detect Strawberry
priate measures is important for proper growth of plants.Naked leaves fungal infections and iron deficiencies [4].Various
eye detection is one of method for detecting diseases of methods for segmenting image are reviewed by Kaur et al
plants which may give inaccurate results and is less effi- and have been proposed in their literature[5].Many other
cient.Also,farmers have to depend on experts who may not methods for disease detection using different techniques were
be available at the time of urgency.This method is also proposed([6],[7],[8],[9],[10],[11]).
time consuming. So,another method using image processing In this paper,image of the leaves affected with diseases like
techniques and artificial intelligence is used in order to detect blight, leaf spot, antracnose, scab of various plants like are
diseases at an early stage with more accuracy and with more detected.Contrast enhancement was done before segmenting
speed. the image.K-means clustering and proposed image segmen-
The common steps involved in modern day detection of leaf tation techniques are used to segment image of the disease
diseases using computer models are, image acquisition, pre- effected leaves.Gray Level co-occurrence matrix is used to
138
Authorized licensed use limited to: INDIAN INSTITUTE OF TECHNOLOGY ROORKEE. Downloaded on November 23,2024 at 11:57:27 UTC from IEEE Xplore. Restrictions apply.
here also the threshold should be greater than maxi-
mum repeated intensity value.
(f) Find the matched pixels between original image and
obtained binary image.which will give only diseases
effected region in the leaf image plant
The matched pixels can be found by comparing the
each component pixels of the original image and the
binary resultant image.That is, if there is a ’1’ in
a particular location of the binary image then the
intensities(each R,G,B pixel values) in that particular
location are remain same otherwise they are changed
to zero intensity values
D. Feature Extraction
From the segmented Image features will be extracted. The
features of the image are statistical parameters of segmented
image.The image is converted into Grayscale and then these
statistical parameters are calculated. The features included are
Mean, Standard Deviation, Entropy, RMS ,variance ,smooth-
ness, Krutosis, Skewness, IDM(Inverse Difference Moment),
Contrast, Co-relation, Energy and Homogeneity.All these fea-
tures are extracted from the GLCM(Gray Level Coocurrence
Fig. 2: Flow chart of the MCPD algorithm. Matrix)
P(r,s)= Probability of the pixel intensity level at the loca-
tion(r,s).The image is a gray scale image and it is having the
of image levels from 0 to 255. N = Total number of Levels = 256. μx ,
μy are the means, σx , σy are standard deviations of the image
Red component pixels(RCP) = RIV - GSV in vertical and horizontal direction. The other parameters are
Green component pixels(GCP) = GIV - GSV also calculated as
Blue component pixels(BCP) = BIV - GSV N −1 N −1
2
Homogeneity = P (r, s) (4)
0 IV < GSV r=0 s=0
ComponentP ixels = ,
IV - GSV else
N
−1 N
−1 N
−1
2
Contrast = n2 { P (r, s) }, |r − s| = n (5)
IV is the intensity value of the image. Later modify n=0 r=0 s=0
the red pixel value as
N
−1 N
−1
1 2
Redpixel(RP ) = RCP − GCP
− BCP IDM = 2 P (r, s) (6)
2 2
r=0 s=0 1 + (r − s)
(c) Convert the Red pixel image into binary image with N
−1 N
−1
the threshold. Entropy = P (r, s) × log(P (r, s)) (7)
r=0 s=0
0 RP < threshold
RedBinaryImage = N
−1 N
−1
1 else {r × s} × P (r, s) − {μx × μy }
Correlation =
r=0 s=0
σx × σ y
The threshold value should be greater than maximum (8)
repeated intensity value. That is, the threshold value is In this paper all the thirteen statistical parameters are used
mode of the intensity values as the features for the classification of the disease
(d) Find the matched pixels in the red intensity of the
image with the binary image E. Classification
By doing this the disease effected region along with Based on the Extracted Features, the disease of the plant
some other regions will be filter out from original is estimated. For the classification of the disease from the
image. extracted features a classifier is used.Here SVM(Support Vec-
(e) Again threshold red pixels of the matched image using tor Machine) Classifier is used after both the segmentation
same threshold to make the binary image. processes(K-means algorithm and modified color processing
139
Authorized licensed use limited to: INDIAN INSTITUTE OF TECHNOLOGY ROORKEE. Downloaded on November 23,2024 at 11:57:27 UTC from IEEE Xplore. Restrictions apply.
detection algorithm).Every Classifier is having two phases (a)
Training Phase and (b) Testing Phase
(a)Training Phase:- In this Training Phase a Classifier is
Trained by giving the feature extraction from the segmented
leaf image and its corresponding disease effected by the leaf.In
SVM Classifier during this stage the weights of the vectors are
updated. (a) original (b) using k-means (c) using MCPD
(b)Testing phase:- In this phase features of the leaf which
Fig. 4: Plant Leaf and the segmented part
is to be diagnosed is given to classifier.Then it will estimate
the disease which is close to the features given and result out No of No of k-means MCPD
the name of the disease. training test im- with SVM with SVM
leaves ages classifier classifier
III. R ESULTS SCAB 100 25 16 18
BLIGHT 100 25 14 17
Different types of plant diseased leaf images are used for ANTHRACONSE 100 25 18 22
analysing the corresponding diseases effected to them by eval- LEAF SPOT 100 25 17 15
uating the K-means clustering and proposed segmentation al- TABLE I: Comparision Analysis
gorithm. K-means clustering is implemented as taking number
of clusters as three.The diseases of Scab,Blight, Anthraconse,
and Spot are used for analysis.
SVM classifier is trained using training data consisting
features of more than 100 disease affected leaves of each of
the listed diseases.Images are taken from various sources like
internet,capturing through mobile etc.With the help of features
from those images SVM classifier classifies the different
diseases accordingly. During testing stage,we provide SVM
classifier with the extracted features of the segmented image
which is to be diagnosied.Finally,classifier will display the
most suitable disease by comparing the features with the
trained data.
Here we can conclude that the proposed segmentation tech-
nique is more useful compared to k means clustering technique
for extracting features of the diseased portion,thereby it is easy
for classifier to give more accurate results. Fig. 5: Accuracy comparision
IV. C ONCLUSION
(a) original (b) using k-means (c) using MCPD
Conventional methods like naked eye detection for iden-
Fig. 3: Plant Leaf and the segmented part tifying diseases of plants fails due to slow detection and
inaccurate results. Those methods are also time consuming.In
The leaf in the Fig 3.(a) is original leaf which is effected this paper,disease diagnosis is done using image processing
by the disease Anthraconse.Fig 3.(b) and Fig 3.(c) are seg- and artificial intelligence methods.Different images of leaf
mented images using k-means clustering and Modified CPDA diseases like leafspot, scab, anthracnose, blight for many plants
segmentation respectively. were considered for identifying the disease.This paper pro-
The leaf in the Fig 4.(a) is original leaf which is effected by vides the steps involved in the process of detecting plant leaf
the disease Blight.Fig 4.(b) and Fig 4.(c) are segmented images diseases.Features are extracted after Segmentation of image
using k-means clustering and Modified CPDA segmentation using proposed algorithm. Classification of the leaf diseases
respectively. is done using SVM classifier.In this work,K-Means clustering
Table 1. shows the number of leaves that are detected and proposed algorithm for image segmentation are compared
accurately using SVM classifier after extracting features for and shown that the proposed method gives more accurate
both the segmentation techniques.For Anthraconse disease it results.This work can be extended for identification of plant
is giving more good results. leaf diseases using different hybrid segmentation techniques.
140
Authorized licensed use limited to: INDIAN INSTITUTE OF TECHNOLOGY ROORKEE. Downloaded on November 23,2024 at 11:57:27 UTC from IEEE Xplore. Restrictions apply.
R EFERENCES
[1] Arya, M. S., K. Anjali, and DivyaUnni. ”Detection of unhealthy plant
leaves using image processing and genetic algorithm with Arduino.” In
2018 International Conference on Power, Signals, Control and Compu-
tation (EPSCICON), pp. 1-5. IEEE, 2018.
[2] Chouhan, S. S., Kaul, A., Singh, U. P., & Jain, S.” Bacterial foraging
optimization based Radial Basis Function Neural Network (BRBFNN)
for identification and classification of plant leaf
[3] Prakash, R. M., Saraswathy, G. P., Ramalakshmi, G., Mangaleswari,
K. H., &Kaviya, T. “Detection of leaf diseases and classification
using digital image processing”. In 2017 International Conference on
Innovations in Information, Embedded and Communication Systems
(ICIIECS), (pp. 1-4). IEEE.
[4] Kiani, E., &Mamedov, T.-”Identification of plant disease infection using
soft-computing: Application to modern botany”. Procedia Computer
Science, 120, 893-900 .(2017).
[5] Kaur, D., & Kaur, Y. Various image segmentation techniques: a review.
International Journal of Computer Science and Mobile Computing,
(2014). 3(5), 809-814.
[6] Singh, Vijai, and Ak K. Misra. ”Detection of plant leaf diseases
using image segmentation and soft computing techniques.” Information
processing in Agriculture 4.1 (2017): 41-49.
[7] Kiani, Ehsan, and TofikMamedov. ”Identification of plant disease in-
fection using soft-computing: Application to modern botany.” Procedia
Computer Science 120 (2017): 893-900.
[8] J. G. A. Barbedo, “A novel algorithm for semi-automatic segmentation
of plant leaf disease symptoms using digital image processing,” Tropical
Plant Pathology, vol. 41, no. 4, pp. 210 224, 2016.
[9] Khirade, Sachin D., and A. B. Patil. ”Plant disease detection using
image processing.” Computing Communication Control and Automation
(ICCUBEA), 2015 International Conference on. IEEE, 2015
[10] Lu, Y., Yi, S., Zeng, N., Liu, Y., Zhang, Y., 2017. Identification of
rice diseases using deep convolutional neural networks. Neurocomputing
267, 378–384
[11] GhaiwatSavita N, Arora Parul. Detection and classification of plant
leaf diseases using image processing techniques: a review. Int J Recent
AdvEngTechnol 2014;2(3):2347–812.ISSN (Online).
141
Authorized licensed use limited to: INDIAN INSTITUTE OF TECHNOLOGY ROORKEE. Downloaded on November 23,2024 at 11:57:27 UTC from IEEE Xplore. Restrictions apply.