Transform-based track irregularity detection method

The track irregularity detection method based on Transformer solves the problems of high cost of traditional detection methods and difficulty in processing long sequence data by sequence neural networks, achieves efficient and convenient track detection, and improves detection accuracy.

CN118779700APending Publication Date: 2024-10-15XIAN UNIV OF TECH
View PDF 0 Cites 1 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing track status detection methods rely on high-precision sensors, resulting in high costs, and sequence neural networks are difficult to process long sequence track data, resulting in low detection efficiency and insufficient accuracy.

Method used

The track irregularity detection method based on Transformer is used to obtain track and train spatial attitude data, perform time window processing and data standardization, construct a data set, and use the Transformer model for parameter training to detect track irregularities, reducing the need for high-precision device dependence and improved data processing capabilities.

Benefits of technology

It achieves more convenient and efficient orbit detection, reduces time costs, and improves the processing capabilities and detection accuracy of long sequence orbit data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118779700A_ABST
    Figure CN118779700A_ABST
Patent Text Reader

Abstract

The invention discloses a Transform-based track irregularity detection method, which comprises the following steps of: firstly, acquiring track irregularity data on a railway line and corresponding train space attitude data, performing time window method processing and data standardization on the data, and constructing a track irregularity data set; the data set is divided into a training set, a verification set and a test set according to the proportion of 7: 2: 1; then constructing a Transform model and a lightweight decoder to carry out parameter training on the Transform model, and when a loss function of the model on the verification set reaches the minimum, recording all parameter values of the current model; carrying out track irregularity detection on the data of the test set by utilizing a Transform model; according to the method, the problem that the cost is high due to the fact that a traditional detection method depends on a high-precision sensor is solved, and the problem that long-sequence orbit data is difficult to process by a sequence neural network in a data method 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 railway track state detection, and in particular relates to a track irregularity detection method based on Transformer. Background Art

[0002] As one of the basic industries of my country's transportation, the railway system plays an important supporting role in the development of my country's economy, trade and other fields. Therefore, in the context of the current huge amount of railway resources, track maintenance issues have become a top priority.

[0003] At present, there are two main types of equipment used for track status detection in the world: track geometry status detector and track detection vehicle. The detection method of track geometry status detector mainly relies on manual operation, which is time-consuming, inefficient, and has certain safety risks. Although the track detection vehicle has a high detection efficiency, it is expensive and often causes a certain run on railway resources during use.

[0004] In addition, methods for detecting track irregularities using data models are relatively rare. Some data models based on deep learning usually use sequence neural networks such as recurrent neural networks (RNN), gated recurrent units (GRU), and long short-term memory networks (LSTM). Such models are structurally difficult to adapt to the detection of long sequence data. Therefore, in order to achieve efficient detection of track irregularities in this context, the present invention improves the Transformer model, establishes the correlation between the spatial posture of the train in transit and the track irregularity, and indirectly detects the track irregularity. Summary of the invention

[0005] The purpose of the present invention is to provide a track irregularity detection method based on Transformer, which solves the high cost problem caused by the traditional detection method's reliance on high-precision sensors, and the problem that sequence neural networks in data methods are difficult to process long sequence track data.

[0006] The technical solution adopted by the present invention is a track irregularity detection method based on Transformer, which is specifically implemented according to the following steps:

[0007] Step 1: Obtain the track irregularity data on the railway line and the corresponding train spatial posture data, process the data using the time window method and standardize the data, construct a track irregularity dataset, and divide the dataset into a training set, a validation set, and a test set in a ratio of 7:2:1.

[0008] Step 2: Build a Transformer model and a lightweight decoder to train the parameters of the Transformer model. When the loss function of the model on the validation set reaches the minimum, record all the parameter values ​​of the current model.

[0009] Step 3: Use the Transformer model to perform track irregularity detection on the test set data divided in step 1;

[0010] Step 4: Construct evaluation indicators to evaluate and analyze the track unevenness detection results output by the Transformer model in step 3.

[0011] The present invention is also characterized in that:

[0012] Step 1 is implemented according to the following steps:

[0013] Step 1.1: Obtain the spatial posture data of the train on the railway line as X = {x1, x2, ..., x i , ..., x n}, x n is the nth sampling point of the train spatial posture data, i = 1, 2, ..., n, n is the total number of sampling points of the track inspection vehicle, and the track irregularity data is Y = {y1, y 2, ..., y i , ..., y n},y n is the nth sampling point in the track irregularity data;

[0014] Step 1.2: Calculate the train spatial posture data X = {x1, x2, ..., x i , ..., x n} and track irregularity data Y = {y1, y2, ..., y i , ..., y n The mean and standard deviation of} are:

[0015]

[0016]

[0017]

[0018]

[0019] in, is the average value of the train space posture data; δ x is the standard deviation of the train spatial posture data; is the average value of track irregularity data; δ y is the standard deviation of track irregularity data; x i is the i-th data in the train spatial posture data; y i is the i-th data in the track irregularity data;

[0020] Step 1.3: Perform data standardization on each data point in the train spatial attitude data and track irregularity data:

[0021]

[0022]

[0023] Among them, x i Represents the i-th data in the train spatial posture data; y i represents the i-th data in the track irregularity data;

[0024] Step 1.4, processing the standardized train spatial attitude data and track irregularity data using the time window method;

[0025] Step 1.5: Divide the processed data into training set, validation set and test set in a ratio of 7:2:1.

[0026] Step 2 is implemented as follows:

[0027] Step 2.1: Establish the Transformer model according to the hyperparameters set in Table 1.

[0028] Table 1 Parameter setting table

[0029] Hyperparameter Name Hyperparameter Values Learning Rate 0.005 Optimizer AdamW Loss Function MSE Number of training rounds 100 Batch size 5000 Time window size 100 Number of encoder layers 3

[0030] Step 2.2: The input train spatial posture data is first self-attentioned in the Transformer model:

[0031]

[0032] The vector X is transformed by different matrices W, where X is the spatial posture data of the train, and W is learned by the back propagation algorithm to obtain the Transformer parameters.

[0033]

[0034]

[0035] QKV obtained by X matrix transformation refers to Query, Key and Value, which are three matrices transformed from the input matrix through three different linear transformation layers. The data correlation coefficient between X, i.e. the train space posture data, is obtained by multiplying the QK matrix:

[0036] Attention output=Attention Weights·V (10)

[0037] The correlation coefficient is multiplied by the transformation matrix V of X to obtain the result of the self-attention operation, where each output of self-Attention is the weighted sum of the matrix V, so that the Transformer can effectively take into account the sequence characteristics of the train space posture data:

[0038]

[0039] The output of self-Attention is processed with residual connection and layer normalization to obtain the final output of the Transformer single-layer encoder. The decoder then performs feature decoding on the encoder output and makes a final prediction of the track unevenness.

[0040] Step 3 is implemented as follows:

[0041] The trained Transformer model is used to detect samples in the test set to obtain the Transformer-based track unevenness detection results.

[0042] Step 4 is implemented according to the following steps:

[0043] Based on the track irregularity detection results of the Transformer model obtained in step 3, combined with the true value of the track irregularity data in the test set in step 1, the MSE, MAE, RMSE and R 2 The evaluation parameters are used to evaluate the test results. The calculation formula is as follows:

[0044]

[0045]

[0046]

[0047]

[0048] Among them, y true Refers to the actual track irregularity data, y pred Refers to the track irregularity state estimation value output by the Transformer model, and n is the total number of data points in the test set.

[0049] The beneficial effect of the present invention is that the track irregularity detection method based on Transformer, compared with the traditional direct measurement method, this data-based indirect analysis method effectively reduces the dependence on high-precision gyroscopes and other equipment and greatly reduces the time cost of track detection. It is a more convenient and efficient detection method. Compared with the sequence neural network, the track irregularity detection method based on Transformer can more effectively process long sequence track irregularity data, and also has higher detection accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 is a structure diagram of a Transformer model in a Transformer-based track irregularity detection method of the present invention;

