Next Article in Journal
Reproducible Benchmarking of Tomato Detection in Greenhouse: Comparing Attention-Augmented and Baseline Detectors
Previous Article in Journal
Electronic Pulses as an Anti-Clogging Strategy for Drip Fertigation with Saltworks Bittern in Semi-Arid Regions
Previous Article in Special Issue
Dissecting Phenotypic Architecture and Trait Trade-Offs in Thai Aromatic Coconuts by Integrating Multivariate Phenomics and Machine Learning for Precision Breeding
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

AI-Based Hybrid Deep Learning for Multiscale Red Tilapia Weight-Range Classification Using UAV Imagery

by
Pimlapat Suwannasing
1,
Methee Kaewnern
2,
Wara Taparhudee
3 and
Roongparit Jongjaraunsuk
3,*
1
Fishery Science and Technology (International Program), Faculty of Fisheries, Kasetsart University, Bangkok 10900, Thailand
2
Department of Fishery Management, Faculty of Fisheries, Kasetsart University, Bangkok 10900, Thailand
3
Department of Aquaculture, Faculty of Fisheries, Kasetsart University, Bangkok 10900, Thailand
*
Author to whom correspondence should be addressed.
AgriEngineering 2026, 8(7), 274; https://doi.org/10.3390/agriengineering8070274
Submission received: 15 May 2026 / Revised: 22 June 2026 / Accepted: 30 June 2026 / Published: 6 July 2026
(This article belongs to the Special Issue The Future of Artificial Intelligence in Agriculture, 2nd Edition)

Abstract

This study proposed an artificial intelligence framework for red tilapia weight-range classification from UAV-based aerial imagery using two hybrid deep learning models, namely Hybrid CNN-XGBoost and Hybrid EfficientNet-B0-XGBoost. Two image sizes were evaluated: 5 × 5 m images, which preserved the spatial context of the cage culture system, and 2 × 2 m images, which focused on areas with high fish aggregation density. For the 5 × 5 m images, Hybrid CNN-XGBoost achieved the highest performance, with a mean accuracy of 0.988 ± 0.008 (98.8%) at 20 tuning units, whereas Hybrid EfficientNet-B0-XGBoost achieved 0.977 ± 0.021 (97.7%) at 40 tuning units. In addition, Hybrid CNN-XGBoost exhibited a substantially shorter average computational workflow time per image (0.038 ± 0.001 s) than Hybrid EfficientNet-B0-XGBoost (65.007 ± 6.141 s). In contrast, under the 2 × 2 m image condition with limited spatial context, Hybrid EfficientNet-B0-XGBoost outperformed Hybrid CNN-XGBoost, achieving the highest mean accuracy of 0.900 ± 0.010 (90.0%) at 30 tuning units, compared with 0.850 ± 0.022 (85.0%) at 50 tuning units. These findings indicate that larger images improve classification accuracy by preserving spatial context, whereas EfficientNet-B0 enhances deep feature extraction capability and improves classification accuracy when spatial context is limited.

1. Introduction

Red tilapia is one of the most important aquaculture species and serves as a major source of food and protein worldwide [1,2]. In Thailand, red tilapia farming has become increasingly popular because of the fish’s red body coloration, meat quality, and high tolerance to culture conditions [3,4,5]. During the production cycle, growth monitoring and fish weight assessment are still primarily based on conventional sampling and manual weighing methods, which are labor-intensive and may negatively affect fish feeding behavior and health [6,7,8]. To address these limitations, image—based fish weight estimation and aquatic animal monitoring techniques integrated with machine learning (ML), deep learning (DL), and hybrid models have gained increasing attention because they can improve prediction accuracy, reduce operational risks, and enhance aquaculture management efficiency [9].
Previous studies have demonstrated the potential of ML, DL, and hybrid models for image analysis across various applications, including medical imaging [10,11], agriculture [12], fisheries and aquaculture applications related to aquatic animal classification and weight estimation. Konovalov et al. [13] applied a DL convolutional neural network (CNN) model for Asian seabass (Lates calcarifer) weight estimation, whereas Tengtrairat et al. [14] employed a mask recurrent-convolutional neural network (Mask R-CNN) to estimate the weight of Nile tilapia (Oreochromis niloticus) cultured under laboratory conditions. Hamzaoui et al. [15] used the ML model extreme gradient boosting (XGBoost) for image-based weight estimation of several fish species, including European bream (Abramis brama), roach (Rutilus rutilus), whitefish (Coregoninae), common perch (Perca fluviatilis), northern pike (Esox lucius), and delta smelt (Hypomesus olidus). Feng et al. [16] compared EfficientNet and residual network (ResNet) for koi fish feeding behavior classification and reported that EfficientNet-B0 achieved higher classification accuracy than ResNet with accuracies of 98.78% and 94.81%, respectively. Similarly, Taparhudee et al. [9] reported that hybrid CNN-XGBoost improved red tilapia weight-range prediction accuracy compared with standalone CNN and XGBoost models while requiring fewer training epochs. Zhou et al. [17] demonstrated that EfficientNet-B0 combined with a random vector functional link model (EfficientNetB0-TRVFL) achieved superior performance for underwater image classification across multiple datasets. In addition, Biswal et al. [18] developed DeepFishNet, a hybrid model integrating you only look once version 9 (YOLOv9) and CNN for real-time fish disease classification, whereas Córdova et al. [19] proposed a multistage image-based framework in which YOLOv8 combined with EfficientNet-B0 provided robust and accurate fish detection and weight estimation under real-world conditions.
However, image-based fish weight estimation in real aquaculture environments still faces important challenges related to image acquisition, particularly under conditions in which data collection is restricted by limited viewing areas, fish movement, water surface interference, and farm-scale operational constraints. To address these limitations, unmanned aerial vehicles (UAVs) have emerged as a promising approach for acquiring aerial imagery in aquaculture systems. UAV-based imaging has previously been applied in a wide range of monitoring and management applications because of its flexibility, rapid image acquisition capability, and ability to capture large spatial areas under real farming conditions. In a previous study, Taparhudee et al. [9] applied a hybrid CNN-XGBoost model and reported a mean classification accuracy of 76%; however, the influence of image scale and backbone architecture on red tilapia weight-range classification using UAV imagery remains insufficiently investigated. To address this limitation, the present study explored the use of EfficientNet-B0 as an alternative backbone architecture, which has previously demonstrated high effectiveness and suitability for image feature extraction [16,17,19]. EfficientNet-B0 was selected as the backbone architecture in the present study because previous studies have demonstrated that it can achieve classification performance comparable to or better than widely used architectures such as ResNet and densely connected convolutional network (DenseNet) while requiring fewer parameters and lower computational complexity. Tan and Le [20] reported that EfficientNet achieved superior accuracy–efficiency tradeoffs through compound scaling of network depth, width, and input resolution. Similarly, Feng et al. [16] demonstrated that EfficientNet-B0 outperformed ResNet in fish image classification applications. Therefore, EfficientNet-B0 was considered an appropriate backbone architecture for evaluating improvements in red tilapia weight-range classification performance. In addition, Taparhudee et al. [9] used 2 × 2 m images to emphasize target objects while reducing background noise and surrounding interference. Nevertheless, this approach may result in the loss of important spatial contextual information, including fish distribution patterns, density, and schooling behavior, all of which are associated with fish weight classification in aquaculture systems. Previous studies on ML and DL image classification have reported that image context, image size, and spatial resolution play important roles in model performance [20,21]. Larger images can improve spatial feature extraction by preserving broader contextual information [22]. For example, Quintana et al. [23] reported that multiscale approaches integrating multiple patch sizes and image resolutions improved model performance compared with single-scale approaches. Similarly, de Bem et al. [24] demonstrated that larger image patches significantly improved classification accuracy because they preserved more spatial contextual information between objects and their surrounding environments, whereas smaller patches often failed to capture sufficient spatial relationships. Chen et al. [25] further reported that image size and spatial resolution directly influence model accuracy, with performance depending on the optimal spatial scale. Images with low resolution or small size may lose important object details and contextual information, whereas excessively high-resolution images may increase complexity and introduce additional noise. Likewise, Ashraf et al. [26] reported that larger image regions improved model accuracy because broader spatial coverage enabled simultaneous learning of both local object features and surrounding spatial context, whereas smaller regions tended to preserve only localized information and reduce structural and contextual representation.
Therefore, the present study extended previous research by investigating the combined effects of UAV image size and backbone architecture on red tilapia weight-range classification. Specifically, 2 × 2 m and 5 × 5 m image patches were compared to evaluate the influence of spatial context on classification performance, while EfficientNet-B0 was incorporated into the hybrid framework to assess whether backbone enhancement could further improve model performance. It was hypothesized that larger image patches would better preserve spatial contextual information and multiscale features, thereby improving classification accuracy, whereas EfficientNet-B0 would provide superior feature extraction capability under conditions with limited spatial context.

2. Materials and Methods

2.1. Ethical Statement and UAV Flight Permission

All experimental procedures were conducted in strict accordance with the applicable guidelines and regulations. The research protocol was approved by the Kasetsart University Institutional Animal Care and Use Committee (certificate no. ACKU 68-FIS-032) under the project title “AI-driven real-time monitoring of red tilapia weight and feeding efficiency using hybrid DL models with aerial imagery”. Furthermore, the DJI Air 2S UAV (DJI 13 store authorized dealer Thailand Co., Ltd., Bangkok, Thailand) used in this study was certified by Thailand’s Office of the National Broadcasting and Telecommunications Commission (certificate no. T040465013010) for radiocommunication equipment registration, permitting its use for research and experimental purposes. The UAV was registered under identification number RA—11—25—2530.

2.2. Fish Weight and Water Quality

One day before each experiment, 20 fish were randomly sampled from each cage and individually weighed using a CST-CDR-3 digital balance (CST Instruments Thailand Ltd., Bangkok, Thailand) to obtain actual fish body weight data. All fish handling and weighing procedures followed the protocol described by Taparhudee et al. [9]. Water quality parameters, including dissolved oxygen (DO), water temperature (Temp), potential hydrogen (pH), transparency (Trans), total ammonia nitrogen (TAN), nitrite–nitrogen (NO2-N), and alkalinity (ALK), were also monitored during the study. DO and Temp were measured using a YSI DO system (YSI, Yellow Springs, OH, USA), whereas pH was determined using a YSI pH 10A Pen Tester (YSI, Yellow Springs, OH, USA). Trans was measured using a Secchi disc. TAN, NO2-N, and ALK concentrations were analyzed using a portable field spectrophotometer (Spectrokit; Marine Leader Co., Ltd., Bangkok, Thailand) to enable rapid on-site assessment of water quality conditions.
The measured fish weights were subsequently used to calculate the mean body weight, standard deviation, minimum weight, and maximum weight of each sampling period. These weight statistics were used as reference information for defining fish weight classes and assigning weight-class labels to the corresponding UAV image datasets used for model development. Because the study was conducted under commercial farming conditions, some overlap between adjacent weight classes occurred due to natural fish size heterogeneity within the commercial red tilapia population.

2.3. Unmanned Aerial Vehicle (UAV), Image Acquisition, and Image Processing

The UAV used in this study was a DJI Air 2S (Mavic), following the image acquisition protocol described by Taparhudee et al. [9]. The flight altitude from the UAV to the water surface above the fish cages was maintained at 3.5 m. Image acquisition was conducted across six fish cages throughout one production cycle from November 2025 to March 2026, with a total of nine flight sessions performed during the study period. A total of 2700 images were collected for image processing, corresponding to approximately 300 images per sampling session. The images used for model development and analysis were cropped into two image sizes, namely 5 × 5 m and 2 × 2 m (Figure 1).
The generation of 5 × 5 m images was performed using a fish-centered 5 × 5 m patch extraction approach to obtain image patches that preserved the spatial context of fish distribution within the cage culture system (Figure 2). The process began with the original UAV-based RGB aerial image (Figure 2a), which was converted into a grayscale image to reduce image complexity (Figure 2b). Subsequently, Gaussian blur was applied to reduce image noise and improve object continuity within the image (Figure 2c). Otsu’s thresholding method was then used to separate fish objects from the water background (Figure 2d). Morphological operations, including opening and closing, were subsequently applied to reduce noise and improve the continuity and completeness of fish-object pixel groups (Figure 2e). Foreground pixels corresponding to fish objects were then used to calculate the fish centroid based on the average spatial coordinates of all foreground pixels (Figure 2f). A 5 × 5 m image patch was subsequently generated using the centroid position as the center of the cropping window (Figure 2g), while the cropping boundary was constrained to remain within the original image dimensions to avoid edge information loss. Finally, the extracted 5 × 5 m image patches preserved important spatial characteristics of the aquaculture system, including fish density, distribution patterns, and aggregation behavior, making them suitable as input data for subsequent hybrid DL model development (Figure 2h).
For the 2 × 2 m images, the previously generated 5 × 5 m image patches were subsequently processed using an automatic fish-density-based patch extraction approach to extract image patches from regions with the highest fish aggregation density (Figure 3). The process began with the previously generated 5 × 5 m image patch (Figure 3a), which was converted into a grayscale image to simplify image information (Figure 3b). Gaussian blur was subsequently applied to reduce image noise and improve image smoothness (Figure 3c). Otsu’s thresholding method was then used to separate fish objects from the background (Figure 3d), followed by morphological operations, including opening and dilation, to improve the continuity of fish-object pixel groups and reduce noise within the image (Figure 3e). A fish-density map was subsequently generated from the spatial distribution of foreground pixels to identify regions with the highest fish aggregation density (Figure 3f). A 2 × 2 m cropping window was then positioned over the region with the maximum density value (Figure 3g), and the resulting 2 × 2 m image patch was resized to 224 × 224 pixels for use as input data for the hybrid DL models (Figure 3h). This approach enabled the 2 × 2 m images to focus specifically on regions with high fish aggregation while minimizing the influence of background noise and surrounding cage interference. Consequently, the extracted patches were more suitable for capturing local fish aggregation features associated with fish weight-range classification in the subsequent modeling process.

2.4. CNN

CNN is a DL architecture specifically designed for processing spatially structured data, particularly images. A CNN consists of a multilayer architecture composed of an input layer, convolutional layers, activation layers, pooling or subsampling layers, and fully connected layers before the final output layer for classification or prediction tasks [9,27].
During the learning process, the convolutional layer extracts important image features using filters or kernels through convolution operations to learn object characteristics such as edges, textures, and shapes [28]. Activation layers, such as the rectified linear unit (ReLU), are subsequently applied to introduce nonlinearity into the network, enabling the model to learn more complex patterns and representations [29]. Pooling layers reduce the spatial dimensions of the feature maps while retaining the most informative features, thereby reducing the number of parameters, minimizing overfitting, and improving computational efficiency [30]. After multiple stages of feature extraction, the extracted features are passed to the fully connected layers to learn deeper feature relationships before being forwarded to the output layer for final classification. In general, CNN architectures consist of multiple stacked convolutional and pooling layers, enabling hierarchical representation learning from low-level to high-level image features [27,31,32]. The basic architecture of the CNN model used in this study is illustrated in Figure 4.

2.5. EfficientNet-B0

EfficientNet is a deep CNN architecture developed by Tan and Le [20] to improve learning efficiency while minimizing the number of parameters and computational cost, without compromising image classification accuracy. The core concept of this architecture is compound scaling, which systematically scales the network across three principal dimensions, including network depth, width, and image resolution, in a balanced manner. This approach enables the model to achieve efficient scaling while maintaining an appropriate balance between model complexity and classification performance [12,17,20]. Among the EfficientNet family (B0–B7), EfficientNet-B0 is considered the baseline model and is characterized by its relatively compact architecture and high computational efficiency. In the present study, EfficientNet-B0 was employed as a feature extractor to capture deep image features, particularly texture patterns and color characteristics, which are important factors for fish weight-range classification. The selection of EfficientNet-B0 was considered appropriate because the model can achieve classification performance comparable to that of larger architectures, such as ResNet-50, while requiring substantially fewer parameters and lower computational complexity [11,12,20].
The core architecture of EfficientNet-B0 comprises mobile inverted bottleneck convolution (MBConv) blocks, which were derived from the MobileNetV2 architecture. Each MBConv block consists of a 1 × 1 expansion convolution layer for increasing channel dimensions, a depthwise convolution layer for spatial feature extraction with low computational cost, and a 1 × 1 projection convolution layer for reducing channel dimensions back to a lower-dimensional representation. In addition, EfficientNet-B0 incorporates a squeeze-and-excitation (SE) module that performs channel attention by adaptively recalibrating the importance of each feature channel, thereby enhancing the model’s ability to emphasize informative image features [11]. Another important component of EfficientNet-B0 is its use of the Swish activation function instead of the conventional ReLU. The Swish function improves signal propagation continuity within the network and helps reduce information loss during the learning process. Consequently, EfficientNet-B0 demonstrates an improved capability to learn subtle image characteristics, such as variations in fish scale texture and body color patterns, which are important for fish weight-range classification under real aquaculture conditions.
Furthermore, EfficientNet-B0 employs the Swish activation function, which has been reported in previous studies to provide superior DL performance compared with the conventional ReLU activation function [33,34]. This improvement is primarily attributed to the ability of Swish to enhance gradient flow continuity throughout the network while reducing information loss during the learning process. As a result, the Swish activation function can improve feature learning capability, particularly for complex image patterns and subtle visual characteristics. The Swish activation function can be defined as Equation (1):
FSwish (x) = x/(1 + e−βx)
where FSwish (x) represents the Swish activation function, x is the input value, e denotes Euler’s number, and β is a trainable parameter that can be optimized during network training. This formulation enables smoother gradient propagation and improves learning stability within the network [34]. Owing to its combination of high classification accuracy, computational efficiency, and capability to process complex image data, EfficientNet-B0 was selected in the present study as the primary architecture for deep spatial feature extraction from red tilapia images. The basic EfficientNet-B0 architecture is shown in Figure 5.
In the present study, EfficientNet-B0 was selected as the primary model for deep feature extraction because of its high capability to balance classification accuracy and model complexity through the compound scaling approach, which systematically optimizes network depth, width, and image resolution. EfficientNet-B0 was initialized using pretrained ImageNet weights and modified by removing the fully connected layer to enable deep feature extraction from UAV-based red tilapia images. The extracted features represented important fish characteristics, including morphological features and coloration patterns, which are closely associated with fish weight estimation. Subsequently, principal component analysis (PCA) was applied to reduce feature dimensionality, eliminate redundant information, and decrease computational complexity before the ensemble learning process.

2.6. XGBoost

Extreme gradient boosting (XGBoost) is a boosting-based ensemble learning technique developed to improve model stability and predictive accuracy by sequentially constructing multiple decision trees, in which each subsequent tree learns from the errors generated by the previous trees. This iterative learning strategy enables the model to progressively improve prediction performance. A key advantage of XGBoost is its use of both first-order and second-order gradient information from the loss function, combined with regularization techniques to control model complexity, reduce overfitting, and improve learning efficiency when handling highly complex image data. Previous studies have demonstrated that XGBoost can improve classification performance and prediction accuracy in aquatic animal image analysis applications [9,15].

2.7. Model Development Pipeline

Hybrid CNN-XGBoost: The model development process consisted of two main stages: feature extraction using CNN and classification using XGBoost. Red tilapia images were resized to 64 × 64 pixels and passed through a CNN architecture composed of convolutional, pooling, and flatten layers to extract important image characteristics, including fish shape, texture, and body patterns. The flatten layer transformed the extracted image features into a one-dimensional feature vector representing the image information. The generated feature vectors were subsequently forwarded to the XGBoost classifier to categorize red tilapia into nine weight ranges through a gradient boosting decision tree mechanism.
Hybrid EfficientNet-B0-XGBoost: This model employed EfficientNet-B0 as the backbone architecture for deep feature extraction from red tilapia images. The training procedure involved a two-phase fine-tuning strategy. In phase 1, all backbone layers were frozen, and only the classifier head was trained to adapt the model to real fish image characteristics. In phase 2, all layers were unfrozen to enable EfficientNet-B0 to learn finer image-specific details of red tilapia, including body coloration patterns and morphological structures. After the global average pooling layer, a 1280-dimensional feature vector, corresponding to the final channel dimension of the original EfficientNet-B0 architecture [21], was extracted. Principal component analysis (PCA) was subsequently applied to reduce feature dimensionality from 1280 features to 128 principal components, thereby removing redundant information and retaining the most informative components before classification using XGBoost. Finally, XGBoost classified red tilapia into nine weight ranges using a boosting mechanism, thereby improving classification accuracy and enhancing model stability when handling highly variable image conditions obtained from real aquaculture environments.
In the model optimization process, training was initiated at 10 tuning units, namely epochs and n_estimators, and increased incrementally by 10 units until no further improvement in mean classification accuracy was observed across three consecutive tuning levels. To evaluate model stability and reduce the effects of stochastic variation during the learning process, all models at every tuning level were independently repeated five times, and the results are reported as the mean ± standard deviation.
For both Hybrid CNN-XGBoost and Hybrid EfficientNet-B0-XGBoost models, the image datasets were randomly partitioned into training (80%), validation (10%), and testing (10%) subsets using a stratified sampling strategy based on fish weight classes. Dataset partitioning was performed at the image level after image preprocessing and patch extraction, with a fixed random seed of 42. Because the partitioning was conducted at the image level rather than at the flight-session level, images originating from the same UAV flight session may have been distributed across the training, validation, and testing subsets. Therefore, a potential risk of similarity among samples originating from the same UAV flight session cannot be completely excluded. For the Hybrid EfficientNet-B0-XGBoost model, data augmentation, including random rotation, translation, brightness adjustment, shear transformation, zooming, and horizontal flipping, was applied exclusively to the training dataset to improve model generalization. The validation and testing datasets were not augmented and were retained as independent datasets for model evaluation.

2.8. Performance Evaluation

Model evaluation was performed using four primary metrics: accuracy, precision, recall, and F1 score. Accuracy reflects the ratio of correctly classified instances to the total number of samples. Precision indicates how many predicted positive outcomes were truly positive, whereas recall measures the proportion of actual positives that were accurately detected. F1 score, representing the harmonic mean of precision and recall, provides a balanced assessment of model performance between sensitivity and specificity.
All tasks related to data processing, image preprocessing, model development, training, evaluation, and visualization (Section 2.7 and Section 2.8) were performed using Python (version 3.11) within the Google Colaboratory cloud computing environment (Google LLC, Mountain View, CA, USA). For the Hybrid CNN-XGBoost model, the primary libraries included TensorFlow (version 2.19.0)/Keras (version 3.10.0) for CNN construction and training, OpenCV (version 4.11.0) for image processing, NumPy (version 2.1.3) for numerical computation, XGBoost (version 3.0.0) for gradient-boosting classification, Scikit-learn (version 1.6.1) for dataset partitioning and performance evaluation, and Matplotlib (version 3.10.0) and Seaborn Seaborn (version 0.13.2) for visualization and confusion matrix generation. For the Hybrid EfficientNet-B0-XGBoost model, TensorFlow/Keras was additionally used for transfer learning and two-phase fine-tuning of the EfficientNet-B0 architecture, while Scikit-learn was employed for label encoding, PCA, model evaluation, and data partitioning. Additional libraries included Pandas (version 2.2.3) for data management, OpenCV for image handling, NumPy for numerical operations, XGBoost for classification, and Matplotlib and Seaborn for graphical visualization and performance reporting.

2.9. Code Availability

The code used for image preprocessing, model development, training, and analysis is available from the corresponding authors upon reasonable request.

3. Results

3.1. Water Quality, Fish Weight, and Image Acquisition

The average water quality parameters throughout the experimental period, including DO, Temp, pH, TAN, NO2-N, ALK, and Trans, were 5.14 ± 0.52 mg/L, 26.58 ± 1.29 °C, 7.61 ± 0.06, 0.04 ± 0.04 mg/L, 0.01 ± 0.03 mg/L, 97.37 ± 7.94 mg/L, and 81.67 ± 10.71 cm, respectively. Based on the nine sampling periods conducted throughout the study, the average fish body weights were 92.00 ± 14.56, 137.88 ± 25.73, 178.41 ± 35.10, 241.54 ± 46.54, 359.27 ± 61.12, 449.41 ± 120.78, 595.17 ± 118.13, 652.78 ± 100.86, and 732.74 ± 101.27 g/fish, respectively. For UAV image acquisition, a total of nine flight sessions were conducted during the study period. Each flight session generated approximately 300 images for image processing, resulting in a total of 2700 images used for model development and analysis. The detailed experimental data are presented in Table 1. Representative examples of the processed fish images for the 5 × 5 m and 2 × 2 m image sizes are shown in Figure 6 and Figure 7, respectively.

3.2. Model Performance and Processing Time

For the Hybrid CNN-XGBoost model using 5 × 5 m images, the highest model performance was obtained at 20 tuning units, with mean accuracy, precision, recall, and F1-score values of 0.988 ± 0.008, 0.988 ± 0.008, 0.988 ± 0.008, and 0.988 ± 0.008, respectively. The total computational workflow time of the model was 11.410 ± 0.447 s, whereas the average computational workflow time per image was 0.038 ± 0.001 s. In contrast, for the 2 × 2 m images, the highest performance of the Hybrid CNN-XGBoost model was achieved at 50 tuning units, with mean accuracy, precision, recall, and F1-score values of 0.850 ± 0.022, 0.856 ± 0.025, 0.850 ± 0.022, and 0.850 ± 0.022, respectively. The total computational workflow time was 19.616 ± 0.448 s, whereas the average computational workflow time per image was 0.065 ± 0.001 s.
In terms of backbone enhancement from CNN to Hybrid EfficientNet-B0-XGBoost, the results demonstrated that, for the 5 × 5 m images, the highest model performance was achieved at 40 tuning units, with mean accuracy, precision, recall, and F1-score values of 0.977 ± 0.021, 0.977 ± 0.021, 0.977 ± 0.021, and 0.977 ± 0.021, respectively. The total computational workflow time of the model was 19,502.000 ± 1842.333 s, whereas the average computational workflow time per image was 65.007 ± 6.141 s. For the 2 × 2 m images, the highest performance of the Hybrid EfficientNet-B0-XGBoost model was obtained at 30 tuning units, with mean accuracy, precision, recall, and F1-score values of 0.900 ± 0.010, 0.900 ± 0.010, 0.900 ± 0.010, and 0.898 ± 0.013, respectively. The total computational workflow time was 4254.800 ± 430.992 s, whereas the average computational workflow time per image was 14.183 ± 1.437 s. The detailed model performance and computational workflow time results are presented in Table 2.
For class-based classification accuracy, representative confusion matrices are shown in Figure 8, and the mean classification accuracies for each fish weight class are presented in Figure 9. For the Hybrid CNN-XGBoost model using 5 × 5 m images, the mean classification accuracies for Classes 1–9 were 98.000 ± 1.826, 100.000 ± 0.000, 99.333 ± 1.491, 96.667 ± 0.000, 97.333 ± 1.491, 100.000 ± 0.000, 98.000 ± 1.826, 94.667 ± 1.826, and 100.000 ± 0.000%, respectively. In contrast, for the 2 × 2 m images, the mean classification accuracies for Classes 1–9 were 92.667 ± 1.491, 98.000 ± 2.981, 86.667 ± 3.333, 67.333 ± 2.789, 66.667 ± 7.071, 88.667 ± 9.006, 90.000 ± 4.082, 86.000 ± 3.651, and 88.667 ± 5.055%, respectively. For the Hybrid EfficientNet-B0-XGBoost model using 5 × 5 m images, the mean classification accuracies for Classes 1–9 were 100.000 ± 0.000, 100.000 ± 0.000, 95.833 ± 3.191, 92.500 ± 9.574, 91.667 ± 4.303, 100.000 ± 0.000, 100.000 ± 0.000, 99.167 ± 1.667, and 100.000 ± 0.000%, respectively. Meanwhile, for the 2 × 2 m images, the mean classification accuracies for Classes 1–9 were 100.000 ± 0.000, 99.333 ± 1.491, 82.667 ± 4.346, 83.333 ± 4.082, 71.333 ± 7.303, 100.000 ± 0.000, 79.333 ± 5.447, 95.333 ± 2.981, and 96.667 ± 0.000%, respectively.

4. Discussion

4.1. Water Quality, Fish Weight, and Image Acquisition

The average values of all measured water quality parameters were within suitable ranges for red tilapia culture. DO remained above 3 mg/L, which is considered adequate for tilapia growth and survival [35]. Temp was maintained within the suitable range of 26–32 °C, whereas pH remained within the optimal range of 6.5–8.0. ALK values were within the recommended range of 50–400 mg/L [36]; TAN and NO2-N concentrations remained below 1 mg/L, which is considered safe for tilapia culture [37]. In addition, the average Trans value (81.67 ± 10.71 cm) showed no apparent negative effects on red tilapia feeding behavior or growth performance [9].
Beyond supporting fish growth and welfare, the favorable water quality conditions observed in the present study likely contributed to the quality and consistency of the UAV-derived image dataset used for model development. Adequate DO and low TAN levels are associated with normal feeding activity, growth performance, and behavioral patterns of tilapia [35,37]. Under such conditions, fish are more likely to exhibit consistent swimming and aggregation behaviors, which may improve fish visibility and detectability within UAV-based aerial images. Furthermore, the relatively high Trans observed during the study enhanced image clarity and facilitated fish observation from aerial imagery, consistent with the findings reported by Taparhudee et al. [9]. In contrast, deteriorated water quality conditions, such as low DO concentrations, elevated TAN levels, or reduced Trans, may alter fish behavior, reduce fish visibility, and increase image variability, potentially decreasing the effectiveness of image-based feature extraction and classification. Therefore, the favorable environmental conditions observed in this study likely contributed not only to fish production performance but also to the reliability and effectiveness of UAV-based fish weight-range classification.
For the fish weight, the observed minimum and maximum fish weights partially overlapped among adjacent weight classes. This overlap reflects the natural size heterogeneity commonly observed in commercial red tilapia production systems, where fish are not completely size-graded during the grow-out period. Consequently, the proposed AI-based classification framework was developed under realistic farming conditions rather than under strictly controlled size distributions.
For image acquisition, the UAV flight altitude of 3.5 m was sufficient to fully cover the 5 × 5 m cage area (Figure 1b), allowing the captured imagery to maintain an appropriate ground sample distance (GSD) for image analysis and fish feature extraction [38,39,40]. In addition, image collection was conducted during the morning prior to feeding, which helped minimize the effects of water-surface glare and coincided with periods when red tilapia tended to aggregate closer to the water surface. These conditions improved the visibility of fish within the images and enhanced the effectiveness of fish weight-range detection and classification [9].

4.2. Effects of Image Size on Model Performance

The results demonstrated that the use of 5 × 5 m images provided higher fish weight-range classification performance than 2 × 2 m images across all models evaluated in this study. This improvement can be attributed to the ability of larger images to more effectively preserve the spatial context of the aquaculture system, including fish distribution patterns, stocking density, and aggregation behavior, all of which represent important information for DL-based image analysis. This is particularly relevant for UAV-based image analysis, where image coverage area and spatial resolution directly influence feature extraction capability and object classification accuracy [25]. The findings of the present study are consistent with those of several previous studies. Quintana et al. [23] reported that the use of larger image patches or multiscale image information significantly improved model performance. Similarly, de Bem et al. [24] demonstrated that larger image patches preserved more spatial contextual information, thereby enabling the model to better learn the relationships between objects and their surrounding environments. Ashraf et al. [26] further reported that broader image regions enhanced the ability of the model to simultaneously learn both local object features and global spatial features, whereas smaller image regions often resulted in the loss of structural and contextual information, thereby reducing classification performance. In the present study, the 5 × 5 m images capture both individual fish characteristics and collective fish aggregation patterns within the cage culture system. These image characteristics may better reflect the relationships among fish size, stocking density, and swimming behavior within the farming environment. In contrast, the 2 × 2 m images primarily focused on regions with high fish aggregation density, which may limit the available spatial context and reduce the ability of the models to learn broader system-level spatial relationships.

4.3. Effects of Backbone Enhancement from CNN to EfficientNet-B0

For the 2 × 2 m image analysis, the Hybrid EfficientNet-B0-XGBoost model clearly outperformed the Hybrid CNN-XGBoost model, achieving the highest classification accuracy of 0.900 ± 0.010 at 30 tuning units, whereas the highest accuracy of the Hybrid CNN-XGBoost model was 0.850 ± 0.022 at 50 tuning units. These findings indicate that the backbone architecture plays a critical role in classification performance when the available spatial context within the image is limited. The 2 × 2 m image patches were extracted from regions with high fish aggregation density, resulting in reduced cage-level contextual information, including fish distribution patterns, inter-fish spatial relationships, and surrounding spatial characteristics, compared with the 5 × 5 m images. Consequently, the models relied more heavily on the capability of the backbone architecture to extract fine-grained features from spatially constrained image data. These findings are consistent with previous studies related to spatial scale and contextual representation, which reported that image size and the amount of spatial context within an image directly influence the performance of DL models in learning object characteristics and spatial relationships within images [22,23,24,25].
The superior performance of the Hybrid EfficientNet-B0-XGBoost model for the 2 × 2 m images can be explained by the architectural characteristics of EfficientNet-B0, which was developed based on the compound scaling concept that systematically balances network depth, width, and image resolution. In addition, EfficientNet-B0 incorporates MBConv blocks, which improve deep feature extraction efficiency while maintaining an appropriate number of model parameters [20]. In the present study, EfficientNet-B0 was further optimized using a two-phase fine-tuning strategy. During phase 1, the backbone layers were frozen to preserve the general image features learned from the ImageNet dataset, whereas phase 2 involved fine-tuning all layers to enable the model to learn red tilapia-specific image characteristics, including body texture, scale patterns, color intensity, and surface shadow characteristics more effectively. This training strategy improved the capability of the model to extract fine-grained features associated with fish weight-range classification, particularly when the available spatial context within the image was limited. Furthermore, the MBConv structure and SE mechanism of EfficientNet-B0 enabled the model to selectively emphasize the most informative image features relevant to classification. These findings are consistent with previous studies demonstrating that EfficientNet-based architectures possess strong capabilities for analyzing complex image data across medical imaging, agricultural applications, and aquatic animal image classification tasks [10,11,12].
The findings of the present study are also consistent with those of Córdova et al. [19], who reported that EfficientNet-based architectures improved fish classification and weight estimation performance under highly complex and variable image conditions. Similar findings were reported by Feng et al. [16] and Zhou et al. [17], who demonstrated the effectiveness of EfficientNet-B0 for fish image analysis and complex underwater image classification tasks. In the present study, the Hybrid EfficientNet-B0-XGBoost model also achieved higher precision, recall, and F1-score values than the Hybrid CNN-XGBoost model for the 2 × 2 m images. These results indicate that EfficientNet-B0 not only improved overall classification accuracy but also enhanced the balance and consistency of classification performance across multiple evaluation metrics.
However, when using the 5 × 5 m images, the results showed that the Hybrid CNN-XGBoost model outperformed the Hybrid EfficientNet-B0-XGBoost model. The Hybrid CNN-XGBoost model achieved the highest classification accuracy of 0.988 ± 0.008 at 20 tuning units, whereas the highest accuracy of the Hybrid EfficientNet-B0-XGBoost model was 0.977 ± 0.021 at 40 tuning units. In addition, Hybrid CNN-XGBoost required a substantially shorter computational workflow time, with an average computational workflow time of only 0.038 ± 0.001 s per image, compared with 65.007 ± 6.141 s per image for Hybrid EfficientNet-B0-XGBoost. These findings suggest that when sufficient spatial context is preserved within the image, such as in the 5 × 5 m images that captured fish distribution patterns, stocking density, and aggregation behavior, conventional CNN architectures may already be capable of extracting the spatial features necessary for fish weight-range classification. Consequently, the advantages of EfficientNet-B0 become less pronounced relative to the substantially increased computational cost. This trend is consistent with previous studies reporting that patch size, spatial resolution, and spatial scale strongly influence DL model performance. Images that preserve sufficient contextual relationships between objects and their surrounding environments can improve the ability of DL models to learn spatial relationships more effectively [23,24,25]. Therefore, the present study demonstrates that the effectiveness of the backbone architecture is directly associated with image size and the amount of spatial context preserved within the image. EfficientNet-B0 appears to be more suitable for smaller image patches that require fine-grained feature extraction under limited spatial context conditions, whereas conventional CNN architectures may be more appropriate when images sufficiently capture the broader spatial context of the aquaculture system, such as the 5 × 5 m images used in this study, particularly in terms of both classification accuracy and computational efficiency. These findings further suggest that backbone selection for UAV-based fish weight-range classification should not rely solely on architectural complexity, but should also consider image size, spatial context availability, data resolution, and processing-time limitations under practical aquaculture conditions [22,26].

4.4. Practical Implications for Red Tilapia Aquaculture

The findings of the present study provide practical implications for red tilapia aquaculture, particularly in the development of non-invasive fish monitoring systems. The results demonstrated that UAV-based aerial imagery combined with hybrid DL models can accurately classify fish weight ranges without the need for frequent manual sampling and weighing. Such an approach may reduce labor requirements, minimize fish handling stress, and improve production management efficiency under commercial farming conditions. In addition, the findings suggest that image size and backbone selection should be considered according to operational objectives. Larger image patches preserving broader spatial context may be advantageous for routine farm-scale monitoring, whereas EfficientNet-B0-based models may provide additional benefits when image information is spatially constrained. Beyond red tilapia culture, the proposed framework may also be adapted for other cage-cultured fish species and precision aquaculture applications involving UAV-based monitoring, biomass assessment, and AI-assisted farm management.

4.5. Limitations and Future Work

Although the present study successfully developed hybrid DL models for red tilapia weight-range classification using UAV-based aerial imagery, several limitations should be considered in future investigations. Image acquisition in this study was conducted under relatively favorable environmental conditions, particularly during periods with suitable water quality and water transparency that allowed fish aggregation patterns to be clearly observed. Therefore, the performance of the models under low-transparency conditions, such as during the rainy season when water turbidity, suspended particles, and water surface reflections substantially increase, remains unclear. These environmental conditions may reduce the effectiveness of spatial feature extraction and limit the ability of the models to accurately detect fish aggregation patterns and morphological characteristics. Future studies should therefore incorporate image datasets collected under more diverse environmental conditions to improve model generalization capability and robustness in practical aquaculture environments.
In addition, most images used in this study were acquired before feeding, when fish tended to aggregate near the water surface, allowing clearer visualization of fish schools. However, the models were not evaluated under active feeding conditions, where rapid fish movement, water surface disturbances, and the presence of feed pellets substantially increase image complexity. Future research should therefore investigate the feasibility of image analysis during feeding periods to develop integrated AI systems capable of simultaneously evaluating fish weight ranges and feeding behavior from the same image dataset.
Another practical limitation associated with the use of large image patches, particularly the 5 × 5 m image size, is the presence of non-target objects commonly observed in commercial river cage aquaculture systems. As illustrated in Figure 10 and Figure 11, mooring ropes used to secure cages to the riverbank, cage structures, floating devices, feed bags, and other farming equipment are frequently present around cage boundaries and may be captured within UAV imagery. These objects can introduce background clutter, visual interference, and partial occlusion of fish aggregation areas, thereby reducing the effectiveness of feature extraction and potentially affecting model robustness under practical farming conditions. Although the fish-centered image extraction approach adopted in this study minimized some of these effects, the influence of non-target objects may become more pronounced in large-scale commercial farms where infrastructure density is considerably higher.
A further limitation of the present study is that the comparison was restricted to two hybrid frameworks, namely Hybrid CNN-XGBoost and Hybrid EfficientNet-B0-XGBoost. The primary objective of this study was to investigate the effects of image scale and backbone enhancement from CNN to EfficientNet-B0 within a hybrid learning framework. Therefore, standalone DL models, standalone XGBoost, traditional handcrafted image features, and comprehensive ablation experiments were not included in the present analysis. Although previous studies have demonstrated the effectiveness of hybrid learning approaches for fish weight classification, the relative contributions of individual model components could not be fully quantified within the scope of the current experimental design. Future studies should therefore perform comprehensive baseline comparisons and ablation analyses to further quantify the relative contributions of backbone architectures, classification algorithms, and image-scale effects on model performance.
Finally, the system developed in this study was based on offline image processing after UAV flight completion. Future developments should focus on real-world deployment through platforms or mobile applications capable of integrating UAV systems, AI-based image analysis, and mobile devices to enable near-real-time or real-time fish weight estimation and feeding behavior analysis immediately after image acquisition. Such advancement could further improve precision aquaculture management by reducing labor requirements, minimizing fish handling stress, and enhancing farm management efficiency under commercial aquaculture conditions.

5. Conclusions

This study proposed an artificial intelligence framework for red tilapia weight-range classification using UAV-based aerial imagery by comparing Hybrid CNN-XGBoost and Hybrid EfficientNet-B0-XGBoost models with two image sizes, namely 5 × 5 m and 2 × 2 m. The results demonstrated that both image size and backbone architecture directly influenced model performance. Overall, 5 × 5 m images consistently provided higher classification performance because they preserved broader spatial contextual information, including fish density, distribution patterns, and aggregation behavior. Under this condition, Hybrid CNN-XGBoost achieved the best overall performance, with the highest mean accuracy of 98.8% and a substantially shorter computational workflow time than Hybrid EfficientNet-B0-XGBoost, indicating that conventional CNN architectures remain highly effective when sufficient spatial context is available. In contrast, under the 2 × 2 m image condition, where spatial context was more limited, Hybrid EfficientNet-B0-XGBoost outperformed Hybrid CNN-XGBoost and achieved the highest mean accuracy of 90.0%, reflecting the superior capability of EfficientNet-B0 for fine-grained feature extraction through MBConv blocks, compound scaling, and attention-based feature extraction mechanisms. These findings indicate that larger images improve the ability of DL models to preserve both local object features and broader spatial relationships, whereas backbone enhancement from CNN to EfficientNet-B0 becomes more beneficial when image information is spatially constrained or highly complex. In addition, this study highlights the strong potential of integrating UAV technology with hybrid DL approaches for non-invasive fish weight monitoring in precision aquaculture systems, which can reduce labor requirements, minimize fish handling stress, and improve farm management efficiency. Therefore, Hybrid CNN-XGBoost with 5 × 5 m images demonstrated the best overall performance among the evaluated models under the experimental conditions of the present study, whereas Hybrid EfficientNet-B0-XGBoost with 2 × 2 m images represented a promising alternative when spatial context was limited.

Author Contributions

Conceptualization, W.T. and R.J.; methodology, P.S. and R.J.; software, P.S. and R.J.; validation, P.S. and R.J.; formal analysis, P.S. and R.J.; investigation, P.S. and R.J.; resources, R.J.; data curation, P.S. and R.J.; writing—original draft preparation, P.S. and R.J.; writing—review and editing, P.S., M.K., W.T. and R.J.; visualization, W.T. and R.J.; supervision, W.T., M.K. and R.J.; project administration, R.J.; funding acquisition, R.J. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the Fundamental Fund of Kasetsart University through the Kasetsart University Research and Development Institute (KURDI), fiscal year 2026, under grant number FF(KU-S)29.69, with financial support from the Ministry of Higher Education, Science, Research and Innovation (MHESI), Thailand Science Research and Innovation (TSRI), Thailand.

Institutional Review Board Statement

This research was approved by the Kasetsart University Institutional Animal Care and Use Committee (certificate no. ACKU 68-FIS-032) on 30 October 2025.

Informed Consent Statement

Not applicable.

Data Availability Statement

The datasets generated and analyzed during the current study, including UAV-based aerial imagery and the coding frameworks for all developed models, are available from the corresponding author upon reasonable request.

Acknowledgments

The authors sincerely appreciate the assistance provided by the staff of Fishbear Farm and the Aquacultural Engineering Laboratory throughout this study. The corresponding author used ChatGPT (OpenAI, ChatGPT Plus) to assist with English language editing, code verification, and the generation of illustrative images describing the workflow and processing framework of the developed models. All AI-assisted outputs were generated under the direct instruction, supervision, and critical evaluation of the corresponding author. The authors confirm that ChatGPT had no role in the scientific interpretation, experimental design, data analysis, or intellectual decision-making of this study. Full responsibility for the accuracy, integrity, and originality of the manuscript remains with the authors.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Food and Agriculture Organization (FAO). The State of World Fisheries and Aquaculture 2020; FAO: Rome, Italy, 2020; Available online: https://www.fao.org/documents/card/en/c/ca9229en (accessed on 7 October 2025).
  2. Dey, M.M.; Gupta, M.V. Socioeconomics of disseminating genetically improved Nile tilapia in Asia: An introduction. Aquac. Econ. Manag. 2000, 4, 5–11. [Google Scholar] [CrossRef]
  3. Ansari, F.A.; Nasr, M.; Guldhe, A.; Gupta, S.K.; Rawat, I.; Bux, F. Techno-economic feasibility of algal aquaculture via fish and biodiesel production pathways: A commercial-scale application. Sci. Total Environ. 2020, 704, 135259. [Google Scholar]
  4. Sgnaulin, T.; Durigon, E.G.; Pinho, S.M.; Jerônimo, T.; de Alcantara Lopes, D.L.; Emerenciano, M.G.C. Nutrition of genetically improved farmed tilapia (GIFT) in biofloc technology system: Optimization of digestible protein and digestible energy levels during nursery phase. Aquaculture 2020, 521, 734998. [Google Scholar] [CrossRef]
  5. Pongthana, N.; Nguyen, N.H.; Ponzoni, R.W. Comparative performance of four red tilapia strains and their crosses in fresh- and saline water environments. Aquaculture 2010, 308, S109–S114. [Google Scholar] [CrossRef]
  6. Ashley, P.J. Fish welfare: Current issue in aquaculture. Appl. Anim. Behav. Sci. 2007, 104, 199–235. [Google Scholar] [CrossRef]
  7. Silva, T.S.D.C.; Santos, L.D.D.; Silva, L.C.R.D.; Michelato, M.; Furuya, V.R.B.F.; Furuya, W.M. Length-weight relationship and prediction equations of body composition for growing-finishing cage-farmed Nile tilapia. Rev. Bras. Zootec. 2015, 44, 133–137. [Google Scholar] [CrossRef]
  8. Viazzi, S.; Van Hoestenberghe, S.; Goddeeris, B.M.; Berckmans, D. Automatic mass estimation of Jade perch Scortum barcoo by computer vision. Aquac. Eng. 2015, 64, 42–48. [Google Scholar] [CrossRef]
  9. Taparhudee, W.; Jongjaraunsuk, R.; Nimitkul, S.; Suwannasing, P.; Mathurossuwan, W. Optimizing convolutional neural networks, XGBoost, and hybrid CNN—XGBoost for precise red tilapia (Oreochromis niloticus Linn.) weight estimation in river cage culture with aerial imagery. AgriEngineering 2024, 6, 1235–1251. [Google Scholar]
  10. Alruwaili, M.; Mohamed, M. An Integrated Deep Learning Model with EfficientNet and ResNet for Accurate Multi-Class Skin Disease Classification. Diagnostics 2025, 15, 551. [Google Scholar] [CrossRef] [PubMed]
  11. Aksoy, S.; Dasgupta, P. AI-Powered Neuro-Oncology: EfficientNetB0’s Role in Tumor Differentiation. Clin. Transl. Neurosci. 2025, 9, 2. [Google Scholar] [CrossRef]
  12. Hu, K.; Li, H.; Fu, X.; Zhou, S. Customized Weighted Ensemble of Modified Transfer Learning Models for the Detection of Sugarcane Leaf Diseases. Electronics 2024, 13, 4715. [Google Scholar] [CrossRef]
  13. Konovalov, D.A.; Saleh, A.; Domingos, J.A.; White, R.D.; Jerry, D.R. Estimating mass of harvested Asian seabass Lates calcarifer from Images. World J. Eng. Technol. 2018, 6, 15–23. [Google Scholar]
  14. Tengtrairat, N.; Woo, W.L.; Parathai, P.; Rinchumphu, D.; Chaichana, C. Non-intrusive fish weight estimation in Turbid water using deep learning and regression models. Sensors 2022, 22, 5161. [Google Scholar] [CrossRef] [PubMed]
  15. Hamzaoui, M.; Aoueileyine, M.O.E.; Romdhani, L.; Bouallegue, R. Optimizing XGBoost performance for fish weight prediction through parameter pre-selection. Fishes 2023, 8, 505. [Google Scholar] [CrossRef]
  16. Feng, G.; Kan, X.; Chen, M. A multi–step image pre–enhancement strategy for a fish feeding behavior analysis using efficientnet. Appl. Sci. 2024, 14, 5099. [Google Scholar]
  17. Zhou, Z.; Liu, M.; Ji, H.; Wang, Y.; Zhu, Z. Underwater image classification based on efficientnetB0 and two—hidden—layer random vector functional link. J. Ocean Univ. China. 2024, 23, 392–404. [Google Scholar]
  18. Biswal, S.R.; Kumar, A.V.S.P.; Punuri, S.B.; Behera, S.K. DeepFishNet: A hybrid deep learning model for real—time fish disease classification. In Proceedings of the 2025 11th International Conference on Communication and Signal Processing (ICCSP), Melmaruvathur, India, 2–4 April 2025; pp. 700–705. [Google Scholar] [CrossRef]
  19. Córdova, M.; Sokolova, M.; van Helmond, A.; Mencarelli, A.; Kootstra, G. Multi—Stage Image—Based Approach for Fish Detection and Weight Estimation. Biosyst. Eng. 2025, 257, 104239. [Google Scholar] [CrossRef]
  20. Tan, M.; Le, Q.V. EfficientNet: Rethinking model scaling for convolutional neural networks. In Proceedings of the 36th International Conference on Machine Learning (ICML), Long Beach, CA, USA, 9–15 June 2019; Volume 97, pp. 6105–6114. [Google Scholar]
  21. Zhang, Y.; Zhou, D.; Chen, S.; Gao, S.; Ma, Y. Single-image crowd counting via multi-column convolutional neural network. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, 27–30 June 2016; pp. 589–597. [Google Scholar]
  22. Li, W.; Hsu, C.-Y. GeoAI for large-scale image analysis and machine vision: Recent progress of artificial intelligence in geography. ISPRS Int. J. Geo-Inf. 2022, 11, 385. [Google Scholar] [CrossRef]
  23. Quintana, G.I.; Li, Z.; Vancamberg, L.; Mougeot, M.; Desolneux, A.; Muller, S. Exploiting patch sizes and resolutions for multi-scale deep learning in mammogram image classification. Bioengineering 2023, 10, 534. [Google Scholar] [CrossRef] [PubMed]
  24. de Bem, P.P.; de Carvalho Júnior, O.A.; de Carvalho, O.L.F.; Gomes, R.A.T.; Guimarães, R.F. Performance analysis of deep convolutional autoencoders with different patch sizes for change detection from burnt areas. Remote Sens. 2020, 12, 2576. [Google Scholar] [CrossRef]
  25. Chen, J.; Chen, Z.; Huang, R.; You, H.; Han, X.; Yue, T.; Zhou, G. The effects of spatial resolution and resampling on the classification accuracy of wetland vegetation species and ground objects: A study based on high spatial resolution UAV images. Drones 2023, 7, 61. [Google Scholar] [CrossRef]
  26. Ashraf, M.; Alharthi, R.; Chen, L.; Umer, M.; Alsubai, S.; Eshmawi, A.A. Attention 3D central difference convolutional dense network for hyperspectral image classification. PLoS ONE 2024, 19, e0300013. [Google Scholar] [CrossRef] [PubMed]
  27. You, W.; Shen, C.; Wang, D.; Chen, L.; Jiang, X.; Zhu, Z. An intelligent deep feature learning method with improved activation functions for machine fault diagnosis. IEEE Access 2020, 8, 1975–1985. [Google Scholar] [CrossRef]
  28. Chen, L.; Li, S.; Bai, Q.; Yang, J.; Jiang, S.; Miao, Y. Review of Image Classification Algorithms Based on Convolutional Neural Networks. Remote Sens. 2021, 13, 4712. [Google Scholar] [CrossRef]
  29. Krizhevsky, A.; Sutskever, I.; Hinton, G.E. ImageNet classification with deep convolutional neural networks. Commun. ACM 2017, 60, 84–90. [Google Scholar] [CrossRef]
  30. Taye, M.M. Theoretical Understanding of Convolutional Neural Network: Concepts, Architectures, Applications, Future Directions. Computation 2023, 11, 52. [Google Scholar] [CrossRef]
  31. Mienye, I.D.; Swart, T.G. A Comprehensive Review of Deep Learning: Architectures, Recent Advances, and Applications. Information 2024, 15, 755. [Google Scholar] [CrossRef]
  32. Jongjaraunsuk, R.; Taparhudee, W. Optimizing prediction of key water quality parameters in tilapia river-based cage culture system using simple parameters based on different deep learning models. Agric. Nat. Resour. 2025, 59, 590412. [Google Scholar] [CrossRef]
  33. Liu, K.; Wu, J. Dual Adaptive Neural Network for Solving Free-Flow Coupled Porous Media Models Under Unique Continuation Problem. Computation 2025, 13, 228. [Google Scholar] [CrossRef]
  34. Radočaj, P.; Radočaj, D.; Martinović, G. Optimizing Convolutional Neural Network Architectures with Optimal Activation Functions for Pediatric Pneumonia Diagnosis Using Chest X-Rays. Big Data Cogn. Comput. 2025, 9, 25. [Google Scholar] [CrossRef]
  35. Tran-Duy, A.; Van Dam, A.A.; Schrama, J.W. Feed intake, growth and metabolism of Nile tilapia (Oreochromis niloticus) in relation to dissolved oxygen concentration. Aquac. Res. 2012, 43, 730–744. [Google Scholar]
  36. Lawson, T.B. Fundamentals of Aquacultural Engineering; Chapman & Hall: New York, NY, USA, 1995. [Google Scholar]
  37. Sriyasak, P.; Chitmanat, C.; Whangchai, N.; Promya, J.; Lebel, L. Effect of water de-stratification on dissolved oxygen and ammonia in tilapia ponds in Northern Thailand. Int. Aquat. Res. 2012, 7, 287–299. [Google Scholar]
  38. Taparhudee, W.; Jongjaraunsuk, R.; Nimitkul, S.; Mathurossuwan, W. Application of unmanned aerial vehicle (UAV) with area image analysis of red tilapia weight estimation in river-based cage culture. J. Fish. Environ. 2023, 47, 119–130. [Google Scholar]
  39. Wallace, L.; Lucieer, A.; Watson, C.; Turner, D. Development of a UAV-LiDAR system with application to forest inventory. Remote Sens. 2012, 4, 1519–1543. [Google Scholar]
  40. Seifert, E.; Seifert, S.; Vogt, H.; Drew, D.; Aardt, J.V.; Kunneke, A.; Seifert, T. Influence of drone altitude, image overlap, and optical sensor resolution on multi-view reconstruction of forest images. Remote Sens. 2019, 11, 1252. [Google Scholar] [CrossRef]
Figure 1. (a) The DJI Air 2S (Mavic) UAV used for image acquisition, (b) the original UAV-based aerial image showing the location of the 5 × 5 m and 2 × 2 m image patches, (c) the extracted 5 × 5 m image patch, and (d) the extracted 2 × 2 m image patch.
Figure 1. (a) The DJI Air 2S (Mavic) UAV used for image acquisition, (b) the original UAV-based aerial image showing the location of the 5 × 5 m and 2 × 2 m image patches, (c) the extracted 5 × 5 m image patch, and (d) the extracted 2 × 2 m image patch.
Agriengineering 08 00274 g001
Figure 2. Workflow of the fish-centered 5 × 5 m patch extraction for UAV-based red tilapia image processing. (a) Original RGB aerial image acquired from the UAV platform above the river cage. (b) Conversion of the RGB image into grayscale format to simplify image intensity processing. (c) Application of Gaussian blur to reduce image noise and improve object continuity. (d) Segmentation of fish regions from the water background using Otsu thresholding. (e) Morphological operations, including opening and closing, applied to reduce noise and enhance the continuity of fish regions. (f) Estimation of the fish centroid based on the spatial distribution of foreground fish pixels. The red dot indicates the estimated fish centroid, whereas the yellow vertical line indicates the reference line passing through the estimated fish centroid to facilitate the selection of the 5 × 5 m image patch. (g) Selection of the 5 × 5 m region centered on the estimated fish centroid. (h) Final extracted 5 × 5 m image patch used as input for hybrid DL model training and fish weight-range classification.
Figure 2. Workflow of the fish-centered 5 × 5 m patch extraction for UAV-based red tilapia image processing. (a) Original RGB aerial image acquired from the UAV platform above the river cage. (b) Conversion of the RGB image into grayscale format to simplify image intensity processing. (c) Application of Gaussian blur to reduce image noise and improve object continuity. (d) Segmentation of fish regions from the water background using Otsu thresholding. (e) Morphological operations, including opening and closing, applied to reduce noise and enhance the continuity of fish regions. (f) Estimation of the fish centroid based on the spatial distribution of foreground fish pixels. The red dot indicates the estimated fish centroid, whereas the yellow vertical line indicates the reference line passing through the estimated fish centroid to facilitate the selection of the 5 × 5 m image patch. (g) Selection of the 5 × 5 m region centered on the estimated fish centroid. (h) Final extracted 5 × 5 m image patch used as input for hybrid DL model training and fish weight-range classification.
Agriengineering 08 00274 g002
Figure 3. Workflow of the automatic fish-density-based 2 × 2 m patch extraction from the previously generated 5 × 5 m image patch for UAV-based red tilapia image preprocessing. (a) Previously generated 5 × 5 m RGB image patch. (b) Conversion of the RGB image into grayscale format for intensity-based image processing. (c) Application of Gaussian blur to suppress image noise and improve the spatial continuity of fish regions. (d) Segmentation of fish objects from the water background using Otsu thresholding. (e) Morphological operations, including opening and dilation, performed to reduce noise and strengthen the connectivity of fish regions. (f) Fish-density map generated from the spatial aggregation of foreground fish pixels to identify the area with the highest fish concentration. Warmer colors (red) indicate higher fish density, whereas cooler colors (blue) indicate lower fish density. (g) Selection of the 2 × 2 m region corresponding to the highest fish-density area. The red square outlines the selected 2 × 2 image patch. (h) Final extracted 2 × 2 m image patch used as input for hybrid DL model development and red tilapia weight—range classification.
Figure 3. Workflow of the automatic fish-density-based 2 × 2 m patch extraction from the previously generated 5 × 5 m image patch for UAV-based red tilapia image preprocessing. (a) Previously generated 5 × 5 m RGB image patch. (b) Conversion of the RGB image into grayscale format for intensity-based image processing. (c) Application of Gaussian blur to suppress image noise and improve the spatial continuity of fish regions. (d) Segmentation of fish objects from the water background using Otsu thresholding. (e) Morphological operations, including opening and dilation, performed to reduce noise and strengthen the connectivity of fish regions. (f) Fish-density map generated from the spatial aggregation of foreground fish pixels to identify the area with the highest fish concentration. Warmer colors (red) indicate higher fish density, whereas cooler colors (blue) indicate lower fish density. (g) Selection of the 2 × 2 m region corresponding to the highest fish-density area. The red square outlines the selected 2 × 2 image patch. (h) Final extracted 2 × 2 m image patch used as input for hybrid DL model development and red tilapia weight—range classification.
Agriengineering 08 00274 g003
Figure 4. Conceptual representation of a CNN architecture, illustrating the sequential process from fish image input through convolution and pooling operations to fully connected layer for image classification.
Figure 4. Conceptual representation of a CNN architecture, illustrating the sequential process from fish image input through convolution and pooling operations to fully connected layer for image classification.
Agriengineering 08 00274 g004
Figure 5. (a) Framework of EfficientNet-B0, which consists of a single stream. (b) Detailed architecture of the EfficientNet-B0 model used as the feature extractor in this study. The model consists of seven main blocks, with MBConv as the basic building block.
Figure 5. (a) Framework of EfficientNet-B0, which consists of a single stream. (b) Detailed architecture of the EfficientNet-B0 model used as the feature extractor in this study. The model consists of seven main blocks, with MBConv as the basic building block.
Agriengineering 08 00274 g005
Figure 6. Representative examples of the 5 × 5 m fish images after processing from the original spatial scale: (a) Class 1, (b) Class 2, (c) Class 3, (d) Class 4, (e) Class 5, (f) Class 6, (g) Class 7, (h) Class 8, and (i) Class 9.
Figure 6. Representative examples of the 5 × 5 m fish images after processing from the original spatial scale: (a) Class 1, (b) Class 2, (c) Class 3, (d) Class 4, (e) Class 5, (f) Class 6, (g) Class 7, (h) Class 8, and (i) Class 9.
Agriengineering 08 00274 g006
Figure 7. Representative examples of the 2 × 2 m fish images after processing from the 5 × 5 m spatial scale: (a) Class 1, (b) Class 2, (c) Class 3, (d) Class 4, (e) Class 5, (f) Class 6, (g) Class 7, (h) Class 8, and (i) Class 9.
Figure 7. Representative examples of the 2 × 2 m fish images after processing from the 5 × 5 m spatial scale: (a) Class 1, (b) Class 2, (c) Class 3, (d) Class 4, (e) Class 5, (f) Class 6, (g) Class 7, (h) Class 8, and (i) Class 9.
Agriengineering 08 00274 g007
Figure 8. Representative confusion matrices for red tilapia weight-range classification using 5 × 5 m and 2 × 2 m UAV-based aerial image patches. (a) Hybrid CNN-XGBoost (5 × 5 m images) at 20 tuning units and (b) Hybrid CNN-XGBoost (2 × 2 m images) at 50 tuning units. (c) Hybrid EfficientNet-B0-XGBoost (5 × 5 m images) at 40 tuning units and (d) Hybrid EfficientNet-B0-XGBoost (2 × 2 m images) at 30 tuning units.
Figure 8. Representative confusion matrices for red tilapia weight-range classification using 5 × 5 m and 2 × 2 m UAV-based aerial image patches. (a) Hybrid CNN-XGBoost (5 × 5 m images) at 20 tuning units and (b) Hybrid CNN-XGBoost (2 × 2 m images) at 50 tuning units. (c) Hybrid EfficientNet-B0-XGBoost (5 × 5 m images) at 40 tuning units and (d) Hybrid EfficientNet-B0-XGBoost (2 × 2 m images) at 30 tuning units.
Agriengineering 08 00274 g008aAgriengineering 08 00274 g008bAgriengineering 08 00274 g008c
Figure 9. Average classification accuracy for each fish weight class calculated from the confusion matrices of the four best fine-tuning configurations: Hybrid CNN-XGBoost using 5 × 5 m images at 20 tuning units, Hybrid CNN-XGBoost using 2 × 2 m images at 50 tuning units, Hybrid EfficientNet-B0-XGBoost using 5 × 5 m images at 40 tuning units, and Hybrid EfficientNet-B0-XGBoost using 2 × 2 m images at 30 tuning units.
Figure 9. Average classification accuracy for each fish weight class calculated from the confusion matrices of the four best fine-tuning configurations: Hybrid CNN-XGBoost using 5 × 5 m images at 20 tuning units, Hybrid CNN-XGBoost using 2 × 2 m images at 50 tuning units, Hybrid EfficientNet-B0-XGBoost using 5 × 5 m images at 40 tuning units, and Hybrid EfficientNet-B0-XGBoost using 2 × 2 m images at 30 tuning units.
Agriengineering 08 00274 g009
Figure 10. UAV aerial view of a commercial river cage aquaculture system illustrating mooring ropes, cage structures, and other non-target objects that may partially obstruct fish aggregation areas and affect large-scale image extraction.
Figure 10. UAV aerial view of a commercial river cage aquaculture system illustrating mooring ropes, cage structures, and other non-target objects that may partially obstruct fish aggregation areas and affect large-scale image extraction.
Agriengineering 08 00274 g010
Figure 11. Ground-level view of a commercial river cage aquaculture system showing ropes, floating devices, feed storage materials, and farming equipment that may increase image complexity and interfere with AI-based fish weight assessment under practical farming conditions.
Figure 11. Ground-level view of a commercial river cage aquaculture system showing ropes, floating devices, feed storage materials, and farming equipment that may increase image complexity and interfere with AI-based fish weight assessment under practical farming conditions.
Agriengineering 08 00274 g011
Table 1. Fish weight and image acquisition for each UAV flight session.
Table 1. Fish weight and image acquisition for each UAV flight session.
D/M/YFlight Session/Weight ClassFish Weight (Mean ± SD) g/FishFish Weight
(Min–Max) g/Fish
TimeNumber of CagesNumber of Images/CagesTotal Number of Images
30 November 2025192.00 ± 14.5662–1297–8 a.m.650300
14 December 20252137.88 ± 25.7392–1827–8 a.m.650300
28 December 20253178.41 ± 35.10112–2627–8 a.m.650300
11 January 20264241.54 ± 46.54153–3507–8 a.m.650300
25 January 20265359.27 ± 61.12270–4607–8 a.m.650300
8 February 20266449.41 ± 120.78330–5807–8 a.m.650300
22 February 20267595.17 ± 118.13476–7487–8 a.m.650300
8 March 20268652.78 ± 100.86585–8017–8 a.m.650300
22 March 20269732.74 ± 101.27655–9067–8 a.m.650300
Table 2. Performance and computational workflow time of the Hybrid CNN-XGBoost and Hybrid EfficientNet-B0-XGBoost models for red tilapia weight-range classification using 5 × 5 m and 2 × 2 m UAV-based aerial images.
Table 2. Performance and computational workflow time of the Hybrid CNN-XGBoost and Hybrid EfficientNet-B0-XGBoost models for red tilapia weight-range classification using 5 × 5 m and 2 × 2 m UAV-based aerial images.
Image Size/ModelTuning UnitsAccuracyPrecisionRecallF1Total Computational Workflow Time (s)Average Computational Workflow Time per Image (s)
5 × 5/Hybrid CNN-XGBoost100.984 ± 0.0050.984 ± 0.0050.984 ± 0.0050.984 ± 0.0059.110 ± 1.3420.030 ± 0.004
200.988 ± 0.0080.988 ± 0.0080.988 ± 0.0080.988 ± 0.00811.410 ± 0.4470.038 ± 0.001
300.976 ± 0.0090.976 ± 0.0090.976 ± 0.0090.976 ± 0.00914.162 ± 0.4570.047 ± 0.002
400.970 ± 0.0100.976 ± 0.0080.970 ± 0.0100.970 ± 0.01016.688 ± 0.0000.056 ± 0.000
500.970 ± 0.0160.970 ± 0.0160.970 ± 0.0160.970 ± 0.01619.618 ± 0.4480.065 ± 0.001
2 × 2/Hybrid CNN-XGBoost100.610 ± 0.1240.612 ± 0.1300.610 ± 0.1240.606 ± 0.1258.892 ± 1.5310.030 ± 0.005
200.718 ± 0.1030.720 ± 0.1080.718 ± 0.1030.712 ± 0.10511.210 ± 0.0000.037 ± 0.000
300.826 ± 0.0300.824 ± 0.0290.820 ± 0.0300.818 ± 0.03314.110 ± 0.4470.047 ± 0.001
400.826 ± 0.0150.832 ± 0.0130.827 ± 0.0150.826 ± 0.01516.688 ± 0.0000.056 ± 0.000
500.850 ± 0.0220.856 ± 0.0250.850 ± 0.0220.850 ± 0.02219.616 ± 0.4480.065 ± 0.001
600.808 ± 0.0150.816 ± 0.0150.808 ± 0.0150.808 ± 0.01521.289 ± 1.1640.071 ± 0.004
700.820 ± 0.0350.832 ± 0.0300.820 ± 0.0350.820 ± 0.04124.275 ± 1.3270.081 ± 0.004
800.804 ± 0.0330.822 ± 0.0180.804 ± 0.0330.826 ± 0.04727.183 ± 2.3480.091 ± 0.008
5 × 5/Hybrid EfficientNet-B0-XGBoost100.920 ± 0.0100.920 ± 0.0100.920 ± 0.0100.920 ± 0.0106437.800 ± 516.42721.459 ± 1.721
200.940 ± 0.0080.940 ± 0.0080.940 ± 0.0080.940 ± 0.00811,381.500 ± 388.60337.938 ± 1.295
300.963 ± 0.0210.963 ± 0.0210.963 ± 0.0210.963 ± 0.02115,665.333 ± 1869.69552.218 ± 6.226
400.977 ± 0.0210.977 ± 0.0210.977 ± 0.0210.977 ± 0.02119,502.000 ± 1842.33365.007 ± 6.141
500.965 ± 0.0060.963 ± 0.0060.963 ± 0.0060.963 ± 0.00620,141.333 ± 3678.11867.138 ± 12.260
600.963 ± 0.0060.963 ± 0.0060.963 ± 0.0060.963 ± 0.00621,277.000 ± 72.50570.923 ± 0.242
700.973 ± 0.0150.973 ± 0.0150.973 ± 0.0150.973 ± 0.01526,466.333 ± 1742.84488.221 ± 5.809
2 × 2/Hybrid EfficientNet-B0-XGBoost100.786 ± 0.0540.788 ± 0.0500.786 ± 0.0540.782 ± 0.0522028.000 ± 986.7056.760 ± 3.289
200.758 ± 0.0490.756 ± 0.0490.758 ± 0.0490.754 ± 0.0502743.800 ± 1028.2729.146 ± 3.428
300.900 ± 0.0100.900 ± 0.0100.900 ± 0.0100.898 ± 0.0134254.800 ± 430.99214.183 ± 1.437
400.838 ± 0.0820.838 ± 0.0830.838 ± 0.0820.836 ± 0.0855629.400 ± 818.08318.765 ± 2.727
500.848 ± 0.0540.848 ± 0.0590.848 ± 0.0540.844 ± 0.0575748.000 ± 206.84419.160 ± 0.689
600.862 ± 0.0680.866 ± 0.0680.864 ± 0.0670.864 ± 0.0676061.400 ± 711.41920.205 ± 2.371
Note: It should be noted that the reported total computational workflow time represents the complete computational time required for model development and evaluation. The total computational workflow time included all major computational stages associated with model development and evaluation. For the Hybrid CNN-XGBoost model, this included CNN training, feature extraction, XGBoost fitting, prediction, and model evaluation. For the Hybrid EfficientNet-B0-XGBoost model, the total computational workflow time additionally included the two-phase EfficientNet-B0 fine-tuning procedure, deep feature extraction, PCA dimensionality reduction, XGBoost fitting, prediction, and model evaluation. The reported average computational workflow time per image was calculated by dividing the total computational workflow time by the number of images included in each experimental condition. Therefore, the reported values should be interpreted as computational workflow metrics rather than the inference time of a fully trained model during practical deployment. Shaded rows and bold values indicate the best-performing (optimal) tuning units for each model and image patch size. These optimal configurations were subsequently used for the confusion matrix and class-wise accuracy analyses presented in Figure 8 and Figure 9.
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

Suwannasing, P.; Kaewnern, M.; Taparhudee, W.; Jongjaraunsuk, R. AI-Based Hybrid Deep Learning for Multiscale Red Tilapia Weight-Range Classification Using UAV Imagery. AgriEngineering 2026, 8, 274. https://doi.org/10.3390/agriengineering8070274

AMA Style

Suwannasing P, Kaewnern M, Taparhudee W, Jongjaraunsuk R. AI-Based Hybrid Deep Learning for Multiscale Red Tilapia Weight-Range Classification Using UAV Imagery. AgriEngineering. 2026; 8(7):274. https://doi.org/10.3390/agriengineering8070274

Chicago/Turabian Style

Suwannasing, Pimlapat, Methee Kaewnern, Wara Taparhudee, and Roongparit Jongjaraunsuk. 2026. "AI-Based Hybrid Deep Learning for Multiscale Red Tilapia Weight-Range Classification Using UAV Imagery" AgriEngineering 8, no. 7: 274. https://doi.org/10.3390/agriengineering8070274

APA Style

Suwannasing, P., Kaewnern, M., Taparhudee, W., & Jongjaraunsuk, R. (2026). AI-Based Hybrid Deep Learning for Multiscale Red Tilapia Weight-Range Classification Using UAV Imagery. AgriEngineering, 8(7), 274. https://doi.org/10.3390/agriengineering8070274

Article Metrics

Article metric data becomes available approximately 24 hours after publication online.
Back to TopTop