Chili pepper, a widely cultivated and consumed crop, faces challenges in accurately determining maturity due to issues such as occlusion, small target size, and similarity between fruit color and background. This study presents an enhanced YOLOv8n-based object detection model, YOLO-ALW, designed to address these challenges. The model introduces the AKConv (Alterable Kernel Convolution) module in the head section, which adaptively adjusts the convolution kernel shape and size based on the target and scene, improving detection performance under occlusion and dense environments. In the backbone, the SPPF_LSKA (Spatial Pyramid Pooling Fast-Large Separable Kernel Attention) module enhances the integration of multi-scale features, facilitating accurate differentiation of peppers at various maturity stages while maintaining low computational complexity. Additionally, the Wise-IoU (Wise Intersection over Union) loss function optimizes bounding box learning, further improving the detection of peppers in occluded or background-similar scenarios. Experimental results demonstrate that YOLO-ALW achieves a mean average precision (mAP0.5) of 99.1%, with precision and recall rates of 98.3% and 97.8%, respectively, outperforming the original YOLOv8n by 3.4%, 5.1%, and 9.0%, respectively. Grad-CAM feature visualization highlights the model’s improved focus on key fruit features. YOLO-ALW shows significant promise for high-precision chili pepper detection and maturity recognition, offering valuable support for automated harvesting applications.
Fish are a vital aquatic resource worldwide, and the sustainable development of aquaculture is essential for global food security and economic growth. However, the high incidence of fish diseases in complex aquaculture environments significantly hampers sustainability, and traditional manual diagnosis methods are inefficient and often inaccurate. To address the challenges of small-lesion detection, lesion area size and morphological variation, and background complexity, we propose YOLO-TPS, a high-precision fish-disease detection model based on an improved YOLOv11n architecture. The model integrates a multi-module synergy strategy and a triple-attention mechanism to enhance detection performance. Specifically, the SPPF_TSFA module is introduced into the backbone to fuse spatial, channel, and neuron-level attention for better multi-scale feature extraction of early-stage lesions. A PC_Shuffleblock module incorporating asymmetric pinwheel-shaped convolutions is embedded in the detection head to improve spatial awareness and texture modeling under complex visual conditions. Additionally, a scale-aware dynamic intersection over union (SDIoU) loss function was designed to accommodate changes in the scale and morphology of lesions at different stages of the disease. Experimental results on a dataset comprising 4596 images across six fish-disease categories demonstrate superior performance (mAP0.5: 97.2%, Precision: 97.9%, Recall: 95.1%) compared to the baseline. This study offers a robust, scalable solution for intelligent fish-disease diagnosis and has promising implications for sustainable aquaculture and animal health monitoring.
The precise, non-destructive monitoring of fish length and weight is a core technology for advancing intelligent aquaculture. However, this field faces dual challenges: traditional contact-based measurements induce stress and yield loss. In addition, existing computer vision methods are hindered by prediction biases from imbalanced data and the deployment bottleneck of balancing high accuracy with model lightweighting. This study aims to overcome these challenges by developing an efficient and robust deep learning framework. We propose ECR-MobileNet, a lightweight framework built on MobileNetV3-Small. It features three key innovations: an efficient channel attention (ECA) module to enhance feature discriminability, an original adaptive multi-scale contrastive regression (AMCR) loss function that extends contrastive learning to multi-dimensional regression for length and weight simultaneously to mitigate data imbalance, and a dependency-graph-based (DepGraph) structured pruning technique that synergistically optimizes model size and performance. On our multi-scene largemouth bass dataset, the pruned ECR-MobileNet-P model comprehensively outperformed 14 mainstream benchmarks. It achieved an R2 of 0.9784 and a root mean square error (RMSE) of 0.4296 cm for length prediction, as well as an R2 of 0.9740 and an RMSE of 0.0202 kg for weight prediction. The model’s parameter count is only 0.52 M, with a computational load of 0.07 giga floating-point operations per second (GFLOPs) and a CPU latency of 10.19 ms, achieving Pareto optimality. This study provides an edge-deployable solution for stress-free biometric monitoring in aquaculture and establishes an innovative methodological paradigm for imbalanced regression and task-oriented model compression.
Accurate real-time estimation of above-ground biomass is critical for intelligent chilli pepper harvesting. This study proposes CIDR-MobileNet, a lightweight end-to-end framework that addresses the limitations of destructive sampling, reliance on additional depth sensors, and weak regression robustness in existing methods. Pseudo-depth maps are generated from single-view RGB images using Depth Anything V2, providing low-cost structural information without requiring extra hardware. A cross-modal feature interaction module adaptively fuses RGB texture with pseudo-depth geometry, while a multi-branch distribution regression head models AGB prediction as a probabilistic task to improve robustness against occlusion and noise. A ranking loss is also introduced to preserve the relative order of predictions. Validated on 275 in-field chilli pepper samples via ten-fold cross-validation, the model achieves an R2 of 0.972, MAE of 174.56 g, RMSE of 230.74 g, and MAPE of 9.56%, with only 3.28 M parameters. Comparative experiments demonstrate that CIDR-MobileNet outperforms mainstream lightweight networks while maintaining high inference efficiency (10.56 ms CPU latency). The method strikes a favourable balance between prediction accuracy, hardware cost, and real-time performance, offering a practical solution for non-destructive biomass monitoring in precision agriculture.
In intensive aquaculture, non-invasive real-time monitoring of morphological traits and body weight of largemouth bass (Micropterus salmoides) is essential for precision feeding and yield estimation. Manual measurement is laborious and stressful, whereas vision-based methods are challenged by insufficient dual-view feature fusion, poor robustness to underwater noise, and over-parameterized models unsuitable for edge deployment. To address these issues, a lightweight framework, MECT-MobileViT, is proposed based on MobileViT-xxs. A Morphometric-Guided Multi-Scale Fusion module is designed to couple physical priors with dual-branch visual features, strengthening shape–weight association. An ECA-NL attention block employing instance normalization, GLU gating, and threshold filtering is embedded to enhance feature robustness against visual disturbances typical in aquaculture and to accentuate critical morphological features. A three-stage synergistic pruning strategy—attention head pruning, structured channel pruning, and depthwise separable attention substitution—is applied to achieve substantial compression while preserving representational capacity. Experiments on a self-built lateral–dorsal dual-view dataset show that the proposed model significantly outperforms mainstream benchmarks. The pruned version attains an R2 of 0.8266 and an RMSE of 16.4201, with less than 2% accuracy degradation relative to the best unpruned model, and contains only 7.34 M parameters. This study demonstrates a promising prototype for contactless, stress-free weight estimation in largemouth bass and offers new technical insights into feature fusion, noise suppression, and collaborative model compression for aquaculture visual perception.