Next Article in Journal
Genome-Wide Association Analysis Reveals the Gene Loci of Yield Traits under Drought Stress at the Rice Reproductive Stage
Next Article in Special Issue
An Improved Rotating Box Detection Model for Litchi Detection in Natural Dense Orchards
Previous Article in Journal
Magnetic Seed Treatment Modulates Phenolic and Fatty Acid Metabolism of Sunflower under Water Scarcity
Previous Article in Special Issue
Cross-Platform Wheat Ear Counting Model Using Deep Learning for UAV and Ground Systems
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Detection of Fundamental Quality Traits of Winter Jujube Based on Computer Vision and Deep Learning

1
Zhejiang Provincial Key Laboratory of Chemical and Biological Processing Technology of Farm Products, School of Biological and Chemical Engineering, Zhejiang University of Science and Technology, Hangzhou 310023, China
2
Economic Forest Research Institute, Xinjiang Academy of Forestry Sciences, Urumqi 830000, China
3
Institute of Agricultural Products Preservation and Processing Technology, National Engineering Technology Research Center for Preservation of Agriculture Product, Tianjin Academy of Agricultural Sciences, Tianjin 300384, China
4
Aksu Youneng Agricultural Technology Co., Ltd., Aksu 843001, China
*
Author to whom correspondence should be addressed.
Agronomy 2023, 13(8), 2095; https://doi.org/10.3390/agronomy13082095
Submission received: 23 June 2023 / Revised: 4 August 2023 / Accepted: 6 August 2023 / Published: 10 August 2023
(This article belongs to the Special Issue Imaging Technology for Detecting Crops and Agricultural Products-II)

Abstract

:
Winter jujube (Ziziphus jujuba Mill. cv. Dongzao) has been cultivated in China for a long time and has a richly abundant history, whose maturity grade determined different postharvest qualities. Traditional methods for identifying the fundamental quality of winter jujube are known to be time-consuming and labor-intensive, resulting in significant difficulties for winter jujube resource management. The applications of deep learning in this regard will help manufacturers and orchard workers quickly identify fundamental quality information. In our study, the best fundamental quality of winter jujube from the correlation between maturity and fundamental quality was determined by testing three simple physicochemical indexes: total soluble solids (TSS), total acid (TA) and puncture force of fruit at five maturity stages which classified by the color and appearance. The results showed that the fully red fruits (the 4th grade) had the optimal eating quality parameter. Additionally, five different maturity grades of winter jujube were photographed as datasets and used the ResNet-50 model and the iResNet-50 model for training. And the iResNet-50 model was improved to overlap double residuals in the first Main Stage, with an accuracy of 98.35%, a precision of 98.40%, a recall of 98.35%, and a F1 score of 98.36%, which provided an important basis for automatic fundamental quality detection of winter jujube. This study provided ideas for fundamental quality classification of winter jujube during harvesting, fundamental quality screening of winter jujube in assembly line production, and real-time monitoring of winter jujube during transportation and storage.

1. Introduction

