Equipment fault prediction and model training method and device, equipment, medium and program product

By using sample operating data and time data in the equipment failure prediction model to obtain abnormal scores and fit normal distributions, the problem of dependence on historical data in the existing technology is solved, and the accuracy and adaptability of equipment failure prediction are improved.

CN118779191APending Publication Date: 2024-10-15CHINA FAW CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410770636.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Existing equipment failure prediction methods are highly dependent on historical failure data and are difficult to reflect the status changes of equipment over time, resulting in poor prediction accuracy. It is especially challenging to obtain sufficient failure data in new equipment or complex systems.

Method used

By inputting the equipment's sample operation data and corresponding time data into the equipment fault prediction model, the sample abnormality score is obtained, and normal distribution fitting is used for fault prediction to avoid over-reliance on a large amount of historical data and introduce time influencing factors to reflect Device status changes.

Benefits of technology

It improves the accuracy of equipment failure prediction, can reflect changes in equipment status in a timely manner, reduces reliance on a large amount of historical data, and is suitable for failure prediction of new equipment or complex systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118779191A_ABST
    Figure CN118779191A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses an equipment fault prediction and model training method and device, equipment, a medium and a program product. The method comprises the following steps: inputting sample operation data and corresponding sample time data of the equipment into a to-be-trained model; obtaining a sample anomaly score based on the sample operation data and the corresponding sample time data through a sample anomaly score obtaining layer of the model; through a fault prediction layer of the model, performing normal distribution fitting on the sample abnormal score by using a reference score generator to obtain sample normal distribution, and obtaining an equipment fault prediction result based on the sample abnormal score and the sample normal distribution; and determining a function value of a training loss function based on the equipment fault prediction result, and adjusting model parameters in the equipment fault prediction model according to the function value of the training loss function. According to the embodiment of the invention, excessive dependence on a large amount of historical fault data can be avoided, and the state change of the equipment along with time lapse can be reflected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of industrial equipment, and in particular to an equipment fault prediction and model training method, device, equipment, medium and program product. Background Art

[0002] Fault prediction for industrial equipment can help ensure the safe and normal production of equipment. Equipment fault prediction methods in the prior art include methods based on reliability models, methods based on physical models, and methods based on data-driven methods. Equipment fault prediction methods in the prior art can identify and locate faults to a certain extent, and predict the possibility of faults in advance, but they are highly dependent on a large amount of historical fault data. However, in industrial applications, especially for new equipment or complex systems, it is challenging to obtain sufficient fault data, and because the equipment will experience wear and aging during use, the fault prediction methods in the prior art are difficult to reflect the changes in the state of the equipment over time, which makes the equipment fault prediction methods in the prior art less accurate. Summary of the invention

[0003] The embodiments of the present invention provide a method, apparatus, device, medium and program product for equipment fault prediction and model training, which can avoid excessive reliance on a large amount of historical fault data, reflect the state changes of the equipment over time, and improve the accuracy of fault prediction.

[0004] In a first aspect, an embodiment of the present invention provides a method for training a device fault prediction model, comprising:

[0005] Inputting sample operation data and corresponding sample time data of the equipment into the equipment fault prediction model to be trained; wherein the equipment fault prediction model includes an abnormality score acquisition layer and a fault prediction layer, and the fault prediction layer includes a reference score generator;

[0006] Acquire, through the sample anomaly score acquisition layer, a sample anomaly score corresponding to the sample operation data based on the sample operation data and the corresponding sample time data;

[0007] By means of the fault prediction layer, the reference score generator is used to perform normal distribution fitting on the sample abnormality score to obtain a sample normal distribution, and based on the sample abnormality score and the sample normal distribution, an equipment fault prediction result corresponding to the sample operation data is obtained; and

[0008] The function value of the training loss function is determined based on the equipment failure prediction result, and the model parameters in the equipment failure prediction model are adjusted according to the function value of the training loss function.

[0009] In a second aspect, an embodiment of the present invention provides a method for predicting equipment failures, including:

[0010] Inputting the real-time operation data of the device and the corresponding real-time operation time data into a pre-trained device fault prediction model; wherein the device fault prediction model includes an anomaly score acquisition layer and a fault prediction layer, and the fault prediction layer includes a reference score generator;

[0011] Acquire a real-time anomaly score based on the real-time operation data and the real-time operation time data through the anomaly score acquisition layer; and

[0012] Through the fault prediction layer, the real-time abnormal score is fitted with a normal distribution using the reference score generator to obtain a real-time normal distribution, and a real-time equipment fault prediction result is obtained based on the real-time normal distribution and the real-time abnormal score.

[0013] In a third aspect, an embodiment of the present invention provides a device for training a device failure prediction model, comprising:

[0014] A sample data input module, used to input the sample operation data and corresponding sample time data of the equipment into the equipment fault prediction model to be trained; wherein the equipment fault prediction model includes an abnormal score acquisition layer and a fault prediction layer, and the fault prediction layer includes a reference score generator;

[0015] A sample anomaly score acquisition module, configured to acquire, through the sample anomaly score acquisition layer, a sample anomaly score corresponding to the sample operation data based on the sample operation data and the corresponding sample time data;

[0016] A sample prediction result acquisition module, used to perform normal distribution fitting on the sample abnormality score by using the reference score generator through the fault prediction layer to obtain a sample normal distribution, and to obtain a device fault prediction result corresponding to the sample operation data based on the sample abnormality score and the sample normal distribution;

[0017] A parameter adjustment module is used to determine the function value of the training loss function based on the equipment fault prediction result, and adjust the model parameters in the equipment fault prediction model according to the function value of the training loss function.

[0018] In a fourth aspect, an embodiment of the present invention provides a device for predicting equipment failure, including:

[0019] A real-time data input module, used to input the real-time operation data of the device and the corresponding real-time operation time data into a pre-trained device fault prediction model; wherein the device fault prediction model includes an abnormality score acquisition layer and a fault prediction layer, and the fault prediction layer includes a reference score generator;

[0020] a real-time anomaly score acquisition module, configured to acquire a real-time anomaly score based on the real-time operation data and the real-time operation time data through the anomaly score acquisition layer; and

[0021] The real-time prediction result acquisition module is used to perform normal distribution fitting on the real-time abnormal score through the fault prediction layer using the reference score generator to obtain a real-time normal distribution, and obtain a real-time equipment fault prediction result based on the real-time normal distribution and the real-time abnormal score.

[0022] In a fifth aspect, an embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, an equipment fault prediction model training method or an equipment fault prediction method as described in any one of the embodiments of the present invention is implemented.

[0023] In a sixth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements an equipment fault prediction model training method or an equipment fault prediction method as described in any one of the embodiments of the present invention.

[0024] In a seventh aspect, an embodiment of the present invention further provides a computer program product, comprising a computer program, which, when executed by a processor, implements an equipment fault prediction model training method or an equipment fault prediction method as described in any one of the embodiments of the present invention.

[0025] The embodiments of the present invention provide a method, apparatus, device, medium and program product for equipment fault prediction and model training. The sample anomaly score is calculated based on the sample operation data and the corresponding sample time data corresponding to the sample operation data, and the equipment fault prediction model is further trained based on the sample anomaly score. The time influencing factor of the operation data is introduced, so that the trained equipment fault prediction model can reflect the state changes of the equipment over time when performing fault prediction. The embodiments of the present invention also take into account that the distribution of the operation data of the equipment in the big data scenario presents a normal distribution. By fitting the sample anomaly score with a normal distribution and performing equipment fault prediction according to the corresponding normal distribution, it is possible to avoid excessive reliance on a large amount of historical data during training, thereby improving the prediction accuracy when performing equipment fault prediction. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the technical solution of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0027] Figure 1 It is a flow chart of a method for training a device fault prediction model provided by an embodiment of the present invention;

[0028] Figure 2 is another flow chart of the equipment fault prediction model training method provided by an embodiment of the present invention;

[0029] Figure 3 is another flow chart of the equipment fault prediction model training method provided by an embodiment of the present invention;

[0030] Figure 4 It is a flow chart of a method for predicting equipment failures provided by an embodiment of the present invention;

[0031] Figure 5 It is a structural schematic diagram of a device failure prediction model training device provided by an embodiment of the present invention;

[0032] Figure 6 is a structural schematic diagram of a device for predicting equipment failures provided by an embodiment of the present invention;

[0033] Figure 7 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0034] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme 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 are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0035] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0036] Figure 1 A flowchart of a method for training a device fault prediction model provided in an embodiment of the present invention is provided. This embodiment is applicable to scenarios where there is less equipment fault data. The method can be performed by a device fault prediction model training apparatus provided in an embodiment of the present invention, and the apparatus can be implemented in software and / or hardware. In a specific embodiment, the apparatus can be integrated into an electronic device, such as a computer, a server, etc. The following embodiments will be described using the example of the apparatus being integrated into an electronic device. Reference Figure 1 , the method may specifically include the following steps:

[0037] Step 101, input the sample operation data and corresponding sample time data of the equipment into the equipment fault prediction model to be trained; wherein the equipment fault prediction model includes an anomaly score acquisition layer and a fault prediction layer, and the fault prediction layer includes a reference score generator. This step can facilitate obtaining the corresponding sample anomaly score based on the sample operation data and the corresponding sample time data through the sample anomaly score acquisition layer.

[0038] Specifically, the above equipment may be industrial production equipment.

[0039] Specifically, the sample operation data may include: temperature readings, pressure sensor data, vibration signals, sound levels, electrical parameters such as current and voltage readings, and network real-time traffic data, etc., which are data generated by one or more devices during operation.

[0040] Specifically, the sample operation data may include multiple groups of operation data, and the corresponding sample time data may include multiple operation durations corresponding one-to-one to the multiple groups of operation data.

[0041] Optionally, the above-mentioned multiple groups of sample operation data can be acquired based on a predetermined collection period, and the collection period can be, for example, one week, one day or one hour.

[0042] Optionally, before step 101, original historical operation data of the device is acquired and preprocessed to obtain the above-mentioned sample operation data.

[0043] Step 102, through the sample anomaly score acquisition layer, based on the sample operation data and the corresponding sample time data, the sample anomaly score corresponding to the sample operation data is acquired. This step introduces the time influence factor of the operation data in the training process, so that the equipment fault prediction model obtained by training can reflect the state change of the equipment over time when performing fault prediction; and it can be beneficial to obtain the sample normal distribution based on the sample anomaly score, and further obtain the corresponding equipment fault prediction result based on the sample anomaly score and the sample normal distribution.

[0044] Specifically, the sample anomaly score may include multiple sample anomaly scores corresponding to multiple groups of operating data.

[0045] Optionally, the process of obtaining the sample anomaly score corresponding to the sample running data through the sample anomaly score acquisition layer based on the sample running data and the corresponding sample time data includes:

[0046] Feature extraction is performed on the above sample operation data and the corresponding sample time data, and the extracted operation data features and operation duration features are fused to obtain data duration fusion features, and then the corresponding sample anomaly score is calculated based on the data duration fusion features.

[0047] Step 103, through the fault prediction layer, the reference score generator is used to fit the sample abnormality score to a normal distribution to obtain the sample normal distribution, and the equipment fault prediction result corresponding to the sample operation data is obtained based on the sample abnormality score and the sample normal distribution. This step takes into account that the distribution of equipment operation data in the big data scenario presents a normal distribution. By fitting the sample abnormality score to a normal distribution and predicting equipment faults according to the corresponding normal distribution, it is possible to avoid excessive reliance on a large amount of historical data during training.

[0048] Optionally, the sample operation data includes historical operation data of the device.

[0049] Specifically, the sample operation data may also include simulated operation data generated when the device is simulated.

[0050] Optionally, the corresponding sample time data includes the operating time of the device when the sample operating data is generated.

[0051] Specifically, the sample time data may also include the operating time of the device when the sample operating data is generated.

[0052] Specifically, the above sample normal distribution can be parameterized based on empirical data. Specifically, the location parameter μ can be set to 0, and the scale parameter σ can be set to 1, that is, the above sample normal distribution can be set to the standard overall distribution, so as to improve the interpretability of the anomaly score, and to improve the efficiency of obtaining the above sample normal distribution, and further improve the efficiency of obtaining equipment fault prediction results.

[0053] Optionally, the process of fitting the sample abnormality scores with a normal distribution by using the reference score generator to obtain the sample normal distribution includes: fitting the normal distribution of the aforementioned multiple sample abnormality scores.

[0054] Optionally, the process of obtaining the equipment fault prediction result corresponding to the sample operation data based on the sample abnormality score and the sample normal distribution includes:

[0055] The equipment failure prediction results corresponding to the sample operation data are obtained based on the location parameters of the sample normal distribution.

[0056] Optionally, the above process of obtaining the equipment failure prediction result corresponding to the sample operation data based on the sample anomaly score and the sample normal distribution includes: determining the distribution center of the sample normal distribution based on the location parameter of the sample normal distribution, calculating the distance between the sample anomaly score and the distribution center to obtain the sample anomaly distance; and determining the equipment failure prediction result corresponding to the sample operation data based on the sample anomaly distance.

[0057] Optionally, the process of determining the equipment fault prediction result corresponding to the sample operation data based on the sample abnormal distance includes:

[0058] If the above-mentioned sample abnormality distance is greater than the preset distance threshold, the sample data abnormality label is output, for example, 0 can be output, and the equipment fault prediction result is determined as the existence of a fault based on the sample data abnormality label; if the above-mentioned sample abnormality distance is not greater than the preset distance threshold, the sample data normal label is output, for example, 1 can be output, and the equipment fault prediction result is determined as the absence of a fault based on the sample data normal label.

[0059] Specifically, the distance threshold may be set based on empirical data or based on test results of several tests.

[0060] Optionally, the process of obtaining the equipment fault prediction result corresponding to the sample operation data based on the sample abnormality score and the sample normal distribution includes:

[0061] The equipment failure prediction results corresponding to the sample operation data are obtained based on the location parameters and scale parameters of the sample normal distribution.

[0062] Step 104, determine the function value of the training loss function based on the equipment fault prediction result, and adjust the model parameters in the equipment fault prediction model according to the function value of the training loss function. This step is combined with steps 101-103, and the sample anomaly score is calculated based on the sample operation data and the corresponding sample time data corresponding to the sample operation data, and then the equipment fault prediction model is trained, and the time influencing factor of the operation data is introduced, so that the trained equipment fault prediction model can reflect the state change of the equipment over time when predicting the fault; and considering that the distribution of the equipment operation data in the big data scenario presents a normal distribution, by fitting the sample anomaly score with a normal distribution, and predicting the equipment fault according to the corresponding normal distribution, it is possible to avoid excessive reliance on a large amount of historical data during training.

[0063] Optionally, the process of determining the function value of the training loss function based on the equipment fault prediction result includes: determining the function value of the training loss function based on a standard score of the sample anomaly score, the fault prediction result and a preset standard score threshold.

[0064] Specifically, the above standard score is z-score.

[0065] Optionally, the calculation process of the standard score of the above sample anomaly score can be expressed as:

[0066]

[0067] Where dev(x) represents the standard score, η(x; Θ) represents the sample abnormality score, and μ R represents the average of the anomaly scores of multiple samples corresponding to multiple sets of running data, σ R Represents the standard deviation of the anomaly scores across multiple samples.

[0068] Optionally, the function value of the training loss function is determined based on the standard score, the fault prediction result and the preset standard score threshold, and is based on the following loss function:

[0069] L(n(x;Θ),μ R , σ R )=(1-y)|dev(x)|+ymax((0,a-dev(x)), (2)

[0070] Among them, L(η(x; Θ), μ R , σ R ) represents the loss function; y represents the abnormal label of the sample data, y=1 represents abnormality, y=0 represents normality; a represents the deviation threshold.

[0071] Specifically, the above deviation threshold a can be set according to empirical data, or according to test results of several tests.

[0072] Optionally, the equipment fault prediction model training method provided by the present invention also includes: respectively obtaining the latest historical operation data and corresponding operation time of the equipment, and correspondingly obtaining the latest sample operation data and corresponding sample time data; and based on the latest sample operation data and corresponding sample time data, starting the execution of inputting the sample operation data and corresponding sample time data of the equipment into the equipment fault prediction model to be trained.

[0073] Optionally, the latest historical operation data and corresponding operation duration are obtained once every preset time period.

[0074] Specifically, iteratively updating the equipment failure prediction model with the latest historical operation data can make the equipment failure prediction model more adaptable to changes in equipment status, thereby further improving the accuracy of predicting equipment failures.

[0075] The following further introduces the equipment fault prediction model training method provided by the embodiment of the present invention.

[0076] Optionally, the sample anomaly score acquisition layer includes: a feature representation learner, a time feature fusion device and an anomaly score learner.

[0077] Specifically, the sample anomaly score acquisition layer may also be other existing technical structures.

[0078] Optional, such as Figure 2 As shown, Figure 1 Step 102 in may include the following steps:

[0079] Step 1021, using a feature representation learner, extracting features from the input sample operation data to obtain sample data features corresponding to the sample operation data.

[0080] Specifically, the feature representation learner may include a neural network that converts the input sample running data into an intermediate feature representation. The neural network may include multiple hidden layers, and each hidden layer may use a nonlinear activation function, such as a ReLU function, to learn the nonlinear relationship in the sample running data.

[0081] Optionally, the neural network may include:

[0082] Input layer: used to receive sample running data, which can be time series data, image data, multi-dimensional sensor readings and other types of data.

[0083] Hidden layer: It consists of multiple fully connected layers. Each fully connected layer includes a linear mapping layer and a regularization layer, and nonlinearity is introduced through a nonlinear activation function.

[0084] The output layer is used to output an intermediate feature vector as the sample data feature, which can be expressed as:

[0085] Ψ0(x i ; Θ ψ ) = BatchNorm(ReLU(Linear(x i ))), (3)

[0086] Among them, Ψ0(x i ; Θ ψ ) Sample data features, x i Represents sample running data, BatchNorm represents normalization, ReLU represents activation function, and Linear represents linear mapping.

[0087] Step 1022, through the time feature fuser, based on the sample data features and the corresponding sample time data, obtain the sample fusion features corresponding to the sample operation data.

[0088] Specifically, the time feature fuser can fuse the time features onto the sample data features.

[0089] Optionally, the temporal feature fuser comprises a temporal neural network.

[0090] Optionally, the above-mentioned obtaining of sample fusion features corresponding to the sample running data based on the sample data features and the corresponding sample time data includes:

[0091] Based on the corresponding sample time data, multiple historical sample data features corresponding to the sample data features are obtained, and the sample data generation time corresponding to the multiple historical sample data features is before the sample data generation time corresponding to the sample data features; and through a time series neural network, based on the sample data features and multiple historical sample data features, a sample fusion feature corresponding to the sample operation data is obtained.

[0092] Optionally, the sample data generation time corresponding to the above-mentioned multiple historical sample data features and the sample data generation time corresponding to the sample data features are consecutive generation times, that is, the above-mentioned multiple historical sample data features and the sample operation data corresponding to the sample data features are collected in multiple consecutive collection cycles.

[0093] Specifically, for each sample data feature, the multiple historical sample data features may include all historical sample data features of the current sample data feature.

[0094] Optionally, the above-mentioned temporal neural network includes:

[0095] Input layer, input sample data features and corresponding multiple historical sample data features. For example, let p tN =ψ(x i ; Θ ψ )), then enter [p tn-m ,...p tN-1 ,p tN ].

[0096] Hidden layer, using recurrent neural network (RNN layer) to process input data. RNN layer captures time dependency by applying the same weights to each time step of the sequence and passing information from previous time steps through hidden states. tn-m ,...p tN-1 ,p tN ], train the RNN to learn how to predict future features based on historical data.

[0097] The output layer is used to output sample fusion features and can be expressed as:

[0098] φ(Θ φ )=RNN([p tn-m ,...p tN-1 ,p tN ]), (4)

[0099] Specifically, based on the characteristics of historical sample data and current sample data, the changing characteristics of sample operation data over time can be effectively introduced, thereby effectively following the state changes of the equipment over time and improving the prediction accuracy of the trained equipment fault prediction model.

[0100] Step 1023: Obtain a sample anomaly score based on the sample fusion feature through a sample anomaly score learner.

[0101] Specifically, the anomaly score learner is used to convert the sample fusion features into a scalar anomaly score, which represents the deviation length of the sample running data from the normal data.

[0102] Optionally, the anomaly score learner includes:

[0103] Input layer, used to input sample fusion features.

[0104] Linear Layer,The anomaly score learner includes at least one linear layer, each of which consists of a set of weight terms and a bias term, which is used to map the sample fusion features to the anomaly score.

[0105] The output layer is used to output a scalar value as the sample anomaly score.

[0106] Specifically, sigmoid can be used as the activation function.

[0107] The embodiment of the present invention obtains the sample anomaly score based on the sample operation data and the corresponding sample time data through a feature representation learner, a time feature fuser and anomaly score learner, and can obtain a more accurate sample anomaly score, thereby facilitating improving the prediction accuracy of the trained equipment fault prediction model.

[0108] The following further introduces a method for training a device fault prediction model provided by another embodiment of the present invention.

[0109] like Figure 3 As shown, Figure 2 Step 1022 in may include the following steps:

[0110] Step 1022a: based on the corresponding sample time data, obtain adjacent sample data features of the sample data features, where the adjacent sample data features and the sample data corresponding to the sample data features are generated in adjacent times.

[0111] Optionally, the sample data features in the embodiment of the present invention do not include sample data features corresponding to the operation data collected in the first and last collection cycles in the aforementioned multiple groups of operation data.

[0112] Optionally, for sample data feature p tN , the adjacent sample data features include the sample data features corresponding to the previous generation time and the next generation time, which can be expressed as p tN-1 and p tN+1 .

[0113] Step 1022b: Determine a linear interpolation replacement feature corresponding to the sample data feature based on adjacent sample data features.

[0114] Optionally, the above linear interpolation replacement feature is determined based on the following formula:

[0115] p' tN =(p tN-1 +p tN+1 ) / 2+ε, (5)

[0116] Among them, p' tN Represents a linear interpolation replacement feature.

[0117] Step 1022c: based on the linear interpolation replacement feature and multiple historical sample data features, obtain the sample fusion feature corresponding to the sample data feature.

[0118] Specifically, for each sample data feature, the adjacent sample data features of the current sample data feature may also be replaced with the corresponding linear interpolation replacement features.

[0119] Specifically, in actual operation of the equipment, the operation data may undergo small changes due to various factors, such as temperature fluctuations and mechanical wear. The embodiment of the present invention introduces similar small changes in the training data by linear wiping, so that the model acquires the ability to correctly identify anomalies even when the data has slight fluctuations.

[0120] Figure 4 The present invention provides a flow chart of a method for predicting equipment failures in accordance with an embodiment of the present invention. The method may be performed by a device for predicting equipment failures in accordance with an embodiment of the present invention. The device may be implemented in software and / or hardware. In a specific embodiment, the device may be integrated into an electronic device, such as a computer or a server. The following embodiments will be described by taking the device integrated into an electronic device as an example. Figure 4 , the method may specifically include the following steps:

[0121] Step 401, input the real-time operation data of the equipment and the corresponding real-time operation time data into a pre-trained equipment fault prediction model; wherein the equipment fault prediction model includes an abnormality score acquisition layer and a fault prediction layer, and the fault prediction layer includes a reference score generator.

[0122] Step 402 : obtaining a real-time anomaly score based on the real-time operation data and the real-time operation time data through an anomaly score obtaining layer.

[0123] Optionally, the anomaly score acquisition layer includes: a feature representation learner, a temporal feature fuser and an anomaly score learner.

[0124] Optionally, the process of obtaining the real-time anomaly score through the anomaly score acquisition layer based on the real-time operation data and the real-time operation time data includes:

[0125] Through the feature representation learner, feature extraction is performed on the input real-time operation data to obtain the real-time data features corresponding to the real-time operation data; through the time feature fusion device, based on the real-time data features and the real-time operation time data, the real-time fusion features corresponding to the real-time operation data are obtained; and through the real-time anomaly score learner, the real-time anomaly score is obtained based on the real-time fusion features.

[0126] Optionally, the time feature fuser includes a time series neural network; the process of obtaining the real-time fusion feature corresponding to the real-time operation data based on the real-time data feature and the real-time operation time data through the time feature fuser includes:

[0127] Based on the real-time running time data, multiple historical real-time data features corresponding to the real-time data features are obtained, and the real-time data generation time corresponding to the multiple historical real-time data features is before the real-time data generation time corresponding to the real-time data features; and through a time series neural network, based on the real-time data features and the multiple historical real-time data features, the real-time fusion features corresponding to the real-time running data are obtained.

[0128] Step 403, through the fault prediction layer, using the reference score generator to perform normal distribution fitting on the real-time abnormal score to obtain a real-time normal distribution, and obtain a real-time equipment fault prediction result based on the real-time normal distribution and the real-time abnormal score.

[0129] Optionally, the process of obtaining a real-time device fault prediction result based on a real-time normal distribution and a real-time anomaly score includes:

[0130] Determining a distribution center of the real-time normal distribution based on a location parameter of the real-time normal distribution;

[0131] Calculate the distance between the real-time anomaly score and the distribution center to obtain the real-time anomaly distance; and

[0132] Determine real-time equipment failure prediction results based on real-time abnormal distance.

[0133] The equipment failure prediction device provided in the embodiment of the present invention can make timely and accurate predictions on the failure status of equipment based on an equipment failure prediction model that does not rely excessively on a large amount of historical data and reflects the changes in the status of the equipment over time, thereby ensuring that corresponding production activities can be carried out safely and normally.

[0134] Figure 5 is a structural diagram of a device for training a device failure prediction model provided by an embodiment of the present invention, and the device is suitable for executing a device failure prediction model training method provided by an embodiment of the present invention. Figure 5 As shown, the device may specifically include:

[0135] The sample data input module 501 is used to input the sample operation data and the corresponding sample time data of the equipment into the equipment fault prediction model to be trained; wherein the equipment fault prediction model includes an abnormal score acquisition layer and a fault prediction layer, and the fault prediction layer includes a reference score generator. It is possible to obtain the corresponding sample abnormal score based on the sample operation data and the corresponding sample time data through the sample abnormal score acquisition layer.

[0136] Optionally, the sample anomaly score acquisition layer includes: a feature representation learner, a time feature fusion device and an anomaly score learner.

[0137] Optionally, the temporal feature fuser comprises a temporal neural network.

[0138] The sample anomaly score acquisition module 502 is used to acquire the sample anomaly score corresponding to the sample operation data based on the sample operation data and the corresponding sample time data through the sample anomaly score acquisition layer, so that the time influence factor of the operation data is introduced in the training process, so that the equipment fault prediction model obtained by training can reflect the state change of the equipment over time when performing fault prediction.

[0139] Optionally, the above-mentioned sample anomaly score acquisition module 502 can be specifically used to obtain, based on corresponding sample time data, multiple historical sample data features corresponding to the sample data features, and the sample data generation time corresponding to the multiple historical sample data features is before the sample data generation time corresponding to the sample data features; and through a time series neural network, based on the sample data features and multiple historical sample data features, obtain the sample fusion features corresponding to the sample operation data.

[0140] Optionally, the sample anomaly score acquisition module 502 can be specifically used to acquire adjacent sample data features of a sample data feature based on corresponding sample time data, where the adjacent sample data features and the sample data corresponding to the sample data features are generated at adjacent times.

[0141] A linear interpolation replacement feature corresponding to the sample data feature is determined based on adjacent sample data features.

[0142] Based on the linear interpolation replacement feature and multiple historical sample data features, the sample fusion feature corresponding to the sample data feature is obtained.

[0143] The sample prediction result acquisition module 503 is used to fit the sample abnormality score with a normal distribution through the fault prediction layer using the reference score generator to obtain the sample normal distribution, and obtain the equipment fault prediction result corresponding to the sample operation data based on the sample abnormality score and the sample normal distribution. Considering that the operation data distribution of the equipment in the big data scenario presents a normal distribution, by fitting the sample abnormality score with a normal distribution and predicting the equipment fault according to the corresponding normal distribution, it is possible to avoid excessive reliance on a large amount of historical data during training.

[0144] Optionally, the above-mentioned sample prediction result acquisition module 503 can be specifically used to determine the distribution center of the sample normal distribution based on the location parameter of the sample normal distribution; calculate the distance between the sample anomaly score and the distribution center to obtain the sample anomaly distance; and determine the equipment fault prediction result corresponding to the sample operation data based on the sample anomaly distance.

[0145] The parameter adjustment module 504 is used to determine the function value of the training loss function based on the equipment fault prediction result, and adjust the model parameters in the equipment fault prediction model according to the function value of the training loss function. In combination with modules 501 to 503, the sample anomaly score can be calculated based on the sample operation data and the corresponding sample time data corresponding to the sample operation data, and then the equipment fault prediction model can be trained, and the time influence factor of the operation data is introduced, so that the trained equipment fault prediction model can reflect the state change of the equipment over time when performing fault prediction; and considering that the distribution of the equipment operation data in the big data scenario presents a normal distribution, by fitting the sample anomaly score with a normal distribution, and performing equipment fault prediction according to the corresponding normal distribution, it is possible to avoid excessive reliance on a large amount of historical data during training.

[0146] Optionally, the parameter adjustment module 504 can be specifically used to determine the function value of the training loss function based on the standard score of the sample anomaly score, the fault prediction result and a preset standard score threshold.

[0147] Optionally, the equipment fault prediction model training device provided by an embodiment of the present invention also includes an update training module, which is used to obtain the latest historical operation data and corresponding operation time of the equipment, and obtain the latest sample operation data and corresponding sample time data respectively; and based on the latest sample operation data and corresponding sample time data, start the execution of inputting the sample operation data and corresponding sample time data of the equipment into the equipment fault prediction model to be trained.

[0148] Figure 6 is a structural diagram of a device for predicting equipment failures provided by an embodiment of the present invention, and the device is suitable for executing the device failure prediction method provided by an embodiment of the present invention. Figure 6 As shown, the device may specifically include:

[0149] The real-time data input module 601 is used to input the real-time operation data of the equipment and the corresponding real-time operation time data into a pre-trained equipment fault prediction model; wherein the equipment fault prediction model includes an abnormality score acquisition layer and a fault prediction layer, and the fault prediction layer includes a reference score generator.

[0150] The real-time anomaly score acquisition module 602 is used to acquire a real-time anomaly score based on the real-time operation data and the real-time operation time data through the anomaly score acquisition layer.

[0151] Optionally, the anomaly score acquisition layer includes: a feature representation learner, a temporal feature fuser and an anomaly score learner.

[0152] Optionally, the above-mentioned real-time anomaly score acquisition module 602 can be specifically used to extract features from the input real-time operation data through a feature representation learner to obtain real-time data features corresponding to the real-time operation data; to obtain real-time fusion features corresponding to the real-time operation data based on the real-time data features and the real-time operation time data through a time feature fuser; and to obtain a real-time anomaly score based on the real-time fusion features through a real-time anomaly score learner.

[0153] Optionally, the above-mentioned time feature fuser includes a time series neural network.

[0154] Optionally, the real-time anomaly score acquisition module 602 can be specifically used to obtain, based on real-time operation time data, multiple historical real-time data features corresponding to the real-time data feature, and the real-time data generation time corresponding to the multiple historical real-time data features is before the real-time data generation time corresponding to the real-time data feature; and to obtain, through a time series neural network, real-time fusion features corresponding to the real-time operation data based on the real-time data feature and multiple historical real-time data features.

[0155] The real-time prediction result acquisition module 603 is used to perform normal distribution fitting on the real-time abnormal score through the fault prediction layer using the reference score generator to obtain the real-time normal distribution, and obtain the real-time equipment fault prediction result based on the real-time normal distribution and the real-time abnormal score.

[0156] The equipment failure prediction device provided in the embodiment of the present invention can make timely and accurate predictions on the failure status of equipment based on an equipment failure prediction model that does not rely excessively on a large amount of historical data and reflects the changes in the status of the equipment over time, thereby ensuring that corresponding production activities can be carried out safely and normally.

[0157] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example for illustration. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the functional modules described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0158] An embodiment of the present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the device fault prediction model training method or the device fault prediction method provided in any of the above embodiments is implemented.

[0159] An embodiment of the present invention further provides a computer-readable medium having a computer program stored thereon, and when the program is executed by a processor, the device fault prediction model training method or the device fault prediction method provided in any of the above embodiments is implemented.

[0160] An embodiment of the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements the equipment fault prediction model training method or equipment fault prediction method as described in any one of the embodiments of the present invention.

[0161] Reference below Figure 7 , which shows a schematic diagram of the structure of a computer system 700 of an electronic device suitable for implementing an embodiment of the present invention. Figure 7 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0162] like Figure 7 As shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage part 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the system 700 are also stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0163] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed, so that a computer program read therefrom is installed into the storage section 708 as needed.

[0164] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 709, and / or installed from the removable medium 711. When the computer program is executed by the central processing unit (CPU) 701, the above-mentioned functions defined in the system of the present invention are executed.

[0165] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0166] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0167] The modules and / or units involved in the embodiments of the present invention may be implemented in software or hardware. The modules and / or units described may also be provided in a processor, for example, may be described as: a processor including a sample data input module, a sample anomaly score acquisition module, a sample prediction result acquisition module, and a parameter adjustment module; or, may be described as: a processor including a real-time data input module, a real-time anomaly score acquisition module, and a real-time prediction result acquisition module. The names of these modules do not, in some cases, constitute limitations on the modules themselves.

[0168] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently and not be assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: inputting the sample operation data and the corresponding sample time data of the device into the device fault prediction model to be trained; wherein the device fault prediction model includes an abnormal score acquisition layer and a fault prediction layer, and the fault prediction layer includes a reference score generator; through the sample abnormal score acquisition layer, based on the sample operation data and the corresponding sample time data, the sample abnormal score corresponding to the sample operation data is obtained; through the fault prediction layer, the sample abnormal score is fitted with a normal distribution using the reference score generator to obtain a sample normal distribution, and the device fault prediction result corresponding to the sample operation data is obtained based on the sample abnormal score and the sample normal distribution; and the function value of the training loss function is determined based on the device fault prediction result, and the model parameters in the device fault prediction model are adjusted according to the function value of the training loss function.

[0169] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for training a device failure prediction model, characterized in that: include: Inputting sample operation data and corresponding sample time data of the equipment into the equipment fault prediction model to be trained; wherein the equipment fault prediction model includes an abnormality score acquisition layer and a fault prediction layer, and the fault prediction layer includes a reference score generator; Acquire, through the sample anomaly score acquisition layer, a sample anomaly score corresponding to the sample operation data based on the sample operation data and the corresponding sample time data; By means of the fault prediction layer, the reference score generator is used to perform normal distribution fitting on the sample abnormality score to obtain a sample normal distribution, and based on the sample abnormality score and the sample normal distribution, an equipment fault prediction result corresponding to the sample operation data is obtained; and The function value of the training loss function is determined based on the equipment failure prediction result, and the model parameters in the equipment failure prediction model are adjusted according to the function value of the training loss function.

2. The equipment failure prediction model training method according to claim 1, characterized in that: The sample anomaly score acquisition layer includes: a feature representation learner, a time feature fusion device and an anomaly score learner; The acquiring, through the sample anomaly score acquisition layer, a sample anomaly score corresponding to the sample operation data based on the sample operation data and the corresponding sample time data, comprises: By using the feature representation learner, feature extraction is performed on the input sample operation data to obtain sample data features corresponding to the sample operation data; Obtaining, by the time feature fuser, a sample fusion feature corresponding to the sample operation data based on the sample data feature and the corresponding sample time data; and The sample anomaly score is obtained based on the sample fusion feature through the sample anomaly score learner.

3. The equipment failure prediction model training method according to claim 2, characterized in that: The temporal feature fusion device comprises a temporal neural network; The acquiring, based on the sample data feature and the corresponding sample time data, a sample fusion feature corresponding to the sample operation data includes: Based on the corresponding sample time data, acquiring a plurality of historical sample data features corresponding to the sample data feature, wherein the sample data generation time corresponding to the plurality of historical sample data features is before the sample data generation time corresponding to the sample data feature; and Through the time series neural network, based on the sample data features and the multiple historical sample data features, the sample fusion features corresponding to the sample operation data are obtained.

4. The equipment failure prediction model training method according to claim 3 is characterized in that: The obtaining, through the time series neural network, a sample fusion feature corresponding to the sample operation data based on the sample data feature and the plurality of historical sample data features, comprises: Based on the corresponding sample time data, acquiring adjacent sample data features of the sample data features, where the adjacent sample data features and the sample data corresponding to the sample data features are adjacent in generation time; Determining a linear interpolation replacement feature corresponding to the sample data feature based on the adjacent sample data feature; and Based on the linear interpolation replacement feature and the multiple historical sample data features, the sample fusion feature corresponding to the sample data feature is obtained.

5. The equipment failure prediction model training method according to claim 1, characterized in that: The obtaining, based on the sample abnormality score and the sample normal distribution, a device fault prediction result corresponding to the sample operation data includes: Determining a distribution center of the sample normal distribution based on a location parameter of the sample normal distribution; Calculating the distance between the sample anomaly score and the distribution center to obtain a sample anomaly distance; and An equipment failure prediction result corresponding to the sample operation data is determined based on the sample abnormality distance.

6. The equipment failure prediction model training method according to claim 1, characterized in that: The determining the function value of the training loss function based on the equipment failure prediction result includes: The function value of the training loss function is determined based on the standard score of the sample anomaly score, the equipment failure prediction result and a preset standard score threshold.

7. The equipment failure prediction model training method according to claim 1, characterized in that: Also included: The latest historical operation data and corresponding operation time of the equipment are respectively obtained, and the latest sample operation data and corresponding sample time data are obtained accordingly; and based on the latest sample operation data and corresponding sample time data, the sample operation data and corresponding sample time data of the equipment are input into the equipment fault prediction model to be trained.

8. A method for predicting equipment failure, characterized in that: include: Inputting the real-time operation data of the device and the corresponding real-time operation time data into a pre-trained device fault prediction model; wherein the device fault prediction model includes an anomaly score acquisition layer and a fault prediction layer, and the fault prediction layer includes a reference score generator; Acquire a real-time anomaly score based on the real-time operation data and the real-time operation time data through the anomaly score acquisition layer; and Through the fault prediction layer, the real-time abnormal score is fitted with a normal distribution using the reference score generator to obtain a real-time normal distribution, and a real-time equipment fault prediction result is obtained based on the real-time normal distribution and the real-time abnormal score.

9. A device for training equipment failure prediction models, characterized in that: include: A sample data input module, used to input the sample operation data and corresponding sample time data of the equipment into the equipment fault prediction model to be trained; wherein the equipment fault prediction model includes an abnormal score acquisition layer and a fault prediction layer, and the fault prediction layer includes a reference score generator; A sample anomaly score acquisition module, configured to acquire, through the sample anomaly score acquisition layer, a sample anomaly score corresponding to the sample operation data based on the sample operation data and the corresponding sample time data; A sample prediction result acquisition module, configured to perform normal distribution fitting on the sample abnormality score by using the reference score generator through the fault prediction layer to obtain a sample normal distribution, and obtain a device fault prediction result corresponding to the sample operation data based on the sample abnormality score and the sample normal distribution; and A parameter adjustment module is used to determine the function value of the training loss function based on the equipment fault prediction result, and adjust the model parameters in the equipment fault prediction model according to the function value of the training loss function.

10. A device for predicting equipment failure, characterized in that: include: A real-time data input module, used to input the real-time operation data of the device and the corresponding real-time operation time data into a pre-trained device fault prediction model; wherein the device fault prediction model includes an abnormality score acquisition layer and a fault prediction layer, and the fault prediction layer includes a reference score generator; a real-time anomaly score acquisition module, configured to acquire a real-time anomaly score based on the real-time operation data and the real-time operation time data through the anomaly score acquisition layer; and The real-time prediction result acquisition module is used to perform normal distribution fitting on the real-time abnormal score through the fault prediction layer using the reference score generator to obtain a real-time normal distribution, and obtain a real-time equipment fault prediction result based on the real-time normal distribution and the real-time abnormal score.

11. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the equipment failure prediction model training method as described in any one of claims 1 to 7 is implemented, or when the processor executes the program, the equipment failure prediction method as described in claim 8 is implemented.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the device failure prediction model training method as described in any one of claims 1 to 7 is implemented, or when the program is executed by a processor, the device failure prediction method as described in claim 8 is implemented.

13. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the equipment failure prediction model training method as described in any one of claims 1 to 7, or the computer program implements the equipment failure prediction method as described in claim 8 when the computer program is executed by a processor.