Next Article in Journal
Evaluation of Geoenvironment Carrying Capacity in Mineral Resource-Based Cities from the Perspective of Sustainable Development
Previous Article in Journal
Automatic Power Direction Control of Dual Active Bridge/Triple Active Bridge Converter in Emergency Energy Supply for Sustainability
Previous Article in Special Issue
Research on Nondestructive Testing Technology for Drilling Risers Based on Magnetic Memory and Deep Learning
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Deep CNN-Based Salinity and Freshwater Fish Identification and Classification Using Deep Learning and Machine Learning

by
Wahidur Rahman
1,2,
Mohammad Motiur Rahman
1,
Md Ariful Islam Mozumder
3,
Rashadul Islam Sumon
3,
Samia Allaoua Chelloug
4,*,
Rana Othman Alnashwan
4,* and
Mohammed Saleh Ali Muthanna
5,6
1
Department of Computer Science and Engineering, Mawlana Bhashani Science and Technology University, Tangail 1902, Bangladesh
2
Department of Computer Science and Engineering, Uttara University, Dhaka 1230, Bangladesh
3
Institute of Digital Anti-Aging Healthcare, College of AI Convergence, u-AHRC, Inje University, Gimhae 50834, Republic of Korea
4
Department of Information Technology, College of Computer and Information Sciences, Princess Nourah bint Abdulrahman University, P.O. Box 84428, Riyadh 11671, Saudi Arabia
5
Department of International Business Management, Tashkent State University of Economics, Tashkent 100066, Uzbekistan
6
Institute of Computer Technologies and Information Security, Southern Federal University, 347922 Taganrog, Russia
*
Authors to whom correspondence should be addressed.
Sustainability 2024, 16(18), 7933; https://doi.org/10.3390/su16187933
Submission received: 25 June 2024 / Revised: 12 August 2024 / Accepted: 1 September 2024 / Published: 11 September 2024
(This article belongs to the Special Issue Sustainable Engineering Applications of Artificial Intelligence)

Abstract

:
Concerning the oversight and safeguarding of aquatic environments, it is necessary to ascertain the quantity of fish, their size, and their distribution. Many deep learning (DL), artificial intelligence (AI), and machine learning (ML) techniques have been developed to oversee and safeguard the fish species. Still, all the previous work had some limitations, such as a limited dataset, only binary class categorization, only employing one technique (ML/DL), etc. Therefore, in the proposed work, the authors develop an architecture that will eliminate all the limitations. Both DL and ML techniques were used in the suggested framework to identify and categorize multiple classes of the salinity and freshwater fish species. Two different datasets of fish images with thirteen fish species were employed in the current research. Seven CNN architectures were implemented to find out the important features of the fish images. Then, seven ML classifiers were utilized in the suggested work to identify the binary class (freshwater and salinity) of fish species. Following that, the multiclass classification of thirteen fish species was evaluated through the ML algorithms, where the present model diagnosed the freshwater or salinity fish in the specific fish species. To achieve the primary goals of the proposed study, several assessments of the experimental data are provided. The results of the investigation indicated that DenseNet121, EfficientNetB0, ResNet50, VGG16, and VGG19 architectures of the CNN with SVC ML technique achieved 100% accuracy, F1-score, precision, and recall for binary classification (freshwater/salinity) of fish images. Additionally, the ResNet50 architecture of the CNN with SVC ML technique achieved 98.06% and 100% accuracy for multiclass classification (freshwater and salinity fish species) of fish images. However, the proposed pipeline can be very effective in sustainable fish management in fish identification and classification.

1. Introduction

Bangladesh (BD) is an east–west–north–south riverine nation with a complex waterway network. Fish and fisheries are essential to Bangladeshi culture, economy, employment, and nutrition. Apart from rice, Bangladesh relies on fish. According to the Food and Agriculture Research Service (FRSS), the nation produced 961,458 metric tons of freshwater fish in 2014. The average daily fish consumption in the country is 52 g, although the recommended weekly amount is 68 g, according to the Department of Food (2014) [1,2]. BD residents receive 60% of their protein from fish. Aquaculture production increased from 712,640 to 2,060,408 metric tons between 2000 and 2016, surpassing wild capture production of 1.023 million tons. Fishing accounts for 4.37% of the country’s GDP and 23.37% of the agricultural sector. Fish exports make for 2% of the country’s foreign trade gains, at BDT 43,126.1 million, according to the Department of Fisheries (2014). Bangladesh has 1.2 million permanent fishermen. Seasonal fishing provides 10 million fishermen with cash or food for their families. The 2014–2015 Bangladeshi fiscal year saw 3,684,245 metric tons of fish production. This total included 1,023,991 metric tons (27.79%) from open inland waters, 2,060,408 from confined inland waters, and 599,846 from sea fishing. Fish live in freshwater, estuarine, or saline environments. Bangladesh is predicted to have 795 native fish and prawn species [1,2,3,4]. Besides, in the southernmost region of the Bay of Bengal, Bangladesh is blessed with abundant aquatic and coastal assets. As a result, it is ranked fifth in aquaculture and third in freshwater fish capture, according to the Food and Agriculture Organization of the United Nations. With an area of 4.73 million hectares (ha), the rivers and lakes of the southern nation of Bangladesh are home to about 2265 different species of fish from freshwater [5,6].
Punti, Anju, Artamim, Botika, Arwari, Bele, Baim, Kholshe, Boumach, Pabda, Chapila, Bilchuri, Meni, Darkina, and Murari are significant species of freshwater fish found in Bangladesh. In contrast, saltwater fish are native to the ocean, where they are appropriately named due to the presence of salt in the water surrounding them. Saltwater fish can live in a wide range of environments, including the icy waters of the Arctic, the warm waters of tropical seas, reefs of coral, saltwater ponds, mangrove forests, and the depths of the ocean [7,8]. The exact number of saltwater species of fish within Bangladesh is not accurately determined; however, it is widely reported in some published sources that there are approximately 475 saltwater fish species in the country. Recent research conducted by the Department of Fisheries (DoF) in Bangladesh included a listing of 343 different species of marine fish. The notable saltwater fish found in Bangladesh are Goldsilk seabream, Bengal yellowfin seabream, Spotted green goby, Banded eagle ray, Chacunda gizzard shad, etc. [5,9,10]. Nevertheless, the abundance of fish is diminishing due to the rising demand and consumption. By 2030, the world’s fish consumption is projected to reach 21.5 kg, up from 20.5 kg in 2018. In addition, the requirement for aquaculture is expanding in parallel with the expansion of the worldwide population, and it is anticipated that the total supply produced all over the world will increase by 62% by the year 2030 [11,12,13,14]. Also, the number of species of freshwater fish that are either already endangered or are in danger of becoming extinct in the coming decades is estimated to be twenty percent worldwide, and it is quite likely that this number will continue to rise in the years to come. In contrast, the eradication of certain fish species causes future generations to be ignorant of these species [6,15,16,17]. Thus, this is our key motivation for working on freshwater species and fish identification with cutting-edge technologies that allow people to quickly identify and learn about their types, species, habitats, and ecology.
On the other hand, machine learning (ML) and deep learning (DL) play a significant role in the field of automated identification and classification. DL and ML operate by training computers to identify patterns from enormous amounts of data. In fish identification, for instance, these systems examine several images of fish in order to learn to identify the distinctive features of each species. Once the training is completed, the system can immediately recognize a fish and classify it into the proper species only by scanning a fresh image. This is quite impactful; unlike hand fish identification, it saves time and effort. For researchers, environmentalists, and even those who like fishing, buying, and selling, accurate and fast identification aids in understanding and safeguarding marine species. Thus, this paper presents an intelligent technique to automatically classify fish into their respective categories of freshwater or saltwater, as well as identify the specific species of the fish. The contributions of this paper are as follows:
  • The research focused primarily on collecting datasets on Bangladeshi freshwater and saltwater fish.
  • The study outlines a multilevel classification pipeline using cutting-edge technologies, such as ML and DL. The first level of classification focuses on binary classification, determining whether a fish belongs to freshwater or salinity waters. After analyzing the fish categories, the system performs a multiclass classification in order to track the fish species.
  • We also conducted numerous experiments on the trained models and enumerated the results accordingly.
There are five interconnected sections in this manuscript. Section 2 presents the background studies of related works. Section 3 provides the working procedure for the proposed method. Section 4 illustrates the experimental results, along with a comprehensive comparison. Finally, Section 5 presents the conclusion of this manuscript, along with existing drawbacks and future scopes.

2. Related Works

There have been numerous attempts to reliably recognize or identify fish species using deep learning (DL), artificial intelligence (AI), and machine learning (ML) techniques. The authors of [18] suggested an ML method that uses images to identify injuries and lice in real time in salmon farms. The researchers presented a 15-layer convolutional neural network (CNN) with 5 layers of dense structure for the identification of fish lice and wounds. In comparison to the well-established VGG-19 and VGG-16 models, which achieved accuracies of 91.2% and 92.8%, respectively, the suggested approach achieved a test accuracy of 96.7%. A survey of a cross-section of the scholarly literature on DL and ML’s practical uses in the fisheries and aquaculture sectors is presented in [19]. This encompasses a comprehensive examination of research and practical implementations in the following domains: (1) the aquaculture sector, including surveillance and oversight of the production atmosphere, the enhancement of supply use, and prevention of disease; (2) managing fisheries, where resource evaluation, fishing, capture surveillance, and supervision are integral components; (3) environmental monitoring, which pertains to hydrology, primary cultivation, and aquatic contamination, and (4) digitization of processing for fish, along with quality confirmation frameworks. Using DL techniques, the authors of [20] presented an automated computer vision system that is considered to be state-of-the-art for the categorization of fish species. Utilizing the characteristics generated by the suggested method, a support vector machine (SVM) was trained to classify test data. The outcome had an accuracy rate for classification of 94.3% for different kinds of fish. Automatic identification of adolescent American eels utilizing sonar data was achieved through the use of a DL method that employed a CNN in [21]. The authors of [22] set three standards for aquatic species identification techniques that are based on ecological study requirements: fish detection, functional characteristic forecasting, and fish categorization. These standards will help progress these systems through the use of state-of-the-art algorithms for DL. A classification accuracy of 61.38% and 54.80% was achieved by fish identification forecasting and functional characteristic identification models.
Using acoustic and ecological information, the authors of [23] demonstrated an ML algorithm for pelagic species school categorization. An accuracy of about 95% in identifying the fish species was attained using the suggested methods. The authors of [24] developed a new CNN model that uses DL techniques to categorize eight distinct types of fish. The researchers evaluated the suggested model (IsVoNet8) compared to ResNet50, VGG16, and ResNet101. Out of all the models that were compared, the one that came out on top was the IsVoNet8 approach, with a success accuracy of 98.62%. The objective of the study in [25] was to examine the immediate reaction of young gilthead seabream (Sparus aurata) when they were subjected to stress from excessive temperatures, high salinity, and ammonium. To identify Amazonian fish from images, the authors of [26] constructed a CNN and an image-filtering model (U-Net). An average accuracy of 97.9% was achieved by the developed CNN model in identifying 33 different fish species. To categorize eight distinct species of fish, the author of [27] designed and tested a fully automated real-time system utilizing Mask-RCNN and YOLO. AlexNet and ResNet-50 are the DL architectures that the researchers of [28] employed to categorize twenty native species of fish from freshwater. According to the findings of the study, the ResNet-50 model achieved the highest categorization accuracy of 100%. An automated technique for identifying and classifying fish species is described in [29]. Deep convolutional neural networks (DCNNs) provide the basis of the suggested model. It makes use of a simplified version of the AlexNet method, which is composed of two layers that are fully interconnected and four convolutional layers. A validation accuracy of 90.48% was attained by the suggested and altered AlexNet model with a reduced number of layers, in contrast to the primary AlexNet model’s performance of 86.65%.
To categorize the immature and adult trout, the authors of [30] focused on fish species classification and attempted to overcome the difficulties of categorizing extremely imbalanced data. Several DL architectures were tested in the study, including MobileNetV2, ResNet-50, MobileNetV1, and MobileNetV3. The findings showed that when comparing various models, MobileNetV1 always had the best accuracy. An automated method for identifying four commercially significant carp species was developed and implemented in [31] using a CNN-based VGG16 architecture. After evaluating the method using 5-fold cross-validation, the findings showed that it successfully identified four common carp varieties with a 100% accuracy rate. The authors of [32] detailed the process of creating FishDeTec, a smartphone app for recognizing freshwater fish native to Malaysia. Specifically, the VGG16 CNN model was utilized to construct the model for fish species detection. Artificial intelligence techniques, such as the K-Nearest Neighbor (KNN) algorithm, were used to detect and categorize freshwater fish species from photographs in [33]. Results showed that when tested on images of freshwater fish, the model achieved a performance level of 70% accuracy. To classify freshwater fish, the authors of [34] suggested a model that makes use of MobileNet V1 as an object detection method. The results demonstrated that the model achieved a 90% accuracy rate when it came to identifying different varieties of freshwater fish.
Furthermore, end-to-end approaches have led to the development of numerous DL techniques. Some authors have focused on feature extraction and then classified the extracted features based on their learning. Some of the authors first extracted the features from an image and then performed classification based on the extracted features. All of the previous studies not only classified the fish into binary classes (freshwater fish or salinity fish) but also worked on multiclass classification. Thus, we propose a multilevel classification technique, formerly known as detection and diagnosis, on fish image data using DL and ML approaches. The proposed method first extracts the significant features from a fish image. We then apply a series of classifiers to the extracted features, creating a multilevel classification pipeline. The proposed method is capable of identifying and categorizing fish species into freshwater and salinity categories. The current architecture utilizes two different types of datasets to identify and diagnose fish species. We assess the suggested system’s robustness, rapidity, and ability to identify and diagnose fish images, ensuring its practical application.

3. Materials and Method

This section is classified into two interconnected subsections. The Section 3.1 presents a description of the fish image dataset for both freshwater and salinity fish images. Then, the Section 3.2 presents the pipeline of the proposed method.

3.1. Dataset Description

Two different datasets were employed for the current framework. Firstly, the “BDFreshFish” dataset was used for freshwater fish species, and then the “fish-gres” dataset was utilized for salinity fish species [35,36]. The dataset “BDFreshFish” includes a collection of image data for eight distinct kinds of local freshwater fish that are found in different regions of Bangladesh. Batasio tengana, Anabas testudineus, Channa punctata, Heteropneustes fossilis, Marcrobrachium malcoimsonii, Mastacembelus armatus, Puntius sophore, and Ompok bimaculatus are the scientifically recognized names of the eight different types of fish for which images were collected in the dataset. The fish image collection consists of around 3100 photos distributed across 8 classes. On the other hand, the “fish-gres” dataset includes 8 different species of fish, with an average of 240–577 photos per species. The variation can be attributed to the accessibility of random samples collected from conventional markets situated in Gresik, East Java, Indonesia. Initially, the images that were acquired had an original dimension of 4160 × 3120 pixels; after that, the images were resized to 390 × 520 pixels. However, in the proposed work, only five species of salinity fish from the fish-gres dataset were used. The salinity fish species used in this work were Nibea Albiflora (252 images), Johnius Trachycephalus (240 images), Upeneus Moluccensis (577 images), Rastrelliger Faughni (544 images), and Eleutheronema Tetradactylum (240 images). Table 1 displays the sample images of the freshwater and salinity fish species used in the proposed study. In this table, we have taken 8 species from the freshwater dataset and 5 species from the salinity water dataset. We selected five salinity fish species from the “fish-gres” dataset due to their significant availability in the Bangladeshi fish market. Other species in this dataset, however, are not available in the Bangladeshi fish market. The main goal of using two datasets was to build a multilevel classification model for fish identification and classification. Previous studies primarily used these datasets for multiclass classification to diagnose fish species separately. However, in our study, we integrated these two datasets to construct a model that utilizes machine learning and deep learning techniques for the classification of freshwater and salinity water types.

3.2. Proposed Method

The working operation of the current framework for the identification and classification of freshwater and salinity fish is presented in this section. In the current investigation, a total of thirteen distinct species of fish (among these, eight species were freshwater fish, and five species were saltwater fish) were taken into consideration. An architecture of interconnected AI models was proposed to recognize and categorize them. Choosing a class label for a new picture from among thirteen classes is more complicated than doing so with fewer classes, which is why multiclass classification is traditionally difficult. Another drawback of multiclass classifiers is their increased time complexity, and a further obstacle is the issue of data inequality. The model may learn to favor the most common classes and ignore the unusual ones when it is presented with a multiclass classification issue in which specific categories are uncommon while others are commonly seen. The last, but not least, important step is to choose a suitable model. Because each AI model is unique and subject to data- and task-specific constraints, there is no universally applicable approach. As a result, we conducted a comprehensive search to identify the most effective AI-enabled network for the classification of fish species from among the thirteen categories. Following an exhaustive process of data selection, network optimization, evaluation of models, network selection, and illustration, the chosen structure was implemented. Oversampling the photos of the categories with fewer photographs was performed to address data imbalance and bring the distribution of the groups into balance. To select the most suitable network, the researchers took into consideration the time complexity, accuracy, and compatibility of the systems. The accuracy of the framework was assessed through the implementation of cross-validation.
Figure 1 illustrates the overall operation of the suggested architecture. First, the fish images in this figure originated from Android phones, taken in nearby markets. Next, we applied image preprocessing techniques, such as image filtering, in order to remove the noise from the collected images. We used an image resizing technique to prepare the images for the next stage. Then, we utilized conventional pre-trained CNN models to extract the feature vectors from each individual image. We employed seven models, including DenseNet121, EfficientNetB0, InceptionV3, ResNet50, VGG16, VGG19, and Xception, on the preprocessed fish images to identify the feature vectors. Next, we stored the extracted features in CSV format and arranged the merged features based on the classes. We mainly focused on multilevel classification. We identified fish at the initial level, regardless of their freshwater or salinity; at the tertiary level, we combined the feature vectors based on the species stored in the dataset as individual classes. We then fed the feature vectors to conventional ML classifiers to determine the fish identification and classification outcomes. We used six ML classifiers (support vector classifier (SVC), random forest (RF), decision tree (DT), Gaussian naive Bayes (GNB), extreme gradient boosting (XGB), and logistic regression (LR)) to classify fish into binary categories (such as freshwater or salinity) by leveraging the best features from the CNN models. Finally, we employed the classifiers to diagnose the multiclass classification of freshwater fish (8 classes) and salinity fish (5 classes) across 13 fish species categories. Algorithm 1 demonstrates fish identification using both the ML and DL approaches.
Algorithm 1. Overall proposed pipeline and working principles
Input: Fish images captured via Android phones.
Output: Fish identification: freshwater/salinity water and species classification.
1.  BEGIN
2.      // Step 1: Image Acquisition
3.      Input: fish_images[] = Capture images using Android phones
4.  
5.      // Step 2: Image Preprocessing
6.      FOR each image in fish_images[] DO
7.          preprocessed_image = ApplyFiltering(image)
8.           Load(preprocessed_image)
9.      END FOR
10. 
11.      // Step 3: Feature Extraction using CNN Models
12.     features[] = []
13.     cnn_models[] = {DenseNet121, EfficientNetB0, InceptionV3, ResNet50, VGG16, VGG19, Xception}
14.     
15.     FOR each model IN cnn_models[] DO
16.         FOR each preprocessed_image IN fish_images[] DO
17.             feature_vector = ExtractFeatures(model, preprocessed_image)
18.             Append(features[], feature_vector)
19.         END FOR
20.     END FOR
21. 
22.     // Step 4: Store and Merge Features
23.     Save features[] AS CSV
24.      merged_features[] = MergeFeaturesByClass(features[])
25. 
26.     // Step 5: Multilevel Classification
27.     // Level 1: Binary Classification (Freshwater/Salinity)
28.     binary_classifiers[] = {SVC, RF, DT, GNB, XGB, LR}
29.     binary_results[] = []
30. 
31.     FOR each classifier IN binary_classifiers[] DO
32.         result = ClassifyBinary(classifier, merged_features[])
33.         Append(binary_results[], result)
34.     END FOR
35. 
36.     // Level 2: Multiclass Classification (Freshwater: 08, Salty water: 05)
37.     multiclass_results[] = []
38.     
39.     FOR each classifier IN binary_classifiers[] DO
40.         result = ClassifyMulticlass(classifier, merged_features[])
41.         Append(multiclass_results[], result)
42.     END FOR
43. 
44.     // Step 6: Output Results
45.     Output: binary_results[], multiclass_results[]
46. END

4. Experimental Outcomes