There is a precise correlation between the maturity and fundamental quality of the fruit. The maturity of the fruit at harvest has an important impact on the softening and texture change of the fruit [1]. For the appearance of the fruit, height, weight and color changed with the progress of maturity [2]. For the content of compounds contained in the fruit, the maturity of the fruit will affect the content of total soluble solids and total acid [3]. For the above reasons, the fundamental quality of fruit can be effectively maintained by choosing the optimal harvest maturity [4]. The researchers selected different indicators as evaluation criteria for different fruit maturity to grade the fundamental quality. Zhu et al. proposed following three maturity levels for grading Camellia oleifera fruit samples: unripe, ripe, and overripe, and the results indicate that there were significant differences in seed oil content, seed soluble protein content, seed soluble sugar content, seed starch content, dry seed weight, and moisture content among the maturity stages graded [5]. Iqbal and Hakim utilized appearance features such as shape, texture, color, and size to grade eight different cultivars of harvested mangoes for extra class, class I and class II [6]. Ma et al. used the color and sweetness values of the three different parts of banana to classify the maturity of the fruit for six stages [7].
Deep learning has brought about a significant transformation in conventional internet-based industries, including web search and advertising. In addition, it has enabled the development of new products and businesses by assisting people in various domains such as healthcare, education, agriculture, and even autonomous driving [8]. For instance, deep learning has significantly improved the accuracy of predicting subcellular protein localization [9]. Notably, deep learning has been instrumental in advancing computer vision, which has witnessed rapid progress in recent times. He et al. introduced the influential Residual Networks, which have remained the gold-standard since the inception of the ResNet architecture [10]. Residual Networks are considered easy to optimize and can alleviate the problem of gradient disappearance that is caused by increasing depth in deep neural networks. As a result, ResNet is often used as the default architecture in studies or as a baseline for comparison when new architectures are proposed [11]. Further, Duta et al. proposed an improved version of ResNet. The proposed enhancements tackle the three key elements of a ResNet—namely, the flow of information across network layers, the residual building block, and the projection shortcut. These enhancements can ensure improved network accuracy and learning astringency [12].
The convolutional neural network is commonly utilized in the field of agriculture [13]. Mamat et al. utilized YOLO net for automated annotation of fruit images. The mean Average Precision achieved for oil palm fruit was 98.7%, while the accuracy for fruit variety classification reached 99.5% [14]. Gulzar implemented TL-MobileNetV2 for the classification of forty different types of fruits. The model achieved an accuracy of 99%, a recall of 99%, and a f1 score of 99% [15]. Osako et al. used a pre-trained VGG16 model to develop a cultivar classification system for litchi fruit. The model achieved an accuracy of 98.33% [16]. Chen et al. photographed images of apricot fruits in both outdoor and indoor settings, and created a dataset that enables accurate fruit classification using a U-net model. The model achieved an impressive F-score of 99%. Furthermore, the researchers collected four datasets containing seeds that are challenging to identify, and trained a VGG16 model to classify them, achieving an accuracy of 97% [17]. Suzuki et al. proposed the use of a deep neural network to predict the occurrence of a severe fruit disorder in persimmon, namely rapid over-softening, using simple RGB images. Their research revealed that all the CNN models examined were successful in binary classification of the rapidly over-softened fruits and controls, reaching an accuracy of over 80% across various criteria [18]. Unal and Aktas used Inception V3 model and EfficientNet model to accurately classify hazelnut kernels, with an accuracy of 97.85% and an accuracy of 99.28% respectively [19].
Winter jujube (Ziziphus jujuba Mill. cv. Dongzao) is an excellent late maturing fresh-eating variety in China [20]. Tree-ripened winter jujube is highly appreciated by consumers for its taste, flavor and sweetness [21]. Regrettably, such fruits have a brief postharvest lifespan, primarily due to rapid softening, resulting in increased vulnerability to mechanical damage and the development of decay [22]. The traditional maturity classification methods such as mechanical testing can easily cause damage to the surface of winter jujube [23]. Hence, the classification of winter jujube based on deep learning is an efficient and non-destructive way to solve this problem. Lu et al. used YOLOv3 algorithm to train models, with an accuracy of 97.28%. Additionally, they designed an automatic winter jujube classification robot based on computer vision [24]. Al-Saif et al. devised a technique for distinguishing between various cultivars of Indian jujube fruits by utilizing a single fruit’s color and morphological characteristics and training an artificial neural network classifier. Their approach achieved an accuracy rate of 97.56% [25]. Feng et al. used hyperspectral imaging with pixel-wise deep learning method to detect subtle bruises on winter jujube. Their study found that the CNN model based on all geographical origins performed the best, with most accuracy surpassing 85% [26]. Despite some progress in research in this field, there are still challenges to overcome, including insufficient accuracy and a limited number of categories. In this study, we classified the maturity of winter jujube into five levels [27,28]. The puncture force, TSS, and TA content of winter jujube was tested at each maturity level to determine the optimal consumption period of winter jujube [29]. We used the automatic recognition and classification of each maturity of winter jujube images by deep learning model. We took image data to train ResNet-50, iResNet-50, and designed the improved network model base on iResNet-50 to increase the accuracy of winter jujube classification. By implementing a more refined categorization approach, our model has acquired the capability to automatically classify the maturity levels of fruits and identify preliminary defects.

2. Materials and Methods

2.1. Plant Materials

Winter jujubes were collected manually in winter jujubes production base from Gucheng Town, Zhanhua District, Binzhou City. Fresh samples are immediately measured upon arrival at the laboratory. The maturities of winter jujubes were divided into five levels according to their appearance and color [30,31,32] (Figure 1): green fruits (almost completely green, with 0 to 1/8 of the skin red; 1st grade), white ripe fruits (1/8 to 1/4 of the skin red; 2nd grade), semi-red fruits (1/4 to 3/4 of the skin red; 3rd grade), fully red fruits (3/4 to 1 of the skin red; 4th grade), and softened fruits (fruits that have lost their commercial value due to crumpling, softening, and decay; 5th grade). The fruits (front and back side) were placed on a black-background cloth and photographed with a smart phone (iPhone12 pro max) (Figure 2). The images were captured under the lighting conditions of fluorescent lamps in a laboratory setting. 5000 images of the original data were taken. 3500 images were used as the training set, 1000 images as the validation set, and 500 images as the test set. Each classification of images is randomly and equally distributed in the dataset (Table 1).

2.2. Image Processing

The image data was processed into 224 × 224 pixel images and the captured photos were manually labeled. The dataset was expanded by using image enhancement to increase the amount of information and improve the effectiveness of image interpretation and recognition [33].

2.3. Physical and Chemical Index Detection

2.3.1. Total Soluble Solids and Titratable Acidity

A pocket refractometer (ATAGO, PAL-BX/ACID, Tokyo, Japan) was used to test four types of winter jujubes which have not lost their commercial value [34]. For each group, a random sample of ten winter jujube fruits was chosen to measure the TSS and TA. The fruits were sliced into small pieces and squeezed to extract the juice, filtered through four layers of gauze. The meshes size of the gauze used is 425 micrometers. 200 μL of the juice supernatant was taken to measure the TSS. Then 200 μL of the juice supernatant was diluted with 9.8 mL of deionized water, and TA was measured by a Brix-Acidity Meter [35]. Each group was tested three times.

2.3.2. Puncture Force

The puncture force of each unpeeled winter jujube fruit was measured at two equatorial sites, evenly distributed around the fruit, using a Texture Analyzer (Stable Micro Systems, TA.XT plus, Surrey, UK) [36]. The results were expressed in grams (g). P/2n (diameter = 2 mm) needle probe was chosen. The testing parameters used were as Table 2.

