English

中国农机化学报

中国农机化学报 ›› 2025, Vol. 46 ›› Issue (7): 104-110.DOI: 10.13733/j.jcam.issn.2095-5553.2025.07.016

• 农业信息化工程 • 上一篇    下一篇

基于双层优化元学习的域自适应红枣缺陷检测

任晶晶1,郭中原2, 3,鞠剑平3   

  1. (1. 太原学院智能与信息工程系,太原市,030032; 2. 西南大学电子信息工程学院,重庆市,400715;
    3. 湖北商贸学院计算机科学与技术学院,武汉市,430079)
  • 出版日期:2025-07-15 发布日期:2025-07-02
  • 基金资助:
    山西省高等学校科技创新计划项目(2024L386);重庆市教委科学技术研究计划项目(KJQN202300225);湖北省自然科学基金计划青年项目(2024AFB418)

Domain-adaptive defect detection in jujubes using meta-learning with bi-level optimization

Ren Jingjing1, Guo Zhongyuan2, 3, Ju Jianping3   

  1. (1. Department of Intelligence and Information Engineering, Taiyuan University, Taiyuan, 030032, China; 
    2. College of Electronic and Information Engineering, Southwest University, Chongqing, 400715, China; 
    3. School of Computer Science and Technology, Hubei Business College, Wuhan, 430079, China)
  • Online:2025-07-15 Published:2025-07-02

摘要: 针对自动化分拣任务中不同品种特征和光照环境导致红枣缺陷表现的差异,提出一种基于元学习的算法实现域自适应红枣缺陷的检测。首先收集不同品种、不同环境的红枣缺陷图像,构建跨域数据集,并通过StyleGAN3网络生成缺陷样本来改善训练样本不均衡情况,通过数据增强丰富测试样本的多样性。随后提出一种基于双层优化元学习的红枣域自适应缺陷检测方法,采用卷积神经网络构建基学习器,双层优化策略构建元学习器,并在损失函数中添加L2正则化项以降低过拟合风险。以平均准确率作为评价指标,对基学习器和元学习器进行消融实验,并与不同类型的深度学习算法和模型无关的元学习算法进行比较,验证该方法的有效性。结果表明,该方法在原始目标域和数据增强后的目标域数据集上的平均准确率分别为78.6%、86.5%,比模型无关的元学习算法高出6.4%和7.6%,能够快速适应不同条件下的跨域红枣缺陷检测任务。

关键词: 红枣缺陷检测, 域自适应, 元学习, 双层优化, L2正则化

Abstract: To address the challenge posed by variations in red date defects across different varieties and lighting conditions in automated sorting tasks, this study proposed a novel meta-learning-based algorithm for domain-adaptive defect detection. First, a cross-domain dataset was constructed by collecting images of red date defects from multiple varieties and environmental conditions.To mitigate sample imbalance,additional defect samples were generated using the StyleGAN3 network, and data augmentation techniques were applied to enhance the diversity of test dataset. Next, a bi-level optimization meta-learning framework was introduced for domain-adaptive red date defect detection. A convolutional neural network was employed as the base learner, while a dual-layer optimization strategy was used to construct the meta-learner. An L2 regularization term was incorporated into the loss function to reduce overfitting. Average accuracy was used as the evaluation metric. Ablation experiments were conducted on both the base learner and the meta-learner, and the proposed method was compared against various deep learning and meta-learning algorithms to validate its performance. Experimental results demonstrated that the proposed method achieves average accuracies of 78.6% on the original target domain dataset and 86.5% on the augmented datasets, outperforming the MAML algorithm by 6.4% and 7.6%, respectively. These findings confirm the methods effectiveness in adapting to cross-domain red date defect detection under diverse conditions.

Key words: jujubes defect detection, domain adaptation, meta learning, bi-level optimization, L2 regularization

中图分类号: