Intelligent Mobile-Based Detection of Shrimp Weight Anomalies Using Random Forest Regression
Main Article Content
Abstract
Shrimp is one of the most widely consumed seafood items globally, yet consumers frequently encounter fraud, such as weight manipulation through adulteration injections, which poses significant health and economic risks. This research presents a practical system for detecting anomalies in shrimp weight. A cross-platform mobile application has been developed to classify shrimp as either normal or abnormal in weight. The application integrates a shrimp segmentation model, developed using Mask R-CNN, and a weight prediction model based on the random forest algorithm, utilizing features such as area, perimeter, length, and width of the shrimp image. The weight prediction model achieves a value of 0.821 and a Mean Absolute Error (MAE) of 1.786 grams, which is less than 10% of the average shrimp weight in the dataset. Final classification is performed by comparing the predicted weight with the actual weight, measured using a 7-segment digit recognition module. The developed mobile application represents a novel integration of machine learning with mobile technology to address both non-adulterated and adulterated shrimp scenarios. It offers a reliable, accessible tool for consumers to detect weight-based adulteration, thereby helping to mitigate health risks and economic losses in the seafood supply chain.
Article Details

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
เนื้อหาข้อมูล
References
H. Zhang and F. Gui, “The application and research of new digital technology in marine aquaculture,” J. Mar. Sci. Eng., vol. 11, no. 2, p. 401, Feb. 2023.
S. A. Jasmin, P. Ramesh, and M. Tanveer, “An intelligent framework for prediction and forecasting of dissolved oxygen level and biofloc amount in a shrimp culture system using machine learning techniques,” Expert Syst. Appl., vol. 199, p. 117160, Aug. 2022.
A. Steinkruger et al., “Seafood traceability program design: Examination of the United States’ Seafood Import Monitoring Program,” Ambio, vol. 54, no. 2, pp. 168-174, Feb. 2025, https://doi.org/10.1007/s13280-024-02075-8
L. C. Navarro, A. Azevedo, A. Matos, A. Rocha, and R. Ozório, “Predicting weight dispersion in seabass aquaculture using discrete event system simulation and machine learning modeling,” Aquac. Rep., vol. 38, p. 102315, Oct. 2024.
L. Chen, X. Yang, C. Sun, Y. Wang, D. Xu, and C. Zhou, “Feed intake prediction model for group fish using the MEA-BP neural network in intensive aquaculture,” Inf. Process. Agric., vol. 7, no. 2, pp. 261-271, Jun. 2020.
N. Chirdchoo, S. Mukviboonchai, and W. Cheunta, “A deep learning model for estimating body weight of live Pacific white shrimp in a clay pond shrimp aquaculture,” Intell. Syst. Appl., vol. 24, p. 200434, Dec. 2024.
X. Chen, I. N’ Doye, F. Aljehani, and T. M. Laleg-Kirati, “Fish weight prediction using empirical and data-driven models in aquaculture systems,” in Proc. 2024 IEEE Conf. Control Technol. Appl. (CCTA), 2024, pp. 369-374.
Y. Jin, L. Meng, and T. Shi, “An effective feature learning approach using genetic programming for crab age classification,” Fish. Res., vol. 281, p. 107197, Jan. 2025.
J. H. Qu, J. H. Cheng, D. W. Sun, H. Pu, Q. J. Wang, and J. Ma, “Discrimination of shelled shrimp (Metapenaeus ensis) among fresh, frozen-thawed and cold-stored by hyperspectral imaging technique,” LWT-Food Sci. Technol., vol. 62, no. 1, pp. 202-209, Jun. 2015.
Z. Liu, M. Huang, Q. Zhu, J. Qin, and M. S. Kim, “Nondestructive freshness evaluation of intact prawns (Fenneropenaeus Chinensis) using line-scan spatially offset Raman spectroscopy,” Food Control, vol. 126, p. 108054, Aug. 2021.
T. Valeeprakhon, K. Orkphol, and P. Chaihuadjaroen, “Deep convolutional neural networks based on VGG-16 transfer learning for abnormalities peeled shrimp classification,” Int. Sci. J. Eng. Technol. (ISJET), vol. 6, no. 2, pp. 13-23, Dec. 2022.
D. A. Willette, K. Andrade, B. Fitzpatrick, and K. Wilson, “Outreach & DNA-based monitoring facilitate 3-fold reduction in seafood mislabeling in Los Angeles over 10 years,” Food Control, vol. 168, p. 110913, Feb. 2024.
L. Peruzza et al., “Preventing illegal seafood trade using machine-learning assisted microbiome analysis,” BMC Biol., vol. 22, no. 1, p. 202, Sep. 2024, https://doi.org/10.1186/s12915-024-02005-w
E. Basdeki and T. N. Tsironi, “Novel packaging technologies for shrimp and shrimp products,” in Postharvest Technologies and Quality Control of Shrimp, Amsterdam, NL: Elsevier, 2025, pp. 295-321.
S. de la Puente and V. Christensen, “Linking catch reconstructions with downstream supply chain nodes can help strengthen management actions in favour of just, sustainable and resilient futures,” Mar. Policy, vol. 170, p. 106387, Sep. 2024.
L. Lorusso et al., “Mismanagement and poor transparency in the European processed seafood supply revealed by DNA metabarcoding,” Food Res. Int., vol. 194, p. 114901, Oct. 2024.
W. Woraprayote, C. Kongsawat, and W. Visessanguan, “Safety and regulation of different food additives for shrimp and shrimp products: Comprehensive analysis in Thailand,” in Postharvest Technologies and Quality Control of Shrimp, Amsterdam, NL: Elsevier, 2025, ch. 12, pp. 323-346.
M. Fox, M. Mitchell, M. Dean, C. Elliott, and K. Campbell, “The seafood supply chain from a fraudulent perspective,” Food Secur., vol. 10, no. 4, pp. 939-963, Aug. 2018, https://doi.org/10.1007/s12571-018-0826-z
M. C. Rivers, A. B. Campbell, C. H. Lee, P. Kapoor, and R. S. Hellberg, “Short-weighting, species authentication, and labeling compliance of prepackaged frozen shrimp sold in grocery stores in Southern California,” Food Control, vol. 155, p. 110101, Jan. 2024.
P. Ganapathiraju, T. J. Pitcher, and G. Mantha, “Estimates of illegal and unreported seafood imports to Japan,” Mar. Policy, vol. 108, p. 103439, Oct. 2019.
I. O. Owolabi and J. A. Olayinka, “Incidence of fraud and adulterations in ASEAN food/feed exports: A 20-year analysis of RASFF’s notifications,” PLoS One, vol. 16, no. 11, p. e0259298, Nov. 2021.
M. O. Balaban, S. Yeralan, and Y. Bergmann, “Determination of count and uniformity ratio of shrimp by machine vision,” J. Aquat. Food Prod. Technol., vol. 3, no. 3, pp. 43-58, May. 1995.
D. A. Luzuriaga, M. O. Balaban, and S. Yeralan, “Analysis of visual quality attributes of white shrimp by machine vision,” J. Food Sci., vol. 62, no. 1, pp. 113-118, Jan. 1997, https://doi.org/10.1111/j.13652621.1997.tb04379.x
P. Pan, J. Li, G. Lv, H. Yang, S. Zhu, and J. Lou, “Prediction of shelled shrimp weight by machine vision,” J. Zhejiang Univ. Sci. B, vol. 10, pp. 589-594, Aug. 2009.
H. Mubarak, Z. Zainuddin, and M. Niswar, “Pixel-based weight estimation of Vannamei shrimp using digital image processing: A solution for precise feeding management in aquaculture,” in Proc. 2023 Int. Seminar Intell. Technol. Appl. (ISITIA), 2023, pp. 115-118.
M. Spreitzenbarth, T. Schreck, F. Echtler, D. Arp, and J. Hoffmann, “Mobile-sandbox: Combining static and dynamic analysis with machine-learning techniques,” Int. J. Inf. Secur., vol. 14, no. 2, pp. 141-153, Apr. 2015, https://doi.org/10.1007/s10207-014-0250-0
M. Lathkar, “Getting started with FastAPI,” in High-Performance Web Apps with FastAPI, Berkeley, CA: Apress, 2023, pp. 29-64. [Online]. Available: https://doi.org/10.1007/978-1-4842-9178-8_2
Z. Chen et al., “An empirical study on deployment faults of deep learning-based mobile applications,” in Proc. 2021 IEEE/ACM 43rd Int. Conf. Softw. Eng. (ICSE), 2021, pp. 674-685.
S. Patil et al., “Enhancing optical character recognition on images with mixed text using semantic segmentation,” J. Sens. Actuator Netw., vol. 11, no. 4, p. 63, Oct. 2022.
A. Spreafico, F. Chiabrando, L. Teppati Losè, and F. G. Tonolo, “The iPad Pro built-in LiDAR sensor: 3D rapid mapping tests and quality assessment,” Int. Arch. Photogramm. Remote Sens. Spat. Inf. Sci., vol. 43, pp. 63-69, Jun. 2021.
K. Chen et al., “MMDetection: Open MMLab detection toolbox and benchmark,” arXiv, 2019. [Online]. Available: https://arxiv.org/abs/1906.07155 [Accessed: Dec. 15, 2024].
X. Yu, J. Wang, S. Wen, J. Yang, and F. Zhang, “A deep learning based feature extraction method on hyperspectral images for nondestructive prediction of TVB-N content in Pacific white shrimp (Litopenaeus Vannamei),” Biosyst. Eng., vol. 178, pp. 244-255, Feb. 2019.
M. Sun, X. Yang, and Y. Xie, “Deep learning in aquaculture: A review,” J. Comput., vol. 31, no. 1, pp. 294-319, Jan. 2020, https://doi.org/10.3966/199115992020023101028
W. K. Mutlag, S. K. Ali, Z. M. Aydam, and B. H. Taher, “Feature extraction methods: A review,” J. Phys. Conf. Ser., vol. 1591, no. 1, p. 012028, Jul. 2020, https://doi.org/10.1088/17426596/1591/1/012028
Z. Liu, X. Jia, and X. Xu, “Study of shrimp recognition methods using smart networks,” Comput. Electron. Agric., vol. 165, p. 104926, 2019.
A. Saleh, M. M. Hasan, H. W. Raadsma, M. S. Khatkar, D. R. Jerry, and M. R. Azghadi, “Prawn morphometrics and weight estimation from images using deep learning for landmark localization,” Aquac. Eng., vol. 106, p. 102391, Oct. 2024.
I. D. Mienye and Y. Sun, “A survey of ensemble learning: Concepts, algorithms, applications, and prospects,” IEEE Access, vol. 10, pp. 99129-99149, Oct. 2022.
D. E. P. Moghaddam, A. Muguli, M. Razavi, and B. Aazhang, “A graph-based cardiac arrhythmia classification methodology using one-lead ECG recordings,” Intell. Syst. Appl., vol. 22, p. 200385, Jun. 2024.
T. Khater, H. Tawfik, and B. Singh, “Explainable Artificial Intelligence for investigating the effect of lifestyle factors on obesity,” Intell. Syst. Appl., vol. 23, p. 200427, Sep. 2024.
X. Yang, Y. Wang, W. Yan, and J. Li, “Variance estimation based on blocked 3×2 cross-validation in high-dimensional linear regression,” J. Appl. Stat., vol. 48, no. 11, pp. 1934-1947, Aug. 2021, https://doi.org/10.1080/02664763.2020.1780571
Y. Fujikoshi and T. Sakurai, “High-dimensional consistencies of KOO methods for the selection of variables in multivariate linear regression models with covariance structures,” Mathematics, vol. 11, no. 3, p. 671, Jan. 2023.
J. H. Kim, “Multicollinearity and misleading statistical results,” Korean J. Anesthesiol., vol. 72, no. 6, pp. 558-569, Jul. 2019.