Skip to main content

ORIGINAL RESEARCH article

Front. Plant Sci., 13 April 2022
Sec. Crop and Product Physiology
This article is part of the Research Topic Improvement for quality and safety traits in horticultural plants View all 25 articles

Quantitative Extraction and Evaluation of Tomato Fruit Phenotypes Based on Image Recognition

\r\nYihang ZhuYihang Zhu1Qing GuQing Gu1Yiying ZhaoYiying Zhao1Hongjian WanHongjian Wan2Rongqing WangRongqing Wang2Xiaobin Zhang*Xiaobin Zhang1*Yuan Cheng*\r\nYuan Cheng2*
  • 1Institute of Digital Agriculture, Zhejiang Academy of Agricultural Sciences, Hangzhou, China
  • 2State Key Laboratory for Quality and Safety of Agro-Products, Institute of Vegetables, Zhejiang Academy of Agricultural Sciences, Hangzhou, China

Tomato fruit phenotypes are important agronomic traits in tomato breeding as a reference index. The traditional measurement methods based on manual observation, however, limit the high-throughput data collection of tomato fruit morphologies. In this study, fruits of 10 different tomato cultivars with considerable differences in fruit color, size, and other morphological characters were selected as samples. Constant illumination condition was applied to take images of the selected tomato fruit samples. Based on image recognition, automated methods for measuring color and size indicators of tomato fruit phenotypes were proposed. A deep learning model based on Mask Region-Convolutional Neural Network (R-CNN) was trained and tested to analyze the internal structure indicators of tomato fruit. The results revealed that the combined use of these methods can extract various important fruit phenotypes of tomato, including fruit color, horizontal and vertical diameters, top and navel angles, locule number, and pericarp thickness, automatically. Considering several corrections of missing and wrong segmentation cases in practice, the average precision of the deep learning model is more than 0.95 in practice. This suggests a promising locule segmentation and counting performance. Vertical/horizontal ratio (fruit shape index) and locule area proportion were also calculated based on the data collected here. The measurement precision was comparable to manual operation, and the measurement efficiency was highly improved. The results of this study will provide a new option for more accurate and efficient tomato fruit phenotyping, which can effectively avoid artificial error and increase the support efficiency of relevant data in the future breeding work of tomato and other fruit crops.

Introduction

Tomato (Solanum lycopersicum L.) is one of the most widely consumed vegetables around the world (Kaya et al., 2020; Alam et al., 2021; Faizan et al., 2021). Tomatoes are used for food in a variety of forms and contain considerable vitamins A, C, and lycopene, which have been shown to reduce the risk of cancer and neurodegenerative disorder (Kinkade and Foolad, 2013; Caseiro et al., 2020). Due to the genetic diversity and commercial value, tomato is also a model species for fruit development studies. Since tomato spread out through trade from South America and Mesoamerica where tomato domestication began, it was chosen for diverse fruit colors and sizes throughout breeding. Consequently, current tomato cultivars have various phenotypes including colors, sizes, and internal structure (Sierra-Orozco et al., 2021). For example, cultivated tomatoes have colors from green to orange, red, and black; sizes from 6 to 100 mm, and even larger; and internal shapes including diverse locule and pericarp traits. All these traits determine the market valuation and culinary consumption procedures of tomato fruits, including fresh, sliced, diced, or cooked (De Corato, 2020).

The growers’ demand for lucrative tomatoes is associated with the color and size of the tomato fruits. Although all traits are crucial, consumers prefer to rate tomatoes initially on their sensory appearance and then on their flavor. For example, large-sized and flat tomatoes are preferred to be sliced or cooked because they are easier for manual processing. Thus, fruit size and vertical/horizontal ratio (fruit shape index) are important indicators of tomato traits. Fruit color is the most attractive attribute as commodities (Oltman et al., 2014). The pericarp is the circular outer part of the fruit fresh part developed from mesocarp. Locules are septum-enclosed independent spaces separated by the placenta which are filled with semiliquid tissue. Pericarp and locules determine the taste and malformation rate. Fruits with large locule area proportion tend to have higher moisture content and are suitable for fresh-eating, whereas fruits with small locules and thick pericarp are preferred for cooking (Tamasi et al., 2019). Because tomato fruit traits are so important to customers, tomato breeders are working hard to improve those qualities. A deeper knowledge of tomato fruit phenotypes can help in breeding attempts to enhance fruit quality.

Although the tomato genome has been sequenced for many years (The Tomato Genome Consortium, 2012) and many quantitative trait loci (QTLs) related to fruit morphology have been identified (Prudent et al., 2009; Celik et al., 2017), traditional breeding techniques are still dominant in tomato breeding, and the traits of parents for hybrid breeding are selected mainly depending on breeder’s experience (Zhu et al., 2018). Such multidimensional screening of tomato phenotypes is not only time-consuming and labor-intensive but also limits the breeding accuracy and efficiency. Therefore, it is necessary to develop methods to quantitatively evaluate the tomato fruit phenotypes, including the fruit color, size, morphology, and locule structures (Bhatta et al., 2021). Moreover, as the concept of breeding 4.0 being raised, which seeks out the desirable traits combined with the aid of artificial intelligence based on fully comprehended bioinformatic and agronomic data (Wallace et al., 2018), high-throughput and quantitative phenotyping is more likely to promote crop breeding efficiency in a novel, data-driven way (Washburn et al., 2019).

Tomato fruit traits pertaining to morphological and structural aspects are used for fruit phenotyping (Darrigues et al., 2008), which is closely connected with genetic diversity analysis regarding the effects of breeding and crop genetic resources conservation and exploitation (Mata-Nicolás et al., 2020). With the progress of image recognition based on deep learning methods, quantitative and high-throughput plant phenotyping is becoming promising (Pereira et al., 2021). There are plenty of successful studies in most field crops (Li et al., 2020), but using high-throughput methods to assess quantitative phenotypes of vegetables is still at an earlier experimental stage (Tripodi et al., 2018; Boogaard et al., 2020). Most vegetable breeding initiatives appear to be hampered by a lack of affordable and accessible high-throughput techniques. Generally, manual fruit measurement, which is commonly utilized in traditional phenotypes evaluation and costs a lot of labor and time, is the main barrier in comprehensive tomato fruit phenotyping (Costa et al., 2018). A tool called Tomato Analyzer based on computer vision has shown to be quite effective in extracting tomato fruit morphometric and structural features automatically, yet the analysis of some fruit internal structures, such as locule number and area, still requires manual operations (Gonzalo et al., 2009). Another tool called LocAnalyzer attempts to count tomato fruit locule automatically with the help of computer vision recognition (Spetale et al., 2020), but it only processes one fruit in each image and requires image scanning of cut fruits.

