吉林大学学报(工学版) ›› 2026, Vol. 56 ›› Issue (7): 1787-1797.doi: 10.13229/j.cnki.jdxbgxb.20241268

• 车辆工程·机械工程 • 上一篇    

基于扩散模型和DenseNet的少样本齿轮箱故障诊断方法

曹洁1,2(),陈志峰1,王进花1,3(),陈莉2   

  1. 1.兰州理工大学 电气工程与信息工程学院,兰州 730050
    2.兰州城市学院 信息工程学院,兰州 730070
    3.甘肃省制造信息工程研究中心,兰州 730050
  • 收稿日期:2024-11-12 出版日期:2026-07-01 发布日期:2026-08-12
  • 通讯作者: 王进花 E-mail:caoj@lut.edu.cn;wjh0615@lut.edu.cn
  • 作者简介:曹洁(1966-),女,教授,博士. 研究方向:智能信息处理,机器视觉信息获取与处理.E-mail: caoj@lut.edu.cn
  • 基金资助:
    国家自然科学基金项目(62063020);国家自然科学基金项目(61763028);国家重点研发计划项目(2020YFB1713600);甘肃省自然科学基金项目(20JR5RA463);甘肃省重点研发计划项目(22YF7GA130)

Fault diagnosis method for gearbox with few samples based on diffusion model and DenseNet

Jie CAO1,2(),Zhi-feng CHEN1,Jin-hua WANG1,3(),Li CHEN2   

  1. 1.College of Electrical and Information Engineering,Lanzhou University of Technology,Lanzhou 730050,China
    2.School of Information Engineering,Lanzhou City University,Lanzhou 730070,China
    3.Gansu Engineering Technology Research Center for Manufacturing Informatization,Lanzhou 730050,China
  • Received:2024-11-12 Online:2026-07-01 Published:2026-08-12
  • Contact: Jin-hua WANG E-mail:caoj@lut.edu.cn;wjh0615@lut.edu.cn

摘要:

针对旋转机械故障诊断中的少样本问题,提出了基于一种扩散模型的行星齿轮箱故障诊断方法,通过将故障样本的时频图作为故障特征表示来进行故障分类。该方法首先使用连续小波变换将齿轮箱一维振动信号转换为时频图作为训练样本;其次,对扩散模型进行了优化改进,使其充分学习训练样本故障特征,以生成高质量故障样本;最后,构建了一种基于密集卷积网络的分类器,结合注意力机制增强分类性能,使用包含多种故障类型的测试集对分类器进行性能测试。结果表明:本文方法诊断准确率与充足样本条件下接近,准确率达到99%以上,并与现有方法进行了实验对比。另外,对小波变换方法及分类器的优化设置消融实验验证了其有效性。

关键词: 扩散模型, 故障诊断, 齿轮箱, 少样本, 注意力机制

Abstract:

Aiming at the problem of few samples in the fault diagnosis of rotating machinery, a fault diagnosis method for planetary gearboxes based on a diffusion model is proposed. The time-frequency diagrams of fault samples are used as the representation of fault features for fault classification. Firstly, the continuous wavelet transform is used to convert the one-dimensional vibration signals of the gearbox into time-frequency diagrams as training samples. Secondly, the diffusion model is optimized and improved to enable it to fully learn the fault features of the training samples and generate high-quality fault samples. Finally, a classifier based on a dense convolutional network is constructed, which combines the attention mechanism to enhance the performance of the classifier. The performance of the classifier is tested using a test set containing multiple fault types. The results show that the diagnostic accuracy of the proposed method is close to that under the condition of sufficient samples, reaching over 99%, and experimental comparisons with existing methods have been carried out. In addition, ablation experiments on the optimization settings of the wavelet transform method and the classifier are conducted to verify their effectiveness.

Key words: diffusion model, fault diagnosis, gears, small sample, attention mechanism

中图分类号: 

  • TH132.425

图1

诊断方法整体框架"

图2

多个样本训练Sindiffusion模型"

图3

分类器模型"

表1

网络模型参数"

模型

输出

尺寸

网络结构
卷积层64×647×7conv,步长2
池化层32×323×3最大池化,步长2
EMA分支132×1沿高H维度平均池化,保留宽度1
1×32沿宽W维度平均池化,保留高度1
32×321×1conv,通道64,分组16,每组4通道
32×32组归一化,每组4通道
EMA分支232×323×3conv,通道数保64
融合分支1、232×32
密集层132×321×13×3×6
过渡层132×321×1conv
16×162×2平均池化,步长2
密集层216×161×13×3×12
过渡层216×161×1conv
8×82×2平均池化,步长2
密集层38×81×13×3×48
过渡层38×81×1conv
4×42×2平均池化,步长2
密集层44×41×13×3×32
分类层1×17×7全局平均池化
5Softmax

图4

故障诊断流程"

图5

传动系统试验台"

图6

齿轮故障状态示意图"

表2

行星齿轮箱参数"

参 数数 值
太阳轮28
环形齿轮100
行星齿轮齿数(数量)36(4)
啮合频率(175/8)fr
太阳轮故障频率(25/8)fr

表3

标签与故障种类"

标签损伤种类标签损伤种类
1齿轮断齿4齿根裂纹
2健康状态5齿轮磨损
3缺齿

图7

故障数据时域图"

图8

故障样本时频图"

表4

真实样本图像与生成样本图像相似度"

标签FIDLPIPSMMD
平均值49.894 70.186 10.144 8
154.775 20.264 60.200 7
247.824 50.144 20.138 9
346.171 40.149 70.125 9
445.745 40.124 90.113 2
554.957 20.247 20.145 4

表5

不同方法生成样本质量"

方 法FIDMMD
WGAN?GP150.210.214
AVAEGAN26113.410.181
UDWGAN2770.210.148
本文方法49.890.145

图9

不同混合比例下的训练损失曲线"

表6

不同数量样本诊断结果"

实验

序号

真实样本数量生成样本数量测试样本数量准确率/%
14001 00098.074
240201 00098.872
340401 00099.240
440601 00099.120
540801 00099.370
63001 00096.748
730201 00097.300
830401 00098.466
930601 00098.108
1030801 00099.098
112001 00096.072
1220201 00098.216
1320401 00096.962
1420601 00096.902
1520801 00098.228
161001 00089.666
1710201 00094.192
1810401 00096.404
1910601 00096.066
2010801 00097.354

图10

不同比例样本诊断结果混淆矩阵"

表7

不同评价指标的值"

标签精准率召回率Specificity
10.9960.9990.999
20.9960.9990.999
30.9980.981.0
40.9840.9960.996
51.01.01.0

表8

不同模型超参数设置"

模 型学习率批量大小参数量/Mb
Res Net0.000 13225.6
ResNeXt0.000 13225
Dense Net0.000 1327.98
SE?Dense Net0.000 1328.2
本文方法0.000 1328.1

图11

不同方法分类准确率"

图12

模型最后一层输出t-SNE可视化"

图13

注意力机制的影响"

[1] Peng H, Zhang H, Fan Y S, et al. A review of research on wind turbine bearings' failure analysis and fault diagnosis[J]. Lubricants, 2023, 11(1): No.14.
[2] Su Y, Meng L, Kong X, et al. Small sample fault diagnosis method for wind turbine gearbox based on optimized generative adversarial networks[J]. Engineering Failure Analysis, 2022, 140: No.106573.
[3] Shen C, Wang J, Chen J, et al. Gearbox fault diagnosis for wind turbines based on data augmentation using improved generative adversarial networks[J]. Proceedings of the International Conference on Electrical Materials and Power Equipment(ICEMPE), Chongqing, China, 2021.
[4] 张玺君, 尚继洋, 余光杰, 等. 基于注意力的多尺度卷积神经网络轴承故障诊断[J]. 吉林大学学报:工学版, 2024, 54(10): 3009-3017.
Zhang Xi-jun, Shang Ji-yang, Yu Guang-jie, et al. Bearing fault diagnosis based on attention for multi-scale convolutional neural network[J]. Journal of Jilin University(Engineering and Technology Edition), 2024, 54(10): 3009-3017.
[5] Misbah I, Lee C K M, Keung K L. Fault diagnosis in rotating machines based on transfer learning: literature review[J]. Knowledge-Based Systems, 2024, 283: No.111158.
[6] 邵海东, 李伟, 刘翊, 等. 时变转速下基于双阈值注意力生成对抗网络和小样本的转子-轴承系统故障诊断[J]. 机械工程学报, 2023, 59(12): 215-224.
Shao Hai-dong, Li Wei, Liu Yi, et al. Fault diagnosis of rotor-bearing system under time-varying speeds by using dual-threshold attention-embedded GAN and small samples[J]. Journal of Mechanical Engineering, 2023, 59(12): 215-224.
[7] Xie S, Cheng W, Nie Z, et al. Intelligent fault diagnosis of bearings under variable working conditions and small samples with generative adversarial network[C]∥Prognostics and Health Management Conference, London, United Kingdom, 2022: 162-168.
[8] Liang P, Deng C, Yuan X, et al. A deep capsule neural network with data augmentation generative adversarial networks for single and simultaneous fault diagnosis of wind turbine gearbox[J]. ISA Transactions, 2023, 135: 462-475.
[9] Goodfellow I, Pouget-Abadie J, Mirza M, et al. Generative adversarial nets[C]∥Advances in Neural Information Processing Systems, Montreal,Canda, 2014.
[10] Ho J, Jain A, Abbeel P. Denoising diffusion probabilistic models[C]∥Advances in Neural Information Processing Systems, Online, 2020: 6840-6851.
[11] Song J, Meng C, Ermon S. Denoising diffusion implicit models[J/OL].[2020-12-20]. .
[12] Chen P, Xu C, Ma Z, et al. A mixed samples-driven methodology based on denoising diffusion probabilistic model for identifying damage in carbon fiber composite structures[J]. IEEE Transactions on Instrumentation and Measurement, 2023, 72: 1-11.
[13] Huang T, Gao Y, Li Z, et al. A hybrid deep learning framework based on diffusion model and deep residual neural network for defect detection in composite plates[J]. Applied Sciences, 2023, 13(10): No.5843.
[14] Yang X, Ye T, Yuan X, et al. A novel data augmentation method based on denoising diffusion probabilistic model for fault diagnosis under imbalanced data[J]. IEEE Transactions on Industrial Informatics, 2024,20(5): 7820-7831.
[15] Croitoru F A, Hondru V, Ionescu R T, et al. Diffusion models in vision: a survey[J]. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2023, 45(9): 10850-10869.
[16] 刘子昌, 白永生, 李思雨, 等. 基于小波时频图与Swin Transformer的柴油机故障诊断方法[J]. 系统工程与电子技术, 2023, 45(9): 2986-2998.
Liu Zi-chang, Bai Yong-sheng, Li Si-yu, et al. Diesel engine fault diagnosis method based on wavelet time-frequency diagram and Swin Transformer[J]. Systems Engineering and Electronics, 2023, 45(9): 2986-2998.
[17] Ye C, Wang J, Peng C, et al. Novel cross-domain fault diagnosis method based on model-agnostic meta-learning embedded in adaptive threshold network[J]. Measurement, 2023, 222: No.113677.
[18] Wang W, Bao J, Zhou W, et al. SinDiffusion: learning a diffusion model from a single natural image[J]. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2025,47(5):3412-3423.
[19] Lv H, Chen J, Pan T, et al. Attention mechanism in intelligent fault diagnosis of machinery: a review of technique and application[J]. Measurement, 2022, 199: No.111594.
[20] Ouyang D, He S, Zhang G, et al. Efficient multi-scale attention module with cross-spatial learning[C]∥IEEE International Conference on Acoustics, Speech and Signal Processing(ICASSP), Rhodes Island, Greece, 2023: 1-5.
[21] Huang G, Liu Z, Van Der Maaten L, et al. Densely connected convolutional networks[C]∥IEEE Conference on Computer Vision and Pattern Recognition, Hawaii State, America, 2017: 4700-4708.
[22] 徐浩, 沙刚刚, 李腾腾, 等. 基于二维连续小波变换与数据融合技术的 逆有限元法-伪激励法结构损伤识别方法[J]. 复合材料学报, 2021, 38(10): 3554-3562.
Xu Hao, Sha Gang-gang, Li Teng-teng, et al. Structure damage identification method of inverse finite element method-pseudo-excitation method based on 2D continuous wavelet transform and data fusion technology[J]. Acta Materiae Compositae Sinica, 2021, 38(10) :3554-3562.
[23] 陈佛计, 朱枫, 吴清潇, 等. 生成对抗网络及其在图像生成中的应用研究综述[J]. 计算机学报, 2021, 44(2): 347-369.
Chen Fu-ji, Zhu Feng, Wu Qing-xiao, et al. A survey about image generation with generative adversarial nets[J]. Chinese Journal of Computers, 2021, 44(2): 347-369.
[24] Ibrahem H, Salem A, Kang H S. Exploration of semantic label decomposition and dataset size in semantic indoor scenes synthesis via optimized residual generative adversarial networks[J]. Sensors, 2022,22(21): No.8306.
[25] Liu D, Cui L, Cheng W. A review on deep learning in planetary gearbox health state recognition: Methods, applications, and dataset publication[J]. Measurement Science and Technology, 2023,35(1): No. 012002.
[26] Wang X, Jiang H, Wu Z, et al. Adaptive variational autoencoding generative adversarial networks for rolling bearing fault diagnosis[J]. Advanced Engineering Informatics, 2023, 56: No.102027.
[27] Meng Z, He H, Cao W, et al. A novel generation network using feature fusion and guided adversarial learning for fault diagnosis of rotating machinery[J]. Expert Systems with Applications, 2023, 234: No.121058.
[1] 刘昕晖,陈晫群,吕岩. 基于深度学习的工业故障诊断综述[J]. 吉林大学学报(工学版), 2026, 56(7): 1759-1779.
[2] 缪君,严杰,杜荣华,李磊,储珺. 基于双向特征融合的物体位姿估计方法[J]. 吉林大学学报(工学版), 2026, 56(2): 523-532.
[3] 周求湛,李新萌,沈皓庆子,武慧南,李媛媛,荣静,胡春华,刘萍萍. 基于注意力机制的不平衡数据的非侵入式负荷分解[J]. 吉林大学学报(工学版), 2026, 56(1): 239-246.
[4] 冯志刚,任梦媛,董冰,于明月. 基于多频带特征图和改进SqueezeNet的滚动轴承故障诊断[J]. 吉林大学学报(工学版), 2026, 56(1): 96-108.
[5] 兰巍,周政,王冠宇,王伟,张苗苗. 基于机器学习的汽车设计智能拟合方法[J]. 吉林大学学报(工学版), 2025, 55(9): 2858-2863.
[6] 霍震,金立生,华强,贺阳. 基于边缘特征引导的智能汽车语义分割方法[J]. 吉林大学学报(工学版), 2025, 55(9): 3032-3041.
[7] 庄珊娜,王君帅,白晶,杜京瑾,王正友. 基于三维卷积与自注意力机制的视频行人重识别[J]. 吉林大学学报(工学版), 2025, 55(7): 2409-2417.
[8] 冯志刚,王首起,于明月. 基于变分模态提取及轻量级网络的滚动轴承故障诊断[J]. 吉林大学学报(工学版), 2025, 55(6): 1883-1891.
[9] 薛雅丽,俞潼安,崔闪,周李尊. 基于级联嵌套U-Net的红外小目标检测[J]. 吉林大学学报(工学版), 2025, 55(5): 1714-1721.
[10] 张河山,范梦伟,谭鑫,郑展骥,寇立明,徐进. 基于改进YOLOX的无人机航拍图像密集小目标车辆检测[J]. 吉林大学学报(工学版), 2025, 55(4): 1307-1318.
[11] 才华,王玉瑶,付强,马智勇,王伟刚,张晨洁. 基于注意力机制和特征融合的语义分割网络[J]. 吉林大学学报(工学版), 2025, 55(4): 1384-1395.
[12] 张兰芳,李根泽,刘婷宇,余博. 局部多车影响下跟驰行为机理及建模[J]. 吉林大学学报(工学版), 2025, 55(3): 963-973.
[13] 李扬,李现国,苗长云,徐晟. 基于双分支通道先验和Retinex的低照度图像增强算法[J]. 吉林大学学报(工学版), 2025, 55(3): 1028-1036.
[14] 王娜,崔月磊,李杨,王子从. 基于小波包对数能量图的滚动轴承故障诊断方法[J]. 吉林大学学报(工学版), 2025, 55(2): 494-502.
[15] 刘展鹏,马振超. 考虑隐私信息安全性的极少样本条件指纹图像细节加密算法[J]. 吉林大学学报(工学版), 2025, 55(2): 687-692.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!