Original papers
Detection of dropped citrus fruit on the ground and evaluation of decay stages in varying illumination conditions

https://doi.org/10.1016/j.compag.2016.05.020Get rights and content

Highlights

  • An image brightness enhancement algorithm for outdoor images was proposed.

  • Images had constant brightness after enhancement regardless of the original brightness.

  • Applied canny edge density was proposed to choose the best citrus-containing circle.

  • The detection algorithm showed different performances depending on size of sub-image.

  • Highest performance was 89.6% for correct identification and 5.0% for false positive.

Abstract

The devastating disease Huanglongbing (HLB) has greatly affected citrus in Florida and other growing regions. Detecting dropped fruit is one method of estimating the presence and severity of the disease. The purpose of this study was to develop a machine vision system that can detect dropped citrus on the ground in varying illumination conditions and identify decaying stages of the dropped fruit. In this paper, a novel method for image brightness correction using a contrast limited adaptive histogram equalization was developed to produce constant image brightness levels between and within images. Objectives of this study were to: (1) solve the varying illumination problem and create a consistent brightness level between and within the images, (2) develop an algorithm to eliminate multiple detections of a single fruit from the circular Hough transform, (3) design an algorithm to evaluate decaying stages of the dropped citrus, and (4) demonstrate ability to create a fruit drop map of citrus at each decaying stage in a commercial citrus grove. The result shows all processed images had desired brightness levels (152 out of 255) with a standard deviation of 1.0. Correct identification of fruit and false positives were measured as 89.6% and 5.0%, respectively. False classifications of decay stages of fruit were as low as 4.2% and 18.5% for recently dropped fruit and rotten fruit, respectively. The techniques developed in this work could be further developed into a commercial machine vision system for a real-time dropped fruit mapping system.

Introduction

Citrus Huanglongbing (HLB) or citrus greening has become a devastating disease in the United States, Brazil, and other citrus-producing regions. Citrus production in the United States was estimated to 5.8 million tons in 2014–2015 crop year which was 350,000 tons lower than previous season, mainly due to the decreased production in Florida (USDA, 2015a). The widespread cases of the disease in Florida has caused production to decrease 34.4% from 189.1 million boxes in the 2008–2009 crop year to 124.0 million boxes in the 2013–2014 crop year (USDA, 2010, USDA, 2015b). There is no known cure for the disease, but it is important to know where the disease is located and the severity at those places so that mitigating actions can be taken. One approximate indicator of severity is the number of dropped fruit. However, manual inspection to find the amount of the dropped fruit increases the production costs due to labor cost (Choi et al., 2015). Using colors and shapes of citrus fruit, and the machine vision technique, the manual inspection of the dropped citrus can be automated.

However, there are common difficulties in detecting citrus fruit using outdoor images. First of all, developing an outdoor machine vision system is challenging due to varying illumination conditions among images. Many studies reported that the varying illumination caused reduced accuracy of machine vision systems for outdoor fruit detection applications (Annamalai and Lee, 2003, Annamalai et al., 2004, Stajnko et al., 2004, Patel et al., 2012, Wachs et al., 2010, Kurtulmus et al., 2011, Wang et al., 2012).

Annamalai and Lee (2003) developed a machine vision system for citrus yield mapping. However, the varying brightness levels in their images caused incorrectly detected background and missed fruit. Even though their algorithm included several processes to reduce the false positives, the system showed a performance of only R2 = 0.76 between the actual number of fruit and estimated data. Wachs et al. (2010) also stated in their article that uncontrolled natural illumination was one of the reasons for limited performance. They developed a machine vision system using color and geometric properties to detect apples in orchards. However, the color was severely affected by unconstrained illumination. Although they combined thermal images to improve varying illumination conditions, their algorithm yielded a high false positive rate (46.8%) because their algorithm was based on the assumption that all images had the same illumination level.

Various methods were developed in many studies to overcome varying image illumination. Most of methods were based on two approaches. The first approach is to control the hardware system during image acquisition. Annamalai et al. (2004) used different shutter speeds of a camera for each image in a real-time citrus yield estimation system. They manually adjusted the shutter speed according to the light conditions. However, uneven illumination within an image was not solved by adjusting the shutter speed, and it reduced the performance during segmentation using colors. Wang et al. (2012) developed a system to evaluate the quality of cherries using their skin color. They used a flashlight with small camera aperture in order to decrease the effect of varying illumination. However, they reported that the flashlight caused highly saturated areas on fruit surfaces, and they had to use different color models for each aperture size.

The second approach to solve the varying illumination is to use software for pre-processing operations on the images. Chinchuluun and Lee (2006) adopted a gamma correction algorithm to decrease varying illumination conditions in their machine vision system for citrus yield mapping. It showed better accuracy by applying the pre-processing steps, achieving R2 = 0.83 between the actual number of fruit and fruit count by the algorithm. Kurtulmus et al. (2011) developed a green citrus detection system using histogram equalization and a logarithmic transform to enhance the image brightness. Even though the image brightness was corrected, the classification algorithm showed different results depending on brightness levels of the original images. For dark images, it had a 75.2% correct identification rate and a 16.8% of false positive rate. But for the bright images, the correct identification rate was 75.4%, and the false positive rate was 40.3%. Choi et al. (2013) proposed an illumination normalization technique to develop a fruit drop detection system. The normalization was processed by dividing each RGB color component by the average gray value of all the pixels in the image. The result showed an 81.3% correct identification rate with a 12.9% false positive rate. The results from the mentioned studies show that image enhancement algorithms for preprocessing yielded better performances compared to the method controlling the hardware. The gamma correction, the logarithmic transform, and the histogram equalization are well-known methods for image enhancement. However, the main purpose of the three methods is to enhance the quality of an image. Therefore, there is no guarantee that the algorithm would reduce the differences in illumination between images. In fact, none of the above studies showed analysis about improving the consistency of image brightness between images. Therefore, in this study a pre-processing step using a contrast limited adaptive histogram equalization (CLAHE) (Zuiderveld, 1994) was introduced to have a constant image brightness level not only within an image but also between images.

The second challenge is that to keep the same distance from a camera to the fruit is difficult in an outdoor machine vision system resulting in a wide range of fruit sizes among the images. A circular Hough transform (CHT) is the commonly used method to find potential fruit areas using shape information. However, due to the wide range of the fruit sizes in the images, the CHT can cause multiple detections of a single fruit with different sizes of circles (Bansal et al., 2013, Sengupta and Lee, 2014, Silwal et al., 2014). To locate accurate fruit areas without multiple detections, Bansal et al. (2013) suggested using an average of centers of overlapped fruit. Another approach was proposed by Sengupta and Lee (2014) to select the largest radius circle among the overlapped ones. However, averaging the circles’ locations or picking the largest circle disregarded the actual context within the detected areas and caused the choosing of an inappropriate circle containing not only the fruit region but also some of the background. Therefore, in this study, a new technique, applied canny edge density (ACED) algorithm, was developed with a canny edge detector and a morphological closing operation to locate the most proper fruit area considering the context of the detected circles from the CHT.

The overall goal of this study was to develop a machine vision system to estimate the amount of fruit drop in a commercial citrus grove. Specific objectives were:

  • 1.

    To develop an algorithm to solve varying illumination condition and have constant image brightness throughout all acquired images.

  • 2.

    To develop an algorithm to remove multiple detections of a single fruit from the circular Hough transform.

  • 3.

    To develop an algorithm to evaluate decaying stages of the citrus so that citrus growers can understand when fruit dropping happened.

  • 4.

    To create a fruit drop map of citrus at each decaying stage.

Section snippets

Image acquisition hardware

The image acquisition hardware was developed to (1) acquire images and GPS coordinates, (2) decrease the impact of varying illumination, and (3) protect the cameras. To achieve a continuous image acquisition process, the whole system was developed to be mounted to an all-terrain vehicle (Fig. 1a, Sportsman, Polaris Industries Inc., Medina, Minnesota). Two CMOS cameras (Sony ActionCam, Tokyo, Japan) were installed under a metal shield and recorded videos while the vehicle was driving in a citrus

Result of image enhancement using CLAHE

