Skip to main content
Log in

Recognition of Defective Carrots Based on Deep Learning and Transfer Learning

  • Original Research
  • Published:
Food and Bioprocess Technology Aims and scope Submit manuscript

Abstract

The external appearance of carrot plays a vital role in the sales of carrots. In this study, a recognition method of defective carrots was proposed based on deep learning and transfer learning. Five classical CNNs (Densenet-121, ResNet-50, Inception-V3, VGG-16, and VGG-19) were applied for recognizing defective carrots. And these models were fine-tuned on a new dataset including 1115 normal and 1330 defective carrots. From the experimental results, the transfer learning model of ResNet-50 performed best. Moreover, the hyper-parameters (batch size, learning rate, and fine-tuned layers) of ResNet-50 were optimized to enhance the performance. To further improve the recognition rate of defective carrots, the final label was obtained by selective ensemble, the results of different detection models. In these ensemble models, ResNet-50 was selected as a fixed model fused with any two of the other four models by an averaging method. The results showed that the ensemble model with ResNet-50, Densenet-121, and VGG-16 (R-D-V16) performed best with accuracy, precision, sensitivity, specificity, F1-score, and detection speed of 97.34%, 99.53%, 94.62%, 99.62%, 97.01%, and 0.09s per image, respectively. Therefore, the robust performance of CNNs through transfer learning indicated that it can be an effective method of recognizing defective carrots.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13
Fig. 14
Fig. 15
Fig. 16

Similar content being viewed by others

Data Availability

The datasets used or analyzed during the current study are available from the corresponding author on reasonable request.

Funding

This work is financially supported by the National Key Research and Development Program of China (No.2018YFD0700102-02).

References

Download references

Code Availability

Some or all data, models, or code generated or used during the study are available from the corresponding author by request.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Deyong Yang.

Ethics declarations

Conflict of Interest

The authors declare no competing interests.

Additional information

Publisher’s Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Xie, W., Wei, S., Zheng, Z. et al. Recognition of Defective Carrots Based on Deep Learning and Transfer Learning. Food Bioprocess Technol 14, 1361–1374 (2021). https://doi.org/10.1007/s11947-021-02653-8

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11947-021-02653-8

Keyword

Navigation