A train coupler force prediction method, device, equipment, medium and product
By using the Transformer-GRU-MoE composite prediction model to process multi-source dynamic operating data, the problem of obtaining coupler force distribution information for heavy-haul trains was solved, achieving high-precision coupler force prediction and improving train operation safety.
Patent Information
- Application Number
- CN202611281501.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-21
- Publication Date
- 2026-11-20
AI Technical Summary
Existing technologies struggle to obtain information on the coupler force distribution of the entire train in heavy-haul trains. Traditional models are unable to accurately characterize the complex behavior of coupler forces. Data-driven methods have limited generalization ability under different coupler numbers and operating conditions, and lack a systematic preprocessing scheme for multi-source dynamic operating data.
A Transformer-GRU-MoE composite prediction model is adopted. By acquiring multi-source dynamic operation data for preprocessing, a sliding time window time series prediction sample is constructed. The coupler force is predicted by using the input embedding layer, the Transformer-GRU time series modeling module and the MoE hybrid expert prediction head. This solves the problems of data asynchrony and anomalies and realizes the fusion of global time series dependency and historical loading path.
It achieves high-precision prediction of the coupler force of the entire train, improves the average prediction accuracy and peak capture capability, enhances stability under different coupler positions and operating conditions, and supports the identification of longitudinal impulse risks and the assurance of operational safety.
Smart Images

Figure CN123138633A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the fields of rail transit and artificial intelligence technology, and in particular to a method, device, equipment, medium and product for predicting train coupler force. Background Technology
[0002] Accurate prediction of coupler force is crucial for identifying longitudinal impulse risks and ensuring train operation safety. During train operation, the magnitude of the coupler force directly reflects the train's longitudinal dynamic performance; excessive coupler force can lead to serious accidents such as coupler breakage and derailment. Especially under complex conditions such as downhill driving, traction, and braking of heavy-haul trains, the dynamic changes in coupler force are more drastic, placing higher demands on real-time monitoring and prediction.
[0003] Currently, the acquisition and prediction of train coupler forces mainly employ the following methods. First, direct measurement using sensors, i.e., directly measuring force by installing strain gauges or other force sensors on the actual couplers. However, due to the large number of cars in heavy-haul train formations (up to 200+), installing sensors on all couplers is costly, and the reliability and maintainability of sensors during long-term service are difficult to guarantee. In actual lines, only measured force data for some coupler positions are often obtained, making it difficult to obtain information on the entire train's coupler force distribution. Second, traditional dynamic mechanism models are used, i.e., calculating coupler forces by establishing longitudinal dynamic equations for the train and a vehicle-coupler physical model. These methods rely on precise physical parameters and boundary condition settings, but the coupler system has complex nonlinear mechanical characteristics (including hysteresis, dead zone characteristics, impact nonlinearity, etc.). In actual operation, train formations, track conditions, and operating commands are complex and variable, making it difficult for traditional mechanism models to accurately characterize these complex mechanical behaviors, thus limiting prediction accuracy. Third, in recent years, some research has begun to attempt to apply data-driven methods such as neural networks to coupler force prediction, but existing data-driven methods still have the following shortcomings.
[0004] In summary, the existing technologies have the following problems: a systematic preprocessing scheme for multi-source dynamic operational data is lacking, and the issues of time asynchrony and missing data between different types of data have not been effectively resolved; existing methods struggle to simultaneously capture the long-distance global temporal dependence of train operation status and the historical loading path dependence in coupler force response, resulting in insufficient characterization of coupler hysteresis; existing methods are unable to adaptively model the different response patterns of the dead zone and strong impact phases in coupler force response; and existing data-driven methods have limited generalization ability across different coupler numbers and under different operating command conditions, making it difficult to meet the needs of predicting the entire train's coupler force based on partial coupler observation data in practical engineering applications. Summary of the Invention
[0005] The purpose of this application is to provide a method, device, equipment, medium, and product for predicting train coupler forces. This method can solve the technical problems of difficulty in obtaining measured force data of all couplers of a train in actual lines, difficulty in balancing long-distance time-series dependence and hysteresis modeling in existing models, and difficulty in uniformly characterizing the segmented response characteristics of coupler forces. This method enables high-precision prediction of the coupler forces of the entire train using partial coupler observation data. It is superior to existing methods in terms of average prediction accuracy, peak capture capability, and prediction stability at different coupler positions, providing reliable technical support for identifying longitudinal impulse risks and ensuring operational safety of trains.
[0006] To achieve the above objectives, this application provides the following solution: Firstly, this application provides a method for predicting train coupler force, including: Acquire multi-source dynamic operation data during train operation. The multi-source dynamic operation data includes the traction force of the entire train, aerodynamic braking force, train speed, gradient resistance, relative displacement between vehicles, relative speed between vehicles, change in relative displacement, and measured coupler force data at some coupler positions. The multi-source dynamic operation data is preprocessed, including time synchronization processing and abnormal data processing. Based on the preprocessed multi-source dynamic operation data, a time series prediction sample is constructed using a sliding time window. The time series prediction sample contains preprocessed multi-source dynamic operation data from multiple consecutive times before the current prediction time. The time-series prediction sample is predicted using a pre-built Transformer-GRU-MoE composite prediction model, and the predicted value of the coupler force at the current moment is output. The Transformer-GRU-MoE composite prediction model includes an input embedding layer, a Transformer-GRU time series modeling module, a MoE hybrid expert prediction head, and an output layer. The input embedding layer maps the time-series prediction samples to a high-dimensional latent space and introduces position encoding to preserve the temporal order information in the time-series prediction samples; The Transformer-GRU temporal modeling module includes parallel Transformer branches and GRU branches. The Transformer branch extracts the global temporal dependency features of the temporal prediction samples through a multi-head self-attention mechanism. The GRU branch extracts the historical loading path dependency features of the temporal prediction samples through a gated loop structure. The outputs of the Transformer branch and the GRU branch are fused to obtain the fused temporal representation. The MoE hybrid expert prediction head includes a stable condition expert and an impact condition expert. The MoE hybrid expert prediction head dynamically allocates the weights of the stable condition expert and the impact condition expert according to the fused time-series representation through a gating network, and performs weighted fusion of the outputs of the stable condition expert and the impact condition expert to generate the corresponding coupler force prediction value, which is then output through the output layer.
[0007] Optionally, the time synchronization processing specifically includes: using a preset sampling period as a reference, synchronizing the traction force, air braking force, train speed, gradient resistance, relative displacement between vehicles, relative speed between vehicles, and relative displacement change in time, so that various operating state quantities at the same moment correspond to each other. The abnormal data processing specifically includes: for missing data, using linear interpolation, forward padding, or backward padding to fill in the missing data; for abnormal data points that exceed the physically reasonable range, using methods such as removal, amplitude limiting, or replacement with data from nearby time points.
[0008] Optionally, the time-series prediction sample is represented as: ; In the formula, t represents the current prediction time, T represents the time window length, and d represents the input feature dimension. Indicates time The input feature vector is represented as follows: ; In the formula, Indicates the traction force of the entire train. Indicates air braking force. Indicates train speed. Indicates ramp resistance. This indicates the relative displacement between vehicles. Indicates the relative speed between vehicles. It represents the amount of relative displacement change.
[0009] Optionally, in the input embedding layer, the time-series prediction samples are normalized and then projected to a high-dimensional latent space via a linear mapping: ; In the formula, This represents the input feature vector at time t. and For learnable parameters, This represents the high-dimensional feature representation after mapping; The position encoding is a sinusoidal position encoding: ; The fused timing sequence is represented as follows: ; The temporal prediction sample is processed by the input embedding layer to obtain the embedded sequence: ; In the formula, t represents the current prediction time, and T represents the length of the time window. Represents the dimension of the latent space; In the Transformer branch, for the embedded sequence The correlation between different time steps is calculated using a multi-head self-attention mechanism, and the output of the last time step is taken as the global temporal representation of the current prediction time. ; In the GRU branch, the embedded sequence is processed through a gated loop structure. We perform recursive modeling and take the final hidden state of the GRU as the representation of local path dependency. .
[0010] Optionally, fusing the output of the Transformer branch and the output of the GRU branch specifically includes: The output of the GRU branch is projected to the same dimensional space as the output of the Transformer branch by a linear mapping: ; In the formula, Represented by GRU projection, This is the weight matrix. This is the final hidden state of the GRU. It is the bias vector; The projected GRU representation is added to the output of the Transformer branch, and the fused temporal representation is obtained by layer normalization: ; In the formula, This is the fused temporal representation. For the output representation of Transformer, This is a layer normalization operation.
[0011] Optionally, the outputs of the steady-state expert and the shock condition expert are respectively expressed as: , ; In the formula, This is the fused temporal representation. For stable operating condition experts, For impact condition experts; The input to the gating network is represented as follows: ; In the formula, This represents the relative displacement at the current moment. This represents the relative velocity at the current moment. This represents the change in relative displacement at the current moment; Gating network according to Generate the weights for the steady-state expert and the shock condition expert: ; In the formula, and Let represent the weights of the steady-state expert and the shock condition expert, respectively, and satisfy . ; The predicted coupler force at the current moment is: .
[0012] Secondly, this application provides a train coupler force prediction device, comprising: The data acquisition module is used to acquire multi-source dynamic operation data during train operation. The multi-source dynamic operation data includes the traction force of the whole train, the aerodynamic braking force, the train speed, the gradient resistance, the relative displacement between vehicles, the relative speed between vehicles, the change in relative displacement, and the measured coupler force data of some coupler positions. The data preprocessing module is used to preprocess the multi-source dynamic running data, and the preprocessing includes time synchronization processing and abnormal data processing. The sample construction module is used to construct time series prediction samples based on preprocessed multi-source dynamic running data using a sliding time window. The time series prediction samples contain preprocessed multi-source dynamic running data from multiple consecutive times before the current prediction time. The prediction module is used to predict the time-series prediction sample using a pre-built Transformer-GRU-MoE composite prediction model and output the predicted value of the coupler force at the current moment. The Transformer-GRU-MoE composite prediction model includes an input embedding layer, a Transformer-GRU time series modeling module, a MoE hybrid expert prediction head, and an output layer. The input embedding layer maps the time-series prediction samples to a high-dimensional latent space and introduces position encoding to preserve the temporal order information in the time-series prediction samples; The Transformer-GRU temporal modeling module includes parallel Transformer branches and GRU branches. The Transformer branch extracts the global temporal dependency features of the temporal prediction samples through a multi-head self-attention mechanism. The GRU branch extracts the historical loading path dependency features of the temporal prediction samples through a gated loop structure. The outputs of the Transformer branch and the GRU branch are fused to obtain the fused temporal representation. The MoE hybrid expert prediction head includes a stable condition expert and an impact condition expert. The MoE hybrid expert prediction head dynamically allocates the weights of the stable condition expert and the impact condition expert according to the fused time-series representation through a gating network, and performs weighted fusion of the outputs of the stable condition expert and the impact condition expert to generate the corresponding coupler force prediction value, which is then output through the output layer.
[0013] Thirdly, this application provides a computer device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the train coupler force prediction method described in any one of the above.
[0014] Fourthly, this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the train coupler force prediction method described above.
[0015] Fifthly, this application provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the train coupler force prediction method described above.
[0016] According to the specific embodiments provided in this application, the following technical effects are disclosed: This application provides a method, device, equipment, medium, and product for predicting train coupler force. By acquiring multi-source dynamic operation data during train operation, it solves the problem of insufficient information caused by traditional solutions relying on a single data source or simplified physical models. It provides a rich and complementary multi-source information foundation for subsequent time-series modeling, enabling the model to perceive the train's operating status from multiple dimensions. Through time synchronization processing and anomaly processing of the multi-source dynamic operation data, it solves the problems of inconsistent sampling frequencies from different sources and data loss or anomalies during sensor acquisition. It achieves alignment and quality assurance of multi-source data in the time dimension, providing clean and reliable data input for subsequent sliding window sample construction. To avoid data quality issues affecting model prediction accuracy, a sliding time window approach is used to construct a time-series prediction sample containing preprocessed data from multiple consecutive moments preceding the current prediction moment. This addresses the problem that a single-moment input cannot reflect the continuous propagation of longitudinal impulses between vehicles, integrating historical operating states and loading path information into the model input. This allows subsequent modules to predict coupler forces based on continuous temporal dependencies, providing a data foundation for characterizing coupler hysteresis characteristics. Furthermore, an input embedding layer maps the time-series prediction sample to a high-dimensional latent space and introduces positional encoding, resolving the issue of different physical dimensions in the original multi-source data and the potential loss of temporal sequence information during subsequent attention calculations. This paper addresses the problem of unifying heterogeneous physical features into a comparable feature space while preserving temporal location information. This enables the model to distinguish the importance of features at different times, providing a normalized, temporally labeled input representation for the Transformer branch to effectively capture long-distance temporal dependencies. By extracting global temporal dependency features and historical loading path dependency features through parallel Transformer and GRU branches, and then fusing them, the paper solves the problem that a single model architecture cannot simultaneously take into account the two key factors of the global evolution of train operation status and the memory of coupler loading paths. This achieves complementary expression of global operation status information and historical loading path information, so that the fused temporal representation includes self-attention. The model captures long-distance dependencies in force capture (characterizing changes in the overall train's operating state) and includes historical path memory retained by gating cycles (characterizing coupler hysteresis). By dividing the roles of stable condition experts and impact condition experts in the MoE hybrid expert prediction head and dynamically allocating their weights based on the fused temporal representation through the gating network, the problem that a single prediction model cannot simultaneously adapt to the different response patterns of the coupler force dead zone stage and the strong impact stage is solved. This enables the model to adaptively select the most suitable expert for dominant prediction based on the current operating state, allowing the model to output stable results by relying on stable experts under stable conditions and switch to impact experts to accurately capture rapid changes under impact conditions, significantly improving prediction accuracy and adaptability to complex conditions. Attached Figure Description
[0017] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0018] Figure 1 This is an application environment diagram of a train coupler force prediction method according to an embodiment of this application; Figure 2 A flowchart illustrating a train coupler force prediction method provided in an embodiment of this application; Figure 3 This is a structural diagram of the Transformer-GRU-MoE composite prediction model in one embodiment of this application; Figure 4 This is a comparison chart of the prediction performance of different models on the test set in one embodiment of this application; Figure 5 A comparison chart of the performance contributions of each module in the ablation experiment in one embodiment of this application; Figure 6 A schematic diagram of the functional modules of a train coupler force prediction device provided in an embodiment of this application; Figure 7 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation
[0019] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0020] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0021] The train coupler force prediction method provided in this application embodiment can be applied to, for example... Figure 1In the application environment shown, the data acquisition system 102 communicates with the server 104 via a network. The data storage system can store the data that the server 104 needs to process. The data storage system can be set up independently, integrated into the server 104, or placed in the cloud or on another server. The data acquisition system 102 can send the collected multi-source dynamic operation data during train operation to the server 104. After receiving the multi-source dynamic operation data, the server 104 preprocesses the data, constructs time-series prediction samples using a sliding time window based on the preprocessed data, and predicts the time-series prediction samples using a pre-built Transformer-GRU-MoE composite prediction model, outputting the predicted value of the coupler force at the current moment. The server 104 can feed back the obtained coupler force prediction value to the data acquisition system 102 or the train operation monitoring terminal. In addition, in some embodiments, the train coupler force prediction method can also be implemented by the server 104 or the data acquisition system 102 alone. For example, the on-board computing device built into the data acquisition system 102 can directly perform coupler force prediction processing on the collected multi-source dynamic operation data, or the server 104 can obtain multi-source dynamic operation data during train operation from the data storage system and perform coupler force prediction processing on the multi-source dynamic operation data.
[0022] The data acquisition system 102 may include, but is not limited to, various sensors and data recording devices installed on the train, such as a locomotive control system for collecting traction and braking forces, a speed sensor for collecting train speed, a positioning and track data unit for collecting gradient resistance, displacement and speed sensors for collecting relative displacement and relative speed between vehicles, and force sensors installed at some coupler locations. The data acquisition system 102 can aggregate data from various sensors via an onboard network (such as MVB, Ethernet, etc.) and has data storage and communication transmission functions. The server 104 can be a standalone server in a ground data center, a server cluster consisting of multiple servers, or a cloud server. It has data storage and computing capabilities and is used to perform inference and training tasks for the coupler force prediction model.
[0023] In one exemplary embodiment, such as Figure 2 As shown, a method for predicting train coupler force is provided. This method is executed by computer equipment, specifically by an onboard computing device or a ground data center server, or by both (e.g., the onboard device performs data acquisition and preprocessing, while the ground server performs model inference and prediction). In this embodiment, the method is applied to... Figure 1Taking server 104 as an example, the explanation includes the following steps 201 to 204. Wherein: Step 201: Obtain multi-source dynamic operation data during train operation. The multi-source dynamic operation data includes the traction force of the entire train, aerodynamic braking force, train speed, gradient resistance, relative displacement between vehicles, relative speed between vehicles, change in relative displacement, and measured coupler force data at some coupler positions. Specifically, taking a 20,000-ton heavy-haul train in China as an example, the train adopts a (1+1) type formation, with a total of 211 couplers. The data obtained includes the overall traction force of the train (including electric braking force information), air braking force, train speed, gradient resistance, relative displacement between vehicles, relative speed, change in relative displacement, and measured coupler force data at some coupler positions. Among them, the overall train traction force can be read from the locomotive control system, reflecting the current output traction force of the locomotive; the air braking force can be obtained from the train pipe pressure monitoring system; the train speed is represented by the locomotive speed, and when there are two locomotive speed records, the average of the two is taken; the gradient resistance is calculated based on the train positioning information and the longitudinal profile data of the track; the relative displacement and relative speed between vehicles are obtained through displacement sensors and speed sensors installed at the couplers; the measured coupler force data are obtained through strain gauge force sensors installed at some coupler positions, serving as supervision labels during the training phase of the Transformer-GRU-MoE composite prediction model (Transformer model - Gated Recurrent Unit - Mixture of Experts model), and the remaining data serve as input features of the Transformer-GRU-MoE composite prediction model.
[0024] Step 202: Preprocess the multi-source dynamic operation data, including time synchronization processing and abnormal data processing; As an optional implementation method, time synchronization processing specifically includes: using a preset sampling period as a reference, synchronizing the traction force, air braking force, train speed, gradient resistance, relative displacement between vehicles, relative speed between vehicles, and relative displacement change in time, so that various operating state quantities at the same moment correspond to each other. Abnormal data processing specifically includes: for missing data, using linear interpolation, forward padding, or backward padding to fill in the missing data; for abnormal data points that exceed the physically reasonable range, using methods such as removal, amplitude limiting, or replacement with data from nearby time points.
[0025] Specifically, since the sampling frequencies and timestamps of data from different sources may differ, time synchronization processing is required. Using a preset sampling period (e.g., 1Hz) as a benchmark, the traction force, aerodynamic braking force, train speed, gradient resistance, relative displacement between vehicles, relative speed between vehicles, and changes in relative displacement of the entire train are synchronized in time, ensuring that various operational state quantities correspond to each other at the same moment. For data with a sampling frequency higher than the preset period, downsampling is used; for data with a sampling frequency lower than the preset period, interpolation is used to fill in the gaps.
[0026] For missing and outlier values in the data, anomaly handling is required. For short-term missing data (such as single-point missing data), linear interpolation can be used to fill in the missing data, i.e., linear interpolation is performed using data from before and after the missing point. For consecutive small-scale missing data, forward or backward filling can be used. For outlier data points that clearly exceed the physical reasonable range (such as traction force exceeding the locomotive's maximum traction force range, relative speed exceeding physical limits, etc.), methods such as removal, amplitude limiting, or replacement with data from adjacent time points can be used.
[0027] Let the current prediction time be t, and the input time window length be T (e.g., T=64), then any time within the window can be represented as: , .
[0028] Step 203: Based on the preprocessed multi-source dynamic running data, a time series prediction sample is constructed using a sliding time window. The time series prediction sample contains preprocessed multi-source dynamic running data from multiple consecutive times before the current prediction time. As an optional implementation, the time-series prediction sample is represented as follows: ; In the formula, t represents the current prediction time, T represents the time window length, and d represents the input feature dimension. Indicates time The input feature vector is represented as: ; In the formula, Indicates the traction force of the entire train. Indicates air braking force. Indicates train speed. Indicates ramp resistance. This indicates the relative displacement between vehicles. Indicates the relative speed between vehicles. It represents the amount of relative displacement change.
[0029] Specifically, after preprocessing the multi-source data, a sliding time window approach is used to construct coupler force prediction samples. Coupler force is determined not only by the current traction force, aerodynamic braking force, train speed, gradient resistance, and relative motion between vehicles, but also by historical operating conditions and historical loading paths. Therefore, the input features from multiple consecutive time points prior to the current prediction time are used as input to the Transformer-GRU-MoE composite prediction model to characterize the temporal dependencies and hysteresis characteristics in coupler force prediction.
[0030] Set the length of the sliding window to T (e.g., T = 64 time steps), and slide it across the time series data with a fixed step size (e.g., step size 1). The data within each window serves as the input for a training sample. The input time window at the current time t is represented as... The Transformer-GRU-MoE composite prediction model predicts the coupler force at the current moment, meaning the model is based on historical time windows. Output the predicted coupler force at time t. .
[0031] Step 204: The time-series prediction sample is predicted using the pre-built Transformer-GRU-MoE composite prediction model, and the predicted value of the coupler force at the current moment is output. The Transformer-GRU-MoE composite prediction model includes an input embedding layer, a Transformer-GRU time series modeling module, a MoE hybrid expert prediction head, and an output layer. Specifically, after completing the multi-source operational data processing and time-series sample construction, a Transformer-GRU-MoE composite prediction model is further constructed. The overall structure of the Transformer-GRU-MoE composite prediction model is as follows: Figure 3 As shown. The data flow of the model and the functions of each module are as follows: (a) Input Embedding Layer The input embedding layer maps the temporal prediction samples to a high-dimensional latent space and introduces position encoding to preserve the temporal order information in the temporal prediction samples; As an optional implementation, in the input embedding layer, the time-series prediction samples are normalized and then projected to a high-dimensional latent space through a linear mapping: ; In the formula, This represents the input feature vector at time t. and For learnable parameters, This represents the high-dimensional feature representation after mapping; Position encoding is sinusoidal position encoding: ; The fused timing sequence is represented as follows: ; The temporal prediction samples are processed by the input embedding layer to obtain the embedded sequence: ; In the formula, t represents the current prediction time, and T represents the length of the time window. Represents the dimension of the latent space; In the Transformer branch, for embedded sequences The correlation between different time steps is calculated using a multi-head self-attention mechanism, and the output of the last time step is taken as the global temporal representation of the current prediction time. ; In the GRU branch, the embedded sequence is processed through a gated loop structure. We perform recursive modeling and take the final hidden state of the GRU as the representation of local path dependency. .
[0032] (ii) Transformer-GRU Temporal Modeling Module The Transformer-GRU temporal modeling module includes parallel Transformer and GRU branches. The Transformer branch extracts global temporal dependency features of temporal prediction samples through a multi-head self-attention mechanism; the GRU branch extracts historical loading path dependency features of temporal prediction samples through a gated loop structure; the outputs of the Transformer branch and the GRU branch are fused to obtain the fused temporal representation. Specifically, in obtaining the embedded sequence Subsequently, two key temporal characteristics in coupler force prediction are further characterized. One is the global temporal dependency caused by changes in the overall train's operating state—the overall train variables do not only affect the current force but also cause longitudinal impulses to propagate continuously between vehicles, gradually influencing the coupler force at subsequent moments, resulting in a long-distance dependency between the current coupler force and historical operating states. The other is that coupler force also exhibits hysteresis; even with the same current compression, the coupler force may still differ due to different historical paths. To simultaneously model both global temporal dependency and coupler hysteresis, this embodiment constructs a Transformer-GRU temporal modeling module.
[0033] In the Transformer branch, for the input sequence The correlation between different time points within the input window is calculated using a multi-head self-attention mechanism. For the input sequence... Its query matrix Q, key matrix K, and value matrix V are represented as follows: , , ; In the formula, Indicates the weight of the query matrix. Represents the weights of the key matrix. Represents the weights of the value matrix.
[0034] Self-attention is calculated as follows: ; In the formula, This represents the dimension of the key vector.
[0035] Through multi-head attention, feedforward networks, residual connections, and layer normalization structures, the Transformer branch can extract a global representation reflecting the evolution of the entire train's operating state. After encoding by the Transformer Encoder, the output of the last time step is taken as the global temporal representation of the current prediction time. : ; In parallel with the Transformer branch, GRU processes the input sequence through a gated loop structure. By performing recursive modeling, its hidden state update can be represented as: ; in, Let be the cyclic hidden state at time t. The GRU's gating mechanism selectively retains historical path information relevant to the current prediction during the time-series recursion, enabling the model to distinguish the coupler force response formed by different tension and compression processes. The final hidden state of the last layer of the GRU is taken as the local path dependency representation: .
[0036] As an optional implementation, the outputs of the Transformer branch and the GRU branch are merged, specifically including: The output of the GRU branch is projected to the same dimensional space as the output of the Transformer branch by a linear mapping: ; In the formula, Represented by GRU projection, This is the weight matrix. This is the final hidden state of the GRU. It is the bias vector; The projected GRU representation is added to the output of the Transformer branch, and the fused temporal representation is obtained through layer normalization: ; In the formula, This is the fused temporal representation. For the output representation of Transformer, This is a layer normalization operation.
[0037] Specifically, this fusion method enables the global runtime state information extracted by the Transformer and the historical loading path information retained by the GRU to be complementary in the same latent space. The layer normalization operation standardizes the fused features, making their mean 0 and variance 1, which helps stabilize the training process and accelerate convergence.
[0038] (III) MoE Hybrid Expert Prediction Head The MoE hybrid expert prediction head includes a stable condition expert and an impact condition expert. The MoE hybrid expert prediction head dynamically allocates the weights of the stable condition expert and the impact condition expert based on the fused time series representation through a gating network, and performs weighted fusion of the outputs of the stable condition expert and the impact condition expert to generate the corresponding coupler force prediction value, which is then output through the output layer.
[0039] As an optional implementation, the outputs of the steady-state condition expert and the shock condition expert are respectively expressed as: , ; In the formula, This is the fused temporal representation. For stable operating condition experts, For impact condition experts; The input to the gating network is represented as follows: ; In the formula, This represents the relative displacement at the current moment. This represents the relative velocity at the current moment. This represents the change in relative displacement at the current moment; Gating network according to Weights for generating steady-state and shock condition experts: ; In the formula, and Let represent the weights of the steady-state expert and the shock-state expert, respectively, and satisfy . ; The predicted value of the coupler force at the current moment is: .
[0040] Specifically, the coupler force response exhibits a distinct piecewise response characteristic. The coupler does not immediately produce a significant force response during the initial tension or compression phase; instead, it enters a rapid force change phase only after the relative motion exceeds a certain range, displaying a piecewise response from the dead zone to the strong impact phase. To address this characteristic, a MoE hybrid expert prediction head is introduced after the Transformer-GRU time-series modeling module, with different experts characterizing different phases. The steady-state expert is primarily used to model the coupler force dead zone phase; the impact expert is primarily used to model the strong impact phase. When the input sample exhibits relatively weak motion, the gating network tends to assign higher weights to the steady-state expert, causing the model to primarily predict based on the dead zone phase. When the input sample exhibits increasing relative velocity, the gating network increases the weights of the impact expert, causing the model to pay more attention to strong impact changes.
[0041] Implementing steps 201 to 204 addresses the problem of insufficient information caused by traditional solutions relying on a single data source or simplified physical models. It provides a rich and complementary multi-source information foundation for subsequent time-series modeling, enabling the model to perceive train operation status from multiple dimensions. It also resolves issues of inconsistent sampling frequencies from different data sources and data loss or anomalies during sensor acquisition, achieving alignment and quality assurance of multi-source data in the time dimension. This provides clean and reliable data input for subsequent sliding window sample construction, avoiding the impact of data quality issues on model prediction accuracy. Furthermore, it addresses the problem that a single-moment input cannot reflect the continuous propagation of longitudinal impulses between vehicles, integrating historical operating status and historical loading path information into the model input. This allows subsequent modules to predict coupler forces based on continuous temporal dependencies, providing a data foundation for characterizing coupler hysteresis characteristics. By mapping time-series prediction samples to a high-dimensional latent space and introducing positional encoding through the input embedding layer, it solves the problem that original multi-source data have different physical dimensions and that temporal sequence information may be lost in subsequent attention calculations. This unifies heterogeneous physical features into a comparable feature space while preserving temporal positional information, enabling the model to distinguish the importance of features at different times. This approach provides a normalized, time-identified input representation for the Transformer branch to effectively capture long-range temporal dependencies. By extracting global temporal dependency features and historical loading path dependency features through parallel Transformer and GRU branches, and then fusing them, it addresses the challenge of a single model architecture simultaneously considering both the global evolution of train operation status and the memory of coupler loading paths. This achieves complementary representation of global operation status information and historical loading path information, ensuring that the fused temporal representation includes both the long-range dependencies captured by self-attention (characterizing changes in the overall train operation status) and the historical loading path information. The gating loop retains historical path memory (characterizing coupler hysteresis); by dividing the roles of stable condition experts and impact condition experts in the MoE hybrid expert prediction head and dynamically allocating their weights based on the fused temporal representation through the gating network, the problem that a single prediction model cannot simultaneously adapt to the different response patterns of the coupler force dead zone stage and the strong impact stage is solved. It realizes the adaptive selection of the most suitable expert for dominant prediction based on the current operating state, so that the model relies on the stable expert to output stable results under stable conditions, and switches to the impact expert to accurately capture rapid changes under impact conditions, significantly improving prediction accuracy and adaptability to complex conditions.
[0042] In one exemplary embodiment, during the training phase, the actual coupler force is measured. As a supervisory signal, the parameters of the Transformer-GRU-MoE composite prediction model are optimized end-to-end. This embodiment employs a composite loss function consisting of a weighted mean square error term, a gradient consistency constraint term, and an expert equilibrium constraint term. The overall loss can be expressed as: ; In the formula, This is the error term for predicting the coupler force amplitude. For gradient consistency constraints, For the MoE expert weight balance term, , and This corresponds to the weighting coefficient. In this embodiment, the weighting coefficient is set to... , , .
[0043] The amplitude error term is used to constrain the difference between the predicted coupler force and the actual coupler force. Its form is: ; In the formula, N is the number of training samples. Assign sample weights. For impact samples or peak samples, assign higher weights (e.g., ...). This allows the model to focus more on rapid changes in coupler force and large-scale response regions during training, thereby improving peak prediction and impact capture capabilities; for ordinary samples, the weights remain unchanged. .
[0044] The gradient consistency term is used to constrain the consistency between the predicted and actual results in terms of their changing trends. Let the coupler force at the previous moment be... The predicted change and the actual change are expressed as follows: ; ; The gradient consistency loss is represented by the Huber loss as follows: ; Huber loss combines the advantages of mean squared error and mean absolute error. It behaves as mean squared error when the error is small and as mean absolute error when the error is large, and has better robustness to outliers.
[0045] To prevent the MoE gating network from being biased towards one expert in the long term, thus hindering the training of the other expert, an expert equilibrium constraint is introduced. Let the average gating probabilities of the steady-state and shock-state experts within a batch be respectively... and The expert equilibrium loss can then be expressed as: + .
[0046] The loss function takes a larger value when the gating probability is biased towards a certain expert, which encourages the gating network to maintain a relatively balanced distribution between the two experts.
[0047] The Adam optimizer is used during training, and the initial learning rate is set to... A cosine annealing learning rate scheduling strategy was adopted. The batch size was set to 64, and the number of training epochs was 200. An early stopping strategy was used to prevent overfitting. All input features and target values were standardized based on the training set, and the same standardization parameters were applied to both the validation and test sets to avoid leakage of test information.
[0048] This application also provides an application scenario in which the above-mentioned train coupler force prediction method is applied. Specifically, the train coupler force prediction method provided in this embodiment can be applied in train operation safety monitoring scenarios. Multi-source dynamic operation data during train operation enters the data processing link from the data acquisition stage. After data preprocessing and model inference prediction, the predicted force values of each coupler position of the entire train are obtained and then enter the downstream operation safety early warning and auxiliary operation stages. The train coupler force prediction method provided in this embodiment belongs to the intelligent prediction stage in train longitudinal dynamics safety monitoring. Specifically, in the process of train operation safety monitoring, the train coupler force can be predicted and evaluated based on a collaborative approach of model prediction and traditional mechanism model verification. That is, the predicted coupler force output by the Transformer-GRU-MoE composite prediction model provides longitudinal impulse risk early warning information and auxiliary decision-making basis for train drivers and dispatching systems. During train operation, the data acquisition system collects multi-source dynamic operating data in real time, including traction force, aerodynamic braking force, train speed, gradient resistance, relative displacement and relative speed between vehicles. After time synchronization and abnormal data cleanup, a time-series prediction sample is constructed through a sliding time window. The Transformer-GRU-MoE composite prediction model outputs the predicted force value of each coupler position at the current moment. When the predicted coupler force exceeds the preset threshold, an early warning signal is triggered, prompting the driver to take corresponding control and adjustment measures.
[0049] To verify the effectiveness of the train coupler force prediction method proposed in this application, it was validated using actual operating data of a 20,000-ton heavy-haul train.
[0050] The experimental data comes from the actual line operation records of a 20,000-ton heavy-haul train. The train adopts a (1+1) type formation, with a total of 211 couplers. This application selects the complete operation data of the train within a certain "two stations and one section" as the research object. This section corresponds to the train's downhill operation on a steep track with a gradient of approximately -10‰. Within this operating section, the operating commands cover various typical operation processes, including electric braking, combined application of electric and air braking, air braking alone, and release, which can better reflect the complex changes in coupler force during the downhill operation of a heavy-haul train.
[0051] For the training set, samples with coupler numbers 30-60 from a single complete run within this interval were selected as training data. To evaluate the model's generalization ability under training conditions with only some coupler numbers, this application constructs test sets from two dimensions: different coupler numbers and different operating commands. The first type of test set comes from the same batch of running data as the training set, but selects coupler numbers 61-83, which were not included in the training, as test objects to evaluate the model's generalization ability to different coupler numbers. The second and third types of test sets both come from different batches of running data within the same running interval, with operating commands differing from the training set, including changes in braking initiation position, braking force magnitude, and release position, mainly used to evaluate the model's generalization ability to different operating commands. Among them, the data distribution of the second type of test set is relatively similar to that of the training set; the data distribution of the third type of test set differs more from that of the training set. The specific dataset division is shown in Table 1.
[0052] Table 1 Dataset Partitioning
[0053] This embodiment uses MAE (mean absolute error), RMSE (root mean square error), and R... 2 The coefficient of determination (MAE) and accuracy within the error tolerance (ACC) measure the predictive ability of a model. MAE represents the mean absolute error, reflecting the average deviation between predicted and actual values; RMSE is more sensitive to larger errors and can be used to measure the predictive stability of the model under large error conditions; R... 2 The coefficient of determination measures the overall fit of the model to the actual changes in coupler force; the ACC describes the proportion of prediction results that meet a given error tolerance, reflecting the model's effective prediction ability within the allowable error range of engineering.
[0054] The final prediction results contain a large number of prediction samples across multiple coupler numbers and multiple time steps, summarized using both mean and quantile methods. Within each coupler number, MAE, RMSE, and R are first calculated based on the multi-time-step prediction results for that coupler. 2 Evaluation results at the single-coupler level were obtained using indicators such as ACC. Subsequently, the single-coupler indicators were summarized across multiple coupler numbers, where mean reflects the average prediction level of all tested couplers, and P95 (95% of the data are less than or equal to this value, and only 5% of the data are greater than this value) or P05 (5% of the data are less than or equal to this value, and 95% of the data are greater than this value) reflects the model's poor sample performance at different coupler positions.
[0055] This embodiment sets up a traditional mechanistic model and multiple data-driven models as comparative baselines. The data-driven baseline models include MLP, LSTM, GRU, Transformer, and TFT models. MLP is used to test the basic fitting ability of non-temporally feedforward networks in this task; LSTM and GRU are used to evaluate the modeling effect of recurrent neural networks; Transformer is used to verify the modeling ability of self-attention mechanisms; and the TFT model serves as a strong temporal prediction baseline combining recurrent structures and attention mechanisms. The Transformer-GRU-MoE composite prediction model (denoted as Full) proposed in this application is used to comprehensively evaluate the joint effect of self-attention mechanism modeling, hysteresis characterization, and piecewise response modeling.
[0056] This embodiment employs the same data preprocessing procedure, input features, training set, validation set, test set partitioning, and evaluation metrics for all neural network models. Input features uniformly include traction force, aerodynamic braking force, train speed, gradient resistance, relative displacement, relative speed, and change in relative displacement. The prediction target is uniformly the coupler force. All input features and target values are standardized based on the training set, and the same standardized parameters are applied to the validation and test sets to avoid leakage of test information.
[0057] Except for traditional mechanistic models, all data-driven models are tuned within the same hyperparameter search space, as shown in Table 2. Some models do not directly use all hyperparameters, but still sample the same set of hyperparameters under a unified search framework.
[0058] Table 2 Unified Hyperparameter Search Space for Data-Driven Models
[0059] Based on the aforementioned fairness settings, this application performs 50 parameter optimizations on each data-driven model within a unified hyperparameter search space, and selects the model configuration with the optimal MAE on the validation set for testing. The comprehensive prediction results of different models on the five test sets are shown in Table 3.
[0060] Table 3. Overall prediction results of different models on the test set.
[0061] As shown in Table 3, the proposed Transformer-GRU-MoE composite prediction model (Full) achieves optimal results on most evaluation metrics. Compared to the basic Transformer model, its MAE and RMSE are reduced by 2.17% and 5.15%, respectively, and the coefficient of determination R0 is [missing value]. 2The performance index was improved to 0.862. Among adverse sample metrics, the proposed model showed a significant reduction of 20.31% in MAE_P95 compared to the Transformer model, and R0 was also improved. 2 _P05 showed a significant improvement of 51.87%. The above quantitative indicators fully demonstrate that the model can not only improve the average prediction accuracy, but also improve the prediction stability at different coupler positions.
[0062] Comparison of prediction performance of different models on the test set, for example Figure 4 As shown. To enhance the representativeness of the results, this application selects Test3 as the data source for visualization. To avoid bias caused by only showing the best sample, this application selects couplers with MAE close to the median of all tested couplers in this test set as the visualization objects, making the prediction curves more typical and representative.
[0063] from Figure 4 It can be seen that all models can track the changes in coupler force to a certain extent. However, during the rapid rise and fall of coupler force, some baseline models still do not adequately characterize the transient changes and are prone to amplitude deviation. In contrast, the prediction curve of the Transformer-GRU-MoE composite prediction model proposed in this application is closer to the actual coupler force curve and can more accurately reflect the dynamic changes of coupler force under complex working conditions.
[0064] To further verify the independent contributions and combined effects of each component module in the Transformer-GRU-MoE composite prediction model on the coupler force prediction performance, this application sets up four ablation models: Transformer-only (denoted as "Transformer"), Transformer+GRU (denoted as "Transformer-GRU"), Transformer+MoE (denoted as "Transformer-MoE"), and the full model (Transformer-GRU-MoE). The ablation experiments used the optimal parameter configuration of the model compared to the aforementioned comparative experiments. The comprehensive results of the ablation experiment test set are shown in Table 4.
[0065] Table 4. Overall results of the ablation test set aggregation
[0066] As shown in Table 4, the Transformer baseline model relying solely on the self-attention mechanism performs relatively poorly across all metrics, while the Transformer-GRU-MoE composite prediction model, which includes all modules, achieves optimal performance across all evaluation metrics. The performance contribution of each module in the ablation experiments is compared as follows: Figure 5As shown, the test sets exhibit a relatively consistent trend. Removing the MoE module (Transformer-GRU vs Full) increases the model's MAE and RMSE by 3.16% and 2.52%, respectively; while removing the GRU module (Transformer-MoE vs Full) causes a dramatic increase in MAE and RMSE of 9.83% and 8.12%, respectively. The ablation experiment results fully validate the independent contributions of each component module. The GRU branch plays a crucial role in characterizing the coupler hysteresis characteristics, while the MoE module makes a significant contribution to improving the ability to model piecewise responses.
[0067] This application conducts an extended experiment on the selection of training coupler numbers to examine the impact of different training samples on the model's generalization ability. Based on actual engineering requirements, this application fixes the number of training couplers in each group at 54, setting up five training schemes. G1 selects couplers 1-54, representing the head section of the train; G2 selects couplers 54-107, representing the front-middle section; G3 selects couplers 105-158, representing the rear-middle section; G4 selects couplers 158-211, representing the tail section; G5 performs equally spaced distributed sampling across couplers 1-211 throughout the entire train to examine the impact of sampling across the entire train's positions on the model's generalization performance. For each training coupler selection scheme, the model is trained using only the data from this group of 54 couplers and tested on the remaining couplers not included in this group's training.
[0068] This experiment consistently uses the complete Transformer-GRU-MoE composite prediction model, employing the same input features, standardization methods, sliding window construction, training strategies, and evaluation metrics as described above. It should be noted that, due to the relatively small fluctuations in the actual force values of some couplers, R... 2 It is susceptible to extreme values, therefore, this application uses R in this experiment. 2 Statistical analysis was conducted using samples within the 5%-95th percentile range. The overall prediction results for different training coupler sections are shown in Table 5.
[0069] Table 5 Overall prediction results for different training coupler sections
[0070] As shown in Table 5, G5 achieves the best prediction performance when using equally spaced sampling across the entire column (MAE = 18.092, RMSE = 27.252, R...). 2The error was 0.873, and the ACC was 0.901. In comparison, when continuous sections were selected as training samples, G3 and G4 performed better than G1, while G2's error increased significantly (MAE as high as 131.653). Therefore, under the condition of limited number of sensors, it is more advantageous to use a distributed arrangement throughout the train; if a continuous arrangement is the only option, the coupler section from the middle and rear to the tail should be prioritized to obtain better prediction results for the coupler force of the entire train.
[0071] Based on the same inventive concept, this application also provides a train coupler force prediction device for implementing the train coupler force prediction method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations of one or more train coupler force prediction device embodiments provided below can be found in the limitations of the train coupler force prediction method described above, and will not be repeated here.
[0072] In one exemplary embodiment, such as Figure 6 As shown, a train coupler force prediction device is provided, comprising: The data acquisition module is used to acquire multi-source dynamic operation data during train operation. The multi-source dynamic operation data includes the traction force of the whole train, the aerodynamic braking force, the train speed, the gradient resistance, the relative displacement between vehicles, the relative speed between vehicles, the change in relative displacement, and the measured coupler force data at some coupler positions. The data preprocessing module is used to preprocess multi-source dynamic running data. Preprocessing includes time synchronization processing and abnormal data processing. The sample construction module is used to construct time series prediction samples based on preprocessed multi-source dynamic running data using a sliding time window. The time series prediction samples contain preprocessed multi-source dynamic running data from multiple consecutive time points before the current prediction time. The prediction module is used to predict time-series prediction samples using a pre-built Transformer-GRU-MoE composite prediction model and output the predicted value of the coupler force at the current moment. The Transformer-GRU-MoE composite prediction model includes an input embedding layer, a Transformer-GRU time series modeling module, a MoE hybrid expert prediction head, and an output layer. The input embedding layer maps the temporal prediction samples to a high-dimensional latent space and introduces position encoding to preserve the temporal order information in the temporal prediction samples; The Transformer-GRU temporal modeling module includes parallel Transformer and GRU branches. The Transformer branch extracts global temporal dependency features of temporal prediction samples through a multi-head self-attention mechanism; the GRU branch extracts historical loading path dependency features of temporal prediction samples through a gated loop structure; the outputs of the Transformer branch and the GRU branch are fused to obtain the fused temporal representation. The MoE hybrid expert prediction head includes a stable condition expert and an impact condition expert. The MoE hybrid expert prediction head dynamically allocates the weights of the stable condition expert and the impact condition expert based on the fused time series representation through a gating network, and performs weighted fusion of the outputs of the stable condition expert and the impact condition expert to generate the corresponding coupler force prediction value, which is then output through the output layer.
[0073] In one exemplary embodiment, a computer device is provided, which may be a server or a terminal, and its internal structure diagram may be as follows. Figure 7 As shown, this computer device includes a processor, memory, input / output (I / O) interfaces, and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operating system and computer programs stored in the non-volatile storage media. The database stores multi-source dynamic operating data, historical coupler force data, etc. The I / O interfaces are used for information exchange between the processor and external devices. The communication interface is used for communication with external terminals via a network connection. When the computer program is executed by the processor, it implements a train coupler force prediction method.
[0074] Those skilled in the art will understand that Figure 7 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0075] In one exemplary embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.
[0076] In one exemplary embodiment, a computer-readable storage medium is provided storing a computer program that, when executed by a processor, implements the steps in the above-described method embodiments.
[0077] In one exemplary embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above-described method embodiments.
[0078] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.
[0079] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM).
[0080] The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0081] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0082] This application uses specific examples to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. In summary, the content of this specification should not be construed as a limitation of this application.
Claims
1. A method for predicting train coupler force, characterized in that, The train coupler force prediction method includes: Acquire multi-source dynamic operation data during train operation. The multi-source dynamic operation data includes the traction force of the entire train, aerodynamic braking force, train speed, gradient resistance, relative displacement between vehicles, relative speed between vehicles, change in relative displacement, and measured coupler force data at some coupler positions. The multi-source dynamic operation data is preprocessed, including time synchronization processing and abnormal data processing. Based on the preprocessed multi-source dynamic operation data, a time series prediction sample is constructed using a sliding time window. The time series prediction sample contains preprocessed multi-source dynamic operation data from multiple consecutive times before the current prediction time. The time-series prediction sample is predicted using a pre-built Transformer-GRU-MoE composite prediction model, and the predicted value of the coupler force at the current moment is output. The Transformer-GRU-MoE composite prediction model includes an input embedding layer, a Transformer-GRU time series modeling module, a MoE hybrid expert prediction head, and an output layer. The input embedding layer maps the time-series prediction samples to a high-dimensional latent space and introduces position encoding to preserve the temporal order information in the time-series prediction samples; The Transformer-GRU temporal modeling module includes parallel Transformer branches and GRU branches. The Transformer branch extracts the global temporal dependency features of the temporal prediction samples through a multi-head self-attention mechanism. The GRU branch extracts the historical loading path dependency features of the temporal prediction samples through a gated loop structure. The outputs of the Transformer branch and the GRU branch are fused to obtain the fused temporal representation. The MoE hybrid expert prediction head includes a stable condition expert and an impact condition expert. The MoE hybrid expert prediction head dynamically allocates the weights of the stable condition expert and the impact condition expert according to the fused time-series representation through a gating network, and performs weighted fusion of the outputs of the stable condition expert and the impact condition expert to generate the corresponding coupler force prediction value, which is then output through the output layer.
2. The train coupler force prediction method according to claim 1, characterized in that, The time synchronization process specifically includes: using a preset sampling period as a benchmark, synchronizing the traction force, air braking force, train speed, gradient resistance, relative displacement between vehicles, relative speed between vehicles, and relative displacement change in time so that various operating state quantities at the same moment correspond to each other. The abnormal data processing specifically includes: for missing data, using linear interpolation, forward padding, or backward padding to fill in the missing data; for abnormal data points that exceed the physically reasonable range, using methods such as removal, amplitude limiting, or replacement with data from nearby time points.
3. The train coupler force prediction method according to claim 1, characterized in that, The time-series prediction sample is represented as follows: ; In the formula, t represents the current prediction time, T represents the time window length, and d represents the input feature dimension. Indicates time The input feature vector is represented as follows: ; In the formula, Indicates the traction force of the entire train. Indicates air braking force. Indicates train speed. Indicates ramp resistance. This indicates the relative displacement between vehicles. Indicates the relative speed between vehicles. It represents the amount of relative displacement change.
4. The train coupler force prediction method according to claim 1, characterized in that, In the input embedding layer, the time-series prediction samples are normalized and then projected to a high-dimensional latent space via a linear mapping: ; In the formula, This represents the input feature vector at time t. and For learnable parameters, This represents the high-dimensional feature representation after mapping; The position encoding is a sinusoidal position encoding: ; The fused timing sequence is represented as follows: ; The temporal prediction sample is processed by the input embedding layer to obtain the embedded sequence: ; In the formula, t represents the current prediction time, and T represents the length of the time window. Represents the dimension of the latent space; In the Transformer branch, for the embedded sequence The correlation between different time steps is calculated using a multi-head self-attention mechanism, and the output of the last time step is taken as the global temporal representation of the current prediction time. ; In the GRU branch, the embedded sequence is processed through a gated loop structure. We perform recursive modeling and take the final hidden state of the GRU as the representation of local path dependency. .
5. The train coupler force prediction method according to claim 1, characterized in that, The fusion of the outputs of the Transformer branch and the GRU branch specifically includes: The output of the GRU branch is projected to the same dimensional space as the output of the Transformer branch by a linear mapping: ; In the formula, Represented by GRU projection, This is the weight matrix. This is the final hidden state of the GRU. It is the bias vector; The projected GRU representation is added to the output of the Transformer branch, and the fused temporal representation is obtained by layer normalization: ; In the formula, This is the fused temporal representation. For the output representation of Transformer, This is a layer normalization operation.
6. The train coupler force prediction method according to claim 1, characterized in that, The outputs of the steady-state expert and the shock-state expert are respectively expressed as follows: , ; In the formula, This is the fused temporal representation. For stable operating condition experts, For impact condition experts; The input to the gating network is represented as follows: ; In the formula, This represents the relative displacement at the current moment. This represents the relative velocity at the current moment. This represents the change in relative displacement at the current moment; Gating network according to Generate the weights for the steady-state expert and the shock condition expert: ; In the formula, and Let represent the weights of the steady-state expert and the shock condition expert, respectively, and satisfy . ; The predicted coupler force at the current moment is: 。 7. A train coupler force prediction device, characterized in that, The train coupler force prediction device includes: The data acquisition module is used to acquire multi-source dynamic operation data during train operation. The multi-source dynamic operation data includes the traction force of the whole train, the aerodynamic braking force, the train speed, the gradient resistance, the relative displacement between vehicles, the relative speed between vehicles, the change in relative displacement, and the measured coupler force data of some coupler positions. The data preprocessing module is used to preprocess the multi-source dynamic running data, and the preprocessing includes time synchronization processing and abnormal data processing. The sample construction module is used to construct time series prediction samples based on preprocessed multi-source dynamic running data using a sliding time window. The time series prediction samples contain preprocessed multi-source dynamic running data from multiple consecutive times before the current prediction time. The prediction module is used to predict the time-series prediction sample using a pre-built Transformer-GRU-MoE composite prediction model and output the predicted value of the coupler force at the current moment. The Transformer-GRU-MoE composite prediction model includes an input embedding layer, a Transformer-GRU time series modeling module, a MoE hybrid expert prediction head, and an output layer. The input embedding layer maps the time-series prediction samples to a high-dimensional latent space and introduces position encoding to preserve the temporal order information in the time-series prediction samples; The Transformer-GRU temporal modeling module includes parallel Transformer branches and GRU branches. The Transformer branch extracts the global temporal dependency features of the temporal prediction samples through a multi-head self-attention mechanism. The GRU branch extracts the historical loading path dependency features of the temporal prediction samples through a gated loop structure. The outputs of the Transformer branch and the GRU branch are fused to obtain the fused temporal representation. The MoE hybrid expert prediction head includes a stable condition expert and an impact condition expert. The MoE hybrid expert prediction head dynamically allocates the weights of the stable condition expert and the impact condition expert according to the fused time-series representation through a gating network, and performs weighted fusion of the outputs of the stable condition expert and the impact condition expert to generate the corresponding coupler force prediction value, which is then output through the output layer.
8. A computer device, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that the processor executes the computer program to implement the steps of the train coupler force prediction method according to any one of claims 1-6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the train coupler force prediction method according to any one of claims 1-6.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the train coupler force prediction method according to any one of claims 1-6.
