ResNet-18 Citrus Classification with Augmentation: Peel Color Associations with pH and Vitamin C
Abstract
Limes and lemons are widely consumed, but field quality assessment is often subjective. This study built a ResNet-18 citrus classifier using transfer learning and data augmentation, and evaluated it with stratified 5-fold cross-validation on 80 images (40 limes, 40 lemons). All analyses were conducted per fold to reduce optimistic bias. The model reached 98.75% mean validation accuracy, misclassifying one lime image while correctly recognizing all lemons. For interpretation, peel regions were quantified using NDYI and CIELab (L*, a*, b*), and related to pH and vitamin C using Spearman correlation. Uncertainty was quantified with bootstrap-based 95% confidence intervals for each correlation. Peel color features were more consistently associated with pH (especially in limes), whereas correlations with vitamin C were weak and non-significant for both fruits. Results indicate strong performance under controlled imaging, but using peel color as a vitamin C proxy requires broader data and external validation across cameras and lighting.
Keywords
Full Text:
PDFReferences
P. Changtor, W. Ratiphaphongthon, M. Saengthong, K. Buddhachat, and N. Yimtragool, "Hybrid Cassava Identification from Morphometric Analysis to Deep Convolutional Neural Networks and Confirmation Strategies," Trends Sci., vol. 22, no. 5, pp. 1-20, 2025. https://doi.org/10.48048/tis.2025.9475
D. Mirwansyah and A. Wibowo, "Fruit Image Classification Using Deep Learning Algorithm : Systematic Literature Review ( SLR )," vol. 2, no. 2, pp. 38-41, 2022. DOI: 10.47002/mst.v2i2.356
R. Gan, "Quality evaluation of citrus varieties based on phytochemical profiles and nutritional properties," no. May, pp. 1-11, 2023. doi: 10.3389/fnut.2023.1165841
I. R. Santelices, S. Cano, and F. Moreira, "Artificial Vision Systems for Fruit Inspection and Classification : Systematic Literature Review," 2025. https://doi.org/10.3390/s25051524
S. Ghanghas, "WITHDRAWN : Prediction of fruit quality parameters using peel color in Citrus Reticulata L . fruit by multiple linear regression and artificial neural network approach," pp. 1-13, 2022. https://doi.org/10.21203/rs.3.rs-2332668/v1
D. Bhatt et al., "Cnn variants for computer vision: History, architecture, application, challenges and future scope," Electron., vol. 10, no. 20, pp. 1-28, 2021. https://doi.org/10.3390/electronics10202470v
M. Krichen, "Convolutional Neural Networks: A Survey," Computers, vol. 12, no. 8, pp. 1-41, 2023. https://doi.org/10.3390/computers12080151
G. Rangel, J. C. Cuevas-Tello, J. Nunez-Varela, C. Puente, and A. G. Silva-Trujillo, "A Survey on Convolutional Neural Networks and Their Performance Limitations in Image Recognition Tasks," J. Sensors, vol. 2024, 2024. https://doi.org/10.1155/2024/2797320
H. A. K. A. & Y. P. Asrianda, "JITE ( Journal of Informatics and Telecommunication Engineering ) Machine Learning for Detection of Palm Oil Leaf Disease Visually using Convolutional Neural Network Algorithm," vol. 4, no. January, 2021. DOI : 10.31289/jite.v4i2.4185
R. Raj and A. Kos, "An Extensive Study of Convolutional Neural Networks: Applications in Computer Vision for Improved Robotics Perceptions," Sensors, vol. 25, no. 4, 2025. https://doi.org/10.3390/s25041033
M. M. Taye, "Understanding of Machine Learning with Deep Learning :," Comput. MDPI, vol. 12, no. 91, pp. 1-26, 2023. https://doi.org/10.3390/computers12050091
A. Younesi, M. Ansari, M. Fazli, A. Ejlali, M. Shafique, and J. Henkel, "A Comprehensive Survey of Convolutions in Deep Learning: Applications, Challenges, and Future Trends," IEEE Access, vol. 12, pp. 41180-41218, 2024. DOI: 10.1109/ACCESS.2024.3376441
S. A. Hasanah, A. A. Pravitasari, A. S. Abdullah, I. N. Yulita, and M. H. Asnawi, "A Deep Learning Review of ResNet Architecture for Lung Disease Identification in CXR Image," Appl. Sci., vol. 13, no. 24, 2023. https://doi.org/10.3390/app132413111
V. Rajashekar, "A Deep Learning Approach for COVID-19 Detection and Diagnosis using ResNet Architecture," no. December 2021, 2022. https://www.researchgate.net/publication/358199886
J. Schneider and M. Vlachos, "A Survey of Deep Learning: From Activations to Transformers," Int. Conf. Agents Artif. Intell., vol. 2, pp. 419-430, 2024. DOI: 10.5220/0012404300003636
Z. Chen et al., "ResNet18DNN: prediction approach of drug-induced liver injury by deep neural network with ResNet18," Brief. Bioinform., vol. 23, no. 1, pp. 1-9, 2022. https://doi.org/10.1093/bib/bbab503
A. Longon, "Interpreting the Residual Stream of ResNet18," pp. 1-12, 2024. http://arxiv.org/abs/2407.05340
Y. Wang et al., "Preliminary exploratory study on differential diagnosis between benign and malignant peripheral lung tumors: based on deep learning networks," Front. Med., vol. 12, no. March, pp. 1-8, 2025. doi: 10.3389/fmed.2025.1567545
H. Li, H. Qing, S. Wu, H. Bai, and B. Lin, "Implementation of Small Sample Citrus Fruit Classification Detection Based on Improved ResNet18 Residual Network," vol. 13, no. 2, 2024.
D. Xu, Y. Li, Y. Qing, J. Zhang, and Z. Shi, "Research on Fruits Image Target Detection Based on the Fusion Technology of ResNet-18," vol. 6, no. 1, 2025.
V. N. Mee, L. T. Ming, and L. Y. Mei, "Leveraging Transfer Learning for Durian Variety Classi fi cation," pp. 135-142, 2025. https://doi.org/10.37965/jait.2025.0672
S. H. Miraei Ashtiani, S. Javanmardi, M. Jahanbanifard, A. Martynenko, and F. J. Verbeek, "Detection of mulberry ripeness stages using deep learning models," IEEE Access, vol. 9, pp. 100380-100394, 2021. DOI: 10.1109/ACCESS.2021.3096550
O. J. Adelaja et al., "Insecticidal activities and comparative efficacy of essential oils of three Citrus species (Sapindales: Rutaceae) against Anopheles gambiae mosquitoes," Sri Lankan J. Biol., vol. 10, no. 1, pp. 26-35, 2025. https://doi.org/10.4038/sljb.v10i1.166
B. Kaur, S. K. Gupta, M. Janarthan, D. M. Alsekait, and D. S. AbdElminaam, "NL-FuRBe: Precision Diagnosis of Citrus Leaf Diseases using Image Enhancement and Non-Linear Fuzzy Ranking Ensemble Approach," Res. Sq., pp. 1-25, 2025.
M. L. Huang and Y. A. Chen, "Citrus dataset for image classification," Data Br., vol. 51, p. 109628, 2023. doi: 10.1016/j.dib.2023.109628
X. Jia, X. Jiang, Z. Li, J. Mu, Y. Wang, and Y. Niu, "Application of Deep Learning in Image Recognition of Citrus Pests," Agric., vol. 13, no. 5, 2023. doi: 10.3390/agriculture13051023
M. Rafało, "Cross validation methods : Analysis based on diagnostics of thyroid cancer metastasis," ICT Express, vol. 8, no. 2, pp. 183-188, 2022. https://doi.org/10.1016/j.icte.2021.05.001
A. Mumuni and F. Mumuni, "Data augmentation : A comprehensive survey of modern approaches," Array, vol. 16, no. August, p. 100258, 2022. https://doi.org/10.1016/j.array.2022.100258
Y. Ni, S. Li, and P. Guo, "Discrete wavelet integrated convolutional residual network for bearing fault diagnosis under noise and variable operating conditions," pp. 1-26, 2025. https://doi.org/10.1038/s41598-025-99346-5
Y. R. Fauzan, "Land Cover Classification in Mountainous Regions Using Multi-Scale Fusion and Convolutional Neural Networks : A Case Study on Mount Slamet," vol. 10, no. 2, pp. 286-298, 2025. DOI: 10.15575/join.v10i2.1612
A. Khairan, A. Hendri, N. Aesha Durratul, and H. Abd Mujahid, "An Applied Computer Mathematics Approach to Transliteration : YOLOv8-Based Detection of Harah Jawoe Script," Zero J. Sains, Mat. dan Terap., vol. 9, no. 1, pp. 66-76, 2025. DOI: 10.30829/zero.v9i1.24064
H. Zhou, J. Yang, W. Lou, and L. Sheng, "Improving grain yield prediction through fusion of multi-temporal spectral features and agronomic trait parameters derived from UAV imagery," no. October, pp. 1-17, 2023. doi: 10.3389/fpls.2023.1217448
T. Azetsu and N. Suetake, "Chroma Enhancement in CIELAB Color Space Using a Lookup Table," vol. 5, no. 32, pp. 1-14, 2021. https://doi.org/10.3390/designs5020032
DOI: http://dx.doi.org/10.30829/zero.v9i3.27199
Refbacks
- There are currently no refbacks.

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Publisher : Department of Mathematics Faculty of Science and Technology Universitas Islam Negeri Sumatera Utara Medan | ||||
| ||||
| | | | |
