轻量级模型+度量学习,实现工业螺栓拧紧缺陷的少样本精准检测
Few-Shot Learning for Industrial Time Series: A Comparative Analysis Using the Example of Screw-Fastening Process Monitoring
- 设计标签感知采样策略,将多标签序列拆解为单标签任务保持输出稳定
- InceptionTime+原型网络在10样本/3类别下取得0.944加权F1,超越大模型5.3%
- 轻量模型训练快、参数少,适合数据稀缺的工业质检场景
少样本学习(FSL)在视觉领域表现优异,但在工业时序数据中仍鲜有研究,因新缺陷标注成本过高。本文针对螺栓拧紧过程监测,构建包含2300个样本的多变量扭矩数据集,覆盖16类单因素与多因素缺陷。比较了基于度量的原型网络和基于梯度的MAML两种范式,分别搭配1D CNN、InceptionTime及341M参数的Moment Transformer。在10样本/3类别设置下,InceptionTime+原型网络在多分类与多标签场景分别达到0.944和0.935的加权F1,优于微调后的Moment达5.3%,且参数量与训练时间少两个数量级。所有骨架中,度量学习均优于MAML,标签感知采样相较传统方法提升1.7% F1。结果表明:数据稀缺时,轻量级CNN结合简单度量学习不仅收敛更快,泛化能力更强。代码、数据划分与预训练权重均已开源。
原文摘要 · Abstract (English)
Few-shot learning (FSL) has shown promise in vision but remains largely unexplored for \emph{industrial} time-series data, where annotating every new defect is prohibitively expensive. We present a systematic FSL study on screw-fastening process monitoring, using a 2\,300-sample multivariate torque dataset that covers 16 uni- and multi-factorial defect types. Beyond benchmarking, we introduce a \textbf{label-aware episodic sampler} that collapses multi-label sequences into multiple single-label tasks, keeping the output dimensionality fixed while preserving combinatorial label information. Two FSL paradigms are investigated: the metric-based \emph{Prototypical Network} and the gradient-based \emph{Model-Agnostic Meta-Learning} (MAML), each paired with three backbones: 1D CNN, InceptionTime and the 341 M-parameter transformer \emph{Moment}. On 10-shot, 3-way evaluation, the InceptionTime + Prototypical Network combination achieves a \textbf{0.944 weighted F1} in the multi-class regime and \textbf{0.935} in the multi-label regime, outperforming finetuned Moment by up to 5.3\% while requiring two orders of magnitude fewer parameters and training time. Across all backbones, metric learning consistently surpasses MAML, and our label-aware sampling yields an additional 1.7\% F1 over traditional class-based sampling. These findings challenge the assumption that large foundation models are always superior: when data are scarce, lightweight CNN architectures augmented with simple metric learning not only converge faster but also generalize better. We release code, data splits and pre-trained weights to foster reproducible research and to catalyze the adoption of FSL in high-value manufacturing inspection.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。