In this study, a series of quantitative indicators (color, diameters, angles, locules, and pericarp) for tomato fruit phenotypes are proposed based on the quantitative requirements of tomato breeding. A combination of image recognition and Mask Region-Convolutional Neural Network (R-CNN) deep learning methods to extract these indicators is proposed. The findings are supposed to provide a useful tool for the high-throughput phenotyping of tomatoes. The tool also assists breeders to evaluate tomato fruit traits quantitatively and automatically and could be extended to other fruit crop breeding.

Materials and Methods

Materials, Sampling, and Image Acquisition

The ripe fruits of all 591 tomato cultivars were applied for image acquisition and phenotyping. Ten cultivars with obvious differences in fruit size, fruit color, and other aspects were selected as samples for phenotyping comparison and verification (Table 1 and Figure 1A). All tomato cultivars were cultivated in the tomato germplasm field of Zhejiang Academy of Agricultural Sciences, Yangdu, Haining City, Zhejiang, China (120.411°N, 30.441°E).

TABLE 1
www.frontiersin.org

Table 1. Tomato samples for image acquisition and phenotyping verification.

FIGURE 1
www.frontiersin.org

Figure 1. Tomato samples and image acquisition process. (A) Tomato samples, images are proportional; (B) Image acquisition of ruler card and the intact fruit; (C) Image acquisition of the vertical cut; (D) Image acquisition of the horizontal cut; the same fruit of vertical cut is cut then joint the corresponding horizontal parts together. (E) The extraction of the fruit average color Red, Green, and Blue (R, G, B) values from the intact fruit images; (F) Fruit top angle, fruit navel angle, horizontal diameter, and vertical diameter extraction from the vertical cut images; the red, yellow, magenta, and cyan points are the navel point, the top point, the left, and the right adjacent convex points, respectively; (G) Fruit locule number, locule area proportion, and pericarp thickness extraction from the horizontal cut images; the gray and orange circles refer to the locule segmentation and the horizontal cut section, the green points are the center of the horizontal cut section, and the red points are the intersections of the lines and the edges.

Three to four representative tomato fruit samples were placed on a white background at intervals. A black-white ruler card with accurate squares of 1 cm × 1 cm was attached next to the samples as reference (Figure 1B). Images of both the samples and the ruler card were acquired using a camera (Canon EOS 20D, 50 mm fixed-focus lens, Canon, Inc., Tokyo, Japan) in a photo box with a diffuse inner surface and a soft light (24 W, color temperature 6,000 K, WenaSelin Tec., Co. Ltd., Hangzhou, China) on the top. Due to the fixed focal length, the image with the ruler card was taken only once to calibrate the measurement before taking other images. After taking an image of the intact tomato fruits (Figure 1B), each fruit was sepal-removed and cut vertically through the center. Then, another image of the vertical cut was taken (Figure 1C). Finally, both the vertical halves were cut horizontally, and the adjacent parts were put together to take a third image of the horizontal cut (Figure 1D).

Image Recognition and Phenotyping Indicators

To quantitatively extract tomato fruit phenotyping indicators from the images, OpenCV 4.5.3 computer vision library was applied to conduct image recognition tasks including background filtering, length measuring, and contour points locating. The tomato fruit locules were recognized using a deep learning instance segmentation model developed on PaddlePaddle 1.8.4 (Ma et al., 2019).

Intact Tomato Fruits

The image recognition process for the image of intact tomato fruits is shown in Figure 1E. The image was first transformed into Hue-Saturation-Value (HSV) color mode. Based on the saturation and value differences between the tomato fruits and the background, HSV filtering and binarization were then performed to remove the background. Pixels that had H between 0 and 180° (ranging 0–360°) and both S (ranging 0–255°) and V (ranging 0–255°) greater than a certain threshold were marked as tomato fruit area, and other pixels were background. According to our preliminary experiment, such a threshold would vary among cultivars. Still, for a certain fruit color type, the threshold stays the same. As background pixels were replaced with black color, the image was binarized, and only fruits were remained. Then, the fruit color in Red, Green, and Blue (RGB) color mode was extracted for each fruit in the image and taken the average R, G, and B value, respectively.

Vertical Cut

The image recognition process for the image of vertical cut is shown in Figure 1F. HSV filtering and binarization were performed first, as mentioned above. The fruit contours in the image and the corresponding minimum area rectangles enclosing the fruit contours were extracted. According to our preliminary experiment, the fruit horizontal diameters extracted from intact fruit and vertical cut image have no significant difference. Thus, the width and height of the rectangle were measured and recorded as the tomato fruit horizontal diameter and vertical diameter, respectively. Vertical/horizontal ratio (also called fruit shape index) is calculated as vertical diameter divided by horizontal diameter. Fruit navel angle and fruit top angle are the angles of the calyx indentation and top protrusion on the vertical section, respectively. They were measured as follows:

1. Find the fruit contour;

2. Use the Douglas-Peucker algorithm (Douglas and Peucker, 1973) to locate the approximate convex points;

3. Find the concave point on the contour that had the largest distance toward the line passing through its two adjacent convex points. This concave point is marked as the fruit navel point (red points in Figure 1F);

4. In rare cases, the abovementioned concave point is not the real fruit navel point. Crop the image region between each concave point and the center point of fruit contour. Under HSV color mode, find the concave point that has the lowest saturation in the cropped region. This concave point is the fruit navel point because the region near calyx on the vertical section is whiter than other fruit parts;

5. Find the farthest contour point on the opposite side of the contour. This is the fruit top point;

6. Find two adjacent convex points of both the fruit navel point and the fruit top point. Calculate the fruit navel angle and fruit top angle which are denoted in Figure 1F;

7. The top/navel ratio is calculated as fruit top angle divided by fruit navel angle.

Horizontal Cut

The image recognition process for the image of horizontal cut is shown in Figure 1G. The locules in tomato fruits were segmented using a deep learning instance segmentation model based on Mask R-CNN (He et al., 2018). The procedures are as follows.

Locules Labeling

Among all cultivars, 335 images of horizontal cut tomato fruits were selected to form a fruit locule image dataset. All locules in the images were manually labeled as polygons using an image annotation tool LabelMe (Russell et al., 2008).

Data Augmentation

Increasing the number of training images by transformation and enhancement techniques is useful to avoid the overfitting and non-convergence of R-CNN algorithms. Images rotating 90, 180, and 270° were appended into the dataset. Vertical and horizontal mirroring of images was also appended into the dataset. Images were resized into 0.1, 0.25, 0.5, 0.8, 2, and 4 times of the raw image size with bilinear interpolation. These images were appended into the dataset to augment image size levels. Besides the above transformation techniques, image blurry was applied as an enhancement technique to improve the model performance on blurred images. All the above mentioned transformed images were processed by Gaussian blurry with 5 × 5 kernel and appended into the dataset. The number of the image dataset was increased to 8,040 after the abovementioned augmentation methods. The dataset was then divided into training (5,628 images, 70%), validation (1,608 images, 20%), and testing (804 images, 10%) sets.

Deep Learning Model Training

Mask R-CNN has been wildly applied in fruit detecting (Gao et al., 2020) and segmentation (Liu et al., 2020), but the network model for tomato fruit locule segmentation still needs further training to improve the performance. Feature Pyramid Network (FPN) was implemented to fuse color and texture features into the model (Lin et al., 2017). Region Proposal Network (RPN) was applied to generate region proposals based on the features, which were aligned with the images through the Region of Interest (RoI) Align process (Tang et al., 2018). The model was then constructed by feeding the RoI Aligned features to the convolution layers for segmentation. During training, a positive segmentation was confirmed if Intersection over Union (IoU) is greater than 0.5. The loss function was defined as the sum of the bounding box regression loss. The termination condition is when the loss function value remained consistent or it hit 5,000 iterations.

Deep Learning Model Evaluation

To evaluate the segmentation results, all segmentation results were divided into four types, namely, true positive (TP), true negative (TN), false positive (FP, wrong segmentation), and false negative (FN, missing segmentation). Precision (P), recall (R), and F1-score (the harmonic average of P and R) were defined as follows:

P = T P T P + F P
R = T P T P + F N
F1 - s c o r e = 2 × P × R P + R

Since there was only one segmentation class, average precision (AP) was defined as the area under the curve plotted with the P at the vertical axis and the R at the horizontal axis.

Phenotyping Indicators Extraction

The locule number was consequently the number of locule segmentations after the deep learning model recognition. The locule area proportion was the area proportion of all locule segmentations in one fruit over the corresponding fruit horizontal cut section. For each fruit, a line was drawn through the center of the horizontal cut section and each center of the locule segmentation. Each line intersects the edge of each locule segmentation and the horizontal cut section at a pair of points (red points in Figure 1F). Pericarp thickness was thus measured as the average of the lengths between these pairs of points.

Verification

Among all the phenotyping indicators, the tomato fruit horizontal diameter, vertical diameter, pericarp thickness, and locule number could be obtained by direct measurement. Thus, these indicators were manually counted or measured to make a comparison with the results obtained by image recognition. Unequal variance tests (Levene’s test) and significance tests were conducted between the results of the manual measurement and the image recognition. The Root Mean Square Error (RMSE) was applied to evaluate the accuracy of the image recognition as follows:

R M S E = 1 n i = 1 n ( R i - M i M i ) 2

where n represents the number of measurements, Ri represents the image recognition result, and Mi represents the manual result. All statistical calculations and analyses were conducted using the R programming language (version 4.0.5) (R Core Team, 2020). The C# code for the methods is presented in Supplementary Material “used_codes.cs.”

Results

Tomato Fruit Color

The threshold for HSV filtering and binarization is crucial to tomato fruit color recognition. For green, orange, red, and black tomato fruits, as sorted in colors in Figure 2, the H thresholds for HSV filtering keep the same while S and V thresholds change in a range of 30–130. However, the S threshold varies in a minimal range from 100 to 120, and the V threshold stays the same at 100 for most samples, except that the black tomatoes (No. 113, No. 123) need S and V thresholds of 30 and 130, and No. 68, which has mottle on the surface, needs S thresholds of 60. This suggests that there are certain S and V threshold combinations for the HSV filtering and binarization of pure color and black tomatoes. Since No. 68 is the only mottled tomatoes found among all cultivars, the S and V threshold combination (120, 60) should be considered as a simple case. Notably, the sepal and calyx are also marked as background and removed, and this is designed in the HSV filtering and binarization process so that the sepal and calyx do not influence the extraction of the fruit color R, G, and B values. As is shown in Figure 2, the fruit average color is objective and in accordance with the human eye sensory observation, suggesting that the fruit color obtained by image recognition is reliable and not subjected to human judgment. The detailed fruit color R, G, and B values are listed in Supplementary Table 1.

FIGURE 2
www.frontiersin.org

Figure 2. Fruit average colors and thresholds for Hue-Saturation-Value (HSV) filtering and binarization of the intact fruit images. The square beside each tomato fruit image shows the fruit average color in RGB mode. Fruit images are not proportional.

Performance of Phenotyping From Vertical Cut Images

The measurements of the tomato fruit vertical diameter and horizontal diameter were verified. The results are shown in Figures 3A,B. The results show that the measurements based on image recognition accord with the manual measurements. No. 80 has the largest horizontal and vertical diameter. No. 341 and No. 459 have the shortest horizontal and vertical diameter, respectively. The vertical diameter of No. 341 and No. 459 are quite close, which accord with the proportional images in Figure 1A. Significance tests suggest that there are no significant differences between the results of image recognition and manual measurements in the same sample. The RMSE values of the vertical and horizontal diameter measurements are 0.016 and 0.017, respectively, which are less than 0.100, an empirical threshold of RMSE determining the accuracy of measurement results. In addition, the Pearson’s correlation R2 between the image recognition and the manual measurements is greater than 0.99. These indicate that the accuracy of the image recognition measurement is equivalent to that of manual measurement. The unequal variance test indicates homogeneous variances between the results of the manual measurement and the image recognition (p = 0.265), indicating that the variances between image recognition and manual measurements are equal. This implies that the fruit vertical and horizontal diameter measurements by image recognition are as precise as manual measurements.