2.4. Classification Training

ResNet-50, iResNet-50 and improved iResNet-50 was prepared for training and compared their classification performance. The improved model is built based on iResNet-50 (Figure 3). In the Start Stage, the features are initially extracted by a convolutional layer, and then the extracted features are compressed by a maximum pooling layer to remove redundant information and improve the training efficiency. The extracted features are then sent to four Main Stages. The internal composition of a Main Stage include one Start ResBlock, several Middle ResBlocks (the first Main Stage has one Middle ResBlock, the second Main Stage has two Middle ResBlocks, the third Main Stage has four Middle ResBlocks, and the fourth Main Stage has one Middle ResBlock) and an Ending ResBlock. Each ResBlock has three convolutional layers (two 1 × 1 convolutional layers and one 3 × 3 convolutional layer), for a total of 16 ResBlocks, which serves as a 50-layer network. For the ResBlock in the first Main Stage, double residuals are added to the output part. Since the Start ResBlock performs batch normalization of the signal at the end, it is not necessary to use the batch normalization layer at the beginning of the first Middle ResBlock, and it is also guaranteed that there is a batch normalization operation after each convolutional layer. In the output phase of the model, the five maturity classifications of winter jujube fruits are corresponded to the outputs from 0 to 4 (Table 3).

2.5. Model Training Configuration

In this study, we used an Ali Cloud server to train the models and configured Tensorflow and other dependency libraries within an Anaconda virtual environment to create the training environment. All models presented in this paper were built using the Tensorflow framework. Parameters used are as Table 4.

2.6. Model Evaluation Criterion

Accuracy, precision, recall and F1-score were used to evaluate the three classification models results in our study [37]. The accuracy rate is a measure of the overall prediction accuracy of a model, while the precision rate represents the accuracy of positive predictions made by the model. Recall is a metric specific to the original sample and represents the probability of a positive sample being correctly identified as positive by the model. A high recall means that the model is able to identify most of the positive samples, but may also result in more false detections. The F1-Score is a composite metric that takes both precision and recall into account, providing a more comprehensive evaluation of a model’s performance. It is used to balance the effects of precision and recall, and is a commonly used metric for evaluating classification models. Figure 4 shows the relationship between F1-score, precision and recall.
A c c u r a c y = i = 0 n = 4 T P i A l l s a m p l e s
P r e c i s i o n i = T P i T P i + F P i
R e c a l l i = T P i T P i + F N i
F 1 s c o r e i = 2 × P i × R i P i + R i
Various indicators for all five classifications were calculated, where TP represents the number of true positives, FP represents the number of false positives, and FN represents the number of false negatives. “i” is a classification tag.

3. Results

3.1. Total Soluble Solids, Titratable Acidity and Puncture Force

The test results including TSS, TA, TSS/TA and puncture force for the four grades are shown in the Table 5 TSS and TA are important fundamental quality indexes that represent the fruit sugar and acid contents, which contribute to the unique flavor of winter jujube. The concentration of sugars and organic acids, particularly high sugar and high acid, are important factors in determining the fundamental quality of winter jujube. [38,39]. As shown in Table 5, the TSS improved with maturity increased, and the change in TA stabilized. Meanwhile TSS/TA was gradually improving. The fully red fruits had the highest TSS/TA. The puncture force increased continuously with maturity levels until the winter jujube fruit rots and loses water.

3.2. Data Augmentation

After the images were cropped and resized to fit network requirements, the dataset was extended by rotating the images. This was an effective way to increase the diversity and number of datasets, thus improving the performance and accuracy of the model [40]. By data augmentation, we were able to obtain different angles, orientations, and perspectives, making the model more robust and better able to handle images in different scenes. In addition, data augmentation prevented overfitting problems. The total number of images was extended to 20,000 by adjusting the rotation according to the method shown in Figure 5.

3.3. Classification Models

3.3.1. Model Training

The model underwent training for a total of 80 epochs, and it achieved its optimal performance after the 27th training epoch. The model parameters were then saved for future testing purposes (Figure 6).

3.3.2. Feature Extraction

The performance of three different convolutional neural network models for image classification was investigated: ResNet-50, iResNet-50, and an improved version of iResNet-50. The improved iResNet-50 was based on the original iResNet-50 architecture, but modified to improve its feature extraction capabilities. To evaluate the effectiveness of the improved model, we visualized and presented the features that were extracted by the intermediate process of the network in Figure 7. As observed in Figure 7, the improved iResNet-50 was able to extract a richer set of features from the input image data, which contributed to its superior performance in classification tasks. This was achieved by carefully selecting and processing these features at various stages of the network. The image data was first subjected to a preliminary feature extraction step, which involved passing it through a layer of convolutional layers. The resulting data was then dimensionally reduced and processed to [109 × 109 × 64], to reduce the number of parameters and computational resources required. A subsequent layer of maximum pooling was applied for feature selection, further reducing the number of features and dimensional size of the data to [55 × 55 × 64]. Next, the data was processed through four Main Stages, each consisting of a Start ResBlock, several Middle ResBlocks (with different numbers depending on the Main Stage), and an Ending ResBlock. These ResBlocks each contained two 1 × 1 convolutional layers and one 3 × 3 convolutional layer, and served to progressively extract more complex and abstract features from the input data. As shown in Figure 8, after the completion of the first Main Stage, the extracted features are processed for visualization. The network used for feature extraction was primarily based on color and texture. The improved network retains more significant features for subsequent convolutional layers to learn. The output features were then extracted into a [7 × 7 × 2048] tensor. To obtain a one-dimensional feature vector, the output tensor of the final convolutional layer was passed through a global average pooling operation, which computes the average of each feature map. This pooling operation is less prone to overfitting and improves computational efficiency [41]. Subsequently, a fully connected layer with Softmax activation was applied to the resulting vector to obtain the probability of each classification.

3.3.3. Classification Results and Comparison

The performance comparison of five different winter jujube maturity classification models was presented in Table 6 based on four different metrics: precision, recall, F1-score, and accuracy. The accuracy of VGG16 and Inception Net is relatively low. The ablation study includes ResNet-50, iResNet-50, and an improved version of iResNet-50. The results show that the improved iResNet-50 model outperformed both ResNet-50 and iResNet-50 in all metrics. The improved model achieved a precision of 98.40%, recall of 98.35%, an F1-score of 98.36%, and an accuracy of 98.35%. These results demonstrate superior performance on the classification task. One of the major reasons for the improved performance of the improved iResNet-50 model is the introduction of the double residual connection in the first Main Stage which improved the model’s ability to distinguish between similar objects. Additionally, the use of grouped building blocks helped to mitigate the vanishing gradient problem and allowed the model to learn more effectively from the image data. Our results demonstrate that the improved iResNet-50 model can effectively reduce the spatial dimensions of the feature maps, while preserving the most salient features for downstream tasks such as image classification. By carefully selecting and processing these features, the model achieved high accuracy and robustness in classification tasks, while also minimizing the number of parameters and computational resources required.

4. Discussion

4.1. Postharvest Fruit Fundamental Quality Analysis

According to our study, the maturity grade of winter jujube fruit is crucial in determining the appropriate picking period and post-harvest management techniques to ensure high fundamental quality fruit. Our results show that the fully red fruits have the best fundamental quality, characterized by its superior sweetness, flavor and texture. Moreover, the green fruits, white ripe fruits and semi-red fruits exhibit a longer storage time compared to the fully red fruits. Zhang et al. experimental results also showed that, the contents of TSS and TA in jujube fruit increase as it grows and develops, ultimately enhancing the fruit’s flavor [35]. By doing puncture tests on apples, Chang et al. found that for freshly harvested fruit, there is a positive correlation between puncture force and fruit crispness [42]. Fruit crispness increases with maturity. Therefore, farmers and other stakeholders in the industry should consider these factors when determining the optimal time to harvest winter jujube fruit and implement appropriate post-harvest management techniques to maintain quality and extend shelf life.

4.2. Model Detection Five Classifications Analysis

Based on the matrices presented in Figure 9, although the success in discrimination between five classifications is quite average, the highest errors were between classification 1, classification 2 and classification 3. The model misclassifies more instances from other classifications as belonging to these three classifications. The reason for this is that the input image data for this experiment exhibits subtle differences in characteristics, and often includes many data points that are critically graded. Furthermore, the three classifications in this dataset have images that are more difficult to define. It can be further seen from Figure 10 that the three classification models work better for classification 0 and classification 4 recognition, with a higher F1-score. This technique of superimposing double residuals helps to enhance the network’s ability to capture intricate details in the input data, especially near the data input part. By minimizing misclassification from adjacent classification, the model can further improve its accuracy rate. This approach helps to improve the network’s expressiveness and make it more effective in handling datasets for this study.
The results obtained in this study were compared with those reported in the literature for the use of deep learning models in grading the maturity of winter jujube. Mahmood et al. classified the maturity of jujubes into three levels. The augmentation process resulted in a total of 4398 images in the newly formed augmented dataset. The highest accuracy achieved for accurately classifying maturity levels using the AlexNet and VGG16 deep learning models, for both actual and augmented images, were as follows: 94.17% and 97.65%, and 98.26% and 99.17%, respectively [43]. Guo et al. developed a composite CNN method that utilized residual networks to detect defects in jujube. The method achieved an impressive accuracy rate of 99.2% [44]. Although deep learning models have become increasingly popular as a highly effective method for image classification in the agriculture and food industry, there are not many studies on winter jujube maturity grading based on deep learning. The results obtained in our study are considered to be suitable for the winter jujube fruits picking or post-harvest sorting scenes since the overall discrimination accuracy of classification models is over 98%.

5. Conclusions

Our study confirms the importance of proper maturity grading in the production and marketing of winter jujube fruit. By selecting the optimal picking period and implementing effective post-harvest management techniques, farmers and other stakeholders in the industry can ensure that winter jujube fruit meets consumer expectations for flavor, texture, and shelf life. Five automatic maturity detection models were developed for winter jujube using three different algorithms. After thorough comparison, we found that the model based on the improved iResNet-50 algorithm with double residuals superimposed in the first Main Stage achieved the best performance. Specifically, the model achieved an accuracy of 98.35%, an average precision of 98.40%, and an average recall of 98.35% on the test set of this experiment. Moreover, the average F1 score of the model was 98.36%, which demonstrated the feasibility and effectiveness of the improved iResNet-50 based algorithm for automatic grading of winter jujube maturity. Our model facilitates the automated classification of winter jujube after harvesting. By incorporating the classification of “softened fruits” into the model, it expands beyond maturity classification and enables preliminary identification of damaged fruits. This enhancement enhances the model’s capabilities and improves its utility in post-harvest fruit classification. Overall, the findings of this study offer important insights into the use of deep learning techniques for automatic grading of agricultural products, and can provide valuable guidance for the development of similar applications in the future. However, it should be noted that the performance of the models may vary depending on the dataset and the specific task at hand, and further optimization and validation may be necessary to achieve optimal results in practical scenarios.

Author Contributions

Conceptualization, Z.B. and C.F.; methodology, Z.B. and C.F.; software, Z.B. and C.F.; validation, L.L., Z.W. and C.C.; formal analysis, Z.B. and C.F.; investigation, L.L.; resources, Z.W.; data curation, C.C.; writing—original draft preparation, Z.B. and C.F.; writing—review and editing, Z.B. and C.F.; supervision, Y.Z.; project administration, L.L.; funding acquisition, Z.B. and L.L. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the National Natural Science Foundation of China (No. 32172268); the “Pioneer” and “Leading Goose” R&B Program of Zhejiang (No. 2022C04039); the Forestry Development Subsidy of Xinjiang Uygur Autonomous Region (No. XJLYKJ-2021-12); the Special Fund Project of Xinjiang Jujube Industry Technology System (No. XJCYTX-01-02); and the Key Laboratory of Storage of Agricultural Products, Ministry of Agriculture and Rural Affairs (No. Kf202208).

Data Availability Statement

Code and datasets are available at: https://github.com/kuiersaila/Jujube_classification_model, accessed on 22 April 2023.

Conflicts of Interest

The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

References

  1. Rebeaud, S.G.; Cioli, L.; Cotter, P.Y.; Christen, D. Cultivar, maturity at harvest and postharvest treatments influence softening of apricots. Postharvest Biol. Technol. 2023, 195, 112134. [Google Scholar] [CrossRef]
  2. Cetin, B.E.; Saracoglu, O. Effects of Different Maturity Stages and Fruit Parts on Quality Traits of Plum (Prunus domestica) Fruits. Erwerbs-Obstbau 2022, 9, 1069–1077. [Google Scholar] [CrossRef]
  3. Perez, V.O.; Perez, L.G.M.; Fernandez-Alduenda, M.R.; Barreto, C.I.A.; Agudelo, C.P.G.; Restrepo, E.C.M. Chemical Composition and Sensory Quality of Coffee Fruits at Different Stages of Maturity. Agronomy 2023, 13, 341. [Google Scholar] [CrossRef]
  4. Sheng, J.P.; Shen, L. Chinese jujube (Ziziphus jujuba Mill.) and Indian jujube (Ziziphus mauritiana Lam.). In Postharvest Biology and Technology of Tropical and Subtropical Fruits; Yahia, E.M., Ed.; Woodhead Publishing: Delhi, India, 2011; pp. 299–326. [Google Scholar]
  5. Zhu, X.Y.; Shen, D.Y.; Wang, R.P.; Zheng, Y.L.; Su, S.C.; Chen, F.J. Maturity Grading and Identification of Camellia oleifera Fruit Based on Unsupervised Image Clustering. Foods 2022, 11, 3800. [Google Scholar] [CrossRef] [PubMed]
  6. Iqbal, H.M.R.; Hakim, A. Classification and Grading of Harvested Mangoes Using Convolutional Neural Network. Int. J. Fruit Sci. 2022, 22, 95–109. [Google Scholar] [CrossRef]
  7. Ma, L.K.; Liang, C.R.; Cui, Y.; Du, H.Y.; Liu, H.F.; Zhu, L.X.; Yu, Y.S.; Lu, C.Q.; Benjakul, S.; Brennan, C.; et al. Prediction of banana maturity based on the sweetness and color values of different segments during ripening. Curr. Res. Food Sci. 2022, 5, 1808–1817. [Google Scholar] [CrossRef]
  8. Dong, S.; Wang, P.; Abbas, K. A survey on deep learning and its applications. Comput. Sci. Rev. 2021, 40, 22. [Google Scholar] [CrossRef]
  9. Aggarwal, S.; Gupta, S.; Gupta, D.; Gulzar, Y.; Juneja, S.; Alwan, A.A.; Nauman, A. An Artificial Intelligence-Based Stacked Ensemble Approach for Prediction of Protein Subcellular Localization in Confocal Microscopy Images. Sustainability 2023, 15, 1695. [Google Scholar] [CrossRef]
  10. He, K.; Zhang, X.; Ren, S.; Sun, J. Deep Residual Learning for Image Recognition. arXiv 2021, arXiv:1512.03385. [Google Scholar] [CrossRef]
  11. Wightman, R.; Touvron, H.; Jégou, H. ResNet strikes back: An improved training procedure in timm. arXiv 2021, arXiv:2110.00476. [Google Scholar] [CrossRef]
  12. Duta, I.C.; Liu, L.; Zhu, F.; Shao, L. Improved Residual Networks for Image and Video Recognition. arXiv 2020, arXiv:2004.04989. [Google Scholar] [CrossRef]
  13. Dhiman, P.; Kaur, A.; Balasaraswathi, V.R.; Gulzar, Y.; Alwan, A.A.; Hamid, Y. Image Acquisition, Preprocessing and Classification of Citrus Fruit Diseases: A Systematic Literature Review. Sustainability 2023, 15, 9643. [Google Scholar] [CrossRef]
  14. Mamat, N.; Othman, M.F.; Abdulghafor, R.; Alwan, A.A.; Gulzar, Y. Enhancing Image Annotation Technique of Fruit Classification Using a Deep Learning Approach. Sustainability 2023, 15, 901. [Google Scholar] [CrossRef]
  15. Gulzar, Y. Fruit Image Classification Model Based on MobileNetV2 with Deep Transfer Learning Technique. Sustainability 2023, 15, 1906. [Google Scholar] [CrossRef]
  16. Osako, Y.; Yamane, H.; Lin, S.Y.; Chen, P.A.; Tao, R. Cultivar discrimination of litchi fruit images using deep learning. Sci. Hortic. 2020, 269, 109360. [Google Scholar] [CrossRef]
  17. Chen, C.; Wang, L.; Liu, H.M.; Liu, J.; Xu, W.Y.; Huang, M.Z.; Gou, N.N.; Wang, C.; Bai, H.K.; Jia, G.J.; et al. Construction of Apricot Variety Search Engine Based on Deep Learning. Hortic. Plant J. 2023, in press. [Google Scholar] [CrossRef]
  18. Suzuki, M.; Masuda, K.; Asakuma, H.; Takeshita, K.; Baba, K.; Kubo, Y.; Ushijima, K.; Uchida, S.; Akagi, T. Deep Learning Predicts Rapid Over-softening and Shelf Life in Persimmon Fruits. Horticult. J. 2022, 91, 408–415. [Google Scholar] [CrossRef]
  19. Unal, Z.; Aktas, H. Classification of hazelnut kernels with deep learning. Postharvest Biol. Technol. 2023, 197, 112225. [Google Scholar] [CrossRef]
  20. Kong, X.B.; Xu, M.; Hao, W.L.; Han, L.X.; Liu, X.L.; Li, Q.J.; Hao, B.Q.; Zhang, S.J.; Li, X.M.; Liu, Y.H.; et al. Development of a texture evaluation system for winter jujube (Ziziphus jujuba ‘Dongzao’). J. Integr. Agric. 2022, 21, 3658–3668. [Google Scholar] [CrossRef]
  21. Yu, Y.Y.; Xu, Y.J.; Wen, J.; Yu, Y.S. Prunus mume polyphenols maintains the quality and nutrient values of winter jujube (Zizyphus jujuba Mill.) fruits during storage. CyTA-J. Food 2021, 19, 552–559. [Google Scholar] [CrossRef]
  22. Zhao, Y.T.; Zhu, X.; Hou, Y.Y.; Wang, X.Y.; Li, X.H. Effects of nitric oxide fumigation treatment on retarding cell wall degradation and delaying softening of winter jujube (Ziziphus jujuba Mill. cv. Dongzao) fruit during storage. Postharvest Biol. Technol. 2019, 156, 110954. [Google Scholar] [CrossRef]
  23. Ni, H.; Zhang, J.; Zhao, N.; Wang, C.; Lv, S.; Ren, F.; Wang, X. Design on the Winter Jujubes Harvesting and Sorting Device. Appl. Sci. 2019, 9, 5546. [Google Scholar] [CrossRef] [Green Version]
  24. Lu, Z.H.; Zhao, M.F.; Luo, J.; Wang, G.H.; Wang, D.C. Design of a winter-jujube grading robot based on machine vision. Comput. Electron. Agric. 2021, 186, 106170. [Google Scholar] [CrossRef]
  25. Al-Saif, A.M.; Abdel-Sattar, M.; Aboukarima, A.M.; Eshra, D.H. Identification of Indian jujube varieties cultivated in Saudi Arabia using an artificial neural network. Saudi J. Biol. Sci. 2021, 28, 5765–5772. [Google Scholar] [CrossRef]
  26. Feng, L.; Zhu, S.S.; Zhou, L.; Zhao, Y.Y.; Bao, Y.D.; Zhang, C.; He, Y. Detection of Subtle Bruises on Winter Jujube Using Hyperspectral Imaging With Pixel-Wise Deep Learning Method. IEEE Access 2019, 7, 64494–64505. [Google Scholar] [CrossRef]
  27. Kou, X.H.; He, Y.L.; Li, Y.F.; Chen, X.Y.; Feng, Y.C.; Xue, Z.H. Effect of abscisic acid (ABA) and chitosan/nano-silica/sodium alginate composite film on the color development and quality of postharvest Chinese winter jujube (Zizyphus jujuba Mill. cv. Dongzao). Food Chem. 2019, 270, 385–394. [Google Scholar] [CrossRef]
  28. Huang, J.; Chen, X.; He, A.B.; Ma, Z.B.; Gong, T.Q.; Xu, K.N.; Chen, R.H. Integrative Morphological, Physiological, Proteomics Analyses of Jujube Fruit Development Provide Insights Into Fruit Quality Domestication From Wild Jujube to Cultivated Jujube. Front. Plant Sci. 2021, 12, 773825. [Google Scholar] [CrossRef] [PubMed]
  29. Lu, H.F.; Lou, H.Q.; Zheng, H.; Hu, Y.; Li, Y. Nondestructive Evaluation of Quality Changes and the Optimum Time for Harvesting During Jujube (Zizyphus jujuba Mill. cv. Changhong) Fruits Development. Food Bioprocess Technol. 2012, 5, 2586–2595. [Google Scholar] [CrossRef]
  30. Zhao, Y.T.; Zhu, X.; Hou, Y.Y.; Pan, Y.F.; Shi, L.; Li, X.H. Effects of harvest maturity stage on postharvest quality of winter jujube (Zizyphus jujuba Mill. cv. Dongzao) fruit during cold storage. Sci. Hortic. 2021, 277, 109778. [Google Scholar] [CrossRef]
  31. Zhang, Q.; Wang, L.H.; Wang, Z.T.; Zhang, R.T.; Liu, P.; Liu, M.J.; Liu, Z.G.; Zhao, Z.H.; Wang, L.L.; Chen, X.; et al. The regulation of cell wall lignification and lignin biosynthesis during pigmentation of winter jujube. Hortic. Res.-Engl. 2021, 8, 14. [Google Scholar] [CrossRef]
  32. Shi, Q.Q.; Du, J.T.; Zhu, D.J.; Li, X.; Li, X.G. Metabolomic and Transcriptomic Analyses of Anthocyanin Biosynthesis Mechanisms in the Color Mutant Ziziphus jujuba cv. Tailihong. J. Agric. Food Chem. 2020, 68, 15186–15198. [Google Scholar] [CrossRef]
  33. Qi, Y.L.; Yang, Z.; Sun, W.H.; Lou, M.; Lian, J.; Zhao, W.W.; Deng, X.Y.; Ma, Y.D. A Comprehensive Overview of Image Enhancement Techniques. Arch. Comput. Method Eng. 2022, 29, 583–607. [Google Scholar] [CrossRef]
  34. Wang, L.; Luo, Z.S.; Ban, Z.J.; Jiang, N.; Yang, M.Y.; Li, L. Role of exogenous melatonin involved in phenolic metabolism of Zizyphus jujuba fruit. Food Chem. 2021, 341, 128268. [Google Scholar] [CrossRef] [PubMed]
  35. Zhang, S.; Wu, Z.B.; Liu, L.L.; Wang, L.Y.; Li, X.H.; Ban, Z.J.; Chen, C.K.; Zhu, Y. Partial compression increases acidity, but decreases phenolics in jujube fruit: Evidence from targeted metabolomics. Food Res. Int. 2023, 164, 112388. [Google Scholar] [CrossRef]
  36. Zhang, S.; Liu, L.L.; Wu, Z.B.; Wang, L.Y.; Ban, Z.J. S-nitrosylation of superoxide dismutase and catalase involved in promotion of fruit resistance to chilling stress: A case study on Ziziphus jujube Mill. Postharvest Biol. Technol. 2023, 197, 112210. [Google Scholar] [CrossRef]
  37. Afonso, M.; Fonteijn, H.; Fiorentin, F.S.; Lensink, D.; Mooij, M.; Faber, N.; Polder, G.; Wehrens, R. Tomato Fruit Detection and Counting in Greenhouses Using Deep Learning. Front. Plant Sci. 2020, 11, 571299. [Google Scholar] [CrossRef]
  38. Wang, S.Y.; Chen, C.T.; Wang, C.Y. The influence of light and maturity on fruit quality and flavonoid content of red raspberries. Food Chem. 2009, 112, 676–684. [Google Scholar] [CrossRef]
  39. Sang, Y.Y.; Yang, W.T.; Liu, Y.X.; Zhang, W.D.; Guo, T.T.; Shen, P.; Tang, Y.S.; Guo, M.R.; Chen, G.G. Influences of low temperature on the postharvest quality and antioxidant capacity of winter jujube (Zizyphus jujuba Mill. cv. Dongzao). LWT-Food Sci. Technol. 2022, 154, 112876. [Google Scholar] [CrossRef]
  40. Wang, X.; Wang, K.; Lian, S.G. A survey on face data augmentation for the training of deep neural networks. Neural Comput. Appl. 2020, 32, 15503–15531. [Google Scholar] [CrossRef] [Green Version]
  41. Akhtar, N.; Ragavendran, U. Interpretation of intelligence in CNN-pooling processes: A methodological survey. Neural Comput. Appl. 2020, 32, 879–898. [Google Scholar] [CrossRef]
  42. Chang, H.Y.; Vickers, Z.M.; Tong, C.B.S. The use of a combination of instrumental methods to assess change in sensory crispness during storage of a “Honeycrisp” apple breeding family. J. Texture Stud. 2018, 49, 228–239. [Google Scholar] [CrossRef] [PubMed]
  43. Mahmood, A.; Singh, S.K.; Tiwari, A.K. Pre-trained deep learning-based classification of jujube fruits according to their maturity level. Neural Comput. Appl. 2022, 34, 13925–13935. [Google Scholar] [CrossRef]
  44. Guo, Z.; Zheng, H.; Xu, X.; Ju, J.; Gu, Y. Quality grading of jujubes using composite convolutional neural networks in combination with RGB color space segmentation and deep convolutional generative adversarial networks. J. Food Process Eng. 2020, 44, e13620. [Google Scholar] [CrossRef]
Figure 1. Five maturity grades for (A) green fruits, (B) white ripe fruits (C) semi-red fruits, (D) fully red fruits, (E) softened fruits.
Figure 1. Five maturity grades for (A) green fruits, (B) white ripe fruits (C) semi-red fruits, (D) fully red fruits, (E) softened fruits.
Agronomy 13 02095 g001
Figure 2. Image acquisition system.
Figure 2. Image acquisition system.
Agronomy 13 02095 g002
Figure 3. Improved iResNet-50 classification model structure.
Figure 3. Improved iResNet-50 classification model structure.
Agronomy 13 02095 g003
Figure 4. F1-score distribution.
Figure 4. F1-score distribution.
Agronomy 13 02095 g004
Figure 5. Data augmentation process example.
Figure 5. Data augmentation process example.
Agronomy 13 02095 g005
Figure 6. Accuracy and loss of training and validation of the improved iResNet-50.
Figure 6. Accuracy and loss of training and validation of the improved iResNet-50.
Agronomy 13 02095 g006
Figure 7. Feature extraction visualization.
Figure 7. Feature extraction visualization.
Agronomy 13 02095 g007
Figure 8. Feature visualization after the first Main Stage for (A) color and (B) texture.
Figure 8. Feature visualization after the first Main Stage for (A) color and (B) texture.
Agronomy 13 02095 g008
Figure 9. Confusion matrixes for (A) ResNet-50, (B) iResNet-50, (C) improved iResNet-50.
Figure 9. Confusion matrixes for (A) ResNet-50, (B) iResNet-50, (C) improved iResNet-50.
Agronomy 13 02095 g009
Figure 10. Three models F1-score for five classifications.
Figure 10. Three models F1-score for five classifications.
Agronomy 13 02095 g010
Table 1. Allocation of the dataset.
Table 1. Allocation of the dataset.
Green FruitsWhite Ripe FruitsSemi-Red FruitsFully Red FruitsSoftened Fruits
training set700700700700700
validation set200200200200200
test set100100100100100
Table 2. Setting of texture analyzer parameters.
Table 2. Setting of texture analyzer parameters.
Pre-Test SpeedTest SpeedPost-Test SpeedDistanceTimeTrigger Force
1.00 mm/s5.00 mm/s5.00 mm/s5.000 mm5.00 s5.0 g
Table 3. Maturity grades and network outputs.
Table 3. Maturity grades and network outputs.
GradeGreen FruitsWhite Ripe FruitsSemi-Red FruitsFully Red FruitsSoftened Fruits
Output01234
Table 4. Setting of training parameters.
Table 4. Setting of training parameters.
EpochInitial Learning RateBatch SizeOptimizer
801 × 10−316Adam
Table 5. Total soluble solids (TSS), total acid (TA), TSS/TA and Puncture force of different grade jujube.
Table 5. Total soluble solids (TSS), total acid (TA), TSS/TA and Puncture force of different grade jujube.
GradeTSS/% *TA/%TSS/TAPuncture Force/g
green fruits (1st classification)16.97 ± 0.61 d **0.75 ± 0.03 b22.63 ± 0.39 c292.50 ± 22.75 b
white ripe fruits (2nd classification)20.13 ± 0.82 c0.79 ± 0.02 ab25.48 ± 1.54 b315.24 ± 43.63 b
semi-red fruits (3rd classification)21.47 ± 0.12 b0.83 ± 0.01 a25.87 ± 0.35 b318.87 ± 50.70 b
fully red fruits (4th classification)24.23 ± 0.05 a0.83 ± 0.03 a29.19 ± 1.09 a352.93 ± 42.43 a
softened fruits (5th classification)NANANANA
* The results were expressed with means ± standard deviation (SD). ** The different letters represent the significant (p < 0.05) difference in the same column.
Table 6. Performance comparison for winter jujube maturity classification models.
Table 6. Performance comparison for winter jujube maturity classification models.
MethodClassificationPrecision/%Recall/%F1-score/%Accuracy/%
VGG16Avg67.4077.3072.0177.30
Inception netAvg89.6689.6589.6589.65
ResNet-50010092.0095.8390.20
191.4485.5088.37
284.6389.5087.00
382.0198.0089.29
496.3585.7590.74
Avg90.8990.1590.25
iResNet-50010096.0097.9696.75
195.9394.5095.21
290.0910094.79
399.7393.5096.51
499.0199.7599.83
Avg96.9596.7596.77
Improved iResNet-50010099.7599.8798.35
199.7496.2597.96
294.5199.0096.70
397.7698.0097.88
410098.7599.37
Avg98.4098.3598.36
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Ban, Z.; Fang, C.; Liu, L.; Wu, Z.; Chen, C.; Zhu, Y. Detection of Fundamental Quality Traits of Winter Jujube Based on Computer Vision and Deep Learning. Agronomy 2023, 13, 2095. https://doi.org/10.3390/agronomy13082095

AMA Style

Ban Z, Fang C, Liu L, Wu Z, Chen C, Zhu Y. Detection of Fundamental Quality Traits of Winter Jujube Based on Computer Vision and Deep Learning. Agronomy. 2023; 13(8):2095. https://doi.org/10.3390/agronomy13082095

Chicago/Turabian Style

Ban, Zhaojun, Chenyu Fang, Lingling Liu, Zhengbao Wu, Cunkun Chen, and Yi Zhu. 2023. "Detection of Fundamental Quality Traits of Winter Jujube Based on Computer Vision and Deep Learning" Agronomy 13, no. 8: 2095. https://doi.org/10.3390/agronomy13082095

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop