Arrester resistive current prediction method and system based on Bayesian optimization deep neural network

Through the method of Bayesian optimized deep neural network combined with single-class support vector machine, the problem of inaccurate prediction of arrester resistive current is solved, the mutual influence of environmental factors is taken into consideration, the prediction accuracy and calculation efficiency are improved, and the accuracy of the prediction is ensured. Effective monitoring of arrester operating status.

CN118551183BActive Publication Date: 2024-10-11NANJING ADMITTANCE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411019847.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-29
Publication Date
2024-10-11
Estimated Expiration
2044-07-29

AI Technical Summary

Technical Problem

It is difficult to accurately predict arrester resistive current with existing technology, especially when environmental factors change. The calculation formula has poor practicality, and the interaction between environmental factors is not effectively considered.

Method used

A method based on Bayesian optimization of deep neural networks is used to collect arrester leakage current and environmental factor data, perform Fourier decomposition to obtain three-phase angle difference data, use single-class support vector machines to screen abnormal data, and build a deep neural network prediction model. , and optimize the prediction model hyperparameters through Bayesian algorithm and iterative training to achieve accurate prediction of resistive current.

Benefits of technology

Significantly improves the accuracy and calculation efficiency of resistive current prediction, reduces unnecessary calculations, speeds up model training, reduces the risk of over-fitting, improves the generalization ability and robustness of the model, and ensures Accurate monitoring of arrester operating status.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118551183B_ABST
    Figure CN118551183B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and system for predicting the resistive current of a lightning arrester based on a Bayesian optimization deep neural network, comprising the following steps: collecting the three-phase angle difference data and environmental factor data of the lightning arrester; using an unsupervised anomaly detection method to screen the abnormal data and eliminate erroneous data information; using the phase angle difference and environmental factor data as input quantities and the resistive current data as output quantities, using a deep neural network to construct a prediction model, and at the same time, using Bayesian optimization of the network model hyperparameters; predicting the resistive current data according to the model and performing model evaluation. The present invention solves the problem of inaccurate prediction of the resistive current of the lightning arrester, using a single-class support vector machine method to effectively eliminate abnormal data and provide an accurate data basis for the model, and using a Bayesian optimizer to select the optimal hyperparameters to improve the accuracy of the deep neural network model in predicting the resistive current, thereby ensuring the effectiveness of predicting the operating state of the lightning arrester and maintaining the safety of power grid operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of arrester current prediction, and in particular relates to a method and system for predicting arrester resistive current based on a Bayesian optimized deep neural network. Background Art

[0002] The leakage current data of the arrester online monitoring is easily affected by the surrounding environmental factors. Excessive humidity will cause large errors in the test of the arrester insulation parameters, and the leakage current on the insulation surface of the equipment will increase significantly; the increase in ambient temperature will cause the temperature of the resistor valve in the arrester to rise, and the leakage resistive component will also increase. According to statistics, the resistive current changes by about 75% for every 35°C increase in ambient temperature; when the pressure of the insulating gas in the arrester porcelain sleeve is consistent with the atmospheric pressure, moisture will enter the porcelain sleeve, causing the arrester to be damp, and the atmospheric pressure is negatively correlated with the leakage current and resistive current. Therefore, external environmental factors have a direct and important impact on the prediction of the arrester resistive current.

[0003] At present, most prediction methods will analyze each environmental factor as a single variable and resistive current to obtain the corresponding calculation formula, which makes it difficult to accurately predict the operating status of the arrester; when the environment changes, the practicality of the calculation formula will also deteriorate. In fact, environmental factors also have mutual influences, and environmental factors should be considered as the impact of the overall analysis on the arrester. Summary of the invention

[0004] The present invention provides a method and system for predicting the resistive current of a lightning arrester based on a Bayesian optimization deep neural network, which effectively realizes the prediction of the resistive current of the lightning arrester and solves the problem that it is difficult to predict the resistive current of the lightning arrester based on external environmental factors.

[0005] The technical solution to achieve the purpose of the present invention is:

[0006] A method for predicting resistive current of a lightning arrester based on a Bayesian optimization deep neural network comprises the following steps:

[0007] S1: Collect the arrester leakage current and environmental factor data, perform Fourier decomposition on the collected leakage current data, and obtain the three-phase angle difference data;

[0008] S2: Use the single-class support vector machine method to filter abnormal data and remove the collected erroneous data information as the data training set;

[0009] S3: Using the screened three-phase angle difference data and environmental factor data as input and the resistive current data as output, a prediction model of a deep neural network is constructed;

[0010] S4: Based on the data training set, the Bayesian algorithm is used to optimize the hyperparameters of the prediction model and iteratively train the prediction model;

[0011] S5: Predict the resistive current data through the prediction model completed by iterative optimization.

[0012] Furthermore, the step S2 specifically includes the steps of:

[0013] S21: Train a single-class support vector machine model for single-class learning, where the class label variable is a vector of all zeros;

[0014] S22: Specify the kernel function type and outlier ratio;

[0015] S23: Perform outlier detection on the environmental factor data and the phase angle difference data in turn according to the single-class support vector machine model.

[0016] Furthermore, the environmental factor data includes temperature, relative humidity and atmospheric pressure.

[0017] Furthermore, the deep neural network includes an input layer, two or more hidden layers, and an output layer. When the prediction model is iteratively trained, it includes:

[0018] For each sample, a forward propagation is performed, from the input layer to the first hidden layer to the Nth hidden layer in turn, and the output value of each neuron from each hidden layer to the output layer is calculated in turn through a nonlinear activation function;

[0019] Design the objective function to find the error between the output layer of the training set and the expected output value;

[0020] Through the back-propagation algorithm, the error of each layer of the network is calculated backwards, and the stochastic gradient descent method is used to update the weights and thresholds to minimize the objective function until the model training is completed.

[0021] Furthermore, the objective function is:

[0022]

[0023]

[0024] is the loss function of the k-th data, is the actual resistive current value, is the output resistive current value, is the L2 regularization strength, N is the amount of training set data, is the number of neurons.

[0025] Furthermore, the updating formula of the weight and threshold is:

[0026]

[0027] in, , is the updated value, , is the weight and threshold before updating, N is the amount of training set data, is the learning rate.

[0028] Furthermore, the hyperparameters include: model depth d, number of neurons in each layer m, activation function type , number of iterations T, regularization strength lambda and learning rate ; The activation function Including ReLU, Sigmoid and Tanh functions.

[0029] Furthermore, the Bayesian algorithm is used to optimize the hyperparameters of the prediction model, and the iterative training of the prediction model specifically includes:

[0030] S41, defining the value space of the optimized hyperparameter H and the cross-validation objective function Q of the deep neural network;

[0031] S42, start the t-iteration search process, and select a new hyperparameter combination in each iteration , and train the prediction model on the training set to obtain the corresponding cross-validation objective function value , establish the search space ;

[0032] S43. Assume a probabilistic proxy model to estimate the function between H and Q and calculate the mean , confidence intervals, and updating the Bayesian algorithm at the same time;

[0033] S44. Design acquisition function , determine its maximum value , get the next hyperparameter combination , update the hyperparameter search space ;

[0034] S45, repeat steps S42 to S44, and when the maximum number of iterations T is reached, terminate the search process;

[0035] S46. When the search process is terminated, the hyperparameter combination with the best performance is obtained , this hyperparameter combination is used for the prediction model.

[0036] Furthermore, the acquisition function is:

[0037]

[0038]

[0039]

[0040] in, is the posterior mean of the time series Gaussian process model, , denote the mean and variance of Gaussian process regression, respectively. For an existing search space The best result, is the cumulative probability distribution function, is the probability density function.

[0041] A system for implementing the arrester resistive current prediction method includes a data acquisition unit, an acquisition data processing unit, a prediction model construction unit, a prediction model training optimization unit, a model evaluation unit and a resistive current data prediction unit, wherein:

[0042] The data acquisition unit is used to collect the arrester leakage current and environmental factor data, and perform Fourier decomposition on the collected leakage current data to obtain three-phase angle difference data;

[0043] The collected data processing unit uses an unsupervised anomaly detection method to filter out abnormal data and eliminate the collected erroneous data information;

[0044] The prediction model building unit uses the screened three-phase angle difference data and environmental factor data as input and the resistive current data as output to build a prediction model of a deep neural network;

[0045] The prediction model training optimization unit uses a Bayesian algorithm to iteratively train network model hyperparameters;

[0046] The model evaluation unit is used to evaluate whether the optimized prediction model meets the conditions;

[0047] The resistive current data prediction unit predicts the resistive current data using a prediction model that meets the conditions.

[0048] Compared with the prior art, the beneficial effects of the present invention are as follows: the beneficial effects of the present invention are mainly reflected in improving the accuracy of resistive current prediction and optimizing calculation efficiency. The use of a single-class support vector machine for outlier detection can effectively avoid the impact of erroneous data on resistive current calculation; by using Bayesian optimization to optimize the hyperparameters of the deep neural network, accurate prediction of resistive current data can be achieved, which can significantly improve prediction accuracy, reduce unnecessary calculations, and speed up model training; at the same time, since Bayesian optimization can take into account the uncertainty of the model, the present invention can also reduce the risk of overfitting and improve the generalization ability and robustness of the model. It plays an important role in maintaining the operating status of the arrester. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 The present invention is a flow chart of a method for predicting resistive current of a lightning arrester based on a Bayesian optimized deep neural network.

[0050] Figure 2 This is a comparison chart of the temperature, humidity, and atmospheric pressure of a specific embodiment of the present invention before and after the outliers are removed by the OCSVM method.

[0051] Figure 3 This is a comparison diagram of the three-phase angle difference in a specific embodiment of the present invention before and after the outliers are eliminated by the OCSVM method.

[0052] Figure 4 This is a comparison result diagram of the prediction value and the actual value of the prediction set in a specific embodiment of the present invention. DETAILED DESCRIPTION

[0053] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments.

[0054] like Figure 1 As shown, a lightning arrester resistive current prediction method based on Bayesian optimization deep neural network specifically includes:

[0055] Step S1, collecting arrester leakage current and environmental factor data, performing Fourier decomposition on the collected leakage current data, and obtaining three-phase angle difference data.

[0056] Step S2, using an unsupervised anomaly detection method (single-class support vector machine) to screen abnormal data and eliminate the collected erroneous data information, specifically including: performing outlier detection on temperature, humidity, atmospheric pressure, and phase difference data in turn, selecting a single-class support vector machine method (OCSVM), OCSVM assumes that the origin is the only abnormal point, and seeks an optimal hyperplane to separate the target class sample and the origin with the maximum interval; first, train the OCSVM model for single-class learning, in which the class label variable is a vector of all 0s, and specify the kernel function type and the proportion of abnormal values; finally, detect abnormal values ​​according to the model.

[0057] Step S3, using the angle difference data and the environmental factor data as input, and the resistive current data as output, configuring the neural network parameters, using the deep neural network to build a prediction model, and at the same time, using Bayesian optimization of the network model hyperparameters; training the network model and predicting the resistive current data;

[0058] The steps of constructing the prediction model of the Bayesian optimization deep neural network include:

[0059] S31: Divide the training set and prediction set according to the ratio, and perform data normalization; according to the construction principle of deep neural network, build the input layer, 2 or more hidden layers and output layer. The input layer is the three-phase angle difference θ, temperature T, relative humidity RH, atmospheric pressure Pa, and the output layer is the resistive current data. ;

[0060] S32: Input the training set, use Bayesian optimization hyperparameters, build a deep neural network model, initialize the weight W and threshold b; perform a forward propagation for each sample, from the input layer to the first hidden layer, the second hidden layer, etc., and calculate the output value of each neuron from each layer to the output layer in turn through the nonlinear activation function;

[0061] Among them, the output of the i-th neuron in the first hidden layer is , the output of the jth neuron with a model depth of D is .

[0062] S33: According to the objective function (including the loss function part and the L2 regularization part), the error between the output layer of the training set and the expected output value is calculated;

[0063] Among them, the loss function of the kth data is , is the actual resistive current value, is the output resistive current value; the objective function is , is the L2 regularization strength, N is the amount of training set data, is the number of neurons.

[0064] S34: Through the back propagation algorithm, the error of each layer is calculated backward, and the stochastic gradient descent method is used to update the weights and thresholds to minimize the objective function, that is, , until the model training is completed;

[0065] Among them, according to the idea of ​​stochastic gradient descent, the derivative of the objective function can be obtained:

[0066]

[0067] The update formula of threshold and weight is:

[0068]

[0069] S35: The prediction set is brought into the successfully trained model for prediction, and then denormalized to obtain the predicted output value.

[0070] The Bayesian optimization hyperparameters specifically include:

[0071] Bayesian optimization hyperparameters include: model depth d, number of neurons in each layer m, activation function type , number of iterations T, regularization strength lambda, learning rate Etc. The activation function The types include ReLU, Sigmoid and Tanh functions.

[0072] The specific process of using Bayesian optimization of network model hyperparameters includes:

[0073] S41, defining the value space of the optimized hyperparameter H and the K-fold cross-validation objective function Q of the deep neural network;

[0074] S42, start the t-iteration search process, each iteration will select a new hyperparameter combination , and train the neural network on the training set to obtain the corresponding cross-validation objective function value , establish the search space ;

[0075] S43. Assume a probabilistic proxy model to estimate the function between H and Q. Generally, Gaussian process regression (GP) is used as a prior function to model the unknown distribution of the function and calculate the mean. , confidence intervals, and update the model of the Bayesian optimization algorithm;

[0076] S44. Define the acquisition function , determine its maximum value , is the next hyperparameter combination , update the hyperparameter search space ;

[0077] The acquisition function includes an upper confidence bound (UCB), a probability improvement (PI), and an expected improvement (EI). The present invention uses the expected improvement per second (EIPS) as the acquisition function:

[0078]

[0079]

[0080]

[0081] in, is the posterior mean of the time series Gaussian process model, , denote the mean and variance of Gaussian process regression, respectively. For an existing search space The best result, is the cumulative probability distribution function (CDF), is the probability density function (PDF);

[0082] Repeat steps S42 to S44 until the maximum number of iterations T is reached, and then terminate the search process; when the search process is terminated, return the hyperparameter combination with the best performance , this combination can be used to train the final deep neural network model.

[0083] Step S5, calculate the mean square error (MSE) and root mean square error (RMSE) of the prediction set to evaluate the network model.

[0084] This embodiment also provides a lightning arrester resistive current prediction system based on Bayesian optimization deep neural network, including a data acquisition unit, an acquisition data processing unit, a prediction model construction unit, a prediction model training optimization unit, a model evaluation unit and a resistive current data prediction unit, wherein:

[0085] The data acquisition unit is used to collect the arrester leakage current and environmental factor data, and perform Fourier decomposition on the collected leakage current data to obtain three-phase angle difference data;

[0086] The collected data processing unit uses an unsupervised anomaly detection method to filter out abnormal data and eliminate the collected erroneous data information;

[0087] The prediction model building unit uses the screened three-phase angle difference data and environmental factor data as input and the resistive current data as output to build a prediction model of a deep neural network;

[0088] The prediction model training optimization unit uses a Bayesian algorithm to iteratively train network model hyperparameters;

[0089] The model evaluation unit is used to evaluate whether the optimized prediction model meets the conditions;

[0090] The resistive current data prediction unit predicts the resistive current data using a prediction model that meets the conditions.

[0091] Example 1

[0092] This embodiment proposes a method for predicting the resistive current of a lightning arrester based on a Bayesian optimization deep neural network. The specific process is as follows:

[0093] S1. Get data

[0094] In this embodiment, leakage current phase angle difference data, temperature, humidity, atmospheric pressure data and resistive current data are obtained through an online monitoring system of a lightning arrester in a certain substation;

[0095] S2. Abnormal data screening

[0096] When the arrester transmits data online, erroneous data information may appear, which interferes with the normal judgment of the arrester's operating status. The present invention uses the single-class support vector machine (OCSVM) in the unsupervised anomaly detection method to filter abnormal data, and performs outlier detection on temperature, humidity, atmospheric pressure, and phase difference data in turn; the OCSVM method uses an abnormal ratio (the ratio of the specified abnormal value in this embodiment is 0.02) to control the upper limit of the abnormal point ratio. If any abnormal information appears in the data, the entire data is removed and not included in the model prediction; Figure 2 and Figure 3 As shown, the results of the screening of the environmental factors and the three-phase angle difference constants show that a part of the erroneous values ​​that change more than 5 degrees at similar moments are eliminated from the three-phase angle difference, and some abnormally changing values ​​are also eliminated from the environmental factors.

[0097] S3. Model prediction

[0098] Taking environmental factors (temperature, humidity, atmospheric pressure) and angle difference data as input, and resistive current as output, a double hidden layer BP neural network is established according to the construction principle of multi-hidden layer BP neural network, including input layer, hidden layer and output layer. The input layer is composed of three-phase angle difference, temperature T, relative humidity RH, atmospheric pressure Pa X=[ x 1 , x 2 ,⋯⋯ ,x n ] ,in ; The output layer is resistive current ,in y=[ I r ] ; Set the training set to 730 data and the prediction set to 183 data, perform maximum and minimum normalization on the data, set the number of input layers to 6 and the number of output layers to 1, the training function to be the gradient descent method, the number of iterations to 1000, and the minimum error of the training target to .

[0099] S4. Bayesian Optimization Model

[0100] The number of iterations of Bayesian optimization deep neural network is T=30, and the hyperparameters are set The domain of definition, model depth And the number of neurons in each layer , activation function type , regularization strength l=[0, 0.01] ; The 5-fold cross-validation objective function value Q is the deep neural network objective function: the loss function part and the L2 regularization part; by randomly selecting the initial observation point , establish a Gaussian process regression function based on the existing search space and calculate the mean and covariance ; Take the maximum value of the acquisition function as the next observation point Join Search Space , each time a new hyperparameter is found, the deep neural network model needs to be rebuilt and the next observation value needs to be updated until the number of iterations ends; Figure 4 As shown, find the hyperparameter combination Make the objective function value minimum, then the model depth , the first hidden layer of the double hidden layer is 5, the second hidden layer is 1, the activation function type is Tanh, and the regularization strength is 0.00149.

[0101] S5. Model prediction results

[0102] According to the combination of hyperparameters Input the training set to build a two-layer deep neural network, input the prediction set to predict the model, and perform denormalization to obtain the predicted output value ,The prediction results are shown in Table 1. The error is less than 2%, which shows that the model can accurately predict the arrester resistive current.

[0103] Table 1. Results of resistive current prediction set

[0104]

[0105] S6. Model Evaluation

[0106] Evaluate the deep neural network model and calculate the predicted output value of the two-layer neural network model Expected output The mean square error (MSE), root mean square error (RMSE), and coefficient of determination ( ), the specific results are shown in Table 2. The determination coefficient is greater than 0.8, which shows that the constructed double hidden layer neural network model is better. The method used in the present invention can accurately predict the arrester resistive current data, which plays an important role in online monitoring of the health status of the arrester.

[0107] Table 2 Model evaluation parameter results

[0108]

[0109] The present invention solves the problem of inaccurate prediction of the resistive current of the arrester. The single-class support vector machine method can effectively eliminate abnormal data and provide an accurate data basis for the model. The Bayesian optimizer is used to select the optimal hyperparameters to improve the accuracy of the deep neural network model in predicting the resistive current, thereby ensuring the effectiveness of predicting the operating status of the arrester and maintaining the safe operation of the power grid.

[0110] Finally, it should be noted that it is obvious to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential features of the present invention. Therefore, the embodiments should be regarded as exemplary and non-restrictive in all respects.

Claims

1. A method for predicting resistive current of a lightning arrester based on a Bayesian optimization deep neural network, characterized in that: Includes steps: S1: Collect the arrester leakage current and environmental factor data, perform Fourier decomposition on the collected leakage current data, and obtain the three-phase angle difference data; S2: Use the single-class support vector machine method to filter abnormal data and remove the collected erroneous data information as the data training set; S3: Using the screened three-phase angle difference data and environmental factor data as input and the resistive current data as output, a prediction model of a deep neural network is constructed; S4: Based on the data training set, the Bayesian algorithm is used to optimize the hyperparameters of the prediction model and iteratively train the prediction model; S5: Predict the resistive current data through the prediction model completed by iterative optimization.

2. The method for predicting arrester resistive current based on Bayesian optimization deep neural network according to claim 1 is characterized in that: The step S2 specifically includes the following steps: S21: Train a single-class support vector machine model for single-class learning, where the class label variable is a vector of all zeros; S22: Specify the kernel function type and outlier ratio; S23: Perform outlier detection on the environmental factor data and the phase angle difference data in turn according to the single-class support vector machine model.

3. The method for predicting arrester resistive current based on Bayesian optimization deep neural network according to claim 1 is characterized in that: The environmental factor data include temperature, relative humidity and atmospheric pressure.

4. The method for predicting arrester resistive current based on Bayesian optimization deep neural network according to claim 1 is characterized in that: The deep neural network includes an input layer, two or more hidden layers, and an output layer. When the prediction model is iteratively trained, it includes: For each sample, a forward propagation is performed, from the input layer to the first hidden layer to the Nth hidden layer in turn, and the output value of each neuron from each hidden layer to the output layer is calculated in turn through a nonlinear activation function; Design the objective function to find the error between the output layer of the training set and the expected output value; Through the back-propagation algorithm, the error of each layer of the network is calculated backwards, and the stochastic gradient descent method is used to update the weights and thresholds to minimize the objective function until the model training is completed.

5. The method for predicting arrester resistive current based on Bayesian optimization deep neural network according to claim 4 is characterized in that: The objective function is: ; ; is the loss function of the k-th data, is the actual resistive current value, is the output resistive current value, is the L2 regularization strength, N is the amount of training set data, is the number of neurons.

6. The method for predicting arrester resistive current based on Bayesian optimization deep neural network according to claim 5 is characterized in that: The updating formula of the weight and threshold is: ; in, , is the updated value, , is the weight and threshold before updating, N is the amount of training set data, is the learning rate.

7. The method for predicting arrester resistive current based on Bayesian optimization deep neural network according to claim 3 is characterized in that: The hyperparameters include: model depth d, number of neurons in each layer m, activation function type , number of iterations T, regularization strength lambda and learning rate ; The activation function Including ReLU, Sigmoid and Tanh functions.

8. The method for predicting arrester resistive current based on Bayesian optimization deep neural network according to claim 1, characterized in that: The Bayesian algorithm is used to optimize the hyperparameters of the prediction model, and the iterative training of the prediction model specifically includes: S41, defining the value space of the optimized hyperparameter H and the cross-validation objective function Q of the deep neural network; S42, start the t-iteration search process, and select a new hyperparameter combination in each iteration , and train the prediction model on the training set to obtain the corresponding cross-validation objective function value , establish the search space ; S43. Assume a probabilistic proxy model to estimate the function between H and Q and calculate the mean , confidence intervals, and updating the Bayesian algorithm at the same time; S44. Design acquisition function , determine its maximum value , get the next hyperparameter combination , update the hyperparameter search space ; S45, repeat steps S42 to S44, and when the maximum number of iterations T is reached, terminate the search process; S46. When the search process is terminated, the hyperparameter combination with the best performance is obtained , this hyperparameter combination is used for the prediction model.

9. The method for predicting arrester resistive current based on Bayesian optimization deep neural network according to claim 8, characterized in that: The acquisition function is: ; ; ; in, is the posterior mean of the time series Gaussian process model, , denote the mean and variance of Gaussian process regression, respectively. For an existing search space The best result, is the cumulative probability distribution function, is the probability density function.

10. A system for implementing the arrester resistive current prediction method according to any one of claims 1 to 9, characterized in that: It includes a data acquisition unit, an acquisition data processing unit, a prediction model construction unit, a prediction model training optimization unit, a model evaluation unit and a resistive current data prediction unit, wherein: The data acquisition unit is used to collect the arrester leakage current and environmental factor data, and perform Fourier decomposition on the collected leakage current data to obtain three-phase angle difference data; The collected data processing unit uses an unsupervised anomaly detection method to filter out abnormal data and eliminate the collected erroneous data information; The prediction model building unit uses the screened three-phase angle difference data and environmental factor data as input and the resistive current data as output to build a prediction model of a deep neural network; The prediction model training optimization unit uses a Bayesian algorithm to iteratively train network model hyperparameters; The model evaluation unit is used to evaluate whether the optimized prediction model meets the conditions; The resistive current data prediction unit predicts the resistive current data using a prediction model that meets the conditions.