Image enhancement for detection of underwater moulted crabs in greenhouse soft-shell crab farming using deep learning
• Fisheye flattening surpasses stretch flattening in wide-angle distortion rectification • 2D-image flat field outperforms non-local mean filter for reflection removal • Data augmentation improves rectifications of wide-angle distortion and reflection • Counting algorithm is proposed to detect moulted crabs in soft-shell crab farming • Optimal methods successfully detect 92.0% of underwater moulted crabs in greenhouses In soft-shell crab farming, collecting the moulted crabs within a narrow window of one hour is crucial to meet the quality of high-grade paper shell crab. This paper incorporates IoT-based computer vision technology and deep learning techniques in greenhouse soft-shell crab farming to detect moulted crabs. The challenges arise in accurately detecting underwater crabs due to wide-angle distortion and reflections in images captured by cameras installed on rails within the greenhouse. Image enhancement methods are proposed to address these challenges and improve the performance of crab detection using the YOLOv7 deep-learning algorithm. Specifically, the performance of two methods for rectifying wide-angle distortion and two methods for removing reflections are compared, respectively. Data augmentation techniques are also applied to overcome the limitation of annotated underwater crab targets for deep-learning training. Results show that the fisheye flattening method outperforms the stretch flattening method for rectifying wide-angle distortion, while 2D-image flat field correction yields better results than the non-local mean filter for reducing reflections. Furthermore, data augmentation significantly enhances the performance of crab detection. The application of the best image enhancement methods and data augmentation techniques yields a successful detection rate of 92% for moulted crabs in greenhouse soft-shell crab farming.
Authors
- Syalfinaf Manaf (ORCID: https://orcid.org/0000-0002-6292-0625)
- Firdaus Abdullah
- Heng Yen Khong (ORCID: https://orcid.org/0000-0001-9539-0248)
- Yueh-Tiam Yong (ORCID: https://orcid.org/0000-0002-3035-3312)
- Siow Hoo Leong (ORCID: https://orcid.org/0000-0002-0325-0115)
- Beng Yong Lee (ORCID: https://orcid.org/0000-0002-3569-5821)
- Xiaomin Zhao (ORCID: https://orcid.org/0000-0003-1503-2606)
- Mohammad Affaiq bin Aini (ORCID: https://orcid.org/0009-0008-4421-1092)
Institutions
- Universiti Malaysia Sarawak (MY)
- Zhejiang Industry Polytechnic College (CN)
- Universiti Teknologi MARA (MY)
Publication Details
- Journal
- Smart Agricultural Technology
- Published
- 2025-07-20
- DOI
- https://doi.org/10.1016/j.atech.2025.101223
- Primary Topic
- Smart Agriculture and AI
- Type
- article
- Field-Weighted Citation Impact
- 0.00