Please wait a minute...
浙江大学学报(工学版)  2026, Vol. 60 Issue (11): 2373-2382    DOI: 10.3785/j.issn.1008-973X.2026.11.007
机械工程     
融合多通道特征与词权聚类的机加工艺文本层级分类方法
谭澳龙(),付文杰,沈奥,向召伟,马靖华,殷勤*()
重庆理工大学 机械工程学院,重庆 400054
Hierarchical classification method for machining process texts integrating multi-channel features and word-weighted clustering
Aolong TAN(),Wenjie FU,Ao SHEN,Zhaowei XIANG,Jinghua MA,Qin YIN*()
College of Mechanical Engineering, Chongqing University of Technology, Chongqing, 400054, China
 全文: PDF(2074 KB)   HTML
摘要:

在工时预测中,机加工艺文本语义相似但加工逻辑不同,同时差异化特征未有效区分工时,导致工时特征难以匹配. 为此,提出融合多通道特征与词权聚类的双层级分类方法. 构建面向工种-特征的层级框架:工种层级以BERT词向量为基础,设计“动词+名词”重组通道强化关键信息,融合CNN、BiLSTM和R-Transformer捕捉局部、上下文与全局特征;特征层级基于工种层级分类结果,结合领域词库加权机制的K-Means算法,依据几何特征进行无监督聚类,构建面向机加工种-几何特征的细粒度分类体系. 实验表明,工种层级分类模型的准确率、召回率和 F1值较单一训练模型BERT的对应指标分别提升了4.21个百分点、4.49个百分点与4.40个百分点;相比传统K-Means,特征层级聚类模型轮廓分数和Calinski-Harabasz 分数分别提升1.02倍和4.86倍;最终工时预测平均相对误差降低了4.59个百分点. 实验结果验证了双层级框架在细粒度分类中的有效性,能够为工时定额模型提供可正确匹配的结构化输入.

关键词: 机加工艺文本;  多通道特征;  词权聚类;  层级框架;  数据增强;  细粒度文本分类;  工时预测    
Abstract:

In man-hour prediction, machining process texts with similar semantics but distinct processing logic make it difficult to effectively distinguish working hours using differentiating features. This leads to ineffective matching of man-hour features. A two-level classification method integrating multi-channel features and word-weighted clustering was proposed to address this problem. A hierarchical framework for process categories and features was constructed. At the process category level, based on BERT word embeddings, a “verb+noun” recombination channel was designed to enhance key information, and CNN, BiLSTM, and R-Transformer were fused to capture local, contextual, and global features. At the feature level, relying on the classification results at the process category level, a K-Means algorithm combined with a domain lexicon weighting mechanism was adopted to perform unsupervised clustering based on geometric features, thereby establishing a fine-grained classification system for machining process categories and geometric features. Experimental results demonstrate that the classification model for process categories outperforms the single-trained BERT model by 4.21, 4.49, and 4.40 percentage points in accuracy, recall, and F1-score, respectively. Compared with traditional K-Means, the feature-level clustering model improves the silhouette coefficient and CH score by factors of 1.02 and 4.86, respectively, and the mean relative error of final man-hour prediction decreases by 4.59 percentage points. Experimental results validate the effectiveness of the two-level framework in fine-grained classification and provide correctly matchable structured input for man-hour quota models.

Key words: machining process text    multi-channel features    word-weighted clustering    hierarchical framework    data augmentation    fine-grained text classification    man-hour prediction
收稿日期: 2025-09-17 出版日期: 2026-10-16
CLC:  TP 391.41  
基金资助: 国家自然科学基金资助项目(52105245,52305148,52205144);重庆市教委科学技术研究项目(KJQN202601165).
通讯作者: 殷勤     E-mail: 1798254751@qq.com;yinqin@cqut.edu.cn
作者简介: 谭澳龙(2000—),男,硕士生,从事数字化与智能制造研究. orcid.org/0009-0008-3039-9354. E-mail:1798254751@qq.com
服务  
把本文推荐给朋友
加入引用管理器
E-mail Alert
作者相关文章  
谭澳龙
付文杰
沈奥
向召伟
马靖华
殷勤

引用本文:

谭澳龙,付文杰,沈奥,向召伟,马靖华,殷勤. 融合多通道特征与词权聚类的机加工艺文本层级分类方法[J]. 浙江大学学报(工学版), 2026, 60(11): 2373-2382.

Aolong TAN,Wenjie FU,Ao SHEN,Zhaowei XIANG,Jinghua MA,Qin YIN. Hierarchical classification method for machining process texts integrating multi-channel features and word-weighted clustering. Journal of ZheJiang University (Engineering Science), 2026, 60(11): 2373-2382.

链接本文:

https://www.zjujournals.com/eng/CN/10.3785/j.issn.1008-973X.2026.11.007    或    https://www.zjujournals.com/eng/CN/Y2026/V60/I11/2373

图 1  机加工艺过程卡片
图 2  多通道双层级分类框架图
图 3  词权特征层级的机加文本聚类流程
标签工种名称样本总数特征样本数量
1车削2 678外圆类780
内腔类727
端面类598
螺纹类573
2铣削2 246平面类489
斜角类397
曲面类438
攻螺纹类484
键槽类438
3刨削1 459平面类773
沟槽类686
4磨削3 911外圆类2 011
平面类1 900
5钻削3 945孔类3 945
6镗削2 090孔类2 090
7拉削1 607内型面类887
外型面类720
8倒角1 652标准倒828
孔口倒824
9钳工2 238——
10检测1 490——
11划线2 032——
表 1  零件机加文本的分类数据
分类模型Acc/%rLR/%F1/%
TextCNN60.041.5051.3450.52
ERNIE65.611.2063.7364.00
BERT85.230.7783.8484.50
WFDR_MGMCHNN86.740.7785.2785.82
MACC87.240.6985.9086.41
CNN-BiLSTM-Att87.140.7185.7986.33
WE-GCL-MCTF89.440.5988.3388.90
表 2  分类模型的性能对比
图 4  不同模型分类准确率随迭代次数的变化曲线
图 5  不同模型分类损失随迭代次数的变化曲线
模型轮廓分数CH Score
K-Means0.44278.30
W-KM0.891 631.64
表 3  词权特征层级聚类结果
图 6  模型的聚类效果对比
预训练
模型
通道类型通道模型Acc/%rLR/%F1/%
BERT单通道CNN85.050.7883.6584.31
BiLSTM85.090.9183.6984.38
R-Transformer85.570.7684.1284.82
双通道CNN-BiLSTM87.220.7185.8686.40
CNN-R-Transformer87.080.7185.7386.26
BiLSTM-R-Transformer87.140.6985.7986.30
三通道WE-GCL-MCTF89.440.5988.3388.90
表 4  工种层级分类模型消融实验数据
模型轮廓分数CH Score
传统 K-Means0.44278.30
无词权 K-Means0.63892.15
W-KM0.891631.64
表 5  特征层级聚类模型消融实验数据
图 7  零件机加文本分类系统
图 8  不同工时定额模型的工时预测效果对比
1 王婷, 朱小飞, 唐顾 基于知识增强的图卷积神经网络的文本分类[J]. 浙江大学学报: 工学版, 2022, 56 (2): 322- 328
WANG Ting, ZHU Xiaofei, TANG Gu Knowledge-enhanced graph convolutional neural networks for text classification[J]. Journal of Zhejiang University: Engineering Science, 2022, 56 (2): 322- 328
2 刘娟, 刘检华, 庄存波, 等 基于特征聚类的结构件数控加工工时预测方法[J]. 机械工程学报, 2023, 59 (15): 232- 246
LIU Juan, LIU Jianhua, ZHUANG Cunbo, et al Working-hours prediction method of CNC machining of structural parts based on feature clustering[J]. Journal of Mechanical Engineering, 2023, 59 (15): 232- 246
doi: 10.3901/JME.2023.15.232
3 刘子文, 刘检华, 程益, 等 基于文本挖掘与神经网络的复杂产品装配工时估算方法[J]. 机械工程学报, 2021, 57 (15): 199- 210
LIU Ziwen, LIU Jianhua, CHENG Yi, et al Assembly time estimation method for complex products based on text mining and neural network[J]. Journal of Mechanical Engineering, 2021, 57 (15): 199- 210
doi: 10.3901/JME.2021.15.199
4 赵文浩, 邢香园, 王治, 等 基于知识挖掘的航天产品装配工时定额和管理系统[J]. 计算机集成制造系统, 2021, 27 (6): 1594- 1604
ZHAO Wenhao, XING Xiangyuan, WANG Zhi, et al Man-hour quota and management system of aerospace product assembly process based on knowledge mining[J]. Computer Integrated Manufacturing Systems, 2021, 27 (6): 1594- 1604
doi: 10.13196/j.cims.2021.06.006
5 VERELST T, RUBENSTEIN P K, EICHNER M, et al. Spatial consistency loss for training multi-label classifiers from single-label annotations [C]// Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision. Waikoloa: IEEE, 2023: 3868–3878.
6 ZHANG Y, XIA G, LI X, et al A multi-label text classifier at publication level based on “PubMedBERT+TextRNN” for cancer literature[J]. Studies in Health Technology and Informatics, 2024, 316: 374- 375
7 YANG D, LIU P Utilizing AI to manage rapport: ERNIE Bot’s interpersonal strategies to respond to negative hotel reviews[J]. Lingua, 2025, 315: 103874
doi: 10.1016/j.lingua.2024.103874
8 臧洁, 鲁锦涛, 王妍, 等 融合双通道特征的中文短文本情感分类模型[J]. 计算机工程与应用, 2024, 60 (21): 116- 126
ZANG Jie, LU Jintao, WANG Yan, et al Chinese short text sentiment classification model integrating dual-channel features[J]. Computer Engineering and Applications, 2024, 60 (21): 116- 126
doi: 10.3778/j.issn.1002-8331.2310-0020
9 刘孝保, 陆宏彪, 阴艳超, 等 基于多元神经网络融合的分布式资源空间文本分类研究[J]. 计算机集成制造系统, 2020, 26 (1): 161- 170
LIU Xiaobao, LU Hongbiao, YIN Yanchao, et al Distributed resource spatial text classification based on multivariate neural network fusion[J]. Computer Integrated Manufacturing Systems, 2020, 26 (1): 161- 170
doi: 10.13196/j.cims.2020.01.017
10 李嘉欣, 莫思特 基于MiniRBT-LSTM-GAT与标签平滑的台区电力工单分类[J]. 计算机应用, 2025, 45 (4): 1356- 1362
LI Jiaxin, MO Site Power work order classification in substation area based on MiniRBT-LSTM-GAT and label smoothing[J]. Journal of Computer Applications, 2025, 45 (4): 1356- 1362
doi: 10.11772/j.issn.1001-9081.2024040533
11 SUNAGAR P, SOWMYA B J, PRUTHVIRAJA D, et al Hybrid RNN based text classification model for unstructured data[J]. SN Computer Science, 2024, 5 (6): 726
doi: 10.1007/s42979-024-03091-x
12 余明峰, 秦永彬, 黄瑞章, 等 基于对比学习增强双注意力机制的多标签文本分类方法[J]. 计算机应用, 2025, 45 (6): 1732- 1740
YU Mingfeng, QIN Yongbin, HUANG Ruizhang, et al Multi-label text classification method based on contrastive learning enhanced dual-attention mechanism[J]. Journal of Computer Applications, 2025, 45 (6): 1732- 1740
doi: 10.11772/j.issn.1001-9081.2024070909
13 陆佳丽 基于Bert-TextCNN的开源威胁情报文本的多标签分类方法[J]. 信息安全研究, 2024, 10 (8): 760- 768
LU Jiali Multi-label classification method of open source threat intelligence text based on Bert-TextCNN[J]. Journal of Information Security Research, 2024, 10 (8): 760- 768
doi: 10.12379/j.issn.2096-1057.2024.08.10
14 LIU N, WANG Q, REN J Label-embedding bi-directional attentive model for multi-label text classification[J]. Neural Processing Letters, 2021, 53 (1): 375- 389
doi: 10.1007/s11063-020-10411-8
15 董含笑, 李豫虎, 乔立红, 等 面向机加工艺规程文本的实体识别模型[J]. 计算机辅助设计与图形学学报, 2024, 36 (2): 313- 320
DONG Hanxiao, LI Yuhu, QIAO Lihong, et al Named entity recognition method for process planning text[J]. Journal of Computer-Aided Design and Computer Graphics, 2024, 36 (2): 313- 320
doi: 10.3724/SP.J.1089.2024.19732
16 马长林, 黄浩 基于多粒度通道和双重强化的文本分类[J]. 华中科技大学学报: 自然科学版, 2024, 52 (11): 133- 139
MA Changlin, HUANG Hao Text classification based on multi-granularity channels and double reinforcement[J]. Journal of Huazhong University of Science and Technology: Nature Science Edition, 2024, 52 (11): 133- 139
doi: 10.13245/j.hust.240402
17 黄靖, 陶竹林, 杜晓宇, 等 基于特征融合动态图网络的多标签文本分类算法[J]. 软件学报, 2025, 36 (7): 3239- 3252
HUANG Jing, TAO Zhulin, DU Xiaoyu, et al Multi-label text classification algorithm based on feature-fused dynamic graph network[J]. Journal of Software, 2025, 36 (7): 3239- 3252
doi: 10.13328/j.cnki.jos.007229
18 LAGUTINA N S, LAGUTINA K V, BREDERMAN A M, et al Text classification by CEFR levels using machine learning methods and the BERT language model[J]. Automatic Control and Computer Sciences, 2024, 58 (7): 869- 878
doi: 10.3103/S0146411624700329
19 XIONG Y, CHEN G, CAO J Research on public service request text classification based on BERT-BiLSTM-CNN feature fusion[J]. Applied Sciences, 2024, 14 (14): 6282
doi: 10.3390/app14146282
20 BOUCHIHA D, BOUZIANE A, DOUMI N, et al Hierarchical text classification: fine-tuned GPT-2 vs BERT-BiLSTM[J]. Applied Computer Systems, 2025, 30 (1): 40- 46
doi: 10.2478/acss-2025-0005
21 张彦楠, 黄小红, 马严, 等 基于深度学习的录音文本分类方法[J]. 浙江大学学报: 工学版, 2020, 54 (7): 1264- 1271
ZHANG Yannan, HUANG Xiaohong, MA Yan, et al Method with recording text classification based on deep learning[J]. Journal of Zhejiang University: Engineering Science, 2020, 54 (7): 1264- 1271
22 CHENG X, ZHANG C, LI Q Improved Chinese short text classification method based on ERNIE_BiGRU model[J]. Journal of Physics: Conference Series, 2021, 1993 (1): 012038
doi: 10.1088/1742-6596/1993/1/012038
23 WANG Y, ZHOU Y, QI H, et al A complex history browsing text categorization method with improved BERT embedding layer[J]. Applied Intelligence, 2025, 55 (6): 398
doi: 10.1007/s10489-025-06298-4
24 HAO M, XU B, LIANG J Y, et al Chinese short text classification with mutual-attention convolutional neural networks[J]. ACM Transactions on Asian and Low-Resource Language Information Processing, 2020, 19 (5): 1- 13
[1] 李延松,陈宁,刘锋光,陈盼,黄晓峰,葛慧丽. 基于分阶段语义感知的事件抽取大语言模型框架[J]. 浙江大学学报(工学版), 2026, 60(3): 527-535.
[2] 谢涛,葛慧丽,陈宁,汪晓锋,李延松,黄晓峰. 知识嵌入增强的对比推荐模型[J]. 浙江大学学报(工学版), 2026, 60(1): 90-98.
[3] 杨磊,何鹏举,丑幸幸. 基于TimeGAN数据增强的复杂过程故障分类方法[J]. 浙江大学学报(工学版), 2024, 58(9): 1768-1780.
[4] 尹雅博,朱小飞,刘议丹. 源域数据增强与多兴趣细化迁移的跨域推荐模型[J]. 浙江大学学报(工学版), 2024, 58(8): 1717-1727.
[5] 杨豚,郭永存,王爽,马鑫. 煤矿井下无人驾驶轨道电机车障碍物识别[J]. 浙江大学学报(工学版), 2024, 58(1): 29-39.
[6] 金鑫,庄建军,徐子恒. 轻量化YOLOv5s网络车底危险物识别算法[J]. 浙江大学学报(工学版), 2023, 57(8): 1516-1526.
[7] 艾青林,崔景瑞,吕冰海,童桐. 基于损伤区域融合变换的轴承鼓形滚子表面损伤检测方法[J]. 浙江大学学报(工学版), 2023, 57(5): 1009-1020.
[8] 艾青林,杨佳豪,崔景瑞. 基于自适应增殖数据增强与全局特征融合的小目标行人检测[J]. 浙江大学学报(工学版), 2023, 57(10): 1933-1944.
[9] 詹燕,胡蝶,汤洪涛,鲁建厦,谭健,刘长睿. 基于改进生成对抗网络的图像数据增强方法[J]. 浙江大学学报(工学版), 2023, 57(10): 1998-2010.
[10] 刘坤,文熙,黄闽茗,杨欣欣,毛经坤. 基于生成对抗网络的太阳能电池缺陷增强方法[J]. 浙江大学学报(工学版), 2020, 54(4): 684-693.