Abstract
A machine learning (ML) based method is presented in this paper for obtaining tangent stiffness of a complicated three-dimensional wheel-rail interaction element that is able to practically and effectively simulate the complicated dynamic responses of vehicle-track problems. The element tangent stiffness, defined as differentiation of element insisting force to nodal displacement, is important in improving efficiency when Newton’s method is used to solve implicit nonlinear finite element equations. However, deriving and software implementing the tangent stiffness require significant efforts, and calculating the tangent stiffness in each iteration of the Newton method is usually time consuming. On the other hand, ML can directly obtain the implicit mapping between inputs and outputs of complex calculation process with limited programming effort and high computational efficiency, and is potentially a good alternative way to calculate the tangent stiffness of complicated element. In this paper, a feedforward artificial neural network is trained for obtaining the tangent stiffness, while inputs are the displacement and velocity of the element and outputs are the entries of the tangent stiffness matrix. The ML based tangent stiffness are implemented in an open source finite element software framework, OpenSees, and verified by application examples of a wheelset and a light rail vehicle running on straight rigid rail. The accuracy and efficiency are compared between the use of ML based tangent stiffness (MLTS) and the consistent tangent stiffness obtained at different speeds. The results demonstrate the MLTS can ensure the calculation accuracy and significantly improve the calculation efficiency.
Introduction
When an implicit method is used to discretize nonlinear finite element models with time, an iterative algorithm, for example, Newton’s method, can be used to solve the equations of motion at each time step. In this case, the element tangent stiffness, defined as the differentiation of element insisting force to nodal displacement, plays a crucial role in improving computational efficiency. The so-called consistent tangent stiffness (Simo JC and Taylor RL, 1985; Miehe C, 1996; Doghri I, 1993) is accurate and guarantees a quadratic rate of convergence of Newton’s method. Planinc and Saje (1999) presented a quadratically convergent algorithm for the computation in the finite element formulation by linearizing the determinant of the global tangent stiffness matrix, and prove the advantage of large convergence radius. Gu et al. (2011) presented consistent tangent moduli for a pressure independent multi-yield-surface J2 (Von Mises) plasticity model and investigated the convergence rate and computational time. Jirasek and Patzak (2002) presented a general framework for a consistent derivation of the “nonlocal” tangent stiffness, demonstrated the quadratic rate of convergence of the Newton–Raphson iteration procedure. The derivation and software implementation of the consistent tangent stiffness usually requires significant efforts. Therefore, it is desirable to develop an alternative method to compute the tangent stiffness that can maintain high computational efficiency while reduce the efforts of derivation and software implementation.
Dynamic response analysis of high-speed railway is usually large-scale, highly nonlinear and requires significant computational effort, among which the calculation of wheel-rail interaction (WRI) forces is one of the most time-consuming parts. Many wheel-rail contact models have been proposed for addressing WRI problems. Zhai et al. (1996, 2009), Zhai (2004) and Chen and Zhai (2004) used a fast explicit integration method to solve the motion equations and then calculated WRI forces by using a vehicle-track coupling model. Dinh et al. (2009) developed a formulation for the 3D dynamic interactions between a bridge and a high-speed train. Pombo et al. (2007) presented a wheel-rail contact detection formulation and calculated the tangential forces by using Kalker’s linear theory, Heuristic nonlinear model, and Polach formulation. Then Magalhaes et al. (2020) and Marques F et al. (2020, 2019) extended the online Hertzian contact model proposed by Pombo to propose a non-Hertzian contact model. Gu et al. (2019) presented a 2D WRI element consisting of a fast-moving wheel node and rail nodes that the wheel node may pass through. The WRI force is wrapped into the element as the elemental resisting force. Liu et al. (2021) developed a three-dimensional (3D) WRI element based on the same idea wrapping the WRI into a 3D element, the WRI force of which is obtained by using Kalker’s linear theory, nonlinear Hertz theory, and Polach formulation. The consistent tangent stiffness (Gu Q et al., 2021) of the 3D WRI element is derived, the accuracy and the efficiency of the algorithm are compared with the perturbation method (Liu et al., 2021) and the quadratic convergence rate is proved.
Recently, machine learning (ML) has been increasingly widely applied in engineering to solve a wide range of problems. ML can directly obtain the implicit mapping between inputs and outputs of complex calculations with relatively little formula derivation and programming work. ML can potentially be used to solve complex nonlinear problems simply and efficiently (Jung and Ghaboussi, 2006; Luo and Paal, 2018; Huang and Loh, 2001; Kang et al., 1997). Li and He (2015) presented an algorithm, that is, Random Forests-based nonparametric missing value imputation algorithm, to predict remaining useful life (RUL) of wheels and trucks (bogies), where the missing data are handled by missForest. Wang et al. (2019) proposed a bilevel superpixel-based framework for the vision inspection of rail conditions and automatically detected rail surface cracks. Mohammadi et al. (2019) developed a new ML based approach to identify the track geometry parameters employing an extreme gradient boosting algorithm, in which the hyper-parameters are optimized using a Bayesian optimization method. Acikbas and Soylemez (2008) combined ANN and genetic algorithms to achieve optimal coasting points for long line sections that cover five stations and two lines. The ML approach has demonstrated high accuracy and efficiency in the above various applications. However, ML has not yet been applied to solve tangent stiffness of complex nonlinear systems, for example, WRI system.
In this paper, an ML based tangent stiffness (MLTS) method is applied to a WRI element proposed by Liu et al. (2021). A feedforward artificial neural network (ANN) using error back-propagation (BP) training is used to obtain the tangent stiffness, where the input is displacement and velocity of the element and output is the tangent stiffness matrix. The tangent stiffness used for training ANN is obtained by perturbation method. The trained ANN model is implemented in an open source finite element software, OpenSees. The responses of the WRI element using ML based tangent stiffness (MLTS) and the traditional consistent tangent stiffness (CTS) (Gu et al., 2021) are compared to verify the accuracy and efficiency of MLTS. The proposed ML based tangent stiffness calculation method herein has the following advantages: (1) the efforts of derivation and software implementation of the ANN model are relatively small, (2) the computation is efficient with acceptable accuracy, and (3) the method is applicable under different working conditions, for example, vehicles with multiple wheelsets and running at different speeds. There are some limitation of the proposed method: (1) obtaining the samples and training ANN model require time and efforts, (2) programming the ANN model requires efforts, although usually much smaller than CTS, and (3) the Newton quadratic convergence cannot be guaranteed when solving the nonlinear equation of motion. A future research direction could be optimizing the algorithm and applying the MLTS calculation method to a wide range of realistic problems that require tangent stiffness, for example, complicated vehicle–track–bridge systems. Besides, the method may be useful in performance assessment of complicated systems based on Monte Carlo simulation or reliability analysis.
Tangent stiffness calculation
Equilibrium equation of motion and the consistent tangent stiffness
In the numerical modeling of the civil engineering structures, a specific element is often implemented in a finite element (FE) software framework, for example, OpenSees in this paper, which allows combining the element with the abundant material library available in it. The equilibrium equation of motion of the element is same as that in an FE method Process of Newton method.
The blue line denotes the change of
Generally, since the calculation of CTS requires a lot of efforts and is time-consuming, it is desirable to develop an ANN based tangent stiffness that can maintain high computational efficiency while reduce the efforts of derivation and software implementation.
Internal resisting force and the CTS of the WRI element
As shown in Figure 2, the WRI element consists of a wheel node and all the rail nodes (b1, b2 … bi …) that the wheel node may pass through. The wheel node and the adjacent rail node are combined into a so-called active portion (red wireframe in Figure 2), and all node resisting force in active portion can be regarded as the resisting force WRI element and its resisting force 
The consistent tangent stiffness (CTS) of the WRI element can be obtained by differentiating each equation mentioned in Internal resisting force and the CTS of the WRI element (i.e., equations (7)–(10)) with respect to
The detailed derivation of
The machine learning model
Feedforward ANN model
An artificial neural network (ANN) using error back-propagation (BP) algorithm is used to obtain the tangent stiffness in this paper. The ANN model has an input layer, a hidden layer, and an output layer (Figure 3). Each layer is made up of a few neurons. The number of neurons in input and output layers is usually determined by number of input parameters and output parameters, while the number of neurons in the hidden layer is uncertain. Too few neurons may affect the accuracy of the predicted results, but too many may lead to overfitting. Therefore, multiple tests are often needed to select the best number of hidden layer neurons. A representation of the feedforward ANN.
In the hidden layer, each neuron receives parameters from the input layer and then calculates as follows
After this adjustment, re-evaluating equation (16) to check whether the error is less than a specified criterion, and if not, repeating equations (16)–(21) until the tolerance requirement is satisfied.
Since ANN is only one of the machine learning (ML) models, it is necessary to apply other machine learning methods for prediction and compare the advantages and disadvantages of different ML methods. A nonlinear autoregressive model with exogenous inputs (NARX) model is used for this purpose.
Nonlinear autoregressive models with exogenous inputs (NARX) model
An NARX is used to obtain the tangent stiffness and compare it with that obtained by ANN. NARX is a class of discrete-time nonlinear systems that can be mathematically represented as Implicit mapping of the NARX.
The TDLF in Figure 4 denotes the tapped delay line filter, which can be expressed as
Comparison of two ML models
Comparison of two models.
Application examples
Data of ML based tangent stiffness in a wheelset example
A previously-studied wheelset example (Pombo J, 2004) is used to get samples of ANN. As can be found in Figure 2, a single wheelset is running on a straight rigid rail. Before the dynamic analysis of the wheelset, a horizontal force is applied in lateral direction such that an original misalignment of the wheelset is 2 mm. The wheel and rail profiles used are the UIC50 and ML95 (Pombo J and Ambrosio J, 2005). More details of the model can be found in the literature (Liu Y et al., 2021; Pombo J, 2004). The Newmark-Beta method is used for the time integration with
Performance of the data folds.

Calculating process of MLTS.
Verify the ML based tangent stiffness at various velocities
The same example in Data of ML based tangent stiffness in a wheelset example is used to verify the MLTS herein. Lateral displacements of the wheelset’s center obtained using MLTS are compared with the CTS results in Figure 6. The results of the two models clearly agree well. The maximum relative difference at the peak displacements is about 0.96%, as the inset in Figure 6 shows. Both of the displacements are periodic, and the amplitudes keep increasing gradually before the flange hits the rail. After that (about 3.6s), the amplitudes remain stable. The difference between the lateral displacements by the two models can also be quantified using the root mean square error (RMSE), that is, Lateral displacements of the wheelset’s center

Figure 7 shows the lateral forces of the wheelset. Before the flange hits the rail, the lateral forces calculated by the two models are almost equal, with a difference of less than 0.1%. After about 3.6 s, the lateral forces begin to change abruptly with a period of 0.7 s. The difference of amplitude calculated by two methods is relatively small, for example, 4.3% at 5.1 s (left wheel) and 7.4% at 6.3 s (right wheel). At the moment that the flange has not hit the rail, the response of the lateral forces have high frequency vibration, which can be found in the zoomed view in Figure 7. These results verify the accuracy of the MLTS. Besides, the calculation efficiency of the MLTS method is also verified. The Lateral forces Residual of the unbalance force in each iteration at a few representative time steps by using MLTS and CTS.
The validated MLTS method is used to predict the response of the model at different velocities, and the results are compared with those of the CTS method. Only the results of the left wheel are listed here for simplicity. Figure 8(a) and (b)) compare the lateral displacements predicted by MLTS with those calculated by the CTS method at 25 m/s and 30 m/s. The results remain very close, though as the velocity increases, the difference slightly increase, especially at the peak where the flange hits the rail. The RMSE of the two models is 0.29 mm at 25 m/s and 0.74 mm at 30 m/s. Figure 8(c) and (d) show the lateral forces predicted by MLTS compared with those calculated by CTS. When the velocity is 25 m/s, the lateral forces of the two models are in good agreement except for a few time steps (i.e., 6.539 s). When the velocity is 30 m/s, the lateral forces of the two are in good agreement in general but not as good as the result of 25 m/s, and the difference becomes more obvious especially after 7s. In a word, the results of the two models are generally close, but become slightly different when the velocity increases. The residual of unbalanced force (a) Lateral displacement at 25 m/s; (b) lateral displacement at 30 m/s; (c) lateral forces at 25 m/s; (d) lateral forces at 30 m/s. The The 
A light rail vehicle running over a straight rigid track
A light rail vehicle (Chopra AK, 1995; Pombo J and Ambrósio J, 2007) running over a straight rigid track (Figure 9) will serve as a more complex example. The model consists of four wheelsets (eight WRI elements), which is the same as that in the Verify the MLTS at various velocities. The primary suspension of the vehicle is simulated by spring-dampers I between the WRI element and the bogie, which appears black in Figure 9. And the secondary suspension is simulated by spring-dampers II between the WRI element and the car body, which appears pink in Figure 9. The bogies and the car body are simulated using elastic beam column elements in OpenSees. The material parameters of the bogie, car body, and suspension are in Table 6, where the subscripts band c denote “bogie” and “car body,” respectively. M denotes the mass and I denotes the area moment of inertia. All of the spring dampers are simulated by two-node link elements in OpenSees, kI and kII represent the stiffness of primary and secondary suspensions, and cI and cII represent the damping of primary and secondary suspensions. kI, kII, cI, and cII are all three-dimensional, and the x, y, and z direction in the table is consistent with the GCS. Similar to the previous example, a lateral force is applied to each wheelset in the static analysis so that the lateral displacement of the vehicle is 2 mm. The force is removed at the beginning of the dynamic analysis, and then the hunting motion of the vehicle at different speeds can be studied. Figure 10 shows the lateral displacement of the center of wheelset 1 calculated by the MLTS and CTS methods at 50 m/s and 60 m/s. In order to make the results clear, the data of the CTS method are plotted at regular intervals. The results of the two models agree well at both speeds. At 50 m/s the lateral displacement predictions of the two methods are periodic and the amplitude gradually decreases from 2 mm to 1.36 mm. When the speed is 60 m/s the amplitudes of both methods increase gradually from 2 mm to about 6.97 mm and then remain stable. Figure 11 shows the lateral force on the left wheels of wheelset 1 at 50 m/s and 60 m/s with the CTS predictions plotted at regular intervals. At 50 m/s the lateral force from both methods is periodic with its amplitude gradually decreasing from 1.22 kN to 0.98 kN. At 60 m/s, Figure 11 shows that the two curves almost coincide including at the peak values. Each positive amplitude in Figure 10 corresponds to a peak value in Figure 11, that is, the flange of the left wheel hits the rail at that time. Model of a light rail vehicle and a straight rigid track. Parameters of the car body and bogie. Lateral displacement of wheel center at 50 m/s and 60 m/s. Lateral force on the left wheels at 50 m/s and 60 m/s.


The
Conclusions
The element tangent stiffness, defined as the differentiation of element insisting force to nodal displacement, is important to in calculation efficiency when Newton’s method is used to solve implicit nonlinear finite element equations. This paper represents a machine learning based tangent stiffness (MLTS) calculation method, and applies it to a complicated three-dimensional wheel-rail interaction (WRI) element. The displacement and the velocity of the wheel node are the input and the entries of the tangent stiffness are the output. The MLTS are obtained by an artificial neural network (ANN) using error back-propagation (BP) algorithm and the trained model is implemented in an open source finite element (FE) software framework that is widely used in civil engineering, OpenSees. A wheelset example running on the rigid rail is used to verify the accuracy and efficiency of the MLTS. The displacement, velocity and acceleration responses of wheelset are compared with those calculated by consistent tangent stiffness (CTS) and the accuracy of the WRI element using MLTS is verified. Besides, the iterative steps required to achieve convergence and the total calculation time required for the two methods are compared. Although MLTS needs slightly more convergence iterations, it still has a huge efficiency advantage, and the total computing time is reduced by 76.5%. The same wheelset example with different velocities are also considered in this paper, the accuracy of WRI element using MLTS decreases with the increase of speed, but it is still reliable. The calculation efficiency is 69.63% (25 m/s) and 65.60% (30 m/s) higher than that of CTS. In addition, a light rail vehicle running over a straight rigid track is considered to verify the applicability of the MLTS derived in this paper. The response calculated by MLTS is almost consistent with that calculated by CTS. Similar to the wheelset example, the WRI element using MLTS needs more iterative steps but greatly improves the calculation efficiency, increasing 67.7% (50 m/s) and 69.9% (60 m/s) than that of CTS, respectively. The results demonstrate that machine learning based element tangent stiffness method presented herein are efficient, reliable, and acceptably accurate and can be used in complicated vehicle-track systems.
Footnotes
Acknowledgments
The funding support by National Natural Science Foundation of China (51978591) is gratefully acknowledged.
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This article was supported by National Natural Science Foundation of China (grant no: 51978591).
