HCER-ResNet50: A Deep Learning Framework for Accurate Cashew Nut Classification and Grading
DOI:
https://doi.org/10.21015/vtse.v14i3.2476Abstract
Background: Cashew nuts are healthy and are commonly found in food products, confectionery, and foods, whereas cashew apples, shell derivatives are used in beverages and other industrial products. The rising commercial value of cashew has augmented the requirement of the effective and consistent grading mechanisms in order to safeguard the quality and market value. Methodology: In this paper, an automated cashew nut-grading system, Hybrid Compression and Enhancement based ResNet-50 (HCER-ResNet50), is suggested to overcome the weaknesses of manual and traditional methods of using machine-vision to grade cashew nuts. The structure combines the image compression, image enhancement and deep learning classification to produce reliable and high-quality grading across different imaging conditions. Noise removal, normalization and resizing prior to processing follow a pattern of consistent image quality, a hybrid compression scheme based on DWT, DFT, and DCT combined with other enhancement tools such as thresholding and contrast stretching enhances the clarity and separability of features. Based on this, a convolutional neural network with ResNet-50 is used to categorize cashew nuts into specific grades with a minimum human intervention. Results: In all image processing procedures, the classification accuracy of the HCER-ResNet50 was between 0.9598-0.9720, as the experimental data showed. The PNG Dataset achieve the best accuracy (0.9720) and this goes to show that both the transform and the wavelet-based pre-processing methods improve the performance of the grading. Most of the pre-processing methods including thresholding, DWT approximation, DCT and DFT, contrast enhancement, and DWT horizontal methods used approximately 18 to 22 minutes to train and categorize the model with a steady and computationally efficient performance. Furthermore, the Adam optimizer is used to enhance model parameters in the training stage and contributing to enhance the classification outcome. The proposed HCER-ResNet50 algorithm by accurately grading the Cashewnuts improves the revenue of the farmers and reduce post-harvest losses.
References
M. O. Alaka, J. K. Ogunjobi, O. E. Omoruyi, O. O. Oluwasina, and L. Lajide, "Transforming extracted cashew nut shell into biochar and its application as soil amender for jute mallow (Corchorus olitorius L.) cultivation," Sci. Rep., vol. 16, no. 1, p. 5101, Jan. 2026. doi: 10.1038/s41598-026-35559-6. DOI: https://doi.org/10.1038/s41598-026-35559-6
I. Berger, A. Pannure, A. Harris, P. Basu, B. M. Smith, and L. V. Dicks, "Agroecological cashew cultivation increases pollinator abundance, diversity and flower visitation rates, with potential yield benefits," Agric. Ecosyst. Environ., vol. 396, p. 110006, 2026. doi: 10.1016/j.agee.2025.110006. DOI: https://doi.org/10.1016/j.agee.2025.110006
Mendes, Sousa, A. de S. Brito Neto, E. da S. Justino, C. J. L. Herbster, R. L. Oliveira, L. R. Bezerra, and E. S. Pereira, "Effect of natural cashew nut shell liquid on lactation performance of dairy goats," 2026.
J. S. Correia, D. P. Amorim-Neto, E. Lang, M. P. da Silva Láscaris, B. M. D. Pian, L. P. Margalho, et al., "Microbiological quality of plant-based cheese analogues and pathogen behavior in cashew nut-based varieties," Int. J. Food Microbiol., vol. 451, p. 111670, Apr. 2026. doi: 10.1016/j.ijfoodmicro.2026.111670. DOI: https://doi.org/10.1016/j.ijfoodmicro.2026.111670
T. Ayedon, R. O. Awode, and A. Y. J. Akossou, "Trading modes of cashew (Anacardium occidentale L.) by small producers in Central Benin," Int. J. Account. Finance Audit. Manag. Econ., vol. 7, no. 1, pp. 456–480, 2026.
M. T. Mallick, D. O. Murty, R. Pal, S. Mandal, H. N. Saha, and A. Chakrabarti, "High-speed system-on-chip-based platform for real-time crop disease and pest detection using deep learning techniques," Comput. Electr. Eng., vol. 123, p. 110182, 2025. doi: 10.1016/j.compeleceng.2025.110182. DOI: https://doi.org/10.1016/j.compeleceng.2025.110182
M. Farhadi, Y. Abbaspour-Gilandeh, A. Mahmoudi, and J. Mari Maja, "An integrated system of artificial intelligence and signal processing techniques for the sorting and grading of nuts," Appl. Sci., vol. 10, no. 9, p. 3315, 2020. DOI: https://doi.org/10.3390/app10093315
V. N. Pham, Q. H. Do Ba, D. A. Tran Le, Q. M. Nguyen, D. Do Van, and L. Nguyen, "A low-cost deep-learning-based system for grading cashew nuts," Computers, vol. 13, no. 3, p. 71, 2024. DOI: https://doi.org/10.3390/computers13030071
J. Zheng, Z. Lv, D. Li, C. Lu, Z. Shen, H. Chen, et al., "High-efficiency real-time rice leaf disease classification using convolutional neural network accelerator on FPGA for edge computing in precision agriculture," Measurement, vol. 256, p. 118122, 2025. doi: 10.1016/j.measurement.2025.118122. DOI: https://doi.org/10.1016/j.measurement.2025.118122
C. Jin, L. Zhou, Y. Zhao, H. Qi, X. Wu, and C. Zhang, "Classification of rice varieties using hyperspectral imaging with multi-dimensional fusion convolutional neural networks," J. Food Compos. Anal., vol. 148, p. 108389, 2025. doi: 10.1016/j.jfca.2025.108389. DOI: https://doi.org/10.1016/j.jfca.2025.108389
L. Zhang, J. Du, J. Li, C. Li, J. Zhang, and L. Wu, "Early detection of tobacco leaf mildew using multi-attention enhanced 3D residual convolutional neural network with hyperspectral imaging," Infrared Phys. Technol., vol. 154, p. 106375, 2026. doi: 10.1016/j.infrared.2026.106375. DOI: https://doi.org/10.1016/j.infrared.2026.106375
S. J. Wei, D. F. Al Riza, and H. Nugroho, "Comparative study on the performance of deep learning implementation in the edge computing: Case study on the plant leaf disease identification," J. Agric. Food Res., vol. 10, p. 100389, 2022. doi: 10.1016/j.jafr.2022.100389. DOI: https://doi.org/10.1016/j.jafr.2022.100389
D. S. M. Zakir, Z. Alwani Shaffiei, M. Ghazali, and V. S. Briane Paul, "Comparative analysis of VGG-16, ResNet50, and EfficientNet-B1 with optimization techniques for crop disease detection," J. Adv. Res. Des., vol. 143, no. 1, pp. 55–64, 2026.
M. Momeny, A. Jahanbakhshi, K. Jafarnezhad, and Y. D. Zhang, "Accurate classification of cherry fruit using deep CNN based on hybrid pooling approach," Postharvest Biol. Technol., vol. 166, p. 111204, 2020. DOI: https://doi.org/10.1016/j.postharvbio.2020.111204
M. Abbaszadeh, A. Rahimifard, M. Eftekhari, H. G. Zadeh, A. Fayazi, A. Dini, and M. Danaeian, "Deep learning-based classification of the defective pistachios via deep autoencoder neural networks," arXiv preprint arXiv:1906.11878, 2019.
S. Ledbin Vini and P. Rathika, "Advanced state-of-the-art approaches in image processing techniques for plant leaf diseases analysis," Int. J. High Perform. Comput. Appl., 2026. doi: 10.1177/10943420251408184. DOI: https://doi.org/10.1177/10943420251408184
M. Nouman Noor, M. Masab, F. Haneef, M. Hussain, M. Yaqoob, T. Mazhar, et al., "An effective approach for recognition of crop diseases using advanced image processing and YOLOv8," Food Sci. Nutr., vol. 14, no. 2, p. e71504, Feb. 2026. doi: 10.1002/fsn3.71504. DOI: https://doi.org/10.1002/fsn3.71504
G. Işık and F. Keskin, "CA-SAUNet: Coordinate-Attention Enhanced Shape Attentive UNet for medical and agricultural image segmentation," Pattern Anal. Appl., vol. 29, no. 1, p. 6, 2026. doi: 10.1007/s10044-025-01590-y. DOI: https://doi.org/10.1007/s10044-025-01590-y
M. Saha and S. Das, "Optimized plant identification through leaf feature extraction using deep learning and advanced digital image processing techniques," 2026. doi: 10.1108/978-1-83662-996-220251006. DOI: https://doi.org/10.1108/978-1-83662-996-220251006
A. S. Rathor, S. Choudhury, A. Sharma, R. K. Pachauri, G. Shah, N. Fatema, et al., "Deep convolutional network for plant monitoring in precision agriculture," Sustain. Comput., vol. 50, p. 101302, 2026. doi: 10.1016/j.suscom.2026.101302. DOI: https://doi.org/10.1016/j.suscom.2026.101302
A. Usha Ruby, J. George Chellin Chandran, B. N. Chaithanya, T. J. Swasthika Jain, and R. Patil, "Wheat leaf disease classification using modified ResNet50 convolutional neural network model," Multimedia Tools Appl., vol. 83, no. 23, pp. 62875–62893, 2024. DOI: https://doi.org/10.1007/s11042-023-18049-z
M. Hemam, "Evaluation of SE, ECA, and CA modules in ResNet-50 for the classification of grape leaf diseases," Syst. Comput., vol. 2, no. 1, 2026. DOI: https://doi.org/10.64409/sycom.v2.i1.35
M. Winklmair, R. Sekulic, J. Kraus, P. Penava, and R. Buettner, "A deep learning-based approach for classifying the maturity of cashew apples," PLoS One, vol. 20, no. 6, p. e0326103, 2025. DOI: https://doi.org/10.1371/journal.pone.0326103
S. Muthukumaran, "Cashewnuts Datasets," Kaggle, 2026. [Online]. Available: https://www.kaggle.com/datasets/muthumphil11/cashewnuts-datasets.
Downloads
Published
How to Cite
Issue
Section
License
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License (CC-By) that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).
This work is licensed under a Creative Commons Attribution License CC BY