An improved BP neural network method for predicting shaft temperature level

Through the improved BP neural network method, combined with the Pearson correlation coefficient method and K-fold cross-validation, and using the residual block to build a model, the problem of low accuracy of the infrared axle temperature detection system is solved, and the accuracy and generalization of the axle temperature detection are improved. ization ability.

CN115017810BActive Publication Date: 2024-09-27SHANGHAI INST OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210655090.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-10
Publication Date
2024-09-27
Estimated Expiration
2042-06-10

AI Technical Summary

Technical Problem

The infrared shaft temperature detection system has low accuracy and high false alarm rate when detecting shaft temperature, which cannot meet the needs of practical applications.

Method used

Using the improved BP neural network method, by confirming the criteria for judging the shaft temperature level, processing the data, building a neural network for detecting the shaft temperature level, and using the Pearson correlation coefficient method to screen features, combined with K-fold cross-validation and residual block construction model to improve prediction accuracy.

Benefits of technology

It improves the accuracy of shaft temperature detection, slows down the over-fitting phenomenon of the model, enhances the generalization ability, solves the problem of insufficient data and vanishing gradient, and improves the prediction accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115017810B
    Figure CN115017810B
Patent Text Reader

Abstract

The present invention discloses a method for predicting axle temperature level using an improved BP neural network, comprising step 1: confirming the axle temperature level judgment standard; step 2: processing the collected data; and step 3: building a neural network for detecting the axle temperature level and verifying it. The present invention uses the axle temperature data directly measured by the sensor and the features obtained by the Pearson correlation coefficient method as inputs of the BP neural network at the same time, and provides a method for solving the overfitting phenomenon of the BP neural network caused by insufficient data for some axle temperature levels by performing K-fold cross-validation on the collected data, and a method for solving the phenomenon that the gradient becomes very small or disappears due to deepening the network depth by using a residual block, thereby further improving the prediction accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of shaft temperature detection, and in particular to a method for predicting shaft temperature levels using an improved BP neural network. Background Art

[0002] The hot axle prediction system of the infrared axle temperature detection system (Trace Hotbox Detection System, THDS for short) collects data from the detection device installed on one side of the track, and uses radiation measurement technology to monitor the axle temperature in real time, and then detects possible bearing faults in the vehicle to ensure the safety of train driving. However, in actual application, the fulfillment rate of infrared prediction is still low and the false alarm rate is high. This is because the train has complex hot axle discrimination, and many external environmental factors will affect the axle temperature discrimination. Therefore, THDS determines the critical point of axle temperature discrimination based on experience, which cannot meet the needs of actual application.

[0003] However, the application of BP neural network in the field of shaft temperature detection has the following advantages:

[0004] Self-learning and adaptive capabilities: Ability to automatically extract "reasonable rules" between output and output data through learning, and adaptively memorize the learning content in the network weights.

[0005] High generalization ability: When designing a pattern classifier, it is necessary to consider whether the network can correctly classify the required classification objects, and whether the network can correctly classify unseen patterns or patterns with noise pollution after training. In other words, the BP neural network has the ability to apply learning results to new knowledge.

[0006] Higher fault tolerance: When local or partial neurons of the BP neural network are damaged, the overall training results will not be greatly affected, that is, even if the system is partially damaged, it can still work normally. That is, the BP neural network has a certain fault tolerance. Summary of the invention

[0007] In order to overcome the deficiencies in the prior art, the present invention provides an improved BP neural network method for predicting shaft temperature levels, which solves the problem of low detection accuracy of the infrared shaft temperature detection system (THDS) hot box in the prior art.

[0008] In order to achieve the above-mentioned invention object, the technical solution adopted to solve the technical problem is as follows:

[0009] An improved BP neural network method for predicting shaft temperature level includes the following steps:

[0010] Step 1: Confirm the shaft temperature grade judgment standard;

[0011] Step 2: Process the collected data;

[0012] Step 3: Build a neural network to detect the shaft temperature level and verify it.

[0013] Furthermore, the step 1 specifically includes the following contents:

[0014] The normal range of bearing temperature should be below 40 degrees Celsius;

[0015] Greater than 40 degrees Celsius but less than 60 degrees Celsius is a mild fever level;

[0016] Greater than or equal to 60 degrees Celsius but less than 75 degrees Celsius is a strong heat level;

[0017] Greater than or equal to 75 degrees Celsius is the extreme heat level.

[0018] Furthermore, the specific steps of step 2 are as follows:

[0019] Step 2.1: Get the bearing temperature;

[0020] Step 2.2: Confirm the method of selecting features and select features;

[0021] Step 2.3: Process the collected bearing temperatures and related features to obtain training sets and validation sets.

[0022] Furthermore, the step 2.1 specifically includes the following contents:

[0023] THDS is used to collect data from the detection device installed on one side of the track, and the axle temperature is monitored in real time using radiation measurement technology. The thermistor in the infrared probe converts the received heat energy into a voltage signal, and the axle temperature of the train is obtained based on the corresponding voltage amplitude temperature table.

[0024] Furthermore, the step 2.2 specifically includes the following contents:

[0025] The Pearson correlation coefficient method is used to determine the correlation coefficient γ between the collected features related to the shaft temperature. The range of γ is [-1, 1]. The larger the correlation coefficient γ is, the greater the correlation between the feature and the shaft temperature is. Using this method, some features in the sample set that are irrelevant to or have a weak relationship with the target feature are continuously removed through comparison, thereby eliminating data that does not contribute to the solution of the target problem or even interferes with it. The solution formula of the Pearson correlation coefficient is as follows:

[0026]

[0027] Among them, N represents the number of feature samples, y i is the ith shaft temperature, x iis the eigenvalue of the i-th order;

[0028] Select the six characteristics of train running speed, load, outside temperature, train running status, train type, and train running time.

[0029] Furthermore, the step 2.3 specifically includes the following contents:

[0030] Since there is less data on the strong heat and extreme heat levels of the train's axle temperature, but the number of samples of the four levels in the training data required to build the BP neural network model should be similar, our training data has fewer samples, and using a deeper BP neural network will result in overfitting. Therefore, the K-fold cross-validation method is used here to select the training data set and the validation data set, thereby reducing the overfitting phenomenon of the model and improving the generalization ability of the entire model.

[0031] Furthermore, the specific steps of step 3 are as follows:

[0032] Step 3.1: Construct a residual block;

[0033] Step 3.2: Build the entire residual network;

[0034] Step 3.3: Construct evaluation metrics for the model and fine-tune and validate the model.

[0035] Furthermore, the step 3.1 specifically includes the following contents:

[0036] When training the model, as the network depth reaches a certain level, the gradient disappears. The residual block is similar to the feedforward feedback in the automatic control system. The data X, X∈R m*n , m represents the number of samples, n can be regarded as the number of neurons in the input layer of the residual block, and X has two directions. One is to directly obtain the output Y2 through the skip path, and the other is to go through the main path and then pass through a fully connected layer, perform batch normalization and activation, and then add the output Y1 obtained after a full connection and batch normalization to be activated as the output result Z of this residual block;

[0037] At the same time, the construction of residual blocks can be divided into two modes:

[0038] Mode 1: The number of fully connected neurons in the first layer of the residual block is half of the number of fully connected neurons in the second layer, and there is a fully connected layer on the skip path with the number of neurons equal to the number of fully connected neurons in the second layer;

[0039] Mode 2: The number of fully connected neurons in the first layer is the same as the number of fully connected neurons in the second layer. In this case, there is no fully connected layer on the skip path, and Y2 and Y1 are directly added.

[0040] Furthermore, the step 3.2 specifically includes the following contents:

[0041] The input axle temperature data first passes through a fully connected layer with 56 neurons, then passes through three stage modules consisting of 2 residual blocks, and then passes through three stage modules, each of which contains two residual blocks, where:

[0042] First, the first residual block in the first stage module uses mode 2, that is, the shape of the output matrix does not change after passing it; the second residual block also uses mode 2;

[0043] Secondly, the second stage module and the third stage module have the same structure. The first residual block uses mode 1, and the second residual block uses mode 2.

[0044] Finally, the output of the third stage module is connected to the output layer after passing through a mode-one residual block.

[0045] Furthermore, the step 3.3 specifically includes the following contents:

[0046] At this time, the output layer has 4 neurons, which represent the probabilities of the four conditions: normal, mild fever, strong fever, and extreme fever. Therefore, by inputting multiple sample data and passing through the model, the probability of each shaft temperature state of each sample data can be obtained. Therefore, the quality of the model can be evaluated by comparing it with the label, and the model can be adjusted by adjusting the hyperparameters multiple times to achieve the ideal effect.

[0047] Due to the adoption of the above technical solution, the present invention has the following advantages and positive effects compared with the prior art:

[0048] The present invention uses the shaft temperature data directly measured by the sensor and the features obtained by the Pearson correlation coefficient method as the input of the BP neural network at the same time, and provides a method for solving the overfitting phenomenon of the BP neural network caused by insufficient data for some shaft temperature levels by performing K-fold cross-validation on the collected data, and a method for solving the phenomenon that the gradient becomes very small or disappears due to deepening the network depth by using residual blocks, thereby further improving the prediction accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0050] Figure 1 A schematic diagram of the overall flow chart of a method for predicting axle temperature level using an improved BP neural network provided by the present invention;

[0051] Figure 2 A schematic diagram of selecting a training set and a validation set for K-cross validation of an improved BP neural network method for predicting axle temperature levels provided by the present invention;

[0052] Figure 3 A schematic diagram of a residual block of mode 1 of a method for predicting axle temperature level using an improved BP neural network provided by the present invention;

[0053] Figure 4 A schematic diagram of a residual block of mode 2 of a method for predicting axle temperature levels using an improved BP neural network provided by the present invention;

[0054] Figure 5 The present invention provides a model schematic diagram of a method for predicting shaft temperature level using an improved BP neural network. DETAILED DESCRIPTION

[0055] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. 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 are within the scope of protection of the present invention.

[0056] like Figure 1 As shown, this embodiment discloses a method for predicting shaft temperature level using an improved BP neural network, comprising the following steps:

[0057] Step 1: Confirm the shaft temperature grade judgment standard;

[0058] The normal range of bearing temperature should be below 40 degrees Celsius; greater than 40 degrees Celsius but less than 60 degrees Celsius is a slight heat level; greater than or equal to 60 degrees Celsius but less than 75 degrees Celsius is a strong heat level; greater than or equal to 75 degrees Celsius is an extreme heat level.

[0059] The reason why the axle temperature range of each level selected in this embodiment is larger is that in this model, not only the influence of the external temperature on our bearing temperature is taken into account, but also the influence of other factors such as the speed and load of the train during the operation of the train on the axle temperature is taken into account.

[0060] Step 2: Process the collected data;

[0061] Furthermore, the specific steps of step 2 are as follows:

[0062] Step 2.1: Get the bearing temperature;

[0063] Step 2.2: Confirm the method of selecting features and select features;

[0064] Step 2.3: Process the collected bearing temperatures and related features to obtain training sets and validation sets.

[0065] Furthermore, the step 2.1 specifically includes the following contents:

[0066] THDS is used to collect data from the detection device installed on one side of the track, and the axle temperature is monitored in real time using radiation measurement technology. The thermistor in the infrared probe converts the received heat energy into a voltage signal, and the axle temperature of the train is obtained based on the corresponding voltage amplitude temperature table.

[0067] Furthermore, the step 2.2 specifically includes the following contents:

[0068] The Pearson correlation coefficient method is used to determine the correlation coefficient γ between the collected features related to the shaft temperature. The range of γ is [-1, 1]. The larger the correlation coefficient γ is, the greater the correlation between the feature and the shaft temperature is. Using this method, some features in the sample set that are irrelevant to or have a weak relationship with the target feature are continuously removed through comparison, thereby eliminating data that does not contribute to the solution of the target problem or even interferes with it. The solution formula of the Pearson correlation coefficient is as follows:

[0069]

[0070] Among them, N represents the number of feature samples, y i is the ith shaft temperature, x i is the eigenvalue of the i-th order;

[0071] Select six characteristics: train running speed, load, outside temperature, train running status (divided into departure acceleration state, arrival deceleration state, and intermediate uniform speed state), train type, and train running time.

[0072] In this embodiment, THDS is used to collect data from the detection device installed on one side of the track, and the axle temperature is monitored in real time using radiation measurement technology. The thermistor in the infrared probe converts the received heat energy into a voltage signal, and the axle temperature of the train is obtained according to the corresponding voltage amplitude temperature table. The axle temperature measured by THDS is also used as a feature, and is input into the BP neural network for training together with the six features with the greatest correlation with the axle temperature obtained by the Pearson correlation coefficient method.

[0073] Furthermore, the step 2.3 specifically includes the following contents:

[0074] like Figure 2 As shown, since there are fewer data on the strong heat and hot level of the axle temperature of the train, but the number of samples of the four levels in the training data required to build the BP neural network model should be similar, so the number of samples in our training data is relatively small. If a deeper BP neural network is selected, overfitting will occur. Therefore, the K-fold cross-validation method is used here to select the training data set and the validation data set, thereby reducing the overfitting phenomenon of the model and improving the generalization ability of the entire model. The specific implementation method is: divide the training data evenly into K parts (K is generally 5 or 10), select one part from the K parts in order as the validation set, and the remaining K-1 parts as training data, bring them into the model to obtain the evaluation index, repeat K times, and finally take the average value of the K evaluation index as the final evaluation index.

[0075] Step 3: Build a neural network to detect the shaft temperature level and verify it.

[0076] Furthermore, the specific steps of step 3 are as follows:

[0077] Step 3.1: Construct a residual block;

[0078] Step 3.2: Build the entire residual network;

[0079] Step 3.3: Construct evaluation metrics for the model and fine-tune and validate the model.

[0080] Furthermore, the step 3.1 specifically includes the following contents:

[0081] like Figure 3 As shown in Figure 4, the main path in the residual block contains two fully connected layers, of which the first fully connected layer has two options: one is that the number of neurons in the fully connected layer is equal to half of the number of neurons in the input layer of the residual block, and the other is that the number of neurons in the fully connected layer is equal to the number of neurons in the input layer of the residual block. The number of neurons in the second fully connected layer is equal to the number of neurons in the first fully connected layer in the residual block. Whether there is a fully connected layer in the skip path of the residual block is related to whether the number of neurons in the input layer of the residual block is equal to the number of neurons in the output layer. If they are equal, there is no fully connected layer in the skip path. If they are not equal, there is a fully connected layer on the skip path with a number of neurons equal to the number of neurons in the second fully connected layer of the residual block.

[0082] The specific process in a residual block is as follows: First, determine the number of fully connected neurons in the first layer on the main path of the residual block. The case where the number of fully connected neurons in the first layer is not equal to the number of neurons in the input layer is called mode 1, and the case where the number of neurons in the first layer is equal to the number of neurons in the input layer is called mode 2. The data after the input layer is X, X∈R m*n(X is a two-dimensional matrix, the number of rows of X is the number of samples m, the number of columns is the number of input neurons n, where n is an even number). In the case of mode 1, it first passes through the first fully connected layer on the main path and then the batch normalization layer and activation layer to become X1. Then, we get Y1 through the second fully connected layer on the main path and the subsequent batch normalization layer. The data after the input layer is X, which is input into the skip path and then passes through the fully connected layer on the skip path to obtain the result Y2. Finally, the output of the residual block is Y1+Y2 after passing through the activation layer Z. At this time, the number of columns of the output data matrix after the residual block is half of the number of columns of the input data matrix. The situation of mode 2 is similar to that of mode 1, except that there is no fully connected layer in the jump path. If the data after the input layer is X∈R m*n , the output Z∈R m*n , at this time, the shape of the output data matrix after the residual block is equal to the matrix shape of the input data.

[0083] Furthermore, the step 3.2 specifically includes the following contents:

[0084] like Figure 5 As shown in the figure, the input axle temperature data first passes through a fully connected layer with 56 neurons, then passes through three stage modules consisting of 2 residual blocks, and then passes through three stage modules, each of which contains two residual blocks, where:

[0085] First, the first residual block in the first stage module uses mode 2, that is, the shape of the output matrix does not change after passing it; the second residual block also uses mode 2;

[0086] Secondly, the second stage module and the third stage module have the same structure. The first residual block uses mode 1, and the second residual block uses mode 2.

[0087] Finally, the output of the third stage module is connected to the output layer after passing through a mode-one residual block.

[0088] This forms a BP neural network with 15 fully connected layers on the main path. At the same time, due to the existence of the jump path, the gradient of each weight of the fully connected layer close to the input shaft temperature feature at the bottom layer may become smaller or even disappear as the network deepens.

[0089] Furthermore, the step 3.3 specifically includes the following contents:

[0090] At this time, the output layer has 4 neurons, and the four neurons represent the probabilities of the four situations of normal, slight fever, strong fever, and extreme fever respectively; therefore, after inputting multiple samples through the model, we can get the probabilities of the four situations of normal, slight fever, strong fever, and extreme fever of these samples. Since the training data and verification data give the real axle temperature labels of these samples, we can traverse the entire training sample, take out the axle temperature represented by the neuron with the highest probability in each sample and compare it with the real label. Get the same number of samples, and then divide it by the total number of training samples to get the accuracy of the model on the training set. Perform the same operation on the verification data set to get the accuracy on the verification set. Use the K-fold cross-validation method to determine the accuracy on the verification set to adjust the hyperparameters: learning rate and number of iterations, so that the model can achieve our ideal effect.

[0091] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. An improved BP neural network method for predicting shaft temperature level, characterized in that: The following steps are involved: Step 1: Confirm the shaft temperature grade judgment standard; Step 2: Process the collected data; The specific steps of step 2 are as follows: Step 2.1: Get the bearing temperature; Step 2.2: Confirm the method of selecting features and select features; The step 2.2 specifically includes the following contents: The Pearson correlation coefficient method is used to determine the correlation coefficient γ between the collected features related to the shaft temperature. The range of γ is [-1, 1]. The larger the correlation coefficient γ is, the greater the correlation between the feature and the shaft temperature is. Using this method, some features in the sample set that are irrelevant to or have a weak relationship with the target feature are continuously removed through comparison, thereby eliminating data that does not contribute to the solution of the target problem or even interferes with it. The solution formula of the Pearson correlation coefficient is as follows: Among them, N represents the number of feature samples, y i is the ith shaft temperature, x i is the eigenvalue of the i-th order; Select the six characteristics of train speed, load, outside temperature, train running status, train type, and train running time; Step 2.3: Process the collected bearing temperature and related features to obtain training sets and validation sets; The step 2.3 specifically includes the following contents: Since there are fewer data on the strong heat and extreme heat levels of the axle temperature of the train, but the number of samples of the four levels in the training data required to build the BP neural network model should be similar, so the number of samples in our training data is relatively small, and overfitting will occur if a deeper BP neural network is selected. Therefore, the K-fold cross-validation method is used here to select the training data set and the validation data set, thereby reducing the overfitting phenomenon of the model and improving the generalization ability of the entire model; Step 3: Build a neural network to detect the shaft temperature level and verify it; The specific steps of step 3 are as follows: Step 3.1: Construct a residual block; The step 3.1 specifically includes the following contents: When training the model, as the network depth reaches a certain level, the gradient disappears. The residual block is similar to the feedforward feedback in the automatic control system. The data X, X∈R m*n , m represents the number of samples, n can be regarded as the number of neurons in the input layer of the residual block, and X has two directions. One is to directly obtain the output Y2 through the skip path, and the other is to go through the main path and then pass through a fully connected layer, perform batch normalization and activation, and then add the output Y1 obtained after a full connection and batch normalization to be activated as the output result Z of this residual block; At the same time, the construction of residual blocks can be divided into two modes: Mode 1: The number of fully connected neurons in the first layer of the residual block is half of the number of fully connected neurons in the second layer, and there is a fully connected layer on the skip path with the number of neurons equal to the number of fully connected neurons in the second layer; Mode 2: The number of fully connected neurons in the first layer is the same as the number of fully connected neurons in the second layer. In this case, there is no fully connected layer on the skip path, and Y2 and Y1 are directly added together. Step 3.2: Build the entire residual network; The step 3.2 specifically includes the following contents: The input axle temperature data first passes through a fully connected layer with 56 neurons, then passes through three stage modules consisting of 2 residual blocks, and then passes through three stage modules, each of which contains two residual blocks, where: First, the first residual block in the first stage module uses mode 2, that is, the shape of the output matrix does not change after passing it; the second residual block also uses mode 2; Secondly, the second stage module and the third stage module have the same structure. The first residual block uses mode 1, and the second residual block uses mode 2. Finally, the output of the third stage module is connected to the output layer after passing through a mode 1 residual block; Step 3.3: Construct evaluation metrics for the model, and fine-tune and validate the model; The step 3.3 specifically includes the following contents: At this time, the output layer has 4 neurons, which represent the probabilities of the four conditions: normal, mild fever, strong fever, and extreme fever. Therefore, by inputting multiple sample data and passing through the model, the probability of each shaft temperature state of each sample data can be obtained. Therefore, the quality of the model can be evaluated by comparing it with the label, and the model can be adjusted by adjusting the hyperparameters multiple times to achieve the ideal effect.

2. The improved BP neural network method for predicting shaft temperature level according to claim 1 is characterized in that: The step 1 specifically includes the following contents: The normal range of bearing temperature should be below 40 degrees Celsius; Greater than 40 degrees Celsius but less than 60 degrees Celsius is a mild fever level; Greater than or equal to 60 degrees Celsius but less than 75 degrees Celsius is a strong heat level; Greater than or equal to 75 degrees Celsius is the extreme heat level.

3. The improved BP neural network method for predicting shaft temperature level according to claim 1 is characterized in that: The step 2.1 specifically includes the following contents: THDS is used to collect data from the detection device installed on one side of the track, and the axle temperature is monitored in real time using radiation measurement technology. The thermistor in the infrared probe converts the received heat energy into a voltage signal, and the axle temperature of the train is obtained based on the corresponding voltage amplitude temperature table.