Li Shankai, Qi Liang, Shi Jiayu, Xiao Han, Da Bin, Tang Runkang, Zuo Danfeng
School of Automation, Jiangsu University of Science and Technology, Zhenjiang 212100, China.
Jiangsu Shipbuilding and Ocean Engineering Design and Research Institute, Zhenjiang 212100, China.
Sensors (Basel). 2024 Dec 24;25(1):6. doi: 10.3390/s25010006.
The fuel system serves as the core component of marine diesel engines, and timely and effective fault diagnosis is the prerequisite for the safe navigation of ships. To address the challenge of current data-driven fault-diagnosis-based methods, which have difficulty in feature extraction and low accuracy under small samples, this paper proposes a fault diagnosis method based on digital twin (DT), Siamese Vision Transformer (SViT), and K-Nearest Neighbor (KNN). Firstly, a diesel engine DT model is constructed by integrating the mathematical, mechanism, and three-dimensional physical models of the Medium-speed diesel engines of 6L21/31 Marine, completing the mapping from physical entity to virtual entity. Fault simulation calculations are performed using the DT model to obtain different types of fault data. Then, a feature extraction network combining Siamese networks with Vision Transformer (ViT) is proposed for the simulated samples. An improved KNN classifier based on the attention mechanism is added to the network to enhance the classification efficiency of the model. Meanwhile, a Weighted-Similarity loss function is designed using similarity labels and penalty coefficients, enhancing the model's ability to discriminate between similar sample pairs. Finally, the proposed method is validated using a simulation dataset. Experimental results indicate that the proposed method achieves average accuracies of 97.22%, 98.21%, and 99.13% for training sets with 10, 20, and 30 samples per class, respectively, which can accurately classify the fault of marine fuel systems under small samples and has promising potential for applications.
燃油系统是船用柴油机的核心部件,及时有效的故障诊断是船舶安全航行的前提。为应对当前基于数据驱动的故障诊断方法面临的挑战,即特征提取困难且在小样本情况下准确率较低,本文提出了一种基于数字孪生(DT)、暹罗视觉Transformer(SViT)和K近邻(KNN)的故障诊断方法。首先,通过整合6L21/31船用中速柴油机的数学模型、机理模型和三维物理模型构建柴油机DT模型,完成从物理实体到虚拟实体的映射。利用DT模型进行故障模拟计算以获取不同类型的故障数据。然后,针对模拟样本提出一种将暹罗网络与视觉Transformer(ViT)相结合的特征提取网络。添加基于注意力机制的改进KNN分类器以提高模型的分类效率。同时,使用相似性标签和惩罚系数设计加权相似性损失函数,增强模型区分相似样本对的能力。最后,利用仿真数据集对所提方法进行验证。实验结果表明,对于每类分别有10、20和30个样本的训练集,所提方法的平均准确率分别达到97.22%、98.21%和99.13%,能够在小样本情况下准确分类船用燃油系统的故障,具有广阔的应用潜力。