You are currently on the new version of our website. Access the old version .
AgriEngineeringAgriEngineering
  • Article
  • Open Access

1 May 2019

An Algorithm for Severity Estimation of Plant Leaf Diseases by the Use of Colour Threshold Image Segmentation and Fuzzy Logic Inference: A Proposed Algorithm to Update a “Leaf Doctor” Application

and
School of Engineering, College of Science, Engineering & Technology, University of South Africa, Pretoria 0003, South Africa
*
Author to whom correspondence should be addressed.

Abstract

This paper explains a proposed algorithm for severity estimation of plant leaf diseases by using maize leaf diseased samples. In the literature, a number of researchers have addressed the problem of plant leaf disease severity estimation, but a few, such as Sannakki et al., have used fuzzy logic to determine the severity estimations of the plant leaf diseases. The present paper aims to update the current algorithm used in the “Leaf Doctor” application that is used to estimate the severities of the plant leaf diseases by introducing the benefits of fuzzy logic decision making rules. This method will contribute to precision agriculture technology as it introduces an algorithm that may be embedded in smartphone devices and used in applications, such as a “Leaf Doctor” application. The applications designed based on the algorithm proposed in this study will help users who are inexperienced and not plant pathologists understand the level of the estimated disease severity. The use of fuzzy logic inference rules along with image segmentation determines the novelty of this approach in comparison with the available methods in the literature.

2. Tools and Methods

2.1. Tools

The ratio of D L A to T L A resulted in the POI, which was utilized as the input to the fuzzy inference system to be computed for the estimation of plant leaf disease severity. Fiji image J was used as a software package to perform the threshold colour segmentation of the maize image samples that were tested for the estimation of disease severities. LabVIEW is the systems engineering software that was used in this study to design and simulate the fuzzy logic inference rules that governed the severity estimations of the maize leaf diseases.

2.2. Methodology

Figure 1 shows the process block diagram for severity estimations of the maize image diseases that were tested in this study.
Figure 1. Process block diagram for severity estimation of the tested maize image diseases.
After retrieving the image to be tested, the next stage was to select all the diseased ROIs by means of Otsu threshold colour segmentation method in the Fiji ImageJ package to approximate the area of the diseased leaf. Image histogram classic panels and the settings for the image colour threshold segmentation are shown in Figure 2. To accomplish the threshold segmentation of the diseased leaf regions, we varied the Hue and Saturation in colour panel space until the symptomatic tissues were covered with black, as shown in Figure 3b. We then approximated the total area of the leaf image by also using the Otsu threshold colour segmentation method in the Fiji ImageJ package. This was performed by varying the colour space panel until the entire leaf was covered in black, as shown in Figure 4. Finally, we calculated the POI and used it as the input to the fuzzy inference system, which was modelled in LabVIEW to compute the fuzzy membership functions that estimated the maize leaf disease severities. Image segmentation by threshold colour is segmentation that is conducted based on the differentiation of colour in the image. Threshold colour segmentation was used as a grouping process that enabled the image pixels to be separated according to their colour intensities. The tested diseased maize images were segmented using a histogram classic panel of the Fiji ImageJ by choosing the appropriate threshold values for Hue and Saturation, as shown in Figure 2.
Figure 2. Image histogram classic panels and the settings for the threshold colour segmentation method to filter the diseased ROIs, as shown in Figure 3b.
Figure 3. (a) The original image to be segmented using the Otsu threshold colour segmentation method; (b) the diseased ROIs filtered using the Otsu threshold colour segmentation method; (c) the diseased ROIs are selected using a select option in the threshold colour window in order to approximate the D L A (Diseased leaf area); (d) the approximated D L A (Diseased leaf area) is displayed in the results window.
Figure 4. The entire leaf filtered using the Otsu threshold colour segmentation.

2.3. Procedure of Image Segmentation by Threshold Colour

Step1: We collected the diseased maize image samples from the database that were saved after they were collected from the maize field. The collection of the maize data was done by means of Google’s pixel 3 smartphone from the maize field. The maize data collection was manually conducted for every 10 square meters of the maize field. The tested images were RGB colour images.
Step2: Next, we selected the diseased ROIs in the image by using the threshold colour segmentation method in a classic panel of the Fiji ImageJ software. With the Otsu threshold method selected, we then varied the HSB (Hue, Saturation, and Brightness) settings using black as the threshold colour until the ROIs of the diseased portions were selected. The segmented area of the diseased ROIs was approximated and the result reflected under “Area”, as shown in Figure 3d. The segmented area represented the diseased leaf area, abbreviated as D L A   ( i n   p i x e l s ) in Equation (1).
P O I =   D L A T L A   X   100
Figure 2 shows the image histogram windows and the threshold colour segmentation settings that were selected for this study.
Table 1 summarizes the available options to perform the threshold colour segmentation method. The red ticks show the options that were selected for this study.
Table 1. Tabular summary of threshold colour segmentation settings.
Step 3: We calculated the POI by using the approximated D L A and T L A , as shown in Equation (1). However, it can be seen that in Equation (1), the approximated total leaf area T L A   ( i n   p i x e l s ) is not yet known. To calculate the approximated T L A , we also used the Otsu threshold colour segmentation to segment the original image, shown in Figure 3a. The outcomes were as shown in Figure 4, Figure 5 and Figure 6.
Figure 5. The entire leaf selected using a select option in the threshold colour window in order to approximate the T L A (Total leaf area in pixels).
Figure 6. The approximated T L A (Total leaf area) is displayed in the results window.
Following the approximated area values of D L A and T L A , it can be seen that by the use of Equation (1), P O I =   13697 65536   X   100   = 20.89%.
The maize sample images to be tested were selected from the database of the images that were collected from the maize field, as previously explained. The tested data set consisted of 12 Northern Corn Leaf Blight (Exserohilum), 12 Gray Leaf Spot (Cerospora), and 12 Common Rust (Puccinia sorghi) images of maize diseases. A total of 36 diseased test images was used to conduct the proposed study. For best results, the background of the tested images needed to be of any colour selected in the range of 0–255 of the gray scale.

2.4. Model of Fuzzy Logic Inference System

Fuzzy logic is an elegant approach to vagueness and uncertainty that was proposed by Lofti Zadeh in 1965. It incorporates the use of heuristic linguistic rules to solve problems that cannot be modelled by conventional techniques, such as the decisions taken by an experienced operator [17]. The percentage of the infected leaf area was used as the input to the fuzzy inference system that is proposed in this study. The fuzzified output consisted of the diseased leaf severity rating scales. Table 2 summarizes the fuzzification of both the input and output for the fuzzy inference system proposed in this study.
Table 2. Summary of leaf disease sample tests and the resulting severities.
The proposed fuzzy logic inference system to estimate plant leaf diseases was modelled in LabVIEW. Figure 7 shows the input and output membership functions of the fuzzy logic inference system. The system was modelled with 3 fuzzy logic decision rules that associated the POI with their corresponding severity grades of the maize diseases. The degree of membership ( μ ) determined how much of the input was involved with its membership function. The fuzzy logic rules were implemented as follows:
Figure 7. Input membership functions for POI and output membership functions for the disease severity grades.
  • Rule 1: If ‘Percentage of infected leaf area (POI)′ IS ‘Low POI’ THEN ‘Grade of disease severity (OUTPUT)’ IS ‘Low severity’.
  • Rule 2: If ‘Percentage of infected leaf area (POI)′ IS ‘Medium POI’ THEN ‘Grade of disease severity (OUTPUT)’ IS ‘Medium severity’.
  • Rule 3: If ‘Percentage of infected leaf area (POI)′ IS ‘High POI’ THEN ‘Grade of disease severity (OUTPUT)’ IS ‘High severity’.
The fuzzified control action of the inference system needed to be converted to a crisp output. The fuzzified output of the fuzzy logic inference system was converted to a crisp output by use of the Equation (2), which is a defuzzifier formula. This defuzzifier uses the centre of gravity to compute the crisp output of the fuzzy logic inference system.
z C O G =   μ c ¯ ( z ) . z . z μ c ¯ . z . z
In this regard, it is clear that Fuzzy logic is a rule-based system that can rely on the practical experience of an operator, which is particularly useful for capturing experienced operator knowledge [17]. The fuzzy logic membership function scale ratings used in this study to estimate the severities of the maize diseases were chosen based on the advice of the experienced pathologists at ARC (Agricultural Research Council), South Africa.

3. Results

Figure 8, Figure 9, Figure 10, Figure 11, Figure 12 and Figure 13 show the 3-D surface results and fuzzy logic inference-system performance tests when rules 1 to 3 were invoked.
Figure 8. The 3-D surface results when rule 1 was invoked.
Figure 9. Fuzzy logic inference test system to realize the feasibility of rule 1.
Figure 10. The 3-D surface results when rule 2 was invoked.
Figure 11. Fuzzy logic inference test system to realize the feasibility of rule 2.
Figure 12. The 3-D surface results when rule 3 was invoked.
Figure 13. Fuzzy logic inference test system to realize the feasibility of rule 3.
Table 3 summarizes the fuzzy logic-system performance results for severity estimations of the maize diseases, as shown in Figure 8, Figure 9, Figure 10, Figure 11, Figure 12 and Figure 13.
Table 3. A summary of the fuzzy logic-system performance results for the severity estimation of the maize diseases, as shown in Figure 8, Figure 9, Figure 10, Figure 11, Figure 12 and Figure 13.
To test the fuzzy logic inference system, LabVIEW was used in this study. Figure 8, Figure 9, Figure 10, Figure 11, Figure 12 and Figure 13 show the simulation results of the fuzzy logic inference system that was designed using 3 fuzzy logic based rules. The input to the fuzzy inference system was the percentage of infections, POI. In Table 3, it can be seen that the disease severities changed according to the calculated percentage of infections, POI. A POI of 10.59% with 0.99 degrees of membership invoked rule 1 and estimated the maize leaf to have a low disease severity. It can also be seen in Table 3 that a POI of 23.76% with 0.19 degrees of membership invoked rule 2 and estimated the maize leaf to have a medium disease severity. Finally, it is shown in Table 3 that a POI of 75.11% with 0.99 degrees of membership invoked rule 3 and estimated the maize leaf to have a high disease severity.

4. Discussion

The number of test images to maize diseases, as shown in Table 2, consisted of Northern Corn Leaf Blight (Exserohilum), Gray Leaf Spot (Cerospora), and Common Rust (Puccinia sorghi) maize diseases. It can be seen in Table 2 that 10 test images were used to estimate low disease severity, 11 test images to estimate medium disease severity, and 14 test images to estimate a high disease severity. Fiji ImageJ was used for threshold colour segmentation. Both the diseased leaf area and the total leaf area were used to calculate the percentage of infections (POI), as shown in Equation (1). The results of the approximated D L A and T L A , as shown in Figure 3d and Figure 6, respectively, were used to calculate the POI equal to 20.89%. By use of the fuzzy inference system proposed in this study, a POI of 20.89% represented a maize disease with a medium estimated disease severity. A method that was used by Sannakki et al. [5], utilized K-means clustering for image segmentation and fuzzy logic for the severity estimation of the plant leaf diseases. However, in their method, they did not clearly explain the membership functions in terms of the degree of membership. In computer vision, the recognition of objects, mostly depends on identifying particular shapes in an image. Clearly, using K-means clustering for segmentation, however good it is, has a disadvantage of having to find the K value by means of trial and error. In the literature, plenty of evidence has shown studies that use different versions of the ASSESS software to perform image analysis for the estimation of plant leaf disease severities [7,8,15]. However, none of these methods used fuzzy logic to estimate the severities of the plant leaf diseases.
Pallottinno et al. used the KNN algorithm for the implementation of the old tractor-tillage process that recognized the weed from the plants by means of a fitted camera for the data acquisition [13]. The main weakness in their study is that they made no attempt to compensate for disease severity estimation in the useful plants. A combination of our proposed method with theirs would have resulted in a system capable of weed detection and removal, and fuzzified plant disease severity estimation. Owomugisha and Mwebaze proposed a method that utilized a Linear SVC (Support Vector Classifier) classifier to classify the plant leaf diseases according to levels [14]. The levels were classified as Healthy class, Level 2 severity, level 3 severity, and level 4 severity. What Owomugisha and Mwebaze did not explain in their study was how they graded the plant diseases, according to their corresponding levels [8]. In our view, their findings are implausible, as they did not explain in their study how the severity levels were used to estimate the degree of the plant leaf diseases within a certain level. In our proposed method, the percentage of infection’s strength was determined by the degree of membership in its membership function. By use of the designed fuzzy logic decision rules in the fuzzy logic inference system, Equation (2) was used to decide on the level of the disease severity, which could be “Low severity”, “Medium severity”, or “High severity”. Our proposed method is reliable and not expensive for the following reasons:
  • The Fiji ImageJ package is an open source software package that is meant for image processing and segmentation.
  • Data acquisition is not done by means of expensive cameras that are computationally demanding.
  • Threshold colour segmentation is conducted based on the differentiation of colour on the image, and the areas of the segmented regions of interest can be approximated in the results window of the Fiji ImageJ.
The integration of the Otsu threshold colour segmentation and fuzzy logic inference rules that were conducted in this study is a novel way of estimating the plant leaf disease severities for implementation in the future updates of a “Leaf Doctor” application. Figure 14, Figure 15, Figure 16 and Figure 17 show the steps to be followed when using the “Leaf Doctor” application. Pethybridge and Nelson designed an interactive, iterative smartphone application called “Leaf Doctor” that is used to distinguish diseased from healthy plant tissues and calculate the percentage of disease severity [16]. To operate the “Leaf Doctor application”, the user touches the application’s display screen to select up to eight different colours that represent healthy tissues. The user then moves a threshold slider until only the symptomatic tissues have been transformed into a blue hue. The pixilated image is then analysed to calculate the diseased percentage [16]. Our proposed method suggests a novel algorithm for future updates of the “Leaf Doctor” application. It can be seen in Figure 17 that the results of the tested maize leaf give 54.79% of the diseased leaf area and 45.21% of the healthy area. However, the information on the severity of the diseased leaf area of 54.79% might not be clear to an inexperienced user of the application, who also might not be a qualified or experienced pathologist. Our method represents an innovative alternative to the one currently used in the “Leaf Doctor” application, as it uses fuzzy logic to estimate the percentage severity of the diseased leaf.
Figure 14. Step 1 for loading the tested image to the “Leaf Doctor” application.
Figure 15. Step 2 shows the loaded image ready for testing.
Figure 16. Step 3 shows two selected colours that represented the healthy regions and the threshold slider was varied to cover the diseased tissues with a blue hue.
Figure 17. Step 4 shows the estimated results by clicking the tick on the upper right corner of Figure 15.
Figure 14 shows step 1 by using the “Leaf Doctor” application to analyse the maize image for possible disease. By clicking “load image from gallery”, the maize image to be analysed was selected among other images available in the smart phone’s gallery.
Figure 15 shows the maize image to be analysed with a slider that was used to threshold the image.
By selecting the colours that represented the healthy regions in the image of Figure 15, a selection of up to eight selections could be made. However, it can be seen in Figure 16 that a selection of two colours was made to represent the healthy regions.
By varying the threshold slider, the diseased leaf tissues were covered in blue. The results were obtained by clicking a tick on the upper right corner of Figure 16. Figure 17 shows how the results were displayed for the healthy regions and diseased regions. As mentioned previously, an inexperienced user, who might not be a pathologist, may not understand the interpretation of the disease severity if it is only displayed in percentage. As shown in Figure 7, it can be seen that our proposed method has a capability of rating the percentage of infections as “Low severity”, “Medium severity”, or “High severity”. For instance, if our proposed method would have been used to interpret the results shown in Figure 17, the diseased leaf area of 54.79% would have been estimated as “High severity”. As mentioned previously, it has to be remembered that the fuzzy logic scale ratings that were used in this study were chosen based on advice that was given by the experienced pathologists at ARC (Agricultural Research Council), South Africa.
Table 4 shows a comparison of the displayed results using a current “Leaf Doctor” method, with a recommended method using our proposed method with fuzzy logic decisions.
Table 4. A comparison table to interpret the results of current “Leaf Doctor” method and our proposed method.

5. Conclusions

The estimated disease severities of the maize leaves were successfully measured by the use of the Otsu threshold colour segmentation and fuzzy logic decision rules. The method proposed in this study was not time consuming and is recommended for smart phone applications that do not integrate fuzzy logic to give meaningful results. “Leaf Doctor” is an example of an application that is recommended to employ our proposed method in its future updates. Our proposed method was tested using a software called Fiji image J for colour threshold segmentation. The fuzzy logic inference system was modelled and tested using a software called LabVIEW.

Author Contributions

Data curation, M.S. (Malusi Sibiya); investigation, M.S. (Malusi Sibiya); methodology, M.S. (Malusi Sibiya); resources, M.S. (Malusi Sibiya); supervision, M.S. (Mbuyu Sumbwanyambe); validation, M.S. (Mbuyu Sumbwanyambe); visualization, M.S. (Malusi Sibiya); writing—original draft, M.S. (Malusi Sibiya); writing—review and editing, M.S. (Malusi Sibiya).

Funding

This study was funded by the South African Space Agency in partnership with the Agricultural Research Council (ARC), South Africa.

Acknowledgments

The research presented in this paper was funded by South African National Space Agency (SANSA) in partnership with the Agricultural Research Council (ARC), South Africa.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Sladojevic, S.; Arsenovic, M.; Anderla, A.; Culibrk, D.; Stefanovic, D. Deep Neural Networks Based Recognition of Plant Diseases by Leaf Image Classification. Comput. Intell. Neurosci. 2016, 2016, 1–11. [Google Scholar]
  2. Mohanty, S.P.; Hughes, D.P.; Salathé, M. Using Deep Learning for Image-Based Plant Disease Detection. Front. Plant Sci. 2016, 7, 1419. [Google Scholar] [CrossRef] [PubMed]
  3. Amara, J.; Zhang, J.; Naik, H.S.; Assefa, T.; Sarkar, S.; Reddy, R.V.; Singh, A.; Ganapathysubramanian, B.; Singh, A.K. Computer Vision and Machine Learning for Robust Phenotyping in Genome-Wide Studies. Inf. Process. Agric. 2017, 4, 1–11. [Google Scholar]
  4. Fang, Y.; Ramasamy, R.P. Current and Prospective Methods for Plant Disease Detection. Biosensors 2015, 5, 537–561. [Google Scholar] [CrossRef] [PubMed]
  5. Sannakki, S.S.; Rajpurohit, V.S.; Nargund, V.B.; R, A.K.; Yallur, P.S. Leaf Disease Grading by Machine Vision and Fuzzy Logic. Int. J. Comp. Tech. Appl. 2011, 2, 1709–1716. [Google Scholar]
  6. Wang, G.; Sun, Y.; Wang, J. Automatic Image-Based Plant Disease Severity Estimation Using Deep Learning. Comput. Intell. Neurosci. 2017, 2017, 1–8. [Google Scholar] [CrossRef] [PubMed]
  7. Sun, H.; Wei, J.; Zhang, J.; Yang, W. A Comparison of Disease Severity Measurements Using Image Analysis and Visual Estimates Using A Category Scale for Genetic Analysis of Resistance to Bacterial Spot in Tomato. Eur. J. Plant Pathol. 2014, 139, 125–136. [Google Scholar] [CrossRef]
  8. el Jarroudi, M.; Kouadio, A.L.; Mackels, C.; Tychon, B.; Delfosse, P.; Bock, C.H. A Comparison between Visual Estimates and Image Analysis Measurements to Determine Septoria Leaf Blotch Severity in Winter Wheat. Plant Pathol. 2015, 64, 355–364. [Google Scholar] [CrossRef]
  9. Service, F.; Murakami, P.F.; Turner, M.R.; van den Berg, A.K.; Schaberg, P.G. An Instructional Guide for Leaf Color Analysis Using Digital Imaging Software; General Technical Report NE-327; United States Department of Agriculture: Newtown Square, PA, USA, 2005.
  10. Wijekoon, C.P.; Goodwin, P.H.; Hsiang, T. Quantifying Fungal Infection of Plant Leaves by Digital Image Analysis Using Scion Image Software. J. Microbiol. Methods 2008, 74, 94–101. [Google Scholar] [CrossRef] [PubMed]
  11. Barbedo, J.G.A. An Automatic Method to Detect and Measure Leaf Disease Symptoms Using Digital Image Processing. Plant Dis. 2014, 98, 1709–1716. [Google Scholar] [CrossRef] [PubMed]
  12. Patil, S.B.; Bodhe, S.K. Leaf Disease Severity Measurement Using Image Processing. Int. J. Eng. Technol. 2011, 3, 297–301. [Google Scholar]
  13. Pallottino, F.; Menesatti, P.; Figorilli, S.; Antonucci, F.; Tomasone, R.; Colantoni, A.; Costa, C. Machine Vision Retrofit System for Mechanical Weed Control in precision agriculture applications. Sustainability 2018, 10, 2209. [Google Scholar] [CrossRef]
  14. Owomugisha, G.; Mwebaze, E. Machine Learning for Plant Disease Incidence and Severity Measurements from Leaf Images. In Proceedings of the 2016 15th IEEE International Conference on Machine Learning and Applications, Anaheim, CA, USA, 18–20 December 2016; IEEE: Piscataway, NJ, USA, 2017; pp. 158–163. [Google Scholar] [CrossRef]
  15. Bock, C.H.; Cook, A.Z.; Parker, P.E.; Gottwald, T.R. Automated Image Analysis of the Severity of Foliar Citrus Canker Symptoms. Plant. Dis. 2009, 93, 660–665. [Google Scholar] [CrossRef] [PubMed]
  16. Pethybridge, S.J.; Nelson, S.C. Leaf Doctor: A New Portable Application for Quantifying Plant Disease Severity. Plant. Dis. 2015, 99, 1310–1316. [Google Scholar] [CrossRef] [PubMed]
  17. Mamdani, E.H. Application of Fuzzy Logic to Approximate Reasoning Using Linguistic Synthesis. In Proceedings of the IEEE Sixth International Symposium on Multiple-Valued Logic, Logan, Utah, USA, 25–28 May 1976; Computer Society Press: Washington, DC, USA, 1976; pp. 196–202. [Google Scholar]

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.