Abstract
As articulated heavy vehicles are over-actuated, achieving a safe control allocation is crucial to ensure stability. This study introduces a machine learning model developed to identify unsafe behaviours and modes, such as jack-knifing and trailer swing, enabling the control scheme to prioritize stability. High-fidelity simulations, focusing on high-risk scenarios, generate data for training the machine learning model. This model is integrated into the control scheme to predict safe braking allocations and prevent unsafe vehicle modes during real-time driving scenarios. Initial tests showed promising results regarding prediction accuracy and a safety margin that can be implemented to further ensure that safe vehicle motion is achieved.
You have full access to this open access chapter, Download conference paper PDF
Keywords
1 Introduction
Articulated heavy vehicles (AHVs) have proven to be excellent candidates for road transportation due to their significant positive impact on environmental and economic efficiency [1, 2]. However, concerns remain regarding their stability, including risks like jackknifing and trailer swing. The electrification of trucks introduced the concept of distributed propulsion across different vehicle units. To maximize power regeneration, braking with the propelled vehicle units and axles is preferred, which might cause instabilities such as jackknifing [3]. Distributed propulsion in AHVs adds another layer of complexity, impacting these vehicles which are already dynamically complex due to over-actuation and their articulation joints. Therefore, achieving a safe control allocation (CA) is crucial to ensure stability while maximizing the regenerated energy [4].
Using machine learning (ML) in the automotive industry is growing as a strong technique, bringing several benefits such as improved safety measures, enhanced vehicle efficiency, and better performance (e.g., [5,6,7]). To the best of our knowledge, there has been no work done to use ML in the control allocation of forces in heavy vehicle applications. In this study, ML is applied to heavy vehicle applications to identify unsafe behaviours for a tractor-semitrailer vehicle combination, specifically yaw instabilities. This enables the control scheme to maintain the vehicle within safe operating conditions by requesting safe braking allocation, ensuring no unsafe modes will appear.
2 Machine Learning Model Development
To predict safe allocations, a high-fidelity vehicle model, referred to as Volvo Transport Model (VTM) [8], was used to perform simulations, collecting data on factors contributing to the unsafe behaviour of the tractor-semitrailer vehicle combination. Multiple simulations were performed focusing particularly on high-risk environmental and operational conditions such as low friction and high lateral acceleration on a circular track for different radii.
Approximately 25,000 uniformly random distributed simulations were performed for a range of brake-in-turn manoeuvres, varying parameters such as the initial velocity at which braking begins, friction, radius of the turn, load on the trailer, and braking allocations. The simulation was initialised during steady-state cornering of the vehicle, and data samples were collected until the vehicle either reached a standstill or an unsafe mode occurred. To differentiate between safe and unsafe modes, criteria were checked during the entire simulation on important vehicle states to monitor the state of the vehicle and classify the simulation as safe or unsafe. The criteria used were based on the value of the side-slip angle rate of the vehicle combination, as discussed in [9]. This metric captures whether the truck or trailer exhibits a fast change in yaw angle within a short amount of time, indicating unsafe behaviour in the form of either jack-knifing or trailer swing. The chosen thresholds to limit the side-slip angle rates of the tractor and trailer were set at 6 deg/s. This threshold value was validated with VTM and found to be effective in identifying yaw instabilities.
From these simulations, 20% were used for test data and 80% for training data. Each simulation yielded about 25 data points by sampling the vehicle state throughout the manoeuvre, resulting in around 625,000 data points overall. This extensive dataset was obtained with a total simulation time of about 275 h.
During each simulation, data was collected about the most informative states of the vehicle from a vehicle safety perspective. The selected states were used as features for the ML model, with labels classifying the state as feasible or infeasible. Using this labelled dataset, an ML model could be trained offline to be used as an online prediction tool within the control scheme. The chosen state vector as the features of the ML model included road friction, steering wheel angle, brake force of the tractor, brake force of the trailer, longitudinal velocity, side slip angle of each unit, side slip angle rate of each unit, articulation angle, articulation angle rate and axle loads of each axle, i.e. a total of 17 features. Considering the high dimensional inputs of the problem with these many features, it is too intricate to determine the safe allocation with simple boundaries and any analytical solution. Therefore, ML is a good tool to address this complexity.
Several ML models were evaluated on the dataset, including decision trees, random forest and neural networks. Among these, neural networks proved to be the most accurate with a training and validation accuracy of around 97%. The models were trained using the MATLAB classification learner app with default values for the hyperparameters not explicitly mentioned in this paper. The chosen model was a neural network consisting of three layers, each with 12 nodes. A higher cost was assigned to false positives since it is crucial for a safety critical system to accurately predict all unsafe points, even if it allows some error in predicting safe points.
3 Machine Learning Based Control Allocation Strategy
The control system is divided into a three-part process, as illustrated in Fig. 1. It begins by reading the vehicle state and brake request from the vehicle. This information is then used to calculate a set of potential braking allocations. The braking request, \(F_{request}\), represents the total force request and is divided between the tractor and the trailer as \(F_{request} = F_{tractor} + F_{trailer}\). From this set, 100 allocations are uniformly sampled that fulfil the total braking request, as illustrated by the points in Fig. 2a. All forces are normalised and therefore varying between 0 and \(-1\), where \(-1\) corresponds to the maximum possible braking that each unit can achieve given the current friction, \(\mu \). This normalization is expressed as \(F^* = F/(F_z \cdot \mu )\) for each unit, where \(F_z\) is the unit normal force. These points together with the vehicle state are then inputted to the ML model, which predicts the safety of each allocation, distinguishing between safe (green) and unsafe (red) points as in Fig. 2a. The predictions are performed assuming the driver input to the vehicle is kept constant until standstill. Lastly, a decision is made to select one of these safe allocations, as indicated by an orange circle in the last plot of Fig. 2a.
The decision of which allocation to choose provides considerable flexibility. As the ML model assigns labels to each point, this part becomes modular, allowing for an easily interchangeable strategy without affecting the overall design. This paper will not present any optimal solution to this, instead showing multiple viable options are possible, and that the safety prediction is reliable. For a given state, the predictions are similar to what can be seen in Fig. 2a (steps 2 and 3), demonstrating that extreme choices, braking only with the tractor or trailer, are the most unsafe, while intermediate options are safe. This is consistent with findings from previous research [3].
The proposed strategy was tested by picking an allocation that brakes as hard as predicatively possible with the tractor and with some safety margin. This corresponds to, for example, the orange circled point in “step 3” of Fig. 2a. However, when implementing this strategy, the edge can change rapidly due to the changing state of the vehicle. This is unwanted and could lead to unsafe behaviour of the vehicle combination. To accommodate this issue, a low-pass filter was added to the output of the CA. In Fig. 3a, the CA for the tractor is shown in one of these cases. The important observation here is that the CA varies rapidly and discretely. Figure 3a illustrates how the CA appears without a filter, while Fig. 3b shows the same scenario with the filter activated. It can be seen that the filter improves the allocation by eliminating these very fast changes in the CA.
4 Validation of Proposed Control Allocation Strategy
Simulations were conducted to validate these predictions and ensure the controller functions as intended. During these simulations, a safety margin of 5 and 10\(\%\) of the total amount of sampled allocations was applied around the prediction border, with simulations running on points from both safe and unsafe margins (see Fig. 2b). The safety margin addresses uncertainties and inaccuracies in vehicle parameters, modelling simplifications, etc. Ideally, selecting a safe point should result in a safe simulation, and choosing an allocation predicted as unsafe should lead to an unsafe outcome. Doing this verifies that the estimation of the prediction border is accurate. This was done for a number of test scenarios that were divided into edge and normal cases. Edge cases are defined as scenarios where the vehicle is in an initial state close to where the vehicle can no longer operate without showing unsafe behaviour. Normal cases are further from an unsafe initial state than edge cases which still contain control inputs that can result in unsafe modes.
The system was tested by running 26 cases, 13 normal and 13 edge cases, of the above mentioned cases. Table 1 illustrates the success rate (whether the prediction matches the simulated outcome) for different margins. Throughout the simulations, it was assumed that the tractor is electric with a conventional trailer, prioritizing tractor braking for enhancing energy regeneration. Besides testing with constant steering and perfect knowledge about the state (as during training), the system was also tested with disturbances. An active path-follower, emulating a driver trying to stay on the road (marked by “steering” in Table 1), was introduced. The system was also tested under “wrong friction” conditions, where friction measurement was intentionally increased to simulate a misestimation. During these tests, the steering input was kept constant. Additionally, all other parameters remained the same as the initial test case.
The controller accurately predicted safety and responded well, with high accuracy rates, particularly for the normal cases and a slight decrease for edge cases. A margin of 10% from the predicted edge gave results close to 100%, while a 5% margin resulted in accuracy ranging from 60–95%, depending on the cases. The controller and ML model performed well when a path controller was active during braking, despite all training data being conducted under constant steering conditions.
5 Conclusion
This paper introduces a novel method of predicting the yaw instability in a tractor-semitrailer vehicle combination using machine learning. Additionally, it allocates the driver’s brake request to individual vehicle units to avoid such yaw instability. To enhance the overall performance of the controller including ML, different ML models were tested and strategies were developed for allocation. The neural network classification model was found to outperform other models, even when integrated with the controller during random test manoeuvres in real time. The controller proved to be accurate at predicting the safety and responding accordingly. Accuracies were high, especially for the normal cases, but dropped somewhat for edge cases. The controller and ML model worked well when a path controller was active during braking, even though all training data was obtained with constant steering. This paper has shown that it is possible to predict safe allocations using a data-driven ML model, specifically a neural network model.
References
Bienkowski, B.N., Walton, C.M.: The economic efficiency of allowing longer combination vehicles in Texas. University of Texas at Austin. Center for Transportation Research, SWUTC/11/476660-00077-1 (2011)
Woodrooffe, J., Ash, L.: Economic efficiency of long combination transport vehicles in Alberta: final report. Technical report, Woodrooffe & Associates (2001)
Erdinc, U., Jonasson, M., Kati, M.S., Jacobson, B., Fredriksson, J., Laine, L.: Safe operating envelope based on a single-track model for yaw instability avoidance of articulated heavy vehicles. Veh. Syst. Dyn. 62(8), 2138–2161 (2023)
Hansson, A., Andersson, E., Laine, L., Kati, M.S., Erdinc, U., Jonasson, M.: Safe operating envelope for limiting actuation of electric trailer in tractor-semitrailer combination. In: 2022 IEEE 25th International Conference on Intelligent Transportation Systems (ITSC), Macau, China, pp. 3886–3893 (2022)
Leoni, L., BahooToroody, A., Abaei, M.M., Cantini, A., BahooToroody, F., De Carlo, F.: Machine learning and deep learning for safety applications: investigating the intellectual structure and the temporal evolution. Saf. Sci. 170, 106363 (2024). ISSN 0925-7535
Lattanzi, E., Freschi, V.: Machine learning techniques to identify unsafe driving behavior by means of in-vehicle sensor data. Expert Syst. Appl. 176, 114818 (2021). ISSN 0957-4174
Norouzi, A., Heidarifar, H., Borhan, H., Shahbakhti, M., Koch, C.R.: Integrating machine learning and model predictive control for automotive applications: a review and future directions. Eng. Appl. Artif. Intell. 120, 105878 (2023). ISSN 0952-1976
Fröjd, N.: Handling Analysis and Control Development of Commercial Trucks with Volvo Transport Models. MATLAB EXPO (2021). https://www.mathworks.com/videos/handling-analysis-and-control-development-of-commercial-trucks-with-volvo-transport-models-1622035211192.html
Fu, R., Zhang, H., Guo, Y., Yang, F., Lu, Y.: Real-time estimation and prediction of lateral stability of coaches: a hybrid approach based on EKF, BPNN, and online autoregressive integrated moving average algorithm. IET Intell. Transp. Syst. 14, 1892–1902 (2020). https://doi.org/10.1049/iet-its.2020.0385
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Open Access This chapter is licensed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license and indicate if changes were made.
The images or other third party material in this chapter are included in the chapter's Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the chapter's Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder.
Copyright information
© 2024 The Author(s)
About this paper
Cite this paper
van Dam, S. et al. (2024). Safe Control Allocation of Articulated Heavy Vehicles Using Machine Learning. In: Mastinu, G., Braghin, F., Cheli, F., Corno, M., Savaresi, S.M. (eds) 16th International Symposium on Advanced Vehicle Control. AVEC 2024. Lecture Notes in Mechanical Engineering. Springer, Cham. https://doi.org/10.1007/978-3-031-70392-8_1
Download citation
DOI: https://doi.org/10.1007/978-3-031-70392-8_1
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-70391-1
Online ISBN: 978-3-031-70392-8
eBook Packages: EngineeringEngineering (R0)