Precision Aquaculture: An Integrated Computer Vision and IoT Approach for Optimized Tilapia Feeding

Rania Hossam,Ahmed Heakl,Walid Gomaa
2024-09-25
Abstract:Traditional fish farming practices often lead to inefficient feeding, resulting in environmental issues and reduced productivity. We developed an innovative system combining computer vision and IoT technologies for precise Tilapia feeding. Our solution uses real-time IoT sensors to monitor water quality parameters and computer vision algorithms to analyze fish size and count, determining optimal feed amounts. A mobile app enables remote monitoring and control. We utilized YOLOv8 for keypoint detection to measure Tilapia weight from length, achieving \textbf{94\%} precision on 3,500 annotated images. Pixel-based measurements were converted to centimeters using depth estimation for accurate feeding calculations. Our method, with data collection mirroring inference conditions, significantly improved results. Preliminary estimates suggest this approach could increase production up to 58 times compared to traditional farms. Our models, code, and dataset are open-source~\footnote{The code, dataset, and models are available upon reasonable request.
Computer Vision and Pattern Recognition,Artificial Intelligence,Machine Learning,Robotics,Systems and Control
What problem does this paper attempt to address?
### Problems the Paper Aims to Solve This paper aims to address the issue of inaccurate feed dispensing in traditional fish farming. Specifically, traditional fish farming methods often lead to feed wastage, which not only increases production costs but also causes environmental problems such as water pollution, affecting the survival and reproduction rates of fish. To solve these issues, the authors have developed a precise feeding system that combines computer vision and Internet of Things (IoT) technologies to optimize the feeding of Tilapia. ### Specific Objectives 1. **Improve Feeding Accuracy**: Determine the optimal feed amount by monitoring water quality parameters in real-time and using computer vision algorithms to analyze the size and number of fish. 2. **Reduce Environmental Pollution**: Avoid overfeeding and reduce feed wastage, thereby mitigating water pollution. 3. **Increase Production Efficiency**: Enhance fish growth rates and yield through precise feed management, thereby increasing the economic benefits of farming. 4. **Enable Remote Monitoring and Control**: Develop a mobile application that allows farmers to remotely monitor water quality and feeding conditions and make real-time adjustments. ### Solutions 1. **Data Collection and Annotation**: Collected 3,500 images of Tilapia and annotated key points (such as mouth, caudal peduncle, abdomen, and back) for model training. 2. **Model Training**: Used the YOLOv8 model for key point detection and fish counting, achieving 94% accuracy in key point detection and 96% accuracy in fish counting. 3. **Length and Weight Estimation**: Converted pixel coordinates to actual dimensions through depth estimation to calculate fish length and used length-weight relationship formulas to estimate fish weight. 4. **IoT System**: Integrated various sensors (such as pH, dissolved oxygen, and temperature sensors) and cameras to monitor water quality parameters and fish status in real-time. Data is transmitted to the backend server via the MQTT protocol. 5. **Mobile Application**: Developed a mobile application that allows users to view real-time data, analyze charts and logs, and perform remote monitoring and control. ### Expected Outcomes Preliminary estimates indicate that this method can increase production efficiency by 58 times, significantly reduce feed wastage and water pollution, and improve the sustainability and economic benefits of fish farming.