CN116561927A - Digital twin-driven small sample rotary machine residual life prediction method and system - Google Patents

Digital twin-driven small sample rotary machine residual life prediction method and system Download PDF

Info

Publication number
CN116561927A
CN116561927A CN202310619377.4A CN202310619377A CN116561927A CN 116561927 A CN116561927 A CN 116561927A CN 202310619377 A CN202310619377 A CN 202310619377A CN 116561927 A CN116561927 A CN 116561927A
Authority
CN
China
Prior art keywords
signal
rotating machinery
predicting
life
small
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.)
Pending
Application number
CN202310619377.4A
Other languages
Chinese (zh)
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.)
Xian Jiaotong University
Original Assignee
Xian Jiaotong University
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 Xian Jiaotong University filed Critical Xian Jiaotong University
Priority to CN202310619377.4A priority Critical patent/CN116561927A/en
Publication of CN116561927A publication Critical patent/CN116561927A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/17Mechanical parametric or variational design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/16Matrix or vector computation, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • G06F30/27Design optimisation, verification or simulation using machine learning, e.g. artificial intelligence, neural networks, support vector machines [SVM] or training a model
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2119/00Details relating to the type or aim of the analysis or the optimisation
    • G06F2119/02Reliability analysis or reliability optimisation; Failure analysis, e.g. worst case scenario performance, failure mode and effects analysis [FMEA]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2119/00Details relating to the type or aim of the analysis or the optimisation
    • G06F2119/04Ageing analysis or optimisation against ageing

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Optimization (AREA)
  • Evolutionary Computation (AREA)
  • Mathematical Analysis (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Pure & Applied Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Data Mining & Analysis (AREA)
  • Medical Informatics (AREA)
  • Computing Systems (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Algebra (AREA)
  • Artificial Intelligence (AREA)
  • Databases & Information Systems (AREA)
  • Testing Of Devices, Machine Parts, Or Other Structures Thereof (AREA)

Abstract

The invention discloses a method and a system for predicting the residual life of a small sample rotary machine driven by digital twinning, which use a rotary machine early degradation signal training convolution self-encoder to learn an early degradation signal mode; then reconstructing the test signal by using a convolution self-encoder, calculating a reconstruction error, mapping the reconstruction error to a [0,1] interval as a health factor, fitting a Weibull reliability function according to the health factor, and predicting the residual service life of the rotary machine; and repeating the steps based on the real-time data in the continuous running process of the rotary machine to realize the real-time updating of the residual life of the rotary machine. The prediction algorithm for the residual life of the rotary machine constructed by the invention can predict the residual life of the bearing on the premise of not needing an end degradation signal, can adaptively update a model along with the increase of data quantity so as to improve the prediction precision in real time, and has the feasibility of predicting the life of the rotary machine with a small sample in an actual industrial scene.

Description

数字孪生驱动的小样本旋转机械剩余寿命预测方法及系统Method and system for predicting remaining life of small-sample rotating machinery driven by digital twins

技术领域technical field

本发明属于旋转机械寿命预测技术领域,具体涉及一种数字孪生驱动的小样本旋转机械剩余寿命预测方法及系统。The invention belongs to the technical field of life prediction of rotating machinery, and in particular relates to a method and system for predicting the remaining life of small sample rotating machinery driven by digital twins.

背景技术Background technique

旋转机械剩余使用寿命预测方法主要包括两种:基于机理模型的预测方法与数据驱动的预测方法。前者利用失效机理、概率统计等方法分析旋转机械退化过程,通过理论分析、试验验证等方法构建退化机理模型并进行剩余寿命预测。数据驱动的剩余寿命预测则是基于各类预测算法构建传感器信号与旋转机械剩余使用寿命之间的端到端模型,在大数据支持下无需专家经验与领域知识即可进行旋转机械剩余寿命预测。The remaining service life prediction methods of rotating machinery mainly include two types: prediction methods based on mechanism models and data-driven prediction methods. The former uses failure mechanism, probability statistics and other methods to analyze the degradation process of rotating machinery, and builds a degradation mechanism model and predicts the remaining life through theoretical analysis and experimental verification. Data-driven remaining life prediction is to build an end-to-end model between sensor signals and the remaining service life of rotating machinery based on various prediction algorithms. With the support of big data, the remaining life of rotating machinery can be predicted without expert experience and domain knowledge.

受到应用场景、使用工况、工作时间等因素的影响,旋转机械的剩余寿命通常是动态演化的,上述方法只能预测旋转机械在设计阶段或者使用过程中某一特定时刻的静态平均寿命,无法描述旋转机械的动态退化过程,难以实现剩余寿命的实时在线预测。此外使用传统机理模型或者数据驱动模型时需要大量退化数据进行模型构建,当用于模型构建的数据不足时则会出现模型预测精度降低的问题,然而由于数据采集能力限制以及安全生产的需要,实际过程中往往难以收集到大量完整退化数据用于构建预测模型。Affected by factors such as application scenarios, operating conditions, and working hours, the remaining life of rotating machinery usually evolves dynamically. The above methods can only predict the static average life of rotating machinery at a specific moment in the design stage or during use, and cannot To describe the dynamic degradation process of rotating machinery, it is difficult to achieve real-time online prediction of remaining life. In addition, when using traditional mechanism models or data-driven models, a large amount of degraded data is required for model construction. When the data used for model construction is insufficient, the problem of model prediction accuracy will decrease. However, due to the limitation of data collection capabilities and the needs of safe production, the actual In the process, it is often difficult to collect a large amount of complete degradation data for building a prediction model.

发明内容Contents of the invention

本发明所要解决的技术问题在于针对上述现有技术中的不足,提供一种数字孪生驱动的小样本旋转机械剩余寿命预测方法及系统,通过融合卷积自编码器与Weibull分布构建数据驱动的旋转机械退化行为模型,用于解决小样本数据下旋转机械剩余使用寿命难以准确预测的技术问题,实现小样本情况下的旋转机械剩余寿命准确实时预测。The technical problem to be solved by the present invention is to provide a method and system for predicting the remaining life of small-sample rotating machinery driven by digital twins in view of the deficiencies in the above-mentioned prior art, and to construct a data-driven rotating machinery by fusing convolutional autoencoder and Weibull distribution. The mechanical degradation behavior model is used to solve the technical problem that it is difficult to accurately predict the remaining service life of rotating machinery under small sample data, and realize accurate real-time prediction of the remaining service life of rotating machinery under small sample data.

本发明采用以下技术方案:The present invention adopts following technical scheme:

一种数字孪生驱动的小样本旋转机械剩余寿命预测方法,包括以下步骤:A small-sample rotating machinery residual life prediction method driven by digital twins, including the following steps:

S1、对旋转机械设备信号预处理;S1. Signal preprocessing of rotating mechanical equipment;

S2、建立训练卷积自编码器,对步骤S1得到的信号不健康程度进行评估;S2. Establish a training convolutional autoencoder to evaluate the unhealthy degree of the signal obtained in step S1;

S3、建立指数映射函数,将步骤S2得到的不健康程度映射为可直接反映设备健康状态的健康因子;S3. Establish an index mapping function, and map the unhealthy degree obtained in step S2 into a health factor that can directly reflect the health status of the equipment;

S4、基于Weibull可靠度函数和步骤S3得到的健康因子,结合梯度下降法进行旋转机械剩余使用寿命的实时迭代预测。S4. Based on the Weibull reliability function and the health factor obtained in step S3, combined with the gradient descent method, the real-time iterative prediction of the remaining service life of the rotating machinery is performed.

具体的,步骤S1具体为:Specifically, step S1 is specifically:

S101、对于一段测量得到的设备信号z(t),使用一维卡尔曼滤波算法建立设备信号的状态方程,估计信号带误差的测量值与带误差的观测值叠加得到的最优估计值;S101. For a piece of measured equipment signal z(t), use a one-dimensional Kalman filter algorithm to establish a state equation of the equipment signal, and estimate the optimal estimated value obtained by superimposing the measured value of the signal with error and the observed value with error;

S102、将步骤S101得到的滤波后信号x(t)划分为若干长度均为N的信号片段,将前30%时间内的信号认定为旋转机械的早期退化信号,用于后续算法模型的训练,其余均为测试数据。S102. Divide the filtered signal x(t) obtained in step S101 into several signal segments whose length is N, and identify the signal in the first 30% of the time as the early degradation signal of the rotating machinery for the training of the subsequent algorithm model, The rest are test data.

进一步的,步骤S101中,将z(t)作为观测值zk与k=0时刻的初始估计值,给定状态转移矩阵A、过程激励噪声协方差Q、测量噪声协方差R、转换矩阵H的初始值,迭代计算得到z(t)经卡尔曼滤波降噪后的信号x(t)。Further, in step S101, z(t) is used as the observed value z k and the initial estimated value at k=0, given the state transition matrix A, the process excitation noise covariance Q, the measurement noise covariance R, and the transition matrix H The initial value of z(t) is calculated iteratively to obtain the signal x(t) after the denoising of z(t) by Kalman filter.

进一步的,步骤S102中,设备信号的划分长度N为:Further, in step S102, the division length N of the device signal is:

其中,k为人为给定的缩放系数,frotate为旋转机械的转动频率,fcollect为信号的采集频率。Among them, k is an artificially given scaling factor, f rotate is the rotation frequency of the rotating machine, and f collect is the signal collection frequency.

具体的,步骤S2具体为:Specifically, step S2 is specifically:

S201、构建卷积自编码器神经网络模型;S201. Construct a convolutional autoencoder neural network model;

S202、经过步骤S1预处理后得到的早期退化信号为xearly(t),输入卷积自编码器经编码解码后得到重构信号使用平方差损失函数计算重构误差;S202. The early degraded signal obtained after preprocessing in step S1 is x early (t), and the input convolutional autoencoder is encoded and decoded to obtain a reconstructed signal Calculate the reconstruction error using the squared difference loss function;

S203、将测试信号输入训练好的卷积自编码器中进行信号重构,计算测试信号与重构信号的重构误差,将重构误差作为测试信号对应的设备不健康程度。S203. Input the test signal into the trained convolutional autoencoder to perform signal reconstruction, calculate the reconstruction error between the test signal and the reconstructed signal, and use the reconstruction error as the unhealthy degree of the equipment corresponding to the test signal.

具体的,步骤S3具体为:Specifically, step S3 is specifically:

S301、基于不健康程度与健康因子HI的定义构建指数映射函数并确定指数映射函数超参数;S301. Construct an exponential mapping function based on the definition of the unhealthy degree and the health factor HI and determine hyperparameters of the exponential mapping function;

S302、将预处理后得到的M个测试信号片段x={x1N,x2N,...,xMN}按时间顺序排序后依次输入卷积自编码器和指数映射函数得到旋转机械的健康因子HI集合HI={HI1N,HI2N,...,HIMN}。S302. Sort the M test signal segments x={x 1N ,x 2N ,...,x MN } obtained after preprocessing in chronological order, and then input them into the convolutional autoencoder and the exponential mapping function to obtain the health of the rotating machinery Factor HI set HI={HI 1N ,HI 2N ,...,HI MN }.

进一步的,步骤S301中,指数映射函数据具体为:Further, in step S301, the index mapping function data is specifically:

其中,k、b分别是指数映射函数的形状系数和偏置常数,为重构误差。Among them, k and b are the shape coefficient and bias constant of the exponential mapping function, respectively, is the reconstruction error.

具体的,步骤S4具体为:Specifically, step S4 is specifically:

S401、初始化Weibull可靠度函数;S401, initializing the Weibull reliability function;

S402、基于Weibull可靠度函数计算旋转机械剩余使用寿命;S402. Calculate the remaining service life of the rotating machinery based on the Weibull reliability function;

S403、根据步骤S3中由实时测量数据得到的HI集合,使用梯度下降法对Weibull可靠度函数进行参数更新,重复步骤S402和步骤S403,实现小样本情况下旋转机械剩余使用寿命的实时迭代预测。S403. According to the HI set obtained from the real-time measurement data in step S3, use the gradient descent method to update the parameters of the Weibull reliability function, repeat steps S402 and S403, and realize the real-time iterative prediction of the remaining service life of the rotating machinery under the condition of small samples.

具体的,步骤S402中,t时刻旋转机械的剩余使用寿命RULt为:Specifically, in step S402, the remaining service life RUL t of the rotating machine at time t is:

RULt=Tf-Tt=η[(-ln Rf)1/β-(-ln Rt)1/β]RUL t =T f -T t =η[(-ln R f ) 1/β -(-ln R t ) 1/β ]

其中,Tf为旋转机械理论失效工作时长,Tt为旋转机械理论工作时长,η为尺度参数,Rf为失效阈值可靠度,Rt为可靠度,β为形状参数。Among them, T f is the theoretical failure working time of the rotating machine, T t is the theoretical working time of the rotating machine, η is the scale parameter, R f is the failure threshold reliability, R t is the reliability, and β is the shape parameter.

第二方面,本发明实施例提供了一种数字孪生驱动的小样本旋转机械剩余寿命预测系统,包括:In the second aspect, an embodiment of the present invention provides a small-sample rotating machinery residual life prediction system driven by digital twins, including:

预处理模块,对旋转机械设备信号预处理;Preprocessing module, preprocessing the signal of rotating machinery equipment;

评估模块,建立训练卷积自编码器,对预处理模块得到的信号不健康程度进行评估;The evaluation module establishes a training convolutional autoencoder to evaluate the unhealthy degree of the signal obtained by the preprocessing module;

映射模块,建立指数映射函数,将评估模块得到的不健康程度映射为可直接反映设备健康状态的健康因子;The mapping module establishes an index mapping function to map the unhealthy degree obtained by the evaluation module into a health factor that can directly reflect the health status of the equipment;

预测模块,基于Weibull可靠度函数和映射模块得到的健康因子,结合梯度下降法进行旋转机械剩余使用寿命的实时迭代预测。The prediction module is based on the Weibull reliability function and the health factor obtained by the mapping module, combined with the gradient descent method to perform real-time iterative prediction of the remaining service life of the rotating machinery.

与现有技术相比,本发明至少具有以下有益效果:Compared with the prior art, the present invention has at least the following beneficial effects:

一种数字孪生驱动的小样本旋转机械剩余寿命预测方法,考虑到旋转机械通常具有退化周期长,数据密度大、采集成本高的特点,实际中难以采集到大量全生命周期退化信号构建、训练机理预测模型或数据驱动预测模型使其在小样本场景下准确预测旋转机械剩余使用寿命的问题,建立了Weibull可靠度函数与卷积自编码器结合的旋转机械剩余寿命预测方法。在训练阶段仅需要使用旋转机械早期退化信号训练卷积自编码器(Convolutional Autoencoder,CAE),通过计算CAE对旋转机械实时信号的重构误差来评估设备实时退化程度并构建健康因子(Health Index,HI)。引入Weibull可靠度函数作为退化模型描述旋转机械的退化过程,根据健康因子实时更新Weibull可靠度函数参数并基于Weibull可靠度函数预测剩余使用寿命。本发明构建的旋转机械剩余寿命预测方法可以很好地解决小样本情况下旋转机械退化过程的动态描述以及剩余使用寿命的实时预测,为数字孪生技术在旋转机械设备监测运维领域的应用提供了新思路。A method for predicting the remaining life of small-sample rotating machinery driven by digital twins. Considering that rotating machinery usually has the characteristics of long degradation period, high data density, and high acquisition cost, it is difficult to collect a large number of full-life cycle degradation signals in practice. Construction and training mechanism The prediction model or data-driven prediction model makes it possible to accurately predict the remaining service life of rotating machinery in a small sample scenario. A method for predicting the remaining life of rotating machinery combining Weibull reliability function and convolutional autoencoder is established. In the training phase, it is only necessary to use the early degradation signal of the rotating machinery to train the convolutional autoencoder (Convolutional Autoencoder, CAE), and evaluate the real-time degradation degree of the equipment and construct the health factor (Health Index, HI). The Weibull reliability function is introduced as a degradation model to describe the degradation process of rotating machinery, the parameters of the Weibull reliability function are updated in real time according to the health factors, and the remaining service life is predicted based on the Weibull reliability function. The method for predicting the remaining life of rotating machinery constructed in the present invention can well solve the dynamic description of the degradation process of rotating machinery and the real-time prediction of the remaining service life in the case of small samples, and provides a basis for the application of digital twin technology in the field of monitoring, operation and maintenance of rotating machinery. new ideas.

进一步的,对旋转机械的原始测量信号进行基于一维卡尔曼滤波算法和信号片段截取的预处理,可以去除原始测量信号中的噪声和异常信号,将原始信号转换成具有相同数据格式的信号片段,便于算法后续步骤的统一计算处理。Further, the preprocessing based on the one-dimensional Kalman filter algorithm and signal segment interception for the original measurement signal of the rotating machinery can remove the noise and abnormal signals in the original measurement signal, and convert the original signal into a signal segment with the same data format , which is convenient for the unified calculation and processing of the subsequent steps of the algorithm.

进一步的,一维卡尔曼滤波算法利用前一时刻旋转机械信号的估计值与当前时刻的信号测量值来获取当前时刻下旋转机械信号的最优估计,去除旋转机械测量信号中的大量噪声,避免由于噪声在后续重构误差与健康因子构建步骤中产生误差。同时一维卡尔曼滤波算法具有计算量小的特点,能够快速对原始设备信号进行滤波降噪,提高旋转机械剩余寿命预测的实时性。Furthermore, the one-dimensional Kalman filter algorithm uses the estimated value of the rotating machinery signal at the previous moment and the signal measurement value at the current moment to obtain the optimal estimate of the rotating machinery signal at the current moment, remove a large amount of noise in the rotating machinery measurement signal, and avoid Due to noise, errors are generated in subsequent reconstruction errors and health factor construction steps. At the same time, the one-dimensional Kalman filter algorithm has the characteristics of a small amount of calculation, which can quickly filter and reduce the noise of the original equipment signal, and improve the real-time performance of the remaining life prediction of the rotating machinery.

进一步的,传统的信号片段截取方法是人为设定一个长度,长度过小时信号片段不能反映旋转机械转动一圈的过程;长度过大时一个信号片段对应时间内旋转机械转动多圈,造成信号冗余,增加预测算法复杂度与计算量。本专利中考虑旋转机械转动频率与传感器信号测量频率计算旋转机械转动一圈对应的信号长度,结合缩放系数保证信号片段长度设置的合理性,使信号片段既包含至少一个完整旋转周期的数据,又不会包含过多冗余数据。Furthermore, the traditional method of intercepting signal fragments is to artificially set a length. If the length is too small, the signal fragment cannot reflect the process of one revolution of the rotating machine; In addition, the complexity and calculation amount of the prediction algorithm will be increased. In this patent, the rotation frequency of the rotating machinery and the measurement frequency of the sensor signal are considered to calculate the signal length corresponding to one revolution of the rotating machinery, and the scaling factor is combined to ensure the rationality of the length setting of the signal segment, so that the signal segment not only contains the data of at least one complete rotation cycle, but also Does not contain excessive redundant data.

进一步的,卷积神经网络可以有效提取旋转机械退化信号的信号特征,学习退化信号的数据模式,利用只使用早期退化信号训练的卷积自编码器对旋转机械不同退化时期信号的重构误差不同的特点,可以在仅有早期退化信号的情况下实现旋转机械各个时期退化信号对应的设备不健康程度的定量估计。Further, the convolutional neural network can effectively extract the signal characteristics of the degraded signal of the rotating machinery, learn the data pattern of the degraded signal, and use the convolutional autoencoder trained only with the early degraded signal to have different reconstruction errors for the signal of the rotating machinery in different degradation periods. The characteristics of , can realize the quantitative estimation of the unhealthy degree of the equipment corresponding to the degradation signal of each period of the rotating machinery in the case of only the early degradation signal.

进一步的,由于旋转机械工况与设备类型的差异,卷积自编码器评估得到的不同测试信号的不健康程度分布范围存在差异,使用指数映射函数将测试信号的不健康程度映射为[0,1]区间上的健康因子,便于后续用于Weibull可靠度函数的参数更新与寿命预测。Further, due to the differences in the operating conditions of rotating machinery and equipment types, the unhealthy distribution ranges of different test signals evaluated by the convolutional autoencoder are different, and the unhealthy degree of the test signal is mapped to [0,1] using an exponential mapping function The health factor on the interval is convenient for subsequent parameter update and life prediction of the Weibull reliability function.

进一步的,指数映射函数具有连续可导、单调递减、饱和性等特点,并且可以根据旋转机械的工况与设备类型灵活设置相应的形状系数与偏置常数,提高健康因子映射的可解释性与计算效率。Furthermore, the exponential mapping function has the characteristics of continuous derivation, monotonically decreasing, and saturation, and can flexibly set the corresponding shape coefficient and bias constant according to the working conditions and equipment types of the rotating machinery, so as to improve the interpretability and accuracy of the health factor mapping. Computational efficiency.

进一步的,使用Weibull可靠度函数作为旋转机械的退化行为模型,一方面可以直观反映旋转机械的退化趋势,提高旋转机械剩余寿命预测的可解释性;另一方面根据实时的测量信号对Weibull可靠度函数参数进行更新后再预测剩余寿命,保证旋转机械剩余寿命预测过程的准确性与实时性。Further, using the Weibull reliability function as the degradation behavior model of the rotating machinery, on the one hand, it can directly reflect the degradation trend of the rotating machinery and improve the interpretability of the remaining life prediction of the rotating machinery; After the function parameters are updated, the remaining life is predicted to ensure the accuracy and real-time performance of the remaining life prediction process of rotating machinery.

进一步的,可以根据旋转机械寿命预测的需求与旋转机械实际应用场景的需要灵活设置失效阈值可靠度,更精确高效得预测旋转机械的剩余使用寿命。Furthermore, the failure threshold reliability can be flexibly set according to the requirements of life prediction of rotating machinery and the needs of actual application scenarios of rotating machinery, so as to predict the remaining service life of rotating machinery more accurately and efficiently.

可以理解的是,上述第二方面的有益效果可以参见上述第一方面中的相关描述,在此不再赘述。It can be understood that, for the beneficial effects of the second aspect above, reference may be made to the relevant description in the first aspect above, and details are not repeated here.

综上所述,本发明使用旋转机械早期退化信号训练卷积自编码器,评估旋转机械退化信号对应的不健康程度,使用指数映射函数将其映射为健康因子。通过引入Weibull可靠度函数描述旋转机械的退化趋势,基于实时数据对Weibull可靠度函数进行参数更新与剩余寿命预测,更加准确、实时地进行旋转机械剩余寿命预测。In summary, the present invention uses the early degradation signal of the rotating machinery to train the convolutional autoencoder, evaluates the degree of unhealthiness corresponding to the degradation signal of the rotating machinery, and uses an exponential mapping function to map it into a health factor. By introducing the Weibull reliability function to describe the degradation trend of the rotating machinery, the parameters of the Weibull reliability function are updated and the remaining life prediction is performed based on real-time data, so that the remaining life of the rotating machinery can be predicted more accurately and in real time.

下面通过附图和实施例,对本发明的技术方案做进一步的详细描述。The technical solutions of the present invention will be described in further detail below with reference to the accompanying drawings and embodiments.

附图说明Description of drawings

图1为本发明的整体框架图;Fig. 1 is the overall frame diagram of the present invention;

图2为本发明的剩余寿命预测整体流程;Fig. 2 is the overall flow of remaining life prediction of the present invention;

图3为轴承振动原始信号与卡尔曼滤波后振动信号对比图;Figure 3 is a comparison diagram between the original signal of bearing vibration and the vibration signal after Kalman filtering;

图4为轴承振动信号与卷积自编码器重构信号对比图;Figure 4 is a comparison diagram of the bearing vibration signal and the reconstruction signal of the convolutional self-encoder;

图5为训练集轴承样本振动信号重构误差曲线图;Fig. 5 is a curve diagram of the reconstruction error curve of the vibration signal of the bearing sample in the training set;

图6为训练集轴承样本健康因子HI及Weibull可靠度函数曲线图;Fig. 6 is a curve diagram of the health factor HI and Weibull reliability function of the bearing samples in the training set;

图7为测试集轴承样本1_3剩余寿命实时迭代预测结果图;Fig. 7 is a real-time iterative prediction result diagram of the remaining life of the test set bearing sample 1_3;

图8为测试集轴承样本1_3剩余寿命预测结果图。Fig. 8 is a diagram of the remaining life prediction results of bearing sample 1_3 in the test set.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

在本发明的描述中,需要理解的是,术语“包括”和“包含”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。In the description of the present invention, it should be understood that the terms "comprising" and "comprising" indicate the presence of described features, integers, steps, operations, elements and/or components, but do not exclude one or more other features, Presence or addition of wholes, steps, operations, elements, components and/or collections thereof.

还应当理解,在本发明说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本发明。如在本发明说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。It should also be understood that the terminology used in the description of the present invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the present invention. As used in this specification and the appended claims, the singular forms "a", "an" and "the" are intended to include plural referents unless the context clearly dictates otherwise.

还应当进一步理解,在本发明说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本发明中字符“/”,一般表示前后关联对象是一种“或”的关系。It should also be further understood that the term "and/or" used in the description of the present invention and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations , for example, A and/or B, may mean: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" in the present invention generally indicates that the contextual objects are an "or" relationship.

应当理解,尽管在本发明实施例中可能采用术语第一、第二、第三等来描述预设范围等,但这些预设范围不应限于这些术语。这些术语仅用来将预设范围彼此区分开。例如,在不脱离本发明实施例范围的情况下,第一预设范围也可以被称为第二预设范围,类似地,第二预设范围也可以被称为第一预设范围。It should be understood that although the terms first, second, third, etc. may be used in the embodiments of the present invention to describe preset ranges, etc., these preset ranges should not be limited to these terms. These terms are only used to distinguish preset ranges from one another. For example, without departing from the scope of the embodiments of the present invention, the first preset range may also be called the second preset range, and similarly, the second preset range may also be called the first preset range.

取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”或“响应于检测”。类似地,取决于语境,短语“如果确定”或“如果检测(陈述的条件或事件)”可以被解释成为“当确定时”或“响应于确定”或“当检测(陈述的条件或事件)时”或“响应于检测(陈述的条件或事件)”。Depending on the context, the word "if" as used herein may be interpreted as "at" or "when" or "in response to determining" or "in response to detecting". Similarly, depending on the context, the phrases "if determined" or "if detected (the stated condition or event)" could be interpreted as "when determined" or "in response to the determination" or "when detected (the stated condition or event) )" or "in response to detection of (a stated condition or event)".

在附图中示出了根据本发明公开实施例的各种结构示意图。这些图并非是按比例绘制的,其中为了清楚表达的目的,放大了某些细节,并且可能省略了某些细节。图中所示出的各种区域、层的形状及它们之间的相对大小、位置关系仅是示例性的,实际中可能由于制造公差或技术限制而有所偏差,并且本领域技术人员根据实际所需可以另外设计具有不同形状、大小、相对位置的区域/层。Various structural schematic diagrams according to the disclosed embodiments of the present invention are shown in the accompanying drawings. The figures are not drawn to scale, with certain details exaggerated and possibly omitted for clarity of presentation. The shapes of various regions and layers shown in the figure and their relative sizes and positional relationships are only exemplary, and may deviate due to manufacturing tolerances or technical limitations in practice, and those skilled in the art may Regions/layers with different shapes, sizes, and relative positions can be additionally designed as needed.

本发明提供了一种数字孪生驱动的小样本旋转机械剩余寿命预测方法,针对小样本数据下旋转机械剩余使用寿命难以准确预测的问题,通过融合卷积自编码器与Weibull分布构建数据驱动的旋转机械退化行为模型。首先使用旋转机械早期退化信号训练卷积自编码器,使其学习到早期退化信号模式;随后使用卷积自编码器对测试信号进行重构并计算重构误差,将重构误差映射到[0,1]区间作为健康因子,根据健康因子拟合Weibull可靠度函数并预测旋转机械剩余使用寿命;在旋转机械持续运行过程中基于实时数据重复上述步骤实现旋转机械剩余寿命的实时更新。本发明构建的旋转机械剩余寿命预测算法可以在不需要末期退化信号的前提下预测轴承剩余寿命,并且能够随着数据量的增多相适应地进行模型更新以实时提高预测精度,具有实际工业场景下小样本旋转机械寿命预测的可行性。The invention provides a small-sample rotating machinery residual life prediction method driven by digital twins. Aiming at the problem that the remaining service life of rotating machinery is difficult to accurately predict under small sample data, a data-driven rotary Mechanical degradation behavior model. First, the convolutional autoencoder is trained using the early degradation signal of the rotating machinery to learn the early degradation signal pattern; then the convolutional autoencoder is used to reconstruct the test signal and calculate the reconstruction error, and the reconstruction error is mapped to [0 ,1] interval is used as the health factor, and the Weibull reliability function is fitted according to the health factor to predict the remaining service life of the rotating machinery; during the continuous operation of the rotating machinery, the above steps are repeated based on real-time data to realize the real-time update of the remaining life of the rotating machinery. The remaining life prediction algorithm of rotating machinery constructed in the present invention can predict the remaining life of bearings without the need for terminal degradation signals, and can update the model adaptively as the amount of data increases to improve the prediction accuracy in real time. Feasibility of small-sample rotating machinery life prediction.

请参阅图2,本发明一种数字孪生驱动的小样本旋转机械剩余寿命预测方法,包括以下步骤:Please refer to Fig. 2, a method for predicting the remaining life of a small-sample rotating machinery driven by a digital twin of the present invention, including the following steps:

S1、进行旋转机械设备信号预处理S1. Carry out signal preprocessing of rotating machinery equipment

旋转机械的原始设备信号通常是高频率低密度的连续时域信号,需要进行降噪滤波处理后才能用于后续模型训练与预测。首先使用一维卡尔曼滤波算法对原始信号进行滤波降噪;然后通过比较旋转机械的转速与信号采集频率确定时间窗长度,使用定长时间窗将设备信号划分为等长信号片段。The original equipment signals of rotating machinery are usually high-frequency and low-density continuous time-domain signals, which need to be de-noised and filtered before they can be used for subsequent model training and prediction. First, the one-dimensional Kalman filter algorithm is used to filter and reduce the noise of the original signal; then, the length of the time window is determined by comparing the rotational speed of the rotating machinery with the signal acquisition frequency, and the equipment signal is divided into equal-length signal segments by using a fixed time window.

S101、对于一段测量得到的设备信号z(t),使用一维卡尔曼滤波算法建立设备信号的状态方程,估计信号带误差的测量值与带误差的观测值叠加而来的最优估计值,从而实现设备信号的滤波降噪。S101. For a piece of measured equipment signal z(t), use a one-dimensional Kalman filter algorithm to establish the state equation of the equipment signal, and estimate the optimal estimated value obtained by superimposing the measured value of the signal with error and the observed value with error, In this way, the filtering and noise reduction of the equipment signal can be realized.

使用的一维卡尔曼滤波预测公式如下:The one-dimensional Kalman filter prediction formula used is as follows:

其中,式是k-1时刻信号的后验状态估计值,是卡曼滤波算法的滤波结果,也称最优估计值;A是状态转移矩阵;/>是k时刻的先验估计状态值;/>是k时刻的先验估计协方差;Pk-1是k-1时刻的后验估计协方差;Q是过程激励噪声协方差,用于表征状态转移矩阵与实际过程之间的误差。in, The formula is the posterior state estimation value of the signal at time k-1, which is the filtering result of the Kalman filter algorithm, also known as the optimal estimation value; A is the state transition matrix; /> is the prior estimated state value at time k; /> is the prior estimate covariance at time k; P k-1 is the posterior estimate covariance at k-1 time; Q is the process excitation noise covariance, which is used to characterize the error between the state transition matrix and the actual process.

使用的一维卡尔曼滤波更新公如下:The one-dimensional Kalman filter update formula used is as follows:

其中,Kk式是k时刻的滤波增益矩阵;H是状态变量到观测值的转换矩阵;R是测量噪声协方差;zk是k时刻的信号测量值。Among them, K k is the filter gain matrix at time k; H is the transformation matrix from state variables to observed values; R is the measurement noise covariance; z k is the signal measurement value at time k.

将z(t)作为观测值zk与k=0时刻的初始估计值,给定状态转移矩阵A、过程激励噪声协方差Q、测量噪声协方差R、转换矩阵H的初始值即可使用上述五个公式迭代计算得到z(t)经卡尔曼滤波降噪后的信号x(t)。Taking z(t) as the initial estimated value of observed value z k and k=0, given the initial values of state transition matrix A, process excitation noise covariance Q, measurement noise covariance R, and transition matrix H, the above The five formulas are iteratively calculated to obtain the signal x(t) after z(t) is denoised by Kalman filter.

S102、进行旋转机械设备信号的截取划分;S102. Perform interception and division of rotating mechanical equipment signals;

若旋转机械的转动频率为frotate,信号的采集频率为fcollect,则设备信号的划分长度N为:If the rotation frequency of the rotating machinery is f rotate and the signal collection frequency is f collect , then the division length N of the equipment signal is:

其中,k为人为给定的缩放系数,用于根据设备信号的实际特点相适应的调节划分长度N。Among them, k is an artificially given scaling factor, which is used to adjust the division length N according to the actual characteristics of the device signal.

求得划分长度N后,将步骤S101得到的滤波后信号x(t)划分为若干长度均为N的信号片段,将前30%时间内的信号认定为旋转机械的早期退化信号,用于后续算法模型的训练,其余均为测试数据。After the division length N is obtained, the filtered signal x(t) obtained in step S101 is divided into several signal segments of length N, and the signal in the first 30% of the time is identified as the early degradation signal of the rotating machinery for subsequent use. Algorithm model training, and the rest are test data.

S2、通过建立训练卷积自编码器实现输入信号的不健康程度评估S2. Realize the unhealthy evaluation of the input signal by establishing a training convolutional autoencoder

旋转机械的健康状态随着退化过程的加剧呈现出逐渐变差的趋势,反映到设备信号上即不同退化阶段的设备信号具有不同的数据模式,因此可以通过度量测试信号与早期退化信号之间的差异程度来反映测试信号对应的设备不健康程度。为了达到这一目的,首先构建卷积自编码器神经网络模型;然后使用早期退化信号训练卷积自编码器,使其学习到早期退化信号模式,能够实现早期退化信号的高精度重构;最后将测试信号输入训练好的卷积自编码器中进行信号重构,计算测试信号与重构信号的重构误差,由于卷积自编码器只学习了早期退化信号的数据模式,无法准确还原其他退化阶段的测试信号,并且退化程度越高则与早期退化信号的差异程度越大,也即重构误差越大,因此可以将重构误差直接作为测试信号对应的设备不健康程度。The health status of rotating machinery shows a gradual deterioration trend with the intensification of the degradation process, which is reflected in the equipment signal, that is, the equipment signal in different degradation stages has different data patterns, so it can be measured by measuring the relationship between the test signal and the early degradation signal. The degree of difference reflects the unhealthy degree of the equipment corresponding to the test signal. In order to achieve this goal, first construct a convolutional autoencoder neural network model; then use the early degraded signal to train the convolutional autoencoder, so that it can learn the early degraded signal pattern, and can achieve high-precision reconstruction of the early degraded signal; finally Input the test signal into the trained convolutional autoencoder for signal reconstruction, and calculate the reconstruction error between the test signal and the reconstructed signal. Since the convolutional autoencoder only learns the data pattern of the early degraded signal, it cannot accurately restore other The test signal in the degradation stage, and the higher the degree of degradation, the greater the difference with the early degradation signal, that is, the greater the reconstruction error, so the reconstruction error can be directly used as the unhealthy degree of the equipment corresponding to the test signal.

S201、构建卷积自编码器模型;S201. Construct a convolutional autoencoder model;

自编码器包括编码器和解码器两部分,编码器将输入信号降维到特征空间,解码器则将特征空间中信号编码重构输出。卷积自编码器即使用卷积神经网络作为编码器和解码器的自编码器,对于有k个卷积核的卷积自编码器,其编码和解码阶段的公式如下:The autoencoder consists of two parts: an encoder and a decoder. The encoder reduces the dimensionality of the input signal to the feature space, and the decoder reconstructs the signal encoded in the feature space and outputs it. The convolutional self-encoder is the self-encoder that uses the convolutional neural network as the encoder and decoder. For the convolutional self-encoder with k convolution kernels, the formulas for the encoding and decoding stages are as follows:

hk=σ(x*Wk+bk) (7)h k =σ(x*W k +b k ) (7)

其中,hk是第k个卷积核对应的特征编码;Wk是第k个卷积核;bk是第k个卷积核对应的偏置常数;σ()是激活函数;Uk是第k个反卷积核;ck是第k个反卷积核对应的偏置常数。Among them, h k is the feature code corresponding to the kth convolution kernel; W k is the kth convolution kernel; b k is the bias constant corresponding to the kth convolution kernel; σ() is the activation function; U k is the kth deconvolution kernel; c k is the bias constant corresponding to the kth deconvolution kernel.

S202、基于早期退化信号训练卷积自编码器S202. Training a convolutional autoencoder based on an early degraded signal

经过步骤S1预处理后得到的早期退化信号为xearly(t),输入卷积自编码器经编码解码后得到重构信号使用平方差损失函数计算重构误差:The early degradation signal obtained after step S1 preprocessing is x early (t), and the input convolutional autoencoder is encoded and decoded to obtain the reconstructed signal Compute the reconstruction error using the squared difference loss function:

将早期退化信号的重构误差在卷积自编码器中反向传播,对自编码器中的参数进行更新以降低早期退化信号的重构误差。当多次参数更新后重构误差较小时,可以认为卷积自编码器学习到了输入信号与特征信号之间的映射关系,在不需要额外信息的前提下即可实现输入信号的数据模式特征提取。The reconstruction error of the early degraded signal is backpropagated in the convolutional autoencoder, and the parameters in the autoencoder are updated to reduce the reconstruction error of the early degraded signal. When the reconstruction error is small after multiple parameter updates, it can be considered that the convolutional self-encoder has learned the mapping relationship between the input signal and the feature signal, and the data pattern feature extraction of the input signal can be realized without additional information. .

S203、测试信号的重构误差计算。S203. Calculation of the reconstruction error of the test signal.

经过步骤S1预处理后得到的测试信号为x(t),输入卷积自编码器经编码解码后得到重构测试信号使用平方差损失函数计算重构误差:The test signal obtained after preprocessing in step S1 is x(t), and the input convolutional autoencoder is encoded and decoded to obtain a reconstructed test signal Compute the reconstruction error using the squared difference loss function:

此时测试信号对应的设备不健康程度即为 At this time, the unhealthy degree of the equipment corresponding to the test signal is

S3、建立指数映射函数,将不健康程度映射为可直接反映设备健康状态的健康因子S3. Establish an index mapping function to map the unhealthy degree into a health factor that can directly reflect the health status of the equipment

根据前面设备不健康程度的定义与计算过程可知,不健康程度的取值区间为[0,+∞),设备退化程度越低则其不健康程度越趋近于0。旋转机械有多种退化失效模式,不同失效情况对应的CAE不健康程度范围不同。为统一不同失效情况,使用映射函数将[0,+∞)区间上的不健康程度映射为[0,1]区间上的健康因子HI。HI可以定量描述旋转机械的健康状态,HI=1表示设备还没有开始退化,HI=0表示设备已经完全退化失效。According to the definition and calculation process of the unhealthy degree of equipment, the value range of the unhealthy degree is [0, +∞), and the lower the degree of equipment degradation, the closer the unhealthy degree is to 0. Rotating machinery has multiple degradation failure modes, and different failure situations correspond to different CAE unhealthy ranges. In order to unify different failure situations, a mapping function is used to map the unhealthy degree on the [0,+∞) interval to the health factor HI on the [0,1] interval. HI can quantitatively describe the health status of rotating machinery. HI=1 means that the equipment has not started to degrade, and HI=0 means that the equipment has completely degraded and failed.

S301、基于不健康程度与健康因子HI的定义构建指数映射函数并确定指数映射函数超参数;S301. Construct an exponential mapping function based on the definition of the unhealthy degree and the health factor HI and determine hyperparameters of the exponential mapping function;

根据不健康程度、健康因子的定义与旋转机械的退化规律,映射函数应当满足以下要求:According to the degree of unhealthiness, the definition of health factors and the degradation law of rotating machinery, the mapping function should meet the following requirements:

(1)定义域为[0,+∞),值域为[0,1]。(1) The definition domain is [0,+∞), and the value range is [0,1].

(2)在定义域上单调递减且平滑可导,方便计算。(2) It is monotonously decreasing in the domain of definition and can be derived smoothly, which is convenient for calculation.

(3)具有饱和性,即在自变量趋近于0时函数值趋近于1,自变量趋近于+∞时函数值趋近于0。(3) It is saturated, that is, the function value tends to 1 when the independent variable approaches 0, and the function value approaches 0 when the independent variable approaches +∞.

改进sigmoid函数得到满足上述要求的指数映射函数:Improve the sigmoid function to obtain an exponential mapping function that meets the above requirements:

其中,k、b分别是指数映射函数的形状系数和偏置常数。Among them, k and b are the shape coefficient and bias constant of the exponential mapping function, respectively.

偏置常数b用于调节初始时刻设备的健康因子HI,形状系数k用于控制健康因子HI随不健康程度增大时的递减速率。上述两个参数需要根据旋转机械的初始健康状态与不健康程度的变化规律人为给定。The bias constant b is used to adjust the health factor HI of the equipment at the initial moment, and the shape coefficient k is used to control the deceleration rate of the health factor HI as the unhealthy degree increases. The above two parameters need to be given artificially according to the change law of the initial healthy state and unhealthy degree of the rotating machinery.

S302、旋转机械健康因子计算S302. Calculation of rotating machinery health factors

将预处理后得到的M个测试信号片段x={x1N,x2N,...,xMN}按时间顺序排序后依次输入卷积自编码器和指数映射函数得到旋转机械的健康因子HI集合HI={HI1N,HI2N,...,HIMN}。The M test signal segments obtained after preprocessing x={x 1N ,x 2N ,...,x MN } are sorted in chronological order and then input into the convolutional autoencoder and exponential mapping function to obtain the health factor HI of the rotating machinery Set HI={HI 1N , HI 2N , . . . , HI MN }.

S4、基于Weibull可靠度函数,结合梯度下降法进行旋转机械剩余使用寿命的实时迭代预测。S4. Real-time iterative prediction of the remaining service life of rotating machinery based on the Weibull reliability function combined with the gradient descent method.

使用Weibull可靠度函数进行旋转机械剩余寿命实时迭代预测主要步骤如下:初始化Weibull可靠度函数;基于Weibull可靠度函数计算旋转机械剩余使用寿命;根据步骤S3中由实时测量数据得到的HI集合,使用梯度下降法对Weibull可靠度函数进行参数更新;重复上述两个步骤。具体过程如下:The main steps of real-time iterative prediction of the remaining life of rotating machinery using the Weibull reliability function are as follows: Initialize the Weibull reliability function; calculate the remaining service life of the rotating machinery based on the Weibull reliability function; according to the HI set obtained from the real-time measurement data in step S3, use gradient The descending method updates the parameters of the Weibull reliability function; repeat the above two steps. The specific process is as follows:

S401、初始化Weibull可靠度函数S401. Initialize the Weibull reliability function

Weibull分布是可靠性理论中的常用分布,两参数Weibull可靠度函数的表达式为:The Weibull distribution is a commonly used distribution in reliability theory, and the expression of the two-parameter Weibull reliability function is:

其中,R(t)即Weibull可靠度,表征机械设备的可靠程度,β、η分别是Weibull可靠度函数形状参数和尺度参数。Among them, R(t) is the Weibull reliability, which represents the reliability of mechanical equipment, and β and η are the shape parameters and scale parameters of the Weibull reliability function, respectively.

初始阶段可以根据旋转机械的具体工作情况与历史退化规律人为给定形状参数和尺度参数的初始值,也可以随机初始化形状参数和尺度参数。In the initial stage, the initial values of shape parameters and scale parameters can be artificially given according to the specific working conditions and historical degradation laws of the rotating machinery, or the shape parameters and scale parameters can be initialized randomly.

S402、给定一个失效阈值可靠度Rf,代入S401中式(12)得Rf对应的旋转机械理论失效工作时长TfS402. Given a failure threshold reliability R f , substituting the formula (12) in S401 to obtain the theoretical failure working time T f of the rotating machinery corresponding to R f ;

Tf=η(-ln Rf)1/β (13)T f =η(-ln R f ) 1/β (13)

按照步骤S3求出t时刻时旋转机械设备对应的健康因子HIt。Weibull可靠度与健康因子的分布区间都是[0,1],并且健康因子HI与可靠度都可以用于表征旋转机械的健康状态,因此可以将HIt作为可靠度Rt,将HIt代入S401中式(12),得到HIt对应的旋转机械理论工作时长Tt为:According to step S3, the health factor HI t corresponding to the rotating mechanical equipment at time t is obtained. The distribution intervals of Weibull reliability and health factors are both [0,1], and both health factors HI and reliability can be used to characterize the health status of rotating machinery, so HI t can be used as reliability R t , and HI t can be substituted into In formula (12) of S401, the theoretical working time T t of the rotating machinery corresponding to HI t is obtained as:

Tt=η(-ln Rt)1/β (14)T t =η(-ln R t ) 1/β (14)

结合式(13)和式(14)得到t时刻旋转机械的剩余使用寿命RULt为:Combining Equation (13) and Equation (14), the remaining service life RUL t of the rotating machinery at time t is obtained as:

RULt=Tf-Tt=η[(-ln Rf)1/β-(-ln Rt)1/β] (15)RUL t =T f -T t =η[(-ln R f ) 1/β -(-ln R t ) 1/β ] (15)

S403、按照S3依次求出从旋转机械开始退化到t时刻的健康因子集合HI={HI1N,HI2N,...,HIMN},将健康因子与其对应的时刻代入式(12),选择平方差损失函数计算出时刻t时Weibull可靠度函数的拟合误差如下:S403. Calculate the health factor set HI={HI 1N ,HI 2N ,...,HI MN } from the degeneration of the rotating machinery to time t according to S3, and substitute the health factor and its corresponding time into formula (12), select The square difference loss function calculates the fitting error of the Weibull reliability function at time t as follows:

求拟合误差对形状参数和尺度参数的偏导数分别为:The partial derivatives of the fitting error with respect to the shape parameter and the scale parameter are:

给定一个学习率a,可以根据学习率和偏导数对形状参数、尺度参数进行更新:Given a learning rate a, the shape parameters and scale parameters can be updated according to the learning rate and partial derivatives:

每按照S3新计算出一个HIt就重复S402、S403,实现小样本情况下旋转机械剩余使用寿命的实时迭代预测。S402 and S403 are repeated every time a new HI t is calculated according to S3, so as to realize real-time iterative prediction of the remaining service life of the rotating machinery under the condition of a small sample.

本发明再一个实施例中,提供一种数字孪生驱动的小样本旋转机械剩余寿命预测系统,该系统能够用于实现上述数字孪生驱动的小样本旋转机械剩余寿命预测方法,具体的,该数字孪生驱动的小样本旋转机械剩余寿命预测系统包括预处理模块、评估模块、映射模块以及预测模块。In yet another embodiment of the present invention, a system for predicting the remaining life of a small-sample rotating machinery driven by a digital twin is provided, which can be used to implement the method for predicting the remaining life of a small-sample rotating machinery driven by a digital twin. Specifically, the digital twin The driven small sample rotating machinery remaining life prediction system includes a preprocessing module, an evaluation module, a mapping module and a prediction module.

其中,预处理模块,对旋转机械设备信号预处理;Among them, the preprocessing module preprocesses the signals of rotating mechanical equipment;

评估模块,建立训练卷积自编码器,对预处理模块得到的信号不健康程度进行评估;The evaluation module establishes a training convolutional autoencoder to evaluate the unhealthy degree of the signal obtained by the preprocessing module;

映射模块,建立指数映射函数,将评估模块得到的不健康程度映射为可直接反映设备健康状态的健康因子;The mapping module establishes an index mapping function to map the unhealthy degree obtained by the evaluation module into a health factor that can directly reflect the health status of the equipment;

预测模块,基于Weibull可靠度函数和映射模块得到的健康因子,结合梯度下降法进行旋转机械剩余使用寿命的实时迭代预测。The prediction module is based on the Weibull reliability function and the health factor obtained by the mapping module, combined with the gradient descent method to perform real-time iterative prediction of the remaining service life of the rotating machinery.

本发明再一个实施例中,提供了一种终端设备,该终端设备包括处理器以及存储器,所述存储器用于存储计算机程序,所述计算机程序包括程序指令,所述处理器用于执行所述计算机存储介质存储的程序指令。处理器可能是中央处理单元(Central ProcessingUnit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor、DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等,其是终端的计算核心以及控制核心,其适于实现一条或一条以上指令,具体适于加载并执行一条或一条以上指令从而实现相应方法流程或相应功能;本发明实施例所述的处理器可以用于数字孪生驱动的小样本旋转机械剩余寿命预测方法的操作,包括:In yet another embodiment of the present invention, a terminal device is provided, the terminal device includes a processor and a memory, the memory is used to store a computer program, the computer program includes program instructions, and the processor is used to execute the computer The program instructions stored in the storage medium. The processor may be a central processing unit (Central Processing Unit, CPU), or other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gates Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., which are the computing core and control core of the terminal, are suitable for implementing one or more instructions, specifically It is suitable for loading and executing one or more instructions to realize the corresponding method flow or corresponding functions; the processor described in the embodiment of the present invention can be used for the operation of the method for predicting the remaining life of small sample rotating machinery driven by digital twins, including:

对旋转机械设备信号预处理;建立训练卷积自编码器,对信号不健康程度进行评估;建立指数映射函数,将不健康程度映射为可直接反映设备健康状态的健康因子;基于Weibull可靠度函数和健康因子,结合梯度下降法进行旋转机械剩余使用寿命的实时迭代预测。Preprocess the signal of rotating mechanical equipment; establish a training convolutional autoencoder to evaluate the unhealthy degree of the signal; establish an exponential mapping function to map the unhealthy degree into a health factor that can directly reflect the health status of the equipment; based on Weibull reliability function and health Factor, combined with the gradient descent method for real-time iterative prediction of the remaining service life of rotating machinery.

本发明再一个实施例中,本发明还提供了一种存储介质,具体为计算机可读存储介质(Memory),所述计算机可读存储介质是终端设备中的记忆设备,用于存放程序和数据。可以理解的是,此处的计算机可读存储介质既可以包括终端设备中的内置存储介质,当然也可以包括终端设备所支持的扩展存储介质。计算机可读存储介质提供存储空间,该存储空间存储了终端的操作系统。并且,在该存储空间中还存放了适于被处理器加载并执行的一条或一条以上的指令,这些指令可以是一个或一个以上的计算机程序(包括程序代码)。需要说明的是,此处的计算机可读存储介质可以是高速RAM存储器,也可以是非不稳定的存储器(Non-Volatile Memory),例如至少一个磁盘存储器。In yet another embodiment of the present invention, the present invention also provides a storage medium, specifically a computer-readable storage medium (Memory). The computer-readable storage medium is a memory device in a terminal device for storing programs and data. . It can be understood that the computer-readable storage medium here may include a built-in storage medium in the terminal device, and certainly may include an extended storage medium supported by the terminal device. The computer-readable storage medium provides storage space, and the storage space stores the operating system of the terminal. Moreover, one or more instructions suitable for being loaded and executed by the processor are also stored in the storage space, and these instructions may be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here may be a high-speed RAM memory, or a non-volatile memory (Non-Volatile Memory), such as at least one magnetic disk memory.

可由处理器加载并执行计算机可读存储介质中存放的一条或一条以上指令,以实现上述实施例中有关数字孪生驱动的小样本旋转机械剩余寿命预测方法的相应步骤;计算机可读存储介质中的一条或一条以上指令由处理器加载并执行如下步骤:One or more instructions stored in the computer-readable storage medium can be loaded and executed by the processor, so as to realize the corresponding steps in the method for predicting the remaining life of a small-sample rotating machinery driven by a digital twin in the above-mentioned embodiment; the instructions in the computer-readable storage medium One or more instructions are loaded by the processor and executed as follows:

对旋转机械设备信号预处理;建立训练卷积自编码器,对信号不健康程度进行评估;建立指数映射函数,将不健康程度映射为可直接反映设备健康状态的健康因子;基于Weibull可靠度函数和健康因子,结合梯度下降法进行旋转机械剩余使用寿命的实时迭代预测。Preprocess the signal of rotating mechanical equipment; establish a training convolutional autoencoder to evaluate the unhealthy degree of the signal; establish an exponential mapping function to map the unhealthy degree into a health factor that can directly reflect the health status of the equipment; based on Weibull reliability function and health Factor, combined with the gradient descent method for real-time iterative prediction of the remaining service life of rotating machinery.

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。通常在此处附图中的描述和所示的本发明实施例的组件可以通过各种不同的配置来布置和设计。因此,以下对在附图中提供的本发明的实施例的详细描述并非旨在限制要求保护的本发明的范围,而是仅仅表示本发明的选定实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. The components of the embodiments of the invention generally described and illustrated in the drawings herein may be arranged and designed in a variety of different configurations. Accordingly, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

实施例Example

下面代入具体的轴承振动信号对本发明公开的数字孪生驱动的小样本旋转机械剩余寿命预测方法进行进一步地说明。The method for predicting the remaining life of small-sample rotating machinery driven by digital twins disclosed in the present invention will be further described below by substituting specific bearing vibration signals.

本发明公开的数字孪生驱动的小样本旋转机械剩余寿命预测方法包括如下步骤:The method for predicting the remaining life of small-sample rotating machinery driven by digital twins disclosed in the present invention includes the following steps:

S1、进行旋转机械设备信号预处理:S1. Carry out signal preprocessing of rotating mechanical equipment:

采集轴承全生命周期振动信号,使用卡尔曼滤波算法对振动信号进行滤波,得到降噪后信号,其中一个轴承的信号如图3所示。该轴承转速为1800r/min,振动传感器采样频率为25600Hz,选取缩放系数为1.5,确定该轴承振动信号的片段长度为1280。观察图1中降噪后轴承振动信号可以发现,该轴承振动信号在200秒之前幅值较小且无明显变化,在200秒之后幅值缓慢增大并在280秒左右急剧增大,表明此时轴承已完全失效,以此为依据可以认为前40%时间,即前100秒内轴承处于早期退化阶段,将这段时间内的轴承信号片段选取为训练数据集。使用同样方法和参数处理采集到的其余轴承全生命周期退化信号,得到早期退化信号组成的训练数据集。Collect the vibration signal of the whole life cycle of the bearing, and use the Kalman filter algorithm to filter the vibration signal to obtain the signal after noise reduction. The signal of one of the bearings is shown in Figure 3. The rotational speed of the bearing is 1800r/min, the sampling frequency of the vibration sensor is 25600Hz, the scaling factor is selected as 1.5, and the segment length of the vibration signal of the bearing is determined to be 1280. Observing the vibration signal of the bearing after noise reduction in Figure 1, it can be found that the amplitude of the vibration signal of the bearing is small and has no obvious change before 200 seconds, and the amplitude increases slowly after 200 seconds and increases sharply around 280 seconds, indicating that this When the bearing has completely failed, based on this, it can be considered that the first 40% of the time, that is, the bearing is in the early degradation stage within the first 100 seconds, and the bearing signal segment during this period is selected as the training data set. Use the same method and parameters to process the other collected bearing life cycle degradation signals to obtain a training data set composed of early degradation signals.

S2、通过建立训练卷积自编码器实现输入信号的不健康程度评估:S2. Realize the unhealthy evaluation of the input signal by establishing a training convolutional autoencoder:

卷积自编码器模型中卷积层、转置卷积层的卷积核大小设置为5,步长设置为2;池化层与反池化层的池化大小与步长均设置为4,训练网络时批尺寸大小为64,训练轮数为50,学习率设置为0.001。使用S1中的早期退化数据训练数据集对卷积自编码器进行训练,将早期退化信号与晚期退化信号输入卷积自编码器进行重构,原始信号与重构信号的对比如图4所示。由对比图可知,对于早期退化信号,卷积自编码器很好的学习到了早期退化数据的数据模式,可以以较高精度对原始信号进行重构,但是无法还原重构退化末期信号。In the convolutional autoencoder model, the convolution kernel size of the convolutional layer and the transposed convolutional layer is set to 5, and the step size is set to 2; the pooling size and step size of the pooling layer and the unpooling layer are both set to 4 , when training the network, the batch size is 64, the number of training rounds is 50, and the learning rate is set to 0.001. Use the early degraded data training dataset in S1 to train the convolutional autoencoder, and input the early degraded signal and the late degraded signal into the convolutional autoencoder for reconstruction. The comparison between the original signal and the reconstructed signal is shown in Figure 4 . It can be seen from the comparison figure that for the early degraded signal, the convolutional autoencoder has learned the data pattern of the early degraded data well, and can reconstruct the original signal with high precision, but it cannot restore and reconstruct the signal at the end of the degraded stage.

使用训练好的卷积自编码器计算轴承全生命周期振动信号的重构误差,重构误差计算结果如图5所示。从图中可以看出,在退化早期时轴承信号的重构误差都接近于0,较为平稳,而在接近失效时重构误差急剧增大,如图5中三个轴承信号的重构误差在失效时都大于1,轴承样本1_1的重构误差超过了5。Using the trained convolutional autoencoder to calculate the reconstruction error of the vibration signal of the bearing's full life cycle, the calculation results of the reconstruction error are shown in Figure 5. It can be seen from the figure that the reconstruction errors of the bearing signals are close to 0 in the early stage of degradation, which is relatively stable, but the reconstruction errors increase sharply when approaching failure, as shown in Figure 5, the reconstruction errors of the three bearing signals are at Both are greater than 1 at the time of failure, and the reconstruction error of bearing sample 1_1 exceeds 5.

S3、建立指数映射函数,将不健康程度映射为可直接反映设备健康状态的健康因子:S3. Establish an index mapping function to map the unhealthy degree to a health factor that can directly reflect the health status of the equipment:

根据图3所示的轴承全生命周期振动信号对应的重构误差可知,轴承初始时刻重构误差都接近于0,即未发生退化,可以认为此时的健康因子为0。当轴承处于快速退化期或者失效期时,其重构误差接近或者远大于1,可以认定此时轴承的HI小于0.8,即HI(1)<0.8。根据上述观察,当b=-4、-5、-6时,HI(0)=0.982、0.993,0.997,考虑偏置常数的作用,将偏置常数设为-5;根据HI(1)<0.8,解得k>3.61,因此将形状参数设置为4。将k=4,b=-6作为指数映射函数参数,代入S2中根据卷积自编码器计算的重构误差可以得到三个轴承样本振动信号对应的健康因子曲线如图6所示。According to the reconstruction error corresponding to the vibration signal of the bearing's full life cycle shown in Figure 3, it can be seen that the reconstruction error of the bearing at the initial moment is close to 0, that is, no degradation occurs, and the health factor at this time can be considered as 0. When the bearing is in the period of rapid degradation or failure, its reconstruction error is close to or much greater than 1, and it can be determined that the HI of the bearing at this time is less than 0.8, that is, HI(1)<0.8. According to the above observations, when b=-4, -5, -6, HI(0)=0.982, 0.993, 0.997, considering the effect of the bias constant, set the bias constant to -5; according to HI(1)< 0.8, the solution is k>3.61, so the shape parameter is set to 4. Taking k=4, b=-6 as the parameters of the exponential mapping function, and substituting the reconstruction error calculated according to the convolutional autoencoder in S2, the health factor curves corresponding to the vibration signals of the three bearing samples can be obtained, as shown in Figure 6.

S4、基于Weibull可靠度函数,结合梯度下降法进行旋转机械剩余使用寿命的实时迭代预测:S4. Real-time iterative prediction of the remaining service life of rotating machinery based on the Weibull reliability function combined with the gradient descent method:

将Weibull失效可靠度阈值设置为0.05,认定轴承健康因子HI小于0.05该轴承失效,Weibull可靠度函数的形状参数β和尺寸参数η分别初始化为2、15000。以测试轴承样本1_3为例,测试数据包含该轴承全生命周期内前18010秒信号,选择前2700秒信号作为CAE训练数据,此后每隔1000秒更新一次Weibull可靠度函数并预测当前轴承剩余寿命,迭代预测结果如图7所示。图7表明随着工作时间的增加与参数迭代更新,Weibull可靠度函数的轴承剩余寿命预测结果与真实剩余寿命之间的误差逐渐减小,表明Weibull可靠度函数学习到了轴承振动信号与剩余寿命之间的映射关系。The Weibull failure reliability threshold is set to 0.05, the bearing health factor HI is determined to be less than 0.05 and the bearing fails, and the shape parameter β and size parameter η of the Weibull reliability function are initialized to 2 and 15000, respectively. Taking the test bearing sample 1_3 as an example, the test data includes the first 18010 seconds of the bearing’s life cycle signal, and the first 2700 seconds of the signal is selected as the CAE training data, and then the Weibull reliability function is updated every 1000 seconds and the remaining life of the current bearing is predicted. The iterative prediction results are shown in Figure 7. Figure 7 shows that as the working time increases and the parameters are updated iteratively, the error between the prediction result of the bearing remaining life and the real remaining life of the Weibull reliability function gradually decreases, indicating that the Weibull reliability function has learned the relationship between the bearing vibration signal and the remaining life. mapping relationship between them.

图8为18000秒时测试集轴承样本1_3的Weibull可靠度函数剩余寿命预测结果图,图8表明此时剩余寿命预测结果为6876秒,实际剩余寿命为5730秒,预测百分比误差为20%。使用相同方法和步骤预测其余测试轴承样本的剩余寿命,得到本方法预测结果以及与其他常用传统算法的结果对比如表1所示。Fig. 8 is the remaining life prediction result of Weibull reliability function of bearing sample 1_3 in the test set at 18000 seconds. Fig. 8 shows that the remaining life prediction result is 6876 seconds, the actual remaining life is 5730 seconds, and the prediction percentage error is 20%. Using the same method and steps to predict the remaining life of the remaining test bearing samples, the prediction results of this method and the comparison with other commonly used traditional algorithms are shown in Table 1.

表1Table 1

通过对比可以说明本方法可以在仅使用早期退化数据的情况下实现旋转机械剩余使用寿命的高精度预测。The comparison shows that this method can achieve high-precision prediction of the remaining service life of rotating machinery using only early degradation data.

综上所述,本发明一种数字孪生驱动的小样本旋转机械剩余寿命预测方法及系统,仅使用早期退化信号训练卷积自编码器,利用卷积自编码器与指数映射函数构建健康因子。引入Weibull可靠度函数作为退化行为模型描述旋转机械的退化趋势,基于健康因子进行Weibull可靠度函数的参数更新与旋转机械剩余寿命计算,实现了小样本情况下旋转机械剩余寿命的准确、实时预测。In summary, the present invention is a method and system for predicting the remaining life of small-sample rotating machinery driven by digital twins, which only uses early degradation signals to train convolutional autoencoders, and uses convolutional autoencoders and exponential mapping functions to construct health factors. The Weibull reliability function is introduced as a degradation behavior model to describe the degradation trend of the rotating machinery. Based on the health factor, the parameters of the Weibull reliability function are updated and the remaining life of the rotating machinery is calculated. The accurate and real-time prediction of the remaining life of the rotating machinery is realized in the case of small samples.

所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used for illustration. In practical applications, the above-mentioned functions can be assigned to different functional units, Completion of modules means that the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment may be integrated into one processing unit, or each unit may exist separately physically, or two or more units may be integrated into one unit, and the above-mentioned integrated units may adopt hardware It can also be implemented in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present application. For the specific working processes of the units and modules in the above system, reference may be made to the corresponding processes in the aforementioned method embodiments, and details will not be repeated here.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the descriptions of each embodiment have their own emphases, and for parts that are not detailed or recorded in a certain embodiment, refer to the relevant descriptions of other embodiments.

本领域普通技术人员可以意识到,结合本发明中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed in the present invention can be realized by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.

在本发明所提供的实施例中,应该理解到,所揭露的装置/终端和方法,可以通过其它的方式实现。例如,以上所描述的装置/终端实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in the present invention, it should be understood that the disclosed device/terminal and method may be implemented in other ways. For example, the device/terminal embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or Components may be combined or integrated into another system, or some features may be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

所述集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(Read-Only Memory,ROM)、随机存取存储器(RandomAccess Memory,RAM)、电载波信号、电信信号以及软件分发介质等,需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括是电载波信号和电信信号。If the integrated module/unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention realizes all or part of the processes in the methods of the above embodiments, and can also be completed by instructing related hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer When the program is executed by the processor, the steps in the above-mentioned various method embodiments can be realized. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a removable hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (Read-Only Memory, ROM) , random access memory (Random Access Memory, RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content contained in the computer-readable media can be based on the requirements of legislation and patent practice in the jurisdiction Appropriate additions and subtractions, for example, in some jurisdictions, by virtue of legislation and patent practice, computer readable media exclude electrical carrier signals and telecommunication signals.

本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowcharts and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present application. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.

以上内容仅为说明本发明的技术思想,不能以此限定本发明的保护范围,凡是按照本发明提出的技术思想,在技术方案基础上所做的任何改动,均落入本发明权利要求书的保护范围之内。The above content is only to illustrate the technical ideas of the present invention, and cannot limit the protection scope of the present invention. Any changes made on the basis of the technical solutions according to the technical ideas proposed in the present invention shall fall within the scope of the claims of the present invention. within the scope of protection.

Claims (10)

1.数字孪生驱动的小样本旋转机械剩余寿命预测方法,其特征在于,包括以下步骤:1. The method for predicting the remaining life of small sample rotating machinery driven by digital twins, characterized in that it comprises the following steps: S1、对旋转机械设备信号预处理;S1. Signal preprocessing of rotating machinery equipment; S2、建立训练卷积自编码器,对步骤S1得到的信号不健康程度进行评估;S2. Establish a training convolutional autoencoder to evaluate the unhealthy degree of the signal obtained in step S1; S3、建立指数映射函数,将步骤S2得到的不健康程度映射为可直接反映设备健康状态的健康因子;S3. Establish an index mapping function, and map the unhealthy degree obtained in step S2 into a health factor that can directly reflect the health status of the equipment; S4、基于Weibull可靠度函数和步骤S3得到的健康因子,结合梯度下降法进行旋转机械剩余使用寿命的实时迭代预测。S4. Based on the Weibull reliability function and the health factor obtained in step S3, combined with the gradient descent method, the real-time iterative prediction of the remaining service life of the rotating machinery is performed. 2.根据权利要求1所述的数字孪生驱动的小样本旋转机械剩余寿命预测方法,其特征在于,步骤S1具体为:2. The method for predicting the remaining life of small-sample rotating machinery driven by digital twins according to claim 1, wherein step S1 is specifically: S101、对于一段测量得到的设备信号z(t),使用一维卡尔曼滤波算法建立设备信号的状态方程,估计信号带误差的测量值与带误差的观测值叠加得到的最优估计值;S101. For a piece of measured equipment signal z(t), use a one-dimensional Kalman filter algorithm to establish a state equation of the equipment signal, and estimate the optimal estimated value obtained by superimposing the measured value of the signal with error and the observed value with error; S102、将步骤S101得到的滤波后信号x(t)划分为若干长度均为N的信号片段,将前30%时间内的信号认定为旋转机械的早期退化信号,用于后续算法模型的训练,其余均为测试数据。S102. Divide the filtered signal x(t) obtained in step S101 into several signal segments whose length is N, and identify the signal in the first 30% of the time as the early degradation signal of the rotating machinery for the training of the subsequent algorithm model, The rest are test data. 3.根据权利要求2所述的数字孪生驱动的小样本旋转机械剩余寿命预测方法,其特征在于,步骤S101中,将z(t)作为观测值zk与k=0时刻的初始估计值,给定状态转移矩阵A、过程激励噪声协方差Q、测量噪声协方差R、转换矩阵H的初始值,迭代计算得到z(t)经卡尔曼滤波降噪后的信号x(t)。3. The method for predicting the remaining life of small-sample rotating machinery driven by digital twins according to claim 2, characterized in that in step S101, z(t) is used as the observed value z k and the initial estimated value at the moment k=0, Given the state transition matrix A, the process excitation noise covariance Q, the measurement noise covariance R, and the initial value of the transition matrix H, iteratively calculate the signal x(t) after z(t) has been denoised by Kalman filtering. 4.根据权利要求2所述的数字孪生驱动的小样本旋转机械剩余寿命预测方法,其特征在于,步骤S102中,设备信号的划分长度N为:4. The method for predicting the remaining life of small-sample rotating machinery driven by digital twins according to claim 2, characterized in that, in step S102, the division length N of the equipment signal is: 其中,k为人为给定的缩放系数,frotate为旋转机械的转动频率,fcollect为信号的采集频率。Among them, k is an artificially given scaling factor, f rotate is the rotation frequency of the rotating machine, and f collect is the signal collection frequency. 5.根据权利要求1所述的数字孪生驱动的小样本旋转机械剩余寿命预测方法,其特征在于,步骤S2具体为:5. The method for predicting the remaining life of small-sample rotating machinery driven by digital twins according to claim 1, wherein step S2 is specifically: S201、构建卷积自编码器神经网络模型;S201. Construct a convolutional autoencoder neural network model; S202、经过步骤S1预处理后得到的早期退化信号为xearly(t),输入卷积自编码器经编码解码后得到重构信号使用平方差损失函数计算重构误差;S202. The early degraded signal obtained after preprocessing in step S1 is x early (t), and the input convolutional autoencoder is encoded and decoded to obtain a reconstructed signal Calculate the reconstruction error using the squared difference loss function; S203、将测试信号输入训练好的卷积自编码器中进行信号重构,计算测试信号与重构信号的重构误差,将重构误差作为测试信号对应的设备不健康程度。S203. Input the test signal into the trained convolutional autoencoder to perform signal reconstruction, calculate the reconstruction error between the test signal and the reconstructed signal, and use the reconstruction error as the unhealthy degree of the equipment corresponding to the test signal. 6.根据权利要求1所述的数字孪生驱动的小样本旋转机械剩余寿命预测方法,其特征在于,步骤S3具体为:6. The method for predicting the remaining life of small-sample rotating machinery driven by digital twins according to claim 1, wherein step S3 is specifically: S301、基于不健康程度与健康因子HI的定义构建指数映射函数并确定指数映射函数超参数;S301. Construct an exponential mapping function based on the definition of the unhealthy degree and the health factor HI and determine hyperparameters of the exponential mapping function; S302、将预处理后得到的M个测试信号片段x={x1N,x2N,...,xMN}按时间顺序排序后依次输入卷积自编码器和指数映射函数得到旋转机械的健康因子HI集合HI={HI1N,HI2N,...,HIMN}。S302. Sort the M test signal segments x={x 1N ,x 2N ,...,x MN } obtained after preprocessing in chronological order, and then input them into the convolutional autoencoder and the exponential mapping function to obtain the health of the rotating machinery Factor HI set HI={HI 1N ,HI 2N ,...,HI MN }. 7.根据权利要求6所述的数字孪生驱动的小样本旋转机械剩余寿命预测方法,其特征在于,步骤S301中,指数映射函数据具体为:7. The method for predicting the remaining life of small-sample rotating machinery driven by digital twins according to claim 6, characterized in that, in step S301, the index mapping function data is specifically: 其中,k、b分别是指数映射函数的形状系数和偏置常数,为重构误差。Among them, k and b are the shape coefficient and bias constant of the exponential mapping function, respectively, is the reconstruction error. 8.根据权利要求1所述的数字孪生驱动的小样本旋转机械剩余寿命预测方法,其特征在于,步骤S4具体为:8. The method for predicting the remaining life of small-sample rotating machinery driven by digital twins according to claim 1, wherein step S4 is specifically: S401、初始化Weibull可靠度函数;S401, initialize the Weibull reliability function; S402、基于Weibull可靠度函数计算旋转机械剩余使用寿命;S402. Calculate the remaining service life of the rotating machinery based on the Weibull reliability function; S403、根据步骤S3中由实时测量数据得到的HI集合,使用梯度下降法对Weibull可靠度函数进行参数更新,重复步骤S402和步骤S403,实现小样本情况下旋转机械剩余使用寿命的实时迭代预测。S403. According to the HI set obtained from the real-time measurement data in step S3, use the gradient descent method to update the parameters of the Weibull reliability function, repeat steps S402 and S403, and realize the real-time iterative prediction of the remaining service life of the rotating machinery under the condition of small samples. 9.根据权利要求1所述的数字孪生驱动的小样本旋转机械剩余寿命预测方法,其特征在于,步骤S402中,t时刻旋转机械的剩余使用寿命RULt为:9. The small-sample remaining life prediction method for rotating machinery driven by digital twins according to claim 1, wherein in step S402, the remaining service life RUL t of the rotating machinery at time t is: RULt=Tf-Tt=η[(-lnRf)1/β-(-lnRt)1/β]RUL t =T f -T t =η[(-lnR f ) 1/β -(-lnR t ) 1/β ] 其中,Tf为旋转机械理论失效工作时长,Tt为旋转机械理论工作时长,η为尺度参数,Rf为失效阈值可靠度,Rt为可靠度,β为形状参数。Among them, T f is the theoretical failure working time of the rotating machine, T t is the theoretical working time of the rotating machine, η is the scale parameter, R f is the failure threshold reliability, R t is the reliability, and β is the shape parameter. 10.一种数字孪生驱动的小样本旋转机械剩余寿命预测系统,其特征在于,包括:10. A small-sample rotating machinery residual life prediction system driven by digital twins, characterized in that it includes: 预处理模块,对旋转机械设备信号预处理;Preprocessing module, preprocessing the signal of rotating machinery equipment; 评估模块,建立训练卷积自编码器,对预处理模块得到的信号不健康程度进行评估;The evaluation module establishes a training convolutional autoencoder to evaluate the unhealthy degree of the signal obtained by the preprocessing module; 映射模块,建立指数映射函数,将评估模块得到的不健康程度映射为可直接反映设备健康状态的健康因子;The mapping module establishes an index mapping function to map the unhealthy degree obtained by the evaluation module into a health factor that can directly reflect the health status of the equipment; 预测模块,基于Weibull可靠度函数和映射模块得到的健康因子,结合梯度下降法进行旋转机械剩余使用寿命的实时迭代预测。The prediction module is based on the Weibull reliability function and the health factor obtained by the mapping module, combined with the gradient descent method to perform real-time iterative prediction of the remaining service life of the rotating machinery.
CN202310619377.4A 2023-05-29 2023-05-29 Digital twin-driven small sample rotary machine residual life prediction method and system Pending CN116561927A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310619377.4A CN116561927A (en) 2023-05-29 2023-05-29 Digital twin-driven small sample rotary machine residual life prediction method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310619377.4A CN116561927A (en) 2023-05-29 2023-05-29 Digital twin-driven small sample rotary machine residual life prediction method and system

Publications (1)

Publication Number Publication Date
CN116561927A true CN116561927A (en) 2023-08-08

Family

ID=87500010

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310619377.4A Pending CN116561927A (en) 2023-05-29 2023-05-29 Digital twin-driven small sample rotary machine residual life prediction method and system

Country Status (1)

Country Link
CN (1) CN116561927A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117077327A (en) * 2023-10-18 2023-11-17 国网山东省电力公司鱼台县供电公司 Bearing life prediction method and system based on digital twin
CN118052255A (en) * 2024-03-19 2024-05-17 广东石油化工学院 First prediction time determining method, device, equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117077327A (en) * 2023-10-18 2023-11-17 国网山东省电力公司鱼台县供电公司 Bearing life prediction method and system based on digital twin
CN118052255A (en) * 2024-03-19 2024-05-17 广东石油化工学院 First prediction time determining method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN116561927A (en) Digital twin-driven small sample rotary machine residual life prediction method and system
CN105593864B (en) Analytical device degradation for maintenance device
CN114662386A (en) Bearing fault diagnosis method and system
CN115903741B (en) A method for detecting data anomalies in industrial control systems
WO2023169274A1 (en) Data processing method and device, and storage medium and processor
CN112395179B (en) Model training method, disk prediction method, device and electronic equipment
CN111224805A (en) Network fault root cause detection method, system and storage medium
CN108875281A (en) A kind of hybrid intelligent health status diagnostic method and device based on deep learning
CN115016965A (en) Method, device, equipment and storage medium for detecting faults of metering automation master station
CN116861798A (en) Online real-time residual life prediction method for vacuum dry pump based on XGBoost algorithm
CN115801463A (en) Industrial Internet platform intrusion detection method and device and electronic equipment
CN117909668A (en) Bearing fault diagnosis method and system based on convolutional neural network
CN116306806A (en) Fault diagnosis model determining method and device and nonvolatile storage medium
CN110874601B (en) Method for identifying running state of equipment, state identification model training method and device
CN110543869A (en) Ball screw service life prediction method and device, computer equipment and storage medium
CN118193955B (en) A method, device, medium and product for obtaining aerodynamic noise of compressor
CN114239949A (en) Website access amount prediction method and system based on two-stage attention mechanism
CN117591860A (en) A data anomaly detection method and device
CN115600116B (en) Dynamic detection method, system, storage medium and terminal for time sequence abnormality
CN113839799A (en) A method and device for mining alarm association rules
CN113514246A (en) Rotating mechanical system damage detection method, device and terminal
CN118467935B (en) Motor data denoising method and system
CN116929753B (en) Transmission gear state detection method, device, computer equipment and storage medium
CN114825333B (en) Regional wind power modeling method, device, storage medium and equipment
CN118427537B (en) Intelligent data acquisition method and system for semiconductor equipment

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