FIGURE 3
www.frontiersin.org

Figure 3. Verification of phenotyping indicators from fruit vertical cut images. (A) Vertical diameters of tomato fruits; (B) Horizontal diameters of tomato fruits; (C) Fruit top and navel angles, fruit images are not proportional.

The results of fruit top and navel angles are shown in Figure 3C. Large fruit top angles indicate flat fruit top shape, whereas small fruit top angles indicate sharp protruding fruit top shape. Large fruit navel angles indicate flat fruit navel shape, whereas small fruit navel angles indicate deep indented or concave fruit navel shape. Among all samples, No. 522 has the smallest fruit top angle, which is due to the sharp protrusion on the fruit topside. No. 80 has the largest fruit top angle in accordance with the smooth and flat shape on the fruit topside. Fruit top angles of all samples except No. 522 are larger than 150°, which accord with the sensory judgment. No. 405 has the smallest fruit navel angle among all samples as the indentation on the fruit navel side is quite deep. No. 123 has the largest fruit navel angle as the indentation on the fruit navel side is quite shallow. For most samples, the fruit navel angles are smaller than the fruit top angles as expected, except that No. 522, 341, and 123 show the opposite pattern. Although the fruit top and navel angles are difficult to measure manually, the results accord quite close with the sensory judgment. Therefore, the fruit top and navel angles by image recognition are feasible to reflect the tomato fruit top and navel phenotypes quantitatively. Detailed fruit lengths and angles data are listed in Supplementary Table 1.

Performance of Phenotyping From Horizontal Cut Images

The number of iterations has an impact on the training results of deep learning models. The training and validation datasets had closely identical variation trends, indicating that the model was not overfitted with the parameters chosen during the validation procedure. The loss value reduces as the number of iterations increases, but it remains rather consistent as the number of iterations hits 4,000, and it progressively approaches the minimum value of 0.1505. The results show that the Mask R-CNN used in this model can learn the features efficiently and converge rapidly, indicating that it has the potential to accomplish the required objectives. The detailed loss curves of the training and validation sets for 5,000 iterations are shown in Supplementary Figure 1A.

When evaluating the performance of a model, both recall and precision are critical. As recall increases, the precision decreases, but the precision of an outperforming model keeps a high level as recall increases, implying the model will segment a large majority of TP before detecting FP. Thus, the F1-score, the harmonic average of precision and recall, is used to evaluate the model performance. Values between 0 and 1 are set as various thresholds. Segmentations having a prediction probability larger than the threshold are considered positive. The F1-score reaches the maximum of 0.8620 when the threshold is 0.6, implying that 0.6 is a trade-off that balances the precision and recall and maximizes the performance of the model. The AP is 0.8753, implying that the segmented locule areas match the true locule areas more than 87.53% of the circumstances. When the threshold is 0.9, the AP is 0.8107 (greater than 0.8). This indicates that the model based on Mask R-CNN has high accuracy. The trajectories of the F1-score at various thresholds are shown in Supplementary Figure 1B.

The measurements of tomato fruit locule number and pericarp thickness were verified and presented in Figure 4. Blue regions represent the locule segmentation by the deep learning segmentation model. The results suggest that the model can accurately segment locule areas from the fruit horizontal cut images after training. Color, fruit size, and seeds have barely influenced the model segmentation performance. No. 106 and No. 80 in Figure 4A indicate that small locules which are not fully formed in the fruit can also be segmented by the model. The locule counting results in Table 2 show that locule counted by the deep learning segmentation model is promising, suggesting that the model can automatically count the fruit locule number with perfect accuracy. The only wrongly counted cultivar among all samples is No. 459, which is also difficult for manual counting due to its small fruit size and hazy septum.

FIGURE 4
www.frontiersin.org

Figure 4. Verification of phenotyping indicators from fruit horizontal cut images. (A) Fruit locule segmentation, fruit images are not proportional; (B) Pericarp thickness of tomato fruits; (C) Locule area proportions of tomato fruits.

TABLE 2
www.frontiersin.org

Table 2. Tomato samples for image acquisition and phenotyping verification.

The results in Figure 4B show that the pericarp thickness measurements based on image recognition accord with the manual measurements. No. 80 and No. 123 have the thickest and thinnest fruit pericarp, respectively. The thickness of No. 68 and No. 129 are quite close in accordance with the sensory judgment. Significance tests suggest that there are no significant differences between the pericarp thickness by image recognition and manual measurements in the same sample. The RMSE of the pericarp thickness measurement is 0.024, which is less than 0.100, indicating high accuracy of image recognition measurement. In addition, the Pearson’s correlation R2 between the image recognition and the manual measurements is greater than 0.99. This indicates that the accuracy of the pericarp thickness measurement by image recognition is equivalent to that of manual measurement. The unequal variance test indicates homogeneous variances between the results of the manual measurement and the image recognition (p = 0.303), indicating that the variances between image recognition and manual measurements are equal. This implies that the pericarp thickness measurements by image recognition are as precise as manual measurements.

The results of fruit locule area proportion are shown in Figure 4C. A larger locule area proportion indicates a larger locule volume proportion in the fruit. Among all samples, No. 459 and No. 68 have the largest and smallest locule area proportion, respectively. No. 129 has a larger locule area proportion than No. 106. The locule area proportions of No. 522 and No. 341 are quite close. These all accord with the sensory judgment from the fruit images. Although the fruit locule area proportions are difficult to measure manually, the results accord quite close with the sensory judgment. Therefore, the fruit locule area proportions measured by the deep learning segmentation model can quantitatively represent tomato fruit locule phenotypes. Detailed fruit locule number, locule area proportion, and pericarp thickness data are listed in Supplementary Table 1.

Discussion