Fig. 12 shows a comparison of original images (Fig. 12a and b), enhanced images using the standard histogram equalization (Fig. 12c and d), and enhanced images using the CLAHE (Fig. 12e and f). Average brightness levels of the original images were in different ranges, 75.8 and 100.3. After the image enhancement using the HE, the brightness levels became similar, about 127 for both images. However, the center of the images was excessively contrasted, changing many pixels to a darker color. The

Conclusion

A machine vision system was developed for counting dropped citrus fruit under tree canopies and evaluating its stages: recently dropped fruit or rotten fruit. The contrast limited adaptive histogram equalization (CLAHE) enhanced the brightness of all images to have the constant image brightness levels. The proposed algorithm improved accuracy of the classification compared to previous studies. The performance of fruit detection algorithm was the highest (89.6% for correct identification and

Acknowledgement

This project was supported by the University of Florida/Institute of Food and Agricultural Sciences’ Citrus Initiative program. The authors would like to thank Mr. Michael Zingaro, Dr. Alireza Pourreza, Dr. Mazin Saber, Ms. Mubarkat Shuaibu and Ms. Brianna Posadas at the University of Florida for their assistance with this research.

References (24)

  • Choi, D., Lee, W., Ehsani, R., 2013. Detecting and counting citrus fruit on the ground using machine vision. In: Paper...
  • D. Choi et al.

    A machine vision system for quantification of citrus fruit dropped on the ground under the canopy

    Trans. ASABE

    (2015)
  • Cited by (17)

    • Development of a Handheld IoT-Based Fruit Harvester to support Agrotourism

      2022, Microprocessors and Microsystems
      Citation Excerpt :

      Several efforts can be made to reduce the risk of damage, including the application of precision agriculture. Precision agriculture, a method of managing agricultural variables to increase profits in the farming industry [2–4], utilizes advanced technologies, such as positioning system technology [5], to obtain real-time mapping [6–8], accurate mapping of crops, and reduce costs. Later, the GPS data acquired will be supported by variables, such as land processing costs, labor, and harvest yields.

    • Overcurrent-driven LEDs for consistent image colour and brightness in agricultural machine vision applications

      2021, Computers and Electronics in Agriculture
      Citation Excerpt :

      Gongal et al. (2016) used a full canopy cover made with tarpaulin to image individual trees. Choi et al. (2016) used a metal shield housing to detect dropped fruit under tree canopy. Even though LEDs are less powerful than xenon lamps, they are more efficient in terms of lumen output per wattage.

    • A role of computer vision in fruits and vegetables among various horticulture products of agriculture fields: A survey

      2020, Information Processing in Agriculture
      Citation Excerpt :

      ISADH feature extraction produces a higher accuracy rate (>93%) in both RGB and HSV color space and UNSER has the lowest accuracy rate among all feature extraction. Mean and standard variance performance metric are also used by the author [91]. Mean and standard variance are applying to get a performance by the author [92] They have also compared the performance of the proposed system with another metric such as sensitivity, specification, accuracy, mean and last Square error.

    • Evaluation of Citrus Gummosis disease dynamics and predictions with weather and inversion based leaf optical model

      2018, Computers and Electronics in Agriculture
      Citation Excerpt :

      However, the population greater than 10 propagules/cc in soil significantly affects the fibrous root density when treated with fungicides (Naqvi and Singh, 2002). By understanding the economic value of Citrus, many research work has also initiated on citrus fruit and leaves diseases, use of technology in citrus farming, use of spectral analysis for feature identification in citrus disease or production management (Carrer et al., 2017; Choi et al., 2016; Maldonado and Barbosa, 2016; Sharif et al., 2018; Diaz et al., 2017) There is another case about the effect of lack of transpiration and photosynthesis activity due to the presence of pathogen on plant physiology (Fig. 1).

    • Release and recovery of pectic hydrocolloids and phenolics from culled citrus fruits

      2017, Food Hydrocolloids
      Citation Excerpt :

      Huanglongbing (HLB) is a bacterial disease that has spread throughout the citrus growing regions of Florida, and much of the citrus cultivating regions in the world (Choi, Lee, Ehsani, Schueller, & Roka, 2016; Gottwald, 2010).

    View all citing articles on Scopus
    View full text