scieee AI-readable full text Open interactive document viewer

Count and location determination of Nile Tilapia (Oreochromis niloticus) using convolutional neural network and CLAHE

Ben, Saminiano

Abstract

Fish counting in aquaculture is an important task in fish population estimation. However, it is very challenging because of the diversity of backgrounds, uncertainty of fish motion, and obstruction between objects. To solve this problem, a model using Convolutional Neural Network (CNN) and Contrast Limited Adaptive Histogram Equalization (CLAHE) is proposed to provide an advanced and efficient counting method for aquaculture. The methodology involved image acquisition, CNN implementation, and evaluation. First, images were manually annotated from video frames. Then, a CNN was trained on the training dataset to detect the tilapia and determine its location. Lastly, the performance of the method was evaluated and compared with other assessment methods. The results show that the study gained 95%, 87%, and 91% for precision, recall, and F1-score, respectively. Further, the mean average precision at 0.5 resulted in 94.21%; thus, the study can detect and locate the fish in a tank and be integrated into a feeding management system. published by the Journal of Biodiversity and Environmental Sciences | JBES

Full text

J. Bio. & Env. Sci. 20 2 3 1 | Saminiano et al. RE RERE RESEARCH SEARCHSEARCH SEARCH PAPER PAPERPAPER PAPER OPEN ACCESS OPEN ACCESSOPEN ACCESS OPEN ACCESS Count and location determination of Nile Tilapia ( Oreochromis niloticus ) using convolutional neural network and CLAHE Ben Saminiano *1 , Arnel Fajardo 2 , Ruji Medina 3 1 Bicol University Polangui, Polangui, Albay, Philippines 2Isabela State University, Cauayan City, Isabela, Philippines 3Technoligcal Institute of The Philippines, Quezon City, Philippines Article published on July 03, 2023 Key words: CNN, CLAHE, Fish counting , Image processing , Deep learning Abstract Fish counting in aquaculture is an important task in fish population estimation. However, it is very challenging because of the diversity of backgrounds, uncertainty of fish motion, and obstruction between objects. To solve this problem, a model using Convolutional Neural Network (CNN) and Contrast Limited Adaptive Histogram Equalization (CLAHE) is proposed to provide an advanced and efficient counting method for aquaculture. The methodology involved image acquisition, CNN implementation, and evaluation. First, images were manually annotated from video frames. Then, a CNN was trained on the training dataset to detect the tilapia and determine its location. Lastly, the performance of the method was evaluated and compared with other assessment methods. The results show that the study gained 95%, 87%, and 91% for precision, recall, and F1score, respectively. Further, the mean average precision at 0.5 resulted in 94.21%; thus, the study can detect and locate the fish in a tank and be integrated into a feeding management system. * Corresponding Author: Ben Saminiano  ben.sami[email protected]du.ph Journal of Biodiversity and Environmental Sciences (JBES) ISSN: 2220-6663 (Print) 2222-3045 (Online) Vol. 23, No. 1, p. 1-6, 2023 http://www.innspub.net J. Bio. & Env. Sci. 20 2 3 2 | Saminiano et al. Introduction Accurate counting of organisms, such as Nile Tilapia (Oreochronis niloticus), is important for various applications, including fisheries management, environmental monitoring, and aquaculture operations (Li et al., 2020). In the Philippines, tilapia is the second most important cultured species, with approximately 281,111 MT of total production in 2021. In 2020, tilapia made up 20% of the aquaculture production in the country, with Central Luzon as the leading producer. Tilapia is an important commodity for food security and economic development (PCAARRD, n.d.). The tilapia industry in the Philippines has made notable growth in production from 2002 to 2022, with an increase of 115.58%. This may be attributed to several programs done by the government, such as improving the strain of tilapia and improving the technology in production and culture to sustain industry growth (Bureau of Fisheries and Aquatic Resources, 2022). However, despite the progress made in tilapia aquaculture, problems and challenges persist. Pollutionrelated problems like diseases and water quality management, sources of quality fingerlings, and market competition are among the key challenges faced by farmers (Bureau of Fisheries and Aquatic Resources, 2022). Addressing these challenges and enhancing the efficiency and sustainability of tilapia production is crucial for the industry's continued growth. In this context, developing an automated methodology for accurate surface tilapia detection using a Convolutional Neural Network (CNN) brings an opportunity to improve tilapia farming practices. Leveraging the capabilities of CNN and Contrast Limited Adaptive Histogram Equalization (CLAHE) aims to develop an approach to determine whether Nile Tilapia are at the surface or submerged. The insights gained from this research can contribute to optimizing feeding strategies, improving management practices, and enhancing tilapia aquaculture's overall productivity. The paper is presented as follows: Section 1 introduces the motivation for the research. Section 2 concentrated on the related works on image processing, CNN, and CLAHE. The methodology of the research is presented in Section 3. Section 4 presents the Tests and Results. Finally, Section 5 discussed the conclusion and future works. Materials and methods This paper used different techniques to count and locate Nile Tilapia. The methodology’s block diagram is shown in Fig. 1. Data Collection The study gathered a large dataset of images containing Nile Tilapia. This was done by capturing images from a DLSR camera with a resolution of 1920x1080. There were 13000 images selected that served as data for training and validation. Image Processing The images were preprocessed to enhance the quality and improve the visibility of the Nile Tilapia. They were converted to lab color, and CLAHE was applied to the Lchannel. The clip limit was set to 2.0 and the grid size to (10, 10). Further, the images were resized to 416x416. The water surface was also detected to determine if the image of tilapia was near the surface. Thresholding using binarization and Otsu was utilized. The edges were detected using Canny and probabilistic Hough line transform to detect straight lines. The y-coordinate of the least disturbed part of the surface identifies the water region. Annotation Manual labeling of tilapia images was done to create the ground truth of the datasets shown in Fig. 2. J. Bio. & Env. Sci. 20 2 3 3 | Saminiano et al. Each annotation was composed of five values: object class, x-center, y-center, width, and height. In total, there were 108937 labeled images for training and validation. Model Training The study utilized a CNN architecture for training a deep learning model on the annotated dataset. There were 78574 images used for training and 30363 for validation. You Only Look Once (YOLOv3) reframes object detection as a single regression problem, straight from image pixels to bounding box coordinates and class probabilities. The YOLO network uses features from the entire image to predict each bounding box. For YOLOv3, a base feature extractor with 53 convolution layers called Darknet-53, see Fig. 3 (Redmon & Farhadi, 2018) Model Optimization Some of the notable parameters of the CNN were altered in this study. The batch value was set to 16, and the network size was 416x416. The number of iterations was 13000, and the filters were set to 18. Model Evaluation The trained model was evaluated in terms of mean average precision, recall, and f1-score to assess the model’s performance in accurately counting and locating Nile tilapia. Deployment The trained CNN model was deployed to automatically count and determine the tilapia's location. It was integrated into a software application that accepts images from video and provides the count and location information as output. Results CNN Model and CLAHE There were a total of 108937 images of tilapia for training and validation. The 78754 images were used for training, and 30363 for validation. A sample of the tilapia image is presented in Fig. 4. Raw image of tilapia. Fig. 5 shows the image after enhancing using CLAHE. The tilapia in the image was accurately detected. The yellow box indicates that the tilapia is near the It is said to be at the surface of the y-coordinate of the fish intersects with the y-coordinate of the water surface. Further, only the yellow boxes were counted using the toolkit in the YOLOv3. J. Bio. & Env. Sci. 20 2 3 4 | Saminiano et al. Fig. 5. Tilapia was detected and counted. Evaluation The performance of the YOLO was evaluated in terms of average precision, recall, and f1-score. Based on the ground truth and predicted labels, the results gained 25484, 1235, and 3798 for True Positive, False Positive, and False Negative, respectively. Based on the values presented, the performance of the model gained values of 0.95 for precision, 0.87 for recall, and 0.91 for f1score. Further, the mean average precision of the CNN with CLAHE at Intersection over Union (IoU) value of 50% gained a result of 0.9421. Fig. 6. Recall value of the CNN with CLAHE model. Fig. 7. F1-score value of the CNN with CLAHE model. Fig. 8. Average Precision value of the CNN with CLAHE model. In addition, after 13000 iterations, Fig.s 6,7 and 8 present the results for the recall, f1-score and average precision. Based on the fig.s below, the results 10000 iteration is the best in terms of performance. Related Works Previous research studies have explored the application of image processing techniques, CNN, and CLAHE in various fish research (Mandal et al., 2018). The study of (Wang et al., 2022) proposed a real-time detection and tracking of abnormal fish behavior based on improved YOLOV5 and SiamRPN++. This approach combined two approaches to detect precisely and track in real-time the abnormal behavior of individual fish. Similarly, (Muksit et al., 2022) developed a model for fish detection in unconstrained real-world marine environments. Their method demonstrated lightweight and accurate fish detection in underwater environments, contributing to fish recognition and monitoring. In terms of image enhancement, (Mishra et al., 2018) presented an underwater image enhancement technique using CLAHE. This method improved the visibility of objects in underwater images, making it suitable for further analysis and processing. (Lumauag & Nava, 2019) presented a simple method of tracking and counting fish using image processing. The methodology has a high level of detection and counting accuracy in recognizing objects in a temperate and open environment. Moreover, (Jose et al., 2022) and (Conrady et al., 2022) employed a CNN-based approach for fish J. Bio. & Env. Sci. 20 2 3 5 | Saminiano et al. species classification. Their model accurately classifies different fish species and contributes to species identification and monitoring. The study by Saminiano (2020) utilized CNN to classify the feeding behavior of fish, whether to feed or not to feed. Additionally, (Yu et al., 2020) proposed a scheme for segmenting fish images and measuring morphological features based on Mask R-CNN. Their approach achieves robustness and high accuracy in segmenting and measuring the fish morphological feature in different backgrounds. These related works demonstrated the diverse applications of image processing, CNN, and CLAHE in fish research. They cover fish detection, tracking, recognition, behavior analysis, species classification, and morphometrics. The findings and methodologies of these studies provide the foundation for the current study, which aims to determine the count and location of Nile Tilapia using the combination of CNN and CLAHE. Conclusion This study presented the effectiveness of the Convolutional Neural Network in counting and locating the Nile tilapia. With a high level of detection and accuracy, the model can be integrated into a system for aquaculture, especially for feeding management. References Bureau of Fisheries and Aquatic Resources. 2022. The Philippine Tilapia Industry Roadmap (2022-2025). Conrady CR, Er Ş, Attwood CG, Roberson LA, de Vos L. 2022. Automated detection and classification of southern African Roman seabream using mask R-CNN. Ecological Informatics 69, 101593. Jose JA, Kumar CS, Sureshkumar S. 2022. Tuna classification using super learner ensemble of region-based CNN-grouped 2D-LBP models. Information Processing in Agriculture 9(1), 68–79. Li D, Miao Z, Peng F, Wang L, Hao Y, Wang Z, Chen T, Li H, Zheng Y. 2020. Automatic counting methods in aquaculture: A review. Lumauag R, Nava M. 2019. Fish tracking and counting using image processing. 2018 IEEE 10th International Conference on Humanoid, Nanotechnology, Information Technology, Communication and Control, Environment and Management, HNICEM 2018, 1-4. https://doi.org /10.1109/HNICEM.2018.8666369 Mandal R, Connolly RM, Schlacher TA, Stantic B. 2018. Assessing fish abundance from underwater video using deep neural networks. In Proceedings of the International Joint Conference on Neural Networks (Vols. 2018-July). https://doi.org/10.1109 /IJCNN.2018.8489482 Mishra A, Gupta M, Sharma P. 2018. Enhancement of Underwater Images using Improved CLAHE. 2018 International Conference on Advanced Computation and Telecommunication, ICACAT 5, 1-6. https://doi.org/10.1109/ICACAT.2018.8933665 Muksit AAl, Hasan F, Hasan Bhuiyan Emon MF, Haque MR, Anwary AR, Shatabda S. 2022. YOLO-Fish: A robust fish detection model to detect fish in realistic underwater environment. Ecological Informatics 72, 101847. https://doi.org/10.1016 /J.ECOINF.2022.101847 PCAARRD. 2023. (n.d.). Tilapia – Industry Strategic Science and Technology Plans (ISPs) Platform. Retrieved June 24, 2023, from https://ispweb. pcaarrd. dost.gov.ph/tilapia-2/ Redmon J, Farhadi A. 2018. YOLOv3: An incremental improvement. ArXiv. Saminiano B. 2020. Feeding Behavior Classification of Nile Tilapia (Oreochromis niloticus) using Convolutional Neural Network. International Journal of Advanced Trends in Computer Science and Engineering 9(1.1 S I), 259–263. https://doi.org /10.30534/ijatcse/2020/4691.12020 J. Bio. & Env. Sci. 20 2 3 6 | Saminiano et al. Wang H, Zhang S, Zhao S, Wang Q, Li D, Zhao R. 2022. Real-time detection and tracking of fish abnormal behavior based on improved YOLOV5 and SiamRPN++. Computers and Electronics in Agriculture 192, 106512. https://doi.org/10.1016 /J.COMPAG.2021.106512 Yu C, Fan X, Hu Z, Xia X, Zhao Y, Li R, Bai Y. 2020. Segmentation and measurement scheme for fish morphological features based on Mask R-CNN. Information Processing in Agriculture 7(4), 523–534. https://doi.org/10.1016/J.INPA.2020.01.002