This study proposed a combination of image recognition and deep learning segmentation methods to extract several important tomato fruit phenotypes quantitatively. The manual measuring of these phenotypes is essential for tomato breeding but is time-consuming. The proposed combination of methods can reduce the operating steps of tomato fruit phenotyping and increase the measurement accuracy, which greatly reduces the phenotyping time consumption. The HSV filtering and binarization process is applicable to isolate most pure color and black tomato fruits from the white background with a respective combination of S and V thresholds, which meets the requirement in most cases. Mottled tomato fruits use a different combination of S and V thresholds, but such cultivars are uncommon. Considering black tomato fruits do not fit the black background, blue might be a more general background color for tomato fruit phenotyping because blue or similar colored fruits are not found among all cultivars in this study or other studies (Merk et al., 2012). In addition, the images of intact tomato fruits are taken from the navel side instead of from the top side. This is because the shape, size, and other aspects of the sepals are also important phenotypes that require further analysis. The navel side images of intact tomato fruits include both extractable fruit and sepal phenotypes, which could investigate more phenotypes without increasing the number of images per tomato cultivar.

Based on the horizontal and vertical diameter and the navel and top angle, their corresponding ratios are also important fruit phenotypes, i.e., vertical/horizontal ratio and top/navel ratio. All cultivars are plotted with the top/navel ratio at the vertical axis and the vertical/horizontal ratio at the horizontal axis in Figure 5A. Most cultivars have a top/navel ratio between 0.9 and 1.3 and also a vertical/horizontal ratio between 0.7 and 1.0, indicating most tomato fruits have a longer horizontal diameter and a larger top angle. Although all samples have a linear trend in the plot (R2 = 0.6995), all cultivars do not fit a specific trend, indicating that the top/navel ratio does not correlate with the vertical/horizontal ratio. Several cultivars are shown in Figure 5A to represent the sensory differences.

FIGURE 5
www.frontiersin.org

Figure 5. Evaluation of tomato fruit phenotyping indicators and fruit locule segmentation. (A) Distribution of top/navel ratio against horizontal/vertical ratio among cultivars; the dashed line refers to the corresponding value equals one; (B) Incorrect segmentation cases that do the correct locule counting; (C) Incorrect segmentation cases caused by hazy septum. Fruit images are not proportional.

To increase locule segmentation performance, the deep learning model applied the feature mapping strategy (Gupta, 2014) to merge color and texture features in the FPN structure when training the Mask R-CNN. In this study, tomato fruits with different colors, sizes, and locule shapes were tested to evaluate the locule segmentation performance of the deep learning model. The tomato fruit locules are separately located on one surface in the images, thus overlapping and occluding do not occur in these scenarios. However, the deep learning model recognizes mainly two types of incorrect segmentations: ones that do the correct locule counting and ones that are caused by a hazy septum (Figures 5B,C). In the first type, one obstacle to locule segmentation is the slit between two joint parts of fruit cut. As shown in Figure 4A, although the fruit parts are joined together before taking the horizontal cut images, the slit between two joint parts does not influence the segmentation performance. Still, the only incorrect segmentation caused by the slit is shown on the right in Figure 5B, where the slit has passed through the locule. This implies that the fruit parts should be joined together closely or cut another fruit before taking the horizontal cut images. Figure 5B left and middle also shows representative incorrect segmentations that are partly correct and do the correct counting. Such cases do not miss any locules but still be recognized as missing segmentation due to the low IoU, yet they should be considered as correct in practice (Tripodi et al., 2018). In the second type, the most common incorrect segmentation cases are shown in Figure 5C. The tomato fruits in these cases all have small horizontal diameters and hazy septum. Manual labeling is difficult and unreliable for these cases, which could be the reason for wrong and missing segmentations. In practice, the locule number of such fruit is not essential and could be considered as one, whereas the recognition results of locule area proportion and pericarp thickness could be considered correct. With the abovementioned correct counting cases (except Figure 5B right) and hazy septum cases modified as correct, the AP is 0.9564 when the threshold is 0.6, indicating that the model is quite promising for tomato fruit locule segmentation and outperforms other image recognition methods. The results also indicate that the model is robust to segment fruit locules with different colors, sizes, and locule shapes. Compared with Tomato Analyzer (Gonzalo et al., 2009) and LocAnalyzer (Spetale et al., 2020), the advantage of the proposed methods is the ability to measure pericarp thickness, locule number, and area automatically. Moreover, the locule segmentation model increases the phenotyping efficiency by processing multi-fruit images instead of scanning one fruit each time, while still having a similar or even higher AP than LocAnalyzer.

The collection and analysis of phenotypes in a consistent manner is requisite for plant phenomics research (Song et al., 2021). Current crop phenotyping systems apply high-throughput techniques to capture numerous phenotypes automatically, and the accuracy of these procedures is steadily increasing (Zhang et al., 2021). The proposed combination of methods can automatically collect a group of tomato fruit phenotypes from a set of tomato fruit images. The results of the verification indicate that the locule number is reliably counted, and the locule area proportion is quantitatively defined. The fruit horizontal and vertical diameter, top and navel angle, and pericarp thickness are also accurately recognized. Furthermore, the proposed combination of methods may considerably minimize manual observation workloads and make cultivar investigation during tomato breeding more time-efficient. Operation mistakes during manual measurement can also be prevented. Besides, the efficiency and accuracy during the investigation of tomato fruit phenotypes are greatly improved, particularly when assessing fruit locule number and area proportion.

In terms of the image acquisition method, all the fruit images are taken with a fixed focal length in a constant illumination condition, and the color space values are utilized to describe the fruit color, allowing the tomato fruit color to be shown quantitatively under the same standard. Nevertheless, the juice of the tomato fruit cut parts is likely to contaminate the background in practice, which requires cleaning up before taking each image. Based on the phenotyping demand and barriers in tomato breeding, this study proposed a quantitative and high-throughput phenotyping tool that integrates fruit processing, image acquisition, and phenotypes extraction. The tool is proved feasible and promising and has significant implications for the phenotypes evaluation of tomato fruit (Kim et al., 2021). Since tomato is the model species of fruit development studies, the methodology could also be extended to other fruit crops.

It is important for omics research to assess the tomato fruit phenotypes with a consistent and quantitative phenotyping tool based on image recognition and deep learning segmentation. Such consistent and quantitative phenotype data could also aid tomato genomic, metabolomic, and transcriptomic investigations. For example, studies have found several QTLs that control tomato fruit morphological shape and locule number (Illa-Berenguer et al., 2015; Barraj et al., 2021). Quantitative phenotyping tools also allow researchers to delve deeper into the mechanisms behind the formation of certain traits in tomato fruit at the genetic level (Marefatzadeh-Khameneh et al., 2021). Research on the association network analysis between tomato fruit color and metabolic pathways would possibly be accelerated further as well (Hu et al., 2020; Yuan et al., 2021).

Conclusion

In this study, a combination of image recognition and deep learning model is proposed to extract tomato fruit phenotypes quantitatively and automatically. First, images of intact tomatoes, vertical cut fruits, and horizontal cut fruits were acquired under a constant illumination condition. Second, the method based on image recognition isolated fruits from the background and extract fruit color, vertical/horizontal diameters, and top/navel angles from the images of intact tomatoes and vertical cut. Finally, the deep learning model based on Mask R-CNN was trained and tested to segment locules from the images of horizontal cut. The locule number, locule area proportion, and pericarp thickness were thus extracted automatically. The proposed combination of methods improves the efficiency and accuracy of tomato fruit phenotyping. The proposed deep learning model segments tomato fruit locules with high average precision, implying that the whole combination of methods is a promising tool to evaluate tomato fruit phenotypes thoroughly. In conclusion, the results of this study provide technical support for the quantitative analysis and evaluation of tomato fruit phenotyping, which is important for tomato breeding. Furthermore, the methodology could be extended to the phenotyping of other fruit crops.

Data Availability Statement

The original contributions presented in the study are included in the article/Supplementary Material, further inquiries can be directed to the corresponding authors.

Author Contributions

YZu and YC conceived and designed the concept and methodology. HW, RW, and YC prepared the tomato fruits and other materials. QG, YZa, and YC conducted the experiments. YZu and XZ realized the algorithms and methods, analyzed the data, and prepared the figures and tables. YZu wrote the manuscript. YC and XZ supervised the manuscript and made valuable inputs. All authors read and approved the submission of the manuscript.

Funding

This research was partially supported by the Key Research and Development Program of Zhejiang (2021C02052), National Natural Science Foundation of China (32172555), National Key Research and Development Program of China (2018YFD1000800), Zhejiang Provincial Agricultural (Vegetable) New Variety Breeding Project (2021C02065), State Key Laboratory Breeding Base for the Zhejiang Sustainable Pest and Disease Control (2010DS700124-ZZ1903), and China Agriculture Research System of MOF and MARA (CARS-23-G44).

Conflict of Interest

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Publisher’s Note

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.

Acknowledgments

We are grateful for the help from Chen Zhang, Jerry Zhang, Baoliang Xie, and their colleagues in ZAAS for labeling the image datasets.

Supplementary Material

The Supplementary Material for this article can be found online at: https://www.frontiersin.org/articles/10.3389/fpls.2022.859290/full#supplementary-material

References

Alam, P., Balawi, T. H., Altalayan, F. H., Hatamleh, A. A., Ashraf, M., et al. (2021). Silicon attenuates the negative effects of chromium stress in tomato plants by modifying antioxidant enzyme activities, ascorbate–glutathione cycle and glyoxalase system. Acta Physiol. Plant. 43:110. doi: 10.1007/s11738-021-03276-4

CrossRef Full Text | Google Scholar

Barraj, B. R., Segado, P., Moreno-González, R., Heredia, A., Fernández-Muñoz, R., et al. (2021). Genome-wide qtl analysis of tomato fruit cuticle deposition and composition. Horticulture Research 8:113. doi: 10.1038/s41438-021-00548-5

PubMed Abstract | CrossRef Full Text | Google Scholar

Bhatta, M., Sandro, P., Smith, M. R., Delaney, O., Voss-Fels, K. P., Gutierrez, L., et al. (2021). Need for speed: manipulating plant growth to accelerate breeding cycles. Curr. Opin. Plant Biol. 60:101986. doi: 10.1016/j.pbi.2020.101986

PubMed Abstract | CrossRef Full Text | Google Scholar

Boogaard, F. P., Rongen, K. S. A. H., and Kootstra, G. W. (2020). Robust node detection and tracking in fruit-vegetable crops using deep learning and multi-view imaging. Biosyst. Eng. 192, 117–132. doi: 10.1016/j.biosystemseng.2020.01.023

CrossRef Full Text | Google Scholar

Caseiro, M., Ascenso, A., Costa, A., Creagh-Flynn, J., Johnson, M., and Simões, S. (2020). Lycopene in human health. LWT 127:109323. doi: 10.1016/j.lwt.2020.109323

CrossRef Full Text | Google Scholar

Celik, I., Gurbuz, N., Uncu, A. T., Frary, A., and Doganlar, S. (2017). Genome-wide snp discovery and qtl mapping for fruit quality traits in inbred backcross lines (ibls) of solanum pimpinellifolium using genotyping by sequencing. BMC Genomics 18:1. doi: 10.1186/s12864-016-3406-7

PubMed Abstract | CrossRef Full Text | Google Scholar

Costa, C., Schurr, U., Loreto, F., Menesatti, P., and Carpentier, S. (2018). Plant phenotyping research trends, a science mapping approach. Front. Plant Sci. 9:1933. doi: 10.3389/fpls.2018.01933

PubMed Abstract | CrossRef Full Text | Google Scholar

Darrigues, A., Hall, J., van der Knaap, E., Francis, D. M., and Dujmovic, N. (2008). Tomato analyzer-color test: a new tool for efficient digital phenotyping. J. Amer. Soc. Hort. Sci. 133, 579–586. doi: 10.21273/JASHS.133.4.579

CrossRef Full Text | Google Scholar

De Corato, U. (2020). Improving the shelf-life and quality of fresh and minimally-processed fruits and vegetables for a modern food industry: a comprehensive critical review from the traditional technologies into the most promising advancements. Crit. Rev. Food Sci. 60, 940–975. doi: 10.1080/10408398.2018.1553025

PubMed Abstract | CrossRef Full Text | Google Scholar

Douglas, D. H., and Peucker, T. K. (1973). Algorithms for the reduction of the number of points required to represent a digitized line or its caricature. Cartogr. Int. J. Geogr. Inform. Geovis. 10, 112–122. doi: 10.3138/FM57-6770-U75U-7727

CrossRef Full Text | Google Scholar

Faizan, M., Bhat, J. A., Noureldeen, A., Ahmad, P., and Yu, F. (2021). Zinc oxide nanoparticles and 24-epibrassinolide alleviates cu toxicity in tomato by regulating ros scavenging, stomatal movement and photosynthesis. Ecotox. Environ. Safe 218:112293. doi: 10.1016/j.ecoenv.2021.112293

PubMed Abstract | CrossRef Full Text | Google Scholar

Gao, F., Fu, L., Zhang, X., Majeed, Y., and Li, R. (2020). Multi-class fruit-on-plant detection for apple in snap system using faster r-cnn. Comput. Electron. Agr. 176:105634. doi: 10.1016/j.compag.2020.105634

CrossRef Full Text | Google Scholar

Gonzalo, M. J., Brewer, M. T., Anderson, C., Sullivan, D., and Gray, S. (2009). Tomato fruit shape analysis using morphometric and morphology attributes implemented in tomato analyzer software program. J. Am. Soc. Hortic. Sci. 134, 77–87. doi: 10.21273/JASHS.134.1.77

CrossRef Full Text | Google Scholar

Gupta, S. A. G. R. (2014). “Learning rich features from rgb-d images for object detection and segmentation,” in European conference on computer vision, eds D. Fleet, T. Pajdla, B. Schiele, and T. Tuytelaars (Cham: Springer), 345–360. doi: 10.1007/978-3-319-10584-0_23

CrossRef Full Text | Google Scholar

He, K., Gkioxari, G., Dollár, P., and Girshick, R. (2018). Mask r-cnn. Ithaca:NY: Cornell University, arXiv:1703.06870v3

Google Scholar

Hu, S., Liu, L., Li, S., Shao, Z., and Meng, F. (2020). Regulation of fruit ripening by the brassinosteroid biosynthetic gene slcyp90b3 via an ethylene-dependent pathway in tomato. Hortic. Res. 7:163. doi: 10.1038/s41438-020-00383-0

PubMed Abstract | CrossRef Full Text | Google Scholar

Illa-Berenguer, E., Van Houten, J., Huang, Z., and van der Knaap, E. (2015). Rapid and reliable identification of tomato fruit weight and locule number loci by qtl-seq. Theor. Appl. Genet. 128, 1329–1342. doi: 10.1007/s00122-015-2509-x

PubMed Abstract | CrossRef Full Text | Google Scholar

Kaya, C., Sarıoğlu, A., Ashraf, M., Alyemeni, M. N., and Ahmad, P. (2020). Gibberellic acid-induced generation of hydrogen sulfide alleviates boron toxicity in tomato (Solanum lycopersicum l.) Plants. Plant Physiol. Bioch 153, 53–63. doi: 10.1016/j.plaphy.2020.04.038

PubMed Abstract | CrossRef Full Text | Google Scholar

Kim, M., Jung, J., Shim, E., Chung, S., Park, Y., Lee, G. P., et al. (2021). Genome-wide snp discovery and core marker sets for dna barcoding and variety identification in commercial tomato cultivars. Sci. Hortic. Amsterdam 276:109734. doi: 10.1016/j.scienta.2020.109734

CrossRef Full Text | Google Scholar

Kinkade, M. P., and Foolad, M. R. (2013). Validation and fine mapping of lyc12.1, a qtl for increased tomato fruit lycopene content. Theor. Appl. Genet. 126, 2163–2175. doi: 10.1007/s00122-013-2126-5

PubMed Abstract | CrossRef Full Text | Google Scholar

Li, Z., Guo, R., Li, M., Chen, Y., and Li, G. (2020). A review of computer vision technologies for plant phenotyping. Comput. Electron. Agr. 176, 105672. doi: 10.1016/j.compag.2020.105672

CrossRef Full Text | Google Scholar

Lin, T., Dollár, P., Girshick, R., He, K., Hariharan, B., and Belongie, S. (2017). “Feature pyramid networks for object detection,” in Proceeding of the 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), (Honolulu, HI), 936–944. doi: 10.1109/CVPR.2017.106

CrossRef Full Text | Google Scholar

Liu, X., Hu, C., and Li, P. (2020). Automatic segmentation of overlapped poplar seedling leaves combining mask r-cnn and dbscan. Comput. Electron. Agr. 178:105753. doi: 10.1016/j.compag.2020.105753

CrossRef Full Text | Google Scholar

Ma, Y., Yu, D., Wu, T., and Wang, H. (2019). Paddlepaddle: an open-source deep learning platform from industrial practice. Front. Data Comput. 1, 105–115. doi: 10.11871/jfdc.issn.2096.742X.2019.01.011

CrossRef Full Text | Google Scholar

Marefatzadeh-Khameneh, M., Fabriki-Ourang, S., Sorkhilalehloo, B., Abbasi-Kohpalekani, J., and Ahmadi, J. (2021). Genetic diversity in tomato (Solanum lycopersicum l.) Germplasm using fruit variation implemented by tomato analyzer software based on high throughput phenotyping. Genet. Resour. Crop Ev. 68, 2611–2625. doi: 10.1007/s10722-021-01153-0

CrossRef Full Text | Google Scholar

Mata-Nicolás, E., Montero-Pau, J., Gimeno-Paez, E., Garcia-Carpintero, V., Ziarsolo, P., Menda, N., et al. (2020). Exploiting the diversity of tomato: the development of a phenotypically and genetically detailed germplasm collection. Hortic. Res. 7:66. doi: 10.1038/s41438-020-0291-7

PubMed Abstract | CrossRef Full Text | Google Scholar

Merk, H. L., Yarnes, S. C., Van Deynze, A., Tong, N., Menda, N., Lukas, A., et al. (2012). Trait diversity and potential for selection indices based on variation among regionally adapted processing tomato germplasm. J. Am. Soc. Hortic. Sci. 137, 427–437. doi: 10.21273/JASHS.137.6.427

CrossRef Full Text | Google Scholar

Oltman, A. E., Jervis, S. M., and Drake, M. A. (2014). Consumer attitudes and preferences for fresh market tomatoes. J. Food Sci. 79, S2091–S2097. doi: 10.1111/1750-3841.12638