This section presents the experimental result analysis of our proposed pipeline, along with the relevant discussion. First, this section provides an experimental result analysis of fish identification. Second, we present a multiclass classification of fish species. Finally, we illustrate a comprehensive comparative study of the existing method vs. our proposed model.
In this research, the authors investigated the effectiveness of seven pre-trained CNN models and seven ML techniques for recognizing and classifying images of fish. We ran all of the applications for this investigation on the Google Colab, which has 53 GB of RAM and a dedicated Graphics Processor Unit (GPU). The setup’s subscription type was ‘Pro subscription’. The pre-trained CNN extracted the features from a specific image and stored them for the classifiers to apply to the extracted features. For our investigation, we split the dataset into 80% training data and 20% testing data. To evaluate the efficacy of the proposed pipeline, we have enumerated the experimental results according to the model’s F1-score, accuracy, precision, and recall. We also performed the 05-fold cross-validation (k-fold cross-validation) technique in order to examine the efficacy of the proposed network.

4.1. Experimental Results on Fish Indentifcation

According to the proposed work, seven CNN-based frameworks were used to extract the significant features from the fish images. These features were then fed to seven machine-learning-based techniques to find the fish’s binary class—either freshwater or saltwater, with class 0 being freshwater and class 1 being saltwater. Table 2 displays the experimental findings for the binary classification using CNN and ML techniques. According to Table 2, previously trained CNN models, such as DenseNet121, EfficientNetB0, ResNet50, VGG16, and VGG19, acquired the highest accuracy, F1-score, precision, and recall of 100% with the SVC ML classifier in binary classification (freshwater/salinity) of the fish images. On the other hand, InceptionV3 (96.18%) and Xception (99.24%) CNN models with SVC and XGB ML classifiers did not achieve benchmark accuracy in binary fish classification. Additionally, the comparison among the seven CNN architectures’ best results with the SVC and XGB ML classifiers and time complexity is shown in Table 3. From this table, we can clearly observe that the DenseNet121+SVC pipeline provided optimal results in terms of accuracy, precision, recall, F1-score, and the time complexity of the technique. To measure the performance of the proposed technique, a learning curve, confusion matrix, and bar chart were utilized. Figure 2, Figure 3 and Figure 4 illustrate the present framework’s performance measurements of the learning curve, confusion matrix, and bar chart.

4.2. Multiclass Classification of Fish Species

4.2.1. Eight Freshwater Fish Classifications

To diagnose the multiclass classification of fish images, we implemented the seven ML-based algorithms to the binary classifier results to identify the eight freshwater fish species through the freshwater binary classification images. The results for the multiclass classification for freshwater fish with CNN and ML techniques are displayed in Table 4. According to Table 4, the previously trained CNN models, EfficientNetB0 and ResNet50, acquired the highest accuracy of 98.09% and 98.06% with LR and SVC ML techniques in the multiclass freshwater fish classification of the fish images from binary classification. However, DenseNet121 (91.08%), VGG16 (95.54), VGG19 (97.45%), Xception (72.61%), and InceptionV3 (63.69%) CNN models with SVC, LR, and XGB ML classifiers did not achieve benchmark accuracy in multiclass freshwater fish classification. Additionally, the comparison among the seven CNN algorithms’ best results with the SVC, LR, and XGB ML classifiers and time complexity is shown in Table 5. Also, we interpreted the Multiply-Accumulates (MACs) and Floating-Point Operations (FLOPs) of the models, where we found the highest result from the hybrid models for freshwater fish classification (Table 5). To measure the performance of the proposed technique, the learning curve, confusion matrix, bar chart, and receiver operating characteristic curve (ROC curve) have been utilized. Figure 5, Figure 6, Figure 7 and Figure 8 illustrate the current framework’s performance measurements of the learning curve, confusion matrix, ROC curve, and bar chart.

4.2.2. Five Salinity Fish Classifications

To identify the multiclass salinity fish classification using the present framework, we utilized the seven ML-based models to diagnose the five salinity fish species multiclass classification using binary classification of salinity fish data. The experimental findings for the multiclass salinity fish classification with CNN and ML techniques are displayed in Table 6. As seen in Table 6, the previously trained CNN model ResNet50 acquired the highest accuracy, F1-score, precision, and recall of 100% with the SVC ML technique in the multiclass salinity fish classification from the fish images of the binary salinity classification. On the other hand, DenseNet121 (95.63%), EfficientNetB0 (98.91%), VGG16 (99.45%), VGG19 (99.45%), Xception (75.68%), and InceptionV3 (72.95%) CNN models with SVC, LR, and XGB ML classifiers did not achieve benchmark accuracy in the multiclass salinity fish classification. Furthermore, the comparison among the seven CNN architectures’ best results with the SVC, LR, and XGB ML classifiers and time complexity are shown in Table 7. Also, we interpreted the MACs and FLOPs of the models, where we found the highest result from the hybrid models for the salinity water fish classification (Table 7). To measure the performance of the suggested technique, the learning curve, confusion matrix, and bar chart were utilized. Figure 9, Figure 10, Figure 11 and Figure 12 illustrate the present framework’s performance measurements of the learning curve, confusion matrix, and bar chart.

4.3. Comprehensive Analysis of the Current Work

The suggested strategy’s comparison to the previously developed methods is displayed in Table 8, including the method that is considered to be the state-of-the-art method, in order to guarantee that it is effective.

5. Conclusions

The recognition and categorization of varieties of fish is of considerable importance to marine scientists to study marine ecosystems and fish habits, as well as for the investigation of threatened species populations. Additionally, it is significant for the fishery and seafood business, which plays a role in the management of the fishing industry to create a large amount of income and employment, which is a big part of the world economy, as well as in Bangladesh. This is why we presented deep CNN with ML methods to classify and identify the fish species into binary classes (such as salinity/freshwater) and then diagnosed the fish images into thirteen multiclass classifications of fish species. Seven CNN frameworks were utilized to extract the important features from the images so that the seven ML techniques could utilize the features to identify the binary class (freshwater/salinity) of fish species. Additionally, the multiclass classification of thirteen fish species was assessed through the ML models. Many experimental operations were evaluated to acquire the objectives of the present research. The findings of the current work demonstrated that the previously trained DenseNet121, EfficientNetB0, ResNet50, VGG16, and VGG19 models of the CNN with the SVC ML technique achieved 100% accuracy, F1-score, precision, and recall for binary classification (freshwater/salinity) of fish images. Additionally, the ResNet50 architecture of the CNN with the SVC ML technique achieved 98.06% and 100% accuracy for multiclass classification (thirteen fish species of freshwater and salinity fish) of fish images.
While working with the proposed model and architecture, we discovered some existing drawbacks that could be improved in the future. Firstly, the proposed model was tested on the fish species in Bangladesh. Regions and locations can greatly influence the diversity and variety of fish species. For instance, we included Mstacemblelus armatus, also known as the water fish, in our study. Globally, this species is commonly referred to as an eel fish. If the model feeds on any unknown species of fish, it cannot be reliable enough to provide an accurate classification. Secondly, the image quality, background, and noise had a significant impact on the model. Thirdly, we did not employ the trained model in lightweight applications, such as Android and IOS. We will identify more datasets with a wider variety of fish species and effective deep learning techniques in the future, along with diagnosing fish images. We are planning to detect the misclassified samples that affected the accuracy of the models. We will enrich our dataset with a set of image preprocessing operations in order to reduce noise and enrich the lighting conditions. Additionally, we will create a lightweight mobile application to implement the YOLOV5 heavyweight model in real-life classification scenarios. However, this work contributed to sustainability by improving the accurate classification of fish species, which is crucial for the management of marine ecosystems and the advancement of sustainable fishing techniques. Additionally, it enhanced the economic viability of the fishing sector by facilitating improved resource management and technical progress.

Author Contributions

Conceptualization, methodology, and result analysis, W.R., M.M.R. and M.A.I.M.; paper collection and data optimization, W.R., M.A.I.M. and R.I.S.; visualization and investigation, M.S.A.M., W.R. and R.I.S.; investigation, data analysis, and figure drawing, R.O.A., S.A.C. and M.A.I.M.; writing—reviewing and editing, W.R., M.M.R., S.A.C., M.A.I.M. and R.O.A.; supervision and editing, M.S.A.M. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Princess Nourah bint Abdulrahman University Researchers Supporting Project (number PNURSP2024R408), Princess Nourah bint Abdulrahman University, Riyadh, Saudi Arabia.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are available upon request from the corresponding author.

Acknowledgments

The authors extend their appreciation to Princess Nourah bint Abdulrahman University Researchers Supporting Project (number PNURSP2024R408), Princess Nourah bint Abdulrahman University, Riyadh, Saudi Arabia.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Majumder, A.; Rajbongshi, A.; Rahman, M.; Biswas, A.A. Local Freshwater Fish Recognition Using Different CNN Architectures with Transfer Learning. Int. J. Adv. Sci. Eng. Inf. Technol. 2021, 11, 1078–1083. [Google Scholar] [CrossRef]
  2. Bangladesh, I. Red List of Bangladesh Volume 5: Freshwater Fishes; IUCN, International Union for Conservation of Nature, Bangladesh Country Office: Dhaka, Bangladesh, 2015; Volume 16, p. 360. [Google Scholar]
  3. Usmanova, A.; Aziz, A.; Rakhmonov, D.; Osamy, W. Utilities of Artificial Intelligence in Poverty Prediction: A Review. Sustainability 2022, 14, 14238. [Google Scholar] [CrossRef]
  4. Shamsuzzaman, M.M.; Islam, M.M.; Tania, N.J.; Abdullah Al-Mamun, M.; Barman, P.P.; Xu, X. Fisheries resources of Bangladesh: Present status and future direction. Aquac. Fish. 2017, 2, 145–156. [Google Scholar] [CrossRef]
  5. Habib, K.A.; Islam, M.J. An updated checklist of Marine Fishes of Bangladesh. Bangladesh J. Fish. 2020, 32, 357–367. [Google Scholar] [CrossRef]
  6. Khan, M.A.G.; Galib, S.M.; Hasnath, M.; Mia, M.R.; Kibria, R. Exotic fish and decreasing habitats vis-à-vis conservation of freshwater fish biodiversity of Bangladesh. J. Fish. 2022, 10, 101301. [Google Scholar] [CrossRef]
  7. Timoti’s. The Difference Between Saltwater and Freshwater Fish. 23 September 2021. Available online: http://www.timotis.com/news-1/saltwater-freshwater-fish-real-differences (accessed on 15 April 2024).
  8. Sharmin, I.; Islam, N.F.; Jahan, I.; Joye, T.A.; Rahman, R.; Habib, T. Machine vision based local fish recognition. SN Appl. Sci. 2019, 1, 1529. [Google Scholar] [CrossRef]
  9. Fanning, L.P.; Chowdhury, S.R.; Uddin, M.S.; Al-Mamun, M.A. Marine Fisheries Survey Reports and Stock Assessment 2019; Department of Fisheries, Government of Bangladesh: Dhaka, Bangladesh, 2019. [Google Scholar]
  10. List of Marine Fishes Reported from Bangladesh. 24 October 2019. Available online: https://www.fishbase.se/country/CountryChecklist.php?showAll=yes&c_code=050&vhabitat=saltwater (accessed on 29 April 2024).
  11. Sumaila, U.R.; Cheung, W.W. Boom or Bust: The Future of Fish in the South China Sea; University of British Columbia: Vancouver, BC, Canada, 2015. [Google Scholar]
  12. Haghshenas, E.; Gholamalifard, M.; Mahmoudi, N.; Kutser, T. Developing a GIS-Based Decision Rule for Sustainable Marine Aquaculture Site Selection: An Application of the Ordered Weighted Average Procedure. Sustainability 2021, 13, 2672. [Google Scholar] [CrossRef]
  13. Ruiz, D.P.; Flores, M.L.; Silva, G.P.; Ibrahim, M. Single Valued Neutrosophic Sets Approach for Assessment Wind Power Plant. Int. J. Neutrosophic Sci. 2024, 23, 205–215. [Google Scholar] [CrossRef]
  14. Rahman, L.F.; Marufuzzaman, M.; Alam, L.; Bari, A.; Sumaila, U.R.; Sidek, L.M. Developing an Ensembled Machine Learning Prediction Model for Marine Fish and Aquaculture Production. Sustainability 2021, 13, 9124. [Google Scholar] [CrossRef]
  15. van der Sleen, P.; Albert, J.S. Patterns in freshwater fish diversity. Ref. Modul. Earth Syst. Environ. Sci. 2022, 26, 894–907. [Google Scholar]
  16. Maitland, P.S. The conservation of freshwater fish: Past and present experience. Biol. Conserv. 1995, 72, 259–270. [Google Scholar] [CrossRef]
  17. Jelks, H.L.; Walsh, S.J.; Burkhead, N.M.; Contreras-Balderas, S.; Diaz-Pardo, E.; Hendrickson, D.A.; Lyons, J.; Mandrak, N.E.; McCormick, F.; Nelson, J.S.; et al. Conservation Status of Imperiled North American Freshwater and Diadromous Fishes. Fisheries 2008, 33, 372–407. [Google Scholar] [CrossRef]
  18. Gupta, A.; Bringsdal, E.; Knausgård, K.M.; Goodwin, M. Accurate Wound and Lice Detection in Atlantic Salmon Fish Using a Convolutional Neural Network. Fishes 2022, 7, 345. [Google Scholar] [CrossRef]
  19. Gladju, J.; Kamalam, B.S.; Kanagaraj, A. Applications of data mining and machine learning framework in aquaculture and fisheries: A review. Smart Agric. Technol. 2022, 2, 100061. [Google Scholar] [CrossRef]
  20. Siddiqui, S.A.; Salman, A.; Malik, M.I.; Shafait, F.; Mian, A.; Shortis, M.R.; Harvey, E.S. Automatic fish species classification in underwater videos: Exploiting pre-trained deep neural network models to compensate for limited labelled data. ICES J. Mar. Sci. 2017, 75, 374–389. [Google Scholar] [CrossRef]
  21. Zang, X.; Yin, T.; Hou, Z.; Mueller, R.P.; Deng, Z.D.; Jacobson, P.T. Deep Learning for Automated Detection and Identification of Migrating American Eel Anguilla rostrata from Imaging Sonar Data. Remote Sens. 2021, 13, 2671. [Google Scholar] [CrossRef]
  22. Khan, F.F.; Li, X.; Temple, A.J.; Elhoseiny, M. FishNet: A Large-scale Dataset and Benchmark for Fish Recognition, Detection, and Functional Trait Prediction. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Paris, France, 2–3 October 2023. [Google Scholar]
  23. Aronica, S.; Fontana, I.; Giacalone, G.; Bosco, G.L.; Rizzo, R.; Mazzola, S.; Basilone, G.; Ferreri, R.; Genovese, S.; Barra, M.; et al. Identifying small pelagic Mediterranean fish schools from acoustic and environmental data using optimized artificial neural networks. Ecol. Inform. 2019, 50, 149–161. [Google Scholar] [CrossRef]
  24. Kaya, V.; Akgül, I.; Tanir, Z. IsVoNet8: A Proposed Deep Learning Model for Classification of Some Fish Species. J. Agric. Sci. Bilim. Derg. 2023, 29, 298–307. [Google Scholar] [CrossRef]
  25. Zarantoniello, M.; Bortoletti, M.; Olivotto, I.; Ratti, S.; Poltronieri, C.; Negrato, E.; Caberlotto, S.; Radaelli, G.; Bertotto, D. Salinity, Temperature and Ammonia Acute Stress Response in Seabream (Sparus aurata) Juveniles: A Multidisciplinary Study. Animals 2021, 11, 97. [Google Scholar] [CrossRef]
  26. Robillard, A.J.; Trizna, M.G.; Ruiz-Tafur, M.; Panduro, E.L.D.; de Santana, C.D.; White, A.E.; Dikow, R.B.; Deichmann, J.L. Application of a deep learning image classifier for identification of Amazonian fishes. Ecol. Evol. 2023, 13, e9987. [Google Scholar] [CrossRef]
  27. Kandimalla, V.; Richard, M.; Smith, F.; Quirion, J.; Torgo, L.; Whidden, C. Automated Detection, Classification and Counting of Fish in Fish Passages With Deep Learning. Front. Mar. Sci. 2022, 8, 823173. [Google Scholar] [CrossRef]
  28. Deka, J.; Laskar, S.; Baklial, B. Automated Freshwater Fish Species Classification using Deep CNN. J. Inst. Eng. (India) Ser. B 2023, 104, 603–621. [Google Scholar] [CrossRef]
  29. Iqbal, M.A.; Wang, Z.; Ali, Z.A.; Riaz, S. Automatic Fish Species Classification Using Deep Convolutional Neural Networks. Wirel. Pers. Commun. 2019, 116, 1043–1053. [Google Scholar] [CrossRef]
  30. Srivastava, V. Classification of Fish Species Using Deep Learning Models. Master’s Thesis, NTNU, Trondheim, Norway, 2023. [Google Scholar]
  31. Banan, A.; Nasiri, A.; Taheri-Garavand, A. Deep learning-based appearance features extraction for automated carp species identification. Aquac. Eng. 2020, 89, 102053. [Google Scholar] [CrossRef]
  32. Rum, S.N.M.; Nawawi, F.A.Z. FishDeTec: A fish identification application using image recognition approach. Int. J. Adv. Comput. Sci. Appl. 2021, 12. [Google Scholar] [CrossRef]
  33. Suwarsito, S.; Mustafidah, H.; Pinandita, T.; Purnomo, P. Freshwater Fish Classification Based on Image Representation Using K-Nearest Neighbor Method. JUITA J. Inform. 2022, 10, 183–189. [Google Scholar] [CrossRef]
  34. Suharto, E.; Suhartono; Widodo, A.P.; Sarwoko, E.A. The use of mobilenet v1 for identifying various types of freshwater fish. J. Phys. Conf. Ser. 2020, 1524, 012105. [Google Scholar] [CrossRef]
  35. Rahman, W.; Islam, M.T.; Khan, M.R.; Rahman, M.M. BDFreshFish: A Comprehensive Image Dataset for Machine Learning Applications on Bangladeshi Freshwater Fishes. 10 January; 2024.
  36. Prasetyo, E.; Suciati, N.; Fatichah, C. Multi-level residual network VGGNet for fish species classification. 11 June; 2021.
Figure 1. Overall system illustration.
Figure 1. Overall system illustration.
Sustainability 16 07933 g001
Figure 2. Learning curve of binary classification.
Figure 2. Learning curve of binary classification.
Sustainability 16 07933 g002
Figure 3. Confusion matrix of binary classification.
Figure 3. Confusion matrix of binary classification.
Sustainability 16 07933 g003
Figure 4. Bar chart of the accuracy, recall, precision, and F1-score of binary classification.
Figure 4. Bar chart of the accuracy, recall, precision, and F1-score of binary classification.
Sustainability 16 07933 g004aSustainability 16 07933 g004b
Figure 5. The learning curve of multiclass classification (freshwater fish).
Figure 5. The learning curve of multiclass classification (freshwater fish).
Sustainability 16 07933 g005
Figure 6. Confusion matrix of multiclass classification (freshwater fish).
Figure 6. Confusion matrix of multiclass classification (freshwater fish).
Sustainability 16 07933 g006aSustainability 16 07933 g006b
Figure 7. ROC of multiclass classification (freshwater fish).
Figure 7. ROC of multiclass classification (freshwater fish).
Sustainability 16 07933 g007
Figure 8. Accuracy, recall, precision, and F1-score of multiclass freshwater fish classification.
Figure 8. Accuracy, recall, precision, and F1-score of multiclass freshwater fish classification.
Sustainability 16 07933 g008
Figure 9. Learning curve of multiclass classification (salinity fish).
Figure 9. Learning curve of multiclass classification (salinity fish).
Sustainability 16 07933 g009
Figure 10. Confusion matrix of multiclass classification (salinity fish).
Figure 10. Confusion matrix of multiclass classification (salinity fish).
Sustainability 16 07933 g010
Figure 11. ROC of multiclass classification (salinity fish).
Figure 11. ROC of multiclass classification (salinity fish).
Sustainability 16 07933 g011
Figure 12. Accuracy, recall, precision, and F1-score of multiclass salinity fish classification.
Figure 12. Accuracy, recall, precision, and F1-score of multiclass salinity fish classification.
Sustainability 16 07933 g012
Table 1. The details of freshwater and salinity fish species datasets with sample data.
Table 1. The details of freshwater and salinity fish species datasets with sample data.
SL No.Scientific Name of the FishCategoryLocal Name of the FishNumber of Amassed ImagesSample Images
FreshwaterSalinity
01.Anabus testudineus Koi100Sustainability 16 07933 i001Sustainability 16 07933 i002
02.Batasio tengana Tengra125Sustainability 16 07933 i003Sustainability 16 07933 i004
03.Channa puctata Taki112Sustainability 16 07933 i005Sustainability 16 07933 i006
04.Heteropneustes fossilis Shing102Sustainability 16 07933 i007Sustainability 16 07933 i008
05.Marcobrachium malcoimsonii Chingri105Sustainability 16 07933 i009Sustainability 16 07933 i010
06.Mstacemblelus armatus Baim105Sustainability 16 07933 i011Sustainability 16 07933 i012
07.Ompok bimaculatus Pabda105Sustainability 16 07933 i013Sustainability 16 07933 i014
08.Puntius Puti100Sustainability 16 07933 i015Sustainability 16 07933 i016
09.Nibea albiflora Poya Vola252Sustainability 16 07933 i017Sustainability 16 07933 i018
10.Johnius trachycephalus Poya240Sustainability 16 07933 i019Sustainability 16 07933 i020
11.Upeneus moluccensis Lal
Koral
577Sustainability 16 07933 i021Sustainability 16 07933 i022
12.Rastrelliger faughni Macerel544Sustainability 16 07933 i023Sustainability 16 07933 i024
13.Eleutheronema tetradactylum Tailla240Sustainability 16 07933 i025Sustainability 16 07933 i026
Table 2. Results for binary classification with the CNN and ML techniques.
Table 2. Results for binary classification with the CNN and ML techniques.
CNN-Based Feature ExtractorClassifiersAvg. Accuracy (%)Avg. Precision (%)Avg. Recall (%)Avg.
F1-Score (%)
DenseNet121SVC1.00001.00001.00001.0000
RF1.00001.00001.00001.0000
DT0.98090.98240.97000.9759
GNB0.96560.94840.96980.9583
XGB1.00001.00001.00001.0000
LR1.00001.00001.00001.0000
EfficientNetB0SVC1.00001.00001.00001.0000
RF0.99430.99610.98970.9928
DT0.95030.93260.94660.9392
GNB0.99240.99260.98840.9905
XGB0.99810.99870.99660.9976
LR0.99810.99870.99660.9976
InceptionV3SVC0.96180.95800.94620.9519
RF0.94650.95940.90830.9298
DT0.87380.84060.85160.8458
GNB0.76100.70100.65800.6706
XGB0.95980.94620.95540.9506
LR0.95030.93260.94660.9392
ResNet50SVC1.00001.00001.00001.0000
RF1.00001.00001.00001.0000
DT0.97140.96770.96210.9648
GNB0.99420.99210.99400.9930
XGB0.99810.99870.99670.9977
LR1.00001.00001.00001.0000
VGG16SVC1.00001.00001.00001.0000
RF0.99430.99610.98970.9928
DT0.94840.92650.95160.9378
GNB0.96940.95860.96620.9623
XGB0.99620.99520.99520.9952
LR1.00001.00001.00001.0000
VGG19SVC1.00001.00001.00001.0000
RF0.99810.99870.99660.9976
DT0.9690.92090.92270.9218
GNB0.95980.94620.95540.9506
XGB0.99810.99870.99660.9976
LR1.00001.00001.00001.0000
XceptionSVC0.98950.98990.98160.9856
RF0.98850.98570.98570.9857
DT0.90630.87930.89300.8857
GNB0.87570.85360.82990.8404
XGB0.99240.98850.99260.9905
LR0.98850.98570.98570.9857
Table 3. Comparison results for binary classification.
Table 3. Comparison results for binary classification.
TechniquesAvg. Accuracy (%)Avg. Precision (%)Avg. Recall (%)Avg.
F1-Score (%)
Time Complexity
DenseNet121 + SVC1.00001.00001.00001.0000483 ms ± 11 ms
EfficientNetB0 + SVC1.00001.00001.00001.0000483 ms ± 9.39 ms
InceptionV3 + SVC0.96180.95800.94620.95192.23 s ± 40.1 ms
ResNet50 + SVC1.00001.00001.00001.0000927 ms ± 8.72 ms
VGG16 + SVC1.00001.00001.00001.00002.46 s ± 13.7 ms
VGG19 + SVC1.00001.00001.00001.00002.39 s ± 24.7 ms
Xception + XGB0.99240.98850.99260.99052.62 s ± 35.6 ms
Table 4. Results for multiclass classification (freshwater fish) with CNN and ML techniques.
Table 4. Results for multiclass classification (freshwater fish) with CNN and ML techniques.
CNN-Based Feature ExtractorClassifiersAvg. Accuracy (%)Avg. Precision (%)Avg. Recall (%)Avg.
F1-Score (%)
DenseNet121SVC0.80250.81860.79940.7983
RF0.87900.88560.87560.8753
DT0.69430.70150.68700.6874
GNB0.66240.73980.60600.6454
XGB0.89170.892920.88390.8855
LR0.91080.91370.90670.9069
EfficientNetB0SVC0.94900.94900.94860.9481
RF0.91080.90900.90900.9079
DT0.66240.66160.65690.6552
GNB0.85990.86510.85820.8586
XGB0.89170.89120.88750.8881
LR0.98090.97990.98100.9798
InceptionV3SVC0.56690.56870.55770.5410
RF0.59870.59630.59310.5706
DT0.43310.41700.42870.4149
GNB0.40760.33220.39780.3461
XGB0.63690.64560.63430.6209
LR0.63060.63190.62520.6210
ResNet50SVC0.98060.98020.98130.9803
RF0.920993110.93050.9289
DT0.70970.70970.71320.7052
GNB0.94840.95210.95060.9499
XGB0.94190.94430.94410.9423
LR0.96770.96900.97100.9682
VGG16SVC0.93630.93850.93110.9335
RF0.92990.92600.92150.9235
DT0.65610.68510.65730.6633
GNB0.73890.86310.74300.7638
XGB0.90450.89970.89760.8978
LR0.95540.95490.95170.9529
VGG19SVC0.97450.97540.97620.9752
RF0.93630.93730.93540.9355
DT0.66880.66920.66040.6609
GNB0.76430.84700.76320.7762
XGB0.92360.92400.92090.9215
LR0.97450.97480.97380.9739
XceptionSVC0.50960.44530.50270.4612
RF0.65610.65450.65220.6509
DT0.52230.51890.51330.5110
GNB0.56690.58760.55180.5399
XGB0.71970.71150.71460.7110
LR0.72610.72880.72270.7190
Table 5. Comparison results for multiclass classification (freshwater fish).
Table 5. Comparison results for multiclass classification (freshwater fish).
TechniquesAvg. Accuracy (%)Avg. Precision (%)Avg. Recall (%)Avg.
F1-Score (%)
Time ComplexityMACsFLOPs
DenseNet121 + LR0.91080.91370.90670.9069245 ms ± 34.4 ms4.144G8.360G
EfficientNetB0 + LR0.98090.97990.98100.9798233 ms ± 36.6 ms45.840M89.789M
InceptionV3 + XGB0.63690.64560.63430.620911.7 s ± 180 ms5.840G11.430G
ResNet50 + SVC0.98060.98020.98130.9803480 ms ± 1.46 ms4.242G8.301G
VGG16 + LR0.95540.95490.95170.95291.06 s ± 57.4 ms15.480G30.945G
VGG19 + SVC0.97450.97540.97620.97521.14 s ± 8.33 ms19.482G39.252G
Xception + LR0.72610.72880.72270.7190769 ms ± 216 ms8.632G16.871G
Table 6. Results for multiclass classification (salinity fish) with CNN and ML techniques.
Table 6. Results for multiclass classification (salinity fish) with CNN and ML techniques.
CNN-Based Feature ExtractorClassifiersAvg. Accuracy (%)Avg. Precision (%)Avg. Recall (%)Avg.
F1-Score (%)
DenseNet121SVC0.78140.76650.72440.7324
RF0.92350.92050.90730.9131
DT0.71310.68430.70400.6897
GNB0.48360.55900.57070.4888
XGB0.9290092440.91940.9211
LR0.95630.95990.94100.9490
EfficientNetB0SVC0.98090.97880.97880.9788
RF0.96720.96850.95770.9626
DT0.67760.63940.62710.6324
GNB0.86070.83700.87970.8503
XGB0.95630.95150.95260.9499
LR0.98910.98990.98710.9884
InceptionV3SVC0.60380.60850.52550.5360
RF0.65850.66070.61730.6287
DT0.46990.46340.47030.4635
GNB0.38800.40400.37730.3494
XGB0.72400.71180.69280.6994
LR0.72950.73650.73760.7343
ResNet50SVC1.00001.00001.00001.0000
RF0.98910.98990.98710.9884
DT0.82240.81080.81280.8116
GNB0.93720.92170.95470.9333
XGB0.98910.99040.98510.9876
LR0.99730.99830.99820.9982
VGG16SVC0.99450.99370.99640.9950
RF0.98630.98630.98360.9849
DT0.82790.79950.81140.8046
GNB0.85790.87230.81180.8334
XGB0.98630.98820.98820.9882
LR0.99450.99370.99640.9959
VGG19SVC0.99450.99370.99640.9950
RF0.99180.99180.99170.9917
DT0.81150.79270.78290.7869
GNB0.78960.81000.74680.7607
XGB0.98910.98510.99080.9878
LR0.99450.99370.99640.9950
XceptionSVC0.58470.61430.52490.5215
RF0.71860.74260.70170.7167
DT0.51090.50890.50090.5025
GNB0.29230.35550.37060.2792
XGB0.75680.75830.74950.7494
LR0.74320.74200.76890.7507
Table 7. Comparison results for multiclass classification (salinity fish).
Table 7. Comparison results for multiclass classification (salinity fish).
TechniquesAvg. Accuracy (%)Avg. Precision (%)Avg. Recall (%)Avg.
F1-Score (%)
Time ComplexityMACsFLOPs
DenseNet121 + LR0.95630.95990.94100.9490341 ms ± 17.6 ms4.134G8.267G
EfficientNetB0 + LR0.98910.98990.98710.9884324 ms ± 27 ms44.840M89.680M
InceptionV3 + LR0.72950.73650.73760.73431.01 s ± 347 ms5.749G11.498G
ResNet50 + SVC1.00001.00001.00001.00001.2 s ± 8.76 ms4.134G8.267G
VGG16 + LR0.99450.99370.99640.99591.24 s ± 13.6 ms15.470G30.941G
VGG19 + SVC0.99450.99370.99640.99502.78 s ± 54.9 ms19.632G39.264G
Xception + XGB0.75680.75830.74950.749413.7 s ± 232 ms8.442G16.884G
Table 8. Comprehensive analysis of the suggested work.
Table 8. Comprehensive analysis of the suggested work.
Previous WorksTechniques EmployedArchitectures/FrameworksUsed DatasetFish ClassAccuracy
DLMLFreshwaterSalinity
[1]×VGG16, VGG19, abd CNNFish images were collected from fish tanks during October 2021 to January 2022.×96.7%
[3]CNN and SVM16 species of fish videos were collected from islands of Western Australia during 2011–2013.×94.3%
[4]×CNNA laboratory was used to take images of American eels from tanks. ×98%
[6]×Neural NetworkThe data were collected from surveys during 2005–2015 in the central Mediterranean Sea.×95%
[7]×ResNet50, ResNet101, and VGG16A fish dataset of 8 salinity species of fish was used.×98.62%
[9]×U-Net and CNNA total of 141 freshwater species of fish images were taken from Morona River.×97.9%
[10]Mask-RCNN and YOLODIDSON dataset images of 8 freshwater fish species were captured from the Ocqueoc River. ×66.9%
[11]×AlexNet, CNN, and ResNet-5020 freshwater varieties of fish images were taken from the ponds of Assam.×100%
[12]×Deep CNN and AlexNetQUT and LifeCled2015 freshwater fish datasets were used with 6 species.×90.48%
[13]×MobileNetV2, ResNet-50, MobileNetV1, and MobileNetV3Images of mature and immature trout were taken from the rivers of Norway.×90%
[14]×VGG16 and CNN4 species of freshwater fish images were used from a fish tank.×100%
[15]×VGG16 and Transfer Learning8 freshwater varieties of fish images were taken from Malaysia.×N/A
[16]×K-Nearest Neighbor10 freshwater varieties of fish images were taken from various sources.×70%
[17]×MobileNetV13 freshwater varieties of fish images were used.×90%
Proposed FrameworkDenseNet121, EfficientNetB0, InceptionV3, ResNet50, VGG16, VGG19, Xception, SVC, RF, DT, GNB, XGB, and LRThe dataset “BDFreshFish” includes a collection of eight distinct kinds of local freshwater fish. The “fish-gres” dataset includes 8 different species of fish. Among these 8 varieties, the proposed system used 5 species.100% (binary classification), 98.06%, and 100% (multiclass classification of freshwater and salinity fish species)
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Rahman, W.; Rahman, M.M.; Mozumder, M.A.I.; Sumon, R.I.; Chelloug, S.A.; Alnashwan, R.O.; Muthanna, M.S.A. A Deep CNN-Based Salinity and Freshwater Fish Identification and Classification Using Deep Learning and Machine Learning. Sustainability 2024, 16, 7933. https://doi.org/10.3390/su16187933

AMA Style

Rahman W, Rahman MM, Mozumder MAI, Sumon RI, Chelloug SA, Alnashwan RO, Muthanna MSA. A Deep CNN-Based Salinity and Freshwater Fish Identification and Classification Using Deep Learning and Machine Learning. Sustainability. 2024; 16(18):7933. https://doi.org/10.3390/su16187933

Chicago/Turabian Style

Rahman, Wahidur, Mohammad Motiur Rahman, Md Ariful Islam Mozumder, Rashadul Islam Sumon, Samia Allaoua Chelloug, Rana Othman Alnashwan, and Mohammed Saleh Ali Muthanna. 2024. "A Deep CNN-Based Salinity and Freshwater Fish Identification and Classification Using Deep Learning and Machine Learning" Sustainability 16, no. 18: 7933. https://doi.org/10.3390/su16187933

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop