The ResNet-152 model was trained for a maximum of 100 epochs, with early stopping triggered at epoch 49 (Fig 4). The best model weights were restored from epoch 44, which achieved the highest validation accuracy. During early training, performance improved rapidly. At epoch 1, training accuracy was 26.05%, while validation accuracy reached 42.10%, indicating effective transfer learning. By epoch 5, training accuracy increased to 77.83%, with validation accuracy of 78.60%. This shows fast convergence and good feature reuse from pretrained weights. Loss values consistently decreased, confirming stable optimization.
From epochs 10 to 20, the model showed strong generalization. Training accuracy improved from 86.48% to 91.60%, while validation accuracy increased from 85.87% to 92.87%. Validation loss steadily declined, indicating reduced overfitting. The residual connections helped maintain gradient flow across deep layers. The best validation performance was achieved at epoch 44, with a validation accuracy of 95.52% and a validation loss of 0.1504. Training accuracy at this stage was 96.04%. The small gap between training and validation accuracy suggests good generalization. After this point, validation accuracy plateaued, while training accuracy continued to increase slightly, indicating the onset of overfitting. Early stopping effectively prevented performance degradation. Overall, the results demonstrate that ResNet-152 is highly effective for multi-class classification of shrimp diseases.
Fig 5 presents the confusion matrix obtained from the ResNet-152 model on the test dataset with four shrimp classes. Each row represents the true class and each column represents the predicted class. Diagonal values indicate correct predictions, while off-diagonal values represent misclassifications. For the Black Gill class, 159 samples were correctly classified. A small number were misclassified as WSSV (11 samples) and Healthy (1 sample). No Black Gill sample was misclassified as Yellow head. This indicates strong discriminative ability, with limited confusion mainly with WSSV, likely due to visual symptom similarity. For the Healthy class, 169 samples were correctly identified. Only one sample was misclassified as Yellow head. No confusion occurred with Black Gill or WSSV. This shows that healthy shrimp features were clearly separated from diseased samples. For the WSSV class, 182 samples were correctly classified. Minor confusion occurred with Black Gill (12 samples), Healthy (1 sample) and Yellow head (1 sample).
The higher confusion with Black Gill suggests overlapping texture or lesion patterns in some images. For the Yellow head class, 177 samples were correctly classified. Only three samples were misclassified, one each as Black Gill, Healthy and WSSV. This indicates robust recognition of Yellow Head disease features. Overall performance is strong, as most predictions lie along the diagonal. The confusion matrix supports high classification accuracy and balanced performance across classes. The low off-diagonal values confirm that the ResNet-152 backbone effectively learned disease-specific visual patterns. The remaining errors are mainly between visually similar disease classes, which is expected in real-world shrimp disease diagnosis.
Table 1 summarizes the classification performance of the ResNet-152 model on the test dataset. For Black Gill, the model achieved a precision of 0.9244 and a recall of 0.9298. This indicates reliable detection with limited false positives and false negatives. Minor confusion with WSSV affected the recall slightly. For the Healthy class, the model performed exceptionally well. Precision reached 0.9826 and recall reached 0.9941. This shows that healthy shrimp were almost perfectly separated from diseased samples. The F1-score of 0.9883 confirms robust discrimination. For WSSV, precision and recall were 0.9381 and 0.9286, respectively. The slightly lower recall reflects confusion mainly with Black Gill. The F1-score of 0.9333 still indicates strong performance on this clinically important disease. For Yellow head, the model achieved very high precision (0.9888) and recall (0.9833). The F1-score of 0.9861 shows that Yellowhead disease features were learned effectively with minimal misclassification. An overall test accuracy of 95.82% (95% CI: 93.17%–96.37%) was obtained, along with a Matthews Correlation Coefficient (MCC) of 0.9442. MCC accounts for true and false predictions across all classes. A value close to 1 indicates strong agreement between predictions and ground truth. This high MCC confirms that the ResNet-152 model is robust and reliable for multi-class shrimp disease classification.
Fig 6 illustrates the ROC and precision-recall (PR) curves of the ResNet-152 model for the four shrimp classes. In Fig 6(a), the ROC curves for all classes are positioned close to the top-left corner, indicating a high true positive rate with a low false positive rate. The Healthy and Yellowhead classes exhibit near-perfect discrimination, as their curves approach the upper boundary of the plot. Black Gill and WSSV also demonstrate strong separability, with only slight deviation from the ideal curve. The dashed diagonal line represents rand om classification and all curves lie well above this line, confirming that the model performs significantly better than chance across all classes. Per-class AUC was computed, yielding values of 0.992 for Black Gill, 1.000 for Healthy, 0.991 for WSSV and 1.000 for Yellowhead.
In Fig 6(b), the P-R curves remain high across most recall values. This shows that the model maintains high precision even when recall increases. In practical terms, the model detects diseased shrimp accurately while producing very few false alarms. Healthy and Yellowhead classes show almost flat curves near the top, indicating extremely reliable predictions. Black Gill and WSSV show a small drop at very high recall levels, which suggests limited confusion between visually similar disease patterns.
Fig 7 presents representative qualitative prediction results of the ResNet-152 model on test images from all four shrimp classes. The displayed examples were selected to include high-confidence correct predictions as well as representative misclassifications, providing a balanced assessment of model performance across classes. For each image, the true label (T), predicted label (P) and prediction confidence are shown. For the Black Gill class, most samples are correctly classified with high confidence values above 85%. The visual symptoms, such as darkened gills and body discoloration, are consistently recognized by the model. A few samples show moderate confidence, indicating natural variation in disease appearance, but predictions remain correct. For the Healthy class, the model shows very strong performance. All displayed healthy shrimp are correctly classified with confidence values close to 99%. The clean body surface, normal coloration and absence of lesions are clearly learned features. This confirms that healthy shrimp are well separated from diseased classes.
For the WSSV class, most samples are correctly predicted, though confidence scores are comparatively lower than for Healthy and Yellowhead. One example is misclassified as Black Gill, highlighted in red. This error suggests visual overlap between WSSV symptoms and Black Gill characteristics, such as body darkening and texture changes. Despite this, the majority of WSSV samples are correctly identified. For the Yellow head class, predictions are highly accurate with strong confidence values, mostly above 95%. Even in cases with lower confidence, the predicted class remains correct. This indicates that Yellowhead disease features are distinct and consistently captured by the model.
The ablation study results, comparing the performance of different backbone architectures, are summarized in Table 2.
The ablation study indicates that ResNet152 outperformed both ResNet50 and MobileNetV2 in terms of classification performance, demonstrating its ability to capture more complex and discriminative features. While MobileNetV2 provided faster inference and lower computational cost and ResNet50 offered a balanced trade-off between efficiency and accuracy, ResNet152 achieved the most reliable predictions. Therefore, ResNet152 was selected as the final model, as its superior performance outweighs the increased computational complexity for the given application. Using 5-fold cross-validation, the model achieved an overall accuracy of 94.84% and an MCC of 0.9312, indicating strong and consistent classification performance.
Recent studies have explored diverse deep learning strategies for shrimp disease detection, including ensemble CNNs, lightweight object detectors, capsule networks and specialized convolutional architectures (Table 3). However, direct comparison across studies is inherently limited because datasets differ significantly in size, class distribution, imaging conditions and disease definitions. Therefore, performance values should be interpreted as relative indicators rather than strict benchmarks.
Büyükarıkan (2025) demonstrated that ensemble learning with heterogeneous CNNs can significantly improve performance, achieving up to 97.3% accuracy using a weighted combination of MobileNet and DenseNet models. While effective, ensemble methods increase computational complexity and deployment cost. In addition, such models typically have higher inference latency due to multiple forward passes, which may limit real-time applicability in field conditions.
Yuhuan et al., (2025) focused on real-time detection using an improved YOLOv8n model, achieving 92.7% mAP@0.5 with reduced parameters, making it suitable for edge deployment, though primarily designed for object detection rather than multi-class image classification.
Raj et al., (2025) proposed an Enhanced Recurrent Capsule Network with hybrid metaheuristic optimization, achieving 95.2% accuracy, but at the expense of increased architectural and training complexity.
Ramachandran et al. (2023) targeted single-disease diagnosis and reported 97.22% accuracy for WSSV detection using a Dense Inception CNN, demonstrating strong performance but limited generalizability across multiple diseases.
In contrast, the present study employs a single deep residual network, ResNet-152, to perform multi-class classification of shrimp diseases using the TigerShrimpBD dataset. Despite relying on a single model, the proposed approach achieved 95.82% accuracy and a high MCC of 0.9442, indicating strong agreement between predictions and ground truth across all classes. The strong ROC and P-R performance further confirms reliable threshold-independent discrimination. In terms of efficiency, the single-model design also reduces computational overhead compared to ensemble-based approaches. ResNet-152 requires only one forward pass during inference, making it more practical for deployment scenarios where latency and hardware resources are constrained, although it still remains heavier than lightweight architectures such as YOLOv8n variants. These results highlight that deep residual architectures remain highly competitive for shrimp disease diagnosis and offer practical advantages for scalable aquaculture health monitoring systems.
Limitations
This study has several limitations. A substantial portion of the dataset (approximately 72%) consists of synthetically generated images, which may introduce bias and limit generalizability to real-world farm conditions. The model was evaluated using a single stratified 60:20:20 split without cross-validation, which may affect robustness assessment. Although basic augmentation techniques were applied, more diverse transformations (
e.g., illumination and color variations) were not fully explored. In addition, while an ablation study was conducted, the computational trade-offs between model complexity and efficiency require further investigation. Finally, misclassification analysis was limited and deeper interpretability methods could provide more insight into model behavior.
Future work
Future research will focus on validating the proposed model using independent real-world farm datasets to assess generalizability. More advanced data augmentation techniques, including illumination and color variations, will be explored to improve robustness. Lightweight architectures and model optimization will be investigated to enable deployment on resource-constrained devices. Additionally, enhanced interpretability methods, such as Grad-CAM and saliency analysis, will be further utilized to better understand model decisions and reduce misclassification.