PubMed Abstract | CrossRef Full Text | Google Scholar

Pereira, L., Zhang, L., Sapkota, M., Ramos, A., Razifard, H., Caicedo, A. L., et al. (2021). Unraveling the genetics of tomato fruit weight during crop domestication and diversification. Theor. Appl. Genet. 134, 3363–3378. doi: 10.1007/s00122-021-03902-2

PubMed Abstract | CrossRef Full Text | Google Scholar

Prudent, M., Causse, M., Génard, M., Tripodi, P., Grandillo, S., Bertin, N., et al. (2009). Genetic and physiological analysis of tomato fruit weight and composition: influence of carbon availability on qtl detection. J. Exp. Bot. 60, 923–937. doi: 10.1093/jxb/ern338

PubMed Abstract | CrossRef Full Text | Google Scholar

R Core Team (2020). R: A language and environment for statistical computing. Vienna: R Core Team.

Google Scholar

Russell, B. C., Torralba, A., Murphy, K. P., and Freeman, W. T. (2008). Labelme: a database and web-based tool for image annotation. Int. J. Comput. Vision 77, 157–173. doi: 10.1007/s11263-007-0090-8

CrossRef Full Text | Google Scholar

Sierra-Orozco, E., Shekasteband, R., Illa-Berenguer, E., Snouffer, A., van der Knaap, E., Lee, T. G., et al. (2021). Identification and characterization of globe, a major gene controlling fruit shape and impacting fruit size and marketability in tomato. Hortic. Res. 8:138. doi: 10.1038/s41438-021-00574-3

PubMed Abstract | CrossRef Full Text | Google Scholar

Song, P., Wang, J., Guo, X., Yang, W., and Zhao, C. (2021). High-throughput phenotyping: breaking through the bottleneck in future crop breeding. Crop J. 9, 633–645. doi: 10.1016/j.cj.2021.03.015

CrossRef Full Text | Google Scholar

Spetale, F. E., Murillo, J., Vazquez, D. V., Cacchiarelli, P., Rodríguez, G. R., Cacchiarelli, P., et al. (2020). Locanalyzer: a computer vision method to count locules in tomato fruits. Comput. Electron. Agr. 173:105382. doi: 10.1016/j.compag.2020.105382

CrossRef Full Text | Google Scholar

Tamasi, G., Pardini, A., Bonechi, C., Donati, A., Pessina, F., Marcolongo, P., et al. (2019). Characterization of nutraceutical components in tomato pulp, skin and locular gel. Eur. Food Res. Technol. 245, 907–918. doi: 10.1007/s00217-019-03235-x

CrossRef Full Text | Google Scholar

Tang, P., Wang, X., Wang, A., Yan, Y., Liu, W., et al. (2018). “Weakly supervised region proposal network and object detection,” in Proceedings of the European conference on computer vision (ECCV), (Munich), 352–368. doi: 10.1007/978-3-030-01252-6_22

CrossRef Full Text | Google Scholar

The Tomato Genome Consortium (2012). The tomato genome sequence provides insights into fleshy fruit evolution. Nature 485, 635–641. doi: 10.1038/nature11119

PubMed Abstract | CrossRef Full Text | Google Scholar

Tripodi, P., Massa, D., Venezia, A., and Cardi, T. (2018). Sensing technologies for precision phenotyping in vegetable crops: current status and future challenges. Agronomy 8:57. doi: 10.3390/agronomy8040057

CrossRef Full Text | Google Scholar

Wallace, J. G., Rodgers-Melnick, E., and Buckler, E. S. (2018). On the road to breeding 4.0: unraveling the good, the bad, and the boring of crop quantitative genomics. Annu. Rev. Genet. 52, 421–444. doi: 10.1146/annurev-genet-120116-024846

PubMed Abstract | CrossRef Full Text | Google Scholar

Washburn, J. D., Mejia-Guerra, M. K., Ramstein, G., Kremling, K. A., Valluru, R., Buckler, E. S., et al. (2019). Evolutionarily informed deep learning methods for predicting relative transcript abundance from dna sequence. Proc. Natl. Acad. Sci. 116, 5542–5549. doi: 10.1073/pnas.1814551116

PubMed Abstract | CrossRef Full Text | Google Scholar

Yuan, J., Li, S., Cheng, J., Guo, C., Shen, C., He, J., et al. (2021). Potential role of methanogens in microbial reductive dechlorination of organic chlorinated pollutants in situ. Environ. Sci. Technol. 55, 5917–5928. doi: 10.1021/acs.est.0c08631

PubMed Abstract | CrossRef Full Text | Google Scholar

Zhang, X., Zhu, Y., Su, Y., Xie, B., Gu, Q., Zheng, K., et al. (2021). Quantitative extraction and analysis of pear fruit spot phenotypes based on image recognition. Comput. Electron. Agr. 190:106474. doi: 10.1016/j.compag.2021.106474

CrossRef Full Text | Google Scholar

Zhu, G., Wang, S., Huang, Z., Zhang, S., Liao, Q., Zhang, C., et al. (2018). Rewiring of the fruit metabolome in tomato breeding. Cell 172, 249–261. doi: 10.1016/j.cell.2017.12.019

PubMed Abstract | CrossRef Full Text | Google Scholar

Keywords: quantitative, tomato fruit, phenotyping, image recognition, deep learning

Citation: Zhu Y, Gu Q, Zhao Y, Wan H, Wang R, Zhang X and Cheng Y (2022) Quantitative Extraction and Evaluation of Tomato Fruit Phenotypes Based on Image Recognition. Front. Plant Sci. 13:859290. doi: 10.3389/fpls.2022.859290

Received: 21 January 2022; Accepted: 28 February 2022;
Published: 13 April 2022.

Edited by:

Pei Xu, China Jiliang University, China

Reviewed by:

Parvaiz Ahmad, Government Degree College, Pulwama, India
Carlos Augusto Avila, Texas A&M Research, United States

Copyright © 2022 Zhu, Gu, Zhao, Wan, Wang, Zhang and Cheng. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

*Correspondence: Xiaobin Zhang, 3504125@qq.com; Yuan Cheng, chengyuan1005@126.com

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.