## 1 Introduction

Energy security is one of the highest priorities for many countries. The largest energy consumer is the transportation industry. For instance, in U.S., the transportation industry has consumed more than 28% of the total energy in just one year patil2017wireless. Especially, gasoline fuel consumption mostly for vehicles accounts for more than 56% from the total transportation energy consumption patil2017wireless. Electric vehicles (EVs) have received significant attention as a viable solution to reduce energy consumption and alleviate environmental effects. However, developing inexpensive, durable, and reliable energy storage system remains as a significant challenge. In fact, one of the primary concerns that discourage purchase of an EV for many consumers is the range anxiety and long charging time guidi2020dynamic.

Dynamic wireless charging (DWC) is an emerging technology developed to address the range anxiety and long charging-time problems patil2019coil; ahmad2017comprehensive. The DWC technology allows vehicles to be charged wirelessly while in motion based on the magnetic coupling between the coils embedded under the road surface and those fit in an EV lukic2013cutting. The transmitter coils positioned under the road are provided with a high-frequency current and generate electromagnetic field, which is picked up by the EV to charge the EV battery ahmad2017comprehensive. The first concept of DWC was designed by Bolger *et al.* bolger1978inductive in 1978. Extensive research has been conducted to develop numerous DWC solutions guidi2020dynamic; mi2016modern; ahmad2017comprehensive.

To make DWC widely accepted as a convenient, reliable, and flexible solution, there are significant challenges to be addressed guidi2020dynamic. One of them is the misalignment between the transmitter and receiver coils as the power transfer efficiency depends on accurate coil alignment moon2014analysis; van2011control; panchal2018review; chen2015promoted; hwang2017autonomous. Since EVs are charged while in motion, such misalignment is unavoidable, causing significant fluctuation of power transfer efficiency tian2020vision.

Numerous works have been proposed to mitigate the misalignment problem. Hardware-based solutions are focused on modifying chen2016cost; chow2014investigation or adding shin2013design; kim2013coil a new hardware component, *e.g.,* changing the geometry or configuration of the coil. Tracking-based approaches are, on the other hand, designed to align the EV in the center of lane based on a vehicle positioning algorithm byun2015vehicle; hwang2017autonomous. Vision-based solutions that use a camera to track the lateral position of EV and position it in the center of lane have been studied tian2020vision. However, a critical limitation of these solutions is that the dynamics of electromagnetic field generated by the transmitter coils of the DWC system are not taken into account to control the vehicle motion, potentially leading to degraded power transfer efficiency.

In this paper, we present a LSTM-based adaptive vehicle motion control system for DWC. To optimize the power transfer efficiency, the lateral position of an EV is adaptively adjusted in response to the dynamics of the electromagnetic field generated by the transmitter coils of a DWC system. We design a multi-layer LSTM network that effectively captures the dynamics of the electromagnetic field. The LSTM model allows the EV to predict the optimal lateral position where the power transfer efficiency is expected to be maximized and control its motion accordingly. Through simulations, we, for the first time, uncover the strong potential of the machine learning-assisted approach for DWC to significantly boost the power transfer efficiency. More specifically, compared with a state-of-the-art approach focused on keeping the EV in the center of lane to improve the power transfer efficiency, we demonstrate that our LSTM-based approach leveraging prediction of the optimal lateral position where the electromagnetic strength is maximized enhances the power transfer efficiency by up to 162.3%.

This paper is organized as follows. In Section 2, we thoroughly review solutions designed to address the misalignment problem for DWC. We then perform a motivational study to better understand the dynamics of the electromagnetic field generated by the transmitter coils in Section 3. And then, we present the details of the design of the proposed LSTM model in Section 4. The simulation results are presented in Section 5 followed by conclusion and future work in Section 6.

## 2 Related Work

This section reviews the literature dedicated to addressing the misalignment problem for DWC. We categorize those solutions largely into hardware-based, tracking-based, and vision-based approaches.

Hardware-based approaches are characterized by modifying the hardware of the DWC system. Chen *et al.* propose a novel geometry of coils to improve power transfer efficiency chen2016cost. Chow *et al.* consider placing multiple coils in an orthogonal configuration chow2014investigation. Kalwar *et al.* combine multiple coils of different geometry into a single unit kalwar2016coil. Some hardware-based approaches attempt to add a new hardware component. For instance, E-shape or U-shape ferrite cores are integrated with the source coils shin2013design; kim2013coil. Active coil resonance frequency tuning circuits are applied gao2015uniform; hu2016frequency. A novel arrangement method for sensing coils is developed to detect lateral misalignment problem tavakoli2021cost. Although these hardware-based approaches improve the power transfer efficiency, the dynamics of the electromagnetic field are largely ignored. Also, some approaches have limitations in terms of the space and weight constraints for specific environments hwang2017autonomous.

Tracking-based approaches are focused on monitoring the alignment between EV and DWC system using a vehicle position tracking system. The global positioning systems (GPS) has been widely adopted for tracking the EV position. However, due to the high positioning error of GPS, most tracking-based approaches utilize different types of sensors for tracking the EV position. For instance, a radio-frequency identification (RFID) tag or a magnetic marker has been adopted ryu2015wireless; shuwei2014research; choi2009autonomous. However, since the strength of the magnetic field decays rapidly as the distance between the detector and the marker increases, those magnetic markers or RFID tags must be placed very close to each other to achieve high-resolution tracking performance, thereby increasing the construction cost significantly. In an effort to address this problem, sensor systems with greater range have been integrated with the charging system xu2009magnetic. Additionally, a Gaussian function-based algorithm is developed to increase the detection accuracy byun2015vehicle. However, these tracking system-based approaches do not work effectively when the vehicle speed is very high since the magnetic field changes dynamically as the vehicle travels fast hwang2017autonomous.

The inherent limitations of tracking-based approaches have been addressed by developing the autonomous coil alignment system (ACAS). The main advantage is that it is designed to track the vehicle’s misalignment position based only on the voltage changes in the vehicle’s load coil hwang2015autonomous. An enhanced version of ACAS has been introduced to reduce the complexity of the algorithm and hardware hwang2017autonomous, allowing for wider applicability with DWC systems with varying specifications. ACAS not only addresses the challenges of external sensor-based approaches since it is implemented on top of the existing DWC system, but also reduces the implementation cost. Although ACAS is demonstrated as an effective solution for addressing the misalignment problem, it is only compatible with specific DWC systems. Furthermore, ACAS does not account for the effect of dynamically changing electromagnetic field of the transmitter coils on the power transfer efficiency hwang2017autonomous.

A vision-based approach has been proposed recently that uses a camera to track the lateral position of EV to keep the vehicle in the center of lane to improve power transfer efficiency tian2020vision. However, due to the dynamically changing electromagnetic field, positioning the EV in the center of lane does not guarantee optimal power transfer efficiency. In contrast to existing works, our solution is the first machine learning-assisted approach that adaptively controls the EV position based on the prediction of the optimal position with maximum electromagnetic strength by effectively modeling the dynamics of the electromagnetic field.

## 3 Dynamics of Electromagnetic Field in DWC

We conduct simulations to demonstrate the dynamically changing electromagnetic field generated by the transmitter coils in space and time domains and its effect on power transfer efficiency. We use QuickField quickfield, an electromagnetic field simulation platform designed for various types of applications for electrical, thermal, bio-, and chemical engineering. This simulation platform is suitable for this motivational study as it allows us to simulate the time-varying electromagnetic field generated by non-linear coils under varying conditions.

A general setting for a DWC system is considered, where the transmitter coils are installed under the ground, and the receiver coils are mobile as they are mounted on the EV chassis. More specifically, the transmitter coils are at 3cm depth under the ground, and the shape of the coils (*i.e.*, transmitter and receiver coils) is circular with a radius of 13 cm. As shown in Fig. 1, a total of 20 points are randomly and uniformly selected. We measure electromagnetic strength at each point when the receiver coils pass over the transmitter coils. The unit of measurement for electromagnetic strength is (*i.e.,* Ampere per meter). More precisely, the unit for magnetic permeability is defined as where is Newton, and the magnetic field is measured in Tesla which is . The magnetic field strength is then measured in .

Fig. 3 depicts electromagnetic strength measured over a period of 20 seconds at a randomly selected point. The figure demonstrates the highly dynamic nature of the electromagnetic field generated by the transmitter coils. The percentage difference between the lowest and highest electromagnetic strength measured at this particular point is over 85%. Another interesting observation is that the peak electromagnetic strength is not always observed at the center of the field. Fig. 3 depicts the point index with the maximum electromagnetic strength measured with an interval of 1 second. The results show that a point with maximum electromagnetic strength dynamically changes over time. Consequently, this simulation study motivates us to develop an effective method for predicting a point with maximum electromagnetic strength and align the lateral position of EV with that point before the EV passes over the transmitter coils to maximize the power transfer efficiency.

## 4 LSTM-Based Adaptive Vehicle Position Control for DWC

In this section, we present the details of our LSTM-based adaptive vehicle position control system for DWC. We aim to model the dynamics of the electromagnetic field using LSTM and control the lateral position of the EV to optimize the power transfer efficiency. We start with an overview of the proposed system (Section 4.1). We then describe our dataset (Section 4.2) and the details of our LSTM model (Section 4.3).

### 4.1 System Overview

An overview of a DWC system integrated with our LSTM-based vehicle motion control solution is presented. There are four main components: power transfer module, power receiver module, EV motion controller, and roadside unit (RSU). The contribution of this paper is focused on designing the EV motion controller. Fig. 4

depicts the system architecture of the DWC system. The power transfer module is installed beneath the road surface. The power receiver module is mounted on the EV chassis. The electric power is provided to the EV’s battery via magnetic coupling resonance between the transmitter and receiver coils. The RSU is responsible for collecting the electromagnetic field data to train the LSTM model. The EV motion controller sends its speed information to the RSU via vehicle-to-everything (V2X) communication. The RSU then estimates the arrival time of the EV, based on which the RSU computes the EV’s optimal lateral position using the LSTM model. The RSU then sends the optimal lateral position to the EV motion controller via V2X. The EV motion controller adjusts the vehicle motion to align the vehicle with the optimal lateral position to maximize the power transfer efficiency.

### 4.2 Dataset Preparation

A dataset used to train and test our LSTM model is explained in this section. We use the same simulation setting described in Section 3

to collect the dataset. We measure the electromagnetic strength at the 20 points every 200ms. A point that has the largest electromagnetic strength is recorded and used as a feature vector. More specifically, our feature vector

is where is the -th time step (the interval of time step is 200ms), is the electromagnetic strength, and are the coordinates of the point with maximum electromagnetic strength. Consequently, our raw dataset consists of a sequence of feature vectors, .The raw dataset is preprocessed to make it suitable for training and testing our LSTM model. We use standard MinMaxScaler to scale up all feature values between 0 and 1 to allow our LSTM model to converge faster. A sliding window method is applied to restructure the raw dataset. More specifically, a sliding window of size 10 comprising of 10 successive feature vectors is used to predict the point with the largest electromagnetic strength in the next time step. The sliding window moves forward by one position. Fig. 5 shows an example of converted dataset consisting of a feature matrix and the corresponding label matrix . The row of represents 10 consecutive feature vectors used to predict the point with the largest electromagnetic strength in the next step which is specified in the row of .

### 4.3 LSTM Model Design

Long Short-Term Memory networks (LSTMs) proposed by schmidhuber1997long

are designed to learn long-term dependencies and effectively deal with the vanishing gradient problem

hou2019normalization; li2019lstm. LSTM is highly suitable for applications that make predictions based on time series data cao2020spectral. The memory block is the basic unit of the LSTM architecture. Each memory block has one or more memory cells and the input, output, and forget gates which all are shared by each cell in the memory block of the LSTM. Fig. 6 displays the internal structure and operations of a LSTM cell. The forget gate controls which information is to be kept and which is to be thrown away based on the current input and the previous hidden state, passed through the sigmoid activation function

(Eq. (1)). The input gate decides which information is necessary for the current state and which is not relevant based on the sigmoid activation function (Eq. (1)).(1) |

where and are the weight matrices for the previous hidden state and current input vector of corresponding gates, and and are biases. An intermediate candidate value matrix is computed based on the activation function (Eq. (2)). Using the forget gate , input gate , and candidate value matrix , the old cell state is updated with the new cell state (Eq. (2)).

(2) |

where is a bias, and indicates element-wise multiplication. The output gate regulates what to output to the next cell, *i.e.,* the value of the next hidden state with operations shown in Eq. (3).

(3) |

where is a bias.

We formulate the task of adaptive EV position control for DWC as a multi-variate time series prediction problem, *i.e.,* at any time step , a future optimal position with maximum magnetic field strength is inferred based on the past optimal positions. More specifically, our objective is to predict future optimal points at time steps (, ), where is the future prediction horizon, based on past optimal points with highest electromagnetic strengths at time steps (, ,…,) where is the length of past observations. We set to 1 and to 10. We also note that these parameters can be easily changed depending on the requirements of applications.

We design a multi-layer LSTM model based on the above-explained, basic LSTM network as a building block to solve this problem. By employing the multi-layer design, we aim to enable a more complex representation of time-series data and provide better prediction accuracy. Due to the computational overhead and limited hardware resources we have, we employ two layers in our design.

Fig. 7 displays the architecture of the proposed LSTM model. As shown, the input to train the LSTM model is a sequence of matrices , each matrix containing 10 successive feature vectors. Essentially, an input matrix corresponds to a row of the feature matrix . More specifically, the 10 feature vectors of an input matrix, say at time step , denoted by {, , …,} are fed into the first LSTM layer. The first LSTM layer outputs a sequence of feature vectors as an input for the following LSTM layer, which is directly connected to the dense layer responsible for producing the coordinates of a point with maximum electromagnetic strength at time step

. Since predicting a 2D optimal position is a regression problem, the output of the fully connected layer is passed through the linear activation function. We train the model with mean squared error (MSE) loss function representing the difference between the ground truth point and predicted point:

, where is the number of the training sample, is the actual value, and is the predicted value.## 5 Simulation Results

We evaluate our adaptive vehicle motion control system for DWC. We use the QuickField simulation software quickfield to simulate the transmitter and receiver coils of a regular DWC system. A point with maximum electromagnetic strength is measured with a time-step interval of 200ms. Specifically, a feature vector is created at each time step . A total of 6,000 feature vectors are created equivalent to about 20 minutes of DWC operation time to train the proposed LSTM model.

A PC equipped with M1 Processor with 8GB RAM running on Monterey OS is used for this simulation study. We implement, train, and test the proposed multi-layer LSTM model in Python using Keras and Tensorflow. An average training time for an epoch is 6 seconds, and we train our model up to 1000 epochs. Thus, the average training time for a model is approximately 1.6 hours. To measure the highest performance gain, we assume that the EV arrives at the LSTM-predicted optimal point in a timely manner. However, note that a more realistic scenario can be created by modeling vehicle arrival time as a stochastic process.

A key metric used for evaluation is the charging efficiency. With our test dataset, predictions are made a total of 600 times. The average electromagnetic strength of the predicted points is computed and used to represent the charging efficiency. The average electromagnetic strength of our approach is compared with state-of-the-art solutions focused on positioning the EV in the center of lane such as tian2020vision

. We denote such a solution by the Base solution. In this section, we first determine the optimal hyperparameters for our multi-layer LSTM model (Subsection

5.1). Based on the selected hyperparameters, we measure the charging efficiency by varying the dataset size and the prediction interval (Subsection 5.2). Finally, we measure the computational delay to ensure that the proposed approach is applicable for EVs with very high speed (Subsection 5.3).### 5.1 Hyperparameter Tuning

We perform hyperparameter tuning to optimize the performance. The grid search method is used to find the optimal number of hidden units, batch size, and learning rate for our LSTM model. We consider the number of hidden units between 40 and 180 with an interval of 20, a set of batch sizes , and a set of learning rates . The mean squared error (MSE) between the actual (ground truth) coordinates and the model-predicted coordinates is used to represent the effectiveness of hyperparameters. Consequently, for our simulation setting, we find the number of hidden units of 120, batch size of 16, and learning rate of 0.001 lead to optimal performance.

### 5.2 Charging Efficiency

We analyze the charging efficiency of the proposed vehicle motion control system based on the set of hyperparameters that we find through hyperparameter tuning. Specifically, in our simulation, the charging efficiency is represented by the average electromagnetic strength computed over 600 times of predictions. We measure the average electromagnetic strength by varying the size of training dataset and prediction interval. Here the prediction interval determines how frequently the EV performs prediction and controls its motion accordingly to align itself with the optimal lateral position.

Fig. 11 depicts the average electromagnetic strength with varying sizes of training dataset. It is observed that the average electromagnetic strength obtained with our solution is by up to 162.3% higher than that of the Base approach. The results demonstrate the strong potential of dynamically adjusting the lateral position of EV to improve the charging efficiency even without modifying the existing infrastructure for DWC. Furthermore, as shown in Fig. 11, charging efficiency gradually improves as the size of training dataset increases. Specifically, we observe that with 6,000 records, the charging efficiency is improved by 48.2% on average compared with that for 500 records. Fig. 11 displays the average electromagnetic strength by varying the prediction interval. Here, 100% interval means that the EV position is updated at its full capacity (determined based on the computational delay as explained in Section 5.3). The results demonstrate that higher charging efficiency can be achieved by making predictions and controlling the EV motion more frequently. It is notable that as the update interval is decreased to 20%, the charging efficiency significantly decreases by 51.5%. In particular, the proposed approach converges to the Base solution as the position update interval approaches 0%.

### 5.3 Computational Delay

We have demonstrated in Section 5.2 that more frequently updating the lateral position of EV leads to higher charging efficiency. One requirement for frequent position update is, however, sufficiently low computational delay for predicting the optimal lateral position. Fig. 12 depicts the cumulative distribution function (CDF) graph for the computational delay for the proposed vehicle motion control system. The results demonstrate that in more than 95% of time, the computational delay is smaller than 25ms, and the average computational delay is 23.8ms. The results indicate that with our system, a vehicle can adjust its lateral position every 8 to 10 meters on a highway when the vehicle speed is 75mph (120.7kmh).

## 6 Conclusion

We have presented a LSTM-based adaptive vehicle position control system for DWC. The dynamics of the electromagnetic field generated by the transmitter coils are effectively represented as a multi-layer LSTM model. The power transfer efficiency is improved by allowing an EV to predict the optimal point with maximum electromagnetic strength using the LSTM model and align its lateral position with the point. Simulation results demonstrate that our approach achieves by up to 162.3% higher charging efficiency compared with a state-of-the-art solution focused on positioning the EV in the center of lane.

Our future work is to address the limitation of the simulation-based evaluation by implementing a RC car-based prototype DWC system integrated with the proposed LSTM-based vehicle motion control solution to demonstrate significantly enhanced charging efficiency under realistic scenarios. Another future work is to address the limitation of sacalability by performing city-scale simulations to understand the large-scale, societal, and ecomic impact of the proposed vehicle motion control system for significant energy savings. A potential negative impact of fully automated EV motion control on driving comfort and safety for surrounding human-driven vehicles should also be addressed.