[0051] Figure 2 It is a flow chart of the track irregularity detection method based on Transformer of the present invention;

[0052] Figure 3 It is a diagram of DNN detection results in the track irregularity detection method based on Transformer of the present invention;

[0053] Figure 4 It is a graph of RNN detection results in the track irregularity detection method based on Transformer of the present invention;

[0054] Figure 5 This is a diagram of the GRU detection results in the Transformer-based track irregularity detection method of the present invention;

[0055] Figure 6 This is a graph of LSTM detection results in the track irregularity detection method based on Transformer of the present invention;

[0056] Figure 7 is a Transformer detection result diagram in the Transformer-based track irregularity detection method of the present invention;

[0057] Figure 8 It is a schematic diagram of the time window method in the Transformer-based track irregularity detection method of the present invention. DETAILED DESCRIPTION

[0058] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments.

[0059] The track irregularity detection method based on Transformer is combined with Figure 1 , Figure 2 , follow the steps below:

[0060] Step 1: Obtain the track irregularity data on the railway line and the corresponding train spatial posture data, process the data using the time window method and standardize the data, construct a track irregularity dataset, and divide the dataset into a training set, a validation set, and a test set in a ratio of 7:2:1.

[0061] Step 1 is implemented according to the following steps:

[0062] Step 1.1: Obtain the spatial posture data of the train on the railway line as X = {x1, x2, ..., x i , ..., x n}, x n is the nth sampling point of the train spatial posture data, i = 1, 2, ..., n, n is the total number of sampling points of the track inspection vehicle, and the track irregularity data is Y = {y1, y2, ..., y i , ..., y n},y n is the nth sampling point in the track irregularity data;

[0063] Step 1.2: Calculate the train spatial posture data X = {x1, x2, ..., x i , ..., x n} and track irregularity data Y = {y1, y2, ...y i ,...y n The mean and standard deviation of} are:

[0064]

[0065]

[0066]

[0067]

[0068] in, is the average value of the train space posture data; δ x is the standard deviation of the train spatial posture data; is the average value of track irregularity data; δ y is the standard deviation of track irregularity data; x i is the i-th data in the train spatial posture data; y i is the i-th data in the track irregularity data;

[0069] Step 1.3: Perform data standardization on each data point in the train spatial attitude data and track irregularity data:

[0070]

[0071]

[0072] Among them, x i Represents the i-th data in the train spatial posture data; y i represents the i-th data in the track irregularity data;

[0073] Step 1.4: The standardized train spatial posture data and track irregularity data are processed as follows: Figure 8 The processing of the time window method is shown;

[0074] Step 1.5: Divide the processed data into training set, validation set and test set in a ratio of 7:2:1.

[0075] Step 2: Construct a Transformer model and a lightweight decoder to adapt to the characteristics of the track irregularity detection problem. Use the encoder in the Transformer to extract the feature information of the train's spatial posture. Use the features extracted by the encoder as the input of the lightweight decoder network to achieve track irregularity estimation through the lightweight decoder. Train the parameters of the Transformer model based on the training set and validation set obtained in step 1. When the loss function of the model on the validation set reaches the minimum, record all the parameter values ​​of the current model.

[0076] Step 2 is implemented as follows:

[0077] Step 2.1: According to the hyperparameters set in Table 1 Figure 1 The model structure shown builds the Transformer model.

[0078] Table 1 Parameter setting table

[0079] Hyperparameter Name Hyperparameter Values Learning Rate 0.005 Optimizer AdamW Loss Function MSE Number of training rounds 100 Batch size 5000 Time window size 100 Number of encoder layers 3

[0080] Step 2.2: The input train spatial posture data is first subjected to self-attention operation in the Transformer model:

[0081]

[0082] The vector X is transformed by different matrices W, where X is the spatial posture data of the train, and W is learned by the back propagation algorithm to obtain the Transformer parameters.

[0083]

[0084]

[0085] QKV obtained by X matrix transformation refers to Query (Q), Key (K) and Value (V), which are three matrices transformed from the input matrix through three different linear transformation layers. The data correlation coefficient between X, i.e. the train spatial posture data, is obtained by multiplying the QK matrix:

[0086] Attention output=Attention Weights·V (25)

[0087] The correlation coefficient is multiplied by the transformation matrix V of X to obtain the result of the self-attention operation, where each output of self-Attention is the weighted sum of the matrix V, so that the Transformer can effectively take into account the sequence characteristics of the train space posture data:

[0088]

[0089] The output of self-Attention is processed by residual connection and layer normalization to obtain the final output of Transformer single-layer encoder, which is then Figure 1 The decoder performs feature decoding operations on the encoder output and makes a final prediction of the track irregularity state.

[0090] Step 3: Use the Transformer model to perform track irregularity detection on the test set data divided in step 1;

[0091] Step 3 is implemented as follows:

[0092] The trained Transformer model is used to detect samples in the test set to obtain the Transformer-based track unevenness detection results.

[0093] Step 4: Construct evaluation indicators to evaluate and analyze the track unevenness detection results output by the Transformer model in step 3.

[0094] Step 4 is implemented according to the following steps:

[0095] Based on the track irregularity detection results of the Transformer model obtained in step 3, combined with the true value of the track irregularity data in the test set in step 1, the MSE, MAE, RMSE and R 2 The evaluation parameters are used to evaluate the test results. The calculation formula is as follows:

[0096]

[0097]

[0098]

[0099]

[0100] Among them, y true Refers to the actual track irregularity data, y pred Refers to the track irregularity state estimation value output by the Transformer model, and n is the total number of data points in the test set.

[0101] MSE, MAE, RMSE, and R 2 are commonly used indicators for evaluating the performance of regression models. When they have different values, the following conclusions can be drawn:

[0102] 1. Mean Squared Error (MSE)

[0103] ● High: The error between the model's predicted value and the true value is large, indicating that the model fit is poor. · Low: The error between the model's predicted value and the true value is small, indicating that the model fit is good.

[0104] 2. Mean Absolute Error (MAE)

[0105] ●High: The absolute error between the model's predicted value and the true value is large, and the model accuracy is low.

[0106] ● Low: The absolute error between the model's predicted value and the true value is small, and the model accuracy is high.

[0107] 3. Root Mean Squared Error (RMSE)

[0108] ● High: Similar to MSE, it means that the model’s prediction error is large, but it is more intuitive than MSE because it is consistent with the original data unit.

[0109] ● Low: The prediction error of the model is small and the model performance is good.

[0110] 4. Determination coefficient (R 2 -R-squared)

[0111] ● Close to 1: The model has a strong explanatory power for the data, indicating that the model can fit the data well.

[0112] ● Close to 0: The model has a weak ability to explain the data, which means that the model cannot fit the data well.

[0113] Negative values: The model performs worse than a simple mean model, indicating a very poor fit.

[0114] Summarize:

[0115] High MSE, MAE, and RMSE indicate that the model has a large prediction error and a poor fitting effect.

[0116] Low MSE, MAE, and RMSE indicate that the model has a smaller prediction error and a better fitting effect.

[0117] High R 2 (Close to 1) indicates that the model has strong explanatory power for the data and has a good fitting effect.

[0118] Low R 2 (close to 0 or negative value) indicates that the model has weak explanatory power for the data and the fitting effect is poor.

[0119] Example 1

[0120] The track irregularity detection method based on Transformer is combined with Figure 1 , follow the steps below:

[0121] Step 1: Obtain the track irregularity data on the railway line and the corresponding train spatial posture data, process the data using the time window method and standardize the data, construct a track irregularity dataset, and divide the dataset into a training set, a validation set, and a test set in a ratio of 7:2:1.

[0122] Step 2: Construct a Transformer model and a lightweight decoder to adapt to the characteristics of the track irregularity detection problem. Use the encoder in the Transformer to extract the feature information of the train's spatial posture. Use the features extracted by the encoder as the input of the lightweight decoder network to achieve track irregularity estimation through the lightweight decoder. Train the parameters of the Transformer model based on the training set and validation set obtained in step 1. When the loss function of the model on the validation set reaches the minimum, record all the parameter values ​​of the current model.

[0123] Step 3: Use the Transformer model to perform track irregularity detection on the test set data divided in step 1;

[0124] Step 4: Construct evaluation indicators to evaluate and analyze the track unevenness detection results output by the Transformer model in step 3.

[0125] Example 2

[0126] The track irregularity detection method based on Transformer is combined with Figure 1 , follow the steps below:

[0127] Step 1: Obtain the track irregularity data on the railway line and the corresponding train spatial posture data, process the data using the time window method and standardize the data, construct a track irregularity dataset, and divide the dataset into a training set, a validation set, and a test set in a ratio of 7:2:1.

[0128] Step 1 is implemented according to the following steps:

[0129] Step 1.1: Obtain the spatial posture data of the train on the railway line as X = {x1, x2, ..., x i , ..., x n}, x n is the nth sampling point of the train spatial posture data, i = 1, 2, ..., n, n is the total number of sampling points of the track inspection vehicle, and the track irregularity data is Y = {y1, y2, ..., y i , ..., y n},y n is the nth sampling point in the track irregularity data;

[0130] Step 1.2: Calculate the train spatial posture data X = {x1, x2, ..., x i , ..., x n} and track irregularity data Y = {y1, y2, ..., y i , ..., y n The mean and standard deviation of} are:

[0131]

[0132]

[0133]

[0134]

[0135] in, is the average value of the train space posture data; δ x is the standard deviation of the train’s spatial attitude data; is the average value of track irregularity data; δ y is the standard deviation of track irregularity data; x i is the i-th data in the train spatial posture data; y i is the i-th data in the track irregularity data;

[0136] Step 1.3: Perform data standardization on each data point in the train spatial attitude data and track irregularity data:

[0137]

[0138]

[0139] Among them, x i Represents the i-th data in the train spatial posture data; y i represents the i-th data in the track irregularity data;

[0140] Step 1.4: The standardized train spatial posture data and track irregularity data are processed as follows: Figure 8 The processing of the time window method is shown;

[0141] Step 1.5: Divide the processed data into training set, validation set and test set in a ratio of 7:2:1.

[0142] Step 2: Construct a Transformer model and a lightweight decoder to adapt to the characteristics of the track irregularity detection problem. Use the encoder in the Transformer to extract the feature information of the train's spatial posture. Use the features extracted by the encoder as the input of the lightweight decoder network to achieve track irregularity estimation through the lightweight decoder. Train the parameters of the Transformer model based on the training set and validation set obtained in step 1. When the loss function of the model on the validation set reaches the minimum, record all the parameter values ​​of the current model.

[0143] Step 3: Use the Transformer model to perform track irregularity detection on the test set data divided in step 1;

[0144] Step 3 is implemented as follows:

[0145] The trained Transformer model is used to detect samples in the test set to obtain the Transformer-based track unevenness detection results.

[0146] Step 4: Construct evaluation indicators to evaluate and analyze the track unevenness detection results output by the Transformer model in step 3.

[0147] Step 4 is implemented according to the following steps:

[0148] Based on the track irregularity detection results of the Transformer model obtained in step 3, combined with the true value of the track irregularity data in the test set in step 1, the MSE, MAE, RMSE and R 2 The evaluation parameters are used to evaluate the test results. The calculation formula is as follows:

[0149]

[0150]

[0151]

[0152]

[0153] Among them, y true Refers to the actual track irregularity data, y pred Refers to the track irregularity state estimation value output by the Transformer model, and n is the total number of data points in the test set.

[0154] Example 3

[0155] The present invention uses a track inspection vehicle to inspect a section of the Beijing-Guangzhou high-speed railway line, sampling at 0.25m intervals, and collects a total of 670,000 train spatial posture data points and 670,000 track irregularity data points. The speed of the track inspection vehicle remains basically unchanged during operation, and its peak speed is maintained at 300km / h. Based on the above data, the effectiveness and reliability of the proposed method are verified.

[0156] (1) Experimental environment configuration: This experiment is conducted on a remote SSH server. The specific hardware configuration of the server is as follows: The processor is a dual-core Intel Xeon Silver 4210@2.20GHz, with a total of 40 logical processors. The memory capacity is 125GiB. In addition, the server is equipped with 4 NVIDIA GeForce RTX 3090 graphics cards, each with 24GB of video memory.

[0157] (2) The algorithm model uses Python 3.8 as the programming language, the software architecture is based on the pytorch framework, and the drawing tool uses the matplotlib drawing module. Based on the above data, the method of the present invention is used with the LSTM, GRU, RNN, and DNN models to estimate track irregularity, and the data in the embodiment is used as the data set for model training. Table 3 shows the comparison of the track irregularity detection results of each method.

[0158] Table 3 Comparison of detection effects of various models

[0159]

[0160] As shown in Table 3, among the five models, the Transformer model has the highest detection accuracy, the difference between its estimated value of track unevenness and the true value is the smallest, and the model fit is the highest.

[0161] In order to describe the experimental results more clearly, the experimental results are visualized. Figure 3 to Figure 7As shown in the figure, they respectively represent the results of DNN, RNN, GRU, LSTM and Transformer models detecting track unevenness according to the train spatial posture. Figure 3 It can be seen that Figure 3 This is a comparison chart between the estimated value of track irregularity by DNN and the actual value of track irregularity. In principle, DNN can approximate any continuous function, so it is a powerful function fitter. However, due to the small number of model parameters and the inability to capture sequence features in the model structure, there are large errors in the detection results of DNN in the high-frequency area of ​​track irregularity.

[0162] Figure 4 This is a comparison chart of the estimated value of track irregularity under the RNN model and the actual value of track irregularity. The detection effect of the RNN model is better than that of the DNN model. This is because the RNN takes into account the sequence characteristics of the data itself in the structural design, so the detection results of the RNN are improved. However, since the RNN transmits sequence features in the form of hidden layers in the structure, RNN has certain limitations in the prediction of long sequence data, which is also called the "long-term dependency problem."

[0163] Figure 5 This is a comparison chart between the estimated value of the GRU track unevenness and the actual value of the track unevenness. Since the GRU model introduces a gating structure to constrain the hidden layer state, the GRU model can effectively alleviate the long-term dependency problem caused by long sequence data.

[0164] Figure 6 This is a comparison chart of the track irregularity estimation value and the actual track irregularity value of the LSTM model. Compared with the GRU, the LSTM model has more gated units and parameters, which leads to better prediction results for most sequence prediction problems. Figure 6 It can be seen that the detection results of LSTM have achieved good results at all track irregularity values.

[0165] Figure 7 The Transformer model proposed in the present invention has a structure that explicitly inputs the train posture data, which completely solves the long-term dependency problem in the sequence neural network. The encoder extracts features from the train spatial posture data to establish a correlation between it and the track unevenness state, and the decoder predicts the track unevenness state based on the data features obtained by the encoder. Such a step-by-step structure effectively improves the detection accuracy of the Transformer model. The comparison of the above experimental results verifies the effectiveness and feasibility of the Transformer method proposed in the present invention.

Claims

1. Track irregularity detection method based on Transformer, It is characterized in that Follow the steps below to implement it: Step 1: Obtain track irregularity data on the railway line and the corresponding train spatial posture data, process the data using the time window method and standardize the data, construct a track irregularity dataset, and divide the dataset into a training set, a validation set, and a test set in a ratio of 7:2:1; Step 2: Build a Transformer model and a lightweight decoder to train the parameters of the Transformer model. When the loss function of the model on the validation set reaches the minimum, record all the parameter values ​​of the current model. Step 3: Use the Transformer model to perform track irregularity detection on the test set data divided in step 1; Step 4: Construct evaluation indicators to evaluate and analyze the track unevenness detection results output by the Transformer model in step 3.

2. The track irregularity detection method based on Transformer according to claim 1, It is characterized in that The step 1 is specifically implemented according to the following steps: Step 1.1: Obtain the spatial posture data of the train on the railway line as X = {x 1 , x 2 , ..., x i , ..., x n }, x n is the nth sampling point of the train spatial posture data, i = 1, 2, ..., n, n is the total number of sampling points of the track inspection vehicle, and the track irregularity data is Y = {y 1 ,y 2 , ..., y i , ..., y n },y n is the nth sampling point in the track irregularity data; Step 1.2: Calculate the train spatial posture data X in step 1 respectively. 1 , x 2 , ..., x i , ..., x n } and track irregularity data Y = {y 1 ,y 2 , ..., y i , ..., y n The mean and standard deviation of} are: in, is the average value of the train space posture data; δ x is the standard deviation of the train spatial posture data; is the average value of track irregularity data; δ y is the standard deviation of track irregularity data; x i is the i-th data in the train spatial posture data; y i is the i-th data in the track irregularity data; Step 1.3: Perform data standardization on each data point in the train spatial attitude data and track irregularity data: Among them, x i Represents the i-th data in the train spatial posture data; y i represents the i-th data in the track irregularity data; Step 1.4, processing the standardized train spatial attitude data and track irregularity data using the time window method; Step 1.5: Divide the processed data into training set, validation set and test set in a ratio of 7:2:

1.

3. The track irregularity detection method based on Transformer according to claim 2, It is characterized in that The step 2 is specifically implemented according to the following steps: Step 2.1: Establish the Transformer model according to the hyperparameters set in Table 1. Table 1 Parameter setting table Step 2.2: The input train spatial posture data is first self-attentioned in the Transformer model: The vector X is transformed by different matrices W, where X is the spatial posture data of the train, and W is learned by the back propagation algorithm to obtain the Transformer parameters. QKV obtained by X matrix transformation refers to Query, Key and Value, which are three matrices transformed from the input matrix through three different linear transformation layers. The data correlation coefficient between X, i.e. the train space posture data, is obtained by multiplying the QK matrix: Attention output=Attention Weights·V (10) The correlation coefficient is multiplied by the transformation matrix V of X to obtain the result of the self-attention operation, where each output of self-Attention is the weighted sum of the matrix V, so that the Transformer can effectively take into account the sequence characteristics of the train space posture data: The output of self-Attention is processed with residual connection and layer normalization to obtain the final output of the Transformer single-layer encoder. The decoder then performs feature decoding on the encoder output and makes a final prediction of the track unevenness.

4. The track irregularity detection method based on Transformer according to claim 3, It is characterized in that The step 3 is specifically implemented according to the following steps: The trained Transformer model is used to detect samples in the test set to obtain the Transformer-based track unevenness detection results.

5. The track irregularity detection method based on Transformer according to claim 4, It is characterized in that The step 4 is specifically implemented according to the following steps: Based on the track irregularity detection results of the Transformer model obtained in step 3, combined with the true value of the track irregularity data in the test set in step 1, the MSE, MAE, RMSE and R 2 The evaluation parameters are used to evaluate the test results. The calculation formula is as follows: Among them, y true Refers to the actual track irregularity data, y pred Refers to the track irregularity state estimation value output by the Transformer model, and n is the total number of data points in the test set.

Citation Information

Cited By

  • High-speed rail system sliding layer peak displacement envelope curve and rail direction irregularity prediction method considering seismic oscillation and pier height uncertainty and application

    CN119598572A