Submitted:
22 September 2025
Posted:
23 September 2025
Read the latest preprint version here
Abstract
Keywords:
1. Introduction
Overview of the Proposed Approach
Problem Statement and Limitations of Existing Approaches
Research Objectives
- To maximize the recall of internal defect detection while minimizing false positives, particularly for subtle or ambiguous anomalies.
- To enable precise localization and classification of multiple types of internal defects in a single pipeline (e.g., hollow heart, bruising, insect galleries).
- To ensure compatibility with real-time operation and industrial constraints through the exclusive use of low-cost, high-speed RGB cameras.
- To design a multi-stage AI architecture incorporating detection, verification, segmentation, and contextual reasoning inspired by expert human inspection logic.
Overview of the Proposed Architecture
Scientific Contribution and Positioning
- Industrial scalability, through the use of low-cost RGB cameras and real-time processing modules.
- Defect-specific adaptability, enabled by class-dependent YOLO thresholds and revalidation logic.
- Context-aware analysis, integrating both pixel-level segmentation and depth inference based on anatomical structure.
- Interpretable decision-making, by combining deep neural networks with classical classifiers in a modular pipeline.
2. State of the Art
2.1. Multispectral and LED-Based Imaging
2.2. Multispectral and LED-Based Imaging
- Spectral ambiguity: restricted bands reduce the ability to differentiate deeper or subtle internal defects.
- Environment sensitivity: performance drops under variable lighting, moisture, or depending on tuber variety conditions.
- Calibration dependence: each new dataset or operating context typically requires recalibration [34].
- Limited generalization: models trained on one cultivar or harvest season often fail to generalize to others [16].
2.3. Magnetic Resonance Imaging (MRI) and X-Ray Techniques
- High cost and bulk: MRI and CT systems are expensive, bulky, and require dedicated infrastructure.
- Low throughput: A typical MRI scan processes only 12–18 tubers in about 30 minutes [50].
- Safety and regulatory constraints: X-ray systems require shielding, operator certification, and legal compliance.
- Operational complexity: MRI and CT data require expert interpretation and advanced image processing pipelines.
2.4. Deep Learning with RGB Imagery
- R-CNN/Fast R-CNN: These architectures have been used for tuber segmentation and defect localization, but tend to be slow and resource-intensive in inference [20].
- Faster R-CNN: ResNet-based models have achieved ∼98% accuracy in surface defect detection via transfer learning (e.g., SSD Inception V2, Faster R-CNN ResNet101) [21].
- Mask R-CNN: Applied to segment potato tubers in soil, with detection precision around 90% and F1 ≈ 92% [20].
- SSD (Single Shot MultiBox Detector): Fine-tuned for potato surface defects, achieving ∼95% mAP [21].
- YOLOv5 and variants: Including DCS-YOLOv5s, tailored for multi-target recognition in seed tubers (buds, defects), delivering fast real-time detection (∼97% precision) [22].
- YOLOv10/11: Emerging models; HCRP-YOLO achieved ∼90% true positive rates for germination defects.
- Survey on YOLO evolution: Recent reviews highlight improvements in speed and accuracy from YOLOv1 to YOLOv10, especially in agricultural scenarios [24].
- Lightweight YOLOv5s variants: Designed for industrial defect detection with real-time performance on production lines [25].
- Black-box behavior: Limited interpretability and anatomical reasoning.
- Single-shot limitations: Most approaches perform classification/detection in one pass without refinement.
- Lack of context: Models often only see external surfaces or slices, missing 3D anatomical structures.
- Generalization gaps: Performance typically drops when applied to new cultivars, lighting, or environments.
2.5. Limitations and Motivation for a New Approach
- Offer limited interpretability, often functioning as black boxes.
- Are sensitive to visual noise and lack contextual anatomical reasoning.
- Do not perform multi-stage refinement to correct or validate uncertain detections.
| Method | Cost | Speed | Interpretability | Robustness |
|---|---|---|---|---|
| Hyperspectral Imaging | ✗ | ✗ | ✓ | Partial |
| MRI / X-ray Imaging | ✗ | ✗ | ✓ | Partial |
| LED Multispectral | ✓ | ✓ | ✗ | Partial |
| RGB CNN (Single-Shot) | ✓ | ✓ | ✗ | ✗ |
| Our Hybrid Pipeline | ✓ | ✓ | ✓ | ✓ |
3. Proposed Method
3.1. Dataset Description
- Hollow Heart (cc) — central voids with regular contours.
- Damaged Tissue (Endo) — internal bruising or blackened zones.
- Insect Galleries (Mrgal) — small tunnels or pest bites.
- Cracks (Crevasse) — structural fractures through the tuber flesh.
- Rust Spots (Rouille) — oxidized tissue lesions, typically subcutaneous.
- Greening (Vert) — green zones near the skin due to light exposure.

3.2. Architecture
3.2.1. Stage 1: Initial Detection with YOLOs
3.2.2. Stage 2: Patch-Level Reclassification
3.2.3. Stage 3: Semantic Segmentation with SAM
3.2.4. Stage 4: Contextual Depth Evaluation
3.2.5. Stage 5: Expert Rule-Based Correction
3.2.6. Summary of the Architecture

4. Experiments, Results and Discussion
4.1. Experimental Setup
5. Results
5.1. Quantitative Performance

5.2. Interpretation of Segmentation Results
5.3. Processing Speed
5.4. Comparison with Existing Methods
- Our pipeline combines multi-threshold YOLO, ResNet patch verification, SAM segmentation, and VGG16+RF depth analysis, reaching F1-scores above 95% with real-time throughput in laboratory conditions using only standard RGB imaging.
5.5. Discussion
6. Conclusion
References
- C. Li, Q. Li, G. Chen, Y. Zhang, and Z. Wang, Identification of Internal Defects in Potatoes Using Hyperspectral Imaging and Convolutional Neural Network, Sensors, vol. 23, no. 9, p. 4065, 2023. doi: 10.3390/s23094065.
- Yan, W., Wang, H., Lu, R., & Guo, W. (2021). Detection of internal defects of potatoes using CNN features and traditional machine learning classifiers. Computers and Electronics in Agriculture, 183, 106073. [CrossRef]
- Moallem, P., Dehghani, H., & Omid, M. (2021). Ensemble deep learning model for classification of internal defects in potatoes using visible imaging. Journal of Food Measurement and Characterization, 15, 5341–5352. [CrossRef]
- Lee, H. S., & Shin, B. S. (2020). Potato detection and segmentation based on Mask R-CNN. Computers and Electronics in Agriculture, 178, 105747. [CrossRef]
- Zhang, Y., Liu, Y., Wang, H., & Lin, J. (2021). Detection of surface defects on potatoes using deep learning and transfer learning techniques. Agriculture, 11(9), 863. [CrossRef]
- Qiu, Z., Wang, W., Jin, X., Zhang, H., & Sun, H. (2024). DCS-YOLOv5s: A lightweight algorithm for multi-target recognition of potato seed potatoes based on YOLOv5s. Agronomy, 14(11), 2558. [CrossRef]
- Wakholi, C., et al. (2025). HCRP-YOLO: Hybrid Cascade-Refined YOLO for detection of potato sprouting and internal bruises. Sensors, accepted manuscript (in press).
- Alif, M. R. A. R., & Hussain, M. (2024). YOLOv1 to YOLOv10: A comprehensive review of YOLO variants and their applications in agriculture. Artificial Intelligence in Agriculture, 8, 50–64. [CrossRef]
- Liu, T., Zhou, X., Wang, S., & Yang, R. (2025). YOLOv5s-OURS: A real-time potato surface defect detection model optimized for edge deployment. Computers and Electronics in Agriculture, 211, 108174. [CrossRef]
- D. Zhang, J. Liu, J. Sun, Y. Zhao, and Y. Zhang, Hyperspectral Imaging Combined with Attention-UNet for Internal Defect Detection of Potato Tubers, Postharvest Biology and Technology, vol. 190, p. 111963, 2022. doi: 10.1016/j.postharvbio.2022.111963.
- W. Yan, H. Wang, R. Lu, and W. Guo, Detection of Internal Defects of Potatoes Using CNN Features and Traditional Machine Learning Classifiers, Computers and Electronics in Agriculture, vol. 183, p. 106073, 2021. doi: 10.1016/j.compag.2021.106073.
- P. Moallem, H. Dehghani, and M. Omid, Ensemble Deep Learning Model for Classification of Internal Defects in Potatoes Using Visible Imaging, Journal of Food Measurement and Characterization, vol. 15, no. 6, pp. 5341–5352, 2021. doi: 10.1007/s11694-021-01036-4.
- Kamrunnahar, M. and Hashimoto, Y., “Nondestructive Detection of Potato Quality Using LED-Induced Multispectral Imaging,” International Journal of Food Engineering, vol. 11, no. 4, pp. 551–560, 2015.
- Rauf, A., Saleem, B. A., and Abbas, Q., “Multispectral Imaging with LED Illumination for Detecting Internal Defects in Potatoes,” International Journal of Food Properties, vol. 22, no. 1, pp. 1327–1338, 2019.
- Yang, Y., Liu, Z., Huang, M., Zhu, Q., and Zhao, X., “Automatic Detection of Multi-type Defects on Potatoes Using Multispectral Imaging Combined with a Deep Learning Model,” Journal of Food Engineering, vol. 336, p. 111213, 2023.
- Zhang, W., Zhu, Q., Huang, M., and Guo, Y., “Detection and Classification of Potato Defects Using Multispectral Imaging System Based on Single Shot Method,” Food Analytical Methods, vol. 12, pp. 2920–2929, 2019.
- Fujikawa, Y., and Kanda, H. (2009). Application of MRI for internal structure investigation in potato tubers. Journal of Agricultural and Food Chemistry, 57(12), 5266–5272. [CrossRef]
- Yan, W., Wang, H., Lu, R., & Guo, W. (2021). Detection of internal defects of potatoes using CNN features and traditional machine learning classifiers. Computers and Electronics in Agriculture, 183, 106073.
- Moallem, P., Dehghani, H., & Omid, M. (2021). Ensemble deep learning model for classification of internal defects in potatoes using visible imaging. Journal of Food Measurement and Characterization, 15(6), 5341–5352.
- Lee, H.-S., & Shin, B.-S. (2020). Potato detection and segmentation based on Mask R-CNN. Computers and Electronics in Agriculture.
- Zhang, et al. (2021). Potato surface defect detection based on deep transfer learning. Agriculture, 11(9), 863.
- Qiu, Z., Wang, W., Jin, X., et al. (2024). DCS-YOLOv5s: A lightweight algorithm for multi-target recognition of potato seed potatoes based on YOLOv5s. Agronomy, 14(11), 2558.
- Wakholi, C., (2025). HCRP-YOLO: A lightweight algorithm for potato defect detection. Preprint.
- Al Rabbani Alif, M., & Hussain, M. (2024). YOLOv1 to YOLOv10: a comprehensive review of YOLO variants and their application in the agricultural domain. arXiv preprint.
- Liu, et al. (2025). Improved YOLO v5s-based detection method for external defects in potatoes. PMCID: PMC11876418.
- Schofield, A. M., and Harris, P. J. (2005). Visualizing internal defects in potatoes using X-ray imaging. Journal of Food Engineering, 67(3), 301–311. [CrossRef]
- Hajjar, G., Quellec, S., Pépin, J., Challois, S., and Musse, M. (2021). MRI investigation of internal defects in potato tubers with particular attention to rust spots induced by water stress. Postharvest Biology and Technology, 180, 111600. [CrossRef]
- Collewet, G., Moussaoui, S., Quellec, S., Hajjar, G., and Musse, M. (2023). Characterization of potato tuber tissues using spatialized MRI T2 relaxometry. Biomolecules, 13(2), 286. [CrossRef]
- Pérez-Torres, E., Kirchgessner, N., Pfeifer, J., and Walter, A. (2015). Assessing potato tuber diel growth by means of X-ray computed tomography. Plant, Cell & Environment, 38(11), 2318–2326. [CrossRef]
- Finney, E. E., and Norris, K. H. (1973). X-ray images of hollow heart potatoes in water. American Potato Journal, 50(1), 1–8. [CrossRef]
- Ibrahim, A., Grassi, M., Lovati, F., Mignani, A. G., and Riminesi, C. (2020). Non-destructive detection of potato tubers internal defects: critical insight on the use of time-resolved spectroscopy. Advances in Horticultural Science, 34(1S), 43–51. [CrossRef]
- Deng, D., Liu, Z., Lv, P., Sheng, M., Zhang, H., Yang, R., and Shi, T., “Defect Detection in Food Using Multispectral and High-Definition Imaging Combined with a Newly Developed Deep Learning Model,” Processes, vol. 11, no. 12, p. 3295, 2023.
- Semyalo, D., Kim, Y., Omia, E., Arief, M. A. A., Kim, H., Sim, E. Y., Kim, M. S., Baek, I., and Cho, B. K., “Nondestructive Identification of Internal Potato Defects Using Visible and Short-Wavelength Near-Infrared Spectral Analysis,” Agriculture, vol. 14, no. 11, p. 2014, 2024.
- Ruiz, P., García-Vera, V., and Fernández, J., “Challenges in LED-based Multispectral Imaging for Internal Quality Inspection in Tubers,” Computers and Electronics in Agriculture, vol. 174, p. 105464, 2020.
- M. Musse, G. Hajjar, A. Radovcic, N. Ali, S. Challois, S. Quellec, P. Leconte, A. Carillo, C. Langrume, L. Bousset-Vaslin, and B. Billiot, Growth Kinetics, Spatialization and Quality of Potato Tubers Monitored by Magnetic Resonance Imaging, Physiologia Plantarum, vol. 176, no. 3, e14322, 2024. doi: 10.1111/ppl.14322.
- FAO, Potato Market Report 2023, Organisation des Nations Unies pour l’alimentation et l’agriculture (FAO), 2023. Disponible en ligne : https://www.fao.org/potato-2023-report [Consulté le 13 juin 2025].
- W. Yan, H. Wang, R. Lu, and W. Guo, Detection of Internal Defects of Potatoes Using CNN Features and Traditional Machine Learning Classifiers, Computers and Electronics in Agriculture, vol. 183, p. 106073, 2021. doi: 10.1016/j.compag.2021.106073.
- Mohd Ali, M., et al. “Quality Inspection of Food and Agricultural Products using Artificial Intelligence.” *Reviews in Food Science and Food Safety*, vol. 18, no. 6, 2021, pp. 1793–1811.
- Li, C., Li, Q., Chen, G., Zhang, Y., and Wang, Z. (2023). Identification of Internal Defects in Potatoes Using Hyperspectral Imaging and Convolutional Neural Networks. Sensors, 23(9), 4065. [CrossRef]
- García-Vera, V., et al. (2024). A Review of Non-Destructive Techniques for Detecting Internal Defects in Agricultural Products. Postharvest Biology and Technology, 194, 112024.
- ElMasry, G., et al. (2012). Principles and applications of hyperspectral imaging in quality evaluation of agro-food products: A review. Food Bioprocess Technol., 5, 1121–1142.
- Kamrunnahar, M., et al. (2015). Internal defect detection in potatoes by LED-based multispectral imaging. Computers and Electronics in Agriculture, 116, 64–74.
- Fujikawa, M., et al. (2009). Evaluation of potato internal defects using magnetic resonance imaging. Biosystems Engineering, 102(3), 239–246.
- Moallem, P., Dehghani, H., and Omid, M. (2021). Ensemble deep learning model for classification of internal defects in potatoes using visible imaging. Journal of Food Measurement and Characterization, 15(6), 5341–5352.
- Yan, W., Wang, H., Lu, R., and Guo, W. (2021). Detection of internal defects of potatoes using CNN features and traditional machine learning classifiers. Computers and Electronics in Agriculture, 183, 106073.
- Arévalo-Royo, J., et al. “AI Algorithms in the Agrifood Industry: Application Potential in the Spanish Agrifood Context. Applied Sciences, vol. 15, no.4, 2025, art.2096.
- D. Zhang, J. Liu, J. Sun, Y. Zhao, and Y. Zhang, Hyperspectral Imaging Combined with Attention-UNet for Internal Defect Detection of Potato Tubers, Postharvest Biology and Technology, vol. 190, p. 111963, 2022.
- C. Li, Q. Li, G. Chen, Y. Zhang, and Z. Wang, Identification of Internal Defects in Potatoes Using Hyperspectral Imaging and CNN, Sensors, vol. 23, no. 9, p. 4065, 2023.
- Y. Fujikawa and H. Kanda, Application of MRI for Internal Structure Investigation in Potato Tubers, Journal of Agricultural and Food Chemistry, vol. 57, no. 12, pp. 5266–5272, 2009.
- G. Hajjar, S. Quellec, J. Pépin, et al., MRI Investigation of Internal Defects in Potato Tubers with Attention to Rust Spots Induced by Water Stress, Postharvest Biology and Technology, vol. 180, 111600, 2021.
- W. Yan, H. Wang, R. Lu, and W. Guo, Detection of Internal Defects of Potatoes Using CNN Features and Machine Learning Classifiers, Computers and Electronics in Agriculture, vol. 183, 106073, 2021.
- P. Moallem, H. Dehghani, and M. Omid, Ensemble Deep Learning Model for Classification of Internal Defects in Potatoes Using Visible Imaging, Journal of Food Measurement and Characterization, vol. 15, pp. 5341–5352, 2021.
- P. Moallem, H. Dehghani, and M. Omid, Ensemble Deep Learning Model for Classification of Internal Defects in Potatoes Using Visible Imaging, Journal of Food Measurement and Characterization, vol. 15, no. 6, pp. 5341–5352, 2021. doi: 10.1007/s11694-021-01036-4.
- C. Li, Q. Li, G. Chen, Y. Zhang, and Z. Wang, Identification of Internal Defects in Potatoes Using Hyperspectral Imaging and Convolutional Neural Network, Sensors, vol. 23, no. 9, p. 4065, 2023. doi: 10.3390/s23094065.

| Defect Class | Recall (%) | Precision (%) | F1-score (%) | IoU (%) |
|---|---|---|---|---|
| Hollow Heart (cc) | 91.2 | 98.7 | 94.8 | 89.5 |
| Damaged Tissue (Endo) | 92.5 | 99.1 | 95.7 | 90.3 |
| Insect Galleries (Mrgal) | 90.3 | 97.9 | 93.9 | 88.1 |
| Cracks (Crevasse) | 94.8 | 98.5 | 96.6 | 91.2 |
| Rust Spots (Rouille) | 89.7 | 99.3 | 94.2 | 87.9 |
| Greening (Vert) | 93.1 | 99.0 | 96.0 | 90.7 |
| Average | 91.9 | 98.8 | 95.2 | 89.6 |
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. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).