원시데이터 수집 시스템
선정목록으로

A Real-Time Energy Consumption Minimization Framework for Electric Vehicles Routing Optimization Based on SARSA Reinforcement Learning

관련 수소연료전지 · (6) PEM(고분자전해질막)

기본 정보

저자
  1. Tawfiq M. Aljohani — Department of Electrical and Computer Engineering, College of Engineering, Taibah University (Y-Campus), Medina 46422, Saudi Arabia
  2. Osama A. Mohammed — Energy Systems Research Laboratories, Florida International University, Miami, FL 33174, USA
DOI
10.3390/vehicles4040062
저널
Vehicles
발행년도
2022
발행기관
Multidisciplinary Digital Publishing Institute
피인용수
16
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.3390/vehicles4040062
토픽
Electric and Hybrid Vehicle Technologies
OpenAlex ID
W4306772724

평가 내용

관련도
관련
사업분야
수소연료전지 · (6) PEM(고분자전해질막)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '수소연료전지 > PEM(고분자전해질막)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

A real-time, metadata-driven electric vehicle routing optimization to reduce on-road energy requirements is proposed in this work. The proposed strategy employs the state–action–reward–state–action (SARSA) algorithm to learn the EV’s maximum travel policy as an agent. As a function of the received reward signal, the policy model evaluates the optimal behavior of the agent. Markov chain models (MCMs) are used to estimate the agent’s energy requirements on the road, in which a single Markov step represents the average energy consumption based on practical driving conditions, including driving patterns, road conditions, and restrictions that may apply. A real-time simulation in Python with TensorFlow, NumPy, and Pandas library requirements was run, considering real-life driving data for two EVs trips retrieved from Google’s API. The two trips started at 4.30 p.m. on 11 October 2021, in Los Angeles, California, and Miami, Florida, to reach EV charging stations six miles away from the starting locations. According to simulation results, the proposed AI-based energy minimization framework reduces the energy requirement by 11.04% and 5.72%, respectively. The results yield lower energy consumption compared with Google’s suggested routes and previous work reported in the literature using the DDQN algorithm.

본문 60,026자

본문 펼치기
A real-time, metadata-driven electric vehicle routing optimization to reduce on-road energy requirements is proposed in this work.The proposed strategy employs the state-action-rewardstate-action (SARSA) algorithm to learn the EV's maximum travel policy as an agent.As a function of the received reward signal, the policy model evaluates the optimal behavior of the agent.Markov chain models (MCMs) are used to estimate the agent's energy requirements on the road, in which a single Markov step represents the average energy consumption based on practical driving conditions, including driving patterns, road conditions, and restrictions that may apply.A real-time simulation in Python with TensorFlow, NumPy, and Pandas library requirements was run, considering real-life driving data for two EVs trips retrieved from Google's API.The two trips started at 4.30 p.m. on 11 October 2021, in Los Angeles, California, and Miami, Florida, to reach EV charging stations six miles away from the starting locations.According to simulation results, the proposed AI-based energy minimization framework reduces the energy requirement by 11.04% and 5.72%, respectively.The results yield lower energy consumption compared with Google's suggested routes and previous work reported in the literature using the DDQN algorithm. Introduction Transportation electrification has emerged as a pivotal solution to combat climate change by offsetting emissions from the two main contributors to greenhouse gas emissions (GHG): the transportation sector and the power industry.To expedite transportation electrification, governments around the globe have recently adopted progressive policies and supported research to facilitate the fast and reliable integration of millions of electric vehicles (EVs) on the road.Nevertheless, efforts are still needed to increase confidence in EVs as a reliable technology and overcome internal battery energy management concerns.This includes extending the driving range of EVs to reduce range anxiety, which is the fear of running out of power while not finding a charging station.According to [1,2], this resembled a significant obstacle to the large-scale adoption of EVs.This work presents a real-time, metadata-driven, reinforcement learning-based energy consumption minimization strategy that allows EVs to extend their driving range.This is especially during conditions where EV owners are more concerned with the amount of energy required to reach a charging destination than with arrival time.The proposed framework is based on the SARSA, an iterative, on-policy, reinforcement learning algorithm that computes the expected value of a policy considering the explorative behavior of an agent. Introduction Reinforcement learning (RL) is an artificial intelligence technique widely accepted as an efficient tool for solving various scientific problems [3].In the recent decade, several Introduction Vehicles 2022, 4 1177 works in the literature have employed reinforcement learning to perform electric vehiclerelated studies, such as in optimal EV routing [4], intelligent EV charging scheduling [5], and powertrain optimization for hybrid and PEVs [6,7].It is worth mentioning that the study conducted in [4] was successfully performed by the authors of this work based on the DDQN algorithm; therefore, its results will serve as a benchmark for the proposed work.Away from electric vehicles, RL techniques have widely been utilized to perform a wide range of studies in the energy field.Reference [8] proposes residential load management based on RL to effectively design price-based demand response programs to control smart buildings' loads.Reference [9] utilizes RL to optimize the maintenance scheduling of the power grids.RL was used in [10] to coordinate strategic bidding for power markets, where multidimensional continuous states and action spaces enable the market participants to receive accurate feedback regarding the impact of their bidding decisions.While other studies have deployed RL for robotic control [11,12], cybersecurity of smart grids [13,14], computer systems architecture [15,16], traffic congestion relief and coordination [17,18], and wireless systems and communication networks [19,20], there are still limitations to the use of RL-SARSA in the EV-related research literature.Previous studies have shown the capability of the SARSA algorithm to effectively solve problems ranging from EV charging control [21], demand response in smart grids [22], peer-to-peer energy transactions [23], to hybrid EVs controllers and powertrains [24,25].More importantly, the EV routing optimization problem is an underexplored research area in a time where range anxiety remains one of the challenges to expanding the EV market [26].To complement such deficiencies, this work proposes a real-time, metadata-driven RL-SARSA algorithm-based routing optimization to reduce on-road EV energy requirements to extend the drivability range.The proposed approach evaluates Q-values through the state-action-reward-stateaction (SARSA) algorithm to train the EV as an agent that independently chooses optimal actions that resemble driving decisions with lower energy requirements.Ultimately, the learning process extends the drivability range of the EV.The driving dynamics of EVs are achieved following the Markov chain model (MCM) to evaluate the energy needs for on-road trips with respect to the proposed framework.The agent's learning experience is supplemented with real-time metadata provided by Google's API platform to feed the agent with continuously updated driving information. Introduction The rest of this article is organized as follows: Section 2 shows the primary concepts of RL and MCM utilized with the SARSA algorithm; Section 3 presents the proposed strategy to achieve energy consumption minimization, the metadata extraction process from Google's API, and the application of the SARSA algorithm; Section 4 shows the experimental results of the proposed strategy for two geographically different trips; and Section 5 concludes the work. Reinforcement Learning 2.1. State-Action-Reward-State-Action (SARSA) Algorithm State-action-reward-state-action (SARSA) is an artificial intelligence algorithm based on the Markov decision process (MDP).Considered one of the well-established algorithms in the reinforcement learning area of machine learning, SARSA was firstly proposed by Rummery and Niranjan [27] as the "Modified Connectionist Q-Learning MCQL" algorithm.Sutton [28] later suggested the current name SARSA.SARSA and Q-learning are two famous RL algorithms based on temporal difference learning (TD), with a high capability of establishing a learning process that eventually produces successive decision-making steps.Reinforcement learning utilizes the concept of an agent that operates in a given environment to infer a policy, Π, following a set of self-explanatory actions a i , and states s i , computed Q-values, and reward signals, R. The agent can only choose a certain action based on its current state, influenced by a positive or negative reward signal established by the learning process.In addition, a discount factor γ is suggested concerning the learning strategy's design goals.The closer γ gets to unity, the more influence the next reward will have on the current state, and vice versa.Reward signals, therefore, serve as feedback that indicates the possibility of failure or success of the action in relation to the learning process. Reinforcement Learning 2.1. State-Action-Reward-State-Action (SARSA) Algorithm The concept of SARSA is that the primary function used to update the Q-value depends on the current state of the agents.The action that the agent chooses "a", the reward signal "r" that influences the agent to select the proper action, the state "s'" that the agent enters after taking that specific action, and finally, the following action "a'" the agent chooses in its new state.In SARSA, the agent uses the state-value function in conjunction with the epsilon greedy policy to perform exploration and exploitation.Based on the weights of the obtained Q-values, the following process grades the states and estimates their relative strength as follows: Reinforcement Learning 2.1. State-Action-Reward-State-Action (SARSA) Algorithm where A is the set of agent's actions a i ∈ A; s i ∈ S is the set of agent's states; Q i (s, a) and r i (s, a) as the corresponding Q-value and reward signal; and π as the control policy in the learning process.While Equation ( 1) defines the state-value relationship, Equation ( 2) highlights the action-value correlation.The major difference between the two functions lies in whether the agent's current action is known.As a result, the action-value function is usually utilized to derive the optimal action at each time step.Therefore, Equation ( 2) could be better rewritten as the Bellman form as follows: Reinforcement Learning 2.1. State-Action-Reward-State-Action (SARSA) Algorithm where P(s'| s, a) is the probability of the agent transitioning between any two consecutive states following a given action, while s', a' are the updated state and action.Then, the agent can decide on an optimal action by either feedback obtained by maximizing or minimizing the value function, as follows: Reinforcement Learning 2.1. State-Action-Reward-State-Action (SARSA) Algorithm The major goal behind RL is to train the agent with a policy (π) that maximizes reinforcements that influences the agent's behavior, mapping its states into optimal actions.ε-greedy is a methodology for optimal action selections in RL, where the parameter ε ∈ [0, 1] is defined, and the policy π(s) could be utilized as follows: Reinforcement Learning 2.1. State-Action-Reward-State-Action (SARSA) Algorithm where á is the best-obtained action for the state s, while a r is the agent that selects a random action with a probability ε.As one may notice, for each time step, the optimal control policy is achieved by iterative calculations of the action-value matrix Q (s,a).In this work, the ε-greedy policy is utilized to decide the optimal control actions for the agent, as it explores a random control action with a probability that increases when the learning experience advances.This point distinguishes the SARSA from the Q-learning algorithm of reinforcement learning.In SARSA, the current and subsequent actions of the agent are all chosen by greedy policy, making it an on-policy.Conversely, in Q-learning, the agent's following action is not determined by the greedy online policy, making it an off-policy.The SARSA updates the Q-values utilizing the following expression: Reinforcement Learning 2.1. State-Action-Reward-State-Action (SARSA) Algorithm where a is the learning rate that has values ∈ [0,1].As mentioned earlier, the epsilon greedy policy is utilized to determine the agent's optimal action in Equation (6).As one may notice, this may yield a better exploration strategy but with the drawback of consuming more time, presenting SARSA as a better strategy than Q-learning to obtain optimal values, yet possibly may yield more time to achieve such a purpose.Another significant difference between SARSA and Q-learning is that the SARSA algorithm can obtain a different policy when exploration of the agent may result in hefty penalties.For example, suppose the agent (an EV) navigates near an unreachable position that poses a danger, such as driving toward a lake or a tree next to the side of the road.In that case, even if this is an optimal policy per calculations, it will be dangerous for exploration steps.As a result, SARSA will note this and adopt a policy that keeps the EV away from that side of the road through its drive. Reinforcement Learning 2.1. State-Action-Reward-State-Action (SARSA) Algorithm In other words, SARSA will find an optimal policy considering the exploration inherited in the policy.A third distinction between the two RL algorithms could be seen from the aspect of the agent's policy; behavior or learning.For instance, the behavioral approach generates actions because of the agent's interaction with its surrounding environment. Reinforcement Learning 2.1. State-Action-Reward-State-Action (SARSA) Algorithm Then, the learning strategy influences the agent to learn through such interactions.For SARSA, both behavioral and learning approaches are equal, while this is not the case for the DDQN algorithm. Reinforcement Learning 2.1. State-Action-Reward-State-Action (SARSA) Algorithm Agents can find themselves in an actual instant situation, known as the state, in a given environment, such as a transportation system that has a driver to guide them to their destination.This work assumes an EV to be the agent that learns from its present state to infer its next state by using a strategy that achieves maximal rewards (i.e., minimal energy consumption), known as the learning policy Π.The SARSA algorithm provides artificial learning that determines the agent's next action.The agent achieves the next reward with each additional step.As a result of this reward, the learning process establishes the new state, s', with a particular probability of transforming between states.The mapping represents the learning policy and the sequence of actions and states required to achieve any reward is known as the trajectory.Figure 1 provides an illustration of the concept of SARSA-RL utilized in this work. Reinforcement Learning 2.1. State-Action-Reward-State-Action (SARSA) Algorithm Vehicles 2022, 4, FOR PEER REVIEW 4 consuming more time, presenting SARSA as a better strategy than Q-learning to obtain optimal values, yet possibly may yield more time to achieve such a purpose.Another significant difference between SARSA and Q-learning is that the SARSA algorithm can obtain a different policy when exploration of the agent may result in hefty penalties.For example, suppose the agent (an EV) navigates near an unreachable position that poses a danger, such as driving toward a lake or a tree next to the side of the road.In that case, even if this is an optimal policy per calculations, it will be dangerous for exploration steps.As a result, SARSA will note this and adopt a policy that keeps the EV away from that side of the road through its drive.In other words, SARSA will find an optimal policy considering the exploration inherited in the policy.A third distinction between the two RL algorithms could be seen from the aspect of the agent's policy; behavior or learning.For instance, the behavioral approach generates actions because of the agent's interaction with its surrounding environment.Then, the learning strategy influences the agent to learn through such interactions.For SARSA, both behavioral and learning approaches are equal, while this is not the case for the DDQN algorithm. Reinforcement Learning 2.1. State-Action-Reward-State-Action (SARSA) Algorithm Agents can find themselves in an actual instant situation, known as the state, in a given environment, such as a transportation system that has a driver to guide them to their destination.This work assumes an EV to be the agent that learns from its present state to infer its next state by using a strategy that achieves maximal rewards (i.e., minimal energy consumption), known as the learning policy Π.The SARSA algorithm provides artificial learning that determines the agent's next action.The agent achieves the next reward with each additional step.As a result of this reward, the learning process establishes the new state, s', with a particular probability of transforming between states.The mapping represents the learning policy and the sequence of actions and states required to achieve any reward is known as the trajectory.Figure 1 provides an illustration of the concept of SARSA-RL utilized in this work The pseudo-code of the proposed energy consumption minimization strategy based on SARSA is shown in Table 1.The number of episodes considered in this work is 140, with a maximum of 1000 iterations within each episode.It is worth mentioning that the learning rate is continuously changing with time and is decided as 1/√ + 2, with a sample time of 1 s.The reward signal for moving between states and is estimated as follows: The pseudo-code of the proposed energy consumption minimization strategy based on SARSA is shown in Table 1.The number of episodes considered in this work is 140, with a maximum of 1000 iterations within each episode.It is worth mentioning that the learning rate is continuously changing with time and is decided as 1/ √ k + 2, with a sample time of 1 s.The reward signal for moving between states i and j is estimated as follows: Reinforcement Learning 2.1. State-Action-Reward-State-Action (SARSA) Algorithm where E l (i, j) and E h (i, j) correspond to the best and highest energy requirement obtained in a driving cycle between states i and j, respectively.For the agent to reach an optimal policy is equivalent to converging the obtained Q-value to the Q-values desired for the next time step.For each newly integrated input data at time slot t, the Q-update and its probabilistic information can be expressed as follow: Reinforcement Learning 2.1. State-Action-Reward-State-Action (SARSA) Algorithm To fittingly train the estimator, a common loss function is utilized as follows: Reinforcement Learning 2.1. State-Action-Reward-State-Action (SARSA) Algorithm L resembles the loss value to be calculated at the i th iteration and is an indication of the distance between the obtained Q-values and the Q-values at the next time step.The target value at the i th iteration, which could be found as follows: Reinforcement Learning 2.1. State-Action-Reward-State-Action (SARSA) Algorithm Table 1.Pseudo-code of the SARSA algorithm. 1. Retrieve the agent's geocode location. 2. Initialize Q (s, a), state (s), and the number of iteration k. 3. Calculate W i (P), generate Q M . 4. Repeat each step k s.t.k = 1, 2,. . . .k. 5. Determine optimal action a, depend on Q(s, •), following ε-greedy policy. 6. Based on action a; observe reward r and next state ś 7. 6. Determine action á = arg maxa Q t (s, a) 8. 6. s ← ś 10.Repeat until s is terminal. Operation Modes The primary goal of the neural network (NN) model is to permit mapping from R n to R m .An input vector indicates the agent's geocoded location coordinates.In contrast, an output vector shows the Q-values generated by the algorithm, which represent the possible directions the agent may drive (north, south, west, east, northeast, northwest, southeast, and southwest).Hidden layers are incorporated into the NN model to avoid any implied data trapping.Another careful consideration was allocated to the number of neurons in the hidden layers.Overfitting or underfitting problems may emerge because of improper numbering of neurons, leading to impractical extreme simulation times [29,30]. Operation Modes In the proposed framework, the input layer describes the geocoding of the agent's location retrieved in real time from Google's API.The input is succeeded by two hidden connection layers, the first consists of twelve neurons connected to ten neurons of the second hidden layer.The output layer has an eight-dimensional vector that resembles the possible actions for the agent to perform, which is navigating through eight physical directions.This experiment assumes 0.30 as a drop-out rate to minimize potential overfitting and increase generalization, with a learning rate of 0.1 for every step in the learning process to optimally manage the learning speed.SARSA will converge to optimal Q-values but strictly within the space of the epsilon greedy policy, with SARSA reaching the ultimate optimal policy with the decay of epsilon to zero.As highlighted in [31], the SARSA will indeed converge to an optimal policy as long as pairs representing state-action are visited an infinite number of times.As a result, the policy converges but within the limit of the greedy policy by selecting ε = 1/t. Markov Chain Modeling of the Traffic Dynamics The Markov chain model (MCM) is a practical methodology for simulating the dynamics of traffic roads.To achieve the overall goal of this work, MCM is utilized to model the driving patterns and accordingly estimate their energy requirements on the roads.The MCM's microscopic behavior allows realistic modeling of the EV's journey and driving possibilities.This is because MCM can deal with a large dataset containing millions of input information.Therefore, it is ideal for modeling urban network infrastructures incorporating thousands of roads and associated transportation services (e.g., stop signs and signals).Specifically, MCM is a discrete stochastic process with finite states that, for a homogeneous MCM, change its value at each time step under the stochastic nature of the vehicles' dynamics.It is worth mentioning that the probability of a transition between any two states mainly depends on the state of the previous time step.Reference [32] was among the first to utilize MCM in capturing a dynamically complex system.Modeling road dynamics is highly stochastic and is difficult to estimate.As a result, this work realizes that the best methodology to handle such complex modeling is through perturbed MCM.The core idea behind representing the dynamics of the road via MCM lies in its powerful capabilities in modeling traffic data via proper construction of the transition matrix.This allows adequate simulation for the vehicle's travel information and subsequent on-road energy requirements that feed the proposed RL energy minimization framework.As required for any dynamic system, a reference point must be set to properly measure the contribution from all involved points in the system's boundary.The reference point establishes the probability of transition between any two states within a bounded region in the simulation environment.Typically, such regions of study are defined as mappings between two spaces T: G, s.t. the set G represents a nonempty subset of the space T, divided into mutually exclusive and collectively exhaustive sets {S 1 , S 2 , . . . ,S T }.On the other hand, T represents the total number of states in the simulation, with each set labeled as a specific state, i, of the MCM.The modeling starts with the agent navigating through a defined segment on the road that resembles the change of its states from s i to state s j .A probability P ij describes the likelihood of the agent's change of states.Successively, a matrix T M is constructed with entries representing the agents' relative transitional probabilities that capture the vehicle drive.It is worth mentioning that T M should have no negative entries as the sum of probabilities must add up to 1, with the probabilities of transitions forming its diagonal elements.Hence, special consideration must be considered to deal with the regenerative braking of EVs, as illustrated in Section 3.5. Markov Chain Modeling of the Traffic Dynamics The work assumes that the agent's drive starts when the vehicle moves from a predefined location (starting position of a road segment) to another predefined location (ending position of the road segment), establishing an initial probability distribution for the transition matrix.Such process continues until the agent stops its drive, wherein this case, the relative entry represents the probability of the same state, P ii .Assuming r s represents the total states in a drive, the ij th element of T M after n steps is found as follows: Markov Chain Modeling of the Traffic Dynamics Upon the calculation of p and p n , p n is normalized as follows: Markov Chain Modeling of the Traffic Dynamics ∑ Markov Chain Modeling of the Traffic Dynamics This work realizes the agent drives as a set of graphs that represent the EV's historical geocode locations throughout the drive, which was retrieved in this work from Google's API platform.Modeling the road segments is achieved with vertices representing specific geocodes that resemble intersections on the driven pathway.Vertices i and j are connected by an oriented graph G if there is a road segment that links them, and hence a segment is only considered if it is a drivable path.Accordingly, G = G i , G j is represented by the weights p ij iff p ij > 0. The weight W ij is defined in this work as the average energy requirement to move the agent between vertices i and j, as explained in Section 3.2.Figure 2 presents an illustration of graph modeling in transportation.Specifically, a segment G 1 G 2 is the drivable pathway that connects geocodes represented as G 1 and G 2 .It is worth mentioning that the core concept in modeling the actual probability transitions in MCM is achieved as a step unit of time.This work modifies this concept to represent the energy consumption requirements on the road as a unit step of energy.Such an assumption has been used previously in the literature [33,34]. Markov Chain Modeling of the Traffic Dynamics Vehicles 2022, 4, FOR PEER REVIEW 7 Markov Chain Modeling of the Traffic Dynamics ∑ , = 1 =1 (17) This work realizes the agent drives as a set of graphs that represent the EV's historical geocode locations throughout the drive, which was retrieved in this work from Google's API platform.Modeling the road segments is achieved with vertices representing specific geocodes that resemble intersections on the driven pathway.Vertices and are connected by an oriented graph G if there is a road segment that links them, and hence a segment is only considered if it is a drivable path.Accordingly, = < , > is represented by the weights iff > 0. The weight is defined in this work as the average energy requirement to move the agent between vertices and , as explained in Section 3.2.Figure 2 presents an illustration of graph modeling in transportation.Specifically, a segment 1 2 is the drivable pathway that connects geocodes represented as 1 and 2 .It is worth mentioning that the core concept in modeling the actual probability transitions in MCM is achieved as a step unit of time.This work modifies this concept to represent the energy consumption requirements on the road as a unit step of energy.Such an assumption has been used previously in the literature [33,34]. Application of the SARSA Algorithm to Solve the EV Routing Optimization By utilizing the concept of cumulative rewards instead of immediate ones, RL could effectively be used as an approach to train the EV as an agent that navigates through driving routes that yield lower energy requirements.This is achieved based on inputs that include EV power demand, battery status, and driving conditions, including the number of stops, speed limits, road closures, etc.As an agent, EVs are only required to know the current state of knowledge and the resultant rewards produced by the learning algorithm of navigation in the driving environment, the Google Maps platform, in this work.The set of actions in the learning process represents the feasible routes with the least energy requirements.Specifically, the agent starts driving, taking random steps, supplementing the geocodes of driving each road segment as an input layer to the RL algorithm.The two hidden layers in the neural network have a linear rectifier unit that acts as an activation function that gradually optimizes the agent's actions as the driving process continues.As the learning process proceeds, the energy is optimized due to a change of the agent's states following the MCM, where Markov's step unit represents the step unit of energy consumption.Several studies in different fields used the same modification of Markov's step unit to achieve other optimization objectives.Authors in [35] represented the step unit as a unit of pollution in their model instead of a time.This work uses discounted factors in the range of 0.1-0.85,driving losses of 15%, with nearly 50% of energy that could be Application of the SARSA Algorithm to Solve the EV Routing Optimization By utilizing the concept of cumulative rewards instead of immediate ones, RL could effectively be used as an approach to train the EV as an agent that navigates through driving routes that yield lower energy requirements.This is achieved based on inputs that include EV power demand, battery status, and driving conditions, including the number of stops, speed limits, road closures, etc.As an agent, EVs are only required to know the current state of knowledge and the resultant rewards produced by the learning algorithm of navigation in the driving environment, the Google Maps platform, in this work.The set of actions in the learning process represents the feasible routes with the least energy requirements.Specifically, the agent starts driving, taking random steps, supplementing the geocodes of driving each road segment as an input layer to the RL algorithm.The two hidden layers in the neural network have a linear rectifier unit that acts as an activation function that gradually optimizes the agent's actions as the driving process continues.As the learning process proceeds, the energy is optimized due to a change of the agent's states following the MCM, where Markov's step unit represents the step unit of energy consumption.Several studies in different fields used the same modification of Markov's step unit to achieve other optimization objectives.Authors in [35] represented the step unit as a unit of pollution in their model instead of a time.This work uses discounted factors in the range of 0.1-0.85,driving losses of 15%, with nearly 50% of energy that could be retained during the deceleration phase of the drive [36].The impact of regenerative braking is carefully accounted for in this work and is explained thoroughly in the forthcoming sections. Real-Time Metadata Extraction from Google's API With the Google Maps Geocoding API, physical locations can be converted into longitude and latitude coordinates.This experiment utilizes the geocoding API to obtain navigation geocodes for each trip segment, from the starting point to the destination.A rectangular limitation is imposed on the map for each phase in the learning process to allow realistic modeling of the EV EV trip within strictly specific physical boundaries.However, due to Earth's spherical geometry and restrictions set on the stride length, such a grid map may not always be a rectangle. Real-Time Metadata Extraction from Google's API As mentioned earlier, the EV can move only in one direction out of eight possible options provided by Google's Direction API during each state of the modeling.On the other hand, the Elevation API supports the learning process by offering differences in heights during the drive with the help of the Navigation API instructional geocoding list.In the case of an unreachable position during the driving process (e.g., lakes or trees), the Direction API returns a "False" value to exclude the route from the list of options.In addition, and for realistic driving simulation, Google's Roads API was used to provide the EV with real-time driving conditions, such as speed limitations, the number of stops, traffic signals, road closures due to construction, and traffic congestion, to name a few.Such information is pivotal in the learning algorithm to dictate the optimal energy consumption options for the agent.Because access to instant traffic data was sometimes limited and challenging to obtain due to Google's API access limitations, raw traffic data were estimated based on the "duration in traffic" results for each drive segment returned by Google's Duration. EV Energy Consumption in the MCM Traffic Model Modeling the driving segments is achieved following the concept of oriented graphs, with each vertex resembling a particular geocoded position that has edges G i , G j as a feasible driving path between any two vertices.This work defines the weights w G i , G j as the average energy requirement for the EV's battery during the i th state, calculated as follows: EV Energy Consumption in the MCM Traffic Model where i = 1... n, and β resembles the step size in the range between zero and weights w i .To appropriately comprise the weights into the model, T M is transformed into another matrix, Q .M. , as follows: EV Energy Consumption in the MCM Traffic Model where D represents the diagonal entries of matrix Q M s.t.D = diag (w 1 ,..,w n ) with weights w i = 1,..., n.Matrix I represents the identity matrix that has the same dimensions as T M .As mentioned earlier, the step unit in MCM is modeled as a step unit of energy instead of a step unit of time.This allows proper estimation of the agent's energy requirement per each segment considering the driving conditions.It also allows realistic incorporation of different driving behaviors that differ from one person to another.In this simulation, three driving phases are considered: cruising, deceleration, and acceleration phases.The energy requirement of the EV on each segment is the sum of its energy consumption, modeled as the integration of the EV dynamics taking into account the three forces F acc , F rol , and F ad , along with F slope .F acc represents the accelerating force; F rol is the overcoming rolling resistance force; F ad is the aerodynamic drag force; and F slope is the hill-climbing force.These dynamics are obtained as follows: EV Energy Consumption in the MCM Traffic Model Vehicles 2022, 4 EV Energy Consumption in the MCM Traffic Model 1184 EV Energy Consumption in the MCM Traffic Model where A represents the area in front of the vehicle, depending on its types and size (e.g., EV truck, EV sedan, etc.); α represents the acceleration factor of the vehicle; m is the vehicle's mass at a particular speed V; ϕ as the physical incline of the road segment; and µ ro1 , ρ, C d , and g are constants; x 1 , x 2 represents accumulated driven distances of the cruising and deceleration phases; while x 3 represents the total length of the traveled path.Such information provides accuracy for modeling the experiment, as geophysical metadata and relative limitations are accordingly reflected in the equations.Table 1 shows the pseudocode of the SARSA algorithm utilized in this work, while Table 2 shows the parameters of the EV, assumed Tesla V, used in this experiment.It is worth mentioning that the parameters in Table 2 are the same as those used in [4] by the authors for benchmarking purposes. Value Iteration Network (VIN) Model The main objective of designing the value-iteration network (VIN) is to find the optimal Q-values for the learning algorithm.Following the graph convolution and VIN, the traffic conditions of the agent could be mapped to routing decisions on the graph.To achieve this purpose, the VIN was approximated following the work of reference [36], where the VIN module was introduced as an NN layer that allows encoding differentiable planning computations.As proposed in [37], each iteration of the VIN module passes both value and reward functions through conventional neural network (CNN) max pooling layers.For optimal results, experienced replay inspired by [38] was integrated to allow a scalable learning model for the agent.To avoid getting the agent trapped in deciding optimal Q-values, a memory is utilized to store the output values of the previous learning iterations into a historical record stack.During the training process, training data from this stack are weight-sampled concerning its reward values.As Figure 3 shows, the input signal is an image representing geographical coordinates of the physical EV location, producing output that influences the overall travel policy following attention and observation.Then as shown in Figure 4, the quadrable e t = s, a, r, ś, á is saved in historical stock D = e 1 , e 2 , . . ., e n , with n as the number of the preserved states of the learning process.A CNN layer, fr, reforms the input grid map into one that contains pixels representing the reward values.The results from the MCM influence the value function described in Equations ( 1) and (8). Figure 5 provides illustration for the structure of the VI module in the training process.Particularly, at the i th iteration, the loss function defined in Equation ( 11) is differentiated to get the gradient of the loss function.Finally, the output layer provides the optimal Q-values based on the discounting factor, save the quadrable in historical stack D, and then start the next iteration process.Values for the final policy values are produced once iterations are concluded. Value Iteration Network (VIN) Model Equation ( 11) is differentiated to get the gradient of the loss function.Finally, the output layer provides the optimal Q-values based on the discounting factor, save the quadrable in historical stack D, and then start the next iteration process.Values for the final policy values are produced once iterations are concluded.Equation ( 11) is differentiated to get the gradient of the loss function.Finally, the output layer provides the optimal Q-values based on the discounting factor, save the quadrable in historical stack D, and then start the next iteration process.Values for the final policy values are produced once iterations are concluded.Equation ( 11) is differentiated to get the gradient of the loss function.Finally, the output layer provides the optimal Q-values based on the discounting factor, save the quadrable in historical stack D, and then start the next iteration process.Values for the final policy values are produced once iterations are concluded. Experimental Modeling of the EV's Battery A dynamic modeling of EV batteries was used for this simulation and was derived from the work of References [39,40].Time factors for lithium batteries are presented studies [41,42] and are incorporated into the battery model by [42] to better estimate SoC.The SoC, voltage, and power losses of the agent's battery are modeled as follows: Experimental Modeling of the EV's Battery where T sec , T min , and T hour represent time-constant variables of the dynamic behavior of the battery.It should be noted that number of driving cycles, temperature and battery's discharge rate were assumed based on [42].V terminal and V oc are both terminal and open circuit voltage levels for the battery's circuit; R int and R transient are the battery's internal and train set resistance; C battery and I battery represent the capacity and current of the battery, both modeled as a current source follows [43]: Experimental Modeling of the EV's Battery Table 1 in Reference [42] shows the parameters utilized in our simulation, with the exception of the battery's degradation level that was disregarded, as the battery's life cyle is out of the scope of the study. Impact of Regenerative Braking To avoid having zero values in the diagonal elements of T M because of regenerative braking, a medial matrix is introduced in this work.Specifically, the medial matrix will allow only absolute values of the unit step of energy for the vehicle's traveled path.Subsequently, the weights are rearranged as follows: Impact of Regenerative Braking where ∝ represents the sign of a change of the energy requirement during regenerative braking and is strictly bounded in the interval 0 < ∝ < minimum w i . Results and Discussion To verify the proposed energy minimization framework based on the SARSA algorithm, a real-time experiment was conducted in the Python environment to assess the capability of the proposed algorithm in achieving an optimal EV routing optimization.Furthermore, the energy required for the simulated trips based on Google Maps-suggested routes, and previously published results the authors had achieved following the DDQN algorithm [4] are benchmarks in this study.The overall goal of the experiment is to optimize the EV's energy requirement by extending its driving range to navigate through what is typically considered a daily road trip that the average EV driver is expected to make.This experiment considers real-time metadata input that simulates a real-life driving condition to obtain realistic results.As an agent, the EV aims to maximize the reward of its decisions by reducing its energy requirement to reach a charging station that is assumed to be located six miles away from its driving starting point.This work successfully models the road segments' dynamics between the two vertices through MCM.The EV was evaluated over 140 episodes, with each episode representing an entire set of steps, states, and reward signals obtained from the agent's learning process.Termination criteria include either finishing the drive of a road's segment or facing restrictions imposed on episodes.Such restrictions may include domain-specific restrictions (i.e., violation of permitted steps per episode), reaching an optimal energy-aware decision for driving that segment, or simply returning FALSE because of an unreachable step due to environment-specific limitations (e.g., flood, lakes, road closure, etc.).It is worth mentioning that this experiment considers two driving trips in two locations to measure the relative impact of the difference in the geophysical terrains on the learning algorithm.Both drives were simulated at 4.30 p.m., 11 October 2021.In addition, the importance of timesaving is neglected in his work, as we assumed that EV owners have limited energy in their batteries and that their main concerns are to reach their charging stations.The geophysical coordinates of the two selected drives are presented in Table 3 of this work.The first drive starts at the College of Engineering and Computing of the Florida International University (FIU), FL, whose destination is an EV charging station in Doral, FL, located nearly six miles away.The second drive, selected in a location that exhibits different geographic characteristics to add credibility to the testing of the proposed strategy, starts at the J. Paul Getty Museum, located in a hilltop area in Los Angeles, CA, USA.The destination of the second drive is set as a charging station in Ventura, CA, USA, which is also located six miles away from the starting location.Table 4 highlights the total number of episodes and subsequent steps during the simulation of both drives.In addition, the experiment considered the stride length not to exceed 200 m, with 80 steps maximumly per each episode.As mentioned earlier, this experiment ignores timesaving, the battery's level of degradation, and internal energy utilization of the EV (e.g., air conditioning).It is noted that different results may have been received depending on the condition of the dynamic environment, such as the time, location, distance, and driving routes.The agent's driving experience was simulated using Python with TensorFlow, Pandas, and NumPy libraries.A continuous update of the vehicle geocodes serves as input data for the learning algorithm, including data about the road such as traffic congestion, the highest and highest elevations on the roads, and speed limits, among others.Through Google's API platform, real-time metadata information can be extracted from Google's map services in real-time through APIs and software development kits (SDKs).It is worth mentioning that such a process was not easy to achieve, as we had to query the Direction API multiple times during the experiment to allow the proper representation of the drive considering the real-time traffic conditions per each road segment.Furthermore, the energy consumption of the agent was modeled for each state during the learning process to estimate the most optimal action per state.The results were then benchmarked with findings from a previous experiment achieved by the authors, considering the same driving experience but on different dates and algorithms.The results were also benchmarked when modeling the drive strictly following Google's suggested routes.Figures 6 and 7 present the energy requirements considering the proposed RL based on the SARSA algorithm, the DDQN algorithm, and Google's original routes for both drives in Los Angeles, CA, USA, and Miami, FL, USA, respectively.As the results indicate, the EV reaches its planned destination with lower energy needs following the SARSA algorithm than the main route suggested by Google Maps, by 11.04% and 5.72%, respectively.Both drives took the same time to arrive at their destination, with a slight time difference of two minutes shorter in favor of Google Maps' routes.As one may notice, although the exact vehicle was simulated for approximately the same length, there is a slight difference in the reported energy requirements.This could be attributed to the spatial and temporal differences in both driving experiences, which yielded slightly different energy requirements to reach each destination.Figure 8 shows a screenshot of the simulation results. Results and Discussion to estimate the most optimal action per state.The results were then benchmarked with findings from a previous experiment achieved by the authors, considering the same driving experience but on different dates and algorithms.The results were also benchmarked when modeling the drive strictly following Google's suggested routes.Figures 6 and 7 present the energy requirements considering the proposed RL based on the SARSA algorithm, the DDQN algorithm, and Google's original routes for both drives in Los Angeles, CA, USA, and Miami, FL, USA, respectively.As the results indicate, the EV reaches its planned destination with lower energy needs following the SARSA algorithm than the main route suggested by Google Maps, by 11.04% and 5.72%, respectively.Both drives took the same time to arrive at their destination, with a slight time difference of two minutes shorter in favor of Google Maps' routes.As one may notice, although the exact vehicle was simulated for approximately the same length, there is a slight difference in the reported energy requirements.This could be attributed to the spatial and temporal differences in both driving experiences, which yielded slightly different energy requirements to reach each destination.Figure 8 shows a screenshot of the simulation results.Table 3 presents the results of simulating the two trips.It is worth mentioning that the amount of regenerative braking is almost trivial, with only a small amount detected in the driving simulation in the Los Angeles trip.This is attributed to the relatively small distance driven by the agents and to the physical terrain of the LA drive, where a portion of the trip was driven downhill from the Santa Monica Mountains, where the J. Paul Getty Museum is located.Table 3 presents the results of simulating the two trips.It is worth mentioning that the amount of regenerative braking is almost trivial, with only a small amount detected in the driving simulation in the Los Angeles trip.This is attributed to the relatively small distance driven by the agents and to the physical terrain of the LA drive, where a portion of the trip was driven downhill from the Santa Monica Mountains, where the J. Paul Getty Museum is located.Figures 9 and 10 show the reward accumulation through the driving experience based on the SARSA algorithm considering 140 episodes.It should be noted that the reward is primarily influenced by the number of steps in the learning process, returning negative values whenever there is a failed episode.In addition, the EV's returned reward is illustrated in Figures 9 and 10 to provide insight into how much benefit the EV will receive from each action it takes at each state throughout the journey; it represents the accumulated sum at each time step t, following the discounted rate that was set earlier.While the DDQN converged to slightly more optimal results than the SARSA algorithm, the learning process considering SARSA converged faster for both trips, as shown in Figure 11.This could be attributed to the fact that SARSA converges to the near-optimal policy as ε must be decayed so that the learning policy converges to a greedy policy, while the DDQN must achieve a full optimal policy.In addition, every state-action pair will be visited infinitely in SARSA.We had to limit the number of episodes in this experiment due to Google's API restrictions, which limited and sometimes blocked our access to retrieve real-time data from the platform.As the training process proceeds, the agent's random behavior decreases, indicating the learning algorithm's robustness, as shown in Figure 12.The randomness that starts at the beginning of the drive is related to the fact that the agent starts the drive by taking random actions.Yet, such randomness decreases significantly as the SoC level improves due to the success of the learning algorithm in guiding the agent toward driving into energy-efficient options.As one may notice, as the agents continue the driving process, the reward trend indicates a positive direction with fewer negative values that are nothing but indicators of failed steps in the learning process.On a comparative scale, and as results presented in Figures 9-11 show, the SARSA algorithm possesses unique characteristics that make it capable of solving difficult problems and this gives it an advantage over the popular Q-learning and DDQN algorithms.It has a faster convergence rate and accurate reward return when compared to Q-learning and can learn a near-optimal policy and remain more conservative, which means it seeks to avoid the risk of failure and hence opts for a longer and safer approach.If EMS and EV routing problems must be well probed in full detail with a lower risk of failure or errors along the way, the SARSA should be favored and put to more extensive use across the scientific community.While the DDQN converged to slightly more optimal results than the SARSA algorithm, the learning process considering SARSA converged for both trips, as shown in Figure 11.This could be attributed to the fact that SARSA converges to the near-optimal policy as ε must be decayed so that the learning policy converges to a greedy policy, while the DDQN must achieve a full optimal policy.In addition, every state-action pair will be visited infinitely in SARSA.We had to limit the number of episodes in this experiment due to Google's API restrictions, which limited and sometimes blocked our access to retrieve real-time data from the platform.As the training process proceeds, the agent's random behavior decreases, indicating the learning algorithm's robustness, as shown in Figure 12.The randomness that starts at the beginning of the drive is related to the fact that the agent starts the drive by taking random actions.Yet, such randomness decreases significantly as the SoC level improves due to the success of the learning algorithm in guiding the agent toward driving into energy-efficient options.As one may notice, as the agents continue the driving process, the reward trend indicates a positive direction with fewer negative values that are nothing but indicators of failed steps in the learning process.On a comparative scale, and as results presented in Figures 9-11 show, the SARSA algorithm possesses unique characteristics that make it capable of solving difficult problems and this gives it an advantage over the popular Q-learning and DDQN algorithms.It has a faster convergence rate and accurate reward return when compared to Q-learning and can learn a near-optimal policy and remain more conservative, which means it seeks to avoid the risk of failure and hence opts for a longer and safer approach.If EMS and EV routing problems must be well probed in full detail with a lower risk of failure or errors along the way, the SARSA should be favored and put to more extensive use across the scientific community. Conclusions This work presents an energy consumption minimization framework based on the SARSA algorithm to train EVs to reach their final destinations with lower energy Conclusions This work presents an energy consumption minimization framework based on the SARSA algorithm to train EVs to reach their final destinations with lower energy Conclusions This work presents an energy consumption minimization framework based on the SARSA algorithm to train EVs to reach their final destinations with lower energy requirements.The dynamics of EVs on the road were modeled as successive partitioning that utilized the MCM to model the energy requirements for each partitioned segment.Two driving experiments of the same distance but at different geographic locations were simulated to verify the proposed framework.Both drives were set at a particular time and date with a limited state of charge, with the driving experience assumed to be a continuous state.As the agent incorporates real-time data from Google APIs, the transitional probabilities are updated continuously during the learning process.The results show the superiority of the SARSA algorithm in achieving optimal decisions for the agent to reach its destination with lower energy requirements than Google's suggested routes at around the same traveling time.Compared with previously reported results by authors using DDQN [4] and Google's originally suggested routes, the SARSA proved an effective learning strategy.Considering convergence performance and computation requirements, SARSA achieved better energy performance than Google's routes but slightly less than the DDQN's average driving time, which is only 15% over the driving period following Google's routes.This shows that SARSA could exclude routes that may have resulted in a higher driving period even if they yield lower energy requirements.Due to its powerful computation capabilities, future work should incorporate the SARSA algorithm, as it has been proven to be an effective and reliable machine learning methodology.We recommend the implementation of the SARSA on topics such as smart grid reliability analysis studies [44,45], dynamic energy management systems incorporating EVs [46][47][48], and cybersecurity of energy grids such as charging stations [49].However, a limitation to using the SARSA algorithm is that computational time may exceed that of other methods, as SARSA, a conservative RL method, may not execute the optimal solution within the shortest possible time.Due to its on-policy approach, the SARSA algorithm requires controllers to perform the action selection while following the policy for which the Q-values are found and updated.Another challenge to be investigated by the research community is the hardware implementation of ECU processors inside vehicles that incorporate AI algorithms such as the SARSA algorithm.Such implementation requires extensive integration efforts to achieve optimal real-time decisions for EV drivers.While previous microprocessors were presented in the literature by the ESRL of FIU to support smart charging decisions [50], ECU implementation that involves an AI-based algorithm system requires more extensive efforts to achieve optimal real-time decisions for EV drivers.References [51,52] highlight the real-time implementation of RL methods considering microprocessor capabilities.It is worth mentioning that better results of the SARSA algorithm may have been accomplished in this work if not for the continuous data interruptions from Google's API platform, with the considerably limited computational capabilities of the simulating devices.Overall, the SARSA algorithm proved an effective RL methodology to train EVs to produce self-exploratory decisions that yield optimal driving decisions.Funding: Taibah University (Financial Support for T.M.J.) Figure 1 . Figure 1.Learning process in the RL (environment) algorithm. Figure 1 . Figure 1.Learning process in the RL (environment) algorithm. Figure 2 . Figure 2. Illustration of graph representation considering MCM. Figure 2 . Figure 2. Illustration of graph representation considering MCM. Figure 3 . Figure 3. Illustration of the VIN structure utilized in the learning process. Figure 4 . Figure 4. Illustration of the data extraction mechanism in this work. Figure 5 . Figure 5. Illustration of the value function feedback iterations in the learning process. Figure 3 . Figure 3. Illustration of the VIN structure utilized in the learning process. Figure 3 . Figure 3. Illustration of the VIN structure utilized in the learning process. Figure 4 . Figure 4. Illustration of the data extraction mechanism in this work. Figure 5 . Figure 5. Illustration of the value function feedback iterations in the learning process. Figure 4 . Figure 4. Illustration of the data extraction mechanism in this work. Figure 3 . Figure 3. Illustration of the VIN structure utilized in the learning process. Figure 4 . Figure 4. Illustration of the data extraction mechanism in this work. Figure 5 . Figure 5. Illustration of the value function feedback iterations in the learning process. Figure 5 . Figure 5. Illustration of the value function feedback iterations in the learning process. Figure 6 . Figure 6.Benchmarking of the energy requirements of the first route for SARSA vs. DDQN and Google Maps. Figure 6 . 14 Figure 7 . Figure 6.Benchmarking of the energy requirements of the first route for SARSA vs. DDQN and Maps.Vehicles 2022, 4, FOR PEER REVIEW 14 Figure 7 . Figure 7. Benchmarking of the energy requirement for the second route for SARSA vs. DDQN and Google Maps. Figure 7 . Figure 7. Benchmarking of the energy requirement for the second route for SARSA vs. DDQN and Google Maps. Figure 8 . Figure 8. Part of the simulation process for the second drive in Los Angeles, CA, USA. Figure 8 . Figures 9 and 10 show the reward accumulation through the driving experience based on the SARSA algorithm considering 140 episodes.It should be noted that the reward is primarily influenced by the number of steps in the learning process, Figure 8 . Figure 8. Part of the simulation process for the second drive in Los Angeles, CA, USA. Vehicles 2022, 4 , FOR PEERREVIEW 15 returning negative values whenever there is a failed episode.In addition, the EV's returned reward is illustrated in Figures9 and 10to provide insight into how much benefit the EV will receive from each action it takes at each state throughout the journey; it represents the accumulated sum at each time step t, following the discounted rate that was set earlier. Figure 9 . Figure 9. Accumulated reward returns per the number of steps in the first trip. Figure 9 . Figure 9. Accumulated reward returns per the number of steps in the first trip. Figure 10 . Figure 10.Accumulated reward returns per the number of steps in the second trip. Figure 10 . Figure 10.Accumulated reward returns per the number of steps in the second trip. Figure 11 . Figure 11.Convergence performance of the two RL-proposed algorithms. Figure 12 . Figure 12.The level of SoC vs. probability of taking random actions for the agent during the drives. Figure 11 . Figure 11.Convergence performance of the two RL-proposed algorithms. Figure 11 . Figure 11.Convergence performance of the two RL-proposed algorithms. Figure 12 . Figure 12.The level of SoC vs. probability of taking random actions for the agent during the drives. Figure 12 . Figure 12.The level of SoC vs. probability of taking random actions for the agent during the drives. Author Contributions: Conceptualization, T.M.A., and O.M.; methodology, T.M.A.; software, T.M.A., and O.M.; validation, T.M.A., and O.M.; formal analysis, T.M.A..; investigation, T.M.A.; resources, T.M.A., and O.M..; data curation, T.M.A..; writing-original draft preparation, T.M.A., writing-review and editing, T.M.A., and O.M. visualization, T.M.A.; supervision, T.M.A.; project administration, O.M. funding acquisition, T.M.A., and O.M., All authors have read and agreed to the published version of the manuscript. Table 2 . Parameters of the EV in the experiment. Table 3 . Experimental information and results. Table 4 . Total number of episodes and steps per route.

섹션 본문 98문단 · 56,914자

(제목 없음)

1A real-time, metadata-driven electric vehicle routing optimization to reduce on-road energy requirements is proposed in this work.The proposed strategy employs the state-action-rewardstate-action (SARSA) algorithm to learn the EV's maximum travel policy as an agent.As a function of the received reward signal, the policy model evaluates the optimal behavior of the agent.Markov chain models (MCMs) are used to estimate the agent's energy requirements on the road, in which a single Markov step represents the average energy consumption based on practical driving conditions, including driving patterns, road conditions, and restrictions that may apply.A real-time simulation in Python with TensorFlow, NumPy, and Pandas library requirements was run, considering real-life driving data for two EVs trips retrieved from Google's API.The two trips started at 4.30 p.m. on 11 October 2021, in Los Angeles, California, and Miami, Florida, to reach EV charging stations six miles away from the starting locations.According to simulation results, the proposed AI-based energy minimization framework reduces the energy requirement by 11.04% and 5.72%, respectively.The results yield lower energy consumption compared with Google's suggested routes and previous work reported in the literature using the DDQN algorithm.

Introduction

2Transportation electrification has emerged as a pivotal solution to combat climate change by offsetting emissions from the two main contributors to greenhouse gas emissions (GHG): the transportation sector and the power industry.To expedite transportation electrification, governments around the globe have recently adopted progressive policies and supported research to facilitate the fast and reliable integration of millions of electric vehicles (EVs) on the road.Nevertheless, efforts are still needed to increase confidence in EVs as a reliable technology and overcome internal battery energy management concerns.This includes extending the driving range of EVs to reduce range anxiety, which is the fear of running out of power while not finding a charging station.According to [1,2], this resembled a significant obstacle to the large-scale adoption of EVs.This work presents a real-time, metadata-driven, reinforcement learning-based energy consumption minimization strategy that allows EVs to extend their driving range.This is especially during conditions where EV owners are more concerned with the amount of energy required to reach a charging destination than with arrival time.The proposed framework is based on the SARSA, an iterative, on-policy, reinforcement learning algorithm that computes the expected value of a policy considering the explorative behavior of an agent.

3Reinforcement learning (RL) is an artificial intelligence technique widely accepted as an efficient tool for solving various scientific problems [3].In the recent decade, several

4Vehicles 2022, 4 1177 works in the literature have employed reinforcement learning to perform electric vehiclerelated studies, such as in optimal EV routing [4], intelligent EV charging scheduling [5], and powertrain optimization for hybrid and PEVs [6,7].It is worth mentioning that the study conducted in [4] was successfully performed by the authors of this work based on the DDQN algorithm; therefore, its results will serve as a benchmark for the proposed work.Away from electric vehicles, RL techniques have widely been utilized to perform a wide range of studies in the energy field.Reference [8] proposes residential load management based on RL to effectively design price-based demand response programs to control smart buildings' loads.Reference [9] utilizes RL to optimize the maintenance scheduling of the power grids.RL was used in [10] to coordinate strategic bidding for power markets, where multidimensional continuous states and action spaces enable the market participants to receive accurate feedback regarding the impact of their bidding decisions.While other studies have deployed RL for robotic control [11,12], cybersecurity of smart grids [13,14], computer systems architecture [15,16], traffic congestion relief and coordination [17,18], and wireless systems and communication networks [19,20], there are still limitations to the use of RL-SARSA in the EV-related research literature.Previous studies have shown the capability of the SARSA algorithm to effectively solve problems ranging from EV charging control [21], demand response in smart grids [22], peer-to-peer energy transactions [23], to hybrid EVs controllers and powertrains [24,25].More importantly, the EV routing optimization problem is an underexplored research area in a time where range anxiety remains one of the challenges to expanding the EV market [26].To complement such deficiencies, this work proposes a real-time, metadata-driven RL-SARSA algorithm-based routing optimization to reduce on-road EV energy requirements to extend the drivability range.The proposed approach evaluates Q-values through the state-action-reward-stateaction (SARSA) algorithm to train the EV as an agent that independently chooses optimal actions that resemble driving decisions with lower energy requirements.Ultimately, the learning process extends the drivability range of the EV.The driving dynamics of EVs are achieved following the Markov chain model (MCM) to evaluate the energy needs for on-road trips with respect to the proposed framework.The agent's learning experience is supplemented with real-time metadata provided by Google's API platform to feed the agent with continuously updated driving information.

5The rest of this article is organized as follows: Section 2 shows the primary concepts of RL and MCM utilized with the SARSA algorithm; Section 3 presents the proposed strategy to achieve energy consumption minimization, the metadata extraction process from Google's API, and the application of the SARSA algorithm; Section 4 shows the experimental results of the proposed strategy for two geographically different trips; and Section 5 concludes the work.

Reinforcement Learning 2.1. State-Action-Reward-State-Action (SARSA) Algorithm

6State-action-reward-state-action (SARSA) is an artificial intelligence algorithm based on the Markov decision process (MDP).Considered one of the well-established algorithms in the reinforcement learning area of machine learning, SARSA was firstly proposed by Rummery and Niranjan [27] as the "Modified Connectionist Q-Learning MCQL" algorithm.Sutton [28] later suggested the current name SARSA.SARSA and Q-learning are two famous RL algorithms based on temporal difference learning (TD), with a high capability of establishing a learning process that eventually produces successive decision-making steps.Reinforcement learning utilizes the concept of an agent that operates in a given environment to infer a policy, Π, following a set of self-explanatory actions a i , and states s i , computed Q-values, and reward signals, R. The agent can only choose a certain action based on its current state, influenced by a positive or negative reward signal established by the learning process.In addition, a discount factor γ is suggested concerning the learning strategy's design goals.The closer γ gets to unity, the more influence the next reward will have on the current state, and vice versa.Reward signals, therefore, serve as feedback that indicates the possibility of failure or success of the action in relation to the learning process.

7The concept of SARSA is that the primary function used to update the Q-value depends on the current state of the agents.The action that the agent chooses "a", the reward signal "r" that influences the agent to select the proper action, the state "s'" that the agent enters after taking that specific action, and finally, the following action "a'" the agent chooses in its new state.In SARSA, the agent uses the state-value function in conjunction with the epsilon greedy policy to perform exploration and exploitation.Based on the weights of the obtained Q-values, the following process grades the states and estimates their relative strength as follows:

8where A is the set of agent's actions a i ∈ A; s i ∈ S is the set of agent's states; Q i (s, a) and r i (s, a) as the corresponding Q-value and reward signal; and π as the control policy in the learning process.While Equation ( 1) defines the state-value relationship, Equation ( 2) highlights the action-value correlation.The major difference between the two functions lies in whether the agent's current action is known.As a result, the action-value function is usually utilized to derive the optimal action at each time step.Therefore, Equation ( 2) could be better rewritten as the Bellman form as follows:

9where P(s'| s, a) is the probability of the agent transitioning between any two consecutive states following a given action, while s', a' are the updated state and action.Then, the agent can decide on an optimal action by either feedback obtained by maximizing or minimizing the value function, as follows:

10The major goal behind RL is to train the agent with a policy (π) that maximizes reinforcements that influences the agent's behavior, mapping its states into optimal actions.ε-greedy is a methodology for optimal action selections in RL, where the parameter ε ∈ [0, 1] is defined, and the policy π(s) could be utilized as follows:

11where á is the best-obtained action for the state s, while a r is the agent that selects a random action with a probability ε.As one may notice, for each time step, the optimal control policy is achieved by iterative calculations of the action-value matrix Q (s,a).In this work, the ε-greedy policy is utilized to decide the optimal control actions for the agent, as it explores a random control action with a probability that increases when the learning experience advances.This point distinguishes the SARSA from the Q-learning algorithm of reinforcement learning.In SARSA, the current and subsequent actions of the agent are all chosen by greedy policy, making it an on-policy.Conversely, in Q-learning, the agent's following action is not determined by the greedy online policy, making it an off-policy.The SARSA updates the Q-values utilizing the following expression:

12where a is the learning rate that has values ∈ [0,1].As mentioned earlier, the epsilon greedy policy is utilized to determine the agent's optimal action in Equation (6).As one may notice, this may yield a better exploration strategy but with the drawback of consuming more time, presenting SARSA as a better strategy than Q-learning to obtain optimal values, yet possibly may yield more time to achieve such a purpose.Another significant difference between SARSA and Q-learning is that the SARSA algorithm can obtain a different policy when exploration of the agent may result in hefty penalties.For example, suppose the agent (an EV) navigates near an unreachable position that poses a danger, such as driving toward a lake or a tree next to the side of the road.In that case, even if this is an optimal policy per calculations, it will be dangerous for exploration steps.As a result, SARSA will note this and adopt a policy that keeps the EV away from that side of the road through its drive.

13In other words, SARSA will find an optimal policy considering the exploration inherited in the policy.A third distinction between the two RL algorithms could be seen from the aspect of the agent's policy; behavior or learning.For instance, the behavioral approach generates actions because of the agent's interaction with its surrounding environment.

14Then, the learning strategy influences the agent to learn through such interactions.For SARSA, both behavioral and learning approaches are equal, while this is not the case for the DDQN algorithm.

15Agents can find themselves in an actual instant situation, known as the state, in a given environment, such as a transportation system that has a driver to guide them to their destination.This work assumes an EV to be the agent that learns from its present state to infer its next state by using a strategy that achieves maximal rewards (i.e., minimal energy consumption), known as the learning policy Π.The SARSA algorithm provides artificial learning that determines the agent's next action.The agent achieves the next reward with each additional step.As a result of this reward, the learning process establishes the new state, s', with a particular probability of transforming between states.The mapping represents the learning policy and the sequence of actions and states required to achieve any reward is known as the trajectory.Figure 1 provides an illustration of the concept of SARSA-RL utilized in this work.

16Vehicles 2022, 4, FOR PEER REVIEW 4 consuming more time, presenting SARSA as a better strategy than Q-learning to obtain optimal values, yet possibly may yield more time to achieve such a purpose.Another significant difference between SARSA and Q-learning is that the SARSA algorithm can obtain a different policy when exploration of the agent may result in hefty penalties.For example, suppose the agent (an EV) navigates near an unreachable position that poses a danger, such as driving toward a lake or a tree next to the side of the road.In that case, even if this is an optimal policy per calculations, it will be dangerous for exploration steps.As a result, SARSA will note this and adopt a policy that keeps the EV away from that side of the road through its drive.In other words, SARSA will find an optimal policy considering the exploration inherited in the policy.A third distinction between the two RL algorithms could be seen from the aspect of the agent's policy; behavior or learning.For instance, the behavioral approach generates actions because of the agent's interaction with its surrounding environment.Then, the learning strategy influences the agent to learn through such interactions.For SARSA, both behavioral and learning approaches are equal, while this is not the case for the DDQN algorithm.

17Agents can find themselves in an actual instant situation, known as the state, in a given environment, such as a transportation system that has a driver to guide them to their destination.This work assumes an EV to be the agent that learns from its present state to infer its next state by using a strategy that achieves maximal rewards (i.e., minimal energy consumption), known as the learning policy Π.The SARSA algorithm provides artificial learning that determines the agent's next action.The agent achieves the next reward with each additional step.As a result of this reward, the learning process establishes the new state, s', with a particular probability of transforming between states.The mapping represents the learning policy and the sequence of actions and states required to achieve any reward is known as the trajectory.Figure 1 provides an illustration of the concept of SARSA-RL utilized in this work The pseudo-code of the proposed energy consumption minimization strategy based on SARSA is shown in Table 1.The number of episodes considered in this work is 140, with a maximum of 1000 iterations within each episode.It is worth mentioning that the learning rate is continuously changing with time and is decided as 1/√ + 2, with a sample time of 1 s.The reward signal for moving between states and is estimated as follows: The pseudo-code of the proposed energy consumption minimization strategy based on SARSA is shown in Table 1.The number of episodes considered in this work is 140, with a maximum of 1000 iterations within each episode.It is worth mentioning that the learning rate is continuously changing with time and is decided as 1/ √ k + 2, with a sample time of 1 s.The reward signal for moving between states i and j is estimated as follows:

18where E l (i, j) and E h (i, j) correspond to the best and highest energy requirement obtained in a driving cycle between states i and j, respectively.For the agent to reach an optimal policy is equivalent to converging the obtained Q-value to the Q-values desired for the next time step.For each newly integrated input data at time slot t, the Q-update and its probabilistic information can be expressed as follow:

19To fittingly train the estimator, a common loss function is utilized as follows:

20L resembles the loss value to be calculated at the i th iteration and is an indication of the distance between the obtained Q-values and the Q-values at the next time step.The target value at the i th iteration, which could be found as follows:

21Table 1.Pseudo-code of the SARSA algorithm.

1.

22Retrieve the agent's geocode location.

2.

23Initialize Q (s, a), state (s), and the number of iteration k.

3.

24Calculate W i (P), generate Q M .

4.

25Repeat each step k s.t.k = 1, 2,. . . .k.

5.

26Determine optimal action a, depend on Q(s, •), following ε-greedy policy.

6.

27Based on action a; observe reward r and next state ś 7.

28Determine action á = arg maxa Q t (s, a) 8.

29s ← ś 10.Repeat until s is terminal.

Operation Modes

30The primary goal of the neural network (NN) model is to permit mapping from R n to R m .An input vector indicates the agent's geocoded location coordinates.In contrast, an output vector shows the Q-values generated by the algorithm, which represent the possible directions the agent may drive (north, south, west, east, northeast, northwest, southeast, and southwest).Hidden layers are incorporated into the NN model to avoid any implied data trapping.Another careful consideration was allocated to the number of neurons in the hidden layers.Overfitting or underfitting problems may emerge because of improper numbering of neurons, leading to impractical extreme simulation times [29,30].

31In the proposed framework, the input layer describes the geocoding of the agent's location retrieved in real time from Google's API.The input is succeeded by two hidden connection layers, the first consists of twelve neurons connected to ten neurons of the second hidden layer.The output layer has an eight-dimensional vector that resembles the possible actions for the agent to perform, which is navigating through eight physical directions.This experiment assumes 0.30 as a drop-out rate to minimize potential overfitting and increase generalization, with a learning rate of 0.1 for every step in the learning process to optimally manage the learning speed.SARSA will converge to optimal Q-values but strictly within the space of the epsilon greedy policy, with SARSA reaching the ultimate optimal policy with the decay of epsilon to zero.As highlighted in [31], the SARSA will indeed converge to an optimal policy as long as pairs representing state-action are visited an infinite number of times.As a result, the policy converges but within the limit of the greedy policy by selecting ε = 1/t.

Markov Chain Modeling of the Traffic Dynamics

32The Markov chain model (MCM) is a practical methodology for simulating the dynamics of traffic roads.To achieve the overall goal of this work, MCM is utilized to model the driving patterns and accordingly estimate their energy requirements on the roads.The MCM's microscopic behavior allows realistic modeling of the EV's journey and driving possibilities.This is because MCM can deal with a large dataset containing millions of input information.Therefore, it is ideal for modeling urban network infrastructures incorporating thousands of roads and associated transportation services (e.g., stop signs and signals).Specifically, MCM is a discrete stochastic process with finite states that, for a homogeneous MCM, change its value at each time step under the stochastic nature of the vehicles' dynamics.It is worth mentioning that the probability of a transition between any two states mainly depends on the state of the previous time step.Reference [32] was among the first to utilize MCM in capturing a dynamically complex system.Modeling road dynamics is highly stochastic and is difficult to estimate.As a result, this work realizes that the best methodology to handle such complex modeling is through perturbed MCM.The core idea behind representing the dynamics of the road via MCM lies in its powerful capabilities in modeling traffic data via proper construction of the transition matrix.This allows adequate simulation for the vehicle's travel information and subsequent on-road energy requirements that feed the proposed RL energy minimization framework.As required for any dynamic system, a reference point must be set to properly measure the contribution from all involved points in the system's boundary.The reference point establishes the probability of transition between any two states within a bounded region in the simulation environment.Typically, such regions of study are defined as mappings between two spaces T: G, s.t. the set G represents a nonempty subset of the space T, divided into mutually exclusive and collectively exhaustive sets {S 1 , S 2 , . . . ,S T }.On the other hand, T represents the total number of states in the simulation, with each set labeled as a specific state, i, of the MCM.The modeling starts with the agent navigating through a defined segment on the road that resembles the change of its states from s i to state s j .A probability P ij describes the likelihood of the agent's change of states.Successively, a matrix T M is constructed with entries representing the agents' relative transitional probabilities that capture the vehicle drive.It is worth mentioning that T M should have no negative entries as the sum of probabilities must add up to 1, with the probabilities of transitions forming its diagonal elements.Hence, special consideration must be considered to deal with the regenerative braking of EVs, as illustrated in Section 3.5.

33The work assumes that the agent's drive starts when the vehicle moves from a predefined location (starting position of a road segment) to another predefined location (ending position of the road segment), establishing an initial probability distribution for the transition matrix.Such process continues until the agent stops its drive, wherein this case, the relative entry represents the probability of the same state, P ii .Assuming r s represents the total states in a drive, the ij th element of T M after n steps is found as follows:

34Upon the calculation of p and p n , p n is normalized as follows:

35∑

36This work realizes the agent drives as a set of graphs that represent the EV's historical geocode locations throughout the drive, which was retrieved in this work from Google's API platform.Modeling the road segments is achieved with vertices representing specific geocodes that resemble intersections on the driven pathway.Vertices i and j are connected by an oriented graph G if there is a road segment that links them, and hence a segment is only considered if it is a drivable path.Accordingly, G = G i , G j is represented by the weights p ij iff p ij > 0. The weight W ij is defined in this work as the average energy requirement to move the agent between vertices i and j, as explained in Section 3.2.Figure 2 presents an illustration of graph modeling in transportation.Specifically, a segment G 1 G 2 is the drivable pathway that connects geocodes represented as G 1 and G 2 .It is worth mentioning that the core concept in modeling the actual probability transitions in MCM is achieved as a step unit of time.This work modifies this concept to represent the energy consumption requirements on the road as a unit step of energy.Such an assumption has been used previously in the literature [33,34].

37Vehicles 2022, 4, FOR PEER REVIEW 7

38∑ , = 1 =1 (17) This work realizes the agent drives as a set of graphs that represent the EV's historical geocode locations throughout the drive, which was retrieved in this work from Google's API platform.Modeling the road segments is achieved with vertices representing specific geocodes that resemble intersections on the driven pathway.Vertices and are connected by an oriented graph G if there is a road segment that links them, and hence a segment is only considered if it is a drivable path.Accordingly, = < , > is represented by the weights iff > 0. The weight is defined in this work as the average energy requirement to move the agent between vertices and , as explained in Section 3.2.Figure 2 presents an illustration of graph modeling in transportation.Specifically, a segment 1 2 is the drivable pathway that connects geocodes represented as 1 and 2 .It is worth mentioning that the core concept in modeling the actual probability transitions in MCM is achieved as a step unit of time.This work modifies this concept to represent the energy consumption requirements on the road as a unit step of energy.Such an assumption has been used previously in the literature [33,34].

Application of the SARSA Algorithm to Solve the EV Routing Optimization

39By utilizing the concept of cumulative rewards instead of immediate ones, RL could effectively be used as an approach to train the EV as an agent that navigates through driving routes that yield lower energy requirements.This is achieved based on inputs that include EV power demand, battery status, and driving conditions, including the number of stops, speed limits, road closures, etc.As an agent, EVs are only required to know the current state of knowledge and the resultant rewards produced by the learning algorithm of navigation in the driving environment, the Google Maps platform, in this work.The set of actions in the learning process represents the feasible routes with the least energy requirements.Specifically, the agent starts driving, taking random steps, supplementing the geocodes of driving each road segment as an input layer to the RL algorithm.The two hidden layers in the neural network have a linear rectifier unit that acts as an activation function that gradually optimizes the agent's actions as the driving process continues.As the learning process proceeds, the energy is optimized due to a change of the agent's states following the MCM, where Markov's step unit represents the step unit of energy consumption.Several studies in different fields used the same modification of Markov's step unit to achieve other optimization objectives.Authors in [35] represented the step unit as a unit of pollution in their model instead of a time.This work uses discounted factors in the range of 0.1-0.85,driving losses of 15%, with nearly 50% of energy that could be

40By utilizing the concept of cumulative rewards instead of immediate ones, RL could effectively be used as an approach to train the EV as an agent that navigates through driving routes that yield lower energy requirements.This is achieved based on inputs that include EV power demand, battery status, and driving conditions, including the number of stops, speed limits, road closures, etc.As an agent, EVs are only required to know the current state of knowledge and the resultant rewards produced by the learning algorithm of navigation in the driving environment, the Google Maps platform, in this work.The set of actions in the learning process represents the feasible routes with the least energy requirements.Specifically, the agent starts driving, taking random steps, supplementing the geocodes of driving each road segment as an input layer to the RL algorithm.The two hidden layers in the neural network have a linear rectifier unit that acts as an activation function that gradually optimizes the agent's actions as the driving process continues.As the learning process proceeds, the energy is optimized due to a change of the agent's states following the MCM, where Markov's step unit represents the step unit of energy consumption.Several studies in different fields used the same modification of Markov's step unit to achieve other optimization objectives.Authors in [35] represented the step unit as a unit of pollution in their model instead of a time.This work uses discounted factors in the range of 0.1-0.85,driving losses of 15%, with nearly 50% of energy that could be retained during the deceleration phase of the drive [36].The impact of regenerative braking is carefully accounted for in this work and is explained thoroughly in the forthcoming sections.

Real-Time Metadata Extraction from Google's API

41With the Google Maps Geocoding API, physical locations can be converted into longitude and latitude coordinates.This experiment utilizes the geocoding API to obtain navigation geocodes for each trip segment, from the starting point to the destination.A rectangular limitation is imposed on the map for each phase in the learning process to allow realistic modeling of the EV EV trip within strictly specific physical boundaries.However, due to Earth's spherical geometry and restrictions set on the stride length, such a grid map may not always be a rectangle.

42As mentioned earlier, the EV can move only in one direction out of eight possible options provided by Google's Direction API during each state of the modeling.On the other hand, the Elevation API supports the learning process by offering differences in heights during the drive with the help of the Navigation API instructional geocoding list.In the case of an unreachable position during the driving process (e.g., lakes or trees), the Direction API returns a "False" value to exclude the route from the list of options.In addition, and for realistic driving simulation, Google's Roads API was used to provide the EV with real-time driving conditions, such as speed limitations, the number of stops, traffic signals, road closures due to construction, and traffic congestion, to name a few.Such information is pivotal in the learning algorithm to dictate the optimal energy consumption options for the agent.Because access to instant traffic data was sometimes limited and challenging to obtain due to Google's API access limitations, raw traffic data were estimated based on the "duration in traffic" results for each drive segment returned by Google's Duration.

EV Energy Consumption in the MCM Traffic Model

43Modeling the driving segments is achieved following the concept of oriented graphs, with each vertex resembling a particular geocoded position that has edges G i , G j as a feasible driving path between any two vertices.This work defines the weights w G i , G j as the average energy requirement for the EV's battery during the i th state, calculated as follows:

44where i = 1... n, and β resembles the step size in the range between zero and weights w i .To appropriately comprise the weights into the model, T M is transformed into another matrix, Q .M. , as follows:

45where D represents the diagonal entries of matrix Q M s.t.D = diag (w 1 ,..,w n ) with weights w i = 1,..., n.Matrix I represents the identity matrix that has the same dimensions as T M .As mentioned earlier, the step unit in MCM is modeled as a step unit of energy instead of a step unit of time.This allows proper estimation of the agent's energy requirement per each segment considering the driving conditions.It also allows realistic incorporation of different driving behaviors that differ from one person to another.In this simulation, three driving phases are considered: cruising, deceleration, and acceleration phases.The energy requirement of the EV on each segment is the sum of its energy consumption, modeled as the integration of the EV dynamics taking into account the three forces F acc , F rol , and F ad , along with F slope .F acc represents the accelerating force; F rol is the overcoming rolling resistance force; F ad is the aerodynamic drag force; and F slope is the hill-climbing force.These dynamics are obtained as follows:

46Vehicles 2022, 4

471184

48where A represents the area in front of the vehicle, depending on its types and size (e.g., EV truck, EV sedan, etc.); α represents the acceleration factor of the vehicle; m is the vehicle's mass at a particular speed V; ϕ as the physical incline of the road segment; and µ ro1 , ρ, C d , and g are constants; x 1 , x 2 represents accumulated driven distances of the cruising and deceleration phases; while x 3 represents the total length of the traveled path.Such information provides accuracy for modeling the experiment, as geophysical metadata and relative limitations are accordingly reflected in the equations.Table 1 shows the pseudocode of the SARSA algorithm utilized in this work, while Table 2 shows the parameters of the EV, assumed Tesla V, used in this experiment.It is worth mentioning that the parameters in Table 2 are the same as those used in [4] by the authors for benchmarking purposes.

Value Iteration Network (VIN) Model

49The main objective of designing the value-iteration network (VIN) is to find the optimal Q-values for the learning algorithm.Following the graph convolution and VIN, the traffic conditions of the agent could be mapped to routing decisions on the graph.To achieve this purpose, the VIN was approximated following the work of reference [36], where the VIN module was introduced as an NN layer that allows encoding differentiable planning computations.As proposed in [37], each iteration of the VIN module passes both value and reward functions through conventional neural network (CNN) max pooling layers.For optimal results, experienced replay inspired by [38] was integrated to allow a scalable learning model for the agent.To avoid getting the agent trapped in deciding optimal Q-values, a memory is utilized to store the output values of the previous learning iterations into a historical record stack.During the training process, training data from this stack are weight-sampled concerning its reward values.As Figure 3 shows, the input signal is an image representing geographical coordinates of the physical EV location, producing output that influences the overall travel policy following attention and observation.Then as shown in Figure 4, the quadrable e t = s, a, r, ś, á is saved in historical stock D = e 1 , e 2 , . . ., e n , with n as the number of the preserved states of the learning process.A CNN layer, fr, reforms the input grid map into one that contains pixels representing the reward values.The results from the MCM influence the value function described in Equations ( 1) and (8). Figure 5 provides illustration for the structure of the VI module in the training process.Particularly, at the i th iteration, the loss function defined in Equation ( 11) is differentiated to get the gradient of the loss function.Finally, the output layer provides the optimal Q-values based on the discounting factor, save the quadrable in historical stack D, and then start the next iteration process.Values for the final policy values are produced once iterations are concluded.

50Equation ( 11) is differentiated to get the gradient of the loss function.Finally, the output layer provides the optimal Q-values based on the discounting factor, save the quadrable in historical stack D, and then start the next iteration process.Values for the final policy values are produced once iterations are concluded.Equation ( 11) is differentiated to get the gradient of the loss function.Finally, the output layer provides the optimal Q-values based on the discounting factor, save the quadrable in historical stack D, and then start the next iteration process.Values for the final policy values are produced once iterations are concluded.Equation ( 11) is differentiated to get the gradient of the loss function.Finally, the output layer provides the optimal Q-values based on the discounting factor, save the quadrable in historical stack D, and then start the next iteration process.Values for the final policy values are produced once iterations are concluded.

Experimental Modeling of the EV's Battery

51A dynamic modeling of EV batteries was used for this simulation and was derived from the work of References [39,40].Time factors for lithium batteries are presented studies [41,42] and are incorporated into the battery model by [42] to better estimate SoC.The SoC, voltage, and power losses of the agent's battery are modeled as follows:

52where T sec , T min , and T hour represent time-constant variables of the dynamic behavior of the battery.It should be noted that number of driving cycles, temperature and battery's discharge rate were assumed based on [42].V terminal and V oc are both terminal and open circuit voltage levels for the battery's circuit; R int and R transient are the battery's internal and train set resistance; C battery and I battery represent the capacity and current of the battery, both modeled as a current source follows [43]:

53Table 1 in Reference [42] shows the parameters utilized in our simulation, with the exception of the battery's degradation level that was disregarded, as the battery's life cyle is out of the scope of the study.

Impact of Regenerative Braking

54To avoid having zero values in the diagonal elements of T M because of regenerative braking, a medial matrix is introduced in this work.Specifically, the medial matrix will allow only absolute values of the unit step of energy for the vehicle's traveled path.Subsequently, the weights are rearranged as follows:

55where ∝ represents the sign of a change of the energy requirement during regenerative braking and is strictly bounded in the interval 0 < ∝ < minimum w i .

Results and Discussion

56To verify the proposed energy minimization framework based on the SARSA algorithm, a real-time experiment was conducted in the Python environment to assess the capability of the proposed algorithm in achieving an optimal EV routing optimization.Furthermore, the energy required for the simulated trips based on Google Maps-suggested routes, and previously published results the authors had achieved following the DDQN algorithm [4] are benchmarks in this study.The overall goal of the experiment is to optimize the EV's energy requirement by extending its driving range to navigate through what is typically considered a daily road trip that the average EV driver is expected to make.This experiment considers real-time metadata input that simulates a real-life driving condition to obtain realistic results.As an agent, the EV aims to maximize the reward of its decisions by reducing its energy requirement to reach a charging station that is assumed to be located six miles away from its driving starting point.This work successfully models the road segments' dynamics between the two vertices through MCM.The EV was evaluated over 140 episodes, with each episode representing an entire set of steps, states, and reward signals obtained from the agent's learning process.Termination criteria include either finishing the drive of a road's segment or facing restrictions imposed on episodes.Such restrictions may include domain-specific restrictions (i.e., violation of permitted steps per episode), reaching an optimal energy-aware decision for driving that segment, or simply returning FALSE because of an unreachable step due to environment-specific limitations (e.g., flood, lakes, road closure, etc.).It is worth mentioning that this experiment considers two driving trips in two locations to measure the relative impact of the difference in the geophysical terrains on the learning algorithm.Both drives were simulated at 4.30 p.m., 11 October 2021.In addition, the importance of timesaving is neglected in his work, as we assumed that EV owners have limited energy in their batteries and that their main concerns are to reach their charging stations.The geophysical coordinates of the two selected drives are presented in Table 3 of this work.The first drive starts at the College of Engineering and Computing of the Florida International University (FIU), FL, whose destination is an EV charging station in Doral, FL, located nearly six miles away.The second drive, selected in a location that exhibits different geographic characteristics to add credibility to the testing of the proposed strategy, starts at the J. Paul Getty Museum, located in a hilltop area in Los Angeles, CA, USA.The destination of the second drive is set as a charging station in Ventura, CA, USA, which is also located six miles away from the starting location.Table 4 highlights the total number of episodes and subsequent steps during the simulation of both drives.In addition, the experiment considered the stride length not to exceed 200 m, with 80 steps maximumly per each episode.As mentioned earlier, this experiment ignores timesaving, the battery's level of degradation, and internal energy utilization of the EV (e.g., air conditioning).It is noted that different results may have been received depending on the condition of the dynamic environment, such as the time, location, distance, and driving routes.The agent's driving experience was simulated using Python with TensorFlow, Pandas, and NumPy libraries.A continuous update of the vehicle geocodes serves as input data for the learning algorithm, including data about the road such as traffic congestion, the highest and highest elevations on the roads, and speed limits, among others.Through Google's API platform, real-time metadata information can be extracted from Google's map services in real-time through APIs and software development kits (SDKs).It is worth mentioning that such a process was not easy to achieve, as we had to query the Direction API multiple times during the experiment to allow the proper representation of the drive considering the real-time traffic conditions per each road segment.Furthermore, the energy consumption of the agent was modeled for each state during the learning process to estimate the most optimal action per state.The results were then benchmarked with findings from a previous experiment achieved by the authors, considering the same driving experience but on different dates and algorithms.The results were also benchmarked when modeling the drive strictly following Google's suggested routes.Figures 6 and 7 present the energy requirements considering the proposed RL based on the SARSA algorithm, the DDQN algorithm, and Google's original routes for both drives in Los Angeles, CA, USA, and Miami, FL, USA, respectively.As the results indicate, the EV reaches its planned destination with lower energy needs following the SARSA algorithm than the main route suggested by Google Maps, by 11.04% and 5.72%, respectively.Both drives took the same time to arrive at their destination, with a slight time difference of two minutes shorter in favor of Google Maps' routes.As one may notice, although the exact vehicle was simulated for approximately the same length, there is a slight difference in the reported energy requirements.This could be attributed to the spatial and temporal differences in both driving experiences, which yielded slightly different energy requirements to reach each destination.Figure 8 shows a screenshot of the simulation results.

57to estimate the most optimal action per state.The results were then benchmarked with findings from a previous experiment achieved by the authors, considering the same driving experience but on different dates and algorithms.The results were also benchmarked when modeling the drive strictly following Google's suggested routes.Figures 6 and 7 present the energy requirements considering the proposed RL based on the SARSA algorithm, the DDQN algorithm, and Google's original routes for both drives in Los Angeles, CA, USA, and Miami, FL, USA, respectively.As the results indicate, the EV reaches its planned destination with lower energy needs following the SARSA algorithm than the main route suggested by Google Maps, by 11.04% and 5.72%, respectively.Both drives took the same time to arrive at their destination, with a slight time difference of two minutes shorter in favor of Google Maps' routes.As one may notice, although the exact vehicle was simulated for approximately the same length, there is a slight difference in the reported energy requirements.This could be attributed to the spatial and temporal differences in both driving experiences, which yielded slightly different energy requirements to reach each destination.Figure 8 shows a screenshot of the simulation results.Table 3 presents the results of simulating the two trips.It is worth mentioning that the amount of regenerative braking is almost trivial, with only a small amount detected in the driving simulation in the Los Angeles trip.This is attributed to the relatively small distance driven by the agents and to the physical terrain of the LA drive, where a portion of the trip was driven downhill from the Santa Monica Mountains, where the J. Paul Getty Museum is located.Table 3 presents the results of simulating the two trips.It is worth mentioning that the amount of regenerative braking is almost trivial, with only a small amount detected in the driving simulation in the Los Angeles trip.This is attributed to the relatively small distance driven by the agents and to the physical terrain of the LA drive, where a portion of the trip was driven downhill from the Santa Monica Mountains, where the J. Paul Getty Museum is located.Figures 9 and 10 show the reward accumulation through the driving experience based on the SARSA algorithm considering 140 episodes.It should be noted that the reward is primarily influenced by the number of steps in the learning process, returning negative values whenever there is a failed episode.In addition, the EV's returned reward is illustrated in Figures 9 and 10 to provide insight into how much benefit the EV will receive from each action it takes at each state throughout the journey; it represents the accumulated sum at each time step t, following the discounted rate that was set earlier.While the DDQN converged to slightly more optimal results than the SARSA algorithm, the learning process considering SARSA converged faster for both trips, as shown in Figure 11.This could be attributed to the fact that SARSA converges to the near-optimal policy as ε must be decayed so that the learning policy converges to a greedy policy, while the DDQN must achieve a full optimal policy.In addition, every state-action pair will be visited infinitely in SARSA.We had to limit the number of episodes in this experiment due to Google's API restrictions, which limited and sometimes blocked our access to retrieve real-time data from the platform.As the training process proceeds, the agent's random behavior decreases, indicating the learning algorithm's robustness, as shown in Figure 12.The randomness that starts at the beginning of the drive is related to the fact that the agent starts the drive by taking random actions.Yet, such randomness decreases significantly as the SoC level improves due to the success of the learning algorithm in guiding the agent toward driving into energy-efficient options.As one may notice, as the agents continue the driving process, the reward trend indicates a positive direction with fewer negative values that are nothing but indicators of failed steps in the learning process.On a comparative scale, and as results presented in Figures 9-11 show, the SARSA algorithm possesses unique characteristics that make it capable of solving difficult problems and this gives it an advantage over the popular Q-learning and DDQN algorithms.It has a faster convergence rate and accurate reward return when compared to Q-learning and can learn a near-optimal policy and remain more conservative, which means it seeks to avoid the risk of failure and hence opts for a longer and safer approach.If EMS and EV routing problems must be well probed in full detail with a lower risk of failure or errors along the way, the SARSA should be favored and put to more extensive use across the scientific community.While the DDQN converged to slightly more optimal results than the SARSA algorithm, the learning process considering SARSA converged for both trips, as shown in Figure 11.This could be attributed to the fact that SARSA converges to the near-optimal policy as ε must be decayed so that the learning policy converges to a greedy policy, while the DDQN must achieve a full optimal policy.In addition, every state-action pair will be visited infinitely in SARSA.We had to limit the number of episodes in this experiment due to Google's API restrictions, which limited and sometimes blocked our access to retrieve real-time data from the platform.As the training process proceeds, the agent's random behavior decreases, indicating the learning algorithm's robustness, as shown in Figure 12.The randomness that starts at the beginning of the drive is related to the fact that the agent starts the drive by taking random actions.Yet, such randomness decreases significantly as the SoC level improves due to the success of the learning algorithm in guiding the agent toward driving into energy-efficient options.As one may notice, as the agents continue the driving process, the reward trend indicates a positive direction with fewer negative values that are nothing but indicators of failed steps in the learning process.On a comparative scale, and as results presented in Figures 9-11 show, the SARSA algorithm possesses unique characteristics that make it capable of solving difficult problems and this gives it an advantage over the popular Q-learning and DDQN algorithms.It has a faster convergence rate and accurate reward return when compared to Q-learning and can learn a near-optimal policy and remain more conservative, which means it seeks to avoid the risk of failure and hence opts for a longer and safer approach.If EMS and EV routing problems must be well probed in full detail with a lower risk of failure or errors along the way, the SARSA should be favored and put to more extensive use across the scientific community.

Conclusions

58This work presents an energy consumption minimization framework based on the SARSA algorithm to train EVs to reach their final destinations with lower energy

59This work presents an energy consumption minimization framework based on the SARSA algorithm to train EVs to reach their final destinations with lower energy

60This work presents an energy consumption minimization framework based on the SARSA algorithm to train EVs to reach their final destinations with lower energy requirements.The dynamics of EVs on the road were modeled as successive partitioning that utilized the MCM to model the energy requirements for each partitioned segment.Two driving experiments of the same distance but at different geographic locations were simulated to verify the proposed framework.Both drives were set at a particular time and date with a limited state of charge, with the driving experience assumed to be a continuous state.As the agent incorporates real-time data from Google APIs, the transitional probabilities are updated continuously during the learning process.The results show the superiority of the SARSA algorithm in achieving optimal decisions for the agent to reach its destination with lower energy requirements than Google's suggested routes at around the same traveling time.Compared with previously reported results by authors using DDQN [4] and Google's originally suggested routes, the SARSA proved an effective learning strategy.Considering convergence performance and computation requirements, SARSA achieved better energy performance than Google's routes but slightly less than the DDQN's average driving time, which is only 15% over the driving period following Google's routes.This shows that SARSA could exclude routes that may have resulted in a higher driving period even if they yield lower energy requirements.Due to its powerful computation capabilities, future work should incorporate the SARSA algorithm, as it has been proven to be an effective and reliable machine learning methodology.We recommend the implementation of the SARSA on topics such as smart grid reliability analysis studies [44,45], dynamic energy management systems incorporating EVs [46][47][48], and cybersecurity of energy grids such as charging stations [49].However, a limitation to using the SARSA algorithm is that computational time may exceed that of other methods, as SARSA, a conservative RL method, may not execute the optimal solution within the shortest possible time.Due to its on-policy approach, the SARSA algorithm requires controllers to perform the action selection while following the policy for which the Q-values are found and updated.Another challenge to be investigated by the research community is the hardware implementation of ECU processors inside vehicles that incorporate AI algorithms such as the SARSA algorithm.Such implementation requires extensive integration efforts to achieve optimal real-time decisions for EV drivers.While previous microprocessors were presented in the literature by the ESRL of FIU to support smart charging decisions [50], ECU implementation that involves an AI-based algorithm system requires more extensive efforts to achieve optimal real-time decisions for EV drivers.References [51,52] highlight the real-time implementation of RL methods considering microprocessor capabilities.It is worth mentioning that better results of the SARSA algorithm may have been accomplished in this work if not for the continuous data interruptions from Google's API platform, with the considerably limited computational capabilities of the simulating devices.Overall, the SARSA algorithm proved an effective RL methodology to train EVs to produce self-exploratory decisions that yield optimal driving decisions.Funding: Taibah University (Financial Support for T.M.J.)

Figure 1 .

61Figure 1.Learning process in the RL (environment) algorithm.

62Figure 1.Learning process in the RL (environment) algorithm.

Figure 2 .

63Figure 2. Illustration of graph representation considering MCM.

64Figure 2. Illustration of graph representation considering MCM.

Figure 3 .

65Figure 3. Illustration of the VIN structure utilized in the learning process.

Figure 4 .

66Figure 4. Illustration of the data extraction mechanism in this work.

Figure 5 .

67Figure 5. Illustration of the value function feedback iterations in the learning process.

Figure 3 .

68Figure 3. Illustration of the VIN structure utilized in the learning process.

69Figure 3. Illustration of the VIN structure utilized in the learning process.

Figure 4 .

70Figure 4. Illustration of the data extraction mechanism in this work.

Figure 5 .

71Figure 5. Illustration of the value function feedback iterations in the learning process.

Figure 4 .

72Figure 4. Illustration of the data extraction mechanism in this work.

Figure 3 .

73Figure 3. Illustration of the VIN structure utilized in the learning process.

Figure 4 .

74Figure 4. Illustration of the data extraction mechanism in this work.

Figure 5 .

75Figure 5. Illustration of the value function feedback iterations in the learning process.

76Figure 5. Illustration of the value function feedback iterations in the learning process.

Figure 6 .

77Figure 6.Benchmarking of the energy requirements of the first route for SARSA vs. DDQN and Google Maps.

Figure 6 . 14 Figure 7 .

78Figure 6.Benchmarking of the energy requirements of the first route for SARSA vs. DDQN and Maps.Vehicles 2022, 4, FOR PEER REVIEW 14

Figure 7 .

79Figure 7. Benchmarking of the energy requirement for the second route for SARSA vs. DDQN and Google Maps.

80Figure 7. Benchmarking of the energy requirement for the second route for SARSA vs. DDQN and Google Maps.

Figure 8 .

81Figure 8. Part of the simulation process for the second drive in Los Angeles, CA, USA.

82Figures 9 and 10 show the reward accumulation through the driving experience based on the SARSA algorithm considering 140 episodes.It should be noted that the reward is primarily influenced by the number of steps in the learning process,

83Figure 8. Part of the simulation process for the second drive in Los Angeles, CA, USA.

Vehicles 2022, 4 ,

84FOR PEERREVIEW 15 returning negative values whenever there is a failed episode.In addition, the EV's returned reward is illustrated in Figures9 and 10to provide insight into how much benefit the EV will receive from each action it takes at each state throughout the journey; it represents the accumulated sum at each time step t, following the discounted rate that was set earlier.

Figure 9 .

85Figure 9. Accumulated reward returns per the number of steps in the first trip.

86Figure 9. Accumulated reward returns per the number of steps in the first trip.

Figure 10 .

87Figure 10.Accumulated reward returns per the number of steps in the second trip.

88Figure 10.Accumulated reward returns per the number of steps in the second trip.

Figure 11 .

89Figure 11.Convergence performance of the two RL-proposed algorithms.

Figure 12 .

90Figure 12.The level of SoC vs. probability of taking random actions for the agent during the drives.

Figure 11 .

91Figure 11.Convergence performance of the two RL-proposed algorithms.

92Figure 11.Convergence performance of the two RL-proposed algorithms.

Figure 12 .

93Figure 12.The level of SoC vs. probability of taking random actions for the agent during the drives.

94Figure 12.The level of SoC vs. probability of taking random actions for the agent during the drives.

Author Contributions:

95Conceptualization, T.M.A., and O.M.; methodology, T.M.A.; software, T.M.A., and O.M.; validation, T.M.A., and O.M.; formal analysis, T.M.A..; investigation, T.M.A.; resources, T.M.A., and O.M..; data curation, T.M.A..; writing-original draft preparation, T.M.A., writing-review and editing, T.M.A., and O.M. visualization, T.M.A.; supervision, T.M.A.; project administration, O.M. funding acquisition, T.M.A., and O.M., All authors have read and agreed to the published version of the manuscript.

Table 2 .

96Parameters of the EV in the experiment.

Table 3 .

97Experimental information and results.

Table 4 .

98Total number of episodes and steps per route.

참고문헌 42건

  1. Extracting Dynamical Behavior via Markov Models Birkhäuser Boston eBooks · 2001 10.1007/978-1-4612-0177-9_12
  2. Reinforcement Learning of Adaptive Energy Management With Transition Probability for a Hybrid Electric Tracked Vehicle IEEE Transactions on Industrial Electronics · Institute of Electrical and Electronics Engineers · 2015 10.1109/tie.2015.2475419
  3. Approximation by superpositions of a sigmoidal function Mathematics of Control Signals and Systems · Springer Science+Business Media · 1989 10.1007/bf02551274
  4. Electrical battery model for use in dynamic electric vehicle simulations PESC record · Institute of Electrical and Electronics Engineers · 2008 10.1109/pesc.2008.4592119
  5. Accurate electrical battery model capable of predicting runtime and I-V performance IEEE Transactions on Energy Conversion · Institute of Electrical and Electronics Engineers · 2006 10.1109/tec.2006.874229
  6. A Fast Learning Algorithm for Deep Belief Nets Neural Computation · The MIT Press · 2006 10.1162/neco.2006.18.7.1527
  7. Applying reinforcement learning towards automating resource allocation and application scalability in the cloud Concurrency and Computation Practice and Experience · Wiley · 2012 10.1002/cpe.2864
  8. Dynamic lithium-ion battery model for system simulation IEEE Transactions on Components and Packaging Technologies · Institute of Electrical and Electronics Engineers · 2002 10.1109/tcapt.2002.803653
  9. Dynamic Traffic Feedback Data Enabled Energy Management in Plug-in Hybrid Electric Vehicles IEEE Transactions on Control Systems Technology · Institute of Electrical and Electronics Engineers · 2014 10.1109/tcst.2014.2361294
  10. Traffic modelling framework for electric vehicles International Journal of Control · Taylor & Francis · 2012 10.1080/00207179.2012.668716
  11. A new reinforcement learning vehicle control architecture for vision-based road following IEEE Transactions on Vehicular Technology · Institute of Electrical and Electronics Engineers · 2000 10.1109/25.845116
  12. Data-Driven Reinforcement Learning–Based Real-Time Energy Management System for Plug-In Hybrid Electric Vehicles Transportation Research Record Journal of the Transportation Research Board · SAGE Publishing · 2016 10.3141/2572-01
  13. Reinforced Explorit on Optimizing Vehicle Powertrains Lecture notes in computer science · Springer Science+Business Media · 2013 10.1007/978-3-642-42042-9_72
  14. Effective Management of Electric Vehicle Storage Using Smart Charging Proceedings of the AAAI Conference on Artificial Intelligence · Association for the Advancement of Artificial Intelligence · 2014 10.1609/aaai.v28i1.8760
  15. Reinforcement learning for energy harvesting point-to-point communications 2016 10.1109/icc.2016.7511405
  16. Measurement of power loss during electric vehicle charging and discharging Energy · Elsevier BV · 2017 10.1016/j.energy.2017.03.015
  17. Distributed Cooperative Reinforcement Learning-Based Traffic Signal Control That Integrates V2X Networks’ Dynamic Clustering IEEE Transactions on Vehicular Technology · Institute of Electrical and Electronics Engineers · 2017 10.1109/tvt.2017.2702388
  18. Matlab Code to Assess the Reliability of the Smart Power Distribution System Using Monte Carlo Simulation Journal of Power and Energy Engineering · Scientific Research Publishing · 2017 10.4236/jpee.2017.58003
  19. Deep Reinforcement Learning with Double Q-Learning Proceedings of the AAAI Conference on Artificial Intelligence · Association for the Advancement of Artificial Intelligence · 2016 10.1609/aaai.v30i1.10295
  20. Residential Load Scheduling With Renewable Generation in the Smart Grid: A Reinforcement Learning Approach IEEE Systems Journal · Institute of Electrical and Electronics Engineers · 2018 10.1109/jsyst.2018.2855689
  21. Characterizing Driver Stress Using Physiological and Operational Data from Real-World Electric Vehicle Driving Experiment International Journal of Automotive Technology · Springer Science+Business Media · 2018 10.1007/s12239-018-0086-0
  22. Power Management Strategy of Hybrid Vehicles Using Sarsa Method 2018 10.1109/icee.2018.8472647
  23. Fear and loathing of electric vehicles: The reactionary rhetoric of range anxiety Energy Research & Social Science · Elsevier BV · 2018 10.1016/j.erss.2018.10.001
  24. Applications of Deep Reinforcement Learning in Communications and Networking: A Survey IEEE Communications Surveys & Tutorials · Institute of Electrical and Electronics Engineers · 2019 10.1109/comst.2019.2916583
  25. Deep Reinforcement Learning for Multimedia Traffic Control in Software Defined Networking IEEE Network · Institute of Electrical and Electronics Engineers · 2018 10.1109/mnet.2018.1800097
  26. A reinforcement learning framework for optimal operation and maintenance of power grids Applied Energy · Elsevier BV · 2019 10.1016/j.apenergy.2019.03.027
  27. Electric Vehicle Range Anxiety: An Obstacle for the Personal Transportation (R)evolution? 2019 4th International Conference on Smart and Sustainable Technologies (SpliTech) · 2019 10.23919/splitech.2019.8783178
  28. Defending Against Data Integrity Attacks in Smart Grid: A Deep Reinforcement Learning-Based Approach IEEE Access · Institute of Electrical and Electronics Engineers · 2019 10.1109/access.2019.2933020
  29. Deep Reinforcement Learning for Strategic Bidding in Electricity Markets IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2019 10.1109/tsg.2019.2936142
  30. Modeling of high power automotive batteries by the use of an automated test system IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2003 10.1109/tim.2003.814827
  31. Reinforcement Learning for Real-Time Pricing and Scheduling Control in EV Charging Stations IEEE Transactions on Industrial Informatics · Institute of Electrical and Electronics Engineers · 2019 10.1109/tii.2019.2950809
  32. Reinforcement learning in sustainable energy and electric systems: a survey Annual Reviews in Control · Elsevier BV · 2020 10.1016/j.arcontrol.2020.03.001
  33. Value Iteration Networks 2017 10.24963/ijcai.2017/700
  34. Coordinated Topology Attacks in Smart Grid Using Deep Reinforcement Learning IEEE Transactions on Industrial Informatics · Institute of Electrical and Electronics Engineers · 2020 10.1109/tii.2020.2994977
  35. Multi-agent reinforcement learning for redundant robot control in task-space International Journal of Machine Learning and Cybernetics · Springer Science+Business Media · 2020 10.1007/s13042-020-01167-7
  36. Real-Time metadata-driven routing optimization for electric vehicle energy consumption minimization using deep reinforcement learning and Markov chain model Electric Power Systems Research · Elsevier BV · 2020 10.1016/j.epsr.2020.106962
  37. MARLA-SG: Multi-Agent Reinforcement Learning Algorithm for Efficient Demand Response in Smart Grid IEEE Access · Institute of Electrical and Electronics Engineers · 2020 10.1109/access.2020.3038863
  38. Peer-to-peer electricity transaction decision of user-side smart energy system based on SARSA reinforcement learning method CSEE Journal of Power and Energy Systems · China Electric Power Research Institute · 2020 10.17775/cseejpes.2020.03290
  39. Dynamic Real-Time Pricing Mechanism for Electric Vehicles Charging Considering Optimal Microgrids Energy Management System IEEE Transactions on Industry Applications · Institute of Electrical and Electronics Engineers · 2021 10.1109/tia.2021.3099083
  40. Safe Learning in Robotics: From Learning-Based Control to Safe Reinforcement Learning Annual Review of Control Robotics and Autonomous Systems · Annual Reviews · 2022 10.1146/annurev-control-042920-020211
  41. Dynamic energy scheduling and routing of multiple electric vehicles using deep reinforcement learning Energy · Elsevier BV · 2021 10.1016/j.energy.2021.122626
  42. Processor-in-the-Loop Validation of a Gradient Descent-Based Model Predictive Control for Assisted Driving and Obstacles Avoidance Applications IEEE Access · Institute of Electrical and Electronics Engineers · 2022 10.1109/access.2022.3186020