Train wheel size measurement error correction method based on machine learning

By applying the method of 3-layer BP neural network and hyperbolic tangent activation function in the train wheel size measurement system, the system error problem is solved, the measurement accuracy is improved, and efficient error correction of train wheel size is achieved.

CN118760837APending Publication Date: 2024-10-11AUTOMATION RES & DESIGN INST OF METALLURGICAL IND

Patent Information

Application Number
CN202410404026.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-07-12
Filing Date
2024-04-05
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

In the measurement of train wheel size, the measurement accuracy is affected by systematic errors caused by inaccurate camera installation position, camera accuracy issues and mechanical structure deformation.

Method used

A method based on 3-layer BP neural network is designed, using local connections instead of full connections, introducing common hidden layer nodes, using the hyperbolic tangent activation function, and performing normalization and denormalization in data preprocessing. to correct for measurement errors.

Benefits of technology

It effectively eliminates the system's own errors, improves the accuracy of train wheel size measurement, reduces numerical problems and neuron saturation, and enhances the accuracy of size measurement.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118760837A_ABST
    Figure CN118760837A_ABST
Patent Text Reader

Abstract

The invention discloses a train wheel size measurement error correction method based on machine learning, and belongs to the technical field of automatic detection. A handheld 3D multi-line laser scanner is used for scanning the wheels; according to the formats of the section serial number, the angle, the tread diameter calculation value, the left rim height calculation value, the right rim height calculation value, the tread diameter truth value, the left rim height truth value and the right rim height truth value, the truth values and the calculation values are integrated into a data set through a program; training the model; and inputting test data into the trained network model, performing forward propagation through the BP neural network, and performing reverse normalization according to the maximum value and the minimum value of each previous column to obtain a predicted value corresponding to a calculated value, and the predicted value is closer to a true value than the calculated value, thereby achieving an error correction effect. The method has the advantage that the problem that a final dimension measurement result contains a system error is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of automatic detection, and in particular provides a method for correcting train wheel size measurement errors based on machine learning. Background Art

[0002] The detection of train wheel geometric dimensions, including tread diameter, left rim height, right rim height, etc., is an important part of wheel production quality inspection. In order to free up labor and improve product quality, a 3D laser measurement system is used for measurement. However, during the measurement process, due to various factors, including inaccurate camera installation position, camera accuracy problems, and mechanical structure deformation, the final dimensional measurement result contains a systematic error. Summary of the invention

[0003] The purpose of the present invention is to provide a method for correcting train wheel size measurement errors based on machine learning, which solves the problem that the final size measurement result contains a systematic error.

[0004] The present invention designs an error correction method for the train wheel size measurement system based on the characteristics of the measurement system itself. This method eliminates the system error of the system itself and effectively improves the measurement accuracy of the system. Figure 1 As shown, the present invention is improved based on a 3-layer BP neural network, using 3 input nodes and 1 bias node, 10 hidden layer nodes, and 3 output layer nodes. According to the actual measurement process, the tread diameter, left rim height, and right rim height are relatively independent, so local connection is used instead of full connection, and a common hidden layer node is used to ensure that there is a certain correlation between the three dimensions. The network uses hyperbolic tangent as the activation function. Before the training process, the data needs to be normalized and denormalized during prediction.

[0005] Normalization idea: First, avoid numerical problems. Since the effective interval of the hyperbolic tangent function is approximately [-1.7, 1.7], in order to make the neuron effective, the order of magnitude of w1x1+w2x2+w3x3+b in tan(w1x1+w2x2+w3x3+b) needs to be around 1. If the input is large at this time, it means that the corresponding weight must be very small. After multiplying the two, the product result will be incorrect; second, avoid neuron saturation. Since the weights use random numbers (-1, 1) at the beginning of training, the output of the neuron is saturated after the activation function, causing the neuron to fail; third, the decimals are swallowed up. Since the tread diameter is quite different from the left rim height and the right rim height, it is easy for large numbers to swallow small numbers during training; fourth, the impact on the search trajectory. Since the order of magnitude of the tread diameter and the left rim height and the right rim height are different, the corresponding weights are different. Assume that the weight w1 corresponding to the tread diameter is in the range of [-0.001, 0.001] (according to the previous analysis, the larger the input, the smaller the corresponding weight), and the weight w2 corresponding to the left rim height is in the range of [-0.005, 0.005]. Assume that the gradient advances by 0.0001 each time, then for w1 direction, it is equivalent to advancing by In the w2 direction, it is equivalent to moving forward In a sense, moving faster in the direction of w1 than in the direction of w2 will cause the search process to be more biased towards w1.

[0006] The method of the present invention is as follows:

[0007] 1. Use a handheld 3D multi-line laser scanner to scan the wheel, and use the size calculation program to obtain the tread diameter, left rim height, and right rim height of the train wheel, and record them as the true value; at the same time, use the designed 3D laser measurement system to reconstruct the wheel point cloud, calculate the tread diameter, left rim height, and right rim height at the corresponding angle, and record them as the calculated value.

[0008] 2. As shown in Table 1, according to the format of section number, angle, calculated value of tread diameter, calculated value of left rim height, calculated value of right rim height, true value of tread diameter, true value of left rim height, and true value of right rim height, use the program to integrate the above true values ​​and calculated values ​​into a data set, and divide the data set into a training data set and a test data set in a ratio of 2:1;

[0009] Table 1 Dataset format

[0010]

[0011]

[0012] 3. According to Figure 2 As shown, the model is trained

[0013] 1) Initialize the neural network parameters, including weights, learning rate, number of iterations, batch size, etc., and then determine whether there is a trained model. If so, jump to step 4; if not, start training the model.

[0014] 2) First, according to the maximum and minimum values ​​of each column of data, the data is normalized to the range of (-1,1), and then iterative training begins:

[0015] a) Determine whether the number of iterations reaches the set value, if yes, then exit the training, otherwise continue to execute;

[0016] b) Randomly shuffle the order of all training samples, take training data each time according to the size set by batch size, put the data taken each time into the model, and update the model weights once; until all training data are taken, jump to a);

[0017] 3) After training, save the model;

[0018] 4. Input the test data into the trained network model, pass through the BP neural network forward propagation, and perform denormalization based on the maximum and minimum values ​​of each column to obtain the predicted value corresponding to the calculated value. The predicted value is closer to the true value than the calculated value, thereby achieving the effect of error correction. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 It is a schematic diagram of the structure of the BP neural network described in the present invention.

[0020] Figure 2 This is a flow chart of the model training and prediction described in the present invention. DETAILED DESCRIPTION

[0021] The specific implementation of the device of the present invention is:

[0022] The handheld 3D multi-line laser scanner is HandySCAN BLACK from ShapeChuang TM The device uses 7 blue laser cross lines as the light source, with a scanning area of ​​310×350mm, a depth of field of 250mm, a measurement rate of 800000Hz, and an accuracy of up to 0.035mm.

[0023] The method of the present invention is as follows:

[0024] 1. Use a handheld 3D multi-line laser scanner to scan the wheel, and use the size calculation program to obtain the tread diameter, left rim height, and right rim height of the train wheel, and record them as the true value; at the same time, use the designed 3D laser measurement system to reconstruct the wheel point cloud, calculate the tread diameter, left rim height, and right rim height at the corresponding angle, and record them as the calculated value.

[0025] 2. As shown in Table 1, according to the format of section number, angle, calculated value of tread diameter, calculated value of left rim height, calculated value of right rim height, true value of tread diameter, true value of left rim height, and true value of right rim height, the program is used to integrate the above true values ​​and calculated values ​​into a data set, and the data set is divided into a training data set and a test data set in a ratio of 2:1;

[0026] 3. According to Figure 2 As shown, the model is trained

[0027] 1) Initialize the neural network parameters, including weights, learning rate, number of iterations, batch size, etc., and then determine whether there is a trained model. If so, jump to step 4; if not, start training the model.

[0028] 2) First, according to the maximum and minimum values ​​of each column of data, the data is normalized to the range of (-1,1), and then iterative training begins:

[0029] a) Determine whether the number of iterations reaches the set value, if yes, then exit the training, otherwise continue to execute;

[0030] b) Randomly shuffle the order of all training samples, take training data each time according to the size set by batch size, put the data taken each time into the model, update the model weights once, until all training data are taken, jump to a);

[0031] 3) After training, save the model;

[0032] 4. Input the test data into the trained network model, pass through the BP neural network forward propagation, and perform denormalization based on the maximum and minimum values ​​of each column to obtain the predicted value corresponding to the calculated value. The predicted value is closer to the true value than the calculated value, thereby achieving the effect of error correction.

Claims

1. A method for correcting train wheel size measurement errors based on machine learning, characterized in that: The steps include: (1) Scan the wheel using a handheld 3D multi-line laser scanner, obtain the tread diameter, left rim height, and right rim height of the train wheel through a size calculation program, and record them as true values; at the same time, reconstruct the wheel point cloud using the designed 3D laser measurement system, calculate the tread diameter, left rim height, and right rim height at the corresponding angle, and record them as calculated values; (2) According to the format of section number, angle, calculated value of tread diameter, calculated value of left rim height, calculated value of right rim height, true value of tread diameter, true value of left rim height, and true value of right rim height, use a program to integrate the above true values ​​and calculated values ​​into a data set, and divide the data set into a training data set and a test data set in a ratio of 2:1; (3) Train the model. The steps are as follows: 1) Initialize the neural network parameters, including weights, learning rate, number of iterations, and batch size, and then determine whether there is a trained model. If so, jump to (4); if not, start training the model. 2) First, according to the maximum and minimum values ​​of each column of data, the data is normalized to the range of (-1,1), and then iterative training begins: a) Determine whether the number of iterations reaches the set value, if yes, then exit the training, otherwise continue to execute; b) Randomly shuffle the order of all training samples, take training data each time according to the size set by batch size, put the data taken each time into the model, and update the model weights once; until all training data are taken, jump to a); 3) After training, save the model; (4) The test data is input into the trained network model, forward propagated through the BP neural network, and denormalized according to the maximum and minimum values ​​of each column to obtain the predicted value corresponding to the calculated value. The predicted value is closer to the true value than the calculated value, thereby achieving the effect of error correction.

Citation Information

Patent Citations

  • Online dynamic measuring device and measuring method of geometric parameters of train wheel

    CN108891445A

  • Body temperature continuous remote monitoring and BP neural network correction detection and early warning system

    CN111397744A

  • Train wheel set size detection big data correction device and method and storage medium

    CN116228839A

Cited By

  • Non-contact heartbeat monitoring method and system based on millimeter wave signal

    CN120130979A