Automated Grading of Boiled Shrimp by Color Level Using Image Processing Techniques and Mask R-CNN with Feature Pyramid Networks
Source abstract
Abstract
Color grading of boiled shrimp is a critical factor influencing market price, yet the process is usually conducted visually by buyers such as middlemen and processing plants. This subjective practice raises concerns about accuracy, impartiality, and fairness, often resulting in disputes with farmers. To address this issue, this study proposes a standardized and automated grading approach based on image processing and artificial intelligence. The method requires only a photograph of boiled shrimp placed alongside a color grading ruler. The grading process involves two stages: segmentation of shrimp and ruler regions in the image, followed by color comparison. For segmentation, deep learning models based on Mask R-CNN with a Feature Pyramid Network backbone were employed. Four model configurations were tested, using ResNet and ResNeXt backbones with and without a Boundary Loss function. Results show that the ResNet + Boundary Loss model achieved the highest segmentation performance, with IoU scores of 91.2% for shrimp and 87.8% for the color ruler. In the grading step, color similarity was evaluated in the CIELAB color space by computing Euclidean distances in the L (lightness) and a (red–green) channels, which align closely with human perception of shrimp coloration. The system achieved grading accuracy comparable to human experts, with a mean absolute error of 1.2, demonstrating its potential to provide consistent, objective, and transparent shrimp quality assessment.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Water Quality Monitoring Technologies · Spectroscopy and Chemometric Analyses · Image Enhancement Techniques
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Department of Fishery Management, Faculty of Fisheries, Kasetsart University, Bangkok 10900, Thailand
Department of Fishery Products, Faculty of Fisheries, Kasetsart University, Bangkok 10900, Thailand
Funding
Kasetsart University Research and Development Institute, KURDI
References (19)
Show source-provided references
1. Vakili, S., and Ardakani, S.A.Y. (2025, March 10). Antioxidant Effect of Orange Peel Extract on Chemical Quality, Sensory Properties, and Black Spots of Farmed White Shrimp. Available online: https://api.semanticscholar.org/CorpusID:56379801.
2. Lin, Y.-J., Chang, J.-J., Huang, H.-T., Lee, C.-P., Hu, Y.-F., Wu, M.-L., Huang, C.-Y., and Nan, F.-H. (2023). Improving Red-Color Performance, Immune Response and Resistance to Vibrio Parahaemolyticus on White Shrimp Penaeus vannamei by an Engineered Astaxanthin Yeast. Sci. Rep., 13.10.1038/s41598-023-29225-4 ↗
3. Global Seafood Alliance (2025, March 06). Mechanisms of Shrimp Coloration—Responsible Seafood Advocate. Available online: https://www.globalseafood.org/advocate/mechanisms-of-shrimp-coloration/.
4. Koedprang, W. (2012). Size Grading of Harvested Whiteleg Shrimp (Liptopenaeus vannamei) in Thailand, Fish Consulting Group. Available online: https://fishconsult.org/?p=6794.
5. Effect of Background Colour on the Distribution of Astaxanthin in Black Tiger Prawn (Penaeus monodon): Effective Method for Improvement of Cooked Colour10.1016/j.aquaculture.2009.08.006 ↗
6. Assessment of Human Color Discrimination Based on Illuminant Color, Ambient Illumination and Screen Background Color for Visual Display Terminal Workers10.2486/indhealth.MS1009 ↗
7. Investigation of Color Protection of Laminated Glass by UV-Blocking Interlayers for Conservation Application10.1007/s40940-023-00246-9 ↗
8. Azetsu, T., and Suetake, N. (2021). Chroma Enhancement in CIELAB Color Space Using a Lookup Table. Designs, 5.10.3390/designs5020032 ↗
9. Evaluation of a Simple Image-Based Tool to Quantify Facial Erythema in Rosacea during Treatment10.1111/srt.12878 ↗
10. Shen, L., Su, J., Huang, R., Quan, W., Song, Y., Fang, Y., and Su, B. (2022). Fusing Attention Mechanism with Mask R-CNN for Instance Segmentation of Grape Cluster in the Field. Front. Plant Sci., 13.10.3389/fpls.2022.934450 ↗
11. He, K., Gkioxari, G., Dollár, P., and Girshick, R. (2017, January 22–29). Mask R-CNN. Proceedings of the 2017 IEEE International Conference on Computer Vision (ICCV), Venice, Italy.10.1109/ICCV.2017.322 ↗
12. Lin, T.Y., Dollár, P., Girshick, R., He, K., Hariharan, B., and Belongie, S. (2017, January 21–26). Feature Pyramid Networks for Object Detection. Proceedings of the 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, HI, USA.10.1109/CVPR.2017.106 ↗
13. Xu, F., Tu, W., Feng, F., Gunawardhana, M., Yang, J., Gu, Y., and Zhao, J. (2024, January 6–10). Dynamic Position Transformation and Boundary Refinement Network for Left Atrial Segmentation. Proceedings of the International Conference on Medical Image Computing and Computer-Assisted Intervention, Marrakesh, Morocco. Lecture Notes in Computer Science.10.1007/978-3-031-72111-3_20 ↗
14. Automation in the Fish Industry10.1093/af/vfac020 ↗
15. Quality Non-Destructive Diagnosis of Red Shrimp Based on Image Processing10.1016/j.jfoodeng.2023.111648 ↗
16. Suárez, P.L., Sappa, A., Carpio, D., Velesaca, H., Burgos, F., and Urdiales, P. (2022). Deep Learning Based Shrimp Classification. International Symposium on Visual Computing, Springer. Lecture Notes in Computer Science.10.1007/978-3-031-20713-6_3 ↗
17. Classification of Boiled Shrimp’s Shape Using Image Analysis and Artificial Neural Network Model10.1111/jfpe.12081 ↗
18. Xie, S., Girshick, R., Dollár, P., Tu, Z., and He, K. (2017, January 21–26). Aggregated Residual Transformations for Deep Neural Networks. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, HI, USA.10.1109/CVPR.2017.634 ↗
19. He, K., Zhang, X., Ren, S., and Sun, J. (2016, January 27–30). Deep Residual Learning for Image Recognition. Proceedings of the 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA.10.1109/CVPR.2016.90 ↗