TLDR: A new three-stage AI framework significantly enhances fish freshness assessment by optimizing deep visual features. The framework fine-tunes state-of-the-art deep learning models, extracts multi-level features, and then uses classical machine learning classifiers combined with embedded feature selection. The best configuration, utilizing Swin-Tiny features, an Extra Trees classifier, and LGBM-based feature selection, achieved 85.99% accuracy on the Freshness of the Fish Eyes (FFE) dataset, outperforming previous methods by a substantial margin. This approach offers a powerful and generalizable strategy for visual quality evaluation, though further validation on larger, more diverse datasets is needed.
Ensuring the freshness of fish is a critical task for both food safety and the economic well-being of the seafood industry. Traditionally, assessing fish freshness has relied on human sensory evaluation, which can be subjective, time-consuming, and inconsistent. While deep learning has brought significant advancements to automated visual freshness prediction, challenges related to accuracy and the transparency of how these systems make decisions have persisted.
A recent study introduces a comprehensive three-stage framework designed to refine and leverage deep visual representations for more reliable fish freshness assessment. This innovative approach aims to overcome the limitations of previous methods by systematically optimizing how artificial intelligence interprets visual cues from fish eyes.
The Three-Stage Framework
The framework begins by fine-tuning five cutting-edge vision architectures: ResNet-50, DenseNet-121, EfficientNet-B0, ConvNeXt-Base, and Swin-Tiny. These models are chosen for their diverse design philosophies, ranging from traditional convolutional networks to more advanced transformer-based models. This initial step establishes a strong baseline for image-based freshness classification.
In the second stage, the framework transitions to a hybrid learning approach. Instead of relying solely on the deep learning models for classification, multi-level deep features are extracted from these fine-tuned backbones. These features, which capture different levels of visual abstraction, are then used to train seven classical machine learning classifiers. This integration combines the powerful feature learning capabilities of deep networks with the robust decision-making mechanisms of traditional machine learning.
The final stage involves feature selection. Methods based on Light Gradient Boosting Machine (LGBM), Random Forest, and Lasso are employed to identify a compact and highly informative subset of features. This step is crucial for reducing noise, improving computational efficiency, and enhancing the model’s generalization capabilities.
Key Findings and Performance
Experiments conducted on the Freshness of the Fish Eyes (FFE) dataset demonstrated the remarkable effectiveness of this proposed framework. The best configuration, which combined features extracted from the Swin-Tiny model, an Extra Trees classifier, and LGBM-based feature selection, achieved an impressive accuracy of 85.99%. This performance significantly surpasses recent studies on the same dataset, outperforming them by 8.69% to 22.78%.
The Swin-Tiny model, a transformer-based architecture, proved particularly effective due to its ability to capture both subtle local textural details (like the cloudiness of a fish eye lens) and broader spatial patterns. The use of classical machine learning classifiers, especially Extra Trees, further enhanced performance by providing sharper and more flexible decision boundaries than the standard softmax layers typically used in deep learning models. Furthermore, the LGBM-based feature selection was instrumental in identifying a concise and highly discriminative set of features, leading to a more robust and efficient model.
To understand how the models made their decisions, Grad-CAM visualization was used. This technique highlighted that the top-performing models, Swin-Tiny and ConvNeXt-Base, focused on meaningful regions of the fish eye, such as the central pupil and the overall eye structure, confirming that they were learning relevant visual cues for freshness assessment.
Also Read:
- Accelerating Edge AI Deployment for Industrial Operations
- Unpacking AI’s Approach to Detecting Fake Video News
Challenges and Future Directions
Despite these promising results, the study acknowledges certain limitations. The FFE dataset, with its 4,390 images, is relatively small and collected under idealized conditions, which might limit the model’s robustness in real-world scenarios with varied lighting, diverse species, or environmental noise. The framework’s three-stage, decoupled design also increases implementation complexity, requiring separate setup and optimization for each step. Additionally, the current framework exclusively uses deep features, without incorporating handcrafted features that could provide interpretable physical attributes like eye redness or lens opacity.
Future research will focus on developing hybrid representations that combine both deep and handcrafted features to capture a more comprehensive understanding of fish freshness. Further validation on larger and more diverse real-world datasets is also planned to improve robustness and practical applicability. For more details, you can refer to the full research paper here.
This study establishes a strong methodological foundation for automated fish freshness assessment, paving the way for models that are both accurate and interpretable for practical implementation in the seafood industry.


