Maize (Zea mays L.), a vital global food crop, relies on its stomatal structure for regulating photosynthesis and responding to drought. Conventional manual stomatal detection methods are inefficient, subjective, and inadequate for high-throughput plant phenotyping research. To address this, we curated a dataset of over 1500 maize leaf epidermal stomata images and developed a novel lightweight detection model, StomaYOLO, tailored for small stomatal targets and subtle features in microscopic images. Leveraging the YOLOv11 framework, StomaYOLO integrates the Small Object Detection layer P2, the dynamic convolution module, and exploits large-scale epidermal cell features to enhance stomatal recognition through auxiliary training. Our model achieved a remarkable 91.8% mean average precision (mAP) and 98.5% precision, surpassing numerous mainstream detection models while maintaining computational efficiency. Ablation and comparative analyses demonstrated that the Small Object Detection layer, dynamic convolutional module, multi-task training, and knowledge distillation strategies substantially enhanced detection performance. Integrating all four strategies yielded a nearly 9% mAP improvement over the baseline model, with computational complexity under 8.4 GFLOPS. Our findings underscore the superior detection capabilities of StomaYOLO compared to existing methods, offering a cost-effective solution that is suitable for practical implementation. This study presents a valuable tool for maize stomatal phenotyping, supporting crop breeding and smart agriculture advancements.
Since deep learning has been applied to medical image analysis, convolutional neural networks (CNNs) and Vision Transformers (ViTs) have become core architectures for medical image classification tasks. However, CNNs are constrained by local receptive fields and cannot effectively model long-range context-dependent correlations in medical images; ViTs face deployment challenges in high-resolution medical image tasks due to the quadratic computational complexity of self-attention. While State Space Models (SSMs) represented by Mamba offer a new solution with linear complexity, they suffer from redundant directional modeling and low parameter efficiency in direct medical image applications. This study proposes the efficient state space enhancement framework (MedMamba-ESS), integrating the SS2D-Top2 adaptive directional scanning mechanism (reducing SSM submodule FLOPs by ~37%) and the G-SSM grouped parameter sharing module (achieving 3–4% parameter compression and 4.4% accuracy improvement via regularization). Validated on 14 public datasets (9 imaging modalities, 9 anatomical regions, >240,000 images), MedMamba-ESS achieves superior performance at 2.0G FLOPs: its Overall Accuracy (OA) is 3% higher than the baseline MedMamba-Tiny on non-MedMNIST datasets (3.13% higher than other mainstream models) and 3% higher on MedMNIST datasets (1% higher than others). Ablation experiments confirm that the two modules synergistically reduce parameters by 1.05% and boost accuracy by 4.6%. This study overcomes the technical limitations of traditional SSMs in medical imaging applications, achieving synergistic improvements in both model performance and computational efficiency. It provides an architecture optimization solution that combines practicality and generalizability for the implementation of SSMs in medical image analysis.