[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN114169396A - Construction method and application of training data generation model for aircraft fault diagnosis - Google Patents

Construction method and application of training data generation model for aircraft fault diagnosis Download PDF

Info

Publication number
CN114169396A
CN114169396A CN202111307993.3A CN202111307993A CN114169396A CN 114169396 A CN114169396 A CN 114169396A CN 202111307993 A CN202111307993 A CN 202111307993A CN 114169396 A CN114169396 A CN 114169396A
Authority
CN
China
Prior art keywords
data
aircraft
sample data
training
fault diagnosis
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111307993.3A
Other languages
Chinese (zh)
Other versions
CN114169396B (en
Inventor
刘磊
刘永雄
王博
成忠涛
樊慧津
王永骥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huazhong University of Science and Technology
Original Assignee
Huazhong University of Science and Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huazhong University of Science and Technology filed Critical Huazhong University of Science and Technology
Priority to CN202111307993.3A priority Critical patent/CN114169396B/en
Publication of CN114169396A publication Critical patent/CN114169396A/en
Application granted granted Critical
Publication of CN114169396B publication Critical patent/CN114169396B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/214Generating training patterns; Bootstrap methods, e.g. bagging or boosting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N20/00Machine learning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Software Systems (AREA)
  • Artificial Intelligence (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Evolutionary Computation (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Mathematical Physics (AREA)
  • Computing Systems (AREA)
  • Medical Informatics (AREA)
  • Evolutionary Biology (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Molecular Biology (AREA)
  • Testing Of Devices, Machine Parts, Or Other Structures Thereof (AREA)

Abstract

The invention discloses a training data generation model construction method for aircraft fault diagnosis and application, belonging to the technical field of aircraft fault diagnosis, and comprising S1, constructing a training data generation model comprising a generator and a discriminator; s2, inputting a pre-collected aircraft sample data set into a training data generation model for training, and enabling a generator and a discriminator to play games with each other until Nash balance is achieved; the generator is based on a VAE model, input data are reconstructed by carrying out maximum likelihood estimation on data distribution, data similar to original data are generated, and meanwhile, the authenticity of the generated data is judged through a discriminator, so that the reliability and the authenticity of the data are improved; by adopting the training data generation model provided by the invention, real and accurate sample generation can be realized, so that the technical problems of data shortage and class unbalance are solved under the condition of ensuring the accuracy of fault diagnosis.

Description

用于飞行器故障诊断的训练数据生成模型构建方法及应用Construction method and application of training data generation model for aircraft fault diagnosis

技术领域technical field

本发明属于飞行器故障诊断技术领域,更具体地,涉及一种用于飞行器故障诊断的训练数据生成模型构建方法及应用。The invention belongs to the technical field of aircraft fault diagnosis, and more particularly, relates to a training data generation model construction method and application for aircraft fault diagnosis.

背景技术Background technique

飞行器在飞行过程中一旦发生故障会导致严重经济损失和人员伤亡。为了能够为故障发生时提供预案使得故障得以被控制,故障诊断技术非常重要。Once the aircraft fails during flight, it will cause serious economic losses and casualties. Fault diagnosis technology is very important in order to be able to provide a plan for the fault to be controlled so that the fault can be controlled.

故障诊断技术是一种利用设备当前状态信息和历史状况,通过一定分析方法对设备状态进行评价的状态识别技术。故障诊断常常被分为两类:基于模型的方法和基于数据的方法;其中,基于模型的方法通过建立准确的数学模型,根据飞行器状态量的异常来诊断故障,但在实际运用的过程中,有很多模型不确定性和外部扰动无法建模,因此难以运用。而在基于数据的方法中,多基于深度学习模型对飞行器故障进行诊断,随着深度学习的迅猛发展与在各领域内的广泛迁移,诸如CNN、LSTM、Transformer等结构早已被用于故障诊断领域。但基于深度学习的方法存在两个致命的缺陷,即缺乏数据和类别不平衡。一方面,缺乏数据是所有深度学习任务的共同问题,另一方面,在以飞行器为代表的工业系统中,都极力避免故障的发生,因此,故障数据相较于正常数据是极少的,而具体某一部件发生故障的数据则更是少之又少,这严重影响了深度学习诊断网络的诊断效果。众所周知,数据集的选择对结果的影响远远超出网络结构本身。The fault diagnosis technology is a state identification technology that uses the current state information and historical conditions of the equipment to evaluate the equipment state through a certain analysis method. Fault diagnosis is often divided into two categories: model-based methods and data-based methods; among them, the model-based method establishes an accurate mathematical model to diagnose faults according to the abnormal state quantities of the aircraft, but in the actual application process, There are many model uncertainties and external disturbances that cannot be modeled and are therefore difficult to apply. In the data-based method, the diagnosis of aircraft faults is mostly based on deep learning models. With the rapid development of deep learning and its wide migration in various fields, structures such as CNN, LSTM, and Transformer have long been used in the field of fault diagnosis. . But deep learning-based methods suffer from two fatal flaws, namely lack of data and class imbalance. On the one hand, the lack of data is a common problem for all deep learning tasks. On the other hand, in industrial systems represented by aircraft, failures are avoided. Therefore, the failure data is very small compared to normal data, and The data on the failure of a specific component is even less, which seriously affects the diagnosis effect of the deep learning diagnosis network. It is well known that the choice of dataset has an impact on the results far beyond the network structure itself.

为了解决上述缺陷,现有研究中对飞行器数据进行仿真,但是计算机仿真的结果与实际获取的数据还是会存在数据分布的差异,应用在飞行器上存在风险。因此,针对数据缺乏和类别不平衡的问题,往往不直接对数据进行仿真,而是基于实际采集到的少数样本数据来扩充数据,一种最容易想到的方法就是对少数样本数据进行过采样,称为SMOTE方法,然而这种方法会使数据出现冗余,容易造成模型过拟合问题,不利于后续故障诊断模型训练,影响后续故障诊断的准确性。另一种思路是对数据进行分组,即按一定的规则将不平衡的训练数据集划分成多个平衡数据集,并将在平衡数据集上训练得到的多个分类器按一定的学习方法集成在一起,以此来消除类别不平衡问题,但这类方法在数据分组的过程中会导致新的不平衡数据分组问题,未能根本解决问题,同样会影响后续故障诊断的准确性。In order to solve the above defects, the aircraft data is simulated in the existing research, but there is still a difference in the data distribution between the results of the computer simulation and the actual data obtained, and there are risks in the application of the aircraft. Therefore, for the problems of lack of data and class imbalance, the data is often not simulated directly, but the data is expanded based on the actual collection of a small number of sample data. It is called the SMOTE method. However, this method will make the data redundant and easily cause the problem of model overfitting, which is not conducive to the training of the subsequent fault diagnosis model and affects the accuracy of the subsequent fault diagnosis. Another idea is to group the data, that is, divide the unbalanced training data set into multiple balanced data sets according to certain rules, and integrate the multiple classifiers trained on the balanced data set according to a certain learning method Together, in order to eliminate the class imbalance problem, but such methods will lead to new imbalanced data grouping problems in the process of data grouping, fail to fundamentally solve the problem, and also affect the accuracy of subsequent fault diagnosis.

发明内容SUMMARY OF THE INVENTION

针对现有技术的以上缺陷或改进需求,本发明提供了一种用于飞行器故障诊断的训练数据生成模型构建方法及应用,用以解决现有技术无法在保证故障诊断准确性的条件下,解决数据缺乏和类别不平衡的技术问题。Aiming at the above defects or improvement needs of the prior art, the present invention provides a training data generation model construction method and application for aircraft fault diagnosis, so as to solve the problem that the prior art cannot guarantee the accuracy of fault diagnosis. Technical issues with lack of data and class imbalance.

为了实现上述目的,本发明提供了一种用于飞行器故障诊断的训练数据生成模型构建方法,包括以下步骤:In order to achieve the above purpose, the present invention provides a method for constructing a training data generation model for aircraft fault diagnosis, comprising the following steps:

S1、搭建训练数据生成模型;S1. Build a training data generation model;

训练数据生成模型包括:生成器和判别器;其中,生成器为基于VAE模型的生成器,用于对输入的飞行器样本数据依次进行编码、解码操作,以对其进行重建,得到与飞行器样本数据相似的伪数据;判别器用于判别输入的数据是否为真实的飞行器数据;The training data generation model includes: a generator and a discriminator; wherein, the generator is a generator based on the VAE model, and is used to sequentially encode and decode the input aircraft sample data to reconstruct it and obtain the same as the aircraft sample data. Similar dummy data; the discriminator is used to determine whether the input data is real aircraft data;

S2、将预采集到的飞行器样本数据集输入至训练数据生成模型中进行训练,使生成器与判别器之间相互博弈,直至达到纳什均衡;飞行器样本数据集包括飞行器故障样本数据。S2. Input the pre-collected aircraft sample data set into the training data generation model for training, so that the generator and the discriminator play games with each other until a Nash equilibrium is reached; the aircraft sample data set includes aircraft fault sample data.

进一步优选地,上述生成器包括:级联的第一MLP-Mixer、VAE模型和第二MLP-Mixer;Further preferably, the above generator includes: a cascaded first MLP-Mixer, a VAE model and a second MLP-Mixer;

第一MLP-Mixer用于对输入的飞行器样本数据的维度进行扩充,并整合扩充后的飞行器样本数据不同通道的特征,从而将飞行器样本数据映射为深度数据特征;The first MLP-Mixer is used to expand the dimension of the input aircraft sample data, and integrate the features of different channels of the expanded aircraft sample data, thereby mapping the aircraft sample data into depth data features;

VAE模型用于通过编码器对深度数据特征进行编码得到其所对应的均值和方差后,在所得均值和方差所对应的正态分布中进行重采样,得到隐变量,并通过解码器对隐变量进行重构,得到与深度数据特征相似的伪数据特征;The VAE model is used to encode the depth data features through the encoder to obtain the corresponding mean and variance, then resample in the normal distribution corresponding to the obtained mean and variance to obtain hidden variables, and pass the decoder to the hidden variables. Perform reconstruction to obtain pseudo data features similar to depth data features;

第二MLP-Mixer用于将伪数据特征按照不同通道进行映射,从而将伪数据特征反映射为与飞行器样本数据相似的伪数据。The second MLP-Mixer is used to map the pseudo data features according to different channels, so as to inversely map the pseudo data features into pseudo data similar to the aircraft sample data.

进一步优选地,步骤S2包括:Further preferably, step S2 includes:

S21、分别对预采集到的飞行器样本数据集中的各样本数据,通过生成器生成样本数据所对应的伪数据后,将样本数据和对应的伪数据分别输入到判别器中,得到样本数据及对应的伪数据分别被判别为飞行器真实数据的预测概率;S21. For each sample data in the pre-collected aircraft sample data set, after generating the pseudo data corresponding to the sample data through the generator, input the sample data and the corresponding pseudo data into the discriminator, respectively, to obtain the sample data and the corresponding pseudo data. The pseudo data of the aircraft are respectively judged as the predicted probability of the real data of the aircraft;

S22、通过计算样本数据和对应的伪数据之间的表达差异和分布差异之和,得到生成器的损失值;通过计算样本数据及对应的伪数据分别被判别为飞行器真实数据的预测概率与对应的真实概率之间的差异之和,得到判别器的损失值;S22. Obtain the loss value of the generator by calculating the sum of the expression difference and distribution difference between the sample data and the corresponding pseudo data; by calculating the sample data and the corresponding pseudo data, the predicted probability and corresponding The sum of the differences between the true probabilities of , and the loss value of the discriminator is obtained;

S23、判断生成器的损失值和判别器的损失值之和是否达到最小或者迭代次数是否达到预设迭代次数,若是,则训练数据生成模型训练完成,操作结束;否则,更新生成器和判别器中的参数,转至步骤S21。S23. Determine whether the sum of the loss value of the generator and the loss value of the discriminator reaches the minimum or whether the number of iterations reaches the preset number of iterations. If so, the training of the training data generation model is completed, and the operation ends; otherwise, the generator and the discriminator are updated. parameters in , go to step S21.

进一步优选地,生成器的损失值为:Further preferably, the loss value of the generator is:

LG=MSE+KLDL G =MSE+KLD

Figure BDA0003340924530000031
Figure BDA0003340924530000031

Figure BDA0003340924530000041
Figure BDA0003340924530000041

其中,MSE为样本数据和对应的伪数据之间的表达差异;N为飞行器样本数据集中的样本数据的个数;

Figure BDA0003340924530000042
为第i个样本数据所对应的伪数据;
Figure BDA0003340924530000043
为第i个样本数据;KLD为样本数据分布和对应的伪数据分布的KL散度;μi和σi分别为编码器输出的第i个样本数据所对应的均值和方差。Among them, MSE is the expression difference between the sample data and the corresponding pseudo data; N is the number of sample data in the aircraft sample data set;
Figure BDA0003340924530000042
is the pseudo data corresponding to the i-th sample data;
Figure BDA0003340924530000043
is the i-th sample data; KLD is the KL divergence of the sample data distribution and the corresponding pseudo-data distribution; μ i and σ i are the mean and variance corresponding to the i-th sample data output by the encoder, respectively.

进一步优选地,判别器的损失值为:Further preferably, the loss value of the discriminator is:

Figure BDA0003340924530000044
Figure BDA0003340924530000044

其中,

Figure BDA0003340924530000045
为样本数据被判别为飞行器真实数据的预测概率;
Figure BDA0003340924530000046
为样本数据为飞行器真实数据的真实概率;
Figure BDA0003340924530000047
为样本数据所对应的伪数据被判别为飞行器真实数据的预测概率。in,
Figure BDA0003340924530000045
is the predicted probability that the sample data is judged to be the real data of the aircraft;
Figure BDA0003340924530000046
is the real probability that the sample data is the real data of the aircraft;
Figure BDA0003340924530000047
The pseudo data corresponding to the sample data is judged as the predicted probability of the real data of the aircraft.

第二方面,本发明提供了一种用于飞行器故障诊断的训练数据生成方法,包括:In a second aspect, the present invention provides a training data generation method for aircraft fault diagnosis, including:

通过控制预采集到的飞行器样本数据集中样本数据的扩充次数,对飞行器样本数据集进行扩充,使扩充后的飞行器样本数据集中的样本数据数量达到预设数量、且飞行器故障样本数据和飞行器正常样本数据的数量达到平衡;所得扩充后的飞行器样本数据集即为用于飞行器故障诊断的训练数据集;By controlling the expansion times of the sample data in the pre-collected aircraft sample data set, the aircraft sample data set is expanded, so that the number of sample data in the expanded aircraft sample data set reaches the preset number, and the aircraft fault sample data and aircraft normal samples The amount of data is balanced; the obtained expanded aircraft sample data set is the training data set used for aircraft fault diagnosis;

其中,扩充的样本数据为飞行器故障样本数据和/或飞行器正常样本数据;Wherein, the expanded sample data is aircraft fault sample data and/or aircraft normal sample data;

样本数据的扩充方法包括:Augmentation methods for sample data include:

将样本数据输入到采用本发明第一方面所提供的训练数据生成模型构建方法所构建的训练数据生成模型的生成器中,得到样本数据所对应的伪数据,以对样本数据进行扩充;伪数据的故障信息标签和与其对应的样本数据的故障信息标签相同。Input the sample data into the generator of the training data generation model constructed by using the training data generation model construction method provided by the first aspect of the present invention, and obtain pseudo data corresponding to the sample data, so as to expand the sample data; The fault information label of is the same as the fault information label of its corresponding sample data.

第三方面,本发明提供了一种飞行器故障诊断模型的构建方法,包括:In a third aspect, the present invention provides a method for constructing an aircraft fault diagnosis model, including:

将采用本发明第二方面所提供的训练数据生成方法生成的训练数据集输入到机器学习模型中进行训练,得到飞行器故障诊断模型。The training data set generated by the training data generation method provided by the second aspect of the present invention is input into the machine learning model for training, and an aircraft fault diagnosis model is obtained.

进一步优选地,上述机器学习模型为Transformer模型。Further preferably, the above-mentioned machine learning model is a Transformer model.

第四方面,本发明提供了一种飞行器故障诊断方法,包括:将飞行样本器数据输入到采用本发明第三方面所提供的飞行器故障诊断模型的构建方法所构建的飞行器故障诊断模型中,得到飞行器故障信息。In a fourth aspect, the present invention provides a method for diagnosing aircraft faults, comprising: inputting flight sampler data into an aircraft fault diagnosis model constructed by using the method for constructing an aircraft fault diagnosis model provided in the third aspect of the present disclosure, and obtaining Aircraft failure information.

第五方面,本发明还提供了一种机器可读存储介质,所述机器可读存储介质存储有机器可执行指令,所述机器可执行指令在被处理器调用和执行时,所述机器可执行指令促使所述处理器实现本发明第一方面所提供的训练数据生成模型构建方法、第二方面所提供的训练数据生成方法、第三方面所提供的飞行器故障诊断模型的构建方法、以及第四方面所提供的飞行器故障诊断方法中的一种或多种。In a fifth aspect, the present invention also provides a machine-readable storage medium, where the machine-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are called and executed by a processor, the machine can Executing the instructions causes the processor to implement the method for constructing a training data generation model provided in the first aspect of the present invention, the method for generating training data provided in the second aspect, the method for constructing an aircraft fault diagnosis model provided in the third aspect, and the third aspect of the present invention. One or more of the aircraft fault diagnosis methods provided in the four aspects.

总体而言,通过本发明所构思的以上技术方案,能够取得以下有益效果:In general, through the above technical solutions conceived by the present invention, the following beneficial effects can be achieved:

1、本发明提供了一种用于飞行器故障诊断的训练数据生成模型构建方法,所构建的训练数据生成模型包括生成器和判别器;其中,生成器为基于VAE模型的生成器,通过对数据分布进行最大似然估计,实现对输入数据的重构,生成出与原数据相似的数据,同时通过判别器判别生成数据的真实性;通过生成器与判别器之间的相互博弈,从而增加数据的可信度和真实性;采用本发明所提供的训练数据生成模型,能够实现真实准确的样本生成,从而实现在保证故障诊断准确性的条件下,解决数据缺乏和类别不平衡的技术问题。1. The present invention provides a method for constructing a training data generation model for aircraft fault diagnosis, and the constructed training data generation model includes a generator and a discriminator; wherein, the generator is a generator based on the VAE model, and the The maximum likelihood estimation of the distribution is performed to realize the reconstruction of the input data, generate data similar to the original data, and at the same time judge the authenticity of the generated data through the discriminator; through the mutual game between the generator and the discriminator, thereby increasing the data The training data generation model provided by the present invention can realize real and accurate sample generation, so as to solve the technical problems of lack of data and unbalanced categories under the condition of ensuring the accuracy of fault diagnosis.

2、本发明所提供的训练数据生成模型构建方法中,在生成器中引入MLP-Mixer,在网络内部训练时,将空间域不同通道内的信息进行融合,起到特征增强的作用,本发明通过对输入的飞行器样本数据的维度进行扩充,并整合扩充后的飞行器样本数据不同通道的特征,从而将飞行器样本数据映射为深度数据特征,大大提高了特征提取能力,提高了模型的准确度。2. In the training data generation model construction method provided by the present invention, the MLP-Mixer is introduced into the generator, and when training within the network, the information in different channels in the spatial domain is fused to play the role of feature enhancement, the present invention By expanding the dimensions of the input aircraft sample data and integrating the features of different channels of the expanded aircraft sample data, the aircraft sample data is mapped to depth data features, which greatly improves the feature extraction ability and improves the accuracy of the model.

附图说明Description of drawings

图1为本发明实施例1提供的用于飞行器故障诊断的训练数据生成模型构建方法流程图;1 is a flowchart of a method for constructing a training data generation model for aircraft fault diagnosis provided by Embodiment 1 of the present invention;

图2为本发明实施例1提供的训练数据生成模型的结构示意图;2 is a schematic structural diagram of a training data generation model provided in Embodiment 1 of the present invention;

图3为本发明实施例1提供的生成器的结构示意图;3 is a schematic structural diagram of a generator provided in Embodiment 1 of the present invention;

图4为本发明实施例1提供的VAE模型的结构示意图;4 is a schematic structural diagram of a VAE model provided in Embodiment 1 of the present invention;

图5为本发明对比实验1提供的分别采用真实采集到的飞行器样本数据集和经本发明所提供的训练数据生成模型扩充后的数据集对相同的飞行器故障诊断模型进行训练后,进行飞行器的四个故障执行器进行故障诊断后,与真实故障诊断值进行比较所得的实验结果;Fig. 5 is provided by the comparative experiment 1 of the present invention respectively using the aircraft sample data set that is actually collected and the data set expanded by the training data generation model provided by the present invention to train the same aircraft fault diagnosis model, after the same aircraft fault diagnosis model is performed The experimental results obtained by comparing the four faulty actuators with the real fault diagnosis values after fault diagnosis;

图6为本发明对比实验2提供的分别采用加MLP-Mixer的模型和未加MLP-Mixer的模型对相同的飞行器故障诊断模型进行训练后,进行飞行器的四个故障执行器进行故障诊断后,与真实故障诊断值进行比较所得的实验结果。Fig. 6 adopts the model that adds MLP-Mixer and the model that does not add MLP-Mixer to provide for comparative experiment 2 of the present invention respectively after the same aircraft fault diagnosis model is trained, after carrying out the fault diagnosis of four fault actuators of the aircraft, Experimental results compared with real fault diagnosis values.

具体实施方式Detailed ways

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。此外,下面所描述的本发明各个实施方式中所涉及到的技术特征只要彼此之间未构成冲突就可以相互组合。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

实施例1、Embodiment 1,

一种用于飞行器故障诊断的训练数据生成模型构建方法,如图1所示,包括以下步骤:A method for building a training data generation model for aircraft fault diagnosis, as shown in Figure 1, includes the following steps:

S1、搭建训练数据生成模型;S1. Build a training data generation model;

其中,如图2所示,训练数据生成模型包括:生成器和判别器;其中,生成器为基于VAE模型的生成器,用于对输入的飞行器样本数据依次进行编码、解码操作,以对其进行重建,得到与飞行器样本数据相似的伪数据;判别器用于判别输入的数据是否为真实的飞行器数据;本实施例中将训练数据生成模型记为对抗变分自编码生成器模型(AdversarialVariational AutoEncoding Generator,AVAEG)。Among them, as shown in Figure 2, the training data generation model includes: a generator and a discriminator; wherein, the generator is a generator based on the VAE model, and is used to encode and decode the input aircraft sample data in turn, so as to Carry out reconstruction, obtain the pseudo data similar to the aircraft sample data; The discriminator is used to distinguish whether the input data is real aircraft data; In the present embodiment, the training data generation model is recorded as the Adversarial Variational AutoEncoding Generator model (AdversarialVariational AutoEncoding Generator , AVAEG).

优选地,在一种可选实施方式中,如图3所示,上述生成器包括:级联的第一MLP-Mixer、VAE模型和第二MLP-Mixer;Preferably, in an optional implementation manner, as shown in FIG. 3 , the above generator includes: a cascaded first MLP-Mixer, a VAE model and a second MLP-Mixer;

第一MLP-Mixer用于对输入的飞行器样本数据的维度进行扩充,并整合扩充后的飞行器样本数据不同通道的特征,从而将飞行器样本数据映射为深度数据特征;需要说明的是,本实施例中使用的飞行器样本数据包括飞行器的姿态数据和故障数据,这些数据的维度很小,但是包含的信息量却非常大。在综合考虑不同状态量的数据来判断飞行器的故障情况时,需要对上述数据进行处理,提取出更深的特征信息,本发明在生成器中引入MLP-Mixer,可以使生成器能够提取不同通道的特征,增强特征提取能力。The first MLP-Mixer is used to expand the dimension of the input aircraft sample data, and integrate the features of different channels of the expanded aircraft sample data, thereby mapping the aircraft sample data into depth data features; it should be noted that this embodiment The sample data of the aircraft used in this paper includes the attitude data and fault data of the aircraft. The dimensions of these data are small, but the amount of information contained is very large. When judging the failure of the aircraft by comprehensively considering the data of different state quantities, the above data needs to be processed to extract deeper feature information. The present invention introduces MLP-Mixer into the generator, which can enable the generator to extract different features to enhance feature extraction capabilities.

VAE模型用于通过编码器对深度数据特征进行编码得到其所对应的均值和方差后,在所得均值和方差所对应的正态分布中进行重采样,得到隐变量,并通过解码器对隐变量进行重构,得到与深度数据特征相似的伪数据特征;The VAE model is used to encode the depth data features through the encoder to obtain the corresponding mean and variance, then resample in the normal distribution corresponding to the obtained mean and variance to obtain hidden variables, and pass the decoder to the hidden variables. Perform reconstruction to obtain pseudo data features similar to depth data features;

具体地,本实施例中所采用的VAE模型如图4所示,其中,编码器包括卷积层;第i个样本数据所对应的编码器的输出为

Figure BDA0003340924530000071
可以被平分为两个部分,即μii∈Rh,h表示隐变量维度;μi和σi分别为编码器输出的第i个样本数据所对应的均值和方差。Specifically, the VAE model adopted in this embodiment is shown in FIG. 4 , wherein the encoder includes a convolution layer; the output of the encoder corresponding to the i-th sample data is
Figure BDA0003340924530000071
It can be divided into two parts, namely μ i , σ i ∈ R h , h represents the hidden variable dimension; μ i and σ i are the mean and variance corresponding to the ith sample data output by the encoder, respectively.

编码器的输出经过重采样后得到隐变量zi,隐变量zi是编码器的输出zi和满足高斯分布的随机变量ε的复合函数,即:The output of the encoder is resampled to obtain a hidden variable zi , which is a composite function of the output zi of the encoder and a random variable ε that satisfies the Gaussian distribution, namely:

Figure BDA0003340924530000081
Figure BDA0003340924530000081

其中,zi∈Rh

Figure BDA0003340924530000082
εi~N(0,1),fh(·)为隐变量函数。Among them, zi ∈ R h ,
Figure BDA0003340924530000082
ε i ~N(0,1), f h (·) is a hidden variable function.

本实施例中,解码器包括反卷积层;隐变量zi输入进解码器后得到伪数据特征,伪数据特征的维度与输入编码器的深度数据特征相同;In this embodiment, the decoder includes a deconvolution layer; the latent variable zi is input into the decoder to obtain pseudo data features, and the dimensions of the pseudo data features are the same as the depth data features of the input encoder;

第二MLP-Mixer用于将伪数据特征按照不同通道进行映射,从而将伪数据特征反映射为与飞行器样本数据相似的伪数据。The second MLP-Mixer is used to map the pseudo data features according to different channels, so as to inversely map the pseudo data features into pseudo data similar to the aircraft sample data.

S2、将预采集到的飞行器样本数据集输入至训练数据生成模型中进行训练,使生成器与判别器之间相互博弈,直至达到纳什均衡;飞行器样本数据集包括飞行器故障样本数据。S2. Input the pre-collected aircraft sample data set into the training data generation model for training, so that the generator and the discriminator play games with each other until a Nash equilibrium is reached; the aircraft sample data set includes aircraft fault sample data.

具体地,本实施例在真实飞行器场景下预先采集了一个包括有飞行器故障样本数据的小数据集,记为飞行器样本数据集;每个样本数据均包括飞行器状态信息,具体包括飞行器状态四元数和姿态角组成的状态信息向量

Figure BDA0003340924530000083
同时也采集到了每个样本数据的故障信息,具体包括飞行器的四个执行机构的故障情况所构成的故障信息向量cr。记飞行器样本数据集为
Figure BDA0003340924530000084
其中,
Figure BDA0003340924530000085
N为数据集数据容量,feature_num为状态信息向量的元素个数,label_num为故障信息向量的元素个数。Specifically, in this embodiment, a small data set including aircraft fault sample data is pre-collected in a real aircraft scenario, which is recorded as the aircraft sample data set; each sample data includes aircraft state information, specifically including the aircraft state quaternion and the state information vector composed of the attitude angle
Figure BDA0003340924530000083
At the same time, the fault information of each sample data is also collected, specifically including the fault information vector r formed by the fault conditions of the four actuators of the aircraft. The aircraft sample data set is recorded as
Figure BDA0003340924530000084
in,
Figure BDA0003340924530000085
N is the data capacity of the dataset, feature_num is the number of elements of the state information vector, and label_num is the number of elements of the fault information vector.

在训练阶段,飞行器样本数据集中的样本数据

Figure BDA0003340924530000086
经过生成器得到对应的伪数据
Figure BDA0003340924530000087
接着,将样本数据
Figure BDA0003340924530000088
与对应的伪数据
Figure BDA0003340924530000089
分别送入判别器,令判别器鉴别真伪。训练过程是生成器与判别器的博弈,当两者理论上达到纳什均衡时停止训练。During the training phase, the sample data in the aircraft sample dataset
Figure BDA0003340924530000086
Obtain the corresponding pseudo data through the generator
Figure BDA0003340924530000087
Next, the sample data
Figure BDA0003340924530000088
with the corresponding dummy data
Figure BDA0003340924530000089
They are respectively sent to the discriminator, so that the discriminator can identify the authenticity. The training process is a game between the generator and the discriminator, and the training stops when the two theoretically reach the Nash equilibrium.

具体地,AVAEG的训练阶段示意图如图3所示,在一种可选实施方式中,步骤S2包括:Specifically, a schematic diagram of the training phase of AVAEG is shown in FIG. 3 . In an optional implementation manner, step S2 includes:

S21、分别对预采集到的飞行器样本数据集中的各样本数据,通过生成器生成样本数据所对应的伪数据后,将样本数据和对应的伪数据分别输入到判别器中,得到样本数据及对应的伪数据分别被判别为飞行器真实数据的预测概率;S21. For each sample data in the pre-collected aircraft sample data set, after generating the pseudo data corresponding to the sample data through the generator, input the sample data and the corresponding pseudo data into the discriminator, respectively, to obtain the sample data and the corresponding pseudo data. The pseudo data of the aircraft are respectively judged as the predicted probability of the real data of the aircraft;

S22、通过计算样本数据和对应的伪数据之间的表达差异和分布差异之和,得到生成器的损失值;通过计算样本数据及对应的伪数据分别被判别为飞行器真实数据的预测概率与对应的真实概率之间的差异之和,得到判别器的损失值;S22. Obtain the loss value of the generator by calculating the sum of the expression difference and distribution difference between the sample data and the corresponding pseudo data; by calculating the sample data and the corresponding pseudo data, the predicted probability and corresponding The sum of the differences between the true probabilities of , and the loss value of the discriminator is obtained;

具体地,生成器的损失值为:Specifically, the loss value of the generator is:

LG=MSE+KLDL G =MSE+KLD

Figure BDA0003340924530000091
Figure BDA0003340924530000091

Figure BDA0003340924530000092
Figure BDA0003340924530000092

其中,MSE为样本数据和对应的伪数据之间的表达差异;N为飞行器样本数据集中的样本数据的个数;

Figure BDA0003340924530000093
为第i个样本数据所对应的伪数据;
Figure BDA0003340924530000094
为第i个样本数据;KLD为样本数据分布和对应的伪数据分布的KL散度;μi和σi分别为编码器输出的第i个样本数据所对应的均值和方差。Among them, MSE is the expression difference between the sample data and the corresponding pseudo data; N is the number of sample data in the aircraft sample data set;
Figure BDA0003340924530000093
is the pseudo data corresponding to the i-th sample data;
Figure BDA0003340924530000094
is the i-th sample data; KLD is the KL divergence of the sample data distribution and the corresponding pseudo-data distribution; μ i and σ i are the mean and variance corresponding to the i-th sample data output by the encoder, respectively.

具体地,判别器的损失值为:Specifically, the loss value of the discriminator is:

Figure BDA0003340924530000095
Figure BDA0003340924530000095

其中,

Figure BDA0003340924530000096
为样本数据被判别为飞行器真实数据的预测概率;
Figure BDA0003340924530000097
为样本数据为飞行器真实数据的真实概率;
Figure BDA0003340924530000098
为样本数据所对应的伪数据被判别为飞行器真实数据的预测概率。in,
Figure BDA0003340924530000096
is the predicted probability that the sample data is judged to be the real data of the aircraft;
Figure BDA0003340924530000097
is the real probability that the sample data is the real data of the aircraft;
Figure BDA0003340924530000098
The pseudo data corresponding to the sample data is judged as the predicted probability of the real data of the aircraft.

S23、判断生成器的损失值和判别器的损失值之和是否达到最小或者迭代次数是否达到预设迭代次数(预设迭代次数Epoch一般取值为100),若是,则训练数据生成模型训练完成,操作结束;否则,更新生成器和判别器中的参数,转至步骤S21。S23. Determine whether the sum of the loss value of the generator and the loss value of the discriminator reaches the minimum or whether the number of iterations reaches a preset number of iterations (the preset number of iterations Epoch generally takes a value of 100), if so, the training data generation model training is completed , the operation ends; otherwise, update the parameters in the generator and the discriminator, and go to step S21.

具体地,训练数据生成模型的损失函数为:L=LG+LD;根据数据生成模型的损失函数值反向更新生成器和损失值中的参数,以对训练数据生成模型进行训练。Specifically, the loss function of the training data generation model is: L=L G +L D ; the parameters in the generator and the loss value are reversely updated according to the loss function value of the data generation model to train the training data generation model.

实施例2、Embodiment 2,

一种用于飞行器故障诊断的训练数据生成方法,包括:A training data generation method for aircraft fault diagnosis, comprising:

通过控制预采集到的飞行器样本数据集中样本数据的扩充次数,对飞行器样本数据集进行扩充,使扩充后的飞行器样本数据集中的样本数据数量达到预设数量、且飞行器故障样本数据和飞行器正常样本数据的数量达到平衡;所得扩充后的飞行器样本数据集即为用于飞行器故障诊断的训练数据集;By controlling the expansion times of the sample data in the pre-collected aircraft sample data set, the aircraft sample data set is expanded, so that the number of sample data in the expanded aircraft sample data set reaches the preset number, and the aircraft fault sample data and aircraft normal samples The amount of data is balanced; the obtained expanded aircraft sample data set is the training data set used for aircraft fault diagnosis;

其中,扩充的样本数据为飞行器故障样本数据和/或飞行器正常样本数据;Wherein, the expanded sample data is aircraft fault sample data and/or aircraft normal sample data;

样本数据的扩充方法包括:Augmentation methods for sample data include:

将样本数据输入到采用实施例1所提供的训练数据生成模型构建方法所构建的训练数据生成模型的生成器中,得到样本数据所对应的伪数据,以对样本数据进行扩充;伪数据的故障信息标签和与其对应的样本数据的故障信息标签相同。The sample data is input into the generator of the training data generation model constructed by the training data generation model construction method provided in Embodiment 1, and the pseudo data corresponding to the sample data is obtained, so as to expand the sample data; the fault of the pseudo data The information label is the same as the failure information label of the corresponding sample data.

具体地,以采集到的飞行器样本数据集中的样本数据较少、且其中故障样本数据和正常样本数据的数量不平衡的场景为例;Specifically, take a scenario in which the collected aircraft sample data set contains less sample data and the number of fault sample data and normal sample data is unbalanced as an example;

首先,将飞行器样本数据集

Figure BDA0003340924530000101
中的各样本数据分别到生成器中,将每一个样本数据喂入生成器M(本实施例中M取值为100)次,得到M个伪数据,每一个生成的伪数据直接根据原样本数据分配故障信息向量(故障信息标签)。飞行器样本数据集
Figure BDA0003340924530000111
通过这种方法得到的生成数据集
Figure BDA0003340924530000112
的数据量被扩充了100倍,合并飞行器样本数据集
Figure BDA0003340924530000113
和生成数据集
Figure BDA0003340924530000114
得到新的数据集
Figure BDA0003340924530000115
从而有效地解决了数据集太小的问题。First, the aircraft sample dataset
Figure BDA0003340924530000101
The sample data in the generator are respectively sent to the generator, and each sample data is fed into the generator M (the value of M in this embodiment is 100) times to obtain M pseudo data, and each generated pseudo data is directly based on the original sample. Data assigns fault information vectors (fault information labels). Aircraft sample dataset
Figure BDA0003340924530000111
Generated datasets obtained by this method
Figure BDA0003340924530000112
The amount of data has been expanded by a factor of 100, combining aircraft sample data sets
Figure BDA0003340924530000113
and generate dataset
Figure BDA0003340924530000114
get new dataset
Figure BDA0003340924530000115
This effectively solves the problem that the dataset is too small.

进一步地,为了解决类别不平衡问题,可以根据新数据集中飞行器正常样本数据与飞行器故障样本数据的数量比例Q,控制飞行器故障样本数据喂入生成器的次数,以使飞行器正常样本数据与飞行器故障样本数据的数量达到平衡;本实施例中,将每一个故障样本均喂入到生成器Q次,以实现类别平衡。Further, in order to solve the problem of class imbalance, the number of times the aircraft fault sample data is fed into the generator can be controlled according to the quantity ratio Q of the aircraft normal sample data and the aircraft fault sample data in the new data set, so that the aircraft normal sample data and the aircraft fault can be matched. The number of sample data is balanced; in this embodiment, each fault sample is fed to the generator Q times to achieve class balance.

相关技术方案同实施例1,这里不做赘述。The related technical solutions are the same as those in Embodiment 1, and are not repeated here.

实施例3、Embodiment 3,

一种飞行器故障诊断模型的构建方法,包括:A method for constructing an aircraft fault diagnosis model, comprising:

将采用实施例2所提供的训练数据生成方法生成的训练数据集输入到机器学习模型(深度学习模型)中进行训练,得到飞行器故障诊断模型。The training data set generated by using the training data generation method provided in Embodiment 2 is input into a machine learning model (deep learning model) for training, and an aircraft fault diagnosis model is obtained.

具体地,飞行器故障诊断模型的损失函数为:Specifically, the loss function of the aircraft fault diagnosis model is:

Figure BDA0003340924530000116
Figure BDA0003340924530000116

其中,K为训练数据集中训练数据的数量;

Figure BDA0003340924530000117
为飞行器故障诊断模型输出的第k个训练数据的飞行器故障信息的预测值;ck为第k个训练数据的飞行器故障信息的真实值。Among them, K is the number of training data in the training data set;
Figure BDA0003340924530000117
is the predicted value of the aircraft fault information of the kth training data output by the aircraft fault diagnosis model; ck is the actual value of the aircraft fault information of the kth training data.

基于飞行器故障诊断模型的损失函数值,反向更新飞行器故障诊断模型中的参数,重复上述过程直至网络收敛,从而最小化飞行器故障诊断模型的损失函数值。Based on the loss function value of the aircraft fault diagnosis model, the parameters in the aircraft fault diagnosis model are reversely updated, and the above process is repeated until the network converges, thereby minimizing the loss function value of the aircraft fault diagnosis model.

飞行器故障诊断模型可以为常用的机器学习模型(深度学习模型);优选地,在一种可选实施方式下,上述机器学习模型为Transformer模型。The aircraft fault diagnosis model may be a commonly used machine learning model (deep learning model); preferably, in an optional implementation manner, the above-mentioned machine learning model is a Transformer model.

相关技术方案同实施例2,这里不做赘述。The related technical solutions are the same as those in Embodiment 2, and are not repeated here.

实施例4、Embodiment 4,

一种飞行器故障诊断方法,包括:将飞行样本器数据输入到采用实施例3所提供的飞行器故障诊断模型的构建方法所构建的飞行器故障诊断模型中,得到飞行器故障信息。A method for diagnosing aircraft faults, comprising: inputting flight sampler data into an aircraft fault diagnosis model constructed by using the method for constructing an aircraft fault diagnosis model provided in Embodiment 3 to obtain aircraft fault information.

相关技术方案同实施例3,这里不做赘述。The related technical solution is the same as that of Embodiment 3, and will not be repeated here.

实施例5、Embodiment 5,

一种机器可读存储介质,所述机器可读存储介质存储有机器可执行指令,所述机器可执行指令在被处理器调用和执行时,所述机器可执行指令促使所述处理器实现实施例1所提供的训练数据生成模型构建方法、实施例2所提供的训练数据生成方法、实施例3所提供的飞行器故障诊断模型的构建方法、以及实施例4所提供的飞行器故障诊断方法中的一种或多种。A machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to implement the machine-executable instructions Among the training data generation model construction method provided in Example 1, the training data generation method provided in Example 2, the construction method of the aircraft fault diagnosis model provided in Example 3, and the aircraft fault diagnosis method provided in Example 4 one or more.

相关技术方案同实施例1-实施例4,这里不做赘述。The related technical solutions are the same as those of Embodiment 1 to Embodiment 4, and will not be repeated here.

为了进一步说明本发明所提供的训练数据生成模型,下面结合对比实验1和对比实验2进行详述:In order to further illustrate the training data generation model provided by the present invention, detailed description is given below in conjunction with Comparative Experiment 1 and Comparative Experiment 2:

对比实验1、Comparative experiment 1.

本实验中,分别采用真实采集到的飞行器样本数据集(小数据集)和经本发明所提供的训练数据生成模型扩充后的数据集对相同的飞行器故障诊断模型进行训练后,进行飞行器的四个故障执行器(分别记为fa1、fa2、fa3和fa4)进行故障诊断后,与真实故障诊断值进行比较,得到如图5所示的实验结果;其中,横坐标为对飞行器连续飞行1s的数据进行100次采样所得的采样点;纵坐标为采样点处的诊断值。本实验基于上述模型对每一个采样点分别进行故障诊断,然后排列出来,得到如图5所示的结果;从图5可以看出,相比于小数据集训练所得的飞行器故障诊断模型的故障诊断结果,本发明所提供的训练数据生成模型扩充后的数据集训练所得的飞行器故障诊断模型的故障诊断结果更接近于真实的故障诊断值。另外,分别计算小数据集训练所得的飞行器故障诊断模型的故障诊断结果和本发明所提供的训练数据生成模型扩充后的数据集训练所得的飞行器故障诊断模型的故障诊断结果的均方误差MSE,得到小数据集所对应的诊断MSE为0.025256619以及数据扩充后的诊断MSE为0.0022036468。由上述实验可以看出,本发明所提供的训练数据生成模型对于飞行器诊断结果的精确度存在量级上的优化。In this experiment, after training the same aircraft fault diagnosis model using the actual collected aircraft sample data set (small data set) and the data set expanded by the training data generation model provided by the present invention, the four After the fault diagnosis of the faulty actuators (respectively denoted as f a 1, f a 2, f a 3 and f a 4) is carried out, they are compared with the real fault diagnosis values, and the experimental results shown in Figure 5 are obtained; among them, the horizontal The coordinates are the sampling points obtained by sampling 100 times the data of the aircraft flying continuously for 1 s; the ordinate is the diagnostic value at the sampling point. In this experiment, based on the above model, each sampling point was diagnosed separately, and then arranged to obtain the results shown in Figure 5; it can be seen from Figure 5 that compared with the failure of the aircraft fault diagnosis model trained with a small data set As for the diagnosis result, the fault diagnosis result of the aircraft fault diagnosis model obtained by training the expanded data set of the training data generation model provided by the present invention is closer to the real fault diagnosis value. In addition, calculate the mean square error MSE of the fault diagnosis result of the aircraft fault diagnosis model obtained by training with the small data set and the fault diagnosis result of the aircraft fault diagnosis model obtained by training the data set after the training data generation model provided by the present invention is expanded, The diagnostic MSE corresponding to the small data set is 0.025256619 and the diagnostic MSE after data expansion is 0.0022036468. It can be seen from the above experiments that the training data generation model provided by the present invention has an order of magnitude optimization for the accuracy of the aircraft diagnosis result.

对比实验2、Comparative experiment 2,

本实验中,分别采用第一实验模型和第二实验模型生成的训练数据集对相同的飞行器故障诊断模型进行训练后,进行飞行器的四个故障执行器(分别记为fa1、fa2、fa3和fa4)进行故障诊断后,与真实故障诊断值进行比较,得到如图6所示的实验结果;其中,第一实验模型和第二实验模型分别为本发明所提供的训练数据生成模型(加MLP-Mixer的模型)以及将本发明所提供的训练数据生成模型中的MLP-Mixer去掉后的模型(未加MLP-Mixer的模型)。同样地,横坐标为对飞行器连续飞行1s的数据进行100次采样所得的采样点;纵坐标为采样点处的诊断值。本实验基于上述模型对每一个采样点分别进行故障诊断,然后排列出来,得到如图6所示的结果;从图6可以看出,相比于基于未加MLP-Mixer的模型所得的故障诊断结果,基于本发明所提供的训练数据生成模型(加MLP-Mixer的模型)所得的故障诊断结果更接近于真实的故障诊断值。另外,分别计算基于未加MLP-Mixer的模型所得的故障诊断结果和基于本发明所提供的训练数据生成模型(加MLP-Mixer的模型)所得的故障诊断结果的均方误差MSE,得到未加MLP-Mixer的模型所对应的诊断MSE为0.0013495281以及加MLP-Mixer的模型所对应的诊断MSE为0.0005102753。由上述实验可以看出,本发明通过引入MLP-Mixer,可以大大提高飞行器诊断结果的精确度,性能较好。In this experiment, after training the same aircraft fault diagnosis model using the training data sets generated by the first experimental model and the second experimental model, the four fault actuators of the aircraft (respectively denoted as f a 1, f a 2 , f a 3 and f a 4) after fault diagnosis, compare with the real fault diagnosis value to obtain the experimental results shown in Figure 6; wherein, the first experimental model and the second experimental model are respectively provided by the present invention. The training data generation model (the model with MLP-Mixer added) and the model after removing the MLP-Mixer in the training data generation model provided by the present invention (the model without MLP-Mixer). Similarly, the abscissa is the sampling point obtained by sampling 100 times the data of the aircraft flying continuously for 1 s; the ordinate is the diagnostic value at the sampling point. In this experiment, fault diagnosis is performed for each sampling point based on the above model, and then arranged to obtain the results shown in Figure 6; as can be seen from Figure 6, compared with the fault diagnosis based on the model without MLP-Mixer As a result, the fault diagnosis result obtained based on the training data generation model provided by the present invention (the model with MLP-Mixer) is closer to the real fault diagnosis value. In addition, calculate the mean square error MSE of the fault diagnosis result obtained based on the model without MLP-Mixer and the fault diagnosis result based on the training data generation model provided by the present invention (the model with MLP-Mixer), and obtain the result without the addition of MLP-Mixer. The diagnostic MSE corresponding to the MLP-Mixer model is 0.0013495281 and the diagnostic MSE corresponding to the MLP-Mixer model is 0.0005102753. It can be seen from the above experiments that by introducing the MLP-Mixer in the present invention, the accuracy of the diagnostic result of the aircraft can be greatly improved, and the performance is better.

本领域的技术人员容易理解,以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。Those skilled in the art can easily understand that the above are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention, etc., All should be included within the protection scope of the present invention.

Claims (10)

1. A training data generation model construction method for aircraft fault diagnosis is characterized by comprising the following steps:
s1, building a training data generation model;
the training data generation model includes: a generator and a discriminator; the generator is based on a VAE model and is used for sequentially carrying out encoding and decoding operations on input aircraft sample data so as to reconstruct the aircraft sample data and obtain pseudo data similar to the aircraft sample data; the discriminator is used for discriminating whether the input data is real aircraft data;
s2, inputting a pre-collected aircraft sample data set into the training data generation model for training, and enabling the generator and the discriminator to play games with each other until Nash equilibrium is achieved; the aircraft sample data set includes aircraft fault sample data.
2. The training data generation model construction method according to claim 1, wherein the generator includes: a first MLP-Mixer, a VAE model, and a second MLP-Mixer in cascade;
the first MLP-Mixer is used for expanding dimensionality of input aircraft sample data and integrating features of different channels of the expanded aircraft sample data, so that the aircraft sample data is mapped into depth data features;
the VAE model is used for coding the depth data features through a coder to obtain a mean value and a variance corresponding to the depth data features, resampling is carried out in normal distribution corresponding to the obtained mean value and variance to obtain a hidden variable, and the hidden variable is reconstructed through a decoder to obtain pseudo data features similar to the depth data features;
the second MLP-Mixer is used for mapping the pseudo data characteristics according to different channels, so that the pseudo data characteristics are reversely mapped into pseudo data similar to the aircraft sample data.
3. The training data generative model construction method according to claim 1 or 2, wherein said step S2 comprises:
s21, respectively generating pseudo data corresponding to the sample data for each sample data in the aircraft sample data set through the generator, and respectively inputting the sample data and the corresponding pseudo data into the discriminator to obtain the prediction probability that the sample data and the corresponding pseudo data are respectively discriminated as the real data of the aircraft;
s22, calculating the sum of the expression difference and the distribution difference between the sample data and the corresponding pseudo data to obtain the loss value of the generator; obtaining a loss value of the discriminator by calculating the sum of differences between the predicted probability of the sample data and the corresponding true probability of the aircraft true data respectively judged by the sample data and the corresponding pseudo data;
s23, judging whether the sum of the loss value of the generator and the loss value of the discriminator reaches the minimum or whether the iteration number reaches the preset iteration number, if so, finishing training of the training data generation model, and ending the operation; otherwise, the parameters in the generator and the discriminator are updated, and the process goes to step S21.
4. The training data generation model construction method according to claim 3, wherein the loss value of the generator is:
LG=MSE+KLD
Figure FDA0003340924520000021
Figure FDA0003340924520000022
wherein MSE is the expression difference between the sample data and the corresponding dummy data; n is the number of sample data in the aircraft sample data set;
Figure FDA0003340924520000023
the data is the pseudo data corresponding to the ith sample data;
Figure FDA0003340924520000024
the ith sample data; KLD is KL divergence of sample data distribution and corresponding pseudo data distribution; mu.siAnd σiRespectively, the mean and the variance corresponding to the ith sample data output by the encoder.
5. The training data generative model construction method according to claim 3, wherein the loss value of the discriminator is:
Figure FDA0003340924520000025
wherein,
Figure FDA0003340924520000026
judging the sample data as the prediction probability of the real data of the aircraft;
Figure FDA0003340924520000027
the sample data is the true probability of the true data of the aircraft;
Figure FDA0003340924520000031
and judging the pseudo data corresponding to the sample data as the prediction probability of the real data of the aircraft.
6. A method of generating training data for aircraft fault diagnosis, comprising:
expanding the aircraft sample data set by controlling the expansion times of the pre-collected sample data in the aircraft sample data set, so that the number of the sample data in the expanded aircraft sample data set reaches a preset number, and the number of the aircraft fault sample data and the number of the aircraft normal sample data reach a balance; the extended aircraft sample data set is a training data set for aircraft fault diagnosis;
the extended sample data is aircraft fault sample data and/or aircraft normal sample data;
the method for expanding the sample data comprises the following steps:
inputting the sample data into a generator of a training data generation model constructed by adopting the training data generation model construction method according to any one of claims 1 to 5 to obtain pseudo data corresponding to the sample data so as to expand the sample data; and the fault information label of the pseudo data is the same as the fault information label of the sample data corresponding to the pseudo data.
7. A method for constructing an aircraft fault diagnosis model is characterized by comprising the following steps:
inputting a training data set generated by the training data generation method of claim 6 into a machine learning model for training to obtain an aircraft fault diagnosis model.
8. The method of constructing an aircraft fault diagnosis model of claim 7, wherein the machine learning model is a Transformer model.
9. An aircraft fault diagnosis method, comprising: inputting flight sampler data into the aircraft fault diagnosis model constructed by the aircraft fault diagnosis model construction method according to claim 7 or 8 to obtain aircraft fault information.
10. A machine-readable storage medium having stored thereon machine-executable instructions that, when invoked and executed by a processor, cause the processor to perform one or more of the training data generation model construction method of any one of claims 1 to 5, the training data generation method of claim 6, the aircraft fault diagnosis model construction method of any one of claims 7 to 8, and the aircraft fault diagnosis method of claim 9.
CN202111307993.3A 2021-11-05 2021-11-05 Training data generation model construction method and application for aircraft fault diagnosis Active CN114169396B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111307993.3A CN114169396B (en) 2021-11-05 2021-11-05 Training data generation model construction method and application for aircraft fault diagnosis

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111307993.3A CN114169396B (en) 2021-11-05 2021-11-05 Training data generation model construction method and application for aircraft fault diagnosis

Publications (2)

Publication Number Publication Date
CN114169396A true CN114169396A (en) 2022-03-11
CN114169396B CN114169396B (en) 2022-09-20

Family

ID=80478112

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111307993.3A Active CN114169396B (en) 2021-11-05 2021-11-05 Training data generation model construction method and application for aircraft fault diagnosis

Country Status (1)

Country Link
CN (1) CN114169396B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114963408A (en) * 2022-05-25 2022-08-30 日照安泰科技发展有限公司 A non-equilibrium fault diagnosis method for air-conditioning system based on data and feature enhancement
CN116774719A (en) * 2023-08-18 2023-09-19 成都庆龙航空科技有限公司 Unmanned aerial vehicle flight parameter self-diagnosis method and system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110617966A (en) * 2019-09-23 2019-12-27 江南大学 Bearing fault diagnosis method based on semi-supervised generation countermeasure network
US20200110181A1 (en) * 2018-10-04 2020-04-09 The Boeing Company Detecting fault states of an aircraft
CN112200244A (en) * 2020-10-09 2021-01-08 西安交通大学 Intelligent detection method for anomaly of aerospace engine based on hierarchical countermeasure training
CN112396088A (en) * 2020-10-19 2021-02-23 西安交通大学 Intelligent diagnosis method for mechanical fault of implicit excitation countertraining under small sample
US20210055719A1 (en) * 2019-08-21 2021-02-25 Hitachi, Ltd. System for predictive maintenance using generative adversarial networks for failure prediction
CN112699952A (en) * 2021-01-06 2021-04-23 哈尔滨市科佳通用机电股份有限公司 Train fault image amplification method and system based on deep learning
CN113255078A (en) * 2021-05-31 2021-08-13 南京信息工程大学 Bearing fault detection method and device under unbalanced sample condition
CN113505477A (en) * 2021-06-29 2021-10-15 西北师范大学 Process industry soft measurement data supplementing method based on SVAE-WGAN
CN113569928A (en) * 2021-07-13 2021-10-29 湖南工业大学 Train running state detection data missing processing model and reconstruction method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200110181A1 (en) * 2018-10-04 2020-04-09 The Boeing Company Detecting fault states of an aircraft
US20210055719A1 (en) * 2019-08-21 2021-02-25 Hitachi, Ltd. System for predictive maintenance using generative adversarial networks for failure prediction
CN110617966A (en) * 2019-09-23 2019-12-27 江南大学 Bearing fault diagnosis method based on semi-supervised generation countermeasure network
CN112200244A (en) * 2020-10-09 2021-01-08 西安交通大学 Intelligent detection method for anomaly of aerospace engine based on hierarchical countermeasure training
CN112396088A (en) * 2020-10-19 2021-02-23 西安交通大学 Intelligent diagnosis method for mechanical fault of implicit excitation countertraining under small sample
CN112699952A (en) * 2021-01-06 2021-04-23 哈尔滨市科佳通用机电股份有限公司 Train fault image amplification method and system based on deep learning
CN113255078A (en) * 2021-05-31 2021-08-13 南京信息工程大学 Bearing fault detection method and device under unbalanced sample condition
CN113505477A (en) * 2021-06-29 2021-10-15 西北师范大学 Process industry soft measurement data supplementing method based on SVAE-WGAN
CN113569928A (en) * 2021-07-13 2021-10-29 湖南工业大学 Train running state detection data missing processing model and reconstruction method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
ANDERS BOESEN LINDBO LARSEN ET AL.: "Autoencoding beyond pixels using a learned similarity metric", 《ARXIV:1512.09300V2》, 10 February 2016 (2016-02-10), pages 2 *
ILYA TOLSTIKHIN ET AL.: "MLP-Mixer: An all-MLP Architecture for Vision", 《ARXIV:2105.01601V4》, 11 July 2021 (2021-07-11), pages 1 - 16 *
吴星原: "基于深度学习的草图分割算法研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》, 15 September 2019 (2019-09-15), pages 4 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114963408A (en) * 2022-05-25 2022-08-30 日照安泰科技发展有限公司 A non-equilibrium fault diagnosis method for air-conditioning system based on data and feature enhancement
CN114963408B (en) * 2022-05-25 2024-04-16 日照安泰科技发展有限公司 Data and feature enhancement-based unbalanced fault diagnosis method for air conditioning system
CN116774719A (en) * 2023-08-18 2023-09-19 成都庆龙航空科技有限公司 Unmanned aerial vehicle flight parameter self-diagnosis method and system
CN116774719B (en) * 2023-08-18 2023-11-07 成都庆龙航空科技有限公司 Unmanned aerial vehicle flight parameter self-diagnosis method and system

Also Published As

Publication number Publication date
CN114169396B (en) 2022-09-20

Similar Documents

Publication Publication Date Title
CN110542819B (en) Transformer fault type diagnosis method based on semi-supervised DBNC
CN110516757A (en) A transformer fault detection method and related device
CN114169396B (en) Training data generation model construction method and application for aircraft fault diagnosis
CN111400930A (en) Power equipment small sample fault diagnosis method and system based on virtual and real twin space
CN106470122B (en) A kind of network failure locating method and device
CN106295199B (en) Automatic history matching method and system based on autocoder and multiple-objection optimization
CN108680807A (en) The Diagnosis Method of Transformer Faults and system of network are fought based on condition production
CN114609994B (en) Fault diagnosis method and device based on multi-granularity regularized rebalancing incremental learning
CN105606914A (en) IWO-ELM-based Aviation power converter fault diagnosis method
CN107330519A (en) Fault Locating Method based on deep neural network
Guo et al. Stabletoolbench: Towards stable large-scale benchmarking on tool learning of large language models
CN107545307A (en) Predicting model for dissolved gas in transformer oil method and system based on depth belief network
CN104503420A (en) Non-linear process industry fault prediction method based on novel FDE-ELM and EFSM
CN103957116A (en) Decision-making method and system of cloud failure data
CN117272116A (en) A transformer fault diagnosis method based on LORAS balanced data set
CN113537614A (en) Construction method, system, equipment and medium of power grid engineering cost prediction model
CN117669388B (en) Fault sample generation method, device and computer medium
Li et al. Data augment using deep convolutional generative adversarial networks for transient stability assessment of power systems
CN117743964A (en) Method, system and medium for predicting remaining service life of equipment based on graph data
CN118101497A (en) Network traffic matrix estimation model, method and system based on generative flow model
Jin et al. Learning a Model with the Most Generality for Small-Sample Problems
CN117198417A (en) Stable crystal structure prediction method and system based on machine learning and target optimization
Cheng et al. Machine learning percolation model
Gu et al. Three Revisits to Node-Level Graph Anomaly Detection: Outliers, Message Passing and Hyperbolic Neural Networks
CN116432359A (en) Variable topology network tide calculation method based on meta transfer learning

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant