收藏切换
A Lightweight Method for Pear Surface Defect Detection Based on Improved Mamba-YOLO Architecture
收藏切换
PDF
Xianchao XIU1, Shiqi FEI1, 2, 3, Wenqian HUANG2, 3, Nan LI1, Zhonghua MIAO1
Smart Agriculture | 2026, 8(2) : 147 - 157
Less
收藏切换
Smart Agriculture | 2026, 8(2): 147-157
Information Processing and Decision Making
A Lightweight Method for Pear Surface Defect Detection Based on Improved Mamba-YOLO Architecture
Full
Xianchao XIU1, Shiqi FEI1, 2, 3, Wenqian HUANG2, 3, Nan LI1, Zhonghua MIAO1
Affiliations
  • 1.School of Mechanic Engineering and Automation, Shanghai University, Shanghai 200444, China
  • 2.Intelligent Equipment Research Center, Beijing Academy of Agriculture and Forestry Sciences, Beijing 100097, China
  • 3.Information Technology Research Center, Beijing Academy of Agriculture and Forestry Sciences, Beijing 100097, China
  • XIU Xianchao, E-mail:

Published: 2026-03-30 doi: 10.12133/j.smartag.SA202508022
Outline
收藏切换

[Objective] Pears are a common fruit rich in vitamins and minerals. Traditional pear grading primarily relies on manual inspection, which is not only laborious but also susceptible to subjective factors, leading to unstable and inaccurate results. Furthermore, manual operations may cause varying degrees of physical damage to pears, affecting their appearance and market value. Therefore, developing an automated, efficient, and reliable pear grading technology has become an urgent demand in the industry. To address the current problem of poor detection accuracy caused by the small scale of surface defects in Dangshan pears, a lightweight high-precision model was proposed based on an improved Mamba-YOLO architecture, aiming to balance detection accuracy and efficiency. [Methods] The dataset comprised 1 000 images, which were partitioned into training, validation, and test sets in an 8:1:1 ratio. The following improvements were made to the network architecture. Firstly, a dynamic upsampling (Dysample) module was adopted. Compared to the existing upsampling module in Mamba-YOLO, the Dysample module featured fewer parameters and floating-point operations (FLOPs). Its design eliminated complex dynamic convolution kernels, requiring only a small number of linear layers and grouping operations, thereby preserving computational efficiency while enhancing the retention of defect details. Secondly, regarding pear surface defect detection, defects often exhibited high-frequency local features, whereas traditional convolutional neural networks (CNNs) suffer from insufficient feature capture and imbalanced frequency response. As the dilation rate increased, the frequency response of the convolution kernel decreased and its bandwidth narrowed, consequently limiting its ability to process high-frequency information. Therefore, a frequency-adaptive dilated convolution (FADC) module was proposed, which dynamically adjusted the convolution kernel size, enabling the network to adaptively select matching kernels based on local input features. Smaller kernels were used in high-frequency regions, and larger kernels in low-frequency regions, thereby achieving collaborative optimization of multi-band features and enhancing the ability to extract defect features. Finally, considering that using only single-scale depthwise convolutions to capture local features might lead to insufficient perception of input feature information, and that traditional gating mechanisms may lack adequate global context information modeling, the squeeze-and-excitation module was fused with a channel mixer based on the convolutional gated linear unit (CGLU). This combination was extended into a multi-scale version termed MS-CGLU. By incorporating convolutional kernels of different sizes to extract multi-scale features, followed by weighted fusion, stronger feature representation was achieved. [Results and Discussions] The proposed method was rigorously evaluated on the dangshan pear test set. Ablation experiments demonstrated that introducing the CGLU, FADC, and Dysample enhanced detection performance, confirming the effectiveness of these modules. Compared to YOLOv8n, Gold-YOLO-N, and YOLOv12n, the mean average precision (mAP) was higher by 4.7, 5.3, and 6.3 percentage points, respectively. Compared to the baseline Mamba-YOLO-T, the mAP increased by 3.4 percentage points and the frames per second improved by 10.8 percentage points. Furthermore, in comparative experiments with larger-scale models from the same Mamba-YOLO series, the proposed algorithm still demonstrated significant advantages, i.e., its parameter count was only 41.7% of Mamba-YOLO-B and 15.7% of Mamba-YOLO-L, and its FLOPs was merely 57.1% and 18.1% of the respective models, yet it achieved increases in mAP@0.5 of 3.2% and 1.4%, and increases in mAP@0.5:0.95 of 3.1% and 2.6%, respectively. [Conclusions] This research developed a high-precision and lightweight algorithm for detecting surface defects on Dangshan pears. It achieved a superior balance between detection accuracy and inference speed, significantly outperforming relevant lightweight benchmarks and even larger models within its own family in terms of efficiency. This work can provide reliable algorithmic support for lightweight detection research of pear surface defects.

Mamba-YOLO  /  defect detection  /  image recognition  /  frequency-adaptive dilated convolution (FADC)  /  convolutional kernels  /  dynamic upsampling (Dysample)
Xianchao XIU, Shiqi FEI, Wenqian HUANG, Nan LI, Zhonghua MIAO. A Lightweight Method for Pear Surface Defect Detection Based on Improved Mamba-YOLO Architecture[J]. Smart Agriculture, 2026 , 8 (2) : 147 -157 . DOI: 10.12133/j.smartag.SA202508022
  • National Key Research and Development Program of China(2024YFB4707400)
  • Shanghai Key Science and Technology Project(24N32800100)
Year 2026 volume 8 Issue 2
PDF
150
68
Cite this Article
BibTeX
Article Info
doi: 10.12133/j.smartag.SA202508022
  • Receive Date:2025-08-21
  • Online Date:2026-07-08
  • Published:2026-03-30
Article Data
Affiliations
History
  • Received:2025-08-21
Funding
National Key Research and Development Program of China(2024YFB4707400)
Shanghai Key Science and Technology Project(24N32800100)
Affiliations
    1.School of Mechanic Engineering and Automation, Shanghai University, Shanghai 200444, China
    2.Intelligent Equipment Research Center, Beijing Academy of Agriculture and Forestry Sciences, Beijing 100097, China
    3.Information Technology Research Center, Beijing Academy of Agriculture and Forestry Sciences, Beijing 100097, China

Corresponding:

LI Nan, E-mail:
References
Share
https://castjournals.cast.org.cn/joweb/zhny/EN/10.12133/j.smartag.SA202508022
Share to
QR

Scan QR to access full text

Cite this article
BibTeX
Citations
表12种不同金属材料的力学参数

Family
属数
Number of
genus
种数
Number of
species
占总种数比例
Percentage of
total species (%)

Genus
种数
Number of
species
占总种数比例
Percentage of total
species (%)
鹅膏菌科Amanitaceae 2 11 5.26 鹅膏菌属 Amanita 10 4.78
小菇科 Mycenaceae 2 12 5.74 丝盖伞属 Inocybe 5 2.39
多孔菌科 Polyporaceae 8 14 6.70 蜡蘑属 Laccaria 5 2.39
红菇科 Russulaceae 3 23 11.00 小皮伞属 Marasmius 6 2.87
小菇属 Mycena 11 5.26
光柄菇属 Pluteus 5 2.39
红菇属 Russula 17 8.13
栓菌属 Trametes 5 2.39
关闭全屏
  • BibTeX
  • EndNote
  • RefWorks
